Commit c458ce9
Jeff Brown
Add support for using the lid switch to turn off the screen.
Added a config option to allow the lid switch to turn off the
screen. This is a closer match to what a lid switch should be
doing.
Removed an old feature to bypass keyguard when keyboard is visible
because the way it was plumbed in made bad assumptions about
the meaning of the lid switch. Also, the last product we shipped
that had a physical keyboard turned this config option off.
So away it goes. We can bring it back someday if we really want it.
It's questionable how useful the feature is anyhow, since it only
works when the keyguard is unsecure and when the lid switch is
unlikely to be jostled in the user's pocket.
Fixed a bug where we would tell the power manager that the keyboard
was visible even if the lid switch did not control the keyboard.
This used to cause the power manager to try to set the keyboard
brightness, which doesn't work.
Bug: 6377115
Bug: 6406726
Change-Id: Ic84b71d09563d51c92cd1cf132fa8bdee65091031 parent 3ea8761 commit c458ce9
File tree
12 files changed
+54
-92
lines changed- core
- res/res/values
- tests/overlaytests/OverlayTest/src/com/android/overlaytest
- policy/src/com/android/internal/policy/impl
- services/java/com/android/server
- input
- wm
12 files changed
+54
-92
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
287 | 287 | | |
288 | 288 | | |
289 | 289 | | |
290 | | - | |
291 | | - | |
292 | | - | |
293 | | - | |
294 | | - | |
295 | 290 | | |
296 | 291 | | |
297 | 292 | | |
| |||
374 | 369 | | |
375 | 370 | | |
376 | 371 | | |
377 | | - | |
| 372 | + | |
378 | 373 | | |
379 | 374 | | |
380 | 375 | | |
381 | 376 | | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1174 | 1174 | | |
1175 | 1175 | | |
1176 | 1176 | | |
1177 | | - | |
| 1177 | + | |
1178 | 1178 | | |
1179 | 1179 | | |
1180 | 1180 | | |
1181 | 1181 | | |
1182 | 1182 | | |
| 1183 | + | |
1183 | 1184 | | |
1184 | 1185 | | |
1185 | 1186 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
67 | | - | |
68 | | - | |
| 67 | + | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
Lines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
76 | | - | |
77 | 75 | | |
78 | 76 | | |
79 | 77 | | |
| |||
217 | 215 | | |
218 | 216 | | |
219 | 217 | | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | 218 | | |
224 | 219 | | |
225 | 220 | | |
| |||
660 | 655 | | |
661 | 656 | | |
662 | 657 | | |
663 | | - | |
664 | | - | |
665 | | - | |
666 | | - | |
667 | 658 | | |
668 | 659 | | |
669 | 660 | | |
| |||
Lines changed: 1 addition & 27 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | 124 | | |
132 | 125 | | |
133 | 126 | | |
| |||
237 | 230 | | |
238 | 231 | | |
239 | 232 | | |
240 | | - | |
241 | | - | |
242 | 233 | | |
243 | 234 | | |
244 | 235 | | |
| |||
589 | 580 | | |
590 | 581 | | |
591 | 582 | | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
606 | | - | |
607 | | - | |
608 | 583 | | |
609 | 584 | | |
610 | 585 | | |
| |||
955 | 930 | | |
956 | 931 | | |
957 | 932 | | |
958 | | - | |
959 | | - | |
| 933 | + | |
960 | 934 | | |
961 | 935 | | |
962 | 936 | | |
| |||
Lines changed: 0 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
| |||
404 | 403 | | |
405 | 404 | | |
406 | 405 | | |
407 | | - | |
408 | 406 | | |
409 | 407 | | |
410 | 408 | | |
| |||
506 | 504 | | |
507 | 505 | | |
508 | 506 | | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | 507 | | |
516 | 508 | | |
517 | 509 | | |
| |||
Lines changed: 29 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
| 356 | + | |
356 | 357 | | |
357 | 358 | | |
358 | 359 | | |
| |||
891 | 892 | | |
892 | 893 | | |
893 | 894 | | |
| 895 | + | |
| 896 | + | |
894 | 897 | | |
895 | 898 | | |
896 | 899 | | |
| |||
1268 | 1271 | | |
1269 | 1272 | | |
1270 | 1273 | | |
| 1274 | + | |
| 1275 | + | |
| 1276 | + | |
| 1277 | + | |
| 1278 | + | |
1271 | 1279 | | |
1272 | 1280 | | |
1273 | 1281 | | |
1274 | | - | |
| 1282 | + | |
1275 | 1283 | | |
1276 | 1284 | | |
1277 | 1285 | | |
| |||
2809 | 2817 | | |
2810 | 2818 | | |
2811 | 2819 | | |
2812 | | - | |
2813 | | - | |
| 2820 | + | |
| 2821 | + | |
| 2822 | + | |
| 2823 | + | |
2814 | 2824 | | |
2815 | | - | |
| 2825 | + | |
| 2826 | + | |
2816 | 2827 | | |
2817 | | - | |
2818 | | - | |
2819 | | - | |
2820 | | - | |
2821 | | - | |
2822 | | - | |
2823 | | - | |
2824 | | - | |
2825 | | - | |
2826 | | - | |
| 2828 | + | |
| 2829 | + | |
| 2830 | + | |
2827 | 2831 | | |
2828 | 2832 | | |
2829 | | - | |
2830 | | - | |
2831 | | - | |
2832 | | - | |
2833 | | - | |
2834 | | - | |
2835 | 2833 | | |
2836 | 2834 | | |
2837 | | - | |
| 2835 | + | |
2838 | 2836 | | |
| 2837 | + | |
| 2838 | + | |
| 2839 | + | |
2839 | 2840 | | |
2840 | 2841 | | |
2841 | 2842 | | |
| |||
3884 | 3885 | | |
3885 | 3886 | | |
3886 | 3887 | | |
3887 | | - | |
3888 | | - | |
| 3888 | + | |
3889 | 3889 | | |
3890 | 3890 | | |
3891 | 3891 | | |
3892 | | - | |
3893 | | - | |
| 3892 | + | |
| 3893 | + | |
| 3894 | + | |
| 3895 | + | |
| 3896 | + | |
3894 | 3897 | | |
3895 | 3898 | | |
3896 | 3899 | | |
| |||
4176 | 4179 | | |
4177 | 4180 | | |
4178 | 4181 | | |
| 4182 | + | |
4179 | 4183 | | |
4180 | 4184 | | |
4181 | 4185 | | |
| |||
Lines changed: 0 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
304 | 304 | | |
305 | 305 | | |
306 | 306 | | |
307 | | - | |
308 | | - | |
309 | | - | |
310 | | - | |
311 | | - | |
312 | 307 | | |
313 | 308 | | |
314 | 309 | | |
| |||
Lines changed: 0 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
282 | 282 | | |
283 | 283 | | |
284 | 284 | | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | 285 | | |
290 | 286 | | |
291 | 287 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2521 | 2521 | | |
2522 | 2522 | | |
2523 | 2523 | | |
2524 | | - | |
| 2524 | + | |
| 2525 | + | |
2525 | 2526 | | |
2526 | 2527 | | |
2527 | 2528 | | |
| |||
0 commit comments