/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | DozeParametersTest.java | 56 private DozeParameters mDozeParameters; field in DozeParametersTest 71 mDozeParameters = new DozeParameters( in setup() 85 mDozeParameters.setControlScreenOffAnimation(true); in testSetControlScreenOffAnimation_setsDozeAfterScreenOff_false() 87 mDozeParameters.setControlScreenOffAnimation(false); in testSetControlScreenOffAnimation_setsDozeAfterScreenOff_false() 93 mDozeParameters.setControlScreenOffAnimation(false); in testSetControlScreenOffAnimation_setsDozeAfterScreenOff_true() 95 mDozeParameters.setControlScreenOffAnimation(true); in testSetControlScreenOffAnimation_setsDozeAfterScreenOff_true() 101 mDozeParameters.setControlScreenOffAnimation(true); in testGetWallpaperAodDuration_when_shouldControlScreenOff() 104 mDozeParameters.getWallpaperAodDuration(), in testGetWallpaperAodDuration_when_shouldControlScreenOff() 111 mDozeParameters.onTuningChanged(Settings.Secure.DOZE_ALWAYS_ON, "1"); in testGetAlwaysOn() 113 assertThat(mDozeParameters.getAlwaysOn()).isTrue(); in testGetAlwaysOn() [all …]
|
D | NotificationIconAreaControllerTest.java | 62 DozeParameters mDozeParameters; field in NotificationIconAreaControllerTest 88 mDozeParameters, in setup() 113 when(mDozeParameters.shouldControlScreenOff()).thenReturn(false); in testAppearResetsTranslation()
|
D | DozeScrimControllerTest.java | 44 private DozeParameters mDozeParameters; field in DozeScrimControllerTest 52 mDozeScrimController = new DozeScrimController(mDozeParameters, mDozeLog); in setup()
|
D | NotificationShadeWindowControllerImplTest.java | 65 @Mock private DozeParameters mDozeParameters; field in NotificationShadeWindowControllerImplTest 85 when(mDozeParameters.getAlwaysOn()).thenReturn(true); in setUp() 89 mWindowManager, mActivityManager, mDozeParameters, mStatusBarStateController, in setUp()
|
D | NotificationShadeWindowViewTest.java | 83 @Mock private DozeParameters mDozeParameters; field in NotificationShadeWindowViewTest 125 mDozeParameters, in setUp()
|
D | ScrimControllerTest.java | 96 private DozeParameters mDozeParameters; field in ScrimControllerTest 205 when(mDozeParameters.getAlwaysOn()).thenAnswer(invocation -> mAlwaysOnEnabled); in setup() 206 when(mDozeParameters.getDisplayNeedsBlanking()).thenReturn(true); in setup() 224 mDozeParameters, mAlarmManager, mKeyguardStateController, mDelayedWakeLockBuilder, in setup() 1017 when(mDozeParameters.shouldControlScreenOff()).thenReturn(false); in testAnimatesTransitionToAod() 1022 reset(mDozeParameters); in testAnimatesTransitionToAod() 1023 when(mDozeParameters.shouldControlScreenOff()).thenReturn(true); in testAnimatesTransitionToAod()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
D | DozeUiTest.java | 66 private DozeParameters mDozeParameters; field in DozeUiTest 94 mDozeParameters, mKeyguardUpdateMonitor, mDozeLog, mTunerService, in setUp() 122 when(mDozeParameters.getAlwaysOn()).thenReturn(false); in propagatesAnimateScreenOff_noAlwaysOn() 123 when(mDozeParameters.getDisplayNeedsBlanking()).thenReturn(false); in propagatesAnimateScreenOff_noAlwaysOn() 132 when(mDozeParameters.getAlwaysOn()).thenReturn(true); in propagatesAnimateScreenOff_alwaysOn() 133 when(mDozeParameters.getDisplayNeedsBlanking()).thenReturn(false); in propagatesAnimateScreenOff_alwaysOn() 147 reset(mDozeParameters); in neverAnimateScreenOff_whenNotSupported() 149 when(mDozeParameters.getDisplayNeedsBlanking()).thenReturn(true); in neverAnimateScreenOff_whenNotSupported() 151 mDozeParameters, mKeyguardUpdateMonitor, mDozeLog, mTunerService, in neverAnimateScreenOff_whenNotSupported() 163 when(mDozeParameters.getAlwaysOn()).thenReturn(true); in transitionSetsAnimateWakeup_alwaysOn() [all …]
|
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 | DozeScreenStateTest.java | 68 private DozeParameters mDozeParameters; field in DozeScreenStateTest 75 when(mDozeParameters.getDisplayNeedsBlanking()).thenReturn(true); in setUp() 76 when(mDozeParameters.getAlwaysOn()).thenReturn(true); in setUp() 80 mScreen = new DozeScreenState(mServiceFake, mHandlerFake, mDozeHost, mDozeParameters, in setUp() 174 when(mDozeParameters.shouldControlScreenOff()).thenReturn(true); in test_holdsWakeLockWhenGoingToLowPowerDelayed() 191 when(mDozeParameters.shouldControlScreenOff()).thenReturn(true); in test_releasesWakeLock_abortingLowPowerDelayed()
|
D | DozeScreenBrightnessTest.java | 84 DozeParameters mDozeParameters; field in DozeScreenBrightnessTest 112 mAlwaysOnDisplayPolicy, mWakefulnessLifecycle, mDozeParameters); in setUp() 178 mAlwaysOnDisplayPolicy, mWakefulnessLifecycle, mDozeParameters); in testPulsing_withoutLightSensor_setsAoDDimmingScrimTransparent() 219 mAlwaysOnDisplayPolicy, mWakefulnessLifecycle, mDozeParameters); in testNullSensor() 298 when(mDozeParameters.shouldControlUnlockedScreenOff()).thenReturn(true); in transitionToDoze_duringScreenOff_afterTimeout_clampsToDim() 312 when(mDozeParameters.shouldControlUnlockedScreenOff()).thenReturn(true); in transitionToDoze_duringScreenOff_notAfterTimeout_doesNotClampToDim() 326 when(mDozeParameters.shouldControlUnlockedScreenOff()).thenReturn(false); in transitionToDoze_duringScreenOff_afterTimeout_noScreenOff_doesNotClampToDim()
|
D | DozeSensorsTest.java | 71 private DozeParameters mDozeParameters; field in DozeSensorsTest 159 when(mDozeParameters.getSelectivelyRegisterSensorsUsingProx()).thenReturn(true); in testRegisterSensorsUsingProx() 160 when(mDozeParameters.singleTapUsesProx()).thenReturn(true); in testRegisterSensorsUsingProx() 176 super(getContext(), mSensorManager, mDozeParameters, in TestableDozeSensors() local
|
/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 | 65 private final DozeParameters mDozeParameters; field in DozeUi 112 mDozeParameters = params; in DozeUi() 143 mDozeParameters.getAlwaysOn() in updateAnimateScreenOff() 144 && (mKeyguardShowing || mDozeParameters.shouldControlUnlockedScreenOff()) in updateAnimateScreenOff() 146 mDozeParameters.setControlScreenOffAnimation(controlScreenOff); in updateAnimateScreenOff() 223 mHost.setAnimateWakeup(mCanAnimateTransition && mDozeParameters.getAlwaysOn()); in updateAnimateWakeup()
|
D | DozeScreenBrightness.java | 65 private final DozeParameters mDozeParameters; field in DozeScreenBrightness 96 mDozeParameters = dozeParameters; in DozeScreenBrightness() 211 if (mDozeParameters.shouldControlUnlockedScreenOff() in clampToDimBrightnessForScreenOff()
|
D | DozeTriggers.java | 83 private final DozeParameters mDozeParameters; field in DozeTriggers 186 mDozeParameters = dozeParameters; in DozeTriggers() 327 timeSinceNotification < mDozeParameters.getPickupVibrationThreshold(); in onSensor() 336 if (mDozeParameters.getDisplayNeedsBlanking()) { 529 }, !mDozeParameters.getProxCheckBeforePulse() || performedProxCheck, reason); in requestPulse()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | DozeScrimController.java | 42 private final DozeParameters mDozeParameters; field in DozeScrimController 78 mHandler.postDelayed(mPulseOut, mDozeParameters.getPulseVisibleDuration()); 80 mDozeParameters.getPulseVisibleDurationExtended()); 96 mDozeParameters = dozeParameters; in DozeScrimController() 119 Log.d(TAG, "Pulse supressed. Dozing: " + mDozeParameters + " had callback? " in pulse()
|
D | ScrimState.java | 176 final boolean alwaysOnEnabled = mDozeParameters.getAlwaysOn(); in prepare() 177 final boolean quickPickupEnabled = mDozeParameters.isQuickPickupEnabled(); in prepare() 195 mAnimateChange = mDozeParameters.shouldControlScreenOff() in prepare() 196 && !mDozeParameters.shouldControlUnlockedScreenOff(); in prepare() 313 DozeParameters mDozeParameters; field in ScrimState 330 mDozeParameters = dozeParameters; in init()
|
D | NotificationIconAreaController.java | 71 private final DozeParameters mDozeParameters; field in NotificationIconAreaController 130 mDozeParameters = dozeParameters; in NotificationIconAreaController() 578 boolean animate = mDozeParameters.getAlwaysOn() in onDozingChanged() 579 && !mDozeParameters.getDisplayNeedsBlanking(); in onDozingChanged() 616 if (mDozeParameters.shouldControlScreenOff()) { in appearAodIcons() 661 animate = mDozeParameters.getAlwaysOn() && !mDozeParameters.getDisplayNeedsBlanking(); in onFullyHiddenChanged()
|
D | ScrimController.java | 166 private final DozeParameters mDozeParameters; field in ScrimController 246 mDozeParameters = dozeParameters; in ScrimController() 296 states[i].init(mScrimInFront, mScrimBehind, mScrimForBubble, mDozeParameters, in attachViews() 411 mTimeTicker.schedule(mDozeParameters.getWallpaperAodDuration(), in transitionTo() 422 && (!mDozeParameters.getAlwaysOn() || mState == ScrimState.UNLOCKED)) in transitionTo() 423 || (mState == ScrimState.AOD && !mDozeParameters.getDisplayNeedsBlanking())) { in transitionTo() 442 && (mDozeParameters.getAlwaysOn() || mDockManager.isDocked())) { in shouldFadeAwayWallpaper() 480 mAnimationDuration = mDozeParameters.getWallpaperFadeOutDuration(); in onHideWallpaperTimeout() 752 mTimeTicker.schedule(mDozeParameters.getWallpaperAodDuration(), in applyAndDispatchState() 780 && (mDozeParameters.getAlwaysOn() || mDockManager.isDocked())) { in shouldUpdateFrontScrimAlpha()
|
D | NotificationShadeWindowControllerImpl.java | 86 private final DozeParameters mDozeParameters; field in NotificationShadeWindowControllerImpl 127 mDozeParameters = dozeParameters; in NotificationShadeWindowControllerImpl() 128 mScreenBrightnessDoze = mDozeParameters.getScreenBrightnessDoze(); in NotificationShadeWindowControllerImpl() 279 || (state.mDozing && mDozeParameters.getAlwaysOn()); in applyKeyguardFlags()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/ |
D | KeyguardStatusViewControllerTest.java | 57 DozeParameters mDozeParameters; field in KeyguardStatusViewControllerTest 80 mDozeParameters, in setup()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | KeyguardViewMediatorTest.java | 87 private @Mock DozeParameters mDozeParameters; field in KeyguardViewMediatorTest 122 mDozeParameters, in setUp() 153 when(mDozeParameters.shouldControlUnlockedScreenOff()).thenReturn(true); in testIsAnimatingScreenOff()
|
D | KeyguardSliceProviderTest.java | 90 private DozeParameters mDozeParameters; field in KeyguardSliceProviderTest 146 when(mDozeParameters.getAlwaysOn()).thenReturn(true); in onBindSlice_readsMedia_withBypass_notDozing() 263 mDozeParameters = KeyguardSliceProviderTest.this.mDozeParameters; in TestableKeyguardSliceProvider()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardVisibilityHelper.java | 42 private final DozeParameters mDozeParameters; field in KeyguardVisibilityHelper 56 mDozeParameters = dozeParameters; in KeyguardVisibilityHelper()
|
D | KeyguardStatusViewController.java | 52 private final DozeParameters mDozeParameters; field in KeyguardStatusViewController 76 mDozeParameters = dozeParameters; in KeyguardStatusViewController()
|