public class DebugComponentDescriptionHelper extends Object
DebugComponent
s for use in testing and debugging. Note that ComponentsConfiguration.isEndToEndTestRun
must be enabled in order for
this data to be collected.Constructor and Description |
---|
DebugComponentDescriptionHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
addViewDescription(DebugComponent debugComponent,
StringBuilder sb,
int leftOffset,
int topOffset,
boolean embedded)
Appends a compact description of a
DebugComponent for debugging purposes. |
public static void addViewDescription(DebugComponent debugComponent, StringBuilder sb, int leftOffset, int topOffset, boolean embedded)
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"