Loading packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java +1 −1 Original line number Diff line number Diff line Loading @@ -198,7 +198,7 @@ public class KeyguardIndicationController implements StateListener, if (!mAccessibilityController.isAccessibilityEnabled()) { return; } mShadeController.showBouncer(false /* scrimmed */); mShadeController.animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_NONE, true /* force */); } /** Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/ShadeController.java +6 −0 Original line number Diff line number Diff line Loading @@ -42,6 +42,12 @@ public interface ShadeController { */ void instantExpandNotificationsPanel(); /** * Collapse the shade animated, showing the bouncer when on {@link StatusBarState#KEYGUARD} or * dismissing {@link StatusBar} when on {@link StatusBarState#SHADE}. */ void animateCollapsePanels(int flags, boolean force); /** * If the notifications panel is not fully expanded, collapse it animated. * Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +1 −5 Original line number Diff line number Diff line Loading @@ -3297,12 +3297,8 @@ public class StatusBar extends SystemUI implements DemoMode, @Override public void showBouncer(boolean scrimmed) { if (!mIsOccluded && !scrimmed && mState == StatusBarState.KEYGUARD) { animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_NONE, true /* force */); } else { mStatusBarKeyguardViewManager.showBouncer(scrimmed); } } @Override public void instantExpandNotificationsPanel() { Loading packages/SystemUI/tests/src/com/android/systemui/statusbar/KeyguardIndicationControllerTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -257,7 +257,7 @@ public class KeyguardIndicationControllerTest extends SysuiTestCase { when(mAccessibilityController.isAccessibilityEnabled()).thenReturn(true); clickCaptor.getValue().onClick(mLockIcon); verify(mShadeController).showBouncer(eq(false)); verify(mShadeController).animateCollapsePanels(anyInt(), eq(true)); longClickCaptor.getValue().onLongClick(mLockIcon); verify(mLockPatternUtils).requireCredentialEntry(anyInt()); Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/KeyguardIndicationController.java +1 −1 Original line number Diff line number Diff line Loading @@ -198,7 +198,7 @@ public class KeyguardIndicationController implements StateListener, if (!mAccessibilityController.isAccessibilityEnabled()) { return; } mShadeController.showBouncer(false /* scrimmed */); mShadeController.animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_NONE, true /* force */); } /** Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/ShadeController.java +6 −0 Original line number Diff line number Diff line Loading @@ -42,6 +42,12 @@ public interface ShadeController { */ void instantExpandNotificationsPanel(); /** * Collapse the shade animated, showing the bouncer when on {@link StatusBarState#KEYGUARD} or * dismissing {@link StatusBar} when on {@link StatusBarState#SHADE}. */ void animateCollapsePanels(int flags, boolean force); /** * If the notifications panel is not fully expanded, collapse it animated. * Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBar.java +1 −5 Original line number Diff line number Diff line Loading @@ -3297,12 +3297,8 @@ public class StatusBar extends SystemUI implements DemoMode, @Override public void showBouncer(boolean scrimmed) { if (!mIsOccluded && !scrimmed && mState == StatusBarState.KEYGUARD) { animateCollapsePanels(CommandQueue.FLAG_EXCLUDE_NONE, true /* force */); } else { mStatusBarKeyguardViewManager.showBouncer(scrimmed); } } @Override public void instantExpandNotificationsPanel() { Loading
packages/SystemUI/tests/src/com/android/systemui/statusbar/KeyguardIndicationControllerTest.java +1 −1 Original line number Diff line number Diff line Loading @@ -257,7 +257,7 @@ public class KeyguardIndicationControllerTest extends SysuiTestCase { when(mAccessibilityController.isAccessibilityEnabled()).thenReturn(true); clickCaptor.getValue().onClick(mLockIcon); verify(mShadeController).showBouncer(eq(false)); verify(mShadeController).animateCollapsePanels(anyInt(), eq(true)); longClickCaptor.getValue().onLongClick(mLockIcon); verify(mLockPatternUtils).requireCredentialEntry(anyInt()); Loading