Searched refs:exists (Results 1 – 14 of 14) sorted by relevance
37 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 …]
102 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 …]
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()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()
54 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 …]
88 protected boolean exists(@NonNull UiSelector selector) { in exists() method in UiScrollable244 if (exists(childSelector)) { in scrollIntoView()249 if (exists(childSelector)) { in scrollIntoView()254 if(exists(childSelector)) { in scrollIntoView()
61 if (item.exists()) { in getChildByDescription()115 if (item.exists()) { in getChildByText()
841 public boolean exists() { in exists() method in UiObject
333 if (!deviceOutputDirectory.exists() && !deviceOutputDirectory.mkdir()) { in writeToDevice()
217 method public boolean exists();320 method protected boolean exists(androidx.test.uiautomator.UiSelector!);
257 method public boolean exists();371 method protected boolean exists(androidx.test.uiautomator.UiSelector);
391 method public boolean exists();525 method protected boolean exists(androidx.test.uiautomator.UiSelector);