From 599f912e4e3611ca5d537b6780c026bcf44e8395 Mon Sep 17 00:00:00 2001 From: Robert Carr Date: Wed, 5 May 2021 13:22:57 -0700 Subject: 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 --- core/java/android/view/View.java | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'core/java/android/view/View.java') 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; } -- cgit v1.2.3