Home
last modified time | relevance | path

Searched refs:UiObject2 (Results 1 – 25 of 124) sorted by relevance

12345

/platform_testing/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/
DINotificationHelper.java25 import androidx.test.uiautomator.UiObject2;
80 default UiObject2 postBigTextNotification(@Nullable String pkg) { in postBigTextNotification()
91 default UiObject2 postBigPictureNotification(String pkg) { in postBigPictureNotification()
102 default UiObject2 postMessagingStyleNotification(String pkg) { in postMessagingStyleNotification()
136 default UiObject2 getNotificationShelf() { in getNotificationShelf()
211 default UiObject2 getNotificationByText(String text) { in getNotificationByText()
220 default List<UiObject2> getExpandableNotificationRows() { in getExpandableNotificationRows()
232 default UiObject2 postConversationNotification(String pkg) { in postConversationNotification()
347 default void expandNotification(UiObject2 notification, boolean dragging) { in expandNotification()
365 default void showGuts(UiObject2 notification) { in showGuts()
[all …]
DIPhotosHelper.java20 import androidx.test.uiautomator.UiObject2;
151 UiObject2 container, Direction direction, float percentOfPhotoSize, int speed); in scrollPhotosGrid()
164 public void scrollPhotosGridBySwiping(UiObject2 container, Direction direction, float percent); in scrollPhotosGridBySwiping()
171 public UiObject2 getPhotoScrollView(); in getPhotoScrollView()
/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/
DUiObjectUtils.kt25 import androidx.test.uiautomator.UiObject2 in <lambda>()
29 fun UiObject2.assertInVerticalCentre() { in <lambda>() method
36 fun UiObject2.assertInHorizontalCentre() { in assertInHorizontalCentre() method
46 fun UiObject2.assertCentreOnBottomSide() { in assertCentreOnBottomSide() method
56 fun UiObject2.assertCentreOnTopSide() { in assertCentreOnTopSide() method
66 fun UiObject2.assertTopOnBottomSide() { in assertTopOnBottomSide() method
76 fun UiObject2.assertTopOnTopSide() { in assertTopOnTopSide() method
83 fun UiObject2.assertCenterOnTheRightSide() { in assertCenterOnTheRightSide() method
90 fun UiObject2.assertCenterOnTheLeftSide() { in assertCenterOnTheLeftSide() method
100 fun UiObject2.assertOnTheRightSide() { in assertOnTheRightSide() method
[all …]
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper2/
DILeanbackLauncherStrategy.java23 import androidx.test.uiautomator.UiObject2;
95 public UiObject2 selectSearchRow(); in selectSearchRow()
102 public UiObject2 selectNotificationRow(); in selectNotificationRow()
109 public UiObject2 selectAppsRow(); in selectAppsRow()
116 public UiObject2 selectGamesRow(); in selectGamesRow()
123 public UiObject2 selectSettingsRow(); in selectSettingsRow()
DLeanbackLauncherStrategy.java32 import androidx.test.uiautomator.UiObject2;
95 public UiObject2 openAllApps(boolean reset) { in openAllApps()
96 UiObject2 appsRow = selectAppsRow(); in openAllApps()
203 UiObject2 orbButton = mDevice.wait(Until.findObject(keyboardOrb), SHORT_WAIT_TIME); in search()
219 UiObject2 editText = mDevice.wait(Until.findObject(searchEditor), SHORT_WAIT_TIME); in search()
239 public UiObject2 selectNotificationRow() { in selectNotificationRow()
251 public UiObject2 selectSearchRow() { in selectSearchRow()
263 public UiObject2 selectAppsRow() { in selectAppsRow()
270 public UiObject2 selectGamesRow() { in selectGamesRow()
276 public UiObject2 selectSettingsRow() { in selectSettingsRow()
[all …]
DTvLauncherStrategy.java35 import androidx.test.uiautomator.UiObject2;
79 boolean apply(UiObject2 focus); in apply()
169 public UiObject2 openAllApps(boolean longpress) { in openAllApps()
329 UiObject2 focus = findFocus(); in getHomeControllerState()
343 UiObject2 focusedChannel = in getFocusedItemIndexInRow()
357 for (UiObject2 program : focusedChannel.getChildren()) { in getFocusedItemIndexInRow()
379 UiObject2 rowList = mDevice.findObject(getRowListSelector()); in isChannelRowSelected()
380 for (UiObject2 row : rowList.getChildren()) { in isChannelRowSelected()
421 public UiObject2 selectSearchRow() { in selectSearchRow()
428 public UiObject2 selectAppsRow() { in selectAppsRow()
[all …]
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DILeanbackLauncherStrategy.java22 import android.support.test.uiautomator.UiObject2;
89 public UiObject2 selectSearchRow(); in selectSearchRow()
95 public UiObject2 selectNotificationRow(); in selectNotificationRow()
101 public UiObject2 selectAppsRow(); in selectAppsRow()
107 public UiObject2 selectGamesRow(); in selectGamesRow()
113 public UiObject2 selectSettingsRow(); in selectSettingsRow()
DLeanbackLauncherStrategy.java30 import android.support.test.uiautomator.UiObject2;
103 public UiObject2 openAllApps(boolean reset) { in openAllApps()
104 UiObject2 appsRow = selectAppsRow(); in openAllApps()
236 UiObject2 orbButton = mDevice.wait(Until.findObject(keyboardOrb), SHORT_WAIT_TIME); in search()
252 UiObject2 editText = mDevice.wait(Until.findObject(searchEditor), SHORT_WAIT_TIME); in search()
272 public UiObject2 selectNotificationRow() { in selectNotificationRow()
285 public UiObject2 selectSearchRow() { in selectSearchRow()
298 public UiObject2 selectAppsRow() { in selectAppsRow()
307 public UiObject2 selectGamesRow() { in selectGamesRow()
315 public UiObject2 selectSettingsRow() { in selectSettingsRow()
[all …]
DTvLauncherStrategy.java32 import android.support.test.uiautomator.UiObject2;
79 boolean apply(UiObject2 focus); in apply()
188 public UiObject2 openAllApps(boolean longpress) { in openAllApps()
358 UiObject2 focus = findFocus(); in getHomeControllerState()
372 UiObject2 focusedChannel = mDevice.wait(Until.findObject( in getFocusedItemIndexInRow()
381 for (UiObject2 program : focusedChannel.getChildren()) { in getFocusedItemIndexInRow()
401 UiObject2 rowList = mDevice.findObject(getRowListSelector()); in isChannelRowSelected()
402 for (UiObject2 row : rowList.getChildren()) { in isChannelRowSelected()
448 public UiObject2 selectSearchRow() { in selectSearchRow()
457 public UiObject2 selectAppsRow() { in selectAppsRow()
[all …]
/platform_testing/libraries/automotive-helpers/dial-app-helper/src/android/platform/helpers/
DDialHelperImpl.java30 import androidx.test.uiautomator.UiObject2;
48 private UiObject2 mHomeAddress;
83 UiObject2 deviceButton = getSpectatioUiUtil().findUiObject(deviceButtonSelector); in pressDeviceOnPrompt()
94 UiObject2 mobileCallButton = getSpectatioUiUtil().findUiObject(mobileCallButtonSelector); in pressMobileCallOnContact()
105 UiObject2 activeCallToggle = getSpectatioUiUtil().findUiObject(toggleSelector); in pressActiveCallToggle()
126 UiObject2 searchResult = getSpectatioUiUtil().findUiObject(searchResultSelector); in pressContactResult()
147 ArrayList<UiObject2> callEntries = in getNumberOfCallHistoryEntries()
148 new ArrayList<UiObject2>(getSpectatioUiUtil().findUiObjects(historyEntrySelector)); in getNumberOfCallHistoryEntries()
167 UiObject2 dialButton = getSpectatioUiUtil().findUiObject(dialButtonSelector); in makeCall()
176 UiObject2 endButton = getSpectatioUiUtil().findUiObject(endButtonSelector); in endCall()
[all …]
/platform_testing/libraries/app-helpers/interfaces/tv/src/android/platform/helpers/
DAbstractLeanbackAppHelper.java29 import android.support.test.uiautomator.UiObject2;
67 public abstract boolean apply(UiObject2 focus); in apply()
227 public UiObject2 select(SelectCondition condition, UiObject2 container, Direction direction) { in select()
228 UiObject2 focus = findFocus(container, FOCUS_WAIT_TIME_MS); in select()
232 UiObject2 focused = focus; in select()
252 public UiObject2 select(UiObject2 container, final BySelector selector, Direction direction) { in select()
255 public boolean apply(UiObject2 focus) { in select()
261 public UiObject2 selectBidirect(SelectCondition condition, UiObject2 container,
263 UiObject2 object = select(condition, container, direction);
270 public UiObject2 selectBidirect(final BySelector selector, UiObject2 container,
[all …]
/platform_testing/libraries/automotive-helpers/notifications-app-helper/src/android/platform/helpers/
DAutoNotificationHelperImpl.java25 import androidx.test.uiautomator.UiObject2;
121 UiObject2 empty_notification = in tapClearAllBtn()
130 UiObject2 clear_all_btn = getSpectatioUiUtil().findUiObject(clearButtonSelector); in tapClearAllBtn()
144 UiObject2 empty_notification = in clickManageBtn()
153 UiObject2 manage_btn = getSpectatioUiUtil().findUiObject(manageButtonSelector); in clickManageBtn()
166 UiObject2 postedNotification = findInNotificationList(selector); in checkNotificationExists()
175 UiObject2 postedNotification = getSpectatioUiUtil().findUiObject(By.text(title)); in removeNotification()
186 UiObject2 clr_btn = findInNotificationList(selector); in checkIfClearAllButtonExist()
192 UiObject2 manage_btn = findInNotificationList(selector); in checkIfManageButtonExist()
201 List<UiObject2> notificationLayoutList = in isNotificationSettingsOpened()
[all …]
/platform_testing/libraries/automotive-helpers/settings-app-helper/src/android/platform/helpers/
DSettingsSystemHelperImpl.java27 import androidx.test.uiautomator.UiObject2;
94 UiObject2 languageObject = getMenu(languageSelector); in setDisplayLanguage()
110 UiObject2 object = in getCurrentLanguage()
125 UiObject2 object = getMenu(getUiElementFromConfig(AutomotiveConfigConstants.DEVICE_MODEL)); in getDeviceModel()
137 UiObject2 object = in getAndroidVersion()
150 UiObject2 object = in getAndroidSecurityPatchLevel()
195 UiObject2 object = in getKernelVersion()
208 UiObject2 object = getMenu(getUiElementFromConfig(AutomotiveConfigConstants.BUILD_NUMBER)); in getBuildNumber()
224 UiObject2 resetNetworkMenu = getMenu(resetNetworkSelector); in resetNetwork()
231 UiObject2 resetSettingsButton1 = getMenu(resetSettingsSelector); in resetNetwork()
[all …]
DSettingsSecurityHelperImpl.java25 import androidx.test.uiautomator.UiObject2;
85 UiObject2 password_menu = getSpectatioUiUtil().findUiObject(password_menuSelector); in setLockByPassword()
98 List<UiObject2> titles = getSpectatioUiUtil().findUiObjects(titlesSelector); in openChooseLockTypeMenu()
101 UiObject2 title = titles.get(titles.size() - 1); in openChooseLockTypeMenu()
108 UiObject2 profileLockMenu = getSpectatioUiUtil().findUiObject(profileLockMenuSelector); in openChooseLockTypeMenu()
119 UiObject2 textEditor = getSpectatioUiUtil().findUiObject(textEditorSelector); in typePasswordOnTextEditor()
132 UiObject2 pin_menu = getSpectatioUiUtil().findUiObject(pin_menuSelector); in setLockByPin()
141 UiObject2 continue_button = getSpectatioUiUtil().findUiObject(continue_buttonSelector); in setLockByPin()
151 UiObject2 confirm_button = getSpectatioUiUtil().findUiObject(confirm_buttonSelector); in setLockByPin()
163 UiObject2 number = in selectPinOnPinPad()
[all …]
DSettingsDateTimeHelperImpl.java30 import androidx.test.uiautomator.UiObject2;
104 UiObject2 autoDateTimeSwitchWidget = getAutoDateTimeSwitchWidget(); in setDate()
105 UiObject2 autoDateTimeMenu = in setDate()
114 UiObject2 setDateMenu = getSetDateMenu(); in setDate()
168 UiObject2 obj = getSetDateMenu(); in getDate()
190 UiObject2 autoDateTimeSwitchWidget = getAutoDateTimeSwitchWidget(); in setTimeInTwelveHourFormat()
191 UiObject2 autoDateTimeMenu = in setTimeInTwelveHourFormat()
205 UiObject2 setTimeMenu = getSetTimeMenu(); in setTimeInTwelveHourFormat()
230 UiObject2 autoDateTimeSwitchWidget = getAutoDateTimeSwitchWidget(); in setTimeInTwentyFourHourFormat()
231 UiObject2 autoDateTimeMenu = in setTimeInTwentyFourHourFormat()
[all …]
DSettingsBluetoothHelperImpl.java25 import androidx.test.uiautomator.UiObject2;
82 UiObject2 toggleButton = getSpectatioUiUtil().findUiObject(toggleSelector); in buttonChecked()
96 UiObject2 toggleButton = getSpectatioUiUtil().findUiObject(toggleSelector); in buttonEnabled()
112 UiObject2 toggleButton = getSpectatioUiUtil().findUiObject(toggleSelector); in pressBluetoothToggleOnDevice()
128 UiObject2 toggleButton = getSpectatioUiUtil().findUiObject(toggleSelector); in pressMediaToggleOnDevice()
145 UiObject2 toggleButton = getSpectatioUiUtil().findUiObject(toggleSelector); in pressPhoneToggleOnDevice()
157 UiObject2 clickableDevice = getSpectatioUiUtil().findUiObject(clickable); in pressDevice()
169 UiObject2 statusField = getSpectatioUiUtil().findUiObject(statusSelector); in getDeviceSummary()
187 UiObject2 forgetButton = getSpectatioUiUtil().findUiObject(forgetSelector); in pressForget()
198 UiObject2 connectionButton = getSpectatioUiUtil().findUiObject(connectionSelector); in pressConnectionToggle()
[all …]
DSettingsAppInfoHelperImpl.java31 import androidx.test.uiautomator.UiObject2;
120 UiObject2 show_all_apps_menu = in showAllApps()
141 UiObject2 permissionsManager = in openPermissionManager()
162 private UiObject2 getPermissionSummary(String permissionName) { in getPermissionSummary()
171 UiObject2 permissionSummary = in getPermissionSummary()
192 UiObject2 enableDisableBtn = in enableDisableApplication()
217 UiObject2 disableAppBtn = getSpectatioUiUtil().findUiObject(disableAppBtnSelector); in enableDisableApplication()
235 UiObject2 forceStopButton = getForceStopButton(); in isCurrentApplicationRunning()
245 UiObject2 forceStopButton = getForceStopButton(); in forceStop()
250 UiObject2 okBtn = getSpectatioUiUtil().findUiObject(okBtnSelector); in forceStop()
[all …]
DSettingsPrivacyHelperImpl.java22 import androidx.test.uiautomator.UiObject2;
59 UiObject2 microPhoneSwitch = in turnOnOffMicroPhone()
73 UiObject2 enableOption = getSpectatioUiUtil().findUiObject(enableOptionSelector); in isMicroPhoneOn()
105 UiObject2 microPhoneChip = getSpectatioUiUtil().findUiObject(microPhoneChipSelector); in clickMicroPhoneStatusBar()
124 UiObject2 microPhoneChip = getSpectatioUiUtil().findUiObject(microPhoneChipSelector); in clickUnMutedMicroPhoneStatusBar()
143 UiObject2 microPhoneSettingsLink = in clickMicroPhoneSettingsLink()
162 UiObject2 microPhoneSwitch = getSpectatioUiUtil().findUiObject(microPhoneSwitchSelector); in clickMicroPhoneToggleStatusBar()
185 UiObject2 manageMicroPhoneButton = in clickManageMicroPhonePermissions()
237 UiObject2 recentApp = getSpectatioUiUtil().findUiObject(recentAppSelector); in isRecentAppDisplayedWithStamp()
241 UiObject2 recentAppsTime = recentApp.getParent(); in isRecentAppDisplayedWithStamp()
[all …]
/platform_testing/libraries/tapl-common/src/android/platform/test/scenario/tapl_common/
DGestures.kt21 import androidx.test.uiautomator.UiObject2
44 internal fun waitForObjectEnabled(uiObject: UiObject2, objectName: String) { in waitForObjectEnabled()
48 private fun waitForObjectClickable(uiObject: UiObject2, waitReason: String) { in waitForObjectClickable()
52 private fun waitForObjectLongClickable(uiObject: UiObject2, waitReason: String) { in waitForObjectLongClickable()
56 internal fun waitForObjectScrollable(uiObject: UiObject2, waitReason: String) { in waitForObjectScrollable()
67 fun click(uiObject: UiObject2, objectName: String) { in click()
97 fun longClickDown(uiObject: UiObject2, objectName: String): LongClick { in longClickDown()
118 private fun clickNow(uiObject: UiObject2) { in clickNow()
/platform_testing/libraries/automotive-helpers/status-bar-helper/src/android/platform/helpers/
DStatusBarHelperImpl.java23 import androidx.test.uiautomator.UiObject2;
64 UiObject2 bluetoothButtonLink = getSpectatioUiUtil().findUiObject(bluetoothButtonSelector); in openBluetoothPalette()
84 UiObject2 bluetoothButtonSwitchLink = in openBluetoothSwitch()
116 UiObject2 bluetoothSettingsLink = in openBluetoothSettings()
139 UiObject2 enableOption = getSpectatioUiUtil().findUiObject(enableOptionSelector); in isBluetoothOn()
154 UiObject2 enableOption = getSpectatioUiUtil().findUiObject(enableOptionSelector); in turnOnOffBluetooth()
168 UiObject2 bluetoothButton = getSpectatioUiUtil().findUiObject(bluetoothButtonSelector); in clickBluetoothButton()
179 UiObject2 networkPalette = getSpectatioUiUtil().findUiObject(networkPaletteSelector); in openNetworkPalette()
193 UiObject2 btconnectedDisconnectedText = in isBluetoothConnected()
217 UiObject2 enableOption = getSwitchObject(target); in isNetworkSwitchEnabled()
[all …]
/platform_testing/libraries/flicker/appHelpers/src/android/tools/device/apphelpers/
DMapsAppHelper.kt27 import androidx.test.uiautomator.UiObject2
59 val directionsButton: UiObject2 = in getDirections()
63 var currentLocation: UiObject2? = getYourLocation() in getDirections()
65 val startPointBox: UiObject2 = in getDirections()
83 var startNavigationButton: UiObject2 = in startNavigation()
119 val searchSelect: UiObject2 = in inputSearch()
125 val searchEdit: UiObject2 = in inputSearch()
155 private fun getSelectableSearchBar(wait_time: Long = WAIT_TIMEOUT): UiObject2? { in getSelectableSearchBar()
162 private fun getEditableSearchBar(wait_time: Long = WAIT_TIMEOUT): UiObject2? { in getEditableSearchBar()
169 private fun getDirectionsButton(wait_time: Long = WAIT_TIMEOUT): UiObject2? { in getDirectionsButton()
[all …]
/platform_testing/tests/jank/jankmicrobenchmark/src/com/android/jankmicrobenchmark/janktests/
DApiDemoJankTests.java26 import android.support.test.uiautomator.UiObject2;
51 private UiObject2 mListView;
69 public UiObject2 getHomeScreen() throws UiObjectNotFoundException { in getHomeScreen()
82 UiObject2 homeScreen = getHomeScreen(); in launchApiDemos()
94 UiObject2 animation = mDevice.wait(Until.findObject( in selectAnimation()
98 UiObject2 option = mDevice.wait(Until.findObject( in selectAnimation()
116 UiObject2 homeScreen = getHomeScreen(); in navigateToHome()
145 UiObject2 redBallTile = mDevice.wait(Until.findObject(By.res(PACKAGE_NAME, "ball")), in testActivityTransitionAnimation()
164 UiObject2 flipButton = mDevice.findObject(By.res(PACKAGE_NAME, "button")); in testViewFlipAnimation()
181 UiObject2 runCloningButton = mDevice.findObject(By.res(PACKAGE_NAME, "startButton")); in testCloningAnimation()
[all …]
/platform_testing/libraries/automotive-helpers/media-center-app-helper/src/android/platform/helpers/
DMediaCenterHelperImpl.java33 import androidx.test.uiautomator.UiObject2;
147 UiObject2 playButton = getSpectatioUiUtil().findUiObject(playButtonSelector); in playMedia()
161 UiObject2 playButtonHomeScreen = getSpectatioUiUtil().findUiObject(playButtonSelector); in playPauseMediaFromHomeScreen()
176 UiObject2 pauseButton = getSpectatioUiUtil().findUiObject(pauseButtonSelector); in pauseMedia()
189 UiObject2 nextTrackButton = getSpectatioUiUtil().findUiObject(nextTrackButtonSelector); in clickNextTrack()
202 UiObject2 nextTrackHomeScreenButton = in clickNextTrackFromHomeScreen()
218 UiObject2 previousTrackMediaCenterButton = in clickPreviousTrack()
233 UiObject2 previousTrackHomeScreenButton = in clickPreviousTrackFromHomeScreen()
248 UiObject2 shufflePlaylistButton = in clickShuffleAll()
298 UiObject2 mediaControl = getSpectatioUiUtil().findUiObject(mediaControlSelector); in getMediaTrackName()
[all …]
/platform_testing/libraries/app-helpers/spectatio/spectatio-util/src/android/platform/spectatio/utils/
DSpectatioUiUtil.java32 import androidx.test.uiautomator.UiObject2;
158 public boolean longPress(UiObject2 uiObject) { in longPress()
240 public void clickAndWait(UiObject2 uiObject) { in clickAndWait()
300 public UiObject2 findUiObject(BySelector selector) { 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()
309 List<UiObject2> uiObjects = in findUiObjects()
319 public UiObject2 findUiObject(String text) { in findUiObject()
330 public UiObject2 findUiObjectInGivenElement(UiObject2 uiObject, BySelector selector) { in findUiObjectInGivenElement()
629 public void swipeRight(UiObject2 uiObject) { in swipeRight()
[all …]
/platform_testing/libraries/system-helpers/accessibility-helper/src/android/system/helpers/
DAccessibilityScannerHelper.java26 import android.support.test.uiautomator.UiObject2;
107 UiObject2 shareApp = getShareApp(shareAppTag); in runScannerAndOpenShareApp()
125 UiObject2 swt = mDevice.wait(Until.findObject( in setAccessibilityScannerSetting()
134 UiObject2 okBtn = mDevice.wait(Until.findObject(By.text("OK")), SHORT_TIMEOUT); in setAccessibilityScannerSetting()
150 UiObject2 auth1 = mDevice.wait(Until.findObject( in grantPermissions()
155 UiObject2 chk = mDevice.wait(Until.findObject( in grantPermissions()
161 UiObject2 auth2 = mDevice.wait(Until.findObject( in grantPermissions()
166 UiObject2 tapOk = mDevice.wait(Until.findObject( in grantPermissions()
194 UiObject2 getStartBtn = mDevice.wait( in initialSetups()
198 UiObject2 msg = mDevice.wait(Until.findObject( in initialSetups()
[all …]

12345