to top
Android APIs
public class

ViewDebug

extends Object
java.lang.Object
   ↳ android.view.ViewDebug

Class Overview

Various debugging/tracing tools related to View and the view hierarchy.

Summary

Nested Classes
@interface ViewDebug.CapturedViewProperty This annotation can be used to mark fields and methods to be dumped when the view is captured. 
@interface ViewDebug.ExportedProperty This annotation can be used to mark fields and methods to be dumped by the view server. 
@interface ViewDebug.FlagToString Defines a mapping from a flag to a String. 
enum ViewDebug.HierarchyTraceType This enum is deprecated. This enum is now unused  
@interface ViewDebug.IntToString Defines a mapping from an int value to a String. 
enum ViewDebug.RecyclerTraceType This enum is deprecated. This enum is now unused  
Constants
boolean TRACE_HIERARCHY This constant is deprecated. This flag is now unused
boolean TRACE_RECYCLER This constant is deprecated. This flag is now unused
Public Constructors
ViewDebug()
Public Methods
static void dumpCapturedView(String tag, Object view)
Dump view info for id based instrument test generation (and possibly further data analysis).
static void startHierarchyTracing(String prefix, View view)
This method is deprecated. This method is now unused and invoking it is a no-op
static void startRecyclerTracing(String prefix, View view)
This method is deprecated. This method is now unused and invoking it is a no-op
static void stopHierarchyTracing()
This method is deprecated. This method is now unused and invoking it is a no-op
static void stopRecyclerTracing()
This method is deprecated. This method is now unused and invoking it is a no-op
static void trace(View view, ViewDebug.RecyclerTraceType type, int... parameters)
This method is deprecated. This method is now unused and invoking it is a no-op
static void trace(View view, ViewDebug.HierarchyTraceType type)
This method is deprecated. This method is now unused and invoking it is a no-op
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final boolean TRACE_HIERARCHY

Since: API Level 1

This constant is deprecated.
This flag is now unused

Constant Value: false

public static final boolean TRACE_RECYCLER

Since: API Level 1

This constant is deprecated.
This flag is now unused

Constant Value: false

Public Constructors

public ViewDebug ()

Since: API Level 1

Public Methods

public static void dumpCapturedView (String tag, Object view)

Since: API Level 3

Dump view info for id based instrument test generation (and possibly further data analysis). The results are dumped to the log.

Parameters
tag for log
view for dump

public static void startHierarchyTracing (String prefix, View view)

Since: API Level 1

This method is deprecated.
This method is now unused and invoking it is a no-op

public static void startRecyclerTracing (String prefix, View view)

Since: API Level 1

This method is deprecated.
This method is now unused and invoking it is a no-op

public static void stopHierarchyTracing ()

Since: API Level 1

This method is deprecated.
This method is now unused and invoking it is a no-op

public static void stopRecyclerTracing ()

Since: API Level 1

This method is deprecated.
This method is now unused and invoking it is a no-op

public static void trace (View view, ViewDebug.RecyclerTraceType type, int... parameters)

Since: API Level 1

This method is deprecated.
This method is now unused and invoking it is a no-op

public static void trace (View view, ViewDebug.HierarchyTraceType type)

Since: API Level 1

This method is deprecated.
This method is now unused and invoking it is a no-op