Commit 32dafe2
Jeff Brown
Reduce screen on/off latency.
Reduce latency of screen on/off and improve how it is synchronized with
backlight changes. Screen state changes are no longer posted to vsync
which should save time. What's more, the state change occurs on a
separate thread so we no longer run the risk of blocking the Looper
for a long time while waiting for the screen to turn on or off.
Bug: 7382919
Bug: 7139924
Change-Id: I375950d1b07e22fcb94efb82892fd817e2f780dc1 parent 9bef329 commit 32dafe2
File tree
4 files changed
+218
-201
lines changed- services/java/com/android/server/power
4 files changed
+218
-201
lines changedLines changed: 3 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
44 | 43 | | |
45 | 44 | | |
46 | 45 | | |
47 | | - | |
48 | 46 | | |
49 | 47 | | |
50 | 48 | | |
| |||
161 | 159 | | |
162 | 160 | | |
163 | 161 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | 162 | | |
168 | 163 | | |
169 | 164 | | |
| |||
339 | 334 | | |
340 | 335 | | |
341 | 336 | | |
342 | | - | |
| 337 | + | |
343 | 338 | | |
344 | 339 | | |
345 | 340 | | |
346 | 341 | | |
347 | | - | |
348 | 342 | | |
349 | 343 | | |
350 | 344 | | |
| |||
513 | 507 | | |
514 | 508 | | |
515 | 509 | | |
516 | | - | |
517 | 510 | | |
518 | 511 | | |
519 | | - | |
520 | | - | |
521 | | - | |
522 | | - | |
523 | | - | |
| 512 | + | |
| 513 | + | |
524 | 514 | | |
525 | 515 | | |
526 | 516 | | |
| |||
0 commit comments