Home
last modified time | relevance | path

Searched refs:mDozeHost (Results 1 – 7 of 7) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeScreenBrightnessTest.java70 DozeHost mDozeHost; field in DozeScreenBrightnessTest
84 }).when(mDozeHost).prepareForGentleSleep(any()); in setUp()
89 mSensor.getSensor(), mBroadcastDispatcher, mDozeHost, null /* handler */, in setUp()
178 null /* sensor */, mBroadcastDispatcher, mDozeHost, null /* handler */, in testPulsing_withoutLightSensor_setsAoDDimmingScrimTransparent()
183 reset(mDozeHost); in testPulsing_withoutLightSensor_setsAoDDimmingScrimTransparent()
187 verify(mDozeHost).setAodDimmingScrim(eq(0f)); in testPulsing_withoutLightSensor_setsAoDDimmingScrimTransparent()
217 null /* sensor */, mBroadcastDispatcher, mDozeHost, null /* handler */, in testNullSensor()
247 verify(mDozeHost).setAodDimmingScrim(eq(10f / 255f)); in testNonPositiveBrightness_keepsPreviousBrightnessAndScrim()
262 reset(mDozeHost); in pausingAod_unblanksAfterSensor()
265 verify(mDozeHost).setAodDimmingScrim(eq(0f)); in pausingAod_unblanksAfterSensor()
[all …]
DDozeScreenStateTest.java66 private DozeHost mDozeHost; field in DozeScreenStateTest
80 mScreen = new DozeScreenState(mServiceFake, mHandlerFake, mDozeHost, mDozeParameters, in setUp()
207 doAnswer(invocation -> null).when(mDozeHost).prepareForGentleSleep(captor.capture()); in test_animatesPausing()
215 verify(mDozeHost).prepareForGentleSleep(eq(captor.getValue())); in test_animatesPausing()
223 doAnswer(invocation -> null).when(mDozeHost).prepareForGentleSleep(captor.capture()); in test_animatesOff()
231 verify(mDozeHost).prepareForGentleSleep(eq(captor.getValue())); in test_animatesOff()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeTriggers.java78 private final DozeHost mDozeHost; field in DozeTriggers
160 mDozeHost = dozeHost; in DozeTriggers()
196 if (mDozeHost.isDozeSuppressed()) { in onNotification()
263 mDozeHost.onSlpiTap(screenX, screenY); in onSensor()
269 mDozeHost.extendPulse(pulseReason); in onSensor()
294 mDozeHost.setAodDimmingScrim(1f);
320 mDozeHost.onIgnoreTouchWhilePulsing(ignoreTouch);
378 mDozeHost.addCallback(mHostCallback); in transitionTo()
412 mDozeHost.removeCallback(mHostCallback); in transitionTo()
423 || mDozeHost.isBlockingDoze() in checkTriggersAtInit()
[all …]
DDozeFactory.java63 private final DozeHost mDozeHost; field in DozeFactory
91 mDozeHost = dozeHost; in DozeFactory()
100 wrappedService = new DozeBrightnessHostForwarder(wrappedService, mDozeHost); in assembleMachine()
108 mDozeHost); in assembleMachine()
112 createDozeTriggers(dozeService, mAsyncSensorManager, mDozeHost, in assembleMachine()
115 createDozeUi(dozeService, mDozeHost, wakeLock, machine, mHandler, in assembleMachine()
117 new DozeScreenState(wrappedService, mHandler, mDozeHost, mDozeParameters, in assembleMachine()
120 mDozeHost, mDozeParameters, mHandler), in assembleMachine()
DDozeScreenState.java57 private final DozeHost mDozeHost; field in DozeScreenState
67 mDozeHost = host; in DozeScreenState()
74 mDozeHost.cancelGentleSleep(); in transitionTo()
128 mDozeHost.prepareForGentleSleep(() -> applyScreenState(screenState)); in transitionTo()
DDozeScreenBrightness.java49 private final DozeHost mDozeHost; field in DozeScreenBrightness
83 mDozeHost = host; in DozeScreenBrightness()
172 mDozeHost.setAodDimmingScrim(scrimOpacity / 255f); in updateBrightnessAndReady()
197 mDozeHost.setAodDimmingScrim(0f); in resetBrightnessToDefault()
DDozeMachine.java140 private final DozeHost mDozeHost; field in DozeMachine
159 mDozeHost = dozeHost; in DozeMachine()
345 if (mDozeHost.isDozeSuppressed() && requestedState.isAlwaysOn()) { in transitionPolicy()