HomeSort by relevance Sort by last modified time
    Searched refs:By (Results 1 - 25 of 430) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /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;
27 public static final BySelector TV_VIEW = By.res(TV_APP_PACKAGE, "main_tunable_tv_view");
28 public static final BySelector CHANNEL_BANNER = By.res(TV_APP_PACKAGE, "channel_banner_view");
29 public static final BySelector KEYPAD_CHANNEL_SWITCH = By.res(TV_APP_PACKAGE, "channel_number");
30 public static final BySelector MENU = By.res(TV_APP_PACKAGE, "menu");
31 public static final BySelector SIDE_PANEL = By.res(TV_APP_PACKAGE, "side_panel");
32 public static final BySelector PROGRAM_GUIDE = By.res(TV_APP_PACKAGE, "program_guide");
33 public static final BySelector FOCUSED_VIEW = By.focused(true);
ByResource.java 10 * Unless required by applicable law or agreed to in writing, software
19 import android.support.test.uiautomator.By;
30 * @see By#res(String)
34 return By.res(id);
40 * @see By#text(String)
44 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;
41 return By.copy(Constants.SIDE_PANEL)
46 return By.hasDescendant(ByResource.text(mTargetResources, textResId));
60 .assertNavigateTo(mUiDevice, sidePanelList, By.hasDescendant(By.text(title)),
  /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");
NexusLauncherStrategy.java 10 * Unless required by applicable law or agreed to in writing, software
18 import android.support.test.uiautomator.By;
38 return By.res(getSupportedLauncherPackage(), "page_indicator");
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...]
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...]
TvLauncherStrategy.java 10 * Unless required by applicable law or agreed to in writing, software
26 import android.support.test.uiautomator.By;
51 private static final BySelector SELECTOR_TOP_ROW = By.res(PACKAGE_LAUNCHER, "top_row");
52 private static final BySelector SELECTOR_APPS_ROW = By.res(PACKAGE_LAUNCHER, "apps_row");
54 By.res(PACKAGE_LAUNCHER, "row_list_view");
56 By.res(PACKAGE_LAUNCHER, "channel_logo").focused(true).descContains("Apps");
58 By.res(PACKAGE_LAUNCHER, "configure_channels_row");
145 return By.res(getSupportedLauncherPackage(), "home_view_container");
197 return By.res(getSupportedLauncherPackage(), "favorite_app_banner").text(appName);
204 return By.res(getSupportedLauncherPackage(), "app_title").text(appName)
    [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...]
example_test.go 2 // Use of this source code is governed by a BSD-style
37 fmt.Println("By name:", people)
40 fmt.Println("By age:", people)
41 // Output: By name: [{Alice 55} {Bob 75} {Gopher 7} {Vera 24}]
42 // By age: [{Gopher 7} {Vera 24} {Alice 55} {Bob 75}]
  /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...]
example_test.go 2 // Use of this source code is governed by a BSD-style
37 fmt.Println("By name:", people)
40 fmt.Println("By age:", people)
41 // Output: By name: [{Alice 55} {Bob 75} {Gopher 7} {Vera 24}]
42 // By age: [{Gopher 7} {Vera 24} {Alice 55} {Bob 75}]
  /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...]
AccessibilityScannerHelper.java 10 * Unless required by applicable law or agreed to in writing, software
24 import android.support.test.uiautomator.By;
126 By.res(AccessibilityHelper.SETTINGS_PACKAGE, "switch_widget")),
134 UiObject2 okBtn = mDevice.wait(Until.findObject(By.text("OK")), SHORT_TIMEOUT);
151 By.text("BEGIN AUTHORIZATION")), SHORT_TIMEOUT);
156 By.clazz(AccessibilityHelper.CHECK_BOX)), SHORT_TIMEOUT);
159 mDevice.findObject(By.text("START NOW")).click();
162 By.text("BEGIN AUTHORIZATION")), SHORT_TIMEOUT);
167 By.pkg(ACCESSIBILITY_SCANNER_PACKAGE).text("OK")), SHORT_TIMEOUT);
195 Until.findObject(By.text("GET STARTED")), SHORT_TIMEOUT)
    [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...]