From c6cc0f8c19d9eccf408a443fa2bf668af261dcd0 Mon Sep 17 00:00:00 2001 From: Joe Onorato Date: Tue, 12 Apr 2011 11:53:13 -0700 Subject: Rename ViewRoot to ViewAncestor. ViewRoot is about to be a new public class for poking at ViewAncestor. Change-Id: Ie95d707c6d8bbb48f78d093d7b2667851812a7d5 --- core/java/android/view/ViewDebug.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'core/java/android/view/ViewDebug.java') diff --git a/core/java/android/view/ViewDebug.java b/core/java/android/view/ViewDebug.java index 881cb7682b92..3f05b2947b1a 100644 --- a/core/java/android/view/ViewDebug.java +++ b/core/java/android/view/ViewDebug.java @@ -395,7 +395,7 @@ public class ViewDebug { } private static BufferedWriter sHierarchyTraces; - private static ViewRoot sHierarhcyRoot; + private static ViewAncestor sHierarhcyRoot; private static String sHierarchyTracePrefix; /** @@ -434,7 +434,7 @@ public class ViewDebug { } private static BufferedWriter sMotionEventTraces; - private static ViewRoot sMotionEventRoot; + private static ViewAncestor sMotionEventRoot; private static String sMotionEventTracePrefix; /** @@ -449,14 +449,14 @@ public class ViewDebug { } /** - * Returns the number of instanciated ViewRoots. + * Returns the number of instanciated ViewAncestors. * - * @return The number of ViewRoots instanciated in the current process. + * @return The number of ViewAncestors instanciated in the current process. * * @hide */ - public static long getViewRootInstanceCount() { - return Debug.countInstancesOfClass(ViewRoot.class); + public static long getViewAncestorInstanceCount() { + return Debug.countInstancesOfClass(ViewAncestor.class); } /** @@ -670,7 +670,7 @@ public class ViewDebug { return; } - sHierarhcyRoot = (ViewRoot) view.getRootView().getParent(); + sHierarhcyRoot = (ViewAncestor) view.getRootView().getParent(); } /** @@ -808,7 +808,7 @@ public class ViewDebug { return; } - sMotionEventRoot = (ViewRoot) view.getRootView().getParent(); + sMotionEventRoot = (ViewAncestor) view.getRootView().getParent(); } /** -- cgit v1.2.3