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

Commit d4021ca6 authored by John Reck's avatar John Reck
Browse files

Mark startRenderingCommandsCapture @UnsupportedAppUsage

This is to opt-out of hidden api enforcement essentially as
Studio needs to be able to access this symbol regardless
of if it's in an instrumentation test or not.

The API itself isn't really stable, nor a system API,
so making it public & @SystemApi respectively was discouraged.

So keeping it a @TestApi, indicating it's clearly coupled
to the current platform version, and using @UnsupportedAppUsage
to opt-out of hidden api enforcement seems to be the least-worst
combination.

Test: none
Change-Id: Id297107595cc7dfce62661940d5d61ee5efe4d7b
parent b1635458
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1066,6 +1066,7 @@ public class ViewDebug {
     */
    @TestApi
    @Nullable
    @UnsupportedAppUsage // Visible for Studio; least-worst option available
    public static AutoCloseable startRenderingCommandsCapture(View tree, Executor executor,
            Callable<OutputStream> callback) {
        final View.AttachInfo attachInfo = tree.mAttachInfo;