Home
last modified time | relevance | path

Searched refs:uiObject (Results 1 – 9 of 9) sorted by relevance

/platform_testing/libraries/tapl-common/src/android/platform/test/scenario/tapl_common/
DGestures.kt44 internal fun waitForObjectEnabled(uiObject: UiObject2, objectName: String) { in waitForObjectEnabled()
45 waitForObjectCondition(objectName, "enabled") { uiObject.isEnabled() } in waitForObjectEnabled()
48 private fun waitForObjectClickable(uiObject: UiObject2, waitReason: String) { in waitForObjectClickable()
49 waitForObjectCondition(waitReason, "clickable") { uiObject.isClickable() } in waitForObjectClickable()
52 private fun waitForObjectLongClickable(uiObject: UiObject2, waitReason: String) { in waitForObjectLongClickable()
53 waitForObjectCondition(waitReason, "long-clickable") { uiObject.isLongClickable() } in waitForObjectLongClickable()
56 internal fun waitForObjectScrollable(uiObject: UiObject2, waitReason: String) { in waitForObjectScrollable()
57 waitForObjectCondition(waitReason, "scrollable") { uiObject.isScrollable() } in waitForObjectScrollable()
67 fun click(uiObject: UiObject2, objectName: String) { in click()
69 waitForObjectEnabled(uiObject, objectName) in click()
[all …]
DTaplUiObject.kt32 class TaplUiObject constructor(val uiObject: UiObject2, private val name: String) { constant in android.platform.test.scenario.tapl_common.TaplUiObject
54 val ret: Rect = uiObject.visibleBounds in getVisibleBoundsForGestures()
64 Gestures.click(uiObject, name) in click()
75 val selector = By.res(uiObject.applicationPackage, childResourceId) in waitForChildObject()
76 val childObject = uiObject.waitForObj(selector) in waitForChildObject()
89 Gestures.waitForObjectEnabled(uiObject, name) in scroll()
90 Gestures.waitForObjectScrollable(uiObject, name) in scroll()
134 Gestures.waitForObjectEnabled(uiObject, name) in fling()
135 Gestures.waitForObjectScrollable(uiObject, name) in fling()
DTaplUiDevice.kt32 val uiObject = waitForObj(selector) in waitForObject() constant
33 return TaplUiObject(uiObject, objectName) in waitForObject()
/platform_testing/libraries/app-helpers/spectatio/spectatio-util/src/android/platform/spectatio/utils/
DSpectatioUiUtil.java158 public boolean longPress(UiObject2 uiObject) { in longPress() argument
159 if (!isValidUiObject(uiObject)) { in longPress()
166 if (!uiObject.isLongClickable()) { in longPress()
173 uiObject.longClick(); in longPress()
240 public void clickAndWait(UiObject2 uiObject) { in clickAndWait() argument
241 validateUiObjectAndThrowIllegalArgumentException(uiObject, /* action= */ "Click"); in clickAndWait()
242 uiObject.click(); in clickAndWait()
302 UiObject2 uiObject = mDevice.wait(Until.findObject(selector), LONG_UI_RESPONSE_WAIT_MS); in findUiObject() local
303 return uiObject; in findUiObject()
330 public UiObject2 findUiObjectInGivenElement(UiObject2 uiObject, BySelector selector) { in findUiObjectInGivenElement() argument
[all …]
/platform_testing/libraries/app-helpers/spectatio/spectatio-util/src/android/platform/spectatio/configs/
DWorkflowTask.java272 UiObject2 uiObject = spectatioUiUtil.findUiObject(selector); in validateAndClickUiElement() local
273 if (howToFind == FindType.SCROLL && !isValidUiObject(uiObject)) { in validateAndClickUiElement()
288 uiObject = in validateAndClickUiElement()
305 uiObject = in validateAndClickUiElement()
326 if (howToFind == FindType.SWIPE && !isValidUiObject(uiObject)) { in validateAndClickUiElement()
340 uiObject = in validateAndClickUiElement()
347 if (isOptional && !isValidUiObject(uiObject)) { in validateAndClickUiElement()
350 validateUiObject(uiObject, workflowName); in validateAndClickUiElement()
352 spectatioUiUtil.longPress(uiObject); in validateAndClickUiElement()
354 spectatioUiUtil.clickAndWait(uiObject); in validateAndClickUiElement()
[all …]
/platform_testing/libraries/uinput-device-test-helper/src/android/platform/helpers/uinput/
DUInputStylus.kt133 val uiObject: UiObject2 = waitForObj(selector) in tapOnObject() constant
134 var xCoordinate: Int = uiObject.visibleBounds.centerX() * SCALING_FACTOR in tapOnObject()
135 var yCoordinate: Int = uiObject.visibleBounds.centerY() * SCALING_FACTOR in tapOnObject()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/media/
DMediaController.java62 MediaController(MediaInstrumentation media, UiObject2 uiObject) { in MediaController() argument
64 mUiObject = uiObject; in MediaController()
/platform_testing/libraries/automotive-helpers/home-helper/src/android/platform/helpers/
DHomeHelperImpl.java223 for (UiObject2 uiObject : temperature) { in hasTemperatureWidget()
224 String tempText = getSpectatioUiUtil().getTextForUiElement(uiObject); in hasTemperatureWidget()
/platform_testing/libraries/automotive-helpers/dial-app-helper/src/android/platform/helpers/
DDialHelperImpl.java572 UiObject2 uiObject = getSpectatioUiUtil().findUiObject(contact); in isContactInFavorites() local
573 return uiObject != null; in isContactInFavorites()