Loading packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +4 −9 Original line number Diff line number Diff line Loading @@ -2439,7 +2439,7 @@ public class NotificationPanelViewController extends PanelViewController { mSplitShadeHeaderController.setShadeExpandedFraction(shadeExpandedFraction); mSplitShadeHeaderController.setQsExpandedFraction(qsExpansionFraction); mSplitShadeHeaderController.setShadeExpanded(mQsVisible); mKeyguardStatusBarViewController.updateViewState(); if (mCommunalViewController != null) { mCommunalViewController.updateQsExpansion(qsExpansionFraction); Loading Loading @@ -4736,8 +4736,6 @@ public class NotificationPanelViewController extends PanelViewController { public interface NotificationPanelViewStateProvider { /** Returns the expanded height of the panel view. */ float getPanelViewExpandedHeight(); /** Returns the fraction of QS that's expanded. */ float getQsExpansionFraction(); /** * Returns true if heads up should be visible. * Loading @@ -4757,11 +4755,6 @@ public class NotificationPanelViewController extends PanelViewController { return getExpandedHeight(); } @Override public float getQsExpansionFraction() { return computeQsExpansionFraction(); } @Override public boolean shouldHeadsUpBeVisible() { return mHeadsUpAppearanceController.shouldBeVisible(); Loading @@ -4769,7 +4762,9 @@ public class NotificationPanelViewController extends PanelViewController { @Override public float getLockscreenShadeDragProgress() { return mLockscreenShadeTransitionController.getQSDragProgress(); return mTransitioningToFullShadeProgress > 0 ? mLockscreenShadeTransitionController.getQSDragProgress() : computeQsExpansionFraction(); } }; Loading packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/KeyguardStatusBarViewControllerTest.java +0 −10 Original line number Diff line number Diff line Loading @@ -354,7 +354,6 @@ public class KeyguardStatusBarViewControllerTest extends SysuiTestCase { TestNotificationPanelViewStateProvider() {} private float mPanelViewExpandedHeight = 100f; private float mQsExpansionFraction = 0f; private boolean mShouldHeadsUpBeVisible = false; private float mLockscreenShadeDragProgress = 0f; Loading @@ -363,11 +362,6 @@ public class KeyguardStatusBarViewControllerTest extends SysuiTestCase { return mPanelViewExpandedHeight; } @Override public float getQsExpansionFraction() { return mQsExpansionFraction; } @Override public boolean shouldHeadsUpBeVisible() { return mShouldHeadsUpBeVisible; Loading @@ -382,10 +376,6 @@ public class KeyguardStatusBarViewControllerTest extends SysuiTestCase { this.mPanelViewExpandedHeight = panelViewExpandedHeight; } public void setQsExpansionFraction(float qsExpansionFraction) { this.mQsExpansionFraction = qsExpansionFraction; } public void setShouldHeadsUpBeVisible(boolean shouldHeadsUpBeVisible) { this.mShouldHeadsUpBeVisible = shouldHeadsUpBeVisible; } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/phone/NotificationPanelViewController.java +4 −9 Original line number Diff line number Diff line Loading @@ -2439,7 +2439,7 @@ public class NotificationPanelViewController extends PanelViewController { mSplitShadeHeaderController.setShadeExpandedFraction(shadeExpandedFraction); mSplitShadeHeaderController.setQsExpandedFraction(qsExpansionFraction); mSplitShadeHeaderController.setShadeExpanded(mQsVisible); mKeyguardStatusBarViewController.updateViewState(); if (mCommunalViewController != null) { mCommunalViewController.updateQsExpansion(qsExpansionFraction); Loading Loading @@ -4736,8 +4736,6 @@ public class NotificationPanelViewController extends PanelViewController { public interface NotificationPanelViewStateProvider { /** Returns the expanded height of the panel view. */ float getPanelViewExpandedHeight(); /** Returns the fraction of QS that's expanded. */ float getQsExpansionFraction(); /** * Returns true if heads up should be visible. * Loading @@ -4757,11 +4755,6 @@ public class NotificationPanelViewController extends PanelViewController { return getExpandedHeight(); } @Override public float getQsExpansionFraction() { return computeQsExpansionFraction(); } @Override public boolean shouldHeadsUpBeVisible() { return mHeadsUpAppearanceController.shouldBeVisible(); Loading @@ -4769,7 +4762,9 @@ public class NotificationPanelViewController extends PanelViewController { @Override public float getLockscreenShadeDragProgress() { return mLockscreenShadeTransitionController.getQSDragProgress(); return mTransitioningToFullShadeProgress > 0 ? mLockscreenShadeTransitionController.getQSDragProgress() : computeQsExpansionFraction(); } }; Loading
packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/KeyguardStatusBarViewControllerTest.java +0 −10 Original line number Diff line number Diff line Loading @@ -354,7 +354,6 @@ public class KeyguardStatusBarViewControllerTest extends SysuiTestCase { TestNotificationPanelViewStateProvider() {} private float mPanelViewExpandedHeight = 100f; private float mQsExpansionFraction = 0f; private boolean mShouldHeadsUpBeVisible = false; private float mLockscreenShadeDragProgress = 0f; Loading @@ -363,11 +362,6 @@ public class KeyguardStatusBarViewControllerTest extends SysuiTestCase { return mPanelViewExpandedHeight; } @Override public float getQsExpansionFraction() { return mQsExpansionFraction; } @Override public boolean shouldHeadsUpBeVisible() { return mShouldHeadsUpBeVisible; Loading @@ -382,10 +376,6 @@ public class KeyguardStatusBarViewControllerTest extends SysuiTestCase { this.mPanelViewExpandedHeight = panelViewExpandedHeight; } public void setQsExpansionFraction(float qsExpansionFraction) { this.mQsExpansionFraction = qsExpansionFraction; } public void setShouldHeadsUpBeVisible(boolean shouldHeadsUpBeVisible) { this.mShouldHeadsUpBeVisible = shouldHeadsUpBeVisible; } Loading