/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeScreenState.java | 65 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 …]
|
D | DozeMachine.java | 99 int screenState(DozeParameters parameters) { in screenState() method in DozeMachine.State
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeServiceFake.java | 30 public int screenState; field in DozeServiceFake 46 screenState = state; in setDozeScreenState() 62 screenState = Display.STATE_UNKNOWN; in reset()
|
D | DozeScreenStateTest.java | 79 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/ |
D | ScreenLifecycle.java | 76 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/ |
D | KeyguardServiceDelegate.java | 77 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/ |
D | DreamManagerService.java | 224 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/ |
D | BatterySaverPolicyTest.java | 213 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/ |
D | IDreamManager.aidl | 39 void startDozing(in IBinder token, int screenState, int screenBrightness); in startDozing() argument
|
/frameworks/base/core/java/android/os/ |
D | PowerManagerInternal.java | 142 int screenState, int screenBrightness); in setDozeOverrideFromDreamManager() argument
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerManagerService.java | 3239 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/ |
D | BatteryStatsCpuTimesTest.java | 1304 private void updateTimeBasesLocked(boolean unplugged, int screenState, in updateTimeBasesLocked() argument 1309 mBatteryStatsImpl.updateTimeBasesLocked(unplugged, screenState, upTime, realTime); in updateTimeBasesLocked()
|
/frameworks/av/services/audioflinger/ |
D | AudioFlinger.cpp | 1550 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()
|
D | Threads.cpp | 2983 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/ |
D | BatteryStatsImpl.java | 3862 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/ |
D | ViewGroup.java | 3449 void dispatchScreenStateChanged(int screenState) { in dispatchScreenStateChanged() argument 3450 super.dispatchScreenStateChanged(screenState); in dispatchScreenStateChanged() 3455 children[i].dispatchScreenStateChanged(screenState); in dispatchScreenStateChanged()
|
D | View.java | 19639 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/ |
D | TextView.java | 7571 public void onScreenStateChanged(int screenState) { in onScreenStateChanged() argument 7572 super.onScreenStateChanged(screenState); in onScreenStateChanged() 7573 if (mEditor != null) mEditor.onScreenStateChanged(screenState); in onScreenStateChanged()
|
D | Editor.java | 811 void onScreenStateChanged(int screenState) { in onScreenStateChanged() argument 812 switch (screenState) { in onScreenStateChanged()
|