Home | History | Annotate | Download | only in launcherhelper

Lines Matching refs:By

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");
176 return By.res(getSupportedLauncherPackage(), "content_text").text("Now Playing");
201 BySelector app = By.res(getSupportedLauncherPackage(), "app_banner").desc(appName);
222 BySelector keyboardOrb = By.res(getSupportedLauncherPackage(), "keyboard_orb");
230 // Move the focus to keyboard orb by DPad button.
238 BySelector searchEditor = By.res(PACKAGE_SEARCH, "search_text_editor");
265 getNotificationRowSelector().hasDescendant(By.focused(true), 3)), SHORT_WAIT_TIME);
278 getSearchRowSelector().hasDescendant(By.focused(true))), SHORT_WAIT_TIME);
396 UiObject2 focused = container.wait(Until.findObject(By.focused(true)), SHORT_WAIT_TIME);
404 By.res(getSupportedLauncherPackage(), "app_banner"));
455 if (!mDevice.wait(Until.hasObject(By.pkg(packageName).depth(0)), APP_LAUNCH_TIMEOUT)) {
464 By.pkg(packageName).depth(0)), APP_LAUNCH_TIMEOUT);
492 By.res(getSupportedLauncherPackage(), "card").descContains(appName));
510 return row.hasObject(By.focused(true));
518 return row.hasObject(By.focused(true));
526 return row.hasObject(By.focused(true));
534 return row.hasObject(By.focused(true));
541 By.res(getSupportedLauncherPackage(), "label").text("Settings")));
545 return mDevice.hasObject(By.pkg(appPackage).depth(0));
564 return mDevice.hasObject(By.res(getSupportedLauncherPackage(), "notification_preparing"));
606 By.res(getSupportedLauncherPackage(), "card").focused(true));
615 By.res(getSupportedLauncherPackage(), "card").focused(true));
624 // Search by going left first until it finds the app icon on the screen
633 nextText = container.findObject(By.focused(true)).findObject(
634 By.res(getSupportedLauncherPackage(),
638 // If we haven't found it yet, search by going right
645 nextText = container.findObject(By.focused(true)).findObject(
646 By.res(getSupportedLauncherPackage(),
664 UiObject2 currentFocused = mDevice.wait(Until.findObject(By.focused(true)),
669 if (rowObject != null && rowObject.hasObject(By.focused(true))) {
675 currentFocused = mDevice.wait(Until.findObject(By.focused(true)), SHORT_WAIT_TIME);
683 // Search by going down first until it finds the focused row.
687 // If we haven't found it yet, search by going up
696 By.res(getSupportedLauncherPackage(), "label").text("Restricted Profile"),
713 UiObject2 currentFocused = mDevice.findObject(By.focused(true));
723 currentFocused = mDevice.findObject(By.focused(true));