Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DScreenLifecycleTest.java54 assertEquals(ScreenLifecycle.SCREEN_OFF, mScreen.getScreenState()); in baseState()
63 assertEquals(ScreenLifecycle.SCREEN_TURNING_ON, mScreen.getScreenState()); in screenTurningOn()
72 assertEquals(ScreenLifecycle.SCREEN_ON, mScreen.getScreenState()); in screenTurnedOn()
82 assertEquals(ScreenLifecycle.SCREEN_TURNING_OFF, mScreen.getScreenState()); in screenTurningOff()
93 assertEquals(ScreenLifecycle.SCREEN_OFF, mScreen.getScreenState()); in screenTurnedOff()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DDisplayPowerControllerTest.java222 when(mHolder.displayPowerState.getScreenState()).thenReturn(Display.STATE_ON); in testReleaseProxSuspendBlockersOnExit()
251 when(mHolder.displayPowerState.getScreenState()).thenReturn(Display.STATE_ON); in testScreenOffBecauseOfProximity()
273 when(mHolder.displayPowerState.getScreenState()).thenReturn(Display.STATE_OFF); in testScreenOffBecauseOfProximity()
294 when(mHolder.displayPowerState.getScreenState()).thenReturn(Display.STATE_ON); in testScreenOffBecauseOfProximity_ProxSensorGone()
315 when(mHolder.displayPowerState.getScreenState()).thenReturn(Display.STATE_OFF); in testScreenOffBecauseOfProximity_ProxSensorGone()
333 when(mHolder.displayPowerState.getScreenState()).thenReturn(Display.STATE_ON); in testProximitySensorListenerNotRegisteredForNonDefaultDisplay()
500 when(mHolder.displayPowerState.getScreenState()).thenReturn(Display.STATE_ON); in testDisplayBrightnessFollowers_AutomaticBrightness()
749 when(mHolder.displayPowerState.getScreenState()).thenReturn(Display.STATE_ON); in testDisplayBrightnessHdr_SkipAnimationOnHdrAppearance()
785 when(mHolder.displayPowerState.getScreenState()).thenReturn(Display.STATE_ON); in testDisplayBrightnessHdr_SkipAnimationOnHdrRemoval()
842 when(mHolder.displayPowerState.getScreenState()).thenReturn(Display.STATE_OFF); in testSetScreenOffBrightnessSensorEnabled_DisplayIsOff()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DScreenLifecycle.java51 public int getScreenState() { in getScreenState() method in ScreenLifecycle
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsNoteTest.java490 assertEquals(Display.STATE_DOZE, bi.getScreenState()); in testNoteScreenStateLocked()
495 assertEquals(Display.STATE_ON, bi.getScreenState()); in testNoteScreenStateLocked()
500 assertEquals(Display.STATE_OFF, bi.getScreenState()); in testNoteScreenStateLocked()
505 assertEquals(Display.STATE_DOZE_SUSPEND, bi.getScreenState()); in testNoteScreenStateLocked()
511 assertEquals(Display.STATE_ON, bi.getScreenState()); in testNoteScreenStateLocked()
517 assertEquals(Display.STATE_ON, bi.getScreenState()); in testNoteScreenStateLocked()
539 assertEquals(Display.STATE_DOZE, bi.getScreenState()); in testNoteScreenStateLocked_multiDisplay()
543 assertEquals(Display.STATE_ON, bi.getScreenState()); in testNoteScreenStateLocked_multiDisplay()
549 assertEquals(Display.STATE_OFF, bi.getScreenState()); in testNoteScreenStateLocked_multiDisplay()
554 assertEquals(Display.STATE_DOZE_SUSPEND, bi.getScreenState()); in testNoteScreenStateLocked_multiDisplay()
[all …]
DMockBatteryStatsImpl.java119 public int getScreenState() { in getScreenState() method in MockBatteryStatsImpl
/frameworks/base/services/core/java/com/android/server/display/
DDisplayPowerController.java983 noteScreenState(mPowerState.getScreenState(), Display.STATE_REASON_DEFAULT_POLICY); in initialize()
1330 if (mPowerState.getScreenState() != state) { in updatePowerStateInternal()
1355 state = mPowerState.getScreenState(); in updatePowerStateInternal()
2120 final boolean changed = mPowerState.getScreenState() != state; in setScreenState()
2276 && Display.isDozeState(mPowerState.getScreenState()) in animateScreenStateChange()
2331 && mPowerState.getScreenState() == Display.STATE_ON) { in animateScreenStateChange()
2348 && mPowerState.getScreenState() != Display.STATE_DOZE_SUSPEND) { in animateScreenStateChange()
2354 if (mPowerState.getScreenState() != Display.STATE_DOZE_SUSPEND) { in animateScreenStateChange()
2369 && mPowerState.getScreenState() != Display.STATE_ON_SUSPEND) { in animateScreenStateChange()
2375 if (mPowerState.getScreenState() != Display.STATE_ON_SUSPEND) { in animateScreenStateChange()
[all …]
DDisplayPowerState.java178 public int getScreenState() { in getScreenState() method in DisplayPowerState
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/customize/
DQSCustomizerController.java257 && mScreenLifecycle.getScreenState() != ScreenLifecycle.SCREEN_OFF; in hide()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyguardIndicationControllerBaseTest.java227 when(mScreenLifecycle.getScreenState()).thenReturn(SCREEN_ON); in setUp()
DKeyguardIndicationControllerTest.java381 when(mScreenLifecycle.getScreenState()).thenReturn(SCREEN_OFF); in transientIndication_visibleWhenWokenUp()
1539 when(mScreenLifecycle.getScreenState()).thenReturn(SCREEN_TURNING_ON); in screenIsTurningOn()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyguardIndicationController.java1358 } else if (mScreenLifecycle.getScreenState() == SCREEN_ON) { in onBiometricHelp()
1658 } else if (mScreenLifecycle.getScreenState() == SCREEN_ON) { in showErrorMessageNowOrLater()
/frameworks/av/services/audioflinger/
DIAfThread.h87 virtual uint32_t getScreenState() const = 0;
DAudioFlinger.h364 uint32_t getScreenState() const final { return mScreenState; } in getScreenState() function
DThreads.cpp2159 mScreenState(mAfThreadCallback->getScreenState()), in PlaybackThread()
3561 const uint32_t screenState = mAfThreadCallback->getScreenState(); in threadLoop_write()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/
DUdfpsController.java757 mScreenOn = screenLifecycle.getScreenState() == ScreenLifecycle.SCREEN_ON; in UdfpsController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DCentralSurfacesImpl.java2046 && mScreenLifecycle.getScreenState() == ScreenLifecycle.SCREEN_TURNING_OFF)) { in updateIsKeyguard()
2695 return mScreenLifecycle.getScreenState() == ScreenLifecycle.SCREEN_OFF; in isScreenFullyOff()
/frameworks/base/services/
Dart-wear-profile10599 PLcom/android/server/display/DisplayPowerState;->getScreenState()I