summaryrefslogtreecommitdiff
path: root/cmds
diff options
context:
space:
mode:
author Yichun Li <yichunli@google.com> 2024-11-15 17:49:30 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2024-11-15 17:49:30 +0000
commita0ba9680a0e1ec358e08b91d68c91e85867f639e (patch)
treed8881efb980ab0cd07b3b04100d54d8bb84a7e42 /cmds
parent8e1671a79bcb5272c0223027ecd981269a9fbb67 (diff)
parentb25ded068b9b08dbce8958a7715f0e7778746f32 (diff)
Merge "Add drawing-order and hint to dump cmd xml output" into main am: b25ded068b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/3349921 Change-Id: I761581ec10c1e7957fc802a4aa46367e58f37661 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'cmds')
-rw-r--r--cmds/uiautomator/library/core-src/com/android/uiautomator/core/AccessibilityNodeInfoDumper.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmds/uiautomator/library/core-src/com/android/uiautomator/core/AccessibilityNodeInfoDumper.java b/cmds/uiautomator/library/core-src/com/android/uiautomator/core/AccessibilityNodeInfoDumper.java
index f726361effd6..a88796c38166 100644
--- a/cmds/uiautomator/library/core-src/com/android/uiautomator/core/AccessibilityNodeInfoDumper.java
+++ b/cmds/uiautomator/library/core-src/com/android/uiautomator/core/AccessibilityNodeInfoDumper.java
@@ -217,6 +217,9 @@ public class AccessibilityNodeInfoDumper {
serializer.attribute("", "selected", Boolean.toString(node.isSelected()));
serializer.attribute("", "bounds", AccessibilityNodeInfoHelper.getVisibleBoundsInScreen(
node, width, height).toShortString());
+ serializer.attribute("", "drawing-order", Integer.toString(node.getDrawingOrder()));
+ serializer.attribute("", "hint", safeCharSeqToString(node.getHintText()));
+
int count = node.getChildCount();
for (int i = 0; i < count; i++) {
AccessibilityNodeInfo child = node.getChild(i);