Searched refs:textView (Results 1 – 5 of 5) sorted by relevance
| /test/uiautomator/integration-tests/testapp/src/main/java/androidx/test/uiautomator/testapp/ |
| D | KeycodeTestActivity.java | 34 TextView textView = (TextView) findViewById(R.id.text_view); in onCreate() local 35 textView.setText(""); in onCreate() 40 TextView textView = (TextView) findViewById(R.id.text_view); in onKeyDown() local 43 textView.append("keycode back pressed; "); in onKeyDown() 46 textView.append("keycode delete pressed; "); in onKeyDown() 49 textView.append("keycode dpad center pressed; "); in onKeyDown() 52 textView.append("keycode dpad down pressed; "); in onKeyDown() 55 textView.append("keycode dpad left pressed; "); in onKeyDown() 58 textView.append("keycode dpad right pressed; "); in onKeyDown() 61 textView.append("keycode dpad up pressed; "); in onKeyDown() [all …]
|
| /test/uiautomator/integration-tests/testapp/src/androidTest/java/androidx/test/uiautomator/testapp/ |
| D | UiDeviceTest.java | 141 UiObject2 textView = mDevice.findObject(By.res(TEST_APP, "text_view")); in testPressMenu() local 143 assertTrue(textView.wait(Until.textEquals("keycode menu pressed; "), TIMEOUT_MS)); in testPressMenu() 150 UiObject2 textView = mDevice.findObject(By.res(TEST_APP, "text_view")); in testPressBack() local 152 assertTrue(textView.wait(Until.textEquals("keycode back pressed; "), TIMEOUT_MS)); in testPressBack() 159 UiObject2 textView = mDevice.findObject(By.res(TEST_APP, "text_view")); in testPressSearch() local 161 assertTrue(textView.wait(Until.textEquals("keycode search pressed; "), TIMEOUT_MS)); in testPressSearch() 168 UiObject2 textView = mDevice.findObject(By.res(TEST_APP, "text_view")); in testPressDPadCenter() local 170 assertTrue(textView.wait(Until.textEquals("keycode dpad center pressed; "), TIMEOUT_MS)); in testPressDPadCenter() 177 UiObject2 textView = mDevice.findObject(By.res(TEST_APP, "text_view")); in testPressDPadDown() local 179 assertTrue(textView.wait(Until.textEquals("keycode dpad down pressed; "), TIMEOUT_MS)); in testPressDPadDown() [all …]
|
| D | UiObject2Test.java | 293 UiObject2 textView = mDevice.findObject(By.res(TEST_APP, "example_id")); in testGetClassName() local 294 assertEquals("android.widget.TextView", textView.getClassName()); in testGetClassName() 452 UiObject2 textView = mDevice.findObject(By.text("Sample text")); in testIsClickable() local 453 assertFalse(textView.isClickable()); in testIsClickable() 484 UiObject2 textView = mDevice.findObject(By.res(TEST_APP, "focusable_text_view")); in testIsFocused() local 485 assertFalse(textView.isFocused()); in testIsFocused() 488 textView.wait(Until.focused(true), TIMEOUT_MS); in testIsFocused() 489 assertTrue(textView.isFocused()); in testIsFocused() 512 UiObject2 textView = mDevice.findObject(By.res(TEST_APP, "top_text")); in testIsScrollable() local 513 assertFalse(textView.isScrollable()); in testIsScrollable() [all …]
|
| D | UiObjectTest.java | 342 UiObject textView = mDevice.findObject( in testGetClassName() local 346 assertEquals("android.widget.TextView", textView.getClassName()); in testGetClassName() 354 UiObject textView = mDevice.findObject(new UiSelector().text("Text View 1")); in testGetContentDescription() local 357 assertEquals("", textView.getContentDescription()); in testGetContentDescription() 449 UiObject textView = mDevice.findObject(new UiSelector().text("Sample text")); in testIsClickable() local 452 assertFalse(textView.isClickable()); in testIsClickable() 460 UiObject textView = mDevice.findObject(resourceId("focusable_text_view")); in testIsFocused() local 463 assertFalse(textView.isFocused()); in testIsFocused() 465 awaitTrue("TextView not focused", textView::isFocused); in testIsFocused() 488 UiObject textView = mDevice.findObject(new UiSelector().resourceId(TEST_APP + ":id" in testIsScrollable() local [all …]
|
| D | UiAutomatorTestScopeTest.kt | 119 val textView = onView { textAsString == "Initial" } in <lambda>() constant 121 assertThat(textView.text).isEqualTo("Updated") in <lambda>()
|