Loading core/java/android/view/AttachedSurfaceControl.java +3 −0 Original line number Diff line number Diff line Loading @@ -210,6 +210,9 @@ public interface AttachedSurfaceControl { /** * Registers a {@link OnJankDataListener} to receive jank classification data about rendered * frames. * <p> * Use {@link SurfaceControl.OnJankDataListenerRegistration#removeAfter} to unregister the * listener. * * @param executor The executor on which the listener will be invoked. * @param listener The listener to add. Loading core/java/android/view/SurfaceControl.java +5 −2 Original line number Diff line number Diff line Loading @@ -598,8 +598,11 @@ public final class SurfaceControl implements Parcelable { } /** * Request a flush of any pending jank classification data. May cause the registered * listener to be invoked inband. * Request a flush of any pending jank classification data. * <p> * May cause the registered listener to be invoked inband. Since jank is tracked by the * system compositor by surface, flushing the data on one listener, will also cause other * listeners on the same surface to receive jank classification data. */ public void flush() { nativeFlushJankData(mNativeObject); Loading Loading
core/java/android/view/AttachedSurfaceControl.java +3 −0 Original line number Diff line number Diff line Loading @@ -210,6 +210,9 @@ public interface AttachedSurfaceControl { /** * Registers a {@link OnJankDataListener} to receive jank classification data about rendered * frames. * <p> * Use {@link SurfaceControl.OnJankDataListenerRegistration#removeAfter} to unregister the * listener. * * @param executor The executor on which the listener will be invoked. * @param listener The listener to add. Loading
core/java/android/view/SurfaceControl.java +5 −2 Original line number Diff line number Diff line Loading @@ -598,8 +598,11 @@ public final class SurfaceControl implements Parcelable { } /** * Request a flush of any pending jank classification data. May cause the registered * listener to be invoked inband. * Request a flush of any pending jank classification data. * <p> * May cause the registered listener to be invoked inband. Since jank is tracked by the * system compositor by surface, flushing the data on one listener, will also cause other * listeners on the same surface to receive jank classification data. */ public void flush() { nativeFlushJankData(mNativeObject); Loading