/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | DozeParametersTest.java | 70 private DozeParameters mDozeParameters; field in DozeParametersTest 116 mDozeParameters = new DozeParameters( in setup() 153 mDozeParameters.setControlScreenOffAnimation(true); in testSetControlScreenOffAnimation_setsDozeAfterScreenOff_correctly() 158 mDozeParameters.setControlScreenOffAnimation(false); in testSetControlScreenOffAnimation_setsDozeAfterScreenOff_correctly() 164 mDozeParameters.setControlScreenOffAnimation(true); in testGetWallpaperAodDuration_when_shouldControlScreenOff() 167 mDozeParameters.getWallpaperAodDuration(), in testGetWallpaperAodDuration_when_shouldControlScreenOff() 174 mDozeParameters.onTuningChanged(Settings.Secure.DOZE_ALWAYS_ON, "1"); in testGetAlwaysOn() 176 assertThat(mDozeParameters.getAlwaysOn()).isTrue(); in testGetAlwaysOn() 183 mDozeParameters.onTuningChanged(Settings.Secure.DOZE_ALWAYS_ON, "1"); in testGetAlwaysOn_whenBatterySaver() 186 assertThat(mDozeParameters.getAlwaysOn()).isFalse(); in testGetAlwaysOn_whenBatterySaver() [all …]
|
D | LegacyNotificationIconAreaControllerImplTest.java | 68 DozeParameters mDozeParameters; field in LegacyNotificationIconAreaControllerImplTest 96 mDozeParameters, in setup() 124 when(mDozeParameters.shouldControlScreenOff()).thenReturn(false); in testAppearResetsTranslation()
|
D | DozeScrimControllerTest.java | 45 private DozeParameters mDozeParameters; field in DozeScrimControllerTest 55 mDozeScrimController = new DozeScrimController(mDozeParameters, mDozeLog, in setup()
|
D | ScrimControllerTest.java | 138 @Mock private DozeParameters mDozeParameters; field in ScrimControllerTest 258 when(mDozeParameters.getAlwaysOn()).thenAnswer(invocation -> mAlwaysOnEnabled); in setup() 259 when(mDozeParameters.getDisplayNeedsBlanking()).thenReturn(true); in setup() 279 mDozeParameters, in setup() 1223 when(mDozeParameters.getDisplayNeedsBlanking()).thenReturn(false); in blankingNotRequired_leavingAoD() 1227 mDozeParameters, in blankingNotRequired_leavingAoD() 1491 when(mDozeParameters.shouldControlScreenOff()).thenReturn(false); in testAnimatesTransitionToAod() 1496 reset(mDozeParameters); in testAnimatesTransitionToAod() 1497 when(mDozeParameters.shouldControlScreenOff()).thenReturn(true); in testAnimatesTransitionToAod()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeWallpaperStateTest.java | 50 @Mock DozeParameters mDozeParameters; field in DozeWallpaperStateTest 56 mDozeParameters); in setUp() 62 when(mDozeParameters.getAlwaysOn()).thenReturn(true); in testDreamNotification() 71 reset(mDozeParameters); in testDreamNotification() 79 when(mDozeParameters.getDisplayNeedsBlanking()).thenReturn(false); in testAnimates_whenSupported() 80 when(mDozeParameters.shouldControlScreenOff()).thenReturn(true); in testAnimates_whenSupported() 81 when(mDozeParameters.getAlwaysOn()).thenReturn(true); in testAnimates_whenSupported() 96 when(mDozeParameters.getDisplayNeedsBlanking()).thenReturn(true); in testDoesNotAnimate_whenNotSupported() 97 when(mDozeParameters.getAlwaysOn()).thenReturn(true); in testDoesNotAnimate_whenNotSupported() 98 when(mDozeParameters.shouldControlScreenOff()).thenReturn(false); in testDoesNotAnimate_whenNotSupported() [all …]
|
D | DozeScreenBrightnessTest.java | 92 DozeParameters mDozeParameters; field in DozeScreenBrightnessTest 135 mDozeParameters, in setUp() 258 mDozeParameters, in testPulsing_withoutLightSensor_setsAoDDimmingScrimTransparent() 296 mDozeParameters, in testNullSensor() 328 mDozeParameters, in testSensorsSupportPostures_closed() 367 mDozeParameters, in testSensorsSupportPostures_open() 410 mDozeParameters, in testSensorsSupportPostures_swapPostures() 479 when(mDozeParameters.shouldClampToDimBrightness()).thenReturn(true); in transitionToDoze_shouldClampBrightness_afterTimeout_clampsToDim() 496 when(mDozeParameters.shouldClampToDimBrightness()).thenReturn(true); in transitionToDoze_shouldClampBrightness_notAfterTimeout_doesNotClampToDim() 512 when(mDozeParameters.shouldClampToDimBrightness()).thenReturn(false); in transitionToDoze_noClampBrightness_afterTimeout_noScreenOff_doesNotClampToDim() [all …]
|
D | DozeScreenStateTest.java | 76 private DozeParameters mDozeParameters; field in DozeScreenStateTest 95 when(mDozeParameters.getDisplayNeedsBlanking()).thenReturn(true); in setUp() 96 when(mDozeParameters.getAlwaysOn()).thenReturn(true); in setUp() 104 mScreen = new DozeScreenState(mServiceFake, mHandlerFake, mDozeHost, mDozeParameters, in setUp() 199 when(mDozeParameters.shouldDelayDisplayDozeTransition()).thenReturn(true); in test_holdsWakeLockWhenGoingToLowPowerDelayed() 216 when(mDozeParameters.shouldDelayDisplayDozeTransition()).thenReturn(true); in test_releasesWakeLock_abortingLowPowerDelayed() 264 when(mDozeParameters.shouldControlScreenOff()).thenReturn(true); in testDelayEnterDozeScreenState_whenUdfpsFingerDown() 289 when(mDozeParameters.shouldControlScreenOff()).thenReturn(true); in testDelayExitPulsingScreenState_whenUdfpsFingerDown()
|
D | DozeUiTest.java | 65 private DozeParameters mDozeParameters; field in DozeUiTest 88 mHandler, mDozeParameters, mFakeExecutor, mDozeLog); in setUp() 121 when(mDozeParameters.getAlwaysOn()).thenReturn(true); in transitionSetsAnimateWakeup_alwaysOn() 122 when(mDozeParameters.getDisplayNeedsBlanking()).thenReturn(false); in transitionSetsAnimateWakeup_alwaysOn()
|
D | DozeSensorsTest.java | 87 private DozeParameters mDozeParameters; field in DozeSensorsTest 196 when(mDozeParameters.getSelectivelyRegisterSensorsUsingProx()).thenReturn(true); in testRegisterSensorsUsingProx() 197 when(mDozeParameters.singleTapUsesProx(anyInt())).thenReturn(true); in testRegisterSensorsUsingProx() 436 DozeSensors dozeSensors = new DozeSensors(mResources, mSensorManager, mDozeParameters, in testGesturesAllInitiallyRespectSettings() 481 DozeSensors dozeSensors = new DozeSensors(mResources, mSensorManager, mDozeParameters, in liftToWake_defaultSetting_configDefaultFalse() 500 DozeSensors dozeSensors = new DozeSensors(mResources, mSensorManager, mDozeParameters, in liftToWake_defaultSetting_configDefaultTrue() 515 super(mResources, mSensorManager, mDozeParameters, in TestableDozeSensors()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeWallpaperState.java | 44 private final DozeParameters mDozeParameters; field in DozeWallpaperState 55 mDozeParameters = parameters; in DozeWallpaperState() 78 animated = mDozeParameters.shouldControlScreenOff(); in transitionTo() 82 boolean fastDisplay = !mDozeParameters.getDisplayNeedsBlanking(); in transitionTo()
|
D | DozeUi.java | 55 private final DozeParameters mDozeParameters; field in DozeUi 84 mDozeParameters = params; in DozeUi() 173 mHost.setAnimateWakeup(mCanAnimateTransition && mDozeParameters.getAlwaysOn()); in updateAnimateWakeup()
|
D | DozeScreenBrightness.java | 79 private final DozeParameters mDozeParameters; field in DozeScreenBrightness 124 mDozeParameters = dozeParameters; in DozeScreenBrightness() 285 (mDozeParameters.shouldClampToDimBrightness() in clampToDimBrightnessForScreenOff()
|
D | DozeTriggers.java | 95 private final DozeParameters mDozeParameters; field in DozeTriggers 212 mDozeParameters = dozeParameters; in DozeTriggers() 367 timeSinceNotification < mDozeParameters.getPickupVibrationThreshold(); in onSensor() 380 if (mDozeParameters.getDisplayNeedsBlanking()) { 616 }, !mDozeParameters.getProxCheckBeforePulse() || performedProxCheck, reason); in requestPulse()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | DozeScrimController.java | 37 private final DozeParameters mDozeParameters; field in DozeScrimController 71 mHandler.postDelayed(mPulseOut, mDozeParameters.getPulseVisibleDuration()); 73 mDozeParameters.getPulseVisibleDurationExtended()); 92 mDozeParameters = dozeParameters; in DozeScrimController()
|
D | ScrimState.java | 187 final boolean alwaysOnEnabled = mDozeParameters.getAlwaysOn(); in prepare() 188 final boolean quickPickupEnabled = mDozeParameters.isQuickPickupEnabled(); in prepare() 206 mAnimateChange = mDozeParameters.shouldControlScreenOff() in prepare() 207 && !mDozeParameters.shouldShowLightRevealScrim(); in prepare() 368 DozeParameters mDozeParameters; field in ScrimState 387 mDozeParameters = dozeParameters; in init()
|
D | LegacyNotificationIconAreaControllerImpl.java | 92 private final DozeParameters mDozeParameters; field in LegacyNotificationIconAreaControllerImpl 147 mDozeParameters = dozeParameters; in LegacyNotificationIconAreaControllerImpl() 510 boolean animate = mDozeParameters.getAlwaysOn() in onDozingChanged() 511 && !mDozeParameters.getDisplayNeedsBlanking(); in onDozingChanged() 598 animate = mDozeParameters.getAlwaysOn() && !mDozeParameters.getDisplayNeedsBlanking(); in onFullyHiddenChanged()
|
D | ScrimController.java | 215 private final DozeParameters mDozeParameters; field in ScrimController 368 mDozeParameters = dozeParameters; in ScrimController() 424 states[i].init(mScrimInFront, mScrimBehind, mDozeParameters, mDockManager); in attachViews() 631 mTimeTicker.schedule(mDozeParameters.getWallpaperAodDuration(), in internalTransitionTo() 642 && (!mDozeParameters.getAlwaysOn() || mState == ScrimState.UNLOCKED)) in internalTransitionTo() 643 || (mState == ScrimState.AOD && !mDozeParameters.getDisplayNeedsBlanking())) { in internalTransitionTo() 662 && (mDozeParameters.getAlwaysOn() || mDockManager.isDocked())) { in shouldFadeAwayWallpaper() 736 mAnimationDuration = mDozeParameters.getWallpaperFadeOutDuration(); in onHideWallpaperTimeout() 1172 mTimeTicker.schedule(mDozeParameters.getWallpaperAodDuration(), in applyAndDispatchState() 1200 && (mDozeParameters.getAlwaysOn() || mDockManager.isDocked())) { in shouldUpdateFrontScrimAlpha()
|
D | CentralSurfacesImpl.java | 417 private final DozeParameters mDozeParameters; field in CentralSurfacesImpl 771 mDozeParameters = dozeParameters; in CentralSurfacesImpl() 1036 new Callback(plugin), mDozeParameters)); in start() 2317 keyguardVisible || (mDozing && mDozeParameters.shouldDelayKeyguardShow()); in updateDozingState() 2320 || (mDozing && mDozeParameters.shouldControlScreenOff() && keyguardVisibleOrWillBe); in updateDozingState() 2511 if (mDozeParameters.shouldShowLightRevealScrim()) { 2573 mShouldDelayLockscreenTransitionFromAod = mDozeParameters.getAlwaysOn() 2574 && !mDozeParameters.getDisplayNeedsBlanking() 2614 && !mDozeParameters.canControlUnlockedScreenOff()) { 2650 && !mDozeParameters.shouldControlScreenOff(); in updateNotificationPanelTouchState() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardStatusViewControllerBaseTest.java | 57 @Mock protected DozeParameters mDozeParameters; field in KeyguardStatusViewControllerBaseTest 88 mDozeParameters, in setup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | KeyguardSliceProviderTest.java | 94 private DozeParameters mDozeParameters; field in KeyguardSliceProviderTest 153 when(mDozeParameters.getAlwaysOn()).thenReturn(true); in onBindSlice_readsMedia_withBypass_notDozing() 274 mDozeParameters = KeyguardSliceProviderTest.this.mDozeParameters; in TestableKeyguardSliceProvider()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardVisibilityHelper.java | 51 private final DozeParameters mDozeParameters; field in KeyguardVisibilityHelper 67 mDozeParameters = dozeParameters; in KeyguardVisibilityHelper()
|
D | KeyguardStatusViewController.java | 104 private final DozeParameters mDozeParameters; field in KeyguardStatusViewController 133 if (!mDozeParameters.getAlwaysOn()) { 186 mDozeParameters = dozeParameters; in KeyguardStatusViewController()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/shade/ |
D | NotificationShadeWindowControllerImplTest.java | 93 @Mock private DozeParameters mDozeParameters; field in NotificationShadeWindowControllerImplTest 138 when(mDozeParameters.getAlwaysOn()).thenReturn(true); in setUp() 148 mDozeParameters, in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shade/ |
D | NotificationPanelViewControllerBaseTest.java | 245 @Mock protected DozeParameters mDozeParameters; field in NotificationPanelViewControllerBaseTest 437 mDozeParameters, in setup() 477 mDozeParameters, in setup() 625 mDozeParameters, in setup() 696 mDozeLog, mDozeParameters, mCommandQueue, mVibratorHelper, in setup() 930 when(mDozeParameters.getAlwaysOn()).thenReturn(dozingAlwaysOn); in setDozing()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/shade/ |
D | NotificationShadeWindowControllerImpl.java | 106 private final DozeParameters mDozeParameters; field in NotificationShadeWindowControllerImpl 170 mDozeParameters = dozeParameters; in NotificationShadeWindowControllerImpl() 173 mScreenBrightnessDoze = mDozeParameters.getScreenBrightnessDoze(); in NotificationShadeWindowControllerImpl() 358 || (state.dozing && mDozeParameters.getAlwaysOn()); in applyKeyguardFlags()
|