Commit 1c2e494
Jeff Brown
Use a consistent policy for filtering wake keys.
Previously wake keys were filtered differently depending on whether
a keyguard was showing. If the user disables the keyguard then
no filtering was applied, which means that the volume key may
wake your device while in your pocket.
This change ensures that we use the same policy consistently
regardless of whether keyguard is showing. The behavior is
otherwise the same.
Removed the "Locked" suffix on a method that was actually
being called without a lock held and which in fact does not
require it.
Bug: 7481025
Change-Id: I704c71ca009bc5437f349f858b9de7c77ea73e4b1 parent 0f4d5df commit 1c2e494
File tree
2 files changed
+49
-60
lines changed- policy/src/com/android/internal/policy/impl
- keyguard
2 files changed
+49
-60
lines changedLines changed: 38 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3168 | 3168 | | |
3169 | 3169 | | |
3170 | 3170 | | |
3171 | | - | |
3172 | | - | |
| 3171 | + | |
3173 | 3172 | | |
3174 | 3173 | | |
3175 | 3174 | | |
| |||
3388 | 3387 | | |
3389 | 3388 | | |
3390 | 3389 | | |
3391 | | - | |
| 3390 | + | |
3392 | 3391 | | |
3393 | | - | |
3394 | | - | |
3395 | | - | |
| 3392 | + | |
| 3393 | + | |
3396 | 3394 | | |
3397 | 3395 | | |
3398 | 3396 | | |
| |||
3614 | 3612 | | |
3615 | 3613 | | |
3616 | 3614 | | |
| 3615 | + | |
| 3616 | + | |
| 3617 | + | |
| 3618 | + | |
| 3619 | + | |
| 3620 | + | |
| 3621 | + | |
| 3622 | + | |
| 3623 | + | |
| 3624 | + | |
| 3625 | + | |
| 3626 | + | |
| 3627 | + | |
| 3628 | + | |
| 3629 | + | |
| 3630 | + | |
| 3631 | + | |
| 3632 | + | |
| 3633 | + | |
| 3634 | + | |
| 3635 | + | |
| 3636 | + | |
| 3637 | + | |
| 3638 | + | |
| 3639 | + | |
| 3640 | + | |
| 3641 | + | |
| 3642 | + | |
| 3643 | + | |
| 3644 | + | |
| 3645 | + | |
| 3646 | + | |
| 3647 | + | |
| 3648 | + | |
3617 | 3649 | | |
3618 | 3650 | | |
3619 | 3651 | | |
| |||
Lines changed: 11 additions & 54 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
178 | | - | |
| 178 | + | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
933 | 933 | | |
934 | 934 | | |
935 | 935 | | |
936 | | - | |
937 | | - | |
| 936 | + | |
| 937 | + | |
938 | 938 | | |
939 | 939 | | |
940 | 940 | | |
| |||
1012 | 1012 | | |
1013 | 1013 | | |
1014 | 1014 | | |
1015 | | - | |
1016 | | - | |
1017 | 1015 | | |
1018 | | - | |
| 1016 | + | |
1019 | 1017 | | |
1020 | 1018 | | |
1021 | | - | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | | - | |
1027 | | - | |
1028 | | - | |
1029 | | - | |
1030 | | - | |
1031 | | - | |
1032 | | - | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
1040 | | - | |
1041 | | - | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
1051 | | - | |
1052 | | - | |
1053 | | - | |
1054 | | - | |
1055 | | - | |
1056 | | - | |
1057 | | - | |
1058 | | - | |
1059 | | - | |
1060 | | - | |
1061 | | - | |
1062 | | - | |
| 1019 | + | |
| 1020 | + | |
| 1021 | + | |
| 1022 | + | |
1063 | 1023 | | |
1064 | 1024 | | |
1065 | 1025 | | |
| |||
1071 | 1031 | | |
1072 | 1032 | | |
1073 | 1033 | | |
1074 | | - | |
1075 | | - | |
1076 | 1034 | | |
1077 | | - | |
| 1035 | + | |
1078 | 1036 | | |
1079 | 1037 | | |
1080 | 1038 | | |
1081 | 1039 | | |
1082 | 1040 | | |
1083 | | - | |
1084 | | - | |
| 1041 | + | |
1085 | 1042 | | |
1086 | 1043 | | |
1087 | 1044 | | |
| |||
1348 | 1305 | | |
1349 | 1306 | | |
1350 | 1307 | | |
1351 | | - | |
| 1308 | + | |
1352 | 1309 | | |
1353 | 1310 | | |
1354 | 1311 | | |
| |||
0 commit comments