public class AccessibilityNodeInfoDumper extends Object
Constructor and Description |
---|
AccessibilityNodeInfoDumper() |
Modifier and Type | Method and Description |
---|---|
static void |
dumpWindowToFile(AccessibilityNodeInfo root,
File dumpFile,
int rotation,
int width,
int height)
Using
AccessibilityNodeInfo this method will walk the layout hierarchy
and generates an xml dump to the location specified by dumpFile |
static void |
dumpWindowToFile(AccessibilityNodeInfo root,
int rotation,
int width,
int height)
Using
AccessibilityNodeInfo this method will walk the layout hierarchy
and generates an xml dump into the /data/local/window_dump.xml |
public static void dumpWindowToFile(AccessibilityNodeInfo root, int rotation, int width, int height)
AccessibilityNodeInfo
this method will walk the layout hierarchy
and generates an xml dump into the /data/local/window_dump.xmlroot
- The root accessibility node.rotation
- The rotaion of current displaywidth
- The pixel width of current displayheight
- The pixel height of current displaypublic static void dumpWindowToFile(AccessibilityNodeInfo root, File dumpFile, int rotation, int width, int height)
AccessibilityNodeInfo
this method will walk the layout hierarchy
and generates an xml dump to the location specified by dumpFile
root
- The root accessibility node.dumpFile
- The file to dump to.rotation
- The rotaion of current displaywidth
- The pixel width of current displayheight
- The pixel height of current display