Add CUJ_NOTIFICATION_SHADE_ROW_EXPAND CUJ
Add CUJ_NOTIFICATION_SHADE_ROW_EXPAND for recording during a notification is expanding from closed state. Bug: 199715431 Bug: 204963604 Test: atest com.android.systemui.ExpandHelperTest Change-Id: If6a464dd74263424b18a1491c491c4a52922a5c8
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
|
||||
package com.android.systemui;
|
||||
|
||||
import static com.android.internal.jank.InteractionJankMonitor.CUJ_NOTIFICATION_SHADE_ROW_EXPAND;
|
||||
|
||||
import android.animation.Animator;
|
||||
import android.animation.AnimatorListenerAdapter;
|
||||
import android.animation.ObjectAnimator;
|
||||
@@ -32,6 +34,7 @@ import android.view.View;
|
||||
import android.view.ViewConfiguration;
|
||||
|
||||
import com.android.internal.annotations.VisibleForTesting;
|
||||
import com.android.internal.jank.InteractionJankMonitor;
|
||||
import com.android.systemui.statusbar.notification.row.ExpandableNotificationRow;
|
||||
import com.android.systemui.statusbar.notification.row.ExpandableView;
|
||||
import com.android.systemui.statusbar.policy.ScrollAdapter;
|
||||
@@ -544,6 +547,7 @@ public class ExpandHelper implements Gefingerpoken {
|
||||
}
|
||||
if (DEBUG) Log.d(TAG, "got mOldHeight: " + mOldHeight +
|
||||
" mNaturalHeight: " + mNaturalHeight);
|
||||
InteractionJankMonitor.getInstance().begin(v, CUJ_NOTIFICATION_SHADE_ROW_EXPAND);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -608,6 +612,9 @@ public class ExpandHelper implements Gefingerpoken {
|
||||
}
|
||||
mCallback.setUserLockedChild(scaledView, false);
|
||||
mScaleAnimation.removeListener(this);
|
||||
if (wasClosed) {
|
||||
InteractionJankMonitor.getInstance().end(CUJ_NOTIFICATION_SHADE_ROW_EXPAND);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -625,6 +632,9 @@ public class ExpandHelper implements Gefingerpoken {
|
||||
mCallback.setUserExpandedChild(mResizedView, nowExpanded);
|
||||
mCallback.setUserLockedChild(mResizedView, false);
|
||||
mScaler.setView(null);
|
||||
if (wasClosed) {
|
||||
InteractionJankMonitor.getInstance().end(CUJ_NOTIFICATION_SHADE_ROW_EXPAND);
|
||||
}
|
||||
}
|
||||
|
||||
mExpanding = false;
|
||||
|
||||
Reference in New Issue
Block a user