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

Commit 25be4e04 authored by Doris Liu's avatar Doris Liu Committed by Android (Google) Code Review
Browse files

Merge "Expose some hidden APIs in Choreographer to CTS"

parents 6047bf4f 4f8a98cb
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -961,6 +961,9 @@ package android.view {

  public final class Choreographer {
    method public static long getFrameDelay();
    method public void postCallback(int, java.lang.Runnable, java.lang.Object);
    method public void postCallbackDelayed(int, java.lang.Runnable, java.lang.Object, long);
    method public void removeCallbacks(int, java.lang.Runnable, java.lang.Object);
    method public static void setFrameDelay(long);
    field public static final int CALLBACK_ANIMATION = 1; // 0x1
  }
+3 −0
Original line number Diff line number Diff line
@@ -373,6 +373,7 @@ public final class Choreographer {
     * @see #removeCallbacks
     * @hide
     */
    @TestApi
    public void postCallback(int callbackType, Runnable action, Object token) {
        postCallbackDelayed(callbackType, action, token, 0);
    }
@@ -391,6 +392,7 @@ public final class Choreographer {
     * @see #removeCallback
     * @hide
     */
    @TestApi
    public void postCallbackDelayed(int callbackType,
            Runnable action, Object token, long delayMillis) {
        if (action == null) {
@@ -440,6 +442,7 @@ public final class Choreographer {
     * @see #postCallbackDelayed
     * @hide
     */
    @TestApi
    public void removeCallbacks(int callbackType, Runnable action, Object token) {
        if (callbackType < 0 || callbackType > CALLBACK_LAST) {
            throw new IllegalArgumentException("callbackType is invalid");