| /test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/ |
| D | UiCollection.java | 51 @NonNull String text) throws UiObjectNotFoundException { in getChildByDescription() argument 52 if (text != null) { in getChildByDescription() 57 if(nodeDesc != null && nodeDesc.contains(text)) { in getChildByDescription() 60 UiObject item = row.getChild(new UiSelector().descriptionContains(text)); in getChildByDescription() 66 throw new UiObjectNotFoundException("for description= \"" + text + "\""); in getChildByDescription() 104 public @NonNull UiObject getChildByText(@NonNull UiSelector childPattern, @NonNull String text) in getChildByText() argument 106 if (text != null) { in getChildByText() 111 if(text.equals(nodeText)) { in getChildByText() 114 UiObject item = row.getChild(new UiSelector().text(text)); in getChildByText() 120 throw new UiObjectNotFoundException("for text= \"" + text + "\""); in getChildByText()
|
| D | UiScrollable.java | 110 @NonNull UiSelector childPattern, @NonNull String text) in getChildByDescription() argument 112 return getChildByDescription(childPattern, text, true); in getChildByDescription() 131 @NonNull String text, boolean allowScrollSearch) throws UiObjectNotFoundException { in getChildByDescription() argument 132 if (text != null) { in getChildByDescription() 134 scrollIntoView(new UiSelector().descriptionContains(text)); in getChildByDescription() 136 return super.getChildByDescription(childPattern, text); in getChildByDescription() 138 throw new UiObjectNotFoundException("for description= \"" + text + "\""); in getChildByDescription() 175 public @NonNull UiObject getChildByText(@NonNull UiSelector childPattern, @NonNull String text) in getChildByText() argument 177 return getChildByText(childPattern, text, true); in getChildByText() 195 @NonNull String text, in getChildByText() argument [all …]
|
| D | By.java | 181 public static @NonNull BySelector text(@NonNull String text) { in text() argument 182 return new BySelector().text(text); in text() 217 public static @NonNull BySelector text(@NonNull Pattern regex) { in text() method in By 218 return new BySelector().text(regex); in text()
|
| D | Until.java | 355 String text = object.getText(); 356 return regex.matcher(text != null ? text : "").matches(); 377 public static @NonNull UiObject2Condition<Boolean> textNotEquals(@NonNull String text) { 381 return !text.equals(object.getText()); 386 return String.format("UiObject2Condition[textNotEquals='%s']", text); 395 public static @NonNull UiObject2Condition<Boolean> textEquals(@NonNull String text) { 396 return textMatches(Pattern.quote(text));
|
| D | UiSelector.java | 111 public @NonNull UiSelector text(@NonNull String text) { in text() argument 112 requireNonNull(text, "text cannot be null"); in text() 113 return buildSelector(SELECTOR_TEXT, text); in text() 140 public @NonNull UiSelector textStartsWith(@NonNull String text) { in textStartsWith() argument 141 requireNonNull(text, "text cannot be null"); in textStartsWith() 142 return buildSelector(SELECTOR_START_TEXT, text); in textStartsWith() 154 public @NonNull UiSelector textContains(@NonNull String text) { in textContains() argument 155 requireNonNull(text, "text cannot be null"); in textContains() 156 return buildSelector(SELECTOR_CONTAINS_TEXT, text); in textContains()
|
| D | UiDeviceExt.kt | 74 public fun UiDevice.type(text: String) { in type() 75 text in type()
|
| D | BySelector.java | 333 public @NonNull BySelector text(@NonNull String textValue) { in text() method in BySelector 335 return text(Pattern.compile(Pattern.quote(textValue))); in text() 348 return text(Patterns.contains(substring)); in textContains() 361 return text(Patterns.startsWith(prefix)); in textStartsWith() 374 return text(Patterns.endsWith(suffix)); in textEndsWith() 384 public @NonNull BySelector text(@NonNull Pattern textValue) { in text() method in BySelector
|
| D | UiObject.java | 573 public boolean setText(@Nullable String text) throws UiObjectNotFoundException { in setText() argument 575 if (text == null) { in setText() 576 text = ""; in setText() 582 Log.d(TAG, String.format("Setting text to '%s'.", text)); in setText() 584 args.putCharSequence(AccessibilityNodeInfo.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE, text); in setText() 604 CharSequence text = node.getText(); in clearTextField() local 606 if (text != null && text.length() > 0) { in clearTextField()
|
| D | UiAutomatorTestScope.kt | 228 public fun type(text: String): Unit = uiDevice.type(text)
|
| D | UiObject2.java | 986 public void setText(@Nullable String text) { in setText() argument 990 if (text == null) { in setText() 991 text = ""; in setText() 994 Log.d(TAG, String.format("Setting text to '%s'.", text)); in setText() 996 args.putCharSequence(AccessibilityNodeInfo.ACTION_ARGUMENT_SET_TEXT_CHARSEQUENCE, text); in setText()
|
| D | AccessibilityNodeInfoExt.kt | 247 get() = text?.toString()
|
| /test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/util/ |
| D | Patterns.java | 35 public static @NonNull Pattern startsWith(@NonNull String text) { in startsWith() argument 36 return Pattern.compile(String.format("^%s.*$", Pattern.quote(text)), Pattern.DOTALL); in startsWith() 43 public static @NonNull Pattern endsWith(@NonNull String text) { in endsWith() argument 44 return Pattern.compile(String.format("^.*%s$", Pattern.quote(text)), Pattern.DOTALL); in endsWith() 50 public static @NonNull Pattern contains(@NonNull String text) { in contains() argument 51 return Pattern.compile(String.format("^.*%s.*$", Pattern.quote(text)), Pattern.DOTALL); in contains()
|
| /test/uiautomator/integration-tests/testapp/src/main/java/androidx/test/uiautomator/testapp/ |
| D | SplitScreenTestActivity.java | 41 TextView text = findViewById(R.id.window_id); in onCreate() local 42 text.setText(windowId == null ? "first" : windowId); in onCreate() 43 text.setOnClickListener(v -> text.setText("I've been clicked!")); in onCreate() 44 text.setOnLongClickListener(v -> { in onCreate()
|
| D | ComposeTestActivity.kt | 62 var text by remember { mutableStateOf("Initial") } in TestView() variable 75 Text(text) in TestView() 76 Button(onClick = { text = "Updated" }) { Text("Update") } in TestView()
|
| D | DialogActivity.kt | 65 Text(text = "Dialog Result: $dialogResult") in DialogScreen()
|
| /test/uiautomator/integration-tests/testapp/src/androidTest/java/androidx/test/uiautomator/testapp/ |
| D | ComposeTest.java | 52 UiObject2 text = mDevice.wait(Until.findObject(By.text("Initial")), TIMEOUT_MS); in testEndToEnd() local 53 assertNotNull("Bottom text not found", text); in testEndToEnd() 56 text.wait(Until.textEquals("Updated"), TIMEOUT_MS)); in testEndToEnd()
|
| D | UiObjectTest.java | 111 + "/drag_destination").text("drag_received")); in testDragTo_destObjAndSteps() 132 + "/drag_destination").text("drag_received")); in testDragTo_destXAndDestYAndSteps() 151 + "/swipe_region").text("swipe_up")); in testSwipeUp() 172 + "/swipe_region").text("swipe_down")); in testSwipeDown() 191 + "/swipe_region").text("swipe_left")); in testSwipeLeft() 210 + "/swipe_region").text("swipe_right")); in testSwipeRight() 226 new UiSelector().resourceId(TEST_APP + ":id/button1").text("text1_clicked")); in testClick() 329 UiObject sampleTextObject = mDevice.findObject(new UiSelector().text("Sample text")); in testGetText() 354 UiObject textView = mDevice.findObject(new UiSelector().text("Text View 1")); in testGetContentDescription() 449 UiObject textView = mDevice.findObject(new UiSelector().text("Sample text")); in testIsClickable() [all …]
|
| D | UiSelectorTest.java | 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() 305 new UiSelector().text("Accessible button").clickable(true)).exists()); in testClickable() 307 mDevice.findObject(new UiSelector().text("Sample text").clickable(false)).exists()); in testClickable() 353 new UiSelector().childSelector(new UiSelector().text("text")).toString()); in testChildSelector() 371 new UiSelector().fromParent(new UiSelector().text("text")).toString()); in testFromParent()
|
| 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 | BySelectorTest.java | 46 assertTrue(mDevice.hasObject(By.copy(base).text("Text View 1"))); in testCopy() 47 assertTrue(mDevice.hasObject(By.copy(base).text("Item1"))); in testCopy() 48 assertTrue(mDevice.hasObject(By.copy(base).text("Item3"))); in testCopy() 51 assertFalse(mDevice.hasObject(By.copy(base).text("Accessible button"))); in testCopy() 157 assertTrue(mDevice.hasObject(By.res(TEST_APP, "text_family").text("This is\nthe text."))); in testText() 158 assertFalse(mDevice.hasObject(By.res(TEST_APP, "text_family").text("the text"))); in testText() 162 By.res(TEST_APP, "text_family").text(Pattern.compile(".*text.*", Pattern.DOTALL)))); in testText() 163 assertFalse(mDevice.hasObject(By.res(TEST_APP, "text_family").text( in testText()
|
| D | UiObject2Test.java | 71 BySelector emptyText = By.res(TEST_APP, "edit_text").text(""); in testClear() 218 UiObject2 textView2 = mDevice.findObject(By.text("TextView with an id")); in testEquals() 241 List<UiObject2> listWithOneObjectFound = nestedObject.findObjects(By.text("First Level")); in testFindObjects() 301 UiObject2 buttonObject = mDevice.findObject(By.text("Accessible button")); in testGetContentDescription() 304 UiObject2 textViewObject = mDevice.findObject(By.text("Text View 1")); in testGetContentDescription() 326 UiObject2 textViewObjectWithoutAnId = mDevice.findObject(By.text("Text View 1")); in testGetResourceName() 334 UiObject2 sampleTextObject = mDevice.findObject(By.text("Sample text")); in testGetText() 397 UiObject2 textView2 = mDevice.findObject(By.text("TextView with an id")); in testHashCode() 420 assertTrue(object.hasObject(By.text("TextView with an id"))); in testHasObject() 421 assertFalse(object.hasObject(By.text(""))); in testHasObject() [all …]
|
| D | UiDeviceTest.java | 73 assertTrue(mDevice.hasObject(By.text("Accessible button"))); in testHasObject() 74 assertFalse(mDevice.hasObject(By.text("non-existent text"))); in testHasObject() 102 assertEquals(0, mDevice.findObjects(By.text("non-existent text")).size()); in testFindObjects() 301 assertTrue(mDevice.wait(Until.hasObject(By.text("Test Notification")), TIMEOUT_MS)); in testOpenNotification()
|
| /test/uiautomator/uiautomator/src/main/java/androidx/test/uiautomator/internal/ |
| D | Models.kt | 28 val text: String, in <lambda>() constant in androidx.test.uiautomator.internal.ViewNode 87 text = node.text.orBlank(), in <lambda>() 120 if (text != other.text) return false in <lambda>() 147 result = 31 * result + text.hashCode() in <lambda>()
|
| /test/uiautomator/uiautomator/src/androidTest/java/androidx/test/uiautomator/ |
| D | BySelectorTest.java | 90 assertThrows(NullPointerException.class, () -> By.text((String) null)); in testText_nullValue() 94 assertThrows(NullPointerException.class, () -> By.text((Pattern) null)); in testText_nullValue() 99 By.text("first").textStartsWith("second"); in testText_alreadyDefined()
|
| /test/uiautomator/integration-tests/testapp/ |
| D | build.gradle | 37 implementation(project(":compose:ui:ui-text"))
|