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

Commit 197a6743 authored by Doris Liu's avatar Doris Liu
Browse files

Expose necessary methods/fields to CTS using testApi

BUG: 62066083
Test: CtsViewTestCases

Change-Id: Iea7d752e38d046e3547c41cb987115472a7630f6
parent d1574102
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -44484,10 +44484,13 @@ package android.view {
  }
  public final class Choreographer {
    method public static long getFrameDelay();
    method public static android.view.Choreographer getInstance();
    method public void postFrameCallback(android.view.Choreographer.FrameCallback);
    method public void postFrameCallbackDelayed(android.view.Choreographer.FrameCallback, long);
    method public void removeFrameCallback(android.view.Choreographer.FrameCallback);
    method public static void setFrameDelay(long);
    field public static final int CALLBACK_ANIMATION = 1; // 0x1
  }
  public static abstract interface Choreographer.FrameCallback {
+4 −0
Original line number Diff line number Diff line
@@ -19,6 +19,7 @@ package android.view;
import static android.view.DisplayEventReceiver.VSYNC_SOURCE_APP;
import static android.view.DisplayEventReceiver.VSYNC_SOURCE_SURFACE_FLINGER;

import android.annotation.TestApi;
import android.hardware.display.DisplayManagerGlobal;
import android.os.Handler;
import android.os.Looper;
@@ -195,6 +196,7 @@ public final class Choreographer {
     * Callback type: Animation callback.  Runs before traversals.
     * @hide
     */
    @TestApi
    public static final int CALLBACK_ANIMATION = 1;

    /**
@@ -286,6 +288,7 @@ public final class Choreographer {
     * @return the requested time between frames, in milliseconds
     * @hide
     */
    @TestApi
    public static long getFrameDelay() {
        return sFrameDelay;
    }
@@ -305,6 +308,7 @@ public final class Choreographer {
     * @param frameDelay the requested time between frames, in milliseconds
     * @hide
     */
    @TestApi
    public static void setFrameDelay(long frameDelay) {
        sFrameDelay = frameDelay;
    }