Searched refs:mDozeHost (Results 1 – 8 of 8) sorted by relevance
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeSuppressor.java | 56 private final DozeHost mDozeHost; field in DozeSuppressor 71 mDozeHost = dozeHost; in DozeSuppressor() 106 mDozeHost.addCallback(mHostCallback); in transitionTo() 119 mDozeHost.removeCallback(mHostCallback); in destroy() 130 if (!mDozeHost.isProvisioned()) { in checkShouldImmediatelyEndDoze() 147 pw.println(" isProvisioned=" + mDozeHost.isProvisioned()); in dump() 148 pw.println(" isAlwaysOnSuppressed=" + mDozeHost.isAlwaysOnSuppressed()); in dump() 149 pw.println(" aodPowerSaveActive=" + mDozeHost.isPowerSaveActive()); in dump() 169 if (mDozeHost.isPowerSaveActive()) { 177 mDozeLog.tracePowerSaveChanged(mDozeHost.isPowerSaveActive(), nextState);
|
D | DozeTriggers.java | 93 private final DozeHost mDozeHost; field in DozeTriggers 210 mDozeHost = dozeHost; in DozeTriggers() 259 if (mDozeHost.isAlwaysOnSuppressed()) { in onNotification() 335 mDozeHost.onSlpiTap(screenX, screenY); in onSensor() 358 mDozeHost.extendPulse(pulseReason); in onSensor() 384 mDozeHost.setAodDimmingScrim(1f); 407 mDozeHost.onIgnoreTouchWhilePulsing(near); in onProximityFar() 515 mDozeHost.addCallback(mHostCallback); in registerCallbacks() 521 mDozeHost.removeCallback(mHostCallback); in unregisterCallbacks() 554 mDozeHost.extendPulse(reason); in requestPulse() [all …]
|
D | DozeScreenState.java | 78 private final DozeHost mDozeHost; field in DozeScreenState 104 mDozeHost = host; in DozeScreenState() 134 mDozeHost.cancelGentleSleep(); in transitionTo() 207 mDozeHost.prepareForGentleSleep(() -> applyScreenState(screenState)); in transitionTo()
|
D | DozeScreenBrightness.java | 74 private final DozeHost mDozeHost; field in DozeScreenBrightness 125 mDozeHost = host; in DozeScreenBrightness() 212 mDozeHost.setAodDimmingScrim(scrimOpacity / 255f); in updateBrightnessAndReady() 260 mDozeHost.setAodDimmingScrim(0f); in resetBrightnessToDefault()
|
D | DozeMachine.java | 150 private final DozeHost mDozeHost; field in DozeMachine 172 mDozeHost = dozeHost; in DozeMachine() 389 if (mDozeHost.isAlwaysOnSuppressed() && requestedState.isAlwaysOn()) { in transitionPolicy() 394 if (mDozeHost.isPowerSaveActive() && requestedState.isAlwaysOn()) { in transitionPolicy()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeSuppressorTest.java | 71 private DozeHost mDozeHost; field in DozeSuppressorTest 95 when(mDozeHost.isProvisioned()).thenReturn(true); in setUp() 99 mDozeHost, in setUp() 121 verify(mDozeHost).removeCallback(mDozeHostCallback); in testRegistersListenersOnInitialized_unregisteredOnFinish() 218 when(mDozeHost.isProvisioned()).thenReturn(false); in testEndDoze_unprovisioned() 242 when(mDozeHost.isPowerSaveActive()).thenReturn(true); in testPowerSaveChanged_active() 263 when(mDozeHost.isPowerSaveActive()).thenReturn(false); in testPowerSaveChanged_notActive() 301 verify(mDozeHost).addCallback(mDozeHostCaptor.capture()); in captureDozeHostCallback()
|
D | DozeScreenBrightnessTest.java | 88 DozeHost mDozeHost; field in DozeScreenBrightnessTest 114 }).when(mDozeHost).prepareForGentleSleep(any()); in setUp() 131 mDozeHost, in setUp() 255 mDozeHost, null /* handler */, in testPulsing_withoutLightSensor_setsAoDDimmingScrimTransparent() 264 reset(mDozeHost); in testPulsing_withoutLightSensor_setsAoDDimmingScrimTransparent() 268 verify(mDozeHost).setAodDimmingScrim(eq(0f)); in testPulsing_withoutLightSensor_setsAoDDimmingScrimTransparent() 293 mDozeHost, null /* handler */, in testNullSensor() 325 mDozeHost, null /* handler */, in testSensorsSupportPostures_closed() 364 mDozeHost, null /* handler */, in testSensorsSupportPostures_open() 407 mDozeHost, null /* handler */, in testSensorsSupportPostures_swapPostures() [all …]
|
D | DozeScreenStateTest.java | 74 private DozeHost mDozeHost; field in DozeScreenStateTest 104 mScreen = new DozeScreenState(mServiceFake, mHandlerFake, mDozeHost, mDozeParameters, in setUp() 232 doAnswer(invocation -> null).when(mDozeHost).prepareForGentleSleep(captor.capture()); in test_animatesPausing() 240 verify(mDozeHost).prepareForGentleSleep(eq(captor.getValue())); in test_animatesPausing() 248 doAnswer(invocation -> null).when(mDozeHost).prepareForGentleSleep(captor.capture()); in test_animatesOff() 256 verify(mDozeHost).prepareForGentleSleep(eq(captor.getValue())); in test_animatesOff()
|