Home
last modified time | relevance | path

Searched refs:mDozeParameters (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DDozeParametersTest.java56 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 …]
DNotificationIconAreaControllerTest.java62 DozeParameters mDozeParameters; field in NotificationIconAreaControllerTest
88 mDozeParameters, in setup()
113 when(mDozeParameters.shouldControlScreenOff()).thenReturn(false); in testAppearResetsTranslation()
DDozeScrimControllerTest.java44 private DozeParameters mDozeParameters; field in DozeScrimControllerTest
52 mDozeScrimController = new DozeScrimController(mDozeParameters, mDozeLog); in setup()
DNotificationShadeWindowControllerImplTest.java65 @Mock private DozeParameters mDozeParameters; field in NotificationShadeWindowControllerImplTest
85 when(mDozeParameters.getAlwaysOn()).thenReturn(true); in setUp()
89 mWindowManager, mActivityManager, mDozeParameters, mStatusBarStateController, in setUp()
DNotificationShadeWindowViewTest.java83 @Mock private DozeParameters mDozeParameters; field in NotificationShadeWindowViewTest
125 mDozeParameters, in setUp()
DScrimControllerTest.java96 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/
DDozeUiTest.java66 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 …]
DDozeWallpaperStateTest.java50 @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 …]
DDozeScreenStateTest.java68 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()
DDozeScreenBrightnessTest.java84 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()
DDozeSensorsTest.java71 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/
DDozeWallpaperState.java44 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()
DDozeUi.java65 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()
DDozeScreenBrightness.java65 private final DozeParameters mDozeParameters; field in DozeScreenBrightness
96 mDozeParameters = dozeParameters; in DozeScreenBrightness()
211 if (mDozeParameters.shouldControlUnlockedScreenOff() in clampToDimBrightnessForScreenOff()
DDozeTriggers.java83 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/
DDozeScrimController.java42 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()
DScrimState.java176 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()
DNotificationIconAreaController.java71 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()
DScrimController.java166 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()
DNotificationShadeWindowControllerImpl.java86 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/
DKeyguardStatusViewControllerTest.java57 DozeParameters mDozeParameters; field in KeyguardStatusViewControllerTest
80 mDozeParameters, in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DKeyguardViewMediatorTest.java87 private @Mock DozeParameters mDozeParameters; field in KeyguardViewMediatorTest
122 mDozeParameters, in setUp()
153 when(mDozeParameters.shouldControlUnlockedScreenOff()).thenReturn(true); in testIsAnimatingScreenOff()
DKeyguardSliceProviderTest.java90 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/
DKeyguardVisibilityHelper.java42 private final DozeParameters mDozeParameters; field in KeyguardVisibilityHelper
56 mDozeParameters = dozeParameters; in KeyguardVisibilityHelper()
DKeyguardStatusViewController.java52 private final DozeParameters mDozeParameters; field in KeyguardStatusViewController
76 mDozeParameters = dozeParameters; in KeyguardStatusViewController()

12