public class DebugComponentDescriptionHelper
extends java.lang.Object
DebugComponent
s for use in testing and debugging. Note that ComponentsConfiguration.isEndToEndTestRun
must be enabled in order for
this data to be collected.Modifier and Type | Class and Description |
---|---|
static interface |
DebugComponentDescriptionHelper.ExtraDescription
An interface for callsite to append extra description into
StringBuilder by given
DebugComponent . |
Constructor and Description |
---|
DebugComponentDescriptionHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
addViewDescription(DebugComponent debugComponent,
java.lang.StringBuilder sb,
int leftOffset,
int topOffset,
boolean embedded,
boolean withProps) |
static void |
addViewDescription(DebugComponent debugComponent,
java.lang.StringBuilder sb,
int leftOffset,
int topOffset,
boolean embedded,
boolean withProps,
DebugComponentDescriptionHelper.ExtraDescription extraDescription)
Appends a compact description of a
DebugComponent for debugging purposes. |
static JSONObject |
getExtraProps(java.lang.Object node) |
public static void addViewDescription(DebugComponent debugComponent, java.lang.StringBuilder sb, int leftOffset, int topOffset, boolean embedded, boolean withProps)
public static void addViewDescription(DebugComponent debugComponent, java.lang.StringBuilder sb, int leftOffset, int topOffset, boolean embedded, boolean withProps, DebugComponentDescriptionHelper.ExtraDescription extraDescription)
DebugComponent
for debugging purposes.debugComponent
- The DebugComponent
sb
- The StringBuilder
to which the description is appendedleftOffset
- Offset of the parent component relative to litho viewtopOffset
- Offset of the parent component relative to litho viewembedded
- Whether the call is embedded in "adb dumpsys activity"extraDescription
- An interface for callsite to append extra description.public static JSONObject getExtraProps(java.lang.Object node)