summaryrefslogtreecommitdiff
path: root/core/java/android/view/View.java
diff options
context:
space:
mode:
authorRobert Carr <racarr@google.com>2021-05-05 13:22:57 -0700
committerRobert Carr <racarr@google.com>2021-05-05 14:28:25 -0700
commit599f912e4e3611ca5d537b6780c026bcf44e8395 (patch)
tree1c0e13a7bb3bc3796f30c9535d6b1f9bf66fa373 /core/java/android/view/View.java
parent0e4d7f142b781bb6721c574592ba62a062bad183 (diff)
AttachedSurfaceControl: Respond to API feedback.
"Root" is eliminated from the interface name as it is a property of the object and not the interface, but remains highlighted in the getters to express the relationship between the called and returned object. Bug: 185365821 Test: Existing tests pass Change-Id: I163fc23f2c37c984ef3ffeb7514c4d8c1c1a3f90
Diffstat (limited to 'core/java/android/view/View.java')
-rw-r--r--core/java/android/view/View.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index 11fac0561907..72103dccff2e 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -29594,7 +29594,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
return mScrollCaptureInternal;
}
- ViewRoot getViewRoot() {
+ AttachedSurfaceControl getRootSurfaceControl() {
return mViewRootImpl;
}
@@ -31038,17 +31038,17 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
}
/**
- * @return The {@link android.view.ViewRoot} interface for this View. This will only
- * return a non-null value when called between {@link #onAttachedToWindow} and
- * {@link #onDetachedFromWindow}.
- *
- * The ViewRoot itself is not a View, it is just the interface to the windowing-system
- * object that contains the entire view hierarchy. For the root View of a given hierarchy
- * see {@link #getRootView}.
+ * The AttachedSurfaceControl itself is not a View, it is just the interface to the
+ * windowing-system object that contains the entire view hierarchy.
+ * For the root View of a given hierarchy see {@link #getRootView}.
+
+ * @return The {@link android.view.AttachedSurfaceControl} interface for this View.
+ * This will only return a non-null value when called between {@link #onAttachedToWindow}
+ * and {@link #onDetachedFromWindow}.
*/
- public @Nullable ViewRoot getViewRoot() {
+ public @Nullable AttachedSurfaceControl getRootSurfaceControl() {
if (mAttachInfo != null) {
- return mAttachInfo.getViewRoot();
+ return mAttachInfo.getRootSurfaceControl();
}
return null;
}