Home
last modified time | relevance | path

Searched refs:selector (Results 1 – 25 of 26) sorted by relevance

12

/platform_testing/libraries/systemui-helper/src/android/platform/helpers/ui/
DUiSearch.java56 public static boolean search(UiScrollable scroller, UiSelector selector, String name, in search() argument
60 format("Looking for %s[%s] in the List[%s] within %s seconds", name, selector, in search()
64 format("Looking for %s[%s] within %s seconds", name, selector, in search()
71 if (selector == null) { in search()
72 Log.w(TAG, format("Selector[%s] is null", selector)); in search()
76 if (search(selector, SHORT_WAIT_IN_SECONDS)) { in search()
82 selector, maxTimeoutInSeconds)); in search()
83 return search(selector, maxTimeoutInSeconds); in search()
94 if (scroller.scrollIntoView(selector)) { in search()
114 public static boolean search(UiScrollable scroller, BySelector selector, String name, in search() argument
[all …]
DUiSearch2.java60 public static boolean search(UiScrollable scroller, UiSelector selector, String name, in search() argument
64 format("Looking for %s[%s] in the List[%s] within %s seconds", name, selector, in search()
68 format("Looking for %s[%s] within %s seconds", name, selector, in search()
75 if (selector == null) { in search()
76 Log.w(TAG, format("Selector[%s] is null", selector)); in search()
80 if (search(selector, SHORT_WAIT_IN_SECONDS)) { in search()
86 selector, maxTimeoutInSeconds)); in search()
87 return search(selector, maxTimeoutInSeconds); in search()
98 if (scroller.scrollIntoView(selector)) { in search()
118 public static boolean search(UiScrollable scroller, BySelector selector, String name, in search() argument
[all …]
/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/
DDeviceHelpers.kt66 selector: BySelector, in waitForObj()
68 errorProvider: () -> String = { "Object $selector not found" }, in waitForObj()
69 ): UiObject2 = DeviceHelpers.waitForObj(selector, timeout, errorProvider)
79 selector: BySelector, in waitForObj()
81 errorProvider: () -> String = { "Object $selector not found" }, in waitForObj()
83 waitFor("$selector object", timeout, errorProvider) { uiDevice.findObject(selector) } in <lambda>()
91 selector: BySelector, in waitForObj()
93 errorProvider: () -> String = { "Object $selector not found" }, in waitForObj()
94 ): UiObject2 = waitFor("$selector object", timeout, errorProvider) { findObject(selector) } in <lambda>()
104 selector: BySelector, in waitForNullableObj()
[all …]
DUiObjectUtils.kt137 selector: BySelector, in scrollUntilFound()
143 val f = findObject(selector) in _()
/platform_testing/libraries/automotive-helpers/notifications-app-helper/src/android/platform/helpers/
DAutoNotificationHelperImpl.java165 BySelector selector = By.text(title); in checkNotificationExists() local
166 UiObject2 postedNotification = findInNotificationList(selector); in checkNotificationExists()
184 private boolean checkIfClearAllButtonExist(BySelector selector) { in checkIfClearAllButtonExist() argument
186 UiObject2 clr_btn = findInNotificationList(selector); in checkIfClearAllButtonExist()
190 private boolean checkIfManageButtonExist(BySelector selector) { in checkIfManageButtonExist() argument
192 UiObject2 manage_btn = findInNotificationList(selector); in checkIfManageButtonExist()
258 private UiObject2 findInNotificationList(BySelector selector) { in findInNotificationList() argument
262 object = getSpectatioUiUtil().findUiObject(selector); in findInNotificationList()
272 selector, in findInNotificationList()
273 String.format("Scroll on notification list to find %s", selector)); in findInNotificationList()
DAutoNotificationMockingHelperImpl.java168 for (BySelector selector : NOTIFICATION_REQUIRED_FIELDS) { in checkNotificationRequiredFieldsExist()
169 UiObject2 obj = getSpectatioUiUtil().findUiObject(selector); in checkNotificationRequiredFieldsExist()
174 selector.toString())); in checkNotificationRequiredFieldsExist()
185 BySelector selector = By.text(title); in checkNotificationExists() local
193 selector, in checkNotificationExists()
194 String.format("Scroll on notification list to find %s", selector)); in checkNotificationExists()
/platform_testing/libraries/tapl-common/src/android/platform/test/scenario/tapl_common/
DTaplUiDevice.kt31 fun waitForObject(selector: BySelector, objectName: String): TaplUiObject { in waitForObject()
32 val uiObject = waitForObj(selector) in waitForObject()
DTaplUiObject.kt75 val selector = By.res(uiObject.applicationPackage, childResourceId) in waitForChildObject() constant
76 val childObject = uiObject.waitForObj(selector) in waitForChildObject()
/platform_testing/libraries/automotive-helpers/settings-app-helper/src/android/platform/helpers/
DSettingsDateTimeHelperImpl.java139 UiSelector selector = in setCalendar() local
148 selector.childSelector( in setCalendar()
264 UiSelector selector = in setTime() local
274 selector.childSelector( in setTime()
317 UiSelector selector = in scrollToObjectInPicker() local
323 UiScrollable scrollable = new UiScrollable(selector); in scrollToObjectInPicker()
337 selector.childSelector( in scrollToObjectInPicker()
364 selector.childSelector( in scrollToObjectInPicker()
433 BySelector selector = By.clickable(true).hasDescendant(By.text(timezone)); in setTimeZone() local
457 selector, in setTimeZone()
[all …]
DSettingHelperImpl.java275 for (BySelector selector : selectors) { in getPageTitle()
276 List<UiObject2> pageTitles = getSpectatioUiUtil().findUiObjects(selector); in getPageTitle()
307 BySelector selector = By.text(menuPattern); in openMenuWith() local
337 selector, in openMenuWith()
338 String.format("Scroll on setting to find subssetting %s", selector)); in openMenuWith()
343 String.format("Unable to find UI Element %s.", selector.toString())); in openMenuWith()
DSettingsSystemHelperImpl.java247 BySelector selector = in resetAppPreferences() local
252 UiObject2 object = getMenu(selector); in resetAppPreferences()
379 private UiObject2 getMenu(BySelector selector) { in getMenu() argument
387 selector, in getMenu()
388 String.format("Scroll on system setting to find %s", selector)); in getMenu()
393 String.format("Unable to find UI Element %s.", selector.toString())); in getMenu()
DSettingsAppInfoHelperImpl.java115 BySelector selector = in showAllApps() local
127 selector, in showAllApps()
/platform_testing/libraries/app-helpers/spectatio/spectatio-util/src/android/platform/spectatio/configs/
DUiElement.java144 BySelector selector = null; in getBySelectorForUiElement() local
146 if (selector == null) { in getBySelectorForUiElement()
147 selector = specifier.getBySelectorForUiElement(); in getBySelectorForUiElement()
149 specifier.extendBySelectorForUiElement(selector); in getBySelectorForUiElement()
152 return selector; in getBySelectorForUiElement()
DWorkflowTask.java233 BySelector selector = uiElement.getBySelectorForUiElement(); in validateAndVerifyUiElement() local
234 if (!spectatioUiUtil.hasUiElement(selector)) { in validateAndVerifyUiElement()
236 "UI Element", selector.toString(), workflowName, "Not in Foreground"); in validateAndVerifyUiElement()
271 BySelector selector = uiElement.getBySelectorForUiElement(); in validateAndClickUiElement() local
272 UiObject2 uiObject = spectatioUiUtil.findUiObject(selector); in validateAndClickUiElement()
290 forwardButtonSelector, backwardButtonSelector, selector); in validateAndClickUiElement()
308 selector, in validateAndClickUiElement()
345 selector); in validateAndClickUiElement()
/platform_testing/libraries/app-helpers/interfaces/tv/src/android/platform/helpers/
DAbstractLeanbackAppHelper.java252 public UiObject2 select(UiObject2 container, final BySelector selector, Direction direction) { in select() argument
256 return focus.hasObject(selector); in select()
270 public UiObject2 selectBidirect(final BySelector selector, UiObject2 container,
275 return focus.hasObject(selector);
318 BySelector selector = By.res(getPackage(), "guidedactions_item_title").text(action);
319 UiObject2 focused = select(container, selector, Direction.DOWN);
323 focused = select(container, selector, Direction.UP);
430 BySelector selector = getMainActivitySelector();
431 if (selector == null) {
434 while (!mDevice.wait(Until.hasObject(selector), MAIN_ACTIVITY_WAIT_TIME_MS)
/platform_testing/tests/jank/androidtvjanktests/src/com/android/androidtv/janktests/
DSystemUiJankTests.java164 public UiObject2 select(BySelector selector, Direction direction, long timeoutMs) { in select() argument
166 while (!mDevice.wait(Until.hasObject(selector), timeoutMs)) { in select()
189 public UiObject2 selectBidirect(BySelector selector, Direction direction) { in selectBidirect() argument
191 UiObject2 object = select(selector, direction, SHORT_TIMEOUT); in selectBidirect()
193 object = select(selector, Direction.reverse(direction), SHORT_TIMEOUT); in selectBidirect()
/platform_testing/libraries/app-helpers/spectatio/spectatio-util/src/android/platform/spectatio/utils/
DSpectatioUiUtil.java300 public UiObject2 findUiObject(BySelector selector) { in findUiObject() argument
301 validateSelector(selector, /* action= */ "Find UI Object"); in findUiObject()
302 UiObject2 uiObject = mDevice.wait(Until.findObject(selector), LONG_UI_RESPONSE_WAIT_MS); in findUiObject()
307 public List<UiObject2> findUiObjects(BySelector selector) { in findUiObjects() argument
308 validateSelector(selector, /* action= */ "Find UI Object"); in findUiObjects()
310 mDevice.wait(Until.findObjects(selector), LONG_UI_RESPONSE_WAIT_MS); in findUiObjects()
330 public UiObject2 findUiObjectInGivenElement(UiObject2 uiObject, BySelector selector) { in findUiObjectInGivenElement() argument
333 validateSelector(selector, /* action= */ "Find UI object in given element"); in findUiObjectInGivenElement()
334 return uiObject.findObject(selector); in findUiObjectInGivenElement()
1070 private void validateSelector(BySelector selector, String action) { in validateSelector() argument
[all …]
/platform_testing/libraries/uinput-device-test-helper/src/android/platform/helpers/uinput/
DUInputStylus.kt132 fun tapOnObject(eventInjector: EventInjector, selector: BySelector) { in tapOnObject()
133 val uiObject: UiObject2 = waitForObj(selector) in tapOnObject()
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DLeanbackLauncherStrategy.java586 protected UiObject2 findNotificationCard(BySelector selector) { in findNotificationCard() argument
590 if ((card = findNotificationCard(selector, Direction.RIGHT)) != null) { in findNotificationCard()
593 if ((card = findNotificationCard(selector, Direction.LEFT)) != null) { in findNotificationCard()
606 protected UiObject2 findNotificationCard(BySelector selector, Direction direction) { in findNotificationCard() argument
628 if (currentFocus.hasObject(selector)) { in findNotificationCard()
723 protected UiObject2 findSettingInRow(BySelector selector, Direction direction) { in findSettingInRow() argument
735 if ((setting = currentFocused.findObject(selector)) != null) { in findSettingInRow()
DTvLauncherStrategy.java839 public UiObject2 select(final BySelector selector, Direction direction, long timeoutMs) {
843 return mDevice.hasObject(selector);
874 public UiObject2 selectBidirect(BySelector selector, Direction direction) {
876 UiObject2 object = select(selector, direction, UI_TRANSITION_WAIT_TIME_MS);
878 object = select(selector, Direction.reverse(direction), UI_TRANSITION_WAIT_TIME_MS);
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper2/
DLeanbackLauncherStrategy.java552 protected UiObject2 findNotificationCard(BySelector selector) { in findNotificationCard() argument
556 if ((card = findNotificationCard(selector, Direction.RIGHT)) != null) { in findNotificationCard()
559 if ((card = findNotificationCard(selector, Direction.LEFT)) != null) { in findNotificationCard()
573 protected UiObject2 findNotificationCard(BySelector selector, Direction direction) { in findNotificationCard() argument
597 if (currentFocus.hasObject(selector)) { in findNotificationCard()
699 protected UiObject2 findSettingInRow(BySelector selector, Direction direction) { in findSettingInRow() argument
711 if ((setting = currentFocused.findObject(selector)) != null) { in findSettingInRow()
DTvLauncherStrategy.java815 public UiObject2 select(final BySelector selector, Direction direction, long timeoutMs) {
820 return mDevice.hasObject(selector);
853 public UiObject2 selectBidirect(BySelector selector, Direction direction) {
855 UiObject2 object = select(selector, direction, UI_TRANSITION_WAIT_TIME_MS);
857 object = select(selector, Direction.reverse(direction), UI_TRANSITION_WAIT_TIME_MS);
/platform_testing/libraries/automotive-helpers/status-bar-helper/src/android/platform/helpers/
DStatusBarHelperImpl.java246 BySelector selector = in isHotspotNameDisplayed() local
248 UiObject2 object = getSpectatioUiUtil().findUiObject(selector); in isHotspotNameDisplayed()
270 BySelector selector = in isWifiNameDisplayed() local
273 UiObject2 object = getSpectatioUiUtil().findUiObject(selector); in isWifiNameDisplayed()
/platform_testing/libraries/automotive-helpers/media-center-app-helper/src/android/platform/helpers/
DMediaCenterHelperImpl.java555 private UiObject2 scrollAndFindApp(BySelector selector) { in scrollAndFindApp() argument
564 selector, in scrollAndFindApp()
565 String.format("Scroll through media app grid to find %s", selector)); in scrollAndFindApp()
567 .validateUiObject(object, String.format("Given media app %s", selector)); in scrollAndFindApp()
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/
DAbstractStandardAppHelper2.java534 public static UiObject2 waitForObject(UiDevice device, BySelector selector) { in waitForObject() argument
535 final UiObject2 object = device.wait(Until.findObject(selector), WAIT_TIME_MS); in waitForObject()
536 if (object == null) throw new UnknownUiException("Can't find object " + selector); in waitForObject()

12