Refine CUJ_NOTIFICATION_SHADE_EXPAND_COLLAPSE

Do not begin CUJ_NOTIFICATION_SHADE_EXPAND_COLLAPSE when isDozing.

Bug: 221405860
Test: atest NotificationPanelViewControllerTest
Change-Id: Ib00f4196c8a9489a275b8d7a4729b8c143ce0986
(cherry picked from commit 7e35b7a1aa)
This commit is contained in:
Milton Wu
2022-03-07 10:58:26 +08:00
parent 8507e74ef6
commit fa2510f0c7

View File

@@ -382,7 +382,7 @@ public abstract class PanelViewController {
protected void startExpandMotion(float newX, float newY, boolean startTracking,
float expandedHeight) {
if (!mHandlingPointerUp) {
if (!mHandlingPointerUp && !mStatusBarStateController.isDozing()) {
beginJankMonitoring(CUJ_NOTIFICATION_SHADE_EXPAND_COLLAPSE);
}
mInitialOffsetOnTouch = expandedHeight;
@@ -654,7 +654,9 @@ public abstract class PanelViewController {
@Override
public void onAnimationStart(Animator animation) {
beginJankMonitoring(CUJ_NOTIFICATION_SHADE_EXPAND_COLLAPSE);
if (!mStatusBarStateController.isDozing()) {
beginJankMonitoring(CUJ_NOTIFICATION_SHADE_EXPAND_COLLAPSE);
}
}
@Override