Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 29b47f75 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Adding tracepoints for tracking lock icon state" into qt-dev

parents 856fe0fe aee1b2aa
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -29,6 +29,7 @@ import android.graphics.drawable.AnimatedVectorDrawable;
import android.graphics.drawable.Drawable;
import android.hardware.biometrics.BiometricSourceType;
import android.os.Handler;
import android.os.Trace;
import android.util.AttributeSet;
import android.view.ViewGroup;
import android.view.accessibility.AccessibilityNodeInfo;
@@ -256,9 +257,12 @@ public class LockIcon extends KeyguardAffordanceView implements OnUserInfoChange
                            if (getDrawable() == animation && state == getState()
                                    && doesAnimationLoop(iconAnimRes)) {
                                animation.start();
                            } else {
                                Trace.endAsyncSection("LockIcon#Animation", state);
                            }
                        }
                    });
                    Trace.beginAsyncSection("LockIcon#Animation", state);
                    animation.start();
                }
            }