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

1 2

  /frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/
UiSelector.java 31 public class UiSelector {
70 public UiSelector() {
73 UiSelector(UiSelector selector) {
80 protected UiSelector cloneSelector() {
81 UiSelector ret = new UiSelector();
84 ret.mSelectorAttributes.put(SELECTOR_CHILD, new UiSelector(getChildSelector()));
86 ret.mSelectorAttributes.put(SELECTOR_PARENT, new UiSelector(getParentSelector()));
88 ret.mSelectorAttributes.put(SELECTOR_PATTERN, new UiSelector(getPatternSelector()))
    [all...]
UiCollection.java 31 public UiCollection(UiSelector selector) {
36 * Searches for child UI element within the constraints of this UiCollection {@link UiSelector}
44 * @param childPattern {@link UiSelector} selector of the child pattern to match and return
50 public UiObject getChildByDescription(UiSelector childPattern, String text)
61 UiObject item = row.getChild(new UiSelector().descriptionContains(text));
71 * Searches for child UI element within the constraints of this UiCollection {@link UiSelector}
79 * @param childPattern {@link UiSelector} selector of the child pattern to match and return
84 public UiObject getChildByInstance(UiSelector childPattern, int instance)
87 UiSelector patternSelector = UiSelector.patternBuilder(getSelector()
    [all...]
UiScrollable.java 50 * @param container a {@link UiSelector} selector to identify the scrollable
54 public UiScrollable(UiSelector container) {
90 protected boolean exists(UiSelector selector) {
105 * See {@link #getChildByDescription(UiSelector, String, boolean)}
107 * @param childPattern {@link UiSelector} for a child in a scollable layout element
115 public UiObject getChildByDescription(UiSelector childPattern, String text)
129 * @param childPattern {@link UiSelector} for a child in a scollable layout element
137 public UiObject getChildByDescription(UiSelector childPattern, String text,
142 scrollIntoView(new UiSelector().descriptionContains(text));
154 * @param childPattern {@link UiSelector} for a child in a scollable layout elemen
    [all...]
QueryController.java 26 * The QueryController main purpose is to translate a {@link UiSelector} selectors to
127 public int getPatternCount(UiSelector selector) {
137 public AccessibilityNodeInfo findAccessibilityNodeInfo(UiSelector selector) {
141 protected AccessibilityNodeInfo findAccessibilityNodeInfo(UiSelector selector,
157 UiSelector uiSelector = new UiSelector(selector);
158 return translateCompoundSelector(uiSelector, rootNode, isCounting);
215 private AccessibilityNodeInfo translateCompoundSelector(UiSelector selector,
273 * Used by the {@link #translateCompoundSelector(UiSelector, AccessibilityNodeInfo, boolean)
    [all...]
UiObject.java 30 * locate a matching view at runtime based on the {@link UiSelector} properties specified in
67 private final UiSelector mSelector;
77 public UiObject(UiSelector selector) {
85 * @return {@link UiSelector}
88 public final UiSelector getSelector() {
90 return new UiSelector(mSelector);
94 * Retrieves the {@link QueryController} to translate a {@link UiSelector} selector
120 public UiObject getChild(UiSelector selector) throws UiObjectNotFoundException {
134 public UiObject getFromParent(UiSelector selector) throws UiObjectNotFoundException {
579 * The {@link UiSelector} selector of this object must reference a UI element that is editable
    [all...]
  /development/samples/UiAutomator/src/com/android/test/uiautomator/demos/
SetTwoMinuteAlarm.java 23 import com.android.uiautomator.core.UiSelector;
38 public static final UiSelector ALL_APPS_BUTTON = new UiSelector().description("Apps");
39 public static final UiSelector LAUNCHER_CONTAINER = new UiSelector().scrollable(true);
40 public static final UiSelector LAUNCHER_ITEM =
41 new UiSelector().className(android.widget.TextView.class.getName());
61 UiSelector appsTabSelector =
62 new UiSelector().className(android.widget.TabWidget.class.getName())
63 .childSelector(new UiSelector().text("Apps"))
    [all...]
LaunchSettings.java 21 import com.android.uiautomator.core.UiSelector;
38 UiObject allAppsButton = new UiObject(new UiSelector().description("Apps"));
53 UiObject appsTab = new UiObject(new UiSelector().text("Apps"));
67 //UiSelector appsTabSelector =
68 // new UiSelector().className(android.widget.TabWidget.class.getName())
69 // .childSelector(new UiSelector().text("Apps"));
81 UiScrollable appViews = new UiScrollable(new UiSelector().scrollable(true));
87 new UiSelector().className(android.widget.TextView.class.getName()), "Settings");
93 new UiObject(new UiSelector().packageName("com.android.settings"));
LogBuildNumber.java 23 import com.android.uiautomator.core.UiSelector;
49 public static final UiSelector ALL_APPS_BUTTON = new UiSelector().description("Apps");
50 public static final UiSelector LAUNCHER_CONTAINER = new UiSelector().scrollable(true);
51 public static final UiSelector LAUNCHER_ITEM =
52 new UiSelector().className(android.widget.TextView.class.getName());
61 public static final UiSelector LIST_VIEW =
62 new UiSelector().className(android.widget.ListView.class.getName());
63 public static final UiSelector LIST_VIEW_ITEM
    [all...]
  /cts/tests/uiautomator/src/com/android/cts/uiautomatortest/
CtsUiAutomatorTest.java 29 import com.android.uiautomator.core.UiSelector;
62 if (!new UiObject(new UiSelector().packageName(PKG_NAME)).exists())
98 new UiSelector().className(android.widget.ListView.class.getName()));
112 * verifying input text using a complex UiSelector
120 UiObject editText = new UiObject(new UiSelector().className(android.widget.EditText.class
124 UiObject submitButton = new UiObject(new UiSelector()
129 UiObject result = new UiObject(new UiSelector().className(
131 (new UiSelector().className(android.widget.ScrollView.class.getName())
132 .childSelector(new UiSelector().className(android.widget.TextView.class
233 UiObject editText = new UiObject(new UiSelector().className(android.widget.EditText.clas
    [all...]
  /cts/hostsidetests/appsecurity/test-apps/DocumentClient/src/com/android/cts/documentclient/
DocumentsClientTest.java 30 import android.support.test.uiautomator.UiSelector;
86 assertTrue("CtsLocal root", new UiObject(new UiSelector().text("CtsLocal")).waitForExists(TIMEOUT));
87 assertTrue("CtsCreate root", new UiObject(new UiSelector().text("CtsCreate")).exists());
88 assertFalse("CtsGetContent", new UiObject(new UiSelector().text("CtsGetContent")).exists());
92 new UiObject(new UiSelector().text("CtsLocal")).click();
95 new UiObject(new UiSelector().text("FILE1")).click();
121 new UiObject(new UiSelector().text("CtsCreate")).click();
123 new UiObject(new UiSelector().resourceId("com.android.documentsui:id/container_save")
124 .childSelector(new UiSelector().resourceId("android:id/button1"))).click();
145 new UiObject(new UiSelector().text("CtsCreate")).click()
    [all...]
  /frameworks/testing/uiautomator_test_libraries/src/com/android/uiautomator/common/
UiWatchers.java 24 import com.android.uiautomator.core.UiSelector;
47 UiObject window = new UiObject(new UiSelector().className(
68 UiObject window = new UiObject(new UiSelector().packageName("android")
88 UiObject window = new UiObject(new UiSelector().className(
108 UiObject window = new UiObject(new UiSelector().packageName("android")
154 UiObject buttonOK = new UiObject(new UiSelector().text("OK").enabled(true));
  /frameworks/testing/uiautomator_test_libraries/src/com/android/uiautomator/common/helpers/
TimePickerHelper.java 20 import com.android.uiautomator.core.UiSelector;
85 getNumberPicker(MERIDIEM).getChild(new UiSelector().text("PM")).click();
89 getNumberPicker(MERIDIEM).getChild(new UiSelector().text("AM")).click();
93 return new UiObject(new UiSelector().className(
100 new UiSelector().className(android.widget.EditText.class.getName()));
106 new UiSelector().className(android.widget.Button.class.getName()).instance(0));
112 new UiSelector().className(android.widget.Button.class.getName()).instance(1));
116 new UiObject(new UiSelector().text("Done")).click();
DatePickerHelper.java 20 import com.android.uiautomator.core.UiSelector;
101 return new UiObject(new UiSelector().className(
108 new UiSelector().className(android.widget.EditText.class.getName()));
114 new UiSelector().className(android.widget.Button.class.getName()).instance(0));
120 new UiSelector().className(android.widget.Button.class.getName()).instance(1));
124 new UiObject(new UiSelector().text("Done")).click();
  /cts/tests/tests/print/src/android/print/cts/
BasePrintTest.java 53 import android.support.test.uiautomator.UiSelector;
224 UiObject destinationSpinner = new UiObject(new UiSelector().resourceId(
227 UiObject printerOption = new UiObject(new UiSelector().text(printerName));
237 UiObject orientationSpinner = new UiObject(new UiSelector().resourceId(
240 UiObject orientationOption = new UiObject(new UiSelector().text(orientation));
250 UiObject mediaSizeSpinner = new UiObject(new UiSelector().resourceId(
253 UiObject mediaSizeOption = new UiObject(new UiSelector().text(mediaSize));
263 UiObject colorSpinner = new UiObject(new UiSelector().resourceId(
266 UiObject colorOption = new UiObject(new UiSelector().text(color));
276 UiObject printButton = new UiObject(new UiSelector().resourceId
    [all...]
PageRangeAdjustmentTest.java 46 import android.support.test.uiautomator.UiSelector;
600 UiObject pagesSpinner = getUiDevice().findObject(new UiSelector().resourceId(
604 UiObject rangeOption = getUiDevice().findObject(new UiSelector().textContains("Range"));
607 UiObject pagesEditText = getUiDevice().findObject(new UiSelector().resourceId(
  /cts/suite/cts/hostTests/jank/app/src/com/android/cts/jank/ui/
CtsDeviceJankUi.java 22 import com.android.uiautomator.core.UiSelector;
59 new UiSelector().className(ListView.class.getName()));
  /frameworks/webview/chromium/tests/java/src/com/android/uiautomator/platform/
WebViewFlingTest.java 19 import com.android.uiautomator.core.UiSelector;
76 new UiScrollable(new UiSelector().resourceId(AW_CONTAINER).instance(0));
  /frameworks/webview/chromium/tests/UbWebViewJankTests/src/com/android/webview/chromium/tests/jank/
WebViewFlingTest.java 30 import android.support.test.uiautomator.UiSelector;
  /cts/tests/tests/uiautomation/src/android/app/uiautomation/cts/
UiAutomationTest.java 28 import android.support.test.uiautomator.UiSelector;
68 UiScrollable listView = new UiScrollable(new UiSelector().resourceId(
  /prebuilts/sdk/16/
uiautomator.jar 
  /prebuilts/sdk/17/
uiautomator.jar 
  /prebuilts/sdk/18/
uiautomator.jar 
  /prebuilts/sdk/19/
uiautomator.jar 
  /prebuilts/sdk/20/
uiautomator.jar 
  /prebuilts/sdk/21/
uiautomator.jar 

Completed in 242 milliseconds

1 2