Home
last modified time | relevance | path

Searched refs:screenState (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeScreenState.java39 int screenState = newState.screenState(); in transitionTo() local
46 applyScreenState(screenState); in transitionTo()
50 if (screenState == Display.STATE_UNKNOWN) { in transitionTo()
61 mPendingScreenState = screenState; in transitionTo()
67 applyScreenState(screenState); in transitionTo()
75 private void applyScreenState(int screenState) { in applyScreenState() argument
76 if (screenState != Display.STATE_UNKNOWN) { in applyScreenState()
77 mDozeService.setDozeScreenState(screenState); in applyScreenState()
DDozeMachine.java90 int screenState() { in screenState() method in DozeMachine.State
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeScreenStateTest.java64 assertEquals(Display.STATE_OFF, mServiceFake.screenState); in testScreen_offInDoze()
72 assertEquals(Display.STATE_DOZE_SUSPEND, mServiceFake.screenState); in testScreen_onInAod()
83 assertEquals(Display.STATE_ON, mServiceFake.screenState); in testScreen_onInPulse()
93 assertEquals(Display.STATE_OFF, mServiceFake.screenState); in testScreen_offInRequestPulseWithoutAoD()
103 assertEquals(Display.STATE_OFF, mServiceFake.screenState); in testScreen_offInRequestPulseWithAoD()
119 assertEquals(Display.STATE_DOZE_SUSPEND, mServiceFake.screenState); in test_initialScreenStatePostedToHandler()
DDozeServiceFake.java30 public int screenState; field in DozeServiceFake
46 screenState = state; in setDozeScreenState()
62 screenState = Display.STATE_UNKNOWN; in reset()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DScreenLifecycle.java68 private void setScreenState(int screenState) { in setScreenState() argument
69 mScreenState = screenState; in setScreenState()
70 Trace.traceCounter(Trace.TRACE_TAG_APP, "screenState", screenState); in setScreenState()
/frameworks/base/services/core/java/com/android/server/policy/keyguard/
DKeyguardServiceDelegate.java71 public int screenState; field in KeyguardServiceDelegate.KeyguardState
178 if (mKeyguardState.screenState == SCREEN_STATE_ON
179 || mKeyguardState.screenState == SCREEN_STATE_TURNING_ON) {
183 if (mKeyguardState.screenState == SCREEN_STATE_ON) {
307 mKeyguardState.screenState = SCREEN_STATE_TURNING_OFF; in onScreenTurningOff()
315 mKeyguardState.screenState = SCREEN_STATE_OFF; in onScreenTurnedOff()
329 mKeyguardState.screenState = SCREEN_STATE_TURNING_ON; in onScreenTurningOn()
337 mKeyguardState.screenState = SCREEN_STATE_ON; in onScreenTurnedOn()
423 pw.println(prefix + "screenState=" + mKeyguardState.screenState); in dump()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/
DBatterySaverPolicyTest.java154 final PowerSaveState screenState = in testUpdateConstants_getCorrectData() local
157 assertThat(screenState.batterySaverEnabled).isFalse(); in testUpdateConstants_getCorrectData()
158 assertThat(screenState.brightnessFactor).isWithin(PRECISION).of(BRIGHTNESS_FACTOR); in testUpdateConstants_getCorrectData()
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamManagerService.java225 private void startDozingInternal(IBinder token, int screenState, in startDozingInternal() argument
229 + ", screenState=" + screenState in startDozingInternal()
235 mCurrentDreamDozeScreenState = screenState; in startDozingInternal()
238 screenState, screenBrightness); in startDozingInternal()
608 public void startDozing(IBinder token, int screenState, int screenBrightness) { in startDozing() argument
616 startDozingInternal(token, screenState, screenBrightness); in startDozing()
/frameworks/base/core/java/android/service/dreams/
DIDreamManager.aidl34 void startDozing(in IBinder token, int screenState, int screenBrightness); in startDozing() argument
/frameworks/base/core/java/android/os/
DPowerManagerInternal.java122 int screenState, int screenBrightness); in setDozeOverrideFromDreamManager() argument
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java3111 int screenState, int screenBrightness) { in setDozeOverrideFromDreamManagerInternal() argument
3113 if (mDozeScreenStateOverrideFromDreamManager != screenState in setDozeOverrideFromDreamManagerInternal()
3115 mDozeScreenStateOverrideFromDreamManager = screenState; in setDozeOverrideFromDreamManagerInternal()
4674 public void setDozeOverrideFromDreamManager(int screenState, int screenBrightness) { in setDozeOverrideFromDreamManager() argument
4675 switch (screenState) { in setDozeOverrideFromDreamManager()
4684 screenState = Display.STATE_UNKNOWN; in setDozeOverrideFromDreamManager()
4691 setDozeOverrideFromDreamManagerInternal(screenState, screenBrightness); in setDozeOverrideFromDreamManager()
/frameworks/av/services/audioflinger/
DAudioFlinger.cpp1207 String8 screenState; in setParameters() local
1208 if (param.get(String8(AudioParameter::keyScreenState), screenState) == NO_ERROR) { in setParameters()
1209 bool isOff = (screenState == AudioParameter::valueOff); in setParameters()
DThreads.cpp2652 uint32_t screenState = AudioFlinger::mScreenState; in threadLoop_write() local
2653 if (screenState != mScreenState) { in threadLoop_write()
2654 mScreenState = screenState; in threadLoop_write()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java3569 public void updateTimeBasesLocked(boolean unplugged, int screenState, long uptime, in updateTimeBasesLocked() argument
3571 final boolean screenOff = isScreenOff(screenState) || isScreenDoze(screenState); in updateTimeBasesLocked()
3589 + Display.stateToString(screenState) in updateTimeBasesLocked()
10768 final int screenState = mScreenState; in setOnBatteryLocked() local
10844 if (isScreenOn(screenState)) { in setOnBatteryLocked()
10848 } else if (isScreenDoze(screenState)) { in setOnBatteryLocked()
10860 updateTimeBasesLocked(true, screenState, uptime, realtime); in setOnBatteryLocked()
10875 updateDischargeScreenLevelsLocked(screenState, screenState); in setOnBatteryLocked()
10876 updateTimeBasesLocked(false, screenState, uptime, realtime); in setOnBatteryLocked()
/frameworks/base/core/java/android/view/
DViewGroup.java3345 void dispatchScreenStateChanged(int screenState) { in dispatchScreenStateChanged() argument
3346 super.dispatchScreenStateChanged(screenState); in dispatchScreenStateChanged()
3351 children[i].dispatchScreenStateChanged(screenState); in dispatchScreenStateChanged()
DView.java16995 void dispatchScreenStateChanged(int screenState) {
16996 onScreenStateChanged(screenState);
17008 public void onScreenStateChanged(int screenState) {
/frameworks/base/core/java/android/widget/
DTextView.java6481 public void onScreenStateChanged(int screenState) { in onScreenStateChanged() argument
6482 super.onScreenStateChanged(screenState); in onScreenStateChanged()
6483 if (mEditor != null) mEditor.onScreenStateChanged(screenState); in onScreenStateChanged()
DEditor.java712 void onScreenStateChanged(int screenState) { in onScreenStateChanged() argument
713 switch (screenState) { in onScreenStateChanged()