/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/ |
AospLauncherStrategy.java | 10 * Unless required by applicable law or agreed to in writing, software 18 import android.support.test.uiautomator.By; 37 By.res(LAUNCHER_PKG, "apps_customize_pane_content"); 38 private static final BySelector WORKSPACE = By.res(LAUNCHER_PKG, "workspace"); 39 private static final BySelector HOTSEAT = By.res(LAUNCHER_PKG, "hotseat"); 51 mDevice.wait(Until.hasObject(By.pkg(LAUNCHER_PKG)), 5000)); 55 UiObject2 cling = mDevice.findObject(By.res(LAUNCHER_PKG, "workspace_cling")); 57 cling.findObject(By.clazz(Button.class).text("OK")).click(); 71 mDevice.findObject(By.desc("Apps")).click(); 77 UiObject2 appsTab = mDevice.findObject(By.desc("Apps" [all...] |
GoogleExperienceLauncherStrategy.java | 10 * Unless required by applicable law or agreed to in writing, software 18 import android.support.test.uiautomator.By; 40 private static final BySelector APPS_CONTAINER = By.res(LAUNCHER_PKG, "all_apps_container"); 41 private static final BySelector WIDGETS_CONTAINER = By.res(LAUNCHER_PKG, "widgets_list_view"); 42 private static final BySelector WORKSPACE = By.res(LAUNCHER_PKG, "workspace"); 43 private static final BySelector HOTSEAT = By.res(LAUNCHER_PKG, "hotseat"); 63 if (!mDevice.wait(Until.hasObject(By.res(LAUNCHER_PKG, "hotseat")), 5000)) { 89 mDevice.findObject(By.desc("Apps")).click(); 121 mDevice.findObject(By.res(LAUNCHER_PKG, "widget_button")).click(); 146 BySelector app = By.res(LAUNCHER_PKG, "icon").clazz(TextView.class).desc(appName) [all...] |
CommonLauncherHelper.java | 10 * Unless required by applicable law or agreed to in writing, software 19 import android.support.test.uiautomator.By; 89 * Ensures that the described widget has enough visible portion by scrolling its container if 122 * Triggers app launch by interacting with its launcher icon as described, optionally verify 136 * Triggers app launch by interacting with its launcher icon as described, optionally verify 177 return mDevice.wait(Until.hasObject(By.pkg(packageName).depth(0)), APP_LAUNCH_TIMEOUT);
|
/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 26 import android.support.test.uiautomator.By; 73 By.res(RES_PACKAGE_NAME, "text1").text("Animation")), LONG_TIMEOUT); 77 By.res(RES_PACKAGE_NAME, "text1").text(optionName)), LONG_TIMEOUT); 80 mDevice.wait(Until.findObject(By.res(RES_PACKAGE_NAME, "content")), LONG_TIMEOUT) 82 option = mDevice.wait(Until.findObject(By.res(RES_PACKAGE_NAME, "text1") 95 UiObject2 homeScreen = mDevice.findObject(By.res(launcherPackage,"workspace")); 98 homeScreen = mDevice.findObject(By.res(launcherPackage,"workspace")); 114 UiObject2 redBallTile = mDevice.findObject(By.res(PACKAGE_NAME, "ball")); 132 UiObject2 flipButton = mDevice.findObject(By.res(PACKAGE_NAME, "button")) [all...] |
/platform_testing/tests/jank/sysapp/src/com/android/sysapp/janktests/ |
BooksJankTests.java | 10 * Unless required by applicable law or agreed to in writing, software 26 import android.support.test.uiautomator.By; 86 By.res(PACKAGE_NAME, "content_container")), LONG_TIMEOUT); 99 Until.findObject(By.clazz(".Button").text("OK")), LONG_TIMEOUT); 105 Until.findObject(By.desc("Hide navigation drawer")), LONG_TIMEOUT); 111 By.clazz(Button.class).text("Keep sync off")), LONG_TIMEOUT); 118 if (!mDevice.hasObject(By.res(PACKAGE_NAME, "play_drawer_container"))) { 119 mDevice.findObject(By.desc("Show navigation drawer")).click(); 121 Until.hasObject(By.res(PACKAGE_NAME, "play_drawer_list")), LONG_TIMEOUT)); 131 Until.findObject(By.text("My Library").res("")), LONG_TIMEOUT) [all...] |
GMailJankTests.java | 10 * Unless required by applicable law or agreed to in writing, software 26 import android.support.test.uiautomator.By; 84 Until.findObject(By.res(PACKAGE_NAME, "conversation_list_view")), SHORT_TIMEOUT); 93 Until.findObject(By.res(PACKAGE_NAME, "conversation_list_view")), LONG_TIMEOUT); 147 Until.findObject(By.res(PACKAGE_NAME, "welcome_tour_got_it")), SHORT_TIMEOUT); 152 Until.findObject(By.res(PACKAGE_NAME, "welcome_tour_skip")), SHORT_TIMEOUT); 157 Until.findObject(By.res(PACKAGE_NAME, "action_done")), 2 * SHORT_TIMEOUT); 161 mDevice.wait(Until.findObject(By.text("CONFIDENTIAL")), 2 * SHORT_TIMEOUT); 162 UiObject2 splash = mDevice.findObject(By.text("Ok, got it")); 170 mDevice.wait(Until.hasObject(By.text("Waiting for sync")), 2 * SHORT_TIMEOUT) [all...] |
YouTubeJankTests.java | 10 * Unless required by applicable law or agreed to in writing, software 26 import android.support.test.uiautomator.By; 76 Until.findObject(By.res(PACKAGE_NAME, "pane_fragment_container")), LONG_TIMEOUT); 85 Until.findObject(By.res(PACKAGE_NAME, "pane_fragment_container")), LONG_TIMEOUT); 97 By.res(PACKAGE_NAME, "done_button").text("Done")), LONG_TIMEOUT); 102 By.res(PACKAGE_NAME, "dogfood_warning_dialog_dismiss_button").text("OK")), LONG_TIMEOUT); 107 Until.findObject(By.res(PACKAGE_NAME, "skip_button").text("Skip")), LONG_TIMEOUT); 112 Until.findObject(By.res(PACKAGE_NAME, "text").text("Find music faster")), LONG_TIMEOUT); 115 Until.findObject(By.res(PACKAGE_NAME, "ok").text("OK")), LONG_TIMEOUT);
|
CalendarJankTests.java | 10 * Unless required by applicable law or agreed to in writing, software 26 import android.support.test.uiautomator.By; 63 mCalendarSelector = By.res(PACKAGE_NAME, "timely_list"); 66 mCalendarSelector = By.res(PACKAGE_NAME, "main_pane"); 108 By.pkg(PACKAGE_NAME).clazz(View.class).desc("Got it")), LONG_TIMEOUT); 115 while ((rightArrow = mDevice.wait(Until.findObject(By.res( 121 By.res(PACKAGE_NAME, "done_button").text("Got it")), LONG_TIMEOUT);
|
ContactsJankTests.java | 10 * Unless required by applicable law or agreed to in writing, software 28 import android.support.test.uiautomator.By; 82 mDevice.wait(Until.findObject(By.clazz(TextView.class).selected(true)), TIMEOUT)); 84 By.res(RES_PACKAGE_NAME, "pinned_header_list_layout")), TIMEOUT)); 97 By.res(RES_PACKAGE_NAME, "pinned_header_list_layout")), TIMEOUT);
|
ChromeJankTests.java | 10 * Unless required by applicable law or agreed to in writing, software 26 import android.support.test.uiautomator.By; 93 Until.findObject(By.desc("More options")), 5 * SHORT_TIMEOUT);
|
/external/droiddriver/manualtest/src/io/appium/droiddriver/manualtest/ |
ManualTest.java | 5 import io.appium.droiddriver.finders.By; 37 Finder password_edit = By.resourceId("com.google.android.gsf.login:id/password_edit"); 38 String oldPassword = "A fake password that is not empty and needs to be cleared by setText";
|
/cts/suite/cts/deviceTests/jank2/src/android/cts/jank/ui/ |
CtsDeviceJankUi.java | 9 * Unless required by applicable law or agreed to in writing, software distributed under the License 23 import android.support.test.uiautomator.By; 46 getUiDevice().wait(Until.hasObject(By.pkg(PACKAGE)), DEFAULT_ANIMATION_TIME); 58 getUiDevice().findObject(By.clazz(ListView.class)).fling(Direction.DOWN);
|
/cts/hostsidetests/devicepolicy/app/PackageInstaller/src/com/android/cts/packageinstaller/ |
ManualPackageInstallTest.java | 10 * Unless required by applicable law or agreed to in writing, software 21 import android.support.test.uiautomator.By; 27 * This class tests manual package install and uninstall by a device owner. 33 private static final BySelector POPUP_BUTTON_SELECTOR = By 37 private static final BySelector POPUP_TEXT_SELECTOR = By 41 private static final BySelector INSTALL_BUTTON_SELECTOR = By 112 // "OK" button only present in the dialog if it is blocked by policy.
|
/platform_testing/tests/jank/dialer/src/com/android/dialer/janktests/ |
DialerJankTests.java | 10 * Unless required by applicable law or agreed to in writing, software 39 import android.support.test.uiautomator.By; 101 By.clazz(View.class).desc("Contacts")), TIMEOUT); 104 // Find a contact by a given contact-name 106 By.res(RES_PACKAGE_NAME, "cliv_name_textview").text(CONTACT_NAME)), TIMEOUT); 111 By.res(RES_PACKAGE_NAME2,"header").text(CONTACT_NUMBER)), TIMEOUT); 115 UiObject2 endCall = mDevice.wait(Until.findObject(By.res(RES_PACKAGE_NAME, 126 By.res(RES_PACKAGE_NAME2,"header").text(CONTACT_NUMBER)), TIMEOUT); 129 UiObject2 endCall = mDevice.wait(Until.findObject(By.res(RES_PACKAGE_NAME, 145 mDevice.wait(Until.findObject(By.clazz(View.class).desc("Recents")), TIMEOUT).click() [all...] |
/external/droiddriver/src/io/appium/droiddriver/scroll/ |
Scrollers.java | 10 * Unless required by applicable law or agreed to in writing, software 23 import io.appium.droiddriver.finders.By; 41 driver.checkGone(By.className(ProgressBar.class));
|
SentinelStrategy.java | 10 * Unless required by applicable law or agreed to in writing, software 25 import io.appium.droiddriver.finders.By; 41 * UiElements are not skipped by default. 47 // Include invisible children by default. 110 * to the reordering by layout described in {@link UiElement#getChildren}. 143 * Decorates a {@link Getter} by adding another {@link Predicate}. 181 sentinelFinder = By.chain(containerFinder, backwardGetter); 183 sentinelFinder = By.chain(containerFinder, forwardGetter);
|
StepBasedScroller.java | 10 * Unless required by applicable law or agreed to in writing, software 25 import io.appium.droiddriver.finders.By; 86 itemFinder = By.chain(containerFinder, itemFinder); 138 return driver.getPoller().pollFor(driver, By.chain(containerFinder, itemFinder),
|
DynamicSentinelStrategy.java | 10 * Unless required by applicable law or agreed to in writing, software 23 import io.appium.droiddriver.finders.By; 31 * Determines whether scrolling is possible by checking whether the sentinel 60 * Determines whether the sentinel is updated by checking a single unique 125 * Determines whether the sentinel is updated by checking the text of a 140 * Determines whether the sentinel is updated by checking the content 155 * Determines whether the sentinel is updated by checking the resource-id of a 164 public static final ResourceIdUpdated SELF = new ResourceIdUpdated(By.any());
|
/platform_testing/tests/jank/webview/src/com/android/webview/chromium/tests/jank/ |
WebViewFlingTest.java | 10 * Unless required by applicable law or agreed to in writing, software 26 import android.support.test.uiautomator.By; 88 UiObject2 container = mDevice.findObject(By.res(RES_PACKAGE, "container")); 100 mDevice.findObject(By.res(RES_PACKAGE, "container")).fling(Direction.DOWN);
|
/cts/tests/leanbackjank/src/android/cts/leanbackjank/ |
CtsDeviceLeanback.java | 9 * Unless required by applicable law or agreed to in writing, software distributed under the License 25 import android.support.test.uiautomator.By; 77 if (!getUiDevice().wait(Until.hasObject(By.pkg(APP_PACKAGE)), WAIT_TIMEOUT)) {
|
/build/core/ |
host_executable.mk | 10 # By default we only build host module for the first arch.
|
/external/droiddriver/src/io/appium/droiddriver/finders/ |
By.java | 10 * Unless required by applicable law or agreed to in writing, software 30 public class By { 50 /** Matches a UiElement by a resource id defined in the AUT. */ 57 * Matches a UiElement by the string representation of a resource id. This works for resources 64 /** Matches a UiElement by package name. */ 69 /** Matches a UiElement by the exact text. */ 84 /** Matches a UiElement by content description. */ 94 /** Matches a UiElement by class name. */ 99 /** Matches a UiElement by class name. */ 110 * Matches by XPath. When applied on an non-root element, it will not evaluat [all...] |
/external/jemalloc/include/jemalloc/ |
jemalloc_mangle.sh | 8 * By default application code must explicitly refer to mangled symbol names, 31 * meant for use in jemalloc itself, but it can be used by application code to
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
PermissionsTest.java | 10 * Unless required by applicable law or agreed to in writing, software 26 import android.support.test.uiautomator.By; 63 private static final BySelector CRASH_POPUP_BUTTON_SELECTOR = By 67 private static final BySelector CRASH_POPUP_TEXT_SELECTOR = By 223 // by a profile owner 293 BySelector selector = By
|