Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeScreenState.java133 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 …]
DDozeMachine.java120 int screenState(DozeParameters parameters) { in screenState() method in DozeMachine.State
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeScreenStateTest.java114 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 …]
DDozeServiceFake.java30 public int screenState; field in DozeServiceFake
46 screenState = state; in setDozeScreenState()
62 screenState = Display.STATE_UNKNOWN; in reset()
DDozeMachineTest.java487 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/
DScreenLifecycle.java81 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/
DKeyguardServiceDelegate.java93 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/
DPowerStatsAggregator.java108 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()
DBatteryExternalStatsWorker.java263 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,
DBatteryStatsImpl.java863 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/
DMultiStateStatsTest.java239 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
DMockBatteryStatsImpl.java307 boolean onBatteryScreenOff, int screenState, int[] perDisplayScreenStates) { in scheduleSyncDueToScreenStateChange() argument
DBatteryStatsCpuTimesTest.java1392 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/
DIDreamManager.aidl43 void startDozing(in IBinder token, int screenState, int reason, int screenBrightness); in startDozing() argument
/frameworks/base/core/java/android/os/
DPowerManagerInternal.java144 int screenState, @Display.StateReason int reason, int screenBrightness); in setDozeOverrideFromDreamManager() argument
/frameworks/base/core/java/com/android/internal/power/
DEnergyConsumerStats.java522 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/
DDreamManagerService.java545 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/
DBatterySaverPolicyTest.java250 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/
DPowerManagerService.java4463 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/
DDisplayPowerController.java2764 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/
DAudioFlinger.cpp1849 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()
DThreads.cpp3561 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/
DViewGroup.java3511 void dispatchScreenStateChanged(int screenState) { in dispatchScreenStateChanged() argument
3512 super.dispatchScreenStateChanged(screenState); in dispatchScreenStateChanged()
3517 children[i].dispatchScreenStateChanged(screenState); in dispatchScreenStateChanged()
DView.java22371 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/
DEditor.java1083 void onScreenStateChanged(int screenState) { in onScreenStateChanged() argument
1084 switch (screenState) { in onScreenStateChanged()

12