Home
last modified time | relevance | path

Searched refs:text (Results 1 – 25 of 85) sorted by relevance

1234

/platform_testing/libraries/app-helpers/interfaces/common/src/android/platform/helpers/
DIYouTubeHelper.java37 private final String text; field in IYouTubeHelper.VideoQuality
39 VideoQuality(String text) { in VideoQuality() argument
40 this.text = text; in VideoQuality()
44 return text; in getText()
DIGoogleKeyboardHelper.java33 public void typeText(String text, long delayBetweenKeyPresses); in typeText() argument
/platform_testing/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/
DIGoogleHelper.java31 private final String text; field in IGoogleHelper.NavigationTab
33 NavigationTab(String text) { in NavigationTab() argument
34 this.text = text; in NavigationTab()
39 return text; in toString()
/platform_testing/libraries/automotive-helpers/settings-app-helper/src/android/platform/helpers/
DSettingAccountsHelperImpl.java96 BySelector accountSelector = By.text(email); in removeAccount()
129 UiObject2 accountObject = scrollAndFindUiObject(By.text(email), getScrollScreenIndex()); in doesEmailExist()
149 private void inputText(String text, boolean isPassword) { in inputText() argument
167 input.setText(text); in inputText()
168 scrollAndFindUiObject(By.text(text).focused(false)); in inputText()
178 clickAndWaitForGone(nextButtonObject, By.text(text)); in inputText()
DSettingsSoundsHelperImpl.java125 UiObject2 object = scrollAndFindUiObject(By.text(type), getScrollScreenIndex()); in setSound()
133 UiObject2 soundObject = findUiObject(By.text(sound)); in setSound()
140 soundObject = findUiObject(By.text(sound)); in setSound()
170 UiObject2 object = scrollAndFindUiObject(By.text(type), getScrollScreenIndex()); in getSound()
DSettingProfileHelperImpl.java99 UiObject2 profileObject = scrollAndFindUiObject(By.text(user)); in isProfilePresent()
137 buttonObject = scrollAndFindUiObject(By.text(button_text)); in clickbutton()
/platform_testing/tests/functional/notificationtests/src/com/android/notification/functional/
DHeadsUpNotificationTests.java73 mDevice.wait(Until.findObject(By.text("Reply")), LONG_TIMEOUT).click(); in testHeadsUpNotificationInlineReply()
100 mDevice.wait(Until.findObject(By.text(NOTIFICATION_CONTENT_TEXT)), LONG_TIMEOUT); in testHeadsUpNotificationUpdate()
108 UiObject2 obj = mDevice.wait(Until.findObject(By.text(NOTIFICATION_CONTENT_TEXT)), in testHeadsUpNotificationManualDismiss()
124 UiObject2 obj = mDevice.wait(Until.findObject(By.text(NOTIFICATION_CONTENT_TEXT)), in testHeadsUpNotificationAutoDismiss()
130 obj = mDevice.wait(Until.findObject(By.text(NOTIFICATION_CONTENT_TEXT)), SHORT_TIMEOUT); in testHeadsUpNotificationAutoDismiss()
139 mDevice.wait(Until.findObject(By.text("Reply")), LONG_TIMEOUT).click(); in testMultipleHeadsUpNotificationWithInlineReply()
150 UiObject2 obj = mDevice.wait(Until.findObject(By.text(NOTIFICATION_CONTENT_TEXT)), in testMultipleHeadsUpNotificationWithInlineReply()
159 UiObject2 obj = mDevice.wait(Until.findObject(By.text("test")), 60000); in testAlarm()
164 mDevice.wait(Until.findObject(By.text("Dismiss")), LONG_TIMEOUT).click(); in testAlarm()
DNotificationInteractionTests.java48 import java.text.MessageFormat;
101 String text = "USB debugging connected"; in testNonDismissNotification() local
104 UiObject2 obj = findByText(text); in testNonDismissNotification()
105 assertNotNull(String.format("Couldn't find %s notification", text), obj); in testNonDismissNotification()
108 obj = mDevice.wait(Until.findObject(By.text(text)), in testNonDismissNotification()
116 String text = "Clear all"; in testDismissAll() local
135 UiObject2 clearAll = findByText(text); in testDismissAll()
237 Until.findObject(By.text(NotificationHelper.FIRST_ACTION)), in testNotificationClicks()
257 target = mDevice.wait(Until.findObject(By.text(NotificationHelper.SECOND_ACTION)), in testNotificationClicks()
270 target = mDevice.wait(Until.findObject(By.text(NotificationHelper.CONTENT_TITLE)), in testNotificationClicks()
[all …]
DNotificationHelper.java43 import android.text.SpannableStringBuilder;
44 import android.text.style.StyleSpan;
118 mDevice.wait(Until.findObject(By.text("Screen lock")), LONG_TIMEOUT).click(); in navigateToScreenLock()
331 final String text = intent.getStringExtra("text"); in onHandleIntent() local
335 Toast.makeText(ToastService.this, text, Toast.LENGTH_LONG).show(); in onHandleIntent()
336 Log.v(TAG, "toast " + text); in onHandleIntent()
342 public static PendingIntent getPendingIntent(Context context, String text) { in getPendingIntent() argument
345 toastIntent.setAction(ACTION_TOAST + ":" + text); // one per toast message in getPendingIntent()
346 toastIntent.putExtra("text", text); in getPendingIntent()
DNotificationSecurityLargeTests.java74 assertFalse(mDevice.wait(Until.hasObject(By.res("android:id/title").text(title)), in testVisibilitySecret()
86 Until.findObject(By.res("android:id/title").text("Contents hidden"))); in testVisibilityPrivate()
DNotificationInlineReplyTests.java75 UiObject2 obj = mDevice.wait(Until.findObject(By.text("INLINE REPLY TEST")), in testInLineNotificationWithLockScreen()
80 mDevice.wait(Until.findObject(By.text("Reply")), LONG_TIMEOUT).click(); in testInLineNotificationWithLockScreen()
100 mDevice.wait(Until.findObject(By.text("Reply")), LONG_TIMEOUT).click(); in testInLineNotificationsWithQuickSetting()
/platform_testing/tests/jank/jankmicrobenchmark/src/com/android/jankmicrobenchmark/janktests/
DApiDemoJankTests.java95 By.res(RES_PACKAGE_NAME, "text1").text("Animation")), LONG_TIMEOUT); in selectAnimation()
99 By.res(RES_PACKAGE_NAME, "text1").text(optionName)), LONG_TIMEOUT); in selectAnimation()
105 .text(optionName)), LONG_TIMEOUT); in selectAnimation()
198 By.res(PACKAGE_NAME, "startButton").text("RUN")), LONG_TIMEOUT); in testLoadingJank()
243 PACKAGE_NAME, "addNewButton").text("SHOW BUTTONS")), LONG_TIMEOUT); in testHideShowAnimationJank()
249 By.clazz(Button.class).text("0")), LONG_TIMEOUT); in testHideShowAnimationJank()
255 By.clazz(Button.class).text("1")), LONG_TIMEOUT); in testHideShowAnimationJank()
261 By.clazz(Button.class).text("2")), LONG_TIMEOUT); in testHideShowAnimationJank()
267 By.clazz(Button.class).text("3")), LONG_TIMEOUT); in testHideShowAnimationJank()
280 .text("Views")), LONG_TIMEOUT); in selectViews()
[all …]
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/
DAbstractStandardAppHelper.java287 public boolean sendTextEvents(String text, long delay) { in sendTextEvents() argument
288 Log.v(LOG_TAG, String.format("Sending text events for %s", text)); in sendTextEvents()
289 KeyEvent[] events = mKeyCharacterMap.getEvents(text.toCharArray()); in sendTextEvents()
310 protected UiObject2 findElementByText(String text) { in findElementByText() argument
311 UiObject2 element = mDevice.findObject(By.text(text)); in findElementByText()
316 String.format(ERROR_NOT_FOUND, "with text", text, getPackage())); in findElementByText()
342 protected void waitAndClickByText(String text, long timeout) { in waitAndClickByText() argument
343 clickOn(mDevice.wait(Until.findObject(By.text(text)), timeout)); in waitAndClickByText()
357 protected void checkElementWithTextExists(String text, long timeout) { in checkElementWithTextExists() argument
358 if (!mDevice.wait(Until.hasObject(By.text(text)), timeout)) { in checkElementWithTextExists()
[all …]
DIAppHelper.java98 abstract boolean sendTextEvents(String text, long delay); in sendTextEvents() argument
/platform_testing/libraries/system-helpers/accessibility-helper/src/android/system/helpers/
DAccessibilityScannerHelper.java134 UiObject2 okBtn = mDevice.wait(Until.findObject(By.text("OK")), SHORT_TIMEOUT); in setAccessibilityScannerSetting()
151 By.text("BEGIN AUTHORIZATION")), SHORT_TIMEOUT); in grantPermissions()
159 mDevice.findObject(By.text("START NOW")).click(); in grantPermissions()
162 By.text("BEGIN AUTHORIZATION")), SHORT_TIMEOUT); in grantPermissions()
167 By.pkg(ACCESSIBILITY_SCANNER_PACKAGE).text("OK")), SHORT_TIMEOUT); in grantPermissions()
195 Until.findObject(By.text("GET STARTED")), SHORT_TIMEOUT); in initialSetups()
199 By.text("Turn on Accessibility Scanner")), SHORT_TIMEOUT); in initialSetups()
201 mDevice.findObject(By.text("OK")).click(); in initialSetups()
204 mDevice.wait(Until.findObject(By.text("OK, GOT IT")), SCANNER_WAIT_TIME).click(); in initialSetups()
205 mDevice.wait(Until.findObject(By.text("DISMISS")), SHORT_TIMEOUT).click(); in initialSetups()
[all …]
DAccessibilityHelper.java89 if (mDevice.wait(Until.hasObject(By.text("TalkBack tutorial")), SHORT_TIMEOUT)) { in setTalkBackSetting()
179 new UiSelector().resourceId("android:id/title").text(settingName)); in getSettingFromList()
180 return mDevice.findObject(By.res("android:id/title").text(settingName)); in getSettingFromList()
/platform_testing/libraries/automotive-helpers/notifications-app-helper/src/android/platform/helpers/
DAutoNotificationHelperImpl.java94 UiObject2 postedNotification = findUiObject(By.text(title)); in checkNotificationExists()
102 postedNotification = findUiObject(By.text(title)); in checkNotificationExists()
110 waitForGone(By.text(title)); in removeNotification()
112 UiObject2 postedNotification = findUiObject(By.text(title)); in removeNotification()
/platform_testing/tests/jank/uibench_wear/src/com/android/wearable/uibench/janktests/
DUiBenchJankTestsHelper.java84 UiObject2 initScreen = mDevice.wait(Until.findObject(By.text(UIBENCH_OBJECT_NAME)), 2000); in launchUiBench()
88 initScreen = mDevice.wait(Until.findObject(By.text(UIBENCH_OBJECT_NAME)), 2000); in launchUiBench()
112 By.res(RES_PACKAGE_NAME, TEXT_OBJECT_NAME).text(itemName)), TIMEOUT); in openTextInList()
116 By.res(RES_PACKAGE_NAME, TEXT_OBJECT_NAME).text(itemName)), TIMEOUT); in openTextInList()
122 By.res(RES_PACKAGE_NAME, TEXT_OBJECT_NAME).text(itemName)), TIMEOUT); in openTextInList()
/platform_testing/tests/apphealth/scenarios/src/android/platform/test/scenario/facebook/
DFacebookAppHelperImpl.java75 mDevice.wait(Until.findObject(By.text(OK_BUTTON_DESC)), LONG_TIMEOUT); in dismissInitialDialogs()
81 mDevice.wait(Until.findObject(By.text(GENERIC_ALLOW_TEXT)), LONG_TIMEOUT); in dismissInitialDialogs()
87 mDevice.wait(Until.findObject(By.text(WHILE_USING_APP_TEXT)), LONG_TIMEOUT); in dismissInitialDialogs()
95 mDevice.wait(Until.findObject(By.text(REMIND_ME_LATER_TEXT)), LONG_TIMEOUT); in dismissInitialDialogs()
/platform_testing/libraries/system-helpers/activity-helper/src/android/system/helpers/
DActivityHelper.java116 if (mDevice.wait(Until.hasObject(By.text("No recent items")), ONE_SECOND * 5)) { in clearRecents()
153 if (!mDevice.wait(Until.hasObject(By.text( in clearRecentsByClearAll()
158 while (mDevice.hasObject(By.text( in clearRecentsByClearAll()
160 mDevice.findObject(By.text( in clearRecentsByClearAll()
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DLockscreenHelper.java117 mDevice.wait(Until.findObject(By.text("None")), LONG_TIMEOUT * 2).click(); in setScreenLock()
139 mDevice.wait(Until.findObject(By.text(mode)), LONG_TIMEOUT * 2).click(); in enterScreenLockOnce()
142 mDevice.wait(Until.findObject(By.text("No thanks")), LONG_TIMEOUT).click(); in enterScreenLockOnce()
177 mDevice.wait(Until.findObject(By.text("EMERGENCY")), LONG_TIMEOUT).click(); in checkEmergencyCallOnLockScreen()
197 mDevice.wait(Until.findObject(By.text("Swipe")), LONG_TIMEOUT).click(); in removeScreenLock()
199 mDevice.wait(Until.findObject(By.text( in removeScreenLock()
235 mDevice.wait(Until.findObject(By.text("Screen lock")), LONG_TIMEOUT).click(); in navigateToScreenLock()
414 mDevice.wait(Until.findObject(By.text("DONE")), LONG_TIMEOUT).click(); in setPatternLockSettingLock()
/platform_testing/libraries/compatibility-common-util/src/com/android/compatibility/common/util/
DMetricsXmlSerializer.java46 mXmlSerializer.text(Double.toString(summary.getValues()[0])); in serialize()
/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DDisableAutofillRule.java19 import android.text.TextUtils;
/platform_testing/libraries/system-helpers/account-helper/src/android/system/helpers/
DAccountHelper.java69 UiObject2 deviceBackup = mDevice.wait(Until.findObject(By.text(pattern)), in hasDeviceBackupAccount()
98 Until.findObject(By.text("Backup & reset")), in dismissInitalDialogs()
/platform_testing/tests/functional/overviewtests/src/com/android/overview/functional/
DRecentsTests.java110 (By.text("CLEAR ALL")),TIMEOUT); in testScrollThroughRecents()
148 (By.text("CLEAR ALL")),TIMEOUT); in testClearAllFromRecents()
154 (Until.hasObject(By.text("No recent items")), TIMEOUT)); in testClearAllFromRecents()

1234