Home
last modified time | relevance | path

Searched refs:UiObject (Results 1 – 21 of 21) sorted by relevance

/aosp12/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
H A DUiCollection.java26 public class UiCollection extends UiObject {
53 public UiObject getChildByDescription(UiSelector childPattern, String text) in getChildByDescription()
59 UiObject row = getChildByInstance(childPattern, x); in getChildByDescription()
64 UiObject item = row.getChild(new UiSelector().descriptionContains(text)); in getChildByDescription()
87 public UiObject getChildByInstance(UiSelector childPattern, int instance) in getChildByInstance()
92 return new UiObject(patternSelector); in getChildByInstance()
111 public UiObject getChildByText(UiSelector childPattern, String text) in getChildByText()
117 UiObject row = getChildByInstance(childPattern, x); in getChildByText()
122 UiObject item = row.getChild(new UiSelector().text(text)); in getChildByText()
H A DUiScrollable.java118 public UiObject getChildByDescription(UiSelector childPattern, String text) in getChildByDescription()
140 public UiObject getChildByDescription(UiSelector childPattern, String text, in getChildByDescription()
164 public UiObject getChildByInstance(UiSelector childPattern, int instance) in getChildByInstance()
169 return new UiObject(patternSelector); in getChildByInstance()
189 public UiObject getChildByText(UiSelector childPattern, String text) in getChildByText()
210 public UiObject getChildByText(UiSelector childPattern, String text, boolean allowScrollSearch) in getChildByText()
244 public boolean scrollIntoView(UiObject obj) throws UiObjectNotFoundException { in scrollIntoView()
295 public boolean ensureFullyVisible(UiObject childObject) throws UiObjectNotFoundException { in ensureFullyVisible()
H A DUiObject.java38 public class UiObject { class
39 private static final String LOG_TAG = UiObject.class.getSimpleName();
80 public UiObject(UiSelector selector) { in UiObject() method in UiObject
123 public UiObject getChild(UiSelector selector) throws UiObjectNotFoundException { in getChild()
125 return new UiObject(getSelector().childSelector(selector)); in getChild()
137 public UiObject getFromParent(UiSelector selector) throws UiObjectNotFoundException { in getFromParent()
139 return new UiObject(getSelector().fromParent(selector)); in getFromParent()
198 public boolean dragTo(UiObject destObj, int steps) throws UiObjectNotFoundException { in dragTo()
635 UiObject selectAll = new UiObject(new UiSelector().descriptionContains("Select all")); in clearTextField()
/aosp12/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
H A DSearchBot.java35 import android.support.test.uiautomator.UiObject;
71 UiObject searchView = findSearchView(); in clickIcon()
76 UiObject clear = findSearchViewClearButton(); in clickSearchViewClearButton()
82 UiObject history = findSearchHistoryView(); in clickSearchHistory()
117 UiObject textField = findSearchViewTextField(); in assertInputEquals()
125 UiObject textField = findSearchViewTextField(); in assertInputFocused()
136 private UiObject findSearchView() { in findSearchView()
140 private UiObject findSearchHistoryView() { in findSearchHistoryView()
144 private UiObject findSearchViewTextField() { in findSearchViewTextField()
149 private UiObject findSearchViewClearButton() { in findSearchViewClearButton()
[all …]
H A DDirectoryListBot.java34 import android.support.test.uiautomator.UiObject;
81 UiObject docsList = findDocumentsList(); in assertDocumentsCount()
112 UiObject docsList = findDocumentsList(); in assertDocumentsCountOnList()
135 UiObject button = findHeaderMessageButton(); in assertHasMessageButtonText()
141 UiObject button = findHeaderMessageButton(); in clickMessageButton()
158 private UiObject findHeaderMessageTextView() { in findHeaderMessageTextView()
164 private UiObject findHeaderMessageButton() { in findHeaderMessageButton()
187 UiObject doc = findDocument(label, true); in openDocument()
251 UiObject snackbarAction = in clickSnackbarAction()
314 UiObject doc = new UiObject(docList.childSelector(new UiSelector())); in assertFirstDocumentHasFocus()
[all …]
H A DUiBot.java40 import android.support.test.uiautomator.UiObject;
109 UiObject searchHint = mDevice.findObject(selector); in assertSearchBarShow()
128 UiObject obj = findMenuMoreOptions(); in openOverflowMenu()
239 public UiObject findDownloadRetryDialog() { in findDownloadRetryDialog()
241 UiObject title = mDevice.findObject(selector); in findDownloadRetryDialog()
246 public UiObject findFileRenameDialog() { in findFileRenameDialog()
248 UiObject title = mDevice.findObject(selector); in findFileRenameDialog()
253 public UiObject findRenameErrorMessage() { in findRenameErrorMessage()
255 UiObject title = mDevice.findObject(selector); in findRenameErrorMessage()
279 public UiObject findMenuLabelWithName(String label) { in findMenuLabelWithName()
[all …]
H A DSidebarBot.java26 import android.support.test.uiautomator.UiObject;
55 private UiObject findRoot(String label) throws UiObjectNotFoundException { in findRoot()
64 new UiObject(rootsList.childSelector(new UiSelector())).waitForExists(mTimeout); in findRoot()
68 return new UiObject(rootsList.childSelector(new UiSelector().text(label))); in findRoot()
83 if (!new UiObject(rootsList).waitForExists(mTimeout)) { in openDrawer()
88 new UiObject(hamburger).click(); in openDrawer()
H A DBots.java26 import android.support.test.uiautomator.UiObject;
99 protected UiObject findObject(String resourceId) { in findObject()
104 protected UiObject findObject(String parentResourceId, String childResourceId) { in findObject()
H A DGestureBot.java26 import android.support.test.uiautomator.UiObject;
104 public UiObject findDocument(String label) throws UiObjectNotFoundException { in findDocument()
110 new UiObject(docList.childSelector(new UiSelector())).waitForExists(mTimeout); in findDocument()
/aosp12/frameworks/base/packages/Shell/tests/src/com/android/shell/
H A DUiBot.java24 import android.support.test.uiautomator.UiObject;
65 public UiObject getNotification(String text) { in getNotification()
124 UiObject notification = getNotification(text); in clickOnNotification()
133 public UiObject getObject(String text) { in getObject()
144 public UiObject getObjectById(String id) { in getObjectById()
155 public UiObject getVisibleObject(String text) { in getVisibleObject()
156 UiObject uiObject = mDevice.findObject(new UiSelector().text(text)); in getVisibleObject()
166 public UiObject getVisibleObjectById(String id) { in getVisibleObjectById()
167 UiObject uiObject = mDevice.findObject(new UiSelector().resourceId(id)); in getVisibleObjectById()
189 public void click(UiObject uiObject, String description) { in click()
[all …]
H A DBugreportReceiverTest.java63 import android.support.test.uiautomator.UiObject;
487 UiObject dontShowAgain = in bugreportFinishedWithWarningTest()
893 private UiObject getScreenshotButton() { in getScreenshotButton()
903 UiObject screenshotButton = getScreenshotButton(); in takeScreenshot()
908 UiObject screenshotButton = getScreenshotButton(); in waitForScreenshotButtonEnabled()
926 UiObject screenshotButton = getScreenshotButton(); in assertScreenshotButtonEnabled()
980 final UiObject nameField;
981 final UiObject titleField;
982 final UiObject descField;
983 final UiObject okButton;
[all …]
/aosp12/packages/apps/Settings/tests/uitests/src/com/android/settings/ui/
H A DZonePickerSettingsTest.java31 import android.support.test.uiautomator.UiObject;
170 private UiObject selectItemInList(UiSelector childSelector) throws UiObjectNotFoundException { in selectItemInList()
180 private UiObject selectScrollableItem(UiScrollable scrollable, UiSelector childSelector) in selectScrollableItem()
187 UiObject child = mDevice.findObject(childSelector); in selectScrollableItem()
209 private static void assertUiObjectFound(UiObject obj, UiSelector selector) in assertUiObjectFound()
/aosp12/frameworks/base/cmds/uiautomator/api/
H A D16.txt3 public class UiCollection extends com.android.uiautomator.core.UiObject {
5 …method public com.android.uiautomator.core.UiObject getChildByDescription(com.android.uiautomator.…
6 …method public com.android.uiautomator.core.UiObject getChildByInstance(com.android.uiautomator.cor…
7 …method public com.android.uiautomator.core.UiObject getChildByText(com.android.uiautomator.core.Ui…
53 public class UiObject {
54 ctor public UiObject(com.android.uiautomator.core.UiSelector);
64 …method public com.android.uiautomator.core.UiObject getChild(com.android.uiautomator.core.UiSelect…
67 …method public com.android.uiautomator.core.UiObject getFromParent(com.android.uiautomator.core.UiS…
109 …method public com.android.uiautomator.core.UiObject getChildByDescription(com.android.uiautomator.…
110 …method public com.android.uiautomator.core.UiObject getChildByText(com.android.uiautomator.core.Ui…
H A D17.txt3 public class UiCollection extends com.android.uiautomator.core.UiObject {
5 …method public com.android.uiautomator.core.UiObject getChildByDescription(com.android.uiautomator.…
6 …method public com.android.uiautomator.core.UiObject getChildByInstance(com.android.uiautomator.cor…
7 …method public com.android.uiautomator.core.UiObject getChildByText(com.android.uiautomator.core.Ui…
61 public class UiObject {
62 ctor public UiObject(com.android.uiautomator.core.UiSelector);
72 …method public com.android.uiautomator.core.UiObject getChild(com.android.uiautomator.core.UiSelect…
75 …method public com.android.uiautomator.core.UiObject getFromParent(com.android.uiautomator.core.UiS…
119 …method public com.android.uiautomator.core.UiObject getChildByDescription(com.android.uiautomator.…
120 …method public com.android.uiautomator.core.UiObject getChildByText(com.android.uiautomator.core.Ui…
[all …]
H A Dcurrent.txt18 @Deprecated public class UiCollection extends com.android.uiautomator.core.UiObject {
20 …method @Deprecated public com.android.uiautomator.core.UiObject getChildByDescription(com.android.…
21 …method @Deprecated public com.android.uiautomator.core.UiObject getChildByInstance(com.android.uia…
22 …method @Deprecated public com.android.uiautomator.core.UiObject getChildByText(com.android.uiautom…
81 @Deprecated public class UiObject {
82 ctor @Deprecated public UiObject(com.android.uiautomator.core.UiSelector);
89 …method @Deprecated public boolean dragTo(com.android.uiautomator.core.UiObject, int) throws com.an…
94 …method @Deprecated public com.android.uiautomator.core.UiObject getChild(com.android.uiautomator.c…
98 …method @Deprecated public com.android.uiautomator.core.UiObject getFromParent(com.android.uiautoma…
148 …method @Deprecated public com.android.uiautomator.core.UiObject getChildByText(com.android.uiautom…
[all …]
/aosp12/packages/apps/DocumentsUI/tests/functional/com/android/documentsui/
H A DIntegratedDownloadsUiTest.java24 import android.support.test.uiautomator.UiObject;
62 UiObject doc = bots.directory.findDocument("Unsuccessful"); in testDownload_RetryUnsuccessful()
/aosp12/packages/apps/Settings/tests/legacy_unit/src/com/android/settings/accounts/
H A DAccountsSettingsTest.java25 import android.support.test.uiautomator.UiObject;
70 final UiObject testPreference = mDevice.findObject(new UiSelector().text(PREF_TITLE)); in testExternalAccountInfoExists()
/aosp12/packages/modules/CaptivePortalLogin/tests/src/com/android/captiveportallogin/
H A DDownloadServiceTest.kt35 import androidx.test.uiautomator.UiObject
356 private fun findNotification(selector: UiSelector): UiObject {
/aosp12/frameworks/base/packages/PrintSpooler/tests/outofprocess/src/com/android/printspooler/outofprocess/tests/
H A DWorkflowTest.java40 import android.support.test.uiautomator.UiObject;
137 UiObject view = getUiDevice().findObject(selector); in clickOn()
/aosp12/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
H A DNetworkNotificationManagerTest.java69 import androidx.test.uiautomator.UiObject;
408 final UiObject actionText = UiDevice.getInstance(instr).findObject( in testNotifyNoInternetAsDialogWhenHighPriority()
/aosp12/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
H A DVpnTest.java68 import android.support.test.uiautomator.UiObject;
210 final UiObject okButton = new UiObject(new UiSelector() in prepareVpn()