From 6faeaa2a9b4182a466522fe118860329d9f4c3a7 Mon Sep 17 00:00:00 2001 From: Steven Thomas Date: Tue, 7 Apr 2020 21:26:38 -0700 Subject: [PATCH] Add acquireFrameRateFlexibilityToken permission comment Add a comment explaining the permissions necessary for a successful call to acquireFrameRateFlexibilityToken(). This is feedback from a previously submitted CL. Change-Id: Id316e6943153c20a06d90af844605851591e225c Bug: 148033900 Test: n/a --- core/java/android/view/SurfaceControl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/java/android/view/SurfaceControl.java b/core/java/android/view/SurfaceControl.java index b5f9df72f7566..e4f51f9ad2d0f 100644 --- a/core/java/android/view/SurfaceControl.java +++ b/core/java/android/view/SurfaceControl.java @@ -2876,7 +2876,8 @@ public final class SurfaceControl implements Parcelable { /** * Acquire a frame rate flexibility token, which allows surface flinger to freely switch display * frame rates. This is used by CTS tests to put the device in a consistent state. See - * ISurfaceComposer::acquireFrameRateFlexibilityToken(). + * ISurfaceComposer::acquireFrameRateFlexibilityToken(). The caller must have the + * ACCESS_SURFACE_FLINGER permission, or else the call will fail, returning 0. * @hide */ @TestApi