Merge "AOD: Don't use DOZE screen state on AOD2"
This commit is contained in:
committed by
Android (Google) Code Review
commit
666f139f7b
@@ -91,7 +91,7 @@ public class DozeMachine {
|
||||
case DOZE_AOD_PAUSED:
|
||||
return Display.STATE_OFF;
|
||||
case DOZE_PULSING:
|
||||
return Display.STATE_DOZE;
|
||||
return Display.STATE_ON;
|
||||
case DOZE_AOD:
|
||||
return Display.STATE_DOZE_SUSPEND;
|
||||
default:
|
||||
|
||||
@@ -60,6 +60,8 @@ public class DozeService extends DreamService implements DozeMachine.Service {
|
||||
super.onDreamingStarted();
|
||||
mDozeMachine.requestState(DozeMachine.State.INITIALIZED);
|
||||
startDozing();
|
||||
setDozeScreenBrightness(getResources().getInteger(
|
||||
com.android.internal.R.integer.config_screenBrightnessDoze));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -238,7 +238,7 @@ public class DozeMachineTest {
|
||||
mMachine.requestState(DOZE_REQUEST_PULSE);
|
||||
mMachine.requestState(DOZE_PULSING);
|
||||
|
||||
assertEquals(Display.STATE_DOZE, mServiceFake.screenState);
|
||||
assertEquals(Display.STATE_ON, mServiceFake.screenState);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user