summaryrefslogtreecommitdiff
path: root/core/java/android/view/GhostView.java
diff options
context:
space:
mode:
authorMathew Inwood <mathewi@google.com>2018-08-17 14:56:00 +0100
committerMathew Inwood <mathewi@google.com>2018-08-20 10:04:42 +0100
commita570dee97792289f88613f7ffb4b4866e65bf674 (patch)
tree69cec34f1554ee2e5cd4c89d46d7cf8eb9ba1265 /core/java/android/view/GhostView.java
parent4464d0c7a2e537b2f24947b879d9f35a063a7477 (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/GhostView.java')
-rw-r--r--core/java/android/view/GhostView.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/view/GhostView.java b/core/java/android/view/GhostView.java
index d1b96baa6062..fa7b067deb20 100644
--- a/core/java/android/view/GhostView.java
+++ b/core/java/android/view/GhostView.java
@@ -15,6 +15,7 @@
*/
package android.view;
+import android.annotation.UnsupportedAppUsage;
import android.graphics.Canvas;
import android.graphics.Matrix;
import android.widget.FrameLayout;
@@ -91,6 +92,7 @@ public class GhostView extends View {
host.transformMatrixToLocal(matrix);
}
+ @UnsupportedAppUsage
public static GhostView addGhost(View view, ViewGroup viewGroup, Matrix matrix) {
if (!(view.getParent() instanceof ViewGroup)) {
throw new IllegalArgumentException("Ghosted views must be parented by a ViewGroup");
@@ -131,10 +133,12 @@ public class GhostView extends View {
return ghostView;
}
+ @UnsupportedAppUsage
public static GhostView addGhost(View view, ViewGroup viewGroup) {
return addGhost(view, viewGroup, null);
}
+ @UnsupportedAppUsage
public static void removeGhost(View view) {
GhostView ghostView = view.mGhostView;
if (ghostView != null) {