/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | AccessibilityNodeInfoUtils.kt | 22 import android.view.accessibility.AccessibilityNodeInfo in <lambda>() 25 val UI_ROOT: AccessibilityNodeInfo get() = in <lambda>() 28 val AccessibilityNodeInfo.bounds: Rect get() = Rect().also { getBoundsInScreen(it) } in <lambda>() constant 30 fun AccessibilityNodeInfo.click() { in AccessibilityNodeInfo() method 35 fun AccessibilityNodeInfo.depthFirstSearch( in AccessibilityNodeInfo() method 36 condition: (AccessibilityNodeInfo) -> Boolean in AccessibilityNodeInfo() 37 ): AccessibilityNodeInfo? { in AccessibilityNodeInfo() 45 fun AccessibilityNodeInfo.lowestCommonAncestor( in AccessibilityNodeInfo() method 46 condition1: (AccessibilityNodeInfo) -> Boolean, in AccessibilityNodeInfo() 47 condition2: (AccessibilityNodeInfo) -> Boolean in AccessibilityNodeInfo() [all …]
|
D | UiDumpUtils.java | 27 import android.view.accessibility.AccessibilityNodeInfo; 28 import android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction; 65 | AccessibilityNodeInfo.ACTION_ACCESSIBILITY_FOCUS 66 | AccessibilityNodeInfo.ACTION_CLEAR_ACCESSIBILITY_FOCUS 67 | AccessibilityNodeInfo.ACTION_FOCUS 68 | AccessibilityNodeInfo.ACTION_NEXT_AT_MOVEMENT_GRANULARITY 69 | AccessibilityNodeInfo.ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY 70 | AccessibilityNodeInfo.ACTION_SELECT 71 | AccessibilityNodeInfo.ACTION_SET_SELECTION 72 | AccessibilityNodeInfo.ACTION_CLEAR_SELECTION [all …]
|
D | MatcherUtils.java | 22 import android.view.accessibility.AccessibilityNodeInfo; 101 public static Matcher<AccessibilityNodeInfo> hasTextThat(Matcher<? super String> condition) { 102 return propertyMatches("text", AccessibilityNodeInfo::getText, condition); 109 public static Matcher<AccessibilityNodeInfo> hasIdThat(Matcher<? super String> condition) { 110 return propertyMatches("id", AccessibilityNodeInfo::getViewIdResourceName, condition);
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/ |
D | AccessibilityCacheTest.java | 38 import android.view.accessibility.AccessibilityNodeInfo; 125 AccessibilityNodeInfo info = mService.getRootInActiveWindow(); in queryNode_nodeIsInCache() 131 AccessibilityNodeInfo info = mService.getRootInActiveWindow(); in invalidateNode_nodeInCacheInvalidated() 140 AccessibilityNodeInfo root = mService.getRootInActiveWindow() in invalidateNode_subtreeInCacheInvalidated() 143 AccessibilityNodeInfo child0 = root.getChild(0); in invalidateNode_subtreeInCacheInvalidated() 144 AccessibilityNodeInfo child1 = root.getChild(1); in invalidateNode_subtreeInCacheInvalidated() 145 AccessibilityNodeInfo grandChild = child1.getChild(0); in invalidateNode_subtreeInCacheInvalidated() 157 AccessibilityNodeInfo root = mService.getRootInActiveWindow(); in clear_cacheInvalidated() 159 List<AccessibilityNodeInfo> allNodes = new ArrayList<>(); in clear_cacheInvalidated() 165 for (AccessibilityNodeInfo node : allNodes) { in clear_cacheInvalidated() [all …]
|
D | AccessibilityDragAndDropTest.java | 35 import android.view.accessibility.AccessibilityNodeInfo; 103 AccessibilityNodeInfo.AccessibilityAction.ACTION_DRAG_START, mDragStartedFilter); in testStartDrag_eventSentAndActionsUpdated() 106 final AccessibilityNodeInfo sourceNode = getSourceNode(); in testStartDrag_eventSentAndActionsUpdated() 107 assertNodeAction(sourceNode, AccessibilityNodeInfo.AccessibilityAction.ACTION_DRAG_CANCEL); in testStartDrag_eventSentAndActionsUpdated() 109 final AccessibilityNodeInfo targetNode = getTargetNode(); in testStartDrag_eventSentAndActionsUpdated() 110 assertNodeAction(targetNode, AccessibilityNodeInfo.AccessibilityAction.ACTION_DRAG_DROP); in testStartDrag_eventSentAndActionsUpdated() 116 AccessibilityNodeInfo.AccessibilityAction.ACTION_DRAG_START, in testCancelDrag_eventSentAndActionsUpdated() 120 AccessibilityNodeInfo.AccessibilityAction.ACTION_DRAG_CANCEL, in testCancelDrag_eventSentAndActionsUpdated() 127 final AccessibilityNodeInfo sourceNode = getSourceNode(); in testCancelDrag_eventSentAndActionsUpdated() 129 AccessibilityNodeInfo.AccessibilityAction.ACTION_DRAG_CANCEL); in testCancelDrag_eventSentAndActionsUpdated() [all …]
|
D | AccessibilityTextTraversalTest.java | 37 import android.view.accessibility.AccessibilityNodeInfo; 115 final AccessibilityNodeInfo text = sUiAutomation in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 120 assertEquals(granularities, AccessibilityNodeInfo.MOVEMENT_GRANULARITY_CHARACTER in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 121 | AccessibilityNodeInfo.MOVEMENT_GRANULARITY_WORD in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 122 | AccessibilityNodeInfo.MOVEMENT_GRANULARITY_PARAGRAPH); in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 125 arguments.putInt(AccessibilityNodeInfo.ACTION_ARGUMENT_MOVEMENT_GRANULARITY_INT, in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 126 AccessibilityNodeInfo.MOVEMENT_GRANULARITY_CHARACTER); in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 133 text.performAction(AccessibilityNodeInfo.ACTION_NEXT_AT_MOVEMENT_GRANULARITY, in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 143 AccessibilityNodeInfo.ACTION_NEXT_AT_MOVEMENT_GRANULARITY in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() 151 AccessibilityNodeInfo.MOVEMENT_GRANULARITY_CHARACTER); in testActionNextAndPreviousAtGranularityCharacterOverContentDescription() [all …]
|
D | AccessibilityViewTreeReportingTest.java | 36 import android.view.accessibility.AccessibilityNodeInfo; 103 AccessibilityNodeInfo firstFrameLayout = getNodeByText(R.string.firstFrameLayout); in testDescendantsOfNotImportantViewReportedInOrder1() 108 AccessibilityNodeInfo firstTextView = getNodeByText(R.string.firstTextView); in testDescendantsOfNotImportantViewReportedInOrder1() 112 AccessibilityNodeInfo firstEditText = getNodeByText(R.string.firstEditText); in testDescendantsOfNotImportantViewReportedInOrder1() 116 AccessibilityNodeInfo firstButton = getNodeByText(R.string.firstButton); in testDescendantsOfNotImportantViewReportedInOrder1() 122 AccessibilityNodeInfo secondFrameLayout = getNodeByText(R.string.secondFrameLayout); in testDescendantsOfNotImportantViewReportedInOrder2() 127 AccessibilityNodeInfo secondTextView = getNodeByText(R.string.secondTextView); in testDescendantsOfNotImportantViewReportedInOrder2() 131 AccessibilityNodeInfo secondEditText = getNodeByText(R.string.secondEditText); in testDescendantsOfNotImportantViewReportedInOrder2() 135 AccessibilityNodeInfo secondButton = getNodeByText(R.string.secondButton); in testDescendantsOfNotImportantViewReportedInOrder2() 141 AccessibilityNodeInfo rootLinearLayout = in testDescendantsOfNotImportantViewReportedInOrder3() [all …]
|
D | AccessibilityTextActionTest.java | 19 import static android.view.accessibility.AccessibilityNodeInfo.EXTRA_DATA_RENDERING_INFO_KEY; 20 import static android.view.accessibility.AccessibilityNodeInfo.EXTRA_DATA_TEXT_CHARACTER_LOCATION_A… 21 import static android.view.accessibility.AccessibilityNodeInfo.EXTRA_DATA_TEXT_CHARACTER_LOCATION_A… 22 import static android.view.accessibility.AccessibilityNodeInfo.EXTRA_DATA_TEXT_CHARACTER_LOCATION_K… 59 import android.view.accessibility.AccessibilityNodeInfo; 135 final AccessibilityNodeInfo text = sUiAutomation.getRootInActiveWindow() in testNotEditableTextView_shouldNotExposeOrRespondToSetTextAction() 139 .contains(AccessibilityNodeInfo.AccessibilityAction.ACTION_SET_TEXT)); in testNotEditableTextView_shouldNotExposeOrRespondToSetTextAction() 141 text.getActions() & AccessibilityNodeInfo.ACTION_SET_TEXT); in testNotEditableTextView_shouldNotExposeOrRespondToSetTextAction() 143 args.putCharSequence(AccessibilityNodeInfo.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE, in testNotEditableTextView_shouldNotExposeOrRespondToSetTextAction() 145 assertFalse(text.performAction(AccessibilityNodeInfo.ACTION_SET_TEXT, args)); in testNotEditableTextView_shouldNotExposeOrRespondToSetTextAction() [all …]
|
D | AccessibilityEmbeddedHierarchyTest.java | 43 import android.view.accessibility.AccessibilityNodeInfo; 123 final AccessibilityNodeInfo target = in testEmbeddedViewCanBeFound() 132 final AccessibilityNodeInfo embeddedNode = in testEmbeddedView_PerformActionTransfersWindowInputFocus() 143 embeddedNode.performAction(AccessibilityNodeInfo.ACTION_ACCESSIBILITY_FOCUS); in testEmbeddedView_PerformActionTransfersWindowInputFocus() 147 embeddedNode.performAction(AccessibilityNodeInfo.ACTION_CLICK); in testEmbeddedView_PerformActionTransfersWindowInputFocus() 154 final AccessibilityNodeInfo target = in testEmbeddedViewCanFindItsHostParent() 156 final AccessibilityNodeInfo parent = target.getParent(); in testEmbeddedViewCanFindItsHostParent() 162 final AccessibilityNodeInfo target = in testEmbeddedViewHasCorrectBound() 164 final AccessibilityNodeInfo parent = target.getParent(); in testEmbeddedViewHasCorrectBound() 183 final AccessibilityNodeInfo target = in testEmbeddedViewHasCorrectBoundAfterHostViewMove() [all …]
|
D | AccessibilityFocusAndInputFocusSyncTest.java | 22 import static android.view.accessibility.AccessibilityNodeInfo.ACTION_ACCESSIBILITY_FOCUS; 23 import static android.view.accessibility.AccessibilityNodeInfo.ACTION_CLEAR_ACCESSIBILITY_FOCUS; 48 import android.view.accessibility.AccessibilityNodeInfo; 151 final AccessibilityNodeInfo expected = sUiAutomation in testFindAccessibilityFocus() 165 AccessibilityNodeInfo received = sUiAutomation in testFindAccessibilityFocus() 166 .getRootInActiveWindow().findFocus(AccessibilityNodeInfo.FOCUS_ACCESSIBILITY); in testFindAccessibilityFocus() 178 AccessibilityNodeInfo focused = sUiAutomation in testInitialStateNoAccessibilityFocus() 179 .getRootInActiveWindow().findFocus(AccessibilityNodeInfo.FOCUS_ACCESSIBILITY); in testInitialStateNoAccessibilityFocus() 187 final AccessibilityNodeInfo rootLinearLayout = sUiAutomation in testActionAccessibilityFocus() 210 final AccessibilityNodeInfo rootLinearLayout = sUiAutomation in testActionClearAccessibilityFocus() [all …]
|
D | AccessibilityWindowQueryTest.java | 38 import static android.view.accessibility.AccessibilityNodeInfo.ACTION_CLEAR_ACCESSIBILITY_FOCUS; 39 import static android.view.accessibility.AccessibilityNodeInfo.ACTION_CLEAR_FOCUS; 40 import static android.view.accessibility.AccessibilityNodeInfo.ACTION_CLEAR_SELECTION; 41 import static android.view.accessibility.AccessibilityNodeInfo.ACTION_CLICK; 42 import static android.view.accessibility.AccessibilityNodeInfo.ACTION_FOCUS; 43 import static android.view.accessibility.AccessibilityNodeInfo.ACTION_LONG_CLICK; 44 import static android.view.accessibility.AccessibilityNodeInfo.ACTION_SELECT; 82 import android.view.accessibility.AccessibilityNodeInfo; 83 import android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction; 181 final AccessibilityNodeInfo addedContent = sUiAutomation in testFindByText() [all …]
|
D | AccessibilityEndToEndTest.java | 42 import static android.view.accessibility.AccessibilityNodeInfo.ACTION_ACCESSIBILITY_FOCUS; 43 import static android.view.accessibility.AccessibilityNodeInfo.ACTION_ARGUMENT_SCROLL_AMOUNT_FLOAT; 44 import static android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction.ACTION_HIDE_TOOL… 45 import static android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction.ACTION_SCROLL_IN… 46 import static android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction.ACTION_SHOW_TOOL… 119 import android.view.accessibility.AccessibilityNodeInfo; 647 AccessibilityNodeInfo root = sUiAutomation in testPackageNameCannotBeFaked() 680 AccessibilityNodeInfo root = sUiAutomation in testPackageNameCannotBeFakedAppWidget() 721 AccessibilityNodeInfo root = sUiAutomation in testPackageNameCannotBeFakedAppWidget() 757 final AccessibilityNodeInfo editTextNode = sUiAutomation.getRootInActiveWindow() in testViewHeadingReportedToAccessibility() [all …]
|
D | AccessibilityPaneTest.java | 40 import android.view.accessibility.AccessibilityNodeInfo; 105 AccessibilityNodeInfo paneNode = getPaneNode(); in paneTitleFromXml_reportedToAccessibility() 119 AccessibilityNodeInfo windowLikeNode = getPaneNode(); in windowLikeViewSettersWork_andNewValuesReportedToAccessibility() 156 private AccessibilityNodeInfo getPaneNode() { in getPaneNode()
|
D | AccessibilityWindowReportingTest.java | 68 import android.view.accessibility.AccessibilityNodeInfo; 228 final AccessibilityNodeInfo buttonNode = in moveFocusToAnotherWindow_generatesEventsAndMovesActiveAndFocus() 235 () -> buttonNode.performAction(AccessibilityNodeInfo.ACTION_FOCUS), in moveFocusToAnotherWindow_generatesEventsAndMovesActiveAndFocus() 246 final AccessibilityNodeInfo autoCompleteTextInfo = activityWindow.getRoot() in moveFocusToAnotherWindow_generatesEventsAndMovesActiveAndFocus() 257 buttonNode.performAction(AccessibilityNodeInfo.ACTION_FOCUS); in moveFocusToAnotherWindow_generatesEventsAndMovesActiveAndFocus() 345 final AccessibilityNodeInfo win2Node = in testChangeAccessibilityFocusWindow_getEvent() 348 final AccessibilityNodeInfo win1Node = activityWindow.getRoot() in testChangeAccessibilityFocusWindow_getEvent() 355 win2Node.performAction(AccessibilityNodeInfo.ACTION_ACCESSIBILITY_FOCUS); in testChangeAccessibilityFocusWindow_getEvent() 356 win1Node.performAction(AccessibilityNodeInfo.ACTION_ACCESSIBILITY_FOCUS); in testChangeAccessibilityFocusWindow_getEvent() 375 final AccessibilityNodeInfo autoCompleteTextInfo = sUiAutomation.getRootInActiveWindow() in testGetAnchorForDropDownForAutoCompleteTextView_returnsTextViewNode()
|
/cts/tests/accessibility/src/android/view/accessibility/cts/ |
D | AccessibilityNodeInfoTest.java | 48 import android.view.accessibility.AccessibilityNodeInfo; 49 import android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction; 50 import android.view.accessibility.AccessibilityNodeInfo.CollectionInfo; 51 import android.view.accessibility.AccessibilityNodeInfo.CollectionItemInfo; 52 import android.view.accessibility.AccessibilityNodeInfo.RangeInfo; 53 import android.view.accessibility.AccessibilityNodeInfo.TouchDelegateInfo; 83 AccessibilityNodeInfo sentInfo = AccessibilityNodeInfo.obtain(new View(getContext())); in testMarshaling() 90 AccessibilityNodeInfo receivedInfo = AccessibilityNodeInfo.CREATOR.createFromParcel(parcel); in testMarshaling() 105 AccessibilityNodeInfo firstInfo = new AccessibilityNodeInfo(view); in testConstructor() 106 AccessibilityNodeInfo secondInfo = new AccessibilityNodeInfo(); in testConstructor() [all …]
|
D | AccessibilityDelegateTest.java | 31 import android.view.accessibility.AccessibilityNodeInfo; 103 final AccessibilityNodeInfo info = AccessibilityNodeInfo.obtain(); in testViewDelegatesToAccessibilityDelegate() 115 AccessibilityNodeInfo.ACTION_ACCESSIBILITY_FOCUS, bundle); in testViewDelegatesToAccessibilityDelegate() 117 mParentView, AccessibilityNodeInfo.ACTION_ACCESSIBILITY_FOCUS, bundle); in testViewDelegatesToAccessibilityDelegate()
|
D | AccessibilityNodeInfo_CollectionItemInfoTest.java | 27 import android.view.accessibility.AccessibilityNodeInfo; 28 import android.view.accessibility.AccessibilityNodeInfo.CollectionItemInfo; 89 public static void verifyCollectionItemInfo(AccessibilityNodeInfo.CollectionItemInfo info, in verifyCollectionItemInfo()
|
D | AccessibilityNodeInfo_RangeInfoTest.java | 23 import android.view.accessibility.AccessibilityNodeInfo; 24 import android.view.accessibility.AccessibilityNodeInfo.RangeInfo;
|
D | AccessibilityEventAndCacheTest.java | 36 import android.view.accessibility.AccessibilityNodeInfo; 103 final List<AccessibilityNodeInfo> nodes = sUiAutomation.getRootInActiveWindow() in testSimultaneousChangesUpdatesAllChildNodes() 105 final AccessibilityNodeInfo listNode = nodes.get(0).getParent(); in testSimultaneousChangesUpdatesAllChildNodes()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/ |
D | ProviderCustomView.java | 22 import android.view.accessibility.AccessibilityNodeInfo; 61 public AccessibilityNodeInfo createAccessibilityNodeInfo(int virtualViewId) { in getAccessibilityNodeProvider() 62 AccessibilityNodeInfo hostNode = in getAccessibilityNodeProvider() 63 new AccessibilityNodeInfo(ProviderCustomView.this); in getAccessibilityNodeProvider()
|
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/activities/ |
D | AccessibilityWindowQueryActivity.java | 20 import android.view.accessibility.AccessibilityNodeInfo; 21 import android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction; 49 public void onInitializeAccessibilityNodeInfo(View host, AccessibilityNodeInfo info) { in onCreate()
|
D | AccessibilityDragAndDropActivity.java | 24 import android.view.accessibility.AccessibilityNodeInfo; 36 public void onInitializeAccessibilityNodeInfo(View host, AccessibilityNodeInfo info) { in onCreate() 37 info.addAction(AccessibilityNodeInfo.AccessibilityAction.ACTION_DRAG_START); in onCreate()
|
/cts/tests/accessibility/common/src/android/accessibility/cts/common/ |
D | AccessibilityDumper.java | 36 import android.view.accessibility.AccessibilityNodeInfo; 163 final Set<AccessibilityNodeInfo> roots = new HashSet<>(); in dumpAccessibilityNodeTreeOnLogcat() 165 AccessibilityNodeInfo root = window.getRoot(); in dumpAccessibilityNodeTreeOnLogcat() 177 for (AccessibilityNodeInfo root : roots) { in dumpAccessibilityNodeTreeOnLogcat() 183 private static void dumpTreeWithPrefix(AccessibilityNodeInfo node, String prefix) { in dumpTreeWithPrefix() 189 AccessibilityNodeInfo child = node.getChild(i); in dumpTreeWithPrefix() 198 private static void appendNodeText(StringBuilder out, AccessibilityNodeInfo node) { in appendNodeText()
|
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/ |
D | VirtualContainerView.java | 46 import android.view.accessibility.AccessibilityNodeInfo; 302 private AccessibilityNodeInfo onProvideAutofillCompatModeAccessibilityNodeInfo() { in onProvideAutofillCompatModeAccessibilityNodeInfo() 303 final AccessibilityNodeInfo node = AccessibilityNodeInfo.obtain(); in onProvideAutofillCompatModeAccessibilityNodeInfo() 321 private AccessibilityNodeInfo onProvideAutofillCompatModeAccessibilityNodeInfoForLoginButton() { in onProvideAutofillCompatModeAccessibilityNodeInfoForLoginButton() 322 final AccessibilityNodeInfo node = AccessibilityNodeInfo.obtain(); in onProvideAutofillCompatModeAccessibilityNodeInfoForLoginButton() 362 public AccessibilityNodeInfo createAccessibilityNodeInfo(int virtualViewId) { in setCompatMode() 378 if (action == AccessibilityNodeInfo.ACTION_SET_TEXT) { in setCompatMode() 380 AccessibilityNodeInfo.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE); in setCompatMode() 566 public AccessibilityNodeInfo provideAccessibilityNodeInfo(View parent, Context context) { in provideAccessibilityNodeInfo() 567 final AccessibilityNodeInfo node = AccessibilityNodeInfo.obtain(); in provideAccessibilityNodeInfo()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | RadioGroupTest.java | 35 import android.view.accessibility.AccessibilityNodeInfo; 428 AccessibilityNodeInfo info = AccessibilityNodeInfo.obtain(); in testOnInitializeAccessibilityNodeInfo_populatesCollectionInfo() 431 AccessibilityNodeInfo.CollectionInfo colInfo = info.getCollectionInfo(); in testOnInitializeAccessibilityNodeInfo_populatesCollectionInfo() 442 AccessibilityNodeInfo info = AccessibilityNodeInfo.obtain(); in testOnInitializeAccessibilityNodeInfo_populatesCollectionItemInfo() 445 AccessibilityNodeInfo.CollectionItemInfo colItemInfo = info.getCollectionItemInfo(); in testOnInitializeAccessibilityNodeInfo_populatesCollectionItemInfo() 456 AccessibilityNodeInfo info = AccessibilityNodeInfo.obtain(); in testOnInitializeAccessibilityNodeInfo_populatesColInfoWithInvalidCount() 459 AccessibilityNodeInfo.CollectionInfo colInfo = info.getCollectionInfo(); in testOnInitializeAccessibilityNodeInfo_populatesColInfoWithInvalidCount()
|