/platform_testing/libraries/app-helpers/interfaces/common/src/android/platform/helpers/ |
D | IYouTubeHelper.java | 37 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()
|
D | IGoogleKeyboardHelper.java | 33 public void typeText(String text, long delayBetweenKeyPresses); in typeText() argument
|
/platform_testing/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/ |
D | IGoogleHelper.java | 31 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/ |
D | SettingAccountsHelperImpl.java | 96 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()
|
D | SettingsSoundsHelperImpl.java | 125 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()
|
D | SettingProfileHelperImpl.java | 99 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/ |
D | HeadsUpNotificationTests.java | 73 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()
|
D | NotificationInteractionTests.java | 48 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 …]
|
D | NotificationHelper.java | 43 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()
|
D | NotificationSecurityLargeTests.java | 74 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()
|
D | NotificationInlineReplyTests.java | 75 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/ |
D | ApiDemoJankTests.java | 95 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/ |
D | AbstractStandardAppHelper.java | 287 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 …]
|
D | IAppHelper.java | 98 abstract boolean sendTextEvents(String text, long delay); in sendTextEvents() argument
|
/platform_testing/libraries/system-helpers/accessibility-helper/src/android/system/helpers/ |
D | AccessibilityScannerHelper.java | 134 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 …]
|
D | AccessibilityHelper.java | 89 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/ |
D | AutoNotificationHelperImpl.java | 94 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/ |
D | UiBenchJankTestsHelper.java | 84 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/ |
D | FacebookAppHelperImpl.java | 75 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/ |
D | ActivityHelper.java | 116 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/ |
D | LockscreenHelper.java | 117 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/ |
D | MetricsXmlSerializer.java | 46 mXmlSerializer.text(Double.toString(summary.getValues()[0])); in serialize()
|
/platform_testing/libraries/health/rules/src/android/platform/test/rule/ |
D | DisableAutofillRule.java | 19 import android.text.TextUtils;
|
/platform_testing/libraries/system-helpers/account-helper/src/android/system/helpers/ |
D | AccountHelper.java | 69 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/ |
D | RecentsTests.java | 110 (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()
|