/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeScreenState.java | 39 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()
|
D | DozeMachine.java | 90 int screenState() { in screenState() method in DozeMachine.State
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeScreenStateTest.java | 64 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()
|
D | DozeServiceFake.java | 30 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/ |
D | ScreenLifecycle.java | 68 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/ |
D | KeyguardServiceDelegate.java | 71 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/ |
D | BatterySaverPolicyTest.java | 154 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/ |
D | DreamManagerService.java | 225 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/ |
D | IDreamManager.aidl | 34 void startDozing(in IBinder token, int screenState, int screenBrightness); in startDozing() argument
|
/frameworks/base/core/java/android/os/ |
D | PowerManagerInternal.java | 122 int screenState, int screenBrightness); in setDozeOverrideFromDreamManager() argument
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerManagerService.java | 3111 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/ |
D | AudioFlinger.cpp | 1207 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()
|
D | Threads.cpp | 2652 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/ |
D | BatteryStatsImpl.java | 3569 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/ |
D | ViewGroup.java | 3345 void dispatchScreenStateChanged(int screenState) { in dispatchScreenStateChanged() argument 3346 super.dispatchScreenStateChanged(screenState); in dispatchScreenStateChanged() 3351 children[i].dispatchScreenStateChanged(screenState); in dispatchScreenStateChanged()
|
D | View.java | 16995 void dispatchScreenStateChanged(int screenState) { 16996 onScreenStateChanged(screenState); 17008 public void onScreenStateChanged(int screenState) {
|
/frameworks/base/core/java/android/widget/ |
D | TextView.java | 6481 public void onScreenStateChanged(int screenState) { in onScreenStateChanged() argument 6482 super.onScreenStateChanged(screenState); in onScreenStateChanged() 6483 if (mEditor != null) mEditor.onScreenStateChanged(screenState); in onScreenStateChanged()
|
D | Editor.java | 712 void onScreenStateChanged(int screenState) { in onScreenStateChanged() argument 713 switch (screenState) { in onScreenStateChanged()
|