Loading core/java/com/android/internal/jank/InteractionJankMonitor.java +4 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ import android.os.Handler; import android.os.HandlerExecutor; import android.os.HandlerThread; import android.os.SystemClock; import android.os.Trace; import android.provider.DeviceConfig; import android.text.TextUtils; import android.util.Log; Loading Loading @@ -378,6 +379,7 @@ public class InteractionJankMonitor { * @return boolean true if the tracker is begun successfully, false otherwise. */ public boolean begin(@NonNull Configuration.Builder builder) { Trace.beginSection("InteractionJankMonitor#begin"); try { final Configuration config = builder.build(); postEventLogToWorkerThread((unixNanos, elapsedNanos, realtimeNanos) -> { Loading @@ -395,6 +397,8 @@ public class InteractionJankMonitor { } catch (IllegalArgumentException ex) { Log.d(TAG, "Build configuration failed!", ex); return false; } finally { Trace.endSection(); } } Loading Loading
core/java/com/android/internal/jank/InteractionJankMonitor.java +4 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ import android.os.Handler; import android.os.HandlerExecutor; import android.os.HandlerThread; import android.os.SystemClock; import android.os.Trace; import android.provider.DeviceConfig; import android.text.TextUtils; import android.util.Log; Loading Loading @@ -378,6 +379,7 @@ public class InteractionJankMonitor { * @return boolean true if the tracker is begun successfully, false otherwise. */ public boolean begin(@NonNull Configuration.Builder builder) { Trace.beginSection("InteractionJankMonitor#begin"); try { final Configuration config = builder.build(); postEventLogToWorkerThread((unixNanos, elapsedNanos, realtimeNanos) -> { Loading @@ -395,6 +397,8 @@ public class InteractionJankMonitor { } catch (IllegalArgumentException ex) { Log.d(TAG, "Build configuration failed!", ex); return false; } finally { Trace.endSection(); } } Loading