Commit 1042874
Jeff Brown
Prevent full wake lock from keeping device awake while dreaming.
A dream may itself hold a wake lock in order to keep the screen
bright as it runs. However this wake lock also causes the device
to stay awake even when it is not plugged in which is undesirable.
This change makes full wake locks behave differently when napping
or dreaming. The wake lock still keeps the screen bright but
it does not prevent the device from falling asleep. This is
similar to our policy of ignoring full wake locks completely when
the device is manually put to sleep by the user.
Bug: 7295909
Change-Id: Id99e82d2143ae1a81629281d6407d7527efb81371 parent c0c0c0e commit 1042874
File tree
1 file changed
+11
-1
lines changed- services/java/com/android/server/power
1 file changed
+11
-1
lines changedLines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
| 130 | + | |
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| |||
1172 | 1173 | | |
1173 | 1174 | | |
1174 | 1175 | | |
| 1176 | + | |
| 1177 | + | |
| 1178 | + | |
1175 | 1179 | | |
1176 | 1180 | | |
1177 | 1181 | | |
1178 | 1182 | | |
1179 | 1183 | | |
| 1184 | + | |
| 1185 | + | |
| 1186 | + | |
1180 | 1187 | | |
1181 | 1188 | | |
1182 | 1189 | | |
1183 | 1190 | | |
1184 | 1191 | | |
| 1192 | + | |
| 1193 | + | |
| 1194 | + | |
1185 | 1195 | | |
1186 | 1196 | | |
1187 | 1197 | | |
| |||
1339 | 1349 | | |
1340 | 1350 | | |
1341 | 1351 | | |
1342 | | - | |
| 1352 | + | |
1343 | 1353 | | |
1344 | 1354 | | |
1345 | 1355 | | |
| |||
0 commit comments