Loading packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardViewController.java +1 −1 Original line number Diff line number Diff line Loading @@ -475,7 +475,7 @@ public class UdfpsKeyguardViewController extends UdfpsAnimationViewController<Ud public void onPanelExpansionChanged( float fraction, boolean expanded, boolean tracking) { mPanelExpansionFraction = mKeyguardViewManager.bouncerIsInTransit() ? BouncerPanelExpansionCalculator mKeyguardViewManager.isBouncerInTransit() ? BouncerPanelExpansionCalculator .aboutToShowBouncerProgress(fraction) : fraction; updateAlpha(); } Loading packages/SystemUI/src/com/android/systemui/qs/QSFragment.java +1 −1 Original line number Diff line number Diff line Loading @@ -612,7 +612,7 @@ public class QSFragment extends LifecycleFragment implements QS, CommandQueue.Ca } else if (progress > 0 && view.getVisibility() != View.VISIBLE) { view.setVisibility((View.VISIBLE)); } float alpha = mQSPanelController.bouncerInTransit() float alpha = mQSPanelController.isBouncerInTransit() ? BouncerPanelExpansionCalculator.aboutToShowBouncerProgress(progress) : ShadeInterpolation.getContentAlpha(progress); view.setAlpha(alpha); Loading packages/SystemUI/src/com/android/systemui/qs/QSPanelController.java +2 −2 Original line number Diff line number Diff line Loading @@ -254,8 +254,8 @@ public class QSPanelController extends QSPanelControllerBase<QSPanel> { * * @return if bouncer is in transit */ public boolean bouncerInTransit() { return mStatusBarKeyguardViewManager.bouncerIsInTransit(); public boolean isBouncerInTransit() { return mStatusBarKeyguardViewManager.isBouncerInTransit(); } } packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/AmbientState.java +18 −1 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ import com.android.systemui.statusbar.notification.row.ExpandableNotificationRow import com.android.systemui.statusbar.notification.row.ExpandableView; import com.android.systemui.statusbar.notification.stack.StackScrollAlgorithm.BypassController; import com.android.systemui.statusbar.notification.stack.StackScrollAlgorithm.SectionProvider; import com.android.systemui.statusbar.phone.StatusBarKeyguardViewManager; import javax.inject.Inject; Loading @@ -45,6 +46,10 @@ public class AmbientState { private final SectionProvider mSectionProvider; private final BypassController mBypassController; /** * Used to read bouncer states. */ private StatusBarKeyguardViewManager mStatusBarKeyguardViewManager; private int mScrollY; private boolean mDimmed; private ActivatableNotificationView mActivatedChild; Loading Loading @@ -204,9 +209,11 @@ public class AmbientState { public AmbientState( Context context, @NonNull SectionProvider sectionProvider, @NonNull BypassController bypassController) { @NonNull BypassController bypassController, @Nullable StatusBarKeyguardViewManager statusBarKeyguardViewManager) { mSectionProvider = sectionProvider; mBypassController = bypassController; mStatusBarKeyguardViewManager = statusBarKeyguardViewManager; reload(context); } Loading Loading @@ -661,4 +668,14 @@ public class AmbientState { public int getStackTopMargin() { return mStackTopMargin; } /** * Check to see if we are about to show bouncer. * * @return if bouncer expansion is between 0 and 1. */ public boolean isBouncerInTransit() { return mStatusBarKeyguardViewManager != null && mStatusBarKeyguardViewManager.isBouncerInTransit(); } } packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/StackScrollAlgorithm.java +4 −1 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ import android.view.ViewGroup; import androidx.annotation.VisibleForTesting; import com.android.internal.policy.SystemBarUtils; import com.android.keyguard.BouncerPanelExpansionCalculator; import com.android.systemui.R; import com.android.systemui.animation.ShadeInterpolation; import com.android.systemui.statusbar.EmptyShadeView; Loading Loading @@ -431,7 +432,9 @@ public class StackScrollAlgorithm { } else if (ambientState.isExpansionChanging()) { // Adjust alpha for shade open & close. float expansion = ambientState.getExpansionFraction(); viewState.alpha = ShadeInterpolation.getContentAlpha(expansion); viewState.alpha = ambientState.isBouncerInTransit() ? BouncerPanelExpansionCalculator.aboutToShowBouncerProgress(expansion) : ShadeInterpolation.getContentAlpha(expansion); } if (ambientState.isShadeExpanded() && view.mustStayOnScreen() Loading Loading
packages/SystemUI/src/com/android/systemui/biometrics/UdfpsKeyguardViewController.java +1 −1 Original line number Diff line number Diff line Loading @@ -475,7 +475,7 @@ public class UdfpsKeyguardViewController extends UdfpsAnimationViewController<Ud public void onPanelExpansionChanged( float fraction, boolean expanded, boolean tracking) { mPanelExpansionFraction = mKeyguardViewManager.bouncerIsInTransit() ? BouncerPanelExpansionCalculator mKeyguardViewManager.isBouncerInTransit() ? BouncerPanelExpansionCalculator .aboutToShowBouncerProgress(fraction) : fraction; updateAlpha(); } Loading
packages/SystemUI/src/com/android/systemui/qs/QSFragment.java +1 −1 Original line number Diff line number Diff line Loading @@ -612,7 +612,7 @@ public class QSFragment extends LifecycleFragment implements QS, CommandQueue.Ca } else if (progress > 0 && view.getVisibility() != View.VISIBLE) { view.setVisibility((View.VISIBLE)); } float alpha = mQSPanelController.bouncerInTransit() float alpha = mQSPanelController.isBouncerInTransit() ? BouncerPanelExpansionCalculator.aboutToShowBouncerProgress(progress) : ShadeInterpolation.getContentAlpha(progress); view.setAlpha(alpha); Loading
packages/SystemUI/src/com/android/systemui/qs/QSPanelController.java +2 −2 Original line number Diff line number Diff line Loading @@ -254,8 +254,8 @@ public class QSPanelController extends QSPanelControllerBase<QSPanel> { * * @return if bouncer is in transit */ public boolean bouncerInTransit() { return mStatusBarKeyguardViewManager.bouncerIsInTransit(); public boolean isBouncerInTransit() { return mStatusBarKeyguardViewManager.isBouncerInTransit(); } }
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/AmbientState.java +18 −1 Original line number Diff line number Diff line Loading @@ -31,6 +31,7 @@ import com.android.systemui.statusbar.notification.row.ExpandableNotificationRow import com.android.systemui.statusbar.notification.row.ExpandableView; import com.android.systemui.statusbar.notification.stack.StackScrollAlgorithm.BypassController; import com.android.systemui.statusbar.notification.stack.StackScrollAlgorithm.SectionProvider; import com.android.systemui.statusbar.phone.StatusBarKeyguardViewManager; import javax.inject.Inject; Loading @@ -45,6 +46,10 @@ public class AmbientState { private final SectionProvider mSectionProvider; private final BypassController mBypassController; /** * Used to read bouncer states. */ private StatusBarKeyguardViewManager mStatusBarKeyguardViewManager; private int mScrollY; private boolean mDimmed; private ActivatableNotificationView mActivatedChild; Loading Loading @@ -204,9 +209,11 @@ public class AmbientState { public AmbientState( Context context, @NonNull SectionProvider sectionProvider, @NonNull BypassController bypassController) { @NonNull BypassController bypassController, @Nullable StatusBarKeyguardViewManager statusBarKeyguardViewManager) { mSectionProvider = sectionProvider; mBypassController = bypassController; mStatusBarKeyguardViewManager = statusBarKeyguardViewManager; reload(context); } Loading Loading @@ -661,4 +668,14 @@ public class AmbientState { public int getStackTopMargin() { return mStackTopMargin; } /** * Check to see if we are about to show bouncer. * * @return if bouncer expansion is between 0 and 1. */ public boolean isBouncerInTransit() { return mStatusBarKeyguardViewManager != null && mStatusBarKeyguardViewManager.isBouncerInTransit(); } }
packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/StackScrollAlgorithm.java +4 −1 Original line number Diff line number Diff line Loading @@ -27,6 +27,7 @@ import android.view.ViewGroup; import androidx.annotation.VisibleForTesting; import com.android.internal.policy.SystemBarUtils; import com.android.keyguard.BouncerPanelExpansionCalculator; import com.android.systemui.R; import com.android.systemui.animation.ShadeInterpolation; import com.android.systemui.statusbar.EmptyShadeView; Loading Loading @@ -431,7 +432,9 @@ public class StackScrollAlgorithm { } else if (ambientState.isExpansionChanging()) { // Adjust alpha for shade open & close. float expansion = ambientState.getExpansionFraction(); viewState.alpha = ShadeInterpolation.getContentAlpha(expansion); viewState.alpha = ambientState.isBouncerInTransit() ? BouncerPanelExpansionCalculator.aboutToShowBouncerProgress(expansion) : ShadeInterpolation.getContentAlpha(expansion); } if (ambientState.isShadeExpanded() && view.mustStayOnScreen() Loading