Home
last modified time | relevance | path

Searched refs:getScreenState (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DScreenLifecycleTest.java52 assertEquals(ScreenLifecycle.SCREEN_OFF, mScreen.getScreenState()); in baseState()
60 assertEquals(ScreenLifecycle.SCREEN_TURNING_ON, mScreen.getScreenState()); in screenTurningOn()
69 assertEquals(ScreenLifecycle.SCREEN_ON, mScreen.getScreenState()); in screenTurnedOn()
79 assertEquals(ScreenLifecycle.SCREEN_TURNING_OFF, mScreen.getScreenState()); in screenTurningOff()
90 assertEquals(ScreenLifecycle.SCREEN_OFF, mScreen.getScreenState()); in screenTurnedOff()
/frameworks/base/services/core/java/com/android/server/display/
DDisplayPowerController.java622 mBatteryStats.noteScreenState(mPowerState.getScreenState()); in initialize()
765 final int oldState = mPowerState.getScreenState(); in updatePowerState()
767 state = mPowerState.getScreenState(); in updatePowerState()
1096 if (mPowerState.getScreenState() != state) {
1199 && Display.isDozeState(mPowerState.getScreenState())
1254 && mPowerState.getScreenState() == Display.STATE_ON) {
1272 && mPowerState.getScreenState() == Display.STATE_ON) {
1289 && mPowerState.getScreenState() != Display.STATE_DOZE_SUSPEND) {
1295 if (mPowerState.getScreenState() != Display.STATE_DOZE_SUSPEND) {
1310 && mPowerState.getScreenState() != Display.STATE_ON_SUSPEND) {
[all …]
DDisplayPowerState.java140 public int getScreenState() { in getScreenState() method in DisplayPowerState
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DScreenLifecycle.java38 public int getScreenState() { in getScreenState() method in ScreenLifecycle
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DMockBatteryStatsImpl.java66 public int getScreenState() { in getScreenState() method in MockBatteryStatsImpl
DBatteryStatsNoteTest.java238 assertEquals(bi.getScreenState(), Display.STATE_DOZE); in testNoteScreenStateLocked()
241 assertEquals(bi.getScreenState(), Display.STATE_ON); in testNoteScreenStateLocked()
244 assertEquals(bi.getScreenState(), Display.STATE_OFF); in testNoteScreenStateLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DStatusBar.java3525 && mScreenLifecycle.getScreenState() == ScreenLifecycle.SCREEN_TURNING_OFF) { in updateIsKeyguard()
4561 return mScreenLifecycle.getScreenState() == ScreenLifecycle.SCREEN_OFF; in isScreenFullyOff()
4680 return mScreenLifecycle.getScreenState() == ScreenLifecycle.SCREEN_TURNING_ON in isScreenTurningOnOrOn()
4681 || mScreenLifecycle.getScreenState() == ScreenLifecycle.SCREEN_ON; in isScreenTurningOnOrOn()