| /test/uiautomator/integration-tests/testapp/src/androidTest/java/androidx/test/uiautomator/testapp/ |
| D | UiSelectorTest.java | 27 import androidx.test.uiautomator.UiSelector; 37 assertTrue(mDevice.findObject(new UiSelector().text("Sample text")).exists()); in testText() 38 assertFalse(mDevice.findObject(new UiSelector().text("Not text")).exists()); in testText() 40 assertEquals("UiSelector[TEXT=text]", new UiSelector().text("text").toString()); in testText() 47 assertTrue(mDevice.findObject(new UiSelector().textMatches(".*text.*")).exists()); in testTextMatches() 48 assertFalse(mDevice.findObject(new UiSelector().textMatches(".*nottext.*")).exists()); in testTextMatches() 51 new UiSelector().textMatches(".*text.*").toString()); in testTextMatches() 58 assertTrue(mDevice.findObject(new UiSelector().textStartsWith("Text")).exists()); in testTextStartsWith() 59 assertFalse(mDevice.findObject(new UiSelector().textStartsWith("NotText")).exists()); in testTextStartsWith() 62 new UiSelector().textStartsWith("Text").toString()); in testTextStartsWith() [all …]
|
| D | UiScrollableTest.java | 27 import androidx.test.uiautomator.UiSelector; 43 mDefaultMaxSearchSwipes = new UiScrollable(new UiSelector()).getMaxSearchSwipes(); in setUp() 45 new UiScrollable(new UiSelector()).getSwipeDeadZonePercentage(); in setUp() 50 new UiScrollable(new UiSelector()).setMaxSearchSwipes(mDefaultMaxSearchSwipes); in tearDown() 51 new UiScrollable(new UiSelector()).setSwipeDeadZonePercentage( in tearDown() 60 new UiSelector().resourceId(TEST_APP + ":id/relative_layout")); in testGetChildByDescription() 62 relativeLayout.getChildByDescription(new UiSelector().className(TextView.class), in testGetChildByDescription() 68 new UiSelector().className(TextView.class), in testGetChildByDescription() 77 new UiSelector().resourceId(TEST_APP + ":id/relative_layout")); in testGetChildByDescription_withoutScrollSearch() 79 relativeLayout.getChildByDescription(new UiSelector().className(TextView.class), in testGetChildByDescription_withoutScrollSearch() [all …]
|
| D | UiObjectTest.java | 29 import androidx.test.uiautomator.UiSelector; 36 private static UiSelector resourceId(String id) { in resourceId() 37 return new UiSelector().resourceId(TEST_APP + ":id/" + id); in resourceId() 60 UiObject treeN2 = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id/tree_N2")); in testGetChild() 61 UiObject treeN3 = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id/tree_N3")); in testGetChild() 64 treeN2.getChild(new UiSelector().resourceId(TEST_APP + ":id/tree_N4")).exists()); in testGetChild() 65 assertTrue(treeN3.getChild(new UiSelector().resourceId(TEST_APP + ":id/tree_N4")).exists()); in testGetChild() 72 UiObject treeN4 = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id/tree_N4")); in testGetFromParent() 75 new UiSelector().resourceId(TEST_APP + ":id/tree_N2")).exists()); in testGetFromParent() 77 new UiSelector().resourceId(TEST_APP + ":id/tree_N5")).exists()); in testGetFromParent() [all …]
|
| /test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/ |
| D | UiSelector.java | 34 public class UiSelector { class 70 public UiSelector() { in UiSelector() method in UiSelector 73 UiSelector(UiSelector selector) { in UiSelector() method in UiSelector 77 protected @NonNull UiSelector cloneSelector() { in cloneSelector() 78 UiSelector ret = new UiSelector(); in cloneSelector() 81 ret.mSelectorAttributes.put(SELECTOR_CHILD, new UiSelector(getChildSelector())); in cloneSelector() 83 ret.mSelectorAttributes.put(SELECTOR_PARENT, new UiSelector(getParentSelector())); in cloneSelector() 85 ret.mSelectorAttributes.put(SELECTOR_PATTERN, new UiSelector(getPatternSelector())); in cloneSelector() 89 static UiSelector patternBuilder(UiSelector selector) { in patternBuilder() 91 return new UiSelector().patternSelector(selector); in patternBuilder() [all …]
|
| D | UiCollection.java | 32 public UiCollection(@NonNull UiSelector selector) { in UiCollection() 50 public @NonNull UiObject getChildByDescription(@NonNull UiSelector childPattern, in getChildByDescription() 60 UiObject item = row.getChild(new UiSelector().descriptionContains(text)); in getChildByDescription() 82 public @NonNull UiObject getChildByInstance(@NonNull UiSelector childPattern, int instance) in getChildByInstance() 84 UiSelector patternSelector = UiSelector.patternBuilder(getSelector(), in getChildByInstance() 85 UiSelector.patternBuilder(childPattern).instance(instance)); in getChildByInstance() 104 public @NonNull UiObject getChildByText(@NonNull UiSelector childPattern, @NonNull String text) in getChildByText() 114 UiObject item = row.getChild(new UiSelector().text(text)); in getChildByText() 133 public int getChildCount(@NonNull UiSelector childPattern) { in getChildCount() 134 UiSelector patternSelector = in getChildCount() [all …]
|
| D | UiScrollable.java | 57 public UiScrollable(@NonNull UiSelector container) { in UiScrollable() 88 protected boolean exists(@NonNull UiSelector selector) { in exists() 110 @NonNull UiSelector childPattern, @NonNull String text) in getChildByDescription() 130 public @NonNull UiObject getChildByDescription(@NonNull UiSelector childPattern, in getChildByDescription() 134 scrollIntoView(new UiSelector().descriptionContains(text)); in getChildByDescription() 152 public @NonNull UiObject getChildByInstance(@NonNull UiSelector childPattern, int instance) in getChildByInstance() 154 UiSelector patternSelector = UiSelector.patternBuilder(getSelector(), in getChildByInstance() 155 UiSelector.patternBuilder(childPattern).instance(instance)); in getChildByInstance() 175 public @NonNull UiObject getChildByText(@NonNull UiSelector childPattern, @NonNull String text) in getChildByText() 194 public @NonNull UiObject getChildByText(@NonNull UiSelector childPattern, in getChildByText() [all …]
|
| D | QueryController.java | 139 public int getPatternCount(UiSelector selector) { in getPatternCount() 149 public AccessibilityNodeInfo findAccessibilityNodeInfo(UiSelector selector) { in findAccessibilityNodeInfo() 153 protected AccessibilityNodeInfo findAccessibilityNodeInfo(UiSelector selector, in findAccessibilityNodeInfo() 168 UiSelector uiSelector = new UiSelector(selector); in findAccessibilityNodeInfo() 226 private AccessibilityNodeInfo translateCompoundSelector(UiSelector selector, in translateCompoundSelector() 296 private AccessibilityNodeInfo translateReqularSelector(UiSelector selector, in translateReqularSelector() 302 private AccessibilityNodeInfo findNodeRegularRecursive(UiSelector subSelector, in findNodeRegularRecursive() 383 private AccessibilityNodeInfo translatePatternSelector(UiSelector subSelector, in translatePatternSelector() 414 UiSelector subSelector, AccessibilityNodeInfo fromNode, int index, in findNodePatternRecursive() 415 UiSelector originalPattern) { in findNodePatternRecursive()
|
| D | UiObject.java | 52 private final UiSelector mUiSelector; 66 public UiObject(UiSelector selector) { in UiObject() 75 UiObject(UiDevice device, UiSelector selector) { in UiObject() 86 public final @NonNull UiSelector getSelector() { in getSelector() 123 public @NonNull UiObject getChild(@NonNull UiSelector selector) in getChild() 136 public @NonNull UiObject getFromParent(@NonNull UiSelector selector) in getFromParent()
|
| D | UiDevice.java | 133 public @NonNull UiObject findObject(@NonNull UiSelector selector) { in findObject()
|
| /test/uiautomator/uiautomator/api/ |
| D | 2.2.0.txt | 135 ctor public UiCollection(androidx.test.uiautomator.UiSelector!); 136 ….uiautomator.UiObject! getChildByDescription(androidx.test.uiautomator.UiSelector!, String!) throw… 137 …est.uiautomator.UiObject! getChildByInstance(androidx.test.uiautomator.UiSelector!, int) throws an… 138 …dx.test.uiautomator.UiObject! getChildByText(androidx.test.uiautomator.UiSelector!, String!) throw… 139 method public int getChildCount(androidx.test.uiautomator.UiSelector!); 150 …ethod public androidx.test.uiautomator.UiObject! findObject(androidx.test.uiautomator.UiSelector!); 208 ctor @Deprecated public UiObject(androidx.test.uiautomator.UiSelector!); 220 …method public androidx.test.uiautomator.UiObject! getChild(androidx.test.uiautomator.UiSelector!) … 224 …idx.test.uiautomator.UiObject! getFromParent(androidx.test.uiautomator.UiSelector!) throws android… 226 method public final androidx.test.uiautomator.UiSelector! getSelector(); [all …]
|
| D | restricted_2.2.0.txt | 135 ctor public UiCollection(androidx.test.uiautomator.UiSelector!); 136 ….uiautomator.UiObject! getChildByDescription(androidx.test.uiautomator.UiSelector!, String!) throw… 137 …est.uiautomator.UiObject! getChildByInstance(androidx.test.uiautomator.UiSelector!, int) throws an… 138 …dx.test.uiautomator.UiObject! getChildByText(androidx.test.uiautomator.UiSelector!, String!) throw… 139 method public int getChildCount(androidx.test.uiautomator.UiSelector!); 150 …ethod public androidx.test.uiautomator.UiObject! findObject(androidx.test.uiautomator.UiSelector!); 208 ctor @Deprecated public UiObject(androidx.test.uiautomator.UiSelector!); 220 …method public androidx.test.uiautomator.UiObject! getChild(androidx.test.uiautomator.UiSelector!) … 224 …idx.test.uiautomator.UiObject! getFromParent(androidx.test.uiautomator.UiSelector!) throws android… 226 method public final androidx.test.uiautomator.UiSelector! getSelector(); [all …]
|
| D | restricted_2.3.0-beta01.txt | 158 ctor public UiCollection(androidx.test.uiautomator.UiSelector); 159 …t.uiautomator.UiObject getChildByDescription(androidx.test.uiautomator.UiSelector, String) throws … 160 …test.uiautomator.UiObject getChildByInstance(androidx.test.uiautomator.UiSelector, int) throws and… 161 …idx.test.uiautomator.UiObject getChildByText(androidx.test.uiautomator.UiSelector, String) throws … 162 method public int getChildCount(androidx.test.uiautomator.UiSelector); 174 … method public androidx.test.uiautomator.UiObject findObject(androidx.test.uiautomator.UiSelector); 248 ctor @Deprecated public UiObject(androidx.test.uiautomator.UiSelector!); 260 …method public androidx.test.uiautomator.UiObject getChild(androidx.test.uiautomator.UiSelector) th… 264 …oidx.test.uiautomator.UiObject getFromParent(androidx.test.uiautomator.UiSelector) throws androidx… 266 method public final androidx.test.uiautomator.UiSelector getSelector(); [all …]
|
| D | 2.3.0-beta01.txt | 158 ctor public UiCollection(androidx.test.uiautomator.UiSelector); 159 …t.uiautomator.UiObject getChildByDescription(androidx.test.uiautomator.UiSelector, String) throws … 160 …test.uiautomator.UiObject getChildByInstance(androidx.test.uiautomator.UiSelector, int) throws and… 161 …idx.test.uiautomator.UiObject getChildByText(androidx.test.uiautomator.UiSelector, String) throws … 162 method public int getChildCount(androidx.test.uiautomator.UiSelector); 174 … method public androidx.test.uiautomator.UiObject findObject(androidx.test.uiautomator.UiSelector); 248 ctor @Deprecated public UiObject(androidx.test.uiautomator.UiSelector!); 260 …method public androidx.test.uiautomator.UiObject getChild(androidx.test.uiautomator.UiSelector) th… 264 …oidx.test.uiautomator.UiObject getFromParent(androidx.test.uiautomator.UiSelector) throws androidx… 266 method public final androidx.test.uiautomator.UiSelector getSelector(); [all …]
|
| D | current.txt | 269 ctor public UiCollection(androidx.test.uiautomator.UiSelector); 270 …t.uiautomator.UiObject getChildByDescription(androidx.test.uiautomator.UiSelector, String) throws … 271 …test.uiautomator.UiObject getChildByInstance(androidx.test.uiautomator.UiSelector, int) throws and… 272 …idx.test.uiautomator.UiObject getChildByText(androidx.test.uiautomator.UiSelector, String) throws … 273 method public int getChildCount(androidx.test.uiautomator.UiSelector); 285 … method public androidx.test.uiautomator.UiObject findObject(androidx.test.uiautomator.UiSelector); 382 ctor @Deprecated public UiObject(androidx.test.uiautomator.UiSelector!); 394 …method public androidx.test.uiautomator.UiObject getChild(androidx.test.uiautomator.UiSelector) th… 398 …oidx.test.uiautomator.UiObject getFromParent(androidx.test.uiautomator.UiSelector) throws androidx… 400 method public final androidx.test.uiautomator.UiSelector getSelector(); [all …]
|
| D | restricted_current.txt | 269 ctor public UiCollection(androidx.test.uiautomator.UiSelector); 270 …t.uiautomator.UiObject getChildByDescription(androidx.test.uiautomator.UiSelector, String) throws … 271 …test.uiautomator.UiObject getChildByInstance(androidx.test.uiautomator.UiSelector, int) throws and… 272 …idx.test.uiautomator.UiObject getChildByText(androidx.test.uiautomator.UiSelector, String) throws … 273 method public int getChildCount(androidx.test.uiautomator.UiSelector); 285 … method public androidx.test.uiautomator.UiObject findObject(androidx.test.uiautomator.UiSelector); 382 ctor @Deprecated public UiObject(androidx.test.uiautomator.UiSelector!); 394 …method public androidx.test.uiautomator.UiObject getChild(androidx.test.uiautomator.UiSelector) th… 398 …oidx.test.uiautomator.UiObject getFromParent(androidx.test.uiautomator.UiSelector) throws androidx… 400 method public final androidx.test.uiautomator.UiSelector getSelector(); [all …]
|