/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeScreenState.java | 133 int screenState = newState.screenState(mParameters); in transitionTo() local 141 applyScreenState(screenState); in transitionTo() 146 if (screenState == Display.STATE_UNKNOWN) { in transitionTo() 163 mPendingScreenState = screenState; in transitionTo() 175 Log.d(TAG, "Display state changed to " + screenState + " delayed by " in transitionTo() 189 mPendingScreenState = screenState; in transitionTo() 200 Log.d(TAG, "Pending display state change to " + screenState); in transitionTo() 207 mDozeHost.prepareForGentleSleep(() -> applyScreenState(screenState)); in transitionTo() 209 applyScreenState(screenState); in transitionTo() 224 private void applyScreenState(int screenState) { in applyScreenState() argument [all …]
|
D | DozeMachine.java | 120 int screenState(DozeParameters parameters) { in screenState() method in DozeMachine.State
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeScreenStateTest.java | 114 assertEquals(Display.STATE_OFF, mServiceFake.screenState); in testScreen_offInDoze() 122 assertEquals(Display.STATE_DOZE_SUSPEND, mServiceFake.screenState); in testScreen_onInAod() 133 assertEquals(Display.STATE_ON, mServiceFake.screenState); in testScreen_onInPulse() 143 assertEquals(Display.STATE_OFF, mServiceFake.screenState); in testScreen_offInRequestPulseWithoutAoD() 153 assertEquals(Display.STATE_OFF, mServiceFake.screenState); in testScreen_offInRequestPulseWithAoD() 161 assertEquals(Display.STATE_ON, mServiceFake.screenState); in testScreen_onInDockedAod() 177 assertEquals(Display.STATE_DOZE_SUSPEND, mServiceFake.screenState); in test_initialScreenStatePostedToHandler() 242 assertEquals(Display.STATE_OFF, mServiceFake.screenState); in test_animatesPausing() 258 assertEquals(Display.STATE_OFF, mServiceFake.screenState); in test_animatesOff() 276 assertEquals(Display.STATE_ON, mServiceFake.screenState); in testDelayEnterDozeScreenState_whenUdfpsFingerDown() [all …]
|
D | DozeServiceFake.java | 30 public int screenState; field in DozeServiceFake 46 screenState = state; in setDozeScreenState() 62 screenState = Display.STATE_UNKNOWN; in reset()
|
D | DozeMachineTest.java | 487 assertEquals(Display.STATE_OFF, DOZE_REQUEST_PULSE.screenState(dozeParameters)); in testDozePulsing_displayRequiresBlanking_screenState() 495 assertEquals(Display.STATE_ON, DOZE_REQUEST_PULSE.screenState(dozeParameters)); in testDozePulsing_displayDoesNotRequireBlanking_screenState() 588 assertEquals(Display.STATE_OFF, DOZE_SUSPEND_TRIGGERS.screenState(null)); in testDozeSuppressTriggers_screenState()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | ScreenLifecycle.java | 81 private void setScreenState(int screenState) { in setScreenState() argument 82 mScreenState = screenState; in setScreenState() 83 Trace.traceCounter(Trace.TRACE_TAG_APP, "screenState", screenState); in setScreenState()
|
/frameworks/base/services/core/java/com/android/server/policy/keyguard/ |
D | KeyguardServiceDelegate.java | 93 public int screenState; field in KeyguardServiceDelegate.KeyguardState 205 if (mKeyguardState.screenState == SCREEN_STATE_ON 206 || mKeyguardState.screenState == SCREEN_STATE_TURNING_ON) { 210 if (mKeyguardState.screenState == SCREEN_STATE_ON) { 342 mKeyguardState.screenState = SCREEN_STATE_TURNING_OFF; in onScreenTurningOff() 350 mKeyguardState.screenState = SCREEN_STATE_OFF; in onScreenTurnedOff() 364 mKeyguardState.screenState = SCREEN_STATE_TURNING_ON; in onScreenTurningOn() 372 mKeyguardState.screenState = SCREEN_STATE_ON; in onScreenTurnedOn() 470 proto.write(SCREEN_STATE, mKeyguardState.screenState); in dumpDebug() 490 pw.println(prefix + "screenState=" + screenStateToString(mKeyguardState.screenState)); in dump()
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | PowerStatsAggregator.java | 108 int screenState = in aggregatePowerStats() local 112 if (screenState != mCurrentScreenState) { in aggregatePowerStats() 113 mStats.setDeviceState(AggregatedPowerStatsConfig.STATE_SCREEN, screenState, in aggregatePowerStats() 115 mCurrentScreenState = screenState; in aggregatePowerStats()
|
D | BatteryExternalStatsWorker.java | 263 boolean onBatteryScreenOff, int screenState, int[] perDisplayScreenStates) { in scheduleSyncDueToScreenStateChange() argument 271 mScreenState = screenState; in scheduleSyncDueToScreenStateChange() 458 final int screenState; 466 screenState = mScreenState; 491 onBatteryScreenOff, screenState, displayScreenStates, 535 boolean onBatteryScreenOff, int screenState, int[] displayScreenStates,
|
D | BatteryStatsImpl.java | 863 boolean onBatteryScreenOff, int screenState, int[] perDisplayScreenStates); in scheduleSyncDueToScreenStateChange() argument 1005 public int screenState = Display.STATE_UNKNOWN; field in BatteryStatsImpl.DisplayBatteryStats 4547 public void updateTimeBasesLocked(boolean unplugged, int screenState, long uptimeUs, in updateTimeBasesLocked() argument 4549 final boolean screenOff = !Display.isOnState(screenState); in updateTimeBasesLocked() 4568 + Display.stateToString(screenState) in updateTimeBasesLocked() 4975 final int primaryScreenState = mPerDisplayBatteryStats[0].screenState; in setPretendScreenOff() 5546 final int oldDisplayState = displayStats.screenState; in noteScreenStateLocked() 5552 displayStats.screenState = displayState; in noteScreenStateLocked() 5633 final int tempState = mPerDisplayBatteryStats[i].screenState; in noteScreenStateLocked() 5730 displayStates[i] = mPerDisplayBatteryStats[i].screenState; in noteScreenStateLocked() [all …]
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | MultiStateStatsTest.java | 239 states[i].screenState ? 0 : 1 in getSerialStates() 246 private State state(boolean batteryState, boolean screenState, int procstate) { in state() argument 249 state.screenState = screenState; in state() 256 public boolean screenState; field in MultiStateStatsTest.State
|
D | MockBatteryStatsImpl.java | 307 boolean onBatteryScreenOff, int screenState, int[] perDisplayScreenStates) { in scheduleSyncDueToScreenStateChange() argument
|
D | BatteryStatsCpuTimesTest.java | 1392 private void updateTimeBasesLocked(boolean unplugged, int screenState, in updateTimeBasesLocked() argument 1394 mBatteryStatsImpl.updateTimeBasesLocked(unplugged, screenState, upTime, realTime); in updateTimeBasesLocked()
|
/frameworks/base/core/java/android/service/dreams/ |
D | IDreamManager.aidl | 43 void startDozing(in IBinder token, int screenState, int reason, int screenBrightness); in startDozing() argument
|
/frameworks/base/core/java/android/os/ |
D | PowerManagerInternal.java | 144 int screenState, @Display.StateReason int reason, int screenBrightness); in setDozeOverrideFromDreamManager() argument
|
/frameworks/base/core/java/com/android/internal/power/ |
D | EnergyConsumerStats.java | 522 public static @StandardPowerBucket int getDisplayPowerBucket(int screenState) { in getDisplayPowerBucket() argument 523 if (Display.isOnState(screenState)) { in getDisplayPowerBucket() 526 if (Display.isDozeState(screenState)) { in getDisplayPowerBucket()
|
/frameworks/base/services/core/java/com/android/server/dreams/ |
D | DreamManagerService.java | 545 private void startDozingInternal(IBinder token, int screenState, in startDozingInternal() argument 549 + ", screenState=" + screenState in startDozingInternal() 555 mCurrentDream.dozeScreenState = screenState; in startDozingInternal() 558 screenState, reason, screenBrightness); in startDozingInternal() 1083 IBinder token, int screenState, @Display.StateReason int reason, in startDozing() argument 1092 startDozingInternal(token, screenState, reason, screenBrightness); in startDozing()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/ |
D | BatterySaverPolicyTest.java | 250 final PowerSaveState screenState = in verifyBatterySaverConstantsUpdated() local 252 assertThat(screenState.batterySaverEnabled).isFalse(); in verifyBatterySaverConstantsUpdated() 253 assertThat(screenState.brightnessFactor).isWithin(PRECISION).of(BRIGHTNESS_FACTOR); in verifyBatterySaverConstantsUpdated()
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerManagerService.java | 4463 int screenState, @Display.StateReason int reason, int screenBrightness) { 4465 if (mDozeScreenStateOverrideFromDreamManager != screenState 4467 mDozeScreenStateOverrideFromDreamManager = screenState; 7101 int screenState, int reason, int screenBrightness) { 7102 switch (screenState) { 7111 screenState = Display.STATE_UNKNOWN; 7118 setDozeOverrideFromDreamManagerInternal(screenState, reason, screenBrightness);
|
/frameworks/base/services/core/java/com/android/server/display/ |
D | DisplayPowerController.java | 2764 private void noteScreenState(int screenState, @Display.StateReason int reason) { in noteScreenState() argument 2767 screenState, mDisplayStatsId, reason); in noteScreenState() 2771 mBatteryStats.noteScreenState(screenState); in noteScreenState()
|
/frameworks/av/services/audioflinger/ |
D | AudioFlinger.cpp | 1849 String8 screenState; in setParameters() local 1850 if (param.get(String8(AudioParameter::keyScreenState), screenState) == NO_ERROR) { in setParameters() 1851 bool isOff = (screenState == AudioParameter::valueOff); in setParameters()
|
D | Threads.cpp | 3561 const uint32_t screenState = mAfThreadCallback->getScreenState(); in threadLoop_write() local 3562 if (screenState != mScreenState) { in threadLoop_write() 3563 mScreenState = screenState; in threadLoop_write()
|
/frameworks/base/core/java/android/view/ |
D | ViewGroup.java | 3511 void dispatchScreenStateChanged(int screenState) { in dispatchScreenStateChanged() argument 3512 super.dispatchScreenStateChanged(screenState); in dispatchScreenStateChanged() 3517 children[i].dispatchScreenStateChanged(screenState); in dispatchScreenStateChanged()
|
D | View.java | 22371 void dispatchScreenStateChanged(int screenState) { in dispatchScreenStateChanged() argument 22372 onScreenStateChanged(screenState); in dispatchScreenStateChanged() 22384 public void onScreenStateChanged(int screenState) { in onScreenStateChanged() argument
|
/frameworks/base/core/java/android/widget/ |
D | Editor.java | 1083 void onScreenStateChanged(int screenState) { in onScreenStateChanged() argument 1084 switch (screenState) { in onScreenStateChanged()
|