Home
last modified time | relevance | path

Searched refs:exists (Results 1 – 14 of 14) 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 …]
DUiScrollableTest.java102 1).exists()); in testGetChildByInstance()
146 assertFalse(target.exists()); in testScrollDescriptionIntoView()
148 assertTrue(target.exists()); in testScrollDescriptionIntoView()
163 assertFalse(target.exists()); in testScrollIntoView_withUiObject()
165 assertTrue(target.exists()); in testScrollIntoView_withUiObject()
178 assertFalse(mDevice.findObject(target).exists()); in testScrollIntoView_withUiSelector()
180 assertTrue(mDevice.findObject(target).exists()); in testScrollIntoView_withUiSelector()
193 assertFalse(target.exists()); in testScrollTextIntoView()
195 assertTrue(target.exists()); in testScrollTextIntoView()
289 assertFalse(topText.exists()); in testScrollToBeginning_withSteps()
[all …]
DUiObjectTest.java64 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()
75 new UiSelector().resourceId(TEST_APP + ":id/tree_N2")).exists()); in testGetFromParent()
77 new UiSelector().resourceId(TEST_APP + ":id/tree_N5")).exists()); in testGetFromParent()
600 assertTrue(expectedText1.exists()); in testWaitUntilGone()
611 assertTrue(expectedText1.exists()); in testWaitUntilGone_timeout()
622 assertTrue(text1.exists()); in testExists()
623 assertFalse(text3.exists()); in testExists()
/test/screenshot/screenshot/src/androidTest/java/androidx/test/screenshot/
DScreenshotTestRuleTest.kt54 assertThat(rule.getPathOnDeviceFor(IMAGE_ACTUAL).exists()).isFalse() in <lambda>()
55 assertThat(rule.getPathOnDeviceFor(IMAGE_DIFF).exists()).isFalse() in <lambda>()
56 assertThat(rule.getPathOnDeviceFor(IMAGE_EXPECTED).exists()).isFalse() in <lambda>()
73 assertThat(rule.getPathOnDeviceFor(IMAGE_ACTUAL).exists()).isTrue() in <lambda>()
74 assertThat(rule.getPathOnDeviceFor(IMAGE_DIFF).exists()).isTrue() in <lambda>()
75 assertThat(rule.getPathOnDeviceFor(IMAGE_EXPECTED).exists()).isTrue() in <lambda>()
92 assertThat(rule.getPathOnDeviceFor(IMAGE_ACTUAL).exists()).isTrue() in <lambda>()
93 assertThat(rule.getPathOnDeviceFor(IMAGE_DIFF).exists()).isTrue() in <lambda>()
94 assertThat(rule.getPathOnDeviceFor(IMAGE_EXPECTED).exists()).isTrue() in <lambda>()
107 assertThat(rule.getPathOnDeviceFor(IMAGE_ACTUAL).exists()).isTrue() in <lambda>()
[all …]
/test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/
DUiScrollable.java88 protected boolean exists(@NonNull UiSelector selector) { in exists() method in UiScrollable
244 if (exists(childSelector)) { in scrollIntoView()
249 if (exists(childSelector)) { in scrollIntoView()
254 if(exists(childSelector)) { in scrollIntoView()
DUiCollection.java61 if (item.exists()) { in getChildByDescription()
115 if (item.exists()) { in getChildByText()
DUiObject.java841 public boolean exists() { in exists() method in UiObject
/test/screenshot/screenshot/src/main/java/androidx/test/screenshot/
DScreenshotTestRule.kt333 if (!deviceOutputDirectory.exists() && !deviceOutputDirectory.mkdir()) { in writeToDevice()
/test/uiautomator/uiautomator/api/
D2.2.0.txt217 method public boolean exists();
320 method protected boolean exists(androidx.test.uiautomator.UiSelector!);
Drestricted_2.2.0.txt217 method public boolean exists();
320 method protected boolean exists(androidx.test.uiautomator.UiSelector!);
Drestricted_2.3.0-beta01.txt257 method public boolean exists();
371 method protected boolean exists(androidx.test.uiautomator.UiSelector);
D2.3.0-beta01.txt257 method public boolean exists();
371 method protected boolean exists(androidx.test.uiautomator.UiSelector);
Dcurrent.txt391 method public boolean exists();
525 method protected boolean exists(androidx.test.uiautomator.UiSelector);
Drestricted_current.txt391 method public boolean exists();
525 method protected boolean exists(androidx.test.uiautomator.UiSelector);