Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeUiTest.java66 private DozeParameters mDozeParameters; field in DozeUiTest
86 mDozeParameters, mKeyguardUpdateMonitor); in setUp()
112 when(mDozeParameters.getAlwaysOn()).thenReturn(false); in propagatesAnimateScreenOff_noAlwaysOn()
113 when(mDozeParameters.getDisplayNeedsBlanking()).thenReturn(false); in propagatesAnimateScreenOff_noAlwaysOn()
122 when(mDozeParameters.getAlwaysOn()).thenReturn(true); in propagatesAnimateScreenOff_alwaysOn()
123 when(mDozeParameters.getDisplayNeedsBlanking()).thenReturn(false); in propagatesAnimateScreenOff_alwaysOn()
137 reset(mDozeParameters); in neverAnimateScreenOff_whenNotSupported()
139 when(mDozeParameters.getDisplayNeedsBlanking()).thenReturn(true); in neverAnimateScreenOff_whenNotSupported()
141 mDozeParameters, mKeyguardUpdateMonitor); in neverAnimateScreenOff_whenNotSupported()
151 when(mDozeParameters.getAlwaysOn()).thenReturn(true); in transitionSetsAnimateWakeup_alwaysOn()
[all …]
DDozeWallpaperStateTest.java47 @Mock DozeParameters mDozeParameters; field in DozeWallpaperStateTest
52 mDozeWallpaperState = new DozeWallpaperState(mIWallpaperManager, mDozeParameters); in setUp()
58 when(mDozeParameters.getAlwaysOn()).thenReturn(true); in testDreamNotification()
67 reset(mDozeParameters); in testDreamNotification()
75 when(mDozeParameters.getDisplayNeedsBlanking()).thenReturn(false); in testAnimates_whenSupported()
76 when(mDozeParameters.shouldControlScreenOff()).thenReturn(true); in testAnimates_whenSupported()
77 when(mDozeParameters.getAlwaysOn()).thenReturn(true); in testAnimates_whenSupported()
90 when(mDozeParameters.getDisplayNeedsBlanking()).thenReturn(true); in testDoesNotAnimate_whenNotSupported()
91 when(mDozeParameters.getAlwaysOn()).thenReturn(true); in testDoesNotAnimate_whenNotSupported()
92 when(mDozeParameters.shouldControlScreenOff()).thenReturn(false); in testDoesNotAnimate_whenNotSupported()
DDozeScreenStateTest.java63 DozeParameters mDozeParameters; field in DozeScreenStateTest
69 when(mDozeParameters.getDisplayNeedsBlanking()).thenReturn(true); in setUp()
70 when(mDozeParameters.getAlwaysOn()).thenReturn(true); in setUp()
74 mScreen = new DozeScreenState(mServiceFake, mHandlerFake, mDozeParameters, mWakeLock); in setUp()
159 when(mDozeParameters.shouldControlScreenOff()).thenReturn(true); in test_holdsWakeLockWhenGoingToLowPowerDelayed()
176 when(mDozeParameters.shouldControlScreenOff()).thenReturn(true); in test_releasesWakeLock_abortingLowPowerDelayed()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DDozeScrimController.java34 private final DozeParameters mDozeParameters; field in DozeScrimController
66 mHandler.postDelayed(mPulseOut, mDozeParameters.getPulseVisibleDuration());
68 mDozeParameters.getPulseVisibleDurationExtended());
84 mDozeParameters = dozeParameters; in DozeScrimController()
103 Log.d(TAG, "Pulse supressed. Dozing: " + mDozeParameters + " had callback? " in pulse()
DScrimState.java107 final boolean alwaysOnEnabled = mDozeParameters.getAlwaysOn(); in prepare()
117 mAnimateChange = mDozeParameters.shouldControlScreenOff(); in prepare()
178 DozeParameters mDozeParameters; field in ScrimState
191 mDozeParameters = dozeParameters; in init()
DScrimController.java117 private final DozeParameters mDozeParameters; field in ScrimController
184 mDozeParameters = dozeParameters; in ScrimController()
196 states[i].init(mScrimInFront, mScrimBehind, mDozeParameters); in ScrimController()
275 if (mWallpaperSupportsAmbientMode && mDozeParameters.getAlwaysOn() in transitionTo()
278 mTimeTicker.schedule(mDozeParameters.getWallpaperAodDuration(), in transitionTo()
292 } else if ((!mDozeParameters.getAlwaysOn() && oldState == ScrimState.AOD) in transitionTo()
293 || (mState == ScrimState.AOD && !mDozeParameters.getDisplayNeedsBlanking())) { in transitionTo()
336 mAnimationDuration = mDozeParameters.getWallpaperFadeOutDuration(); in onHideWallpaperTimeout()
463 if (mState == ScrimState.AOD && mDozeParameters.getAlwaysOn() in setAodFrontScrimAlpha()
DStatusBarWindowManager.java59 private final DozeParameters mDozeParameters; field in StatusBarWindowManager
76 mDozeParameters = DozeParameters.getInstance(mContext); in StatusBarWindowManager()
77 mScreenBrightnessDoze = mDozeParameters.getScreenBrightnessDoze(); in StatusBarWindowManager()
146 || (state.dozing && mDozeParameters.getAlwaysOn()); in applyKeyguardFlags()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeWallpaperState.java42 private final DozeParameters mDozeParameters; field in DozeWallpaperState
53 mDozeParameters = parameters; in DozeWallpaperState()
75 animated = mDozeParameters.shouldControlScreenOff(); in transitionTo()
79 animated = !mDozeParameters.getDisplayNeedsBlanking() || wakingUpFromPulse; in transitionTo()
DDozeUi.java51 private final DozeParameters mDozeParameters; field in DozeUi
75 mDozeParameters = params; in DozeUi()
86 final boolean controlScreenOff = mDozeParameters.getAlwaysOn() && mKeyguardShowing; in updateAnimateScreenOff()
87 mDozeParameters.setControlScreenOffAnimation(controlScreenOff); in updateAnimateScreenOff()
154 mHost.setAnimateWakeup(mCanAnimateTransition && mDozeParameters.getAlwaysOn()); in updateAnimateWakeup()
DDozeTriggers.java61 private final DozeParameters mDozeParameters; field in DozeTriggers
81 mDozeParameters = dozeParameters; in DozeTriggers()
154 timeSinceNotification < mDozeParameters.getPickupVibrationThreshold(); in onSensor()
244 }, !mDozeParameters.getProxCheckBeforePulse() || performedProxCheck, reason);
DDozeSensors.java62 private final DozeParameters mDozeParameters; field in DozeSensors
79 mDozeParameters = dozeParameters; in DozeSensors()
374 mDozeParameters.getPickupSubtypePerformsProxCheck(subType); in onTrigger()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DDozeScrimControllerTest.java48 private DozeParameters mDozeParameters; field in DozeScrimControllerTest
65 mDozeParameters); in setup()