Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeScreenState.java65 int screenState = newState.screenState(mParameters); in transitionTo() local
72 applyScreenState(screenState); in transitionTo()
77 if (screenState == Display.STATE_UNKNOWN) { in transitionTo()
93 mPendingScreenState = screenState; in transitionTo()
105 Log.d(TAG, "Display state changed to " + screenState + " delayed by " in transitionTo()
115 Log.d(TAG, "Pending display state change to " + screenState); in transitionTo()
118 applyScreenState(screenState); in transitionTo()
127 private void applyScreenState(int screenState) { in applyScreenState() argument
128 if (screenState != Display.STATE_UNKNOWN) { in applyScreenState()
129 if (DEBUG) Log.d(TAG, "setDozeScreenState(" + screenState + ")"); in applyScreenState()
[all …]
DDozeMachine.java99 int screenState(DozeParameters parameters) { in screenState() method in DozeMachine.State
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeServiceFake.java30 public int screenState; field in DozeServiceFake
46 screenState = state; in setDozeScreenState()
62 screenState = Display.STATE_UNKNOWN; in reset()
DDozeScreenStateTest.java79 assertEquals(Display.STATE_OFF, mServiceFake.screenState); in testScreen_offInDoze()
87 assertEquals(Display.STATE_DOZE_SUSPEND, mServiceFake.screenState); in testScreen_onInAod()
98 assertEquals(Display.STATE_ON, mServiceFake.screenState); in testScreen_onInPulse()
108 assertEquals(Display.STATE_OFF, mServiceFake.screenState); in testScreen_offInRequestPulseWithoutAoD()
118 assertEquals(Display.STATE_OFF, mServiceFake.screenState); in testScreen_offInRequestPulseWithAoD()
134 assertEquals(Display.STATE_DOZE_SUSPEND, mServiceFake.screenState); in test_initialScreenStatePostedToHandler()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/
DScreenLifecycle.java76 private void setScreenState(int screenState) { in setScreenState() argument
77 mScreenState = screenState; in setScreenState()
78 Trace.traceCounter(Trace.TRACE_TAG_APP, "screenState", screenState); in setScreenState()
/frameworks/base/services/core/java/com/android/server/policy/keyguard/
DKeyguardServiceDelegate.java77 public int screenState; field in KeyguardServiceDelegate.KeyguardState
184 if (mKeyguardState.screenState == SCREEN_STATE_ON
185 || mKeyguardState.screenState == SCREEN_STATE_TURNING_ON) {
189 if (mKeyguardState.screenState == SCREEN_STATE_ON) {
315 mKeyguardState.screenState = SCREEN_STATE_TURNING_OFF; in onScreenTurningOff()
323 mKeyguardState.screenState = SCREEN_STATE_OFF; in onScreenTurnedOff()
337 mKeyguardState.screenState = SCREEN_STATE_TURNING_ON; in onScreenTurningOn()
345 mKeyguardState.screenState = SCREEN_STATE_ON; in onScreenTurnedOn()
421 proto.write(SCREEN_STATE, mKeyguardState.screenState); in writeToProto()
442 pw.println(prefix + "screenState=" + screenStateToString(mKeyguardState.screenState)); in dump()
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamManagerService.java224 private void startDozingInternal(IBinder token, int screenState, in startDozingInternal() argument
228 + ", screenState=" + screenState in startDozingInternal()
234 mCurrentDreamDozeScreenState = screenState; in startDozingInternal()
237 screenState, screenBrightness); in startDozingInternal()
617 public void startDozing(IBinder token, int screenState, int screenBrightness) { in startDozing() argument
625 startDozingInternal(token, screenState, screenBrightness); in startDozing()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DBatterySaverPolicyTest.java213 final PowerSaveState screenState = in verifyBatterySaverConstantsUpdated() local
215 assertThat(screenState.batterySaverEnabled).isFalse(); in verifyBatterySaverConstantsUpdated()
216 assertThat(screenState.brightnessFactor).isWithin(PRECISION).of(BRIGHTNESS_FACTOR); in verifyBatterySaverConstantsUpdated()
/frameworks/base/core/java/android/service/dreams/
DIDreamManager.aidl39 void startDozing(in IBinder token, int screenState, int screenBrightness); in startDozing() argument
/frameworks/base/core/java/android/os/
DPowerManagerInternal.java142 int screenState, int screenBrightness); in setDozeOverrideFromDreamManager() argument
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java3239 int screenState, int screenBrightness) { in setDozeOverrideFromDreamManagerInternal() argument
3241 if (mDozeScreenStateOverrideFromDreamManager != screenState in setDozeOverrideFromDreamManagerInternal()
3243 mDozeScreenStateOverrideFromDreamManager = screenState; in setDozeOverrideFromDreamManagerInternal()
4921 public void setDozeOverrideFromDreamManager(int screenState, int screenBrightness) { in setDozeOverrideFromDreamManager() argument
4922 switch (screenState) { in setDozeOverrideFromDreamManager()
4932 screenState = Display.STATE_UNKNOWN; in setDozeOverrideFromDreamManager()
4939 setDozeOverrideFromDreamManagerInternal(screenState, screenBrightness); in setDozeOverrideFromDreamManager()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsCpuTimesTest.java1304 private void updateTimeBasesLocked(boolean unplugged, int screenState, in updateTimeBasesLocked() argument
1309 mBatteryStatsImpl.updateTimeBasesLocked(unplugged, screenState, upTime, realTime); in updateTimeBasesLocked()
/frameworks/av/services/audioflinger/
DAudioFlinger.cpp1550 String8 screenState; in setParameters() local
1551 if (param.get(String8(AudioParameter::keyScreenState), screenState) == NO_ERROR) { in setParameters()
1552 bool isOff = (screenState == AudioParameter::valueOff); in setParameters()
DThreads.cpp2983 uint32_t screenState = AudioFlinger::mScreenState; in threadLoop_write() local
2984 if (screenState != mScreenState) { in threadLoop_write()
2985 mScreenState = screenState; in threadLoop_write()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java3862 public void updateTimeBasesLocked(boolean unplugged, int screenState, long uptime, in updateTimeBasesLocked() argument
3864 final boolean screenOff = !isScreenOn(screenState); in updateTimeBasesLocked()
3882 + Display.stateToString(screenState) in updateTimeBasesLocked()
12058 final int screenState = mScreenState; in setOnBatteryLocked() local
12136 if (isScreenOn(screenState)) { in setOnBatteryLocked()
12140 } else if (isScreenDoze(screenState)) { in setOnBatteryLocked()
12152 updateTimeBasesLocked(true, screenState, uptime, realtime); in setOnBatteryLocked()
12167 updateDischargeScreenLevelsLocked(screenState, screenState); in setOnBatteryLocked()
12168 updateTimeBasesLocked(false, screenState, uptime, realtime); in setOnBatteryLocked()
/frameworks/base/core/java/android/view/
DViewGroup.java3449 void dispatchScreenStateChanged(int screenState) { in dispatchScreenStateChanged() argument
3450 super.dispatchScreenStateChanged(screenState); in dispatchScreenStateChanged()
3455 children[i].dispatchScreenStateChanged(screenState); in dispatchScreenStateChanged()
DView.java19639 void dispatchScreenStateChanged(int screenState) { in dispatchScreenStateChanged() argument
19640 onScreenStateChanged(screenState); in dispatchScreenStateChanged()
19652 public void onScreenStateChanged(int screenState) { in onScreenStateChanged() argument
/frameworks/base/core/java/android/widget/
DTextView.java7571 public void onScreenStateChanged(int screenState) { in onScreenStateChanged() argument
7572 super.onScreenStateChanged(screenState); in onScreenStateChanged()
7573 if (mEditor != null) mEditor.onScreenStateChanged(screenState); in onScreenStateChanged()
DEditor.java811 void onScreenStateChanged(int screenState) { in onScreenStateChanged() argument
812 switch (screenState) { in onScreenStateChanged()