Home
last modified time | relevance | path

Searched refs:ScrimState (Results 1 – 10 of 10) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DScrimControllerTest.java70 private ScrimState mScrimState;
102 mScrimController.getState(), ScrimState.UNINITIALIZED); in initialState()
107 mScrimController.transitionTo(ScrimState.KEYGUARD); in transitionToKeyguard()
117 mScrimController.transitionTo(ScrimState.AOD); in transitionToAod_withRegularWallpaper()
129 mScrimController.transitionTo(ScrimState.AOD); in transitionToAod_withAodWallpaper()
136 mScrimController.transitionTo(ScrimState.PULSING); in transitionToAod_withAodWallpaper()
143 ScrimState.AOD.mKeyguardUpdateMonitor = new KeyguardUpdateMonitor(getContext()) { in transitionToAod_withAodWallpaperAndLockScreenWallpaper()
150 mScrimController.transitionTo(ScrimState.AOD); in transitionToAod_withAodWallpaperAndLockScreenWallpaper()
162 mScrimController.transitionTo(ScrimState.KEYGUARD); in transitionToAod_withFrontAlphaUpdates()
170 mScrimController.transitionTo(ScrimState.AOD); in transitionToAod_withFrontAlphaUpdates()
[all …]
DDozeScrimControllerTest.java61 }).when(mScrimController).transitionTo(any(ScrimState.class), in setup()
72 verify(mScrimController).transitionTo(eq(ScrimState.PULSING), in changesScrimControllerState()
DStatusBarTest.java585 verify(mScrimController).transitionTo(eq(ScrimState.UNLOCKED), any()); in testFingerprintUnlock_UpdatesScrims()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DScrimState.java30 public enum ScrimState { enum
43 public void prepare(ScrimState previousState) { in prepare()
45 if (previousState == ScrimState.AOD) { in prepare()
73 public void prepare(ScrimState previousState) { in prepare()
84 public void prepare(ScrimState previousState) { in prepare()
95 public void prepare(ScrimState previousState) { in prepare()
106 public void prepare(ScrimState previousState) { in prepare()
131 public void prepare(ScrimState previousState) { in prepare()
146 public void prepare(ScrimState previousState) { in prepare()
151 if (previousState == ScrimState.AOD || previousState == ScrimState.PULSING) { in prepare()
[all …]
DScrimController.java111 private ScrimState mState = ScrimState.UNINITIALIZED;
148 private final TriConsumer<ScrimState, Float, GradientColors> mScrimStateListener;
166 TriConsumer<ScrimState, Float, GradientColors> scrimStateListener, in ScrimController() argument
194 final ScrimState[] states = ScrimState.values(); in ScrimController()
199 mState = ScrimState.UNINITIALIZED; in ScrimController()
207 public void transitionTo(ScrimState state) { in transitionTo()
211 public void transitionTo(ScrimState state, Callback callback) { in transitionTo()
222 if (state == ScrimState.UNINITIALIZED) { in transitionTo()
226 final ScrimState oldState = mState; in transitionTo()
264 mNeedsDrawableColorUpdate = state != ScrimState.BRIGHTNESS_MIRROR; in transitionTo()
[all …]
DDozeScrimController.java116 mScrimController.transitionTo(ScrimState.PULSING, mScrimCallback); in pulse()
178 mScrimController.transitionTo(ScrimState.AOD,
DFingerprintUnlockController.java184 final ScrimState scrimState = mScrimController.getState(); in pulsingOrAod()
185 return scrimState == ScrimState.AOD in pulsingOrAod()
186 || scrimState == ScrimState.PULSING; in pulsingOrAod()
DLightBarController.java158 public void setScrimState(ScrimState scrimState, float scrimBehindAlpha, in setScrimState()
164 mForceDarkForScrim = scrimState != ScrimState.BOUNCER in setScrimState()
165 && scrimState != ScrimState.BOUNCER_SCRIMMED in setScrimState()
DStatusBar.java1724 boolean cannotAnimateDoze = mDozing && !ScrimState.AOD.getAnimateChange(); in updateMediaMetaData()
3966 boolean isScrimmedBouncer = mScrimController.getState() == ScrimState.BOUNCER_SCRIMMED; in onBackPressed()
4733 ScrimState state = mIsOccluded || mStatusBarKeyguardViewManager.bouncerNeedsScrimming() in updateScrimController()
4736 ScrimState.BOUNCER_SCRIMMED : ScrimState.BOUNCER; in updateScrimController()
4739 mScrimController.transitionTo(ScrimState.UNLOCKED, mUnlockScrimCallback); in updateScrimController()
4741 mScrimController.transitionTo(ScrimState.BRIGHTNESS_MIRROR); in updateScrimController()
4745 mScrimController.transitionTo(ScrimState.AOD); in updateScrimController()
4747 mScrimController.transitionTo(ScrimState.KEYGUARD); in updateScrimController()
4749 mScrimController.transitionTo(ScrimState.UNLOCKED, mUnlockScrimCallback); in updateScrimController()
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DSystemUIFactory.java55 import com.android.systemui.statusbar.phone.ScrimState;
109 TriConsumer<ScrimState, Float, GradientColors> scrimStateListener, in createScrimController() argument