diff options
| author | Mathew Inwood <mathewi@google.com> | 2018-08-17 14:56:00 +0100 |
|---|---|---|
| committer | Mathew Inwood <mathewi@google.com> | 2018-08-20 10:04:42 +0100 |
| commit | a570dee97792289f88613f7ffb4b4866e65bf674 (patch) | |
| tree | 69cec34f1554ee2e5cd4c89d46d7cf8eb9ba1265 /core/java/android/view/SurfaceSession.java | |
| parent | 4464d0c7a2e537b2f24947b879d9f35a063a7477 (diff) | |
Add @UnsupportedAppUsage annotations
For packages:
android.view.textservice
android.view.textclassifier.logging
android.view.textclassifier
android.view.inputmethod
android.view.autofill
android.view.accessibility
android.view
This is an automatically generated CL. See go/UnsupportedAppUsage
for more details.
Exempted-From-Owner-Approval: Mechanical changes to the codebase
which have been approved by Android API council and announced on
android-eng@
Bug: 110868826
Test: m
Change-Id: I4147b038ed7adf0311ee9918b44766f82a057eaf
Diffstat (limited to 'core/java/android/view/SurfaceSession.java')
| -rw-r--r-- | core/java/android/view/SurfaceSession.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/java/android/view/SurfaceSession.java b/core/java/android/view/SurfaceSession.java index ee08bf759511..a4fa12a57e93 100644 --- a/core/java/android/view/SurfaceSession.java +++ b/core/java/android/view/SurfaceSession.java @@ -16,6 +16,8 @@ package android.view; +import android.annotation.UnsupportedAppUsage; + /** * An instance of this class represents a connection to the surface * flinger, from which you can create one or more Surface instances that will @@ -24,6 +26,7 @@ package android.view; */ public final class SurfaceSession { // Note: This field is accessed by native code. + @UnsupportedAppUsage private long mNativeClient; // SurfaceComposerClient* private static native long nativeCreate(); @@ -32,6 +35,7 @@ public final class SurfaceSession { private static native void nativeKill(long ptr); /** Create a new connection with the surface flinger. */ + @UnsupportedAppUsage public SurfaceSession() { mNativeClient = nativeCreate(); } @@ -62,6 +66,7 @@ public final class SurfaceSession { * Unlike destroy(), after this call any surfaces that were created * from the session will no longer work. */ + @UnsupportedAppUsage public void kill() { nativeKill(mNativeClient); } |
