ViewDebug


public class ViewDebug
extends Object

java.lang.Object
   ↳ android.view.ViewDebug


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

Summary

Constants

boolean TRACE_HIERARCHY

This constant was deprecated in API level 16. This flag is now unused

boolean TRACE_RECYCLER

This constant was deprecated in API level 16. 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 was deprecated in API level 16. This method is now unused and invoking it is a no-op

static void startRecyclerTracing(String prefix, View view)

This method was deprecated in API level 16. This method is now unused and invoking it is a no-op

static void stopHierarchyTracing()

This method was deprecated in API level 16. This method is now unused and invoking it is a no-op

static void stopRecyclerTracing()

This method was deprecated in API level 16. This method is now unused and invoking it is a no-op

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

This method was deprecated in API level 16. This method is now unused and invoking it is a no-op

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

This method was deprecated in API level 16. This method is now unused and invoking it is a no-op

Inherited methods

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Constants

TRACE_HIERARCHY

Added in API level 1
Deprecated in API level 16
public static final boolean TRACE_HIERARCHY

This constant was deprecated in API level 16.
This flag is now unused

Constant Value: false

TRACE_RECYCLER

Added in API level 1
Deprecated in API level 16
public static final boolean TRACE_RECYCLER

This constant was deprecated in API level 16.
This flag is now unused

Constant Value: false

Public constructors

ViewDebug

public ViewDebug ()

Public methods

dumpCapturedView

Added in API level 3
public static void dumpCapturedView (String tag, 
                Object view)

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

Parameters
tag String: for log

view Object: for dump

startHierarchyTracing

Added in API level 1
Deprecated in API level 16
public static void startHierarchyTracing (String prefix, 
                View view)

This method was deprecated in API level 16.
This method is now unused and invoking it is a no-op

Parameters
prefix String

view View

startRecyclerTracing

Added in API level 1
Deprecated in API level 16
public static void startRecyclerTracing (String prefix, 
                View view)

This method was deprecated in API level 16.
This method is now unused and invoking it is a no-op

Parameters
prefix String

view View

stopHierarchyTracing

Added in API level 1
Deprecated in API level 16
public static void stopHierarchyTracing ()

This method was deprecated in API level 16.
This method is now unused and invoking it is a no-op

stopRecyclerTracing

Added in API level 1
Deprecated in API level 16
public static void stopRecyclerTracing ()

This method was deprecated in API level 16.
This method is now unused and invoking it is a no-op

trace

Added in API level 1
Deprecated in API level 16
public static void trace (View view, 
                ViewDebug.RecyclerTraceType type, 
                int... parameters)

This method was deprecated in API level 16.
This method is now unused and invoking it is a no-op

Parameters
view View

type ViewDebug.RecyclerTraceType

parameters int

trace

Added in API level 1
Deprecated in API level 16
public static void trace (View view, 
                ViewDebug.HierarchyTraceType type)

This method was deprecated in API level 16.
This method is now unused and invoking it is a no-op

Parameters
view View

type ViewDebug.HierarchyTraceType