/packages/apps/TV/tests/common/src/com/android/tv/testing/uihelper/ |
Constants.java | 10 * Unless required by applicable law or agreed to in writing, software 18 import android.support.test.uiautomator.By; 29 public static final BySelector TV_VIEW = By.res(TV_APP_PACKAGE, "main_tunable_tv_view"); 30 public static final BySelector CHANNEL_BANNER = By.res(TV_APP_PACKAGE, "channel_banner_view"); 31 public static final BySelector KEYPAD_CHANNEL_SWITCH = By.res(TV_APP_PACKAGE, "channel_number"); 32 public static final BySelector MENU = By.res(TV_APP_PACKAGE, "menu"); 33 public static final BySelector SIDE_PANEL = By.res(TV_APP_PACKAGE, "side_panel"); 34 public static final BySelector PROGRAM_GUIDE = By.res(TV_APP_PACKAGE, "program_guide"); 35 public static final BySelector DVR_LIBRARY = By.res(TV_APP_PACKAGE, "dvr_frame"); 36 public static final BySelector DVR_SCHEDULES = By.res(TV_APP_PACKAGE, "dvr_schedules") [all...] |
ByResource.java | 10 * Unless required by applicable law or agreed to in writing, software 19 import android.support.test.uiautomator.By; 28 * @see By#res(String) 32 return By.res(id); 38 * @see By#text(String) 42 return By.text(text);
|
SidePanelHelper.java | 10 * Unless required by applicable law or agreed to in writing, software 20 import android.support.test.uiautomator.By; 37 return By.copy(Constants.SIDE_PANEL) 42 return By.hasDescendant(ByResource.text(mTargetResources, textResId)); 64 mUiDevice, sidePanelList, By.hasDescendant(By.text(title)), direction);
|
/packages/apps/Traceur/uitests/src/com/android/settings/ui/ |
TraceurAppTests.java | 10 * Unless required by applicable law or agreed to in writing, software 25 import android.support.test.uiautomator.By; 61 mDevice.wait(Until.hasObject(By.pkg(TRACEUR_PACKAGE).depth(0)), TIMEOUT); 75 mDevice.wait(Until.findObject(By.text("Record trace")), 78 mDevice.wait(Until.findObject(By.text("Trace debuggable applications")), 81 mDevice.wait(Until.findObject(By.text("Categories")), 84 mDevice.wait(Until.findObject(By.text("Restore default categories")), 87 mDevice.wait(Until.findObject(By.text("Buffer size")), 90 mDevice.wait(Until.findObject(By.text("Clear saved traces")), 93 mDevice.wait(Until.findObject(By.text("Show Quick Settings tile")) [all...] |
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/ |
GoogleExperienceLauncherStrategy.java | 10 * Unless required by applicable law or agreed to in writing, software 18 import android.support.test.uiautomator.By; 38 return By.desc("Apps");
|
Launcher3Strategy.java | 10 * Unless required by applicable law or agreed to in writing, software 18 import android.support.test.uiautomator.By; 42 By.res(getSupportedLauncherPackage(), "cling_dismiss_longpress_info")); 53 return By.res(getSupportedLauncherPackage(), "all_apps_handle");
|
AospLauncherStrategy.java | 10 * Unless required by applicable law or agreed to in writing, software 18 import android.support.test.uiautomator.By; 36 By.res(LAUNCHER_PKG, "apps_customize_pane_content"); 37 private static final BySelector WORKSPACE = By.res(LAUNCHER_PKG, "workspace"); 38 private static final BySelector HOTSEAT = By.res(LAUNCHER_PKG, "hotseat"); 50 mDevice.wait(Until.hasObject(By.pkg(LAUNCHER_PKG)), 5000)); 54 UiObject2 cling = mDevice.findObject(By.res(LAUNCHER_PKG, "workspace_cling")); 56 cling.findObject(By.clazz(Button.class).text("OK")).click(); 70 mDevice.findObject(By.desc("Apps")).click(); 76 UiObject2 cling = mDevice.findObject(By.res(LAUNCHER_PKG, "cling_dismiss" [all...] |
AllAppsScreenHelper.java | 10 * Unless required by applicable law or agreed to in writing, software 21 import android.support.test.uiautomator.By; 55 mDevice.wait(Until.hasObject(By.res(getLauncherPackage(), allApps)), TIMEOUT); 62 (By.res(getLauncherPackage(), searchBox)), TIMEOUT); 67 (By.text(appName)), TIMEOUT));
|
LeanbackLauncherStrategy.java | 10 * Unless required by applicable law or agreed to in writing, software 26 import android.support.test.uiautomator.By; 119 return By.res(getSupportedLauncherPackage(), "main_list_view"); 127 return By.res(getSupportedLauncherPackage(), "search_view"); 135 return By.res(getSupportedLauncherPackage(), "notification_view"); 143 return By.res(getSupportedLauncherPackage(), "list").desc("Apps"); 151 return By.res(getSupportedLauncherPackage(), "list").desc("Games"); 159 return By.res(getSupportedLauncherPackage(), "list").desc("").hasDescendant( 160 By.res(getSupportedLauncherPackage(), "icon"), 3); 168 return By.clazz(getSupportedLauncherPackage(), "android.appwidget.AppWidgetHostView") [all...] |
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/ |
MoreWirelessSettingsTest2.java | 10 * Unless required by applicable law or agreed to in writing, software 24 import android.support.test.uiautomator.By; 119 By.scrollable(true).clazz(SCROLLVIEW_CLASS); 121 By.scrollable(true).clazz(LISTVIEW_CLASS); 158 (By.text(CONFIGURE_WIFI_PREFERENCE_TEXT)), TIMEOUT); 176 // Submit button should be disabled by default, while cancel button should be enabled. 178 By.text(ADD_NETWORK_MENU_SAVE_BUTTON_TEXT)), TIMEOUT).isEnabled()); 180 By.text(ADD_NETWORK_MENU_CANCEL_BUTTON_TEXT)), TIMEOUT).isEnabled()); 183 assertEquals("Enter the SSID", mDevice.wait(Until.findObject(By 189 assertEquals("None", mDevice.wait(Until.findObject(By [all...] |
DataUsageSettingsTests.java | 10 * Unless required by applicable law or agreed to in writing, software 21 import android.support.test.uiautomator.By; 58 mDevice.wait(Until.findObject(By.text("Usage")), 61 mDevice.wait(Until.findObject(By.res(SETTINGS_PACKAGE, 64 mDevice.wait(Until.findObject(By.text("Wi-Fi data usage")), 67 mDevice.wait(Until.findObject(By.text("Network restrictions")), 75 .findObject(By.text("Network & Internet")), TIMEOUT) 79 Until.findObject(By.text("Data usage")), TIMEOUT)); 81 .findObject(By.text("Data usage")), TIMEOUT)
|
NotificationSettingsTests.java | 10 * Unless required by applicable law or agreed to in writing, software 22 import android.support.test.uiautomator.By; 77 Until.findObject(By.text("Notifications")), TIMEOUT); 79 mDevice.wait(Until.findObject(By.text("Blink light")), TIMEOUT); 81 Until.findObject(By.text("On for all apps")), TIMEOUT); 85 Until.findObject(By.text("All apps")), TIMEOUT); 87 UiObject2 app = mDevice.wait(Until.findObject(By.text("Calculator")), TIMEOUT); 95 Until.findObject(By.text("Notifications")), TIMEOUT); 97 mDevice.wait(Until.findObject(By.text("Blink light")), TIMEOUT); 99 Until.findObject(By.text("On for all apps")), TIMEOUT) [all...] |
LocationSettingsTests.java | 10 * Unless required by applicable law or agreed to in writing, software 22 import android.support.test.uiautomator.By; 66 (By.res(SETTINGS_PACKAGE, "main_content")), TIMEOUT); 70 locationTitle = mDevice.wait(Until.findObject(By.text("Location")), TIMEOUT); 80 mDevice.wait(Until.findObject(By.text("Location services")), TIMEOUT)); 129 mDevice.wait(Until.findObject(By.text(element)), TIMEOUT)); 139 mDevice.wait(Until.findObject(By.desc("Help & feedback")), TIMEOUT)); 142 mDevice.wait(Until.findObject(By.text("Scanning")), TIMEOUT)); 162 mDevice.wait(Until.findObject(By.text("Mode")), TIMEOUT).click(); 165 (By.text("Location mode")), TIMEOUT)) [all...] |
AppsSettingsTests.java | 10 * Unless required by applicable law or agreed to in writing, software 22 import android.support.test.uiautomator.By; 52 "Open by default", 77 Until.findObject(By.text("All apps")), TIMEOUT); 92 Until.findObject(By.text("Calculator")), TIMEOUT); 97 Until.findObject(By.text(setting)), TIMEOUT); 107 Until.findObject(By.text("Calculator")), TIMEOUT); 111 Until.findObject(By.res(SETTINGS_PACKAGE, "list")), TIMEOUT); 114 Until.findObject(By.text("DISABLE")), TIMEOUT); 119 Until.findObject(By.text("DISABLE APP")), TIMEOUT).click() [all...] |
StorageWizardTest.java | 10 * Unless required by applicable law or agreed to in writing, software 25 import android.support.test.uiautomator.By; 88 waitFor(By.res(PACKAGE, "suw_layout_title").text(containsIgnoringCase("How will you use"))); 89 waitFor(By.res(PACKAGE, "storage_wizard_init_internal")).click(); 92 waitFor(By.res(ANDROID_PACKAGE, "alertTitle").textContains("Format")); 93 waitFor(By.clickable(true).text(containsIgnoringCase("Format"))).click(); 96 waitForLong(By.res(PACKAGE, "suw_layout_title").textContains("Slow")); 97 waitFor(By.res(PACKAGE, "storage_next_button")).click(); 100 waitForLong(By.res(PACKAGE, "suw_layout_title").textContains("Move content")); 101 waitFor(By.res(PACKAGE, "storage_next_button")).click() [all...] |
/packages/apps/TV/tests/func/src/com/android/tv/tests/ui/dvr/ |
DvrLibraryTest.java | 10 * Unless required by applicable law or agreed to in writing, software 24 import android.support.test.uiautomator.By; 57 By.hasDescendant( 60 By.hasDescendant( 64 By.hasDescendant( 67 By.focusable(true) 124 By.focusable(true) 125 .hasDescendant(By.textStartsWith(PROGRAM_NAME_PREFIX)) 126 .hasDescendant(By.textEndsWith("today")); 128 By.focusable(true [all...] |
/prebuilts/go/darwin-x86/src/sort/ |
example_keys_test.go | 2 // Use of this source code is governed by a BSD-style 23 // By is the type of a "less" function that defines the ordering of its Planet arguments. 24 type By func(p1, p2 *Planet) bool 26 // Sort is a method on the function type, By, that sorts the argument slice according to the function. 27 func (by By) Sort(planets []Planet) { 30 by: by, // The Sort method's receiver is the function (closure) that defines the sort order. 35 // planetSorter joins a By function and a slice of Planets to be sorted. 38 by func(p1, p2 *Planet) bool // Closure used in the Less method [all...] |
/prebuilts/go/linux-x86/src/sort/ |
example_keys_test.go | 2 // Use of this source code is governed by a BSD-style 23 // By is the type of a "less" function that defines the ordering of its Planet arguments. 24 type By func(p1, p2 *Planet) bool 26 // Sort is a method on the function type, By, that sorts the argument slice according to the function. 27 func (by By) Sort(planets []Planet) { 30 by: by, // The Sort method's receiver is the function (closure) that defines the sort order. 35 // planetSorter joins a By function and a slice of Planets to be sorted. 38 by func(p1, p2 *Planet) bool // Closure used in the Less method [all...] |
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
WipeDataWithReasonVerificationTest.java | 4 import android.support.test.uiautomator.By; 27 Boolean wipeDataTitleExist = uiDevice.wait(Until.hasObject(By.text(WIPE_DATA_TITLE)), 29 Boolean wipeDataReasonExist = uiDevice.wait(Until.hasObject(By.text(TEST_WIPE_DATA_REASON)),
|
/platform_testing/libraries/system-helpers/accessibility-helper/src/android/system/helpers/ |
AccessibilityHelper.java | 10 * Unless required by applicable law or agreed to in writing, software 21 import android.support.test.uiautomator.By; 79 Until.findObject(By.res(SETTINGS_PACKAGE, "switch_bar")), SHORT_TIMEOUT) 80 .findObject(By.res(SETTINGS_PACKAGE, "switch_widget")); 84 Until.findObject(By.res("android:id/button1")), LONG_TIMEOUT); 89 if (mDevice.wait(Until.hasObject(By.text("TalkBack tutorial")), SHORT_TIMEOUT)) { 119 By.res(SETTINGS_PACKAGE, "action_bar").enabled(true)), SHORT_TIMEOUT); 124 String actionBarText = actionBar.findObject(By.clazz(TEXT_VIEW)).getText(); 130 mDevice.wait(Until.findObject(By.res(SETTINGS_PACKAGE, "action_bar") 132 .findObject(By.clazz(IMAGE_BUTTON)).click() [all...] |
/sdk/ |
release.md | 3 By default builds use the -SNAPSHOT version.
|
/platform_testing/tests/jank/jankmicrobenchmark/src/com/android/jankmicrobenchmark/janktests/ |
ApiDemoJankTests.java | 10 * Unless required by applicable law or agreed to in writing, software 27 import android.support.test.uiautomator.By; 71 return mDevice.wait(Until.findObject(By.res(LEANBACK_LAUNCHER, "main_list_view")), 76 return mDevice.wait(Until.findObject(By.res(launcherPackage,"workspace")), 95 By.res(RES_PACKAGE_NAME, "text1").text("Animation")), LONG_TIMEOUT); 99 By.res(RES_PACKAGE_NAME, "text1").text(optionName)), LONG_TIMEOUT); 102 mDevice.wait(Until.findObject(By.res(RES_PACKAGE_NAME, "content")), LONG_TIMEOUT) 104 option = mDevice.wait(Until.findObject(By.res(RES_PACKAGE_NAME, "text1") 145 UiObject2 redBallTile = mDevice.wait(Until.findObject(By.res(PACKAGE_NAME, "ball")), 164 UiObject2 flipButton = mDevice.findObject(By.res(PACKAGE_NAME, "button")) [all...] |
/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/testutils/ |
SettingsTestUtils.java | 10 * Unless required by applicable law or agreed to in writing, software 21 import android.support.test.uiautomator.By; 37 Until.findObject(By.res(SETTINGS_PACKAGE, "main_content")), 49 item = device.wait(Until.findObject(By.res("android:id/title").text(title)), TIMEOUT); 52 Until.findObject(By.res(SETTINGS_PACKAGE, "main_content")),
|
/packages/apps/Contacts/tests/src/com/android/contacts/activities/ |
SimImportActivityTest.java | 10 * Unless required by applicable law or agreed to in writing, software 46 import android.support.test.uiautomator.By; 143 assertTrue(mDevice.wait(Until.hasObject(By.text("Sim One")), TIMEOUT)); 145 assertTrue(mDevice.hasObject(By.text("Sim One"))); 146 assertTrue(mDevice.hasObject(By.text("Sim Two"))); 147 assertTrue(mDevice.hasObject(By.text("5550103"))); 159 assertTrue(mDevice.wait(Until.hasObject(By.textStartsWith("No contacts")), TIMEOUT)); 170 assertTrue(mDevice.wait(Until.hasObject(By.textStartsWith("No contacts")), TIMEOUT)); 176 assertTrue(mDevice.wait(Until.hasObject(By.textStartsWith("No contacts")), TIMEOUT)); 188 assertTrue(mDevice.wait(Until.hasObject(By.textStartsWith("Name One")), TIMEOUT)) [all...] |
/platform_testing/libraries/system-helpers/activity-helper/src/android/system/helpers/ |
ActivityHelper.java | 10 * Unless required by applicable law or agreed to in writing, software 23 import android.support.test.uiautomator.By; 108 while (!mDevice.wait(Until.hasObject(By.res(SYSTEMUI_PACKAGE, "recents_view")), 114 if (mDevice.wait(Until.hasObject(By.text("No recent items")), TIMEOUT * 5)) { 118 By.res(SYSTEMUI_PACKAGE, "recents_view")), TIMEOUT * 5)); 122 By.res(SYSTEMUI_PACKAGE, "task_view_thumbnail")), TIMEOUT * 5).size(); 133 * Clear recent apps by click 'CLEAR ALL' button in the recents view. 139 while (!mDevice.wait(Until.hasObject(By.res(SYSTEMUI_PACKAGE, "recents_view")), 145 while (!mDevice.hasObject(By.text("No recent items")) && maxTries-- >= 0) { 149 if (!mDevice.wait(Until.hasObject(By.text("CLEAR ALL")), TIMEOUT * 2)) [all...] |