Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeScreenState.java80 int screenState = newState.screenState(mParameters); in transitionTo() local
88 applyScreenState(screenState); in transitionTo()
93 if (screenState == Display.STATE_UNKNOWN) { in transitionTo()
110 mPendingScreenState = screenState; in transitionTo()
122 Log.d(TAG, "Display state changed to " + screenState + " delayed by " in transitionTo()
132 Log.d(TAG, "Pending display state change to " + screenState); in transitionTo()
135 mDozeHost.prepareForGentleSleep(() -> applyScreenState(screenState)); in transitionTo()
137 applyScreenState(screenState); in transitionTo()
146 private void applyScreenState(int screenState) { in applyScreenState() argument
147 if (screenState != Display.STATE_UNKNOWN) { in applyScreenState()
[all …]
DDozeMachine.java117 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.java89 assertEquals(Display.STATE_OFF, mServiceFake.screenState); in testScreen_offInDoze()
97 assertEquals(Display.STATE_DOZE_SUSPEND, mServiceFake.screenState); in testScreen_onInAod()
108 assertEquals(Display.STATE_ON, mServiceFake.screenState); in testScreen_onInPulse()
118 assertEquals(Display.STATE_OFF, mServiceFake.screenState); in testScreen_offInRequestPulseWithoutAoD()
128 assertEquals(Display.STATE_OFF, mServiceFake.screenState); in testScreen_offInRequestPulseWithAoD()
136 assertEquals(Display.STATE_ON, mServiceFake.screenState); in testScreen_onInDockedAod()
152 assertEquals(Display.STATE_DOZE_SUSPEND, mServiceFake.screenState); in test_initialScreenStatePostedToHandler()
217 assertEquals(Display.STATE_OFF, mServiceFake.screenState); in test_animatesPausing()
233 assertEquals(Display.STATE_OFF, mServiceFake.screenState); in test_animatesOff()
/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.java79 public int screenState; field in KeyguardServiceDelegate.KeyguardState
187 if (mKeyguardState.screenState == SCREEN_STATE_ON
188 || mKeyguardState.screenState == SCREEN_STATE_TURNING_ON) {
192 if (mKeyguardState.screenState == SCREEN_STATE_ON) {
324 mKeyguardState.screenState = SCREEN_STATE_TURNING_OFF; in onScreenTurningOff()
332 mKeyguardState.screenState = SCREEN_STATE_OFF; in onScreenTurnedOff()
346 mKeyguardState.screenState = SCREEN_STATE_TURNING_ON; in onScreenTurningOn()
354 mKeyguardState.screenState = SCREEN_STATE_ON; in onScreenTurnedOn()
433 proto.write(SCREEN_STATE, mKeyguardState.screenState); in dumpDebug()
454 pw.println(prefix + "screenState=" + screenStateToString(mKeyguardState.screenState)); in dump()
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamManagerService.java256 private void startDozingInternal(IBinder token, int screenState, in startDozingInternal() argument
260 + ", screenState=" + screenState in startDozingInternal()
266 mCurrentDreamDozeScreenState = screenState; in startDozingInternal()
269 screenState, screenBrightness); in startDozingInternal()
685 public void startDozing(IBinder token, int screenState, int screenBrightness) { in startDozing() argument
693 startDozingInternal(token, screenState, screenBrightness); in startDozing()
/frameworks/base/services/core/java/com/android/server/am/
DBatteryExternalStatsWorker.java295 int flags, boolean onBattery, boolean onBatteryScreenOff, int screenState) { in scheduleSyncDueToScreenStateChange() argument
303 mScreenState = screenState; in scheduleSyncDueToScreenStateChange()
434 final int screenState;
442 screenState = mScreenState;
464 onBatteryScreenOff, screenState, useLatestStates);
509 boolean onBatteryScreenOff, int screenState, boolean useLatestStates) { in updateExternalStatsLocked() argument
665 mStats.updateDisplayMeasuredEnergyStatsLocked(displayChargeUC, screenState, in updateExternalStatsLocked()
/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/com/android/internal/power/
DMeasuredEnergyStats.java281 public static @StandardPowerBucket int getDisplayPowerBucket(int screenState) { in getDisplayPowerBucket() argument
282 if (Display.isOnState(screenState)) { in getDisplayPowerBucket()
285 if (Display.isDozeState(screenState)) { in getDisplayPowerBucket()
/frameworks/base/core/java/android/os/
DPowerManagerInternal.java143 int screenState, int screenBrightness); in setDozeOverrideFromDreamManager() argument
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DMockBatteryStatsImpl.java216 int flag, boolean onBattery, boolean onBatteryScreenOff, int screenState) { in scheduleSyncDueToScreenStateChange() argument
DBatteryStatsCpuTimesTest.java1303 private void updateTimeBasesLocked(boolean unplugged, int screenState, in updateTimeBasesLocked() argument
1308 mBatteryStatsImpl.updateTimeBasesLocked(unplugged, screenState, upTime, realTime); in updateTimeBasesLocked()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DBatterySaverPolicyTest.java229 final PowerSaveState screenState = in verifyBatterySaverConstantsUpdated() local
231 assertThat(screenState.batterySaverEnabled).isFalse(); in verifyBatterySaverConstantsUpdated()
232 assertThat(screenState.brightnessFactor).isWithin(PRECISION).of(BRIGHTNESS_FACTOR); in verifyBatterySaverConstantsUpdated()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java3953 int screenState, int screenBrightness) {
3955 if (mDozeScreenStateOverrideFromDreamManager != screenState
3957 mDozeScreenStateOverrideFromDreamManager = screenState;
6017 public void setDozeOverrideFromDreamManager(int screenState, int screenBrightness) {
6018 switch (screenState) {
6028 screenState = Display.STATE_UNKNOWN;
6035 setDozeOverrideFromDreamManagerInternal(screenState, screenBrightness);
/frameworks/base/services/core/java/com/android/server/display/
DDisplayPowerController.java2328 private void noteScreenState(int screenState) { in noteScreenState() argument
2332 mBatteryStats.noteScreenState(screenState); in noteScreenState()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java693 boolean onBatteryScreenOff, int screenState); in scheduleSyncDueToScreenStateChange() argument
3839 public void updateTimeBasesLocked(boolean unplugged, int screenState, long uptimeUs, in updateTimeBasesLocked() argument
3841 final boolean screenOff = !Display.isOnState(screenState); in updateTimeBasesLocked()
3860 + Display.stateToString(screenState) in updateTimeBasesLocked()
12553 public void updateDisplayMeasuredEnergyStatsLocked(long chargeUC, int screenState, in updateDisplayMeasuredEnergyStatsLocked() argument
12562 mScreenStateAtLastEnergyMeasurement = screenState; in updateDisplayMeasuredEnergyStatsLocked()
13521 final int screenState = mScreenState; in setOnBatteryLocked() local
13606 if (Display.isOnState(screenState)) { in setOnBatteryLocked()
13610 } else if (Display.isDozeState(screenState)) { in setOnBatteryLocked()
13622 updateTimeBasesLocked(true, screenState, uptimeUs, realtimeUs); in setOnBatteryLocked()
[all …]
/frameworks/av/services/audioflinger/
DAudioFlinger.cpp1599 String8 screenState; in setParameters() local
1600 if (param.get(String8(AudioParameter::keyScreenState), screenState) == NO_ERROR) { in setParameters()
1601 bool isOff = (screenState == AudioParameter::valueOff); in setParameters()
DThreads.cpp3180 uint32_t screenState = AudioFlinger::mScreenState; in threadLoop_write() local
3181 if (screenState != mScreenState) { in threadLoop_write()
3182 mScreenState = screenState; in threadLoop_write()
/frameworks/base/core/java/android/view/
DViewGroup.java3509 void dispatchScreenStateChanged(int screenState) { in dispatchScreenStateChanged() argument
3510 super.dispatchScreenStateChanged(screenState); in dispatchScreenStateChanged()
3515 children[i].dispatchScreenStateChanged(screenState); in dispatchScreenStateChanged()
DView.java20284 void dispatchScreenStateChanged(int screenState) { in dispatchScreenStateChanged() argument
20285 onScreenStateChanged(screenState); in dispatchScreenStateChanged()
20297 public void onScreenStateChanged(int screenState) { in onScreenStateChanged() argument
/frameworks/base/core/java/android/widget/
DEditor.java1020 void onScreenStateChanged(int screenState) { in onScreenStateChanged() argument
1021 switch (screenState) { in onScreenStateChanged()
DTextView.java7700 public void onScreenStateChanged(int screenState) { in onScreenStateChanged() argument
7701 super.onScreenStateChanged(screenState); in onScreenStateChanged()
7702 if (mEditor != null) mEditor.onScreenStateChanged(screenState); in onScreenStateChanged()