diff options
| author | Joe Onorato <joeo@google.com> | 2011-04-12 11:53:13 -0700 |
|---|---|---|
| committer | Joe Onorato <joeo@google.com> | 2011-05-04 14:08:11 -0700 |
| commit | c6cc0f8c19d9eccf408a443fa2bf668af261dcd0 (patch) | |
| tree | 7d1aeea43ab965be44af5cf5e4f5c15546a1a757 /core/java/android/view/ViewDebug.java | |
| parent | 325039ec5ca9edd5fa0b518bb831ae4e2aedfb5d (diff) | |
Rename ViewRoot to ViewAncestor.
ViewRoot is about to be a new public class for poking at ViewAncestor.
Change-Id: Ie95d707c6d8bbb48f78d093d7b2667851812a7d5
Diffstat (limited to 'core/java/android/view/ViewDebug.java')
| -rw-r--r-- | core/java/android/view/ViewDebug.java | 16 |
1 files changed, 8 insertions, 8 deletions
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(); } /** |
