public
class
ViewDebug
extends Object
java.lang.Object | |
↳ | android.view.ViewDebug |
Various debugging/tracing tools related to View
and the view hierarchy.
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 was deprecated in API level 16. This enum is now unused |
@interface |
ViewDebug.IntToString
Defines a mapping from an int value to a String. |
enum |
ViewDebug.RecyclerTraceType
This enum was deprecated in API level 16. This enum is now unused |
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 | |
---|---|
From
class
java.lang.Object
|
boolean TRACE_HIERARCHY
This constant was deprecated
in API level 16.
This flag is now unused
Constant Value: false
boolean TRACE_RECYCLER
This constant was deprecated
in API level 16.
This flag is now unused
Constant Value: false
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
|
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
|
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
|
void stopHierarchyTracing ()
This method was deprecated
in API level 16.
This method is now unused and invoking it is a no-op
void stopRecyclerTracing ()
This method was deprecated
in API level 16.
This method is now unused and invoking it is a no-op
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
|
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
|