Home
last modified time | relevance | path

Searched refs:findObject (Results 1 – 21 of 21) sorted by relevance

/test/uiautomator/integration-tests/testapp/src/androidTest/java/androidx/test/uiautomator/testapp/
DUiSelectorTest.java37 assertTrue(mDevice.findObject(new UiSelector().text("Sample text")).exists()); in testText()
38 assertFalse(mDevice.findObject(new UiSelector().text("Not text")).exists()); in testText()
47 assertTrue(mDevice.findObject(new UiSelector().textMatches(".*text.*")).exists()); in testTextMatches()
48 assertFalse(mDevice.findObject(new UiSelector().textMatches(".*nottext.*")).exists()); in testTextMatches()
58 assertTrue(mDevice.findObject(new UiSelector().textStartsWith("Text")).exists()); in testTextStartsWith()
59 assertFalse(mDevice.findObject(new UiSelector().textStartsWith("NotText")).exists()); in testTextStartsWith()
69 assertTrue(mDevice.findObject(new UiSelector().textContains("text")).exists()); in testTextContains()
70 assertFalse(mDevice.findObject(new UiSelector().textContains("not-text")).exists()); in testTextContains()
81 mDevice.findObject(new UiSelector().className("android.widget.Button")).exists()); in testClassName_withString()
83 mDevice.findObject(new UiSelector().className("android.widget.Switch")).exists()); in testClassName_withString()
[all …]
DUiObjectTest.java60 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()
72 UiObject treeN4 = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id/tree_N4")); in testGetFromParent()
84 UiObject treeN2 = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id/tree_N2")); in testGetChildCount()
85 UiObject treeN3 = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id/tree_N3")); in testGetChildCount()
95 UiObject noNode = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id/no_node")); in testGetChildCount_throwsUiObjectNotFoundException()
105 UiObject dragButton = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id" in testDragTo_destObjAndSteps()
107 UiObject dragDestination = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id" in testDragTo_destObjAndSteps()
110 UiObject expectedDragDest = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id" in testDragTo_destObjAndSteps()
126 UiObject dragButton = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id" in testDragTo_destXAndDestYAndSteps()
[all …]
DUntilTest.java48 UiObject2 button = mDevice.findObject(By.res(TEST_APP, "gone_button")); in testGone()
59 UiObject2 button = mDevice.findObject(By.res(TEST_APP, "find_button")); in testHasObject()
70 UiObject2 button = mDevice.findObject(By.res(TEST_APP, "find_button")); in testFindObject()
74 assertNotNull(mDevice.wait(Until.findObject(target), TIMEOUT_MS)); in testFindObject()
81 UiObject2 button = mDevice.findObject(By.res(TEST_APP, "find_button")); in testFindObjects()
92 UiObject2 button = mDevice.findObject(By.res(TEST_APP, "checked_button")); in testChecked()
93 UiObject2 target = mDevice.findObject(By.res(TEST_APP, "checked_target")); in testChecked()
103 UiObject2 button = mDevice.findObject(By.res(TEST_APP, "clickable_button")); in testClickable()
104 UiObject2 target = mDevice.findObject(By.res(TEST_APP, "clickable_target")); in testClickable()
114 UiObject2 button = mDevice.findObject(By.res(TEST_APP, "enabled_button")); in testEnabled()
[all …]
DUiObject2Test.java66 UiObject2 object = mDevice.findObject(By.res(TEST_APP, "edit_text")); in testClear()
80 UiObject2 button1 = mDevice.findObject(By.res(TEST_APP, "button1")); in testClick()
94 UiObject2 button2 = mDevice.findObject(By.res(TEST_APP, "button2")); in testClick_point()
101 UiObject2 button3 = mDevice.findObject(By.res(TEST_APP, "button3")); in testClick_point()
113 UiObject2 button4 = mDevice.findObject(By.res(TEST_APP, "button4")); in testClick_duration()
120 UiObject2 button5 = mDevice.findObject(By.res(TEST_APP, "button5")); in testClick_duration()
132 UiObject2 button6 = mDevice.findObject(By.res(TEST_APP, "button6")); in testClick_pointAndDuration()
139 UiObject2 button7 = mDevice.findObject(By.res(TEST_APP, "button7")); in testClick_pointAndDuration()
152 UiObject2 button = mDevice.findObject(By.res(TEST_APP, "new_window_button")); in testClickAndWait_conditionAndTimeout()
161 UiObject2 button1 = mDevice.findObject(By.res(TEST_APP, "new_window_button")); in testClickAndWait_pointAndConditionAndTimeout()
[all …]
DUiDeviceTest.java109 UiObject2 button = mDevice.findObject(By.res(TEST_APP, "new_window_button")); in testPerformActionAndWait()
121 assertNull(mDevice.findObject(By.res(TEST_APP, "nested_elements"))); in testSetCompressedLayoutHeirarchy()
124 assertNotNull(mDevice.findObject(By.res(TEST_APP, "nested_elements"))); in testSetCompressedLayoutHeirarchy()
141 UiObject2 textView = mDevice.findObject(By.res(TEST_APP, "text_view")); in testPressMenu()
150 UiObject2 textView = mDevice.findObject(By.res(TEST_APP, "text_view")); in testPressBack()
159 UiObject2 textView = mDevice.findObject(By.res(TEST_APP, "text_view")); in testPressSearch()
168 UiObject2 textView = mDevice.findObject(By.res(TEST_APP, "text_view")); in testPressDPadCenter()
177 UiObject2 textView = mDevice.findObject(By.res(TEST_APP, "text_view")); in testPressDPadDown()
186 UiObject2 textView = mDevice.findObject(By.res(TEST_APP, "text_view")); in testPressDPadUp()
195 UiObject2 textView = mDevice.findObject(By.res(TEST_APP, "text_view")); in testPressDPadLeft()
[all …]
DComposeTest.java41 UiObject2 top = mDevice.findObject(By.res("top-text")); in testEndToEnd()
45 UiObject2 column = mDevice.findObject(By.scrollable(true)); in testEndToEnd()
48 Until.findObject(By.clazz(Button.class))); in testEndToEnd()
52 UiObject2 text = mDevice.wait(Until.findObject(By.text("Initial")), TIMEOUT_MS); in testEndToEnd()
DUiScrollableTest.java143 UiObject target = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id" in testScrollDescriptionIntoView()
158 UiObject target = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id" in testScrollIntoView_withUiObject()
160 UiObject nonExistentTarget = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id" in testScrollIntoView_withUiObject()
178 assertFalse(mDevice.findObject(target).exists()); in testScrollIntoView_withUiSelector()
180 assertTrue(mDevice.findObject(target).exists()); in testScrollIntoView_withUiSelector()
190 UiObject target = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id" in testScrollTextIntoView()
285 UiObject topText = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id" in testScrollToBeginning_withSteps()
300 UiObject topText = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id" in testScrollToBeginning_notEnoughSwipes_failed()
315 UiObject topText = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id" in testScrollToBeginning()
341 UiObject bottomText = mDevice.findObject( in testScrollToEnd_withSteps()
[all …]
DMultiWindowTest.java52 UiObject2 firstWindow = mDevice.findObject(firstWindowSelector); in testMultiWindow_splitScreen()
57 UiObject2 secondWindow = mDevice.findObject(secondWindowSelector); in testMultiWindow_splitScreen()
DMultiDisplayTest.java86 UiObject2 button = mDevice.findObject( in testMultiDisplay_click()
110 mDevice.findObject(By.hasAncestor(validAncestorSelector).displayId( in testMultiDisplay_treeRelationship()
DBySelectorTest.java377 UiObject2 child = mDevice.findObject(By.copy(n5).hasParent(n3)); in testHasParent()
385 UiObject2 grandchild = mDevice.findObject(By.copy(n5).hasParent(By.hasParent(n1))); in testHasParent()
389 UiObject2 sibling = mDevice.findObject(By.copy(n4).hasParent(By.hasChild(n5))); in testHasParent()
/test/uiautomator/uiautomator/api/
Dapi_lint.ignore6 MissingNullability: androidx.test.uiautomator.UiDevice#findObject(androidx.test.uiautomator.BySelec…
7 Missing nullability on method `findObject` return
14 MissingNullability: androidx.test.uiautomator.UiObject2#findObject(androidx.test.uiautomator.BySele…
15 Missing nullability on method `findObject` return
D2.2.0.txt149 …method public androidx.test.uiautomator.UiObject2! findObject(androidx.test.uiautomator.BySelector…
150 …method public androidx.test.uiautomator.UiObject! findObject(androidx.test.uiautomator.UiSelector!…
267 …method public androidx.test.uiautomator.UiObject2! findObject(androidx.test.uiautomator.BySelector…
396 …est.uiautomator.SearchCondition<androidx.test.uiautomator.UiObject2!>! findObject(androidx.test.ui…
Drestricted_2.2.0.txt149 …method public androidx.test.uiautomator.UiObject2! findObject(androidx.test.uiautomator.BySelector…
150 …method public androidx.test.uiautomator.UiObject! findObject(androidx.test.uiautomator.UiSelector!…
267 …method public androidx.test.uiautomator.UiObject2! findObject(androidx.test.uiautomator.BySelector…
396 …est.uiautomator.SearchCondition<androidx.test.uiautomator.UiObject2!>! findObject(androidx.test.ui…
Drestricted_2.3.0-beta01.txt173 …method public androidx.test.uiautomator.UiObject2! findObject(androidx.test.uiautomator.BySelector…
174 … method public androidx.test.uiautomator.UiObject findObject(androidx.test.uiautomator.UiSelector);
310 …method public androidx.test.uiautomator.UiObject2! findObject(androidx.test.uiautomator.BySelector…
446 …test.uiautomator.SearchCondition<androidx.test.uiautomator.UiObject2!> findObject(androidx.test.ui…
D2.3.0-beta01.txt173 …method public androidx.test.uiautomator.UiObject2! findObject(androidx.test.uiautomator.BySelector…
174 … method public androidx.test.uiautomator.UiObject findObject(androidx.test.uiautomator.UiSelector);
310 …method public androidx.test.uiautomator.UiObject2! findObject(androidx.test.uiautomator.BySelector…
446 …test.uiautomator.SearchCondition<androidx.test.uiautomator.UiObject2!> findObject(androidx.test.ui…
Dcurrent.txt284 …method public androidx.test.uiautomator.UiObject2! findObject(androidx.test.uiautomator.BySelector…
285 … method public androidx.test.uiautomator.UiObject findObject(androidx.test.uiautomator.UiSelector);
444 …method public androidx.test.uiautomator.UiObject2! findObject(androidx.test.uiautomator.BySelector…
600 …test.uiautomator.SearchCondition<androidx.test.uiautomator.UiObject2!> findObject(androidx.test.ui…
Drestricted_current.txt284 …method public androidx.test.uiautomator.UiObject2! findObject(androidx.test.uiautomator.BySelector…
285 … method public androidx.test.uiautomator.UiObject findObject(androidx.test.uiautomator.UiSelector);
444 …method public androidx.test.uiautomator.UiObject2! findObject(androidx.test.uiautomator.BySelector…
600 …test.uiautomator.SearchCondition<androidx.test.uiautomator.UiObject2!> findObject(androidx.test.ui…
/test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/
DSearchable.java30 UiObject2 findObject(@NonNull BySelector selector); in findObject() method
DUntil.java79 public static @NonNull SearchCondition<UiObject2> findObject(@NonNull BySelector selector) {
83 return container.findObject(selector);
DUiDevice.java133 public @NonNull UiObject findObject(@NonNull UiSelector selector) { in findObject() method in UiDevice
159 public UiObject2 findObject(@NonNull BySelector selector) { in findObject() method in UiDevice
DUiObject2.java282 public UiObject2 findObject(@NonNull BySelector selector) { in findObject() method in UiObject2