| /test/uiautomator/integration-tests/testapp/src/androidTest/java/androidx/test/uiautomator/testapp/ |
| D | BySelectorTest.java | 59 assertTrue(mDevice.hasObject(By.res(TEST_APP, "clazz").clazz("android.widget.Button"))); in testClazz() 60 assertFalse(mDevice.hasObject(By.res(TEST_APP, "clazz").clazz("android.widget.TextView"))); in testClazz() 64 assertTrue(mDevice.hasObject(By.res(TEST_APP, "clazz").clazz(".Button"))); in testClazz() 65 assertFalse(mDevice.hasObject(By.res(TEST_APP, "clazz").clazz(".TextView"))); in testClazz() 68 assertTrue(mDevice.hasObject(By.res(TEST_APP, "clazz").clazz("android.widget", "Button"))); in testClazz() 70 mDevice.hasObject(By.res(TEST_APP, "clazz").clazz("android.widget", "TextView"))); in testClazz() 73 assertTrue(mDevice.hasObject(By.res(TEST_APP, "clazz").clazz(Button.class))); in testClazz() 74 assertFalse(mDevice.hasObject(By.res(TEST_APP, "clazz").clazz(TextView.class))); in testClazz() 78 mDevice.hasObject(By.res(TEST_APP, "clazz").clazz(Pattern.compile(".*get\\.B.*")))); in testClazz() 80 mDevice.hasObject(By.res(TEST_APP, "clazz").clazz(Pattern.compile(".*TextView")))); in testClazz() [all …]
|
| D | UntilTest.java | 48 UiObject2 button = mDevice.findObject(By.res(TEST_APP, "gone_button")); in testGone() 49 BySelector target = By.res(TEST_APP, "gone_target"); in testGone() 59 UiObject2 button = mDevice.findObject(By.res(TEST_APP, "find_button")); in testHasObject() 60 BySelector target = By.res(TEST_APP, "find_target"); in testHasObject() 70 UiObject2 button = mDevice.findObject(By.res(TEST_APP, "find_button")); in testFindObject() 71 BySelector target = By.res(TEST_APP, "find_target"); in testFindObject() 81 UiObject2 button = mDevice.findObject(By.res(TEST_APP, "find_button")); in testFindObjects() 82 BySelector target = By.res(TEST_APP, "find_target"); 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() [all …]
|
| D | UiObject2Test.java | 66 UiObject2 object = mDevice.findObject(By.res(TEST_APP, "edit_text")); in testClear() 71 BySelector emptyText = By.res(TEST_APP, "edit_text").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() [all …]
|
| D | UiObjectTest.java | 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() 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() [all …]
|
| D | UiScrollableTest.java | 60 new UiSelector().resourceId(TEST_APP + ":id/relative_layout")); in testGetChildByDescription() 77 new UiSelector().resourceId(TEST_APP + ":id/relative_layout")); in testGetChildByDescription_withoutScrollSearch() 95 new UiSelector().resourceId(TEST_APP + ":id/relative_layout")); in testGetChildByInstance() 110 new UiSelector().resourceId(TEST_APP + ":id/relative_layout")); in testGetChildByText() 126 new UiSelector().resourceId(TEST_APP + ":id/relative_layout")); in testGetChildByText_withoutScrollSearch() 142 new UiSelector().resourceId(TEST_APP + ":id/relative_layout")); in testScrollDescriptionIntoView() 143 UiObject target = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id" in testScrollDescriptionIntoView() 157 new UiSelector().resourceId(TEST_APP + ":id/relative_layout")); in testScrollIntoView_withUiObject() 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() [all …]
|
| D | UiSelectorTest.java | 163 new UiSelector().resourceId(TEST_APP + ":id/example_id")).exists()); in testResourcesId() 166 new UiSelector().resourceId(TEST_APP + ":id/not_example_id")).exists()); in testResourcesId() 190 new UiSelector().resourceId(TEST_APP + ":id/tree_N3").index(1)).exists()); in testIndex() 192 new UiSelector().resourceId(TEST_APP + ":id/tree_N2").index(1)).exists()); in testIndex() 214 new UiSelector().resourceId(TEST_APP + ":id/enabled_text_view").enabled( in testEnabled() 217 new UiSelector().resourceId(TEST_APP + ":id/disabled_text_view").enabled( in testEnabled() 227 UiObject button = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id/button")); in testFocused() 230 new UiSelector().resourceId(TEST_APP + ":id/focusable_text_view").focused( in testFocused() 234 new UiSelector().resourceId(TEST_APP + ":id/focusable_text_view").focused( in testFocused() 245 new UiSelector().resourceId(TEST_APP + ":id/focusable_text_view").focusable( in testFocusable() [all …]
|
| D | UiDeviceTest.java | 85 List<UiObject2> results = mDevice.findObjects(By.pkg(TEST_APP).clazz(TextView.class)); in testFindObjects() 109 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() [all …]
|
| D | MultiDisplayTest.java | 64 assertEquals(2, mDevice.findObjects(By.res(TEST_APP, "button")).size()); in testMultiDisplay_selector() 68 By.res(TEST_APP, "nested_elements").displayId(secondaryDisplayId))); in testMultiDisplay_selector() 70 mDevice.hasObject(By.res(TEST_APP, "focusable_text_view").displayId( in testMultiDisplay_selector() 76 By.res(TEST_APP, "nested_elements").displayId(Display.DEFAULT_DISPLAY))); in testMultiDisplay_selector() 78 By.res(TEST_APP, "focusable_text_view").displayId(secondaryDisplayId))); in testMultiDisplay_selector() 87 By.res(TEST_APP, "button1").displayId(secondaryDisplayId)); in testMultiDisplay_click() 99 BySelector invalidChildSelector = By.res(TEST_APP, "tree_N3").displayId( in testMultiDisplay_treeRelationship() 108 By.res(TEST_APP, "tree_N1").displayId(secondaryDisplayId); in testMultiDisplay_treeRelationship()
|
| D | MultiWindowTest.java | 46 BySelector firstWindowSelector = By.res(TEST_APP, "window_id").text("first"); in testMultiWindow_splitScreen() 47 BySelector secondWindowSelector = By.res(TEST_APP, "window_id").text("second"); in testMultiWindow_splitScreen()
|
| D | BaseTest.java | 50 protected static final String TEST_APP = "androidx.test.uiautomator.testapp"; field in BaseTest 87 mDevice.wait(Until.hasObject(By.pkg(TEST_APP)), TIMEOUT_MS)); in launchTestActivity()
|