diff options
author | Ahan Wu <ahanwu@google.com> | 2021-01-13 16:08:06 +0800 |
---|---|---|
committer | Ahan Wu <ahanwu@google.com> | 2021-01-15 16:09:07 +0800 |
commit | d515f02c80e64f39f486b52507ce2454838f33b2 (patch) | |
tree | a40bfb2258692fdcc957300393b39ad475e176bf /packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java | |
parent | f65debad4853be4b4a492163a10d379a0af699e5 (diff) |
Add jank instrumentation logic in keyguard
Add instrument logic in keyguard for jank.
Bug: 169221091
Bug: 169220724
Test: Manually
Change-Id: I18e36bd7ae10693ce974c1bb54b384a29d890ef7
Diffstat (limited to 'packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java')
-rw-r--r-- | packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java b/packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java index 580d7043a220..b7a2c64dd107 100644 --- a/packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java +++ b/packages/SystemUI/src/com/android/keyguard/KeyguardPINView.java @@ -22,6 +22,7 @@ import android.view.View; import android.view.ViewGroup; import android.view.animation.AnimationUtils; +import com.android.internal.jank.InteractionJankMonitor; import com.android.settingslib.animation.AppearAnimationUtils; import com.android.settingslib.animation.DisappearAnimationUtils; import com.android.systemui.R; @@ -116,7 +117,8 @@ public class KeyguardPINView extends KeyguardPinBasedInputView { setAlpha(1f); setTranslationY(mAppearAnimationUtils.getStartTranslation()); AppearAnimationUtils.startTranslationYAnimation(this, 0 /* delay */, 500 /* duration */, - 0, mAppearAnimationUtils.getInterpolator()); + 0, mAppearAnimationUtils.getInterpolator(), + getAnimationListener(InteractionJankMonitor.CUJ_LOCKSCREEN_PIN_APPEAR)); mAppearAnimationUtils.startAnimation2d(mViews, new Runnable() { @Override @@ -132,7 +134,8 @@ public class KeyguardPINView extends KeyguardPinBasedInputView { enableClipping(false); setTranslationY(0); AppearAnimationUtils.startTranslationYAnimation(this, 0 /* delay */, 280 /* duration */, - mDisappearYTranslation, mDisappearAnimationUtils.getInterpolator()); + mDisappearYTranslation, mDisappearAnimationUtils.getInterpolator(), + getAnimationListener(InteractionJankMonitor.CUJ_LOCKSCREEN_PIN_DISAPPEAR)); DisappearAnimationUtils disappearAnimationUtils = needsSlowUnlockTransition ? mDisappearAnimationUtilsLocked : mDisappearAnimationUtils; |