diff options
| author | 2024-11-06 17:22:07 +0000 | |
|---|---|---|
| committer | 2024-11-06 17:22:07 +0000 | |
| commit | 233e29aec250918a177433ee486d25e5a5878772 (patch) | |
| tree | b68bc58f40672d389c74c5562b315507b3bf098d | |
| parent | ea0378dc388aec0ccde233ba17a83b032190a251 (diff) | |
| parent | 237836ae49f13ccf31800ccb1db0aea1c8a36ac4 (diff) | |
Merge "Fix UiAutomator breakage by eliminating flagged lines in AccessibilityNodeInfo#toString()." into main
| -rw-r--r-- | core/java/android/view/accessibility/AccessibilityNodeInfo.java | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/core/java/android/view/accessibility/AccessibilityNodeInfo.java b/core/java/android/view/accessibility/AccessibilityNodeInfo.java index 59a82bef1c92..fe4f0cd73fff 100644 --- a/core/java/android/view/accessibility/AccessibilityNodeInfo.java +++ b/core/java/android/view/accessibility/AccessibilityNodeInfo.java @@ -5492,26 +5492,6 @@ public class AccessibilityNodeInfo implements Parcelable { } } - private static String getExpandedStateSymbolicName(int state) { - if (Flags.a11yExpansionStateApi()) { - switch (state) { - case EXPANDED_STATE_UNDEFINED: - return "EXPANDED_STATE_UNDEFINED"; - case EXPANDED_STATE_COLLAPSED: - return "EXPANDED_STATE_COLLAPSED"; - case EXPANDED_STATE_PARTIAL: - return "EXPANDED_STATE_PARTIAL"; - case EXPANDED_STATE_FULL: - return "EXPANDED_STATE_FULL"; - default: - throw new IllegalArgumentException("Unknown expanded state: " + state); - } - } else { - // TODO(b/362782158) Remove when flag is removed. - return ""; - } - } - private static boolean canPerformRequestOverConnection(int connectionId, int windowId, long accessibilityNodeId) { final boolean hasWindowId = windowId != AccessibilityWindowInfo.UNDEFINED_WINDOW_ID; @@ -5609,7 +5589,6 @@ public class AccessibilityNodeInfo implements Parcelable { builder.append("; containerTitle: ").append(mContainerTitle); builder.append("; viewIdResName: ").append(mViewIdResourceName); builder.append("; uniqueId: ").append(mUniqueId); - builder.append("; expandedState: ").append(getExpandedStateSymbolicName(mExpandedState)); builder.append("; checkable: ").append(isCheckable()); builder.append("; checked: ").append(isChecked()); builder.append("; focusable: ").append(isFocusable()); |