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.java22 import static com.android.systemui.statusbar.phone.ScrimState.BOUNCER;
23 import static com.android.systemui.statusbar.phone.ScrimState.SHADE_LOCKED;
130 private ScrimState mScrimState;
267 any(ScrimState.class), anyFloat(), any(GradientColors.class)); in setup()
312 mScrimController.legacyTransitionTo(ScrimState.KEYGUARD); in setup()
321 Arrays.stream(ScrimState.values()).forEach((scrim) -> { in tearDown()
330 mScrimController.legacyTransitionTo(ScrimState.KEYGUARD); in transitionToKeyguard()
380 mScrimController.legacyTransitionTo(ScrimState.OFF); in transitionToOff()
397 mScrimController.legacyTransitionTo(ScrimState.AOD); in transitionToAod_withRegularWallpaper()
417 mScrimController.legacyTransitionTo(ScrimState.AOD); in transitionToAod_withAodWallpaper()
[all …]
DLightBarControllerTest.java329 mLightBarController.setScrimState(ScrimState.UNLOCKED, 0f, COLORS_DARK); in validateNavBarChangesUpdateIcons()
340 mLightBarController.setScrimState(ScrimState.UNLOCKED, 0f, COLORS_LIGHT); in validateNavBarChangesUpdateIcons()
344 mLightBarController.setScrimState(ScrimState.UNLOCKED, 1f, COLORS_LIGHT); in validateNavBarChangesUpdateIcons()
352 mLightBarController.setScrimState(ScrimState.UNLOCKED, 1f, COLORS_DARK); in validateNavBarChangesUpdateIcons()
360 mLightBarController.setScrimState(ScrimState.UNLOCKED, 0f, COLORS_DARK); in validateNavBarChangesUpdateIcons()
367 mLightBarController.setScrimState(ScrimState.SHADE_LOCKED, 1f, COLORS_LIGHT); in navBarHasDarkIconsInLockedShade_lightMode()
393 mLightBarController.setScrimState(ScrimState.BOUNCER, 1f, COLORS_LIGHT); in navBarHasDarkIconsInBouncerOverQs_lightMode()
401 mLightBarController.setScrimState(ScrimState.SHADE_LOCKED, 1f, COLORS_DARK); in navBarHasLightIconsInLockedShade_darkMode()
427 mLightBarController.setScrimState(ScrimState.BOUNCER, 1f, COLORS_DARK); in navBarHasLightIconsInBouncerOverQs_darkMode()
DCentralSurfacesImplTest.java751 verify(mScrimController).legacyTransitionTo(eq(ScrimState.UNLOCKED), any()); in testFingerprintUnlock_UpdatesScrims()
762 verify(mScrimController).legacyTransitionTo(eq(ScrimState.UNLOCKED), any()); in testTransitionLaunch_goesToUnlocked()
798 verify(mScrimController).legacyTransitionTo(eq(ScrimState.KEYGUARD)); in testTransitionLaunch_noPreview_doesntGoUnlocked()
826 verify(mScrimController).legacyTransitionTo(eq(ScrimState.PULSING), any()); in testPulseWhileDozing_updatesScrimController()
831 verify(mScrimController).legacyTransitionTo(eq(ScrimState.KEYGUARD)); in testPulseWhileDozing_updatesScrimController()
842 verify(mScrimController, times(2)).legacyTransitionTo(eq(ScrimState.AOD)); in testSetDozingNotUnlocking_transitionToAOD_cancelKeyguardFadingAway()
854 verify(mScrimController).legacyTransitionTo(eq(ScrimState.AUTH_SCRIMMED_SHADE)); in testSetDozingNotUnlocking_transitionToAuthScrimmed_cancelKeyguardFadingAway()
870 verify(mScrimController).legacyTransitionTo(eq(ScrimState.AUTH_SCRIMMED)); in testOccludingQSNotExpanded_flagOff_transitionToAuthScrimmed()
902 verify(mScrimController, never()).legacyTransitionTo(eq(ScrimState.KEYGUARD)); in testNotOccluding_QSExpanded_flagOn_doesTransitionScrimStateToKeyguard()
917 verify(mScrimController).legacyTransitionTo(eq(ScrimState.AUTH_SCRIMMED_SHADE)); in testOccludingQSExpanded_transitionToAuthScrimmedShade()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DScrimController.java207 private ScrimState mState = ScrimState.UNINITIALIZED;
263 private final TriConsumer<ScrimState, Float, GradientColors> mScrimStateListener;
311 final float baseAlpha = ScrimState.KEYGUARD.getBehindAlpha();
422 final ScrimState[] states = ScrimState.values(); in attachViews()
435 for (ScrimState state : ScrimState.values()) { in attachViews()
460 legacyTransitionTo(ScrimState.UNLOCKED); in hydrateStateInternally()
524 public void transitionTo(ScrimState state) { in transitionTo()
538 public void legacyTransitionTo(ScrimState state) { in legacyTransitionTo()
549 public void legacyTransitionTo(ScrimState state, Callback callback) { in legacyTransitionTo()
554 private void internalTransitionTo(ScrimState state, Callback callback) { in internalTransitionTo()
[all …]
DScrimState.java30 public enum ScrimState { enum
42 public void prepare(ScrimState previousState) { in prepare()
67 public void prepare(ScrimState previousState) { in prepare()
69 if (previousState == ScrimState.AOD) { in prepare()
77 } else if (previousState == ScrimState.KEYGUARD) { in prepare()
97 public void prepare(ScrimState previousState) { in prepare()
111 public void prepare(ScrimState previousState) { in prepare()
128 public void prepare(ScrimState previousState) { in prepare()
150 public void prepare(ScrimState previousState) { in prepare()
158 public void prepare(ScrimState previousState) { in prepare()
[all …]
DCentralSurfacesImpl.java2346 return mScrimController.getState() == ScrimState.BOUNCER_SCRIMMED; in shouldKeyguardHideImmediately()
2784 mScrimController.legacyTransitionTo(ScrimState.KEYGUARD); in updateScrimController()
2790 mScrimController.legacyTransitionTo(ScrimState.AUTH_SCRIMMED_SHADE); in updateScrimController()
2792 mScrimController.legacyTransitionTo(ScrimState.AUTH_SCRIMMED); in updateScrimController()
2802 ScrimState state = mStatusBarKeyguardViewManager.primaryBouncerNeedsScrimming() in updateScrimController()
2803 ? ScrimState.BOUNCER_SCRIMMED : ScrimState.BOUNCER; in updateScrimController()
2806 mScrimController.legacyTransitionTo(ScrimState.BRIGHTNESS_MIRROR); in updateScrimController()
2808 mScrimController.legacyTransitionTo(ScrimState.SHADE_LOCKED); in updateScrimController()
2810 mScrimController.legacyTransitionTo(ScrimState.PULSING, in updateScrimController()
2813 mScrimController.legacyTransitionTo(ScrimState.OFF, new ScrimController.Callback() { in updateScrimController()
[all …]
DLightBarController.java316 public void setScrimState(ScrimState scrimState, float scrimBehindAlpha, in setScrimState()
322 scrimState == ScrimState.BOUNCER || scrimState == ScrimState.BOUNCER_SCRIMMED; in setScrimState()
DDozeServiceHost.java452 if (mScrimController.getState() == ScrimState.OFF) { in cancelGentleSleep()
/frameworks/base/packages/SystemUI/src/com/android/systemui/scene/domain/startable/
DScrimStartable.kt40 import com.android.systemui.statusbar.phone.ScrimState in <lambda>()
72 val scrimState: Flow<ScrimState?> = in <lambda>()
146 Model(scrimState = ScrimState.KEYGUARD, unlocking = unlocking) in <lambda>()
158 ScrimState.BOUNCER_SCRIMMED in <lambda>()
160 ScrimState.BOUNCER in <lambda>()
165 Model(scrimState = ScrimState.BRIGHTNESS_MIRROR, unlocking = unlocking) in <lambda>()
167 Model(scrimState = ScrimState.SHADE_LOCKED, unlocking = unlocking) in <lambda>()
169 Model(scrimState = ScrimState.PULSING, unlocking = unlocking) in <lambda>()
171 Model(scrimState = ScrimState.OFF, unlocking = unlocking) in <lambda>()
177 Model(scrimState = ScrimState.AOD, unlocking = false) in <lambda>()
[all …]
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/scene/domain/startable/
DScrimStartableTest.kt42 import com.android.systemui.statusbar.phone.ScrimState in <lambda>()
77 expectedState = ScrimState.KEYGUARD, in <lambda>()
95 expectedState = ScrimState.BOUNCER, in <lambda>()
103 expectedState = ScrimState.BOUNCER_SCRIMMED, in <lambda>()
112 expectedState = ScrimState.BRIGHTNESS_MIRROR, in <lambda>()
120 expectedState = ScrimState.BRIGHTNESS_MIRROR, in <lambda>()
130 expectedState = ScrimState.SHADE_LOCKED, in <lambda>()
138 expectedState = ScrimState.PULSING, in <lambda>()
147 expectedState = ScrimState.OFF, in <lambda>()
155 expectedState = ScrimState.AOD, in <lambda>()
[all …]