Searched refs:UiObject (Results 1 - 10 of 10) sorted by relevance

/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiCollection.java26 public class UiCollection extends UiObject {
44 * The returned UiObject will point at the <code>childPattern</code> instance that matched the
49 * @return {@link UiObject} pointing at and instance of <code>childPattern</code>
53 public UiObject getChildByDescription(UiSelector childPattern, String text)
59 UiObject row = getChildByInstance(childPattern, x);
64 UiObject item = row.getChild(new UiSelector().descriptionContains(text));
84 * @return {@link UiObject} pointing at and instance of <code>childPattern</code>
87 public UiObject getChildByInstance(UiSelector childPattern, int instance)
92 return new UiObject(patternSelector);
101 * <code>text</code>. The returned UiObject wil
[all...]
H A DUiScrollable.java104 * If both search conditions are fulfilled, the method returns a {@ link UiObject}
113 * @return {@link UiObject} representing the child element that matches the search conditions
118 public UiObject getChildByDescription(UiSelector childPattern, String text)
128 * If both search conditions are fulfilled, the method returns a {@ link UiObject}
136 * @return {@link UiObject} representing the child element that matches the search conditions
140 public UiObject getChildByDescription(UiSelector childPattern, String text,
160 * @return {@link UiObject} representing the child element that matches the search conditions
164 public UiObject getChildByInstance(UiSelector childPattern, int instance)
169 return new UiObject(patternSelector);
176 * If both search conditions are fulfilled, the method returns a {@ link UiObject}
[all...]
H A DUiObject.java28 * A UiObject is a representation of a view. It is not in any way directly bound to a
29 * view as an object reference. A UiObject contains information to help it
31 * its constructor. Once you create an instance of a UiObject, it can
38 public class UiObject { class
39 private static final String LOG_TAG = UiObject.class.getSimpleName();
75 * Constructs a UiObject to represent a view that matches the specified
80 public UiObject(UiSelector selector) { method in class:UiObject
117 * Creates a new UiObject for a child view that is under the present UiObject.
120 * @return a new UiObject representin
[all...]
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/bots/
H A DUiBot.java27 import android.support.test.uiautomator.UiObject;
75 UiObject textField = findSearchViewTextField();
76 UiObject searchIcon = findSearchViewIcon();
92 UiObject actionModeBar = findActionModeBar();
97 UiObject searchView = findSearchView();
103 UiObject searchView = findSearchView();
105 UiObject searchTextField = findSearchViewTextField();
110 public UiObject openOverflowMenu() throws UiObjectNotFoundException {
111 UiObject obj = findMenuMoreOptions();
156 UiObject findSearchVie
[all...]
H A DRootsListBot.java21 import android.support.test.uiautomator.UiObject;
45 private UiObject findRoot(String label) throws UiObjectNotFoundException {
51 if (!new UiObject(rootsList).waitForExists(mTimeout)) {
56 new UiObject(hamburger).click();
60 new UiObject(rootsList.childSelector(new UiSelector())).waitForExists(mTimeout);
64 return new UiObject(rootsList.childSelector(new UiSelector().text(label)));
H A DBaseBot.java25 import android.support.test.uiautomator.UiObject;
59 protected UiObject findObject(String resourceId) {
64 protected UiObject findObject(String parentResourceId, String childResourceId) {
H A DDirectoryListBot.java28 import android.support.test.uiautomator.UiObject;
57 UiObject docsList = findDocumentsList();
88 UiObject docsList = findDocumentsList();
96 UiObject messageTextView = findMessageTextView();
104 private UiObject findMessageTextView() {
117 UiObject doc = findDocument(label);
126 public UiObject selectDocument(String label) throws UiObjectNotFoundException {
127 UiObject doc = findDocument(label);
149 public UiObject findDocument(String label) throws UiObjectNotFoundException {
155 new UiObject(docLis
[all...]
/frameworks/base/packages/Shell/tests/src/com/android/shell/
H A DUiBot.java21 import android.support.test.uiautomator.UiObject;
51 public UiObject getNotification(String text) {
66 UiObject notification = getNotification(text);
75 public UiObject getObject(String text) {
86 public UiObject getObjectById(String id) {
97 public UiObject getVisibleObject(String text) {
98 UiObject uiObject = mDevice.findObject(new UiSelector().text(text));
108 public UiObject getVisibleObjectById(String id) {
109 UiObject uiObject = mDevice.findObject(new UiSelector().resourceId(id));
121 public void click(UiObject uiObjec
[all...]
H A DBugreportReceiverTest.java71 import android.support.test.uiautomator.UiObject;
237 UiObject cancelButton = mUiBot.getVisibleObject(mContext.getString(
517 UiObject dontShowAgain =
533 UiObject ok = mUiBot.getVisibleObject(mContext.getString(com.android.internal.R.string.ok));
591 private UiObject openProgressNotification(int id) {
894 private UiObject getScreenshotButton() {
904 UiObject screenshotButton = getScreenshotButton();
908 private UiObject waitForScreenshotButtonEnabled(boolean expectedEnabled) throws Exception {
909 UiObject screenshotButton = getScreenshotButton();
927 UiObject screenshotButto
[all...]
/frameworks/base/packages/DocumentsUI/tests/src/com/android/documentsui/
H A DFilesActivityUiTest.java30 import android.support.test.uiautomator.UiObject;
212 UiObject doc = bots.directory.findDocument("Unsuccessful");

Completed in 129 milliseconds