Merge "Fix screen not turning off correctly." into sc-dev
This commit is contained in:
@@ -2957,8 +2957,7 @@ public final class PowerManagerService extends SystemService
|
|||||||
// Group has been removed.
|
// Group has been removed.
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// TODO (b/175764708): Support per-display doze.
|
wakefulness = mDisplayGroupPowerStateMapper.getWakefulnessLocked(groupId);
|
||||||
wakefulness = getWakefulnessLocked();
|
|
||||||
if ((wakefulness == WAKEFULNESS_DREAMING || wakefulness == WAKEFULNESS_DOZING) &&
|
if ((wakefulness == WAKEFULNESS_DREAMING || wakefulness == WAKEFULNESS_DOZING) &&
|
||||||
mDisplayGroupPowerStateMapper.isSandmanSummoned(groupId)
|
mDisplayGroupPowerStateMapper.isSandmanSummoned(groupId)
|
||||||
&& mDisplayGroupPowerStateMapper.isReady(groupId)) {
|
&& mDisplayGroupPowerStateMapper.isReady(groupId)) {
|
||||||
@@ -3100,6 +3099,7 @@ public final class PowerManagerService extends SystemService
|
|||||||
* Returns true if the device is allowed to doze in its current state.
|
* Returns true if the device is allowed to doze in its current state.
|
||||||
*/
|
*/
|
||||||
private boolean canDozeLocked() {
|
private boolean canDozeLocked() {
|
||||||
|
// TODO (b/175764708): Support per-display doze.
|
||||||
return getWakefulnessLocked() == WAKEFULNESS_DOZING;
|
return getWakefulnessLocked() == WAKEFULNESS_DOZING;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user