Home
last modified time | relevance | path

Searched refs:hasObject (Results 1 – 25 of 53) sorted by relevance

123

/platform_testing/libraries/app-helpers/interfaces/tv/src/android/platform/helpers/
DAbstractLeanbackAppHelper.java151 return mDevice.wait(Until.hasObject(By.pkg(getPackage()).depth(0)), timeoutMs); in waitForOpen()
185 if (!mDevice.wait(Until.hasObject(rowContent), OPEN_ROW_CONTENT_WAIT_TIME_MS)) { in openHeader()
256 return focus.hasObject(selector); in select()
275 return focus.hasObject(selector);
353 return mDevice.hasObject(By.res(getPackage(), "details_overview_actions").hasChild(
434 while (!mDevice.wait(Until.hasObject(selector), MAIN_ACTIVITY_WAIT_TIME_MS)
455 return mDevice.hasObject(getBrowseHeadersSelector());
457 return mDevice.hasObject(getBrowseRowsSelector());
459 return mDevice.hasObject(getDetailsFragmentSelector());
461 return mDevice.hasObject(getSearchFragmentSelector());
[all …]
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper2/
DNexusLauncherStrategy.java97 if (!mDevice.hasObject(getAllAppsSelector()) in openAllApps()
98 || mDevice.hasObject(getLauncherOverviewSelector()) in openAllApps()
105 !mDevice.hasObject(getAllAppsSelector()) in openAllApps()
106 && !mDevice.hasObject(getLauncherOverviewSelector())); in openAllApps()
155 if (!mDevice.hasObject(getAllWidgetsSelector())) { in openAllWidgets()
DTvLauncherStrategy.java140 if (!mDevice.hasObject(getWorkspaceSelector())) { in open()
143 if (!mDevice.wait(Until.hasObject(getWorkspaceSelector()), UI_WAIT_TIME_MS)) { in open()
170 if (!mDevice.hasObject(getAllAppsSelector())) { in openAllApps()
199 Until.hasObject(By.res(PACKAGE_SETTINGS, "decor_title").text("Settings")), in openSettings()
212 Until.hasObject(By.res(PACKAGE_LAUNCHER, "decor_title").text("Customize channels")), in openCustomizeChannels()
330 if (focus.hasObject(getChannelLogoSelector())) { in getHomeControllerState()
332 } else if (focus.hasObject(SELECTOR_CONTROLLER_MOVE)) { in getHomeControllerState()
334 } else if (focus.hasObject(SELECTOR_CONTROLLER_REMOVE)) { in getHomeControllerState()
382 return row.hasObject(channelSelector); in isChannelRowSelected()
392 return mDevice.hasObject(getWorkspaceSelector()); in isOnHomeScreen()
[all …]
DCommonLauncherHelper.java175 if (!mDevice.hasObject(app)) { in launchApp()
179 if (!mDevice.hasObject(app)) { in launchApp()
182 while (!mDevice.hasObject(app) && container.scroll(dir, 0.8f)) { in launchApp()
239 mDevice.wait(Until.hasObject(By.pkg(packageName).depth(0)), APP_LAUNCH_TIMEOUT); in verifyAppStart()
251 return mDevice.hasObject(By.pkg(appPackage).depth(0)); in isAppOpen()
272 if (mDevice.hasObject(screenLock)) { in unlockDeviceIfAsleep()
DLeanbackLauncherStrategy.java70 if (!mDevice.hasObject(getWorkspaceSelector())) { in open()
73 if (!mDevice.wait(Until.hasObject(getWorkspaceSelector()), SHORT_WAIT_TIME)) { in open()
288 return mDevice.wait(Until.hasObject(getAppWidgetSelector()), SHORT_WAIT_TIME); in hasAppWidgetSelector()
294 return mDevice.wait(Until.hasObject(getNowPlayingCardSelector()), SHORT_WAIT_TIME); in hasNowPlayingCard()
436 if (!mDevice.wait(Until.hasObject(By.pkg(packageName).depth(0)), APP_LAUNCH_TIMEOUT)) { in launchApp()
446 mDevice.wait(Until.hasObject(By.pkg(packageName).depth(0)), APP_LAUNCH_TIMEOUT); in launchApp()
495 return row.hasObject(By.focused(true)); in isSearchRowSelected()
503 return row.hasObject(By.focused(true)); in isAppsRowSelected()
511 return row.hasObject(By.focused(true)); in isGamesRowSelected()
519 return row.hasObject(By.focused(true)); in isNotificationRowSelected()
[all …]
DWearLauncherStrategy.java56 if (!mDevice.hasObject(getHotSeatSelector())) { in open()
58 if (!mDevice.wait(Until.hasObject(getHotSeatSelector()), 5000)) { in open()
74 if (!mDevice.hasObject(getAllAppsSelector())) { in openAllApps()
77 if (!mDevice.wait(Until.hasObject(getAllAppsSelector()), 5000)) { in openAllApps()
DBaseLauncher3Strategy.java50 if (!mDevice.hasObject(getHotSeatSelector())) { in open()
53 if (!mDevice.wait(Until.hasObject(getHotSeatSelector()), 5000)) { in open()
87 if (!mDevice.hasObject(getAllAppsSelector()) || reset) { in openAllApps()
92 !mDevice.hasObject(getAllAppsSelector())); in openAllApps()
183 if (!mDevice.hasObject(getAllWidgetsSelector())) { in openAllWidgets()
DAospLauncherStrategy.java46 if (!mDevice.hasObject(getHotSeatSelector())) { in open()
50 mDevice.wait(Until.hasObject(By.pkg(LAUNCHER_PKG)), 5000)); in open()
65 if (!mDevice.hasObject(APPS_CONTAINER)) { in openAllApps()
153 if (!mDevice.hasObject(APPS_CONTAINER)) { in openAllWidgets()
/platform_testing/libraries/system-helpers/activity-helper/src/android/system/helpers/
DActivityHelper.java110 while (!mDevice.wait(Until.hasObject(By.res(SYSTEMUI_PACKAGE, "recents_view")), in clearRecents()
116 if (mDevice.wait(Until.hasObject(By.text("No recent items")), ONE_SECOND * 5)) { in clearRecents()
119 Assert.assertTrue("Device expects recent items", mDevice.wait(Until.hasObject( in clearRecents()
142 while (!mDevice.wait(Until.hasObject(By.res(NEXUS_LAUNCHER, "overview_panel")), in clearRecentsByClearAll()
153 if (!mDevice.wait(Until.hasObject(By.text( in clearRecentsByClearAll()
158 while (mDevice.hasObject(By.text( in clearRecentsByClearAll()
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DNexusLauncherStrategy.java107 if (!mDevice.hasObject(getAllAppsSelector()) || mDevice.hasObject( in openAllApps()
113 !mDevice.hasObject(getAllAppsSelector()) && !mDevice.hasObject( in openAllApps()
169 if (!mDevice.hasObject(getAllWidgetsSelector())) { in openAllWidgets()
DTvLauncherStrategy.java159 if (!mDevice.hasObject(getWorkspaceSelector())) { in open()
162 if (!mDevice.wait(Until.hasObject(getWorkspaceSelector()), UI_WAIT_TIME_MS)) { in open()
189 if (!mDevice.hasObject(getAllAppsSelector())) { in openAllApps()
218 Until.hasObject(By.res(PACKAGE_SETTINGS, "decor_title").text("Settings")), in openSettings()
229 Until.hasObject(By.res(PACKAGE_LAUNCHER, "decor_title").text("Customize channels")), in openCustomizeChannels()
359 if (focus.hasObject(getChannelLogoSelector())) { in getHomeControllerState()
361 } else if (focus.hasObject(SELECTOR_CONTROLLER_MOVE)) { in getHomeControllerState()
363 } else if (focus.hasObject(SELECTOR_CONTROLLER_REMOVE)) { in getHomeControllerState()
404 return row.hasObject(channelSelector); in isChannelRowSelected()
414 return mDevice.hasObject(getWorkspaceSelector()); in isOnHomeScreen()
[all …]
DCommonLauncherHelper.java166 if (!mDevice.hasObject(app)) { in launchApp()
170 if (!mDevice.hasObject(app)) { in launchApp()
173 while (!mDevice.hasObject(app) && container.scroll(dir, 0.8f)) { in launchApp()
228 boolean success = mDevice.wait(Until.hasObject( in verifyAppStart()
241 return mDevice.hasObject(By.pkg(appPackage).depth(0)); in isAppOpen()
262 if (mDevice.hasObject(screenLock)) { in unlockDeviceIfAsleep()
DLeanbackLauncherStrategy.java76 if (!mDevice.hasObject(getWorkspaceSelector())) { in open()
79 if (!mDevice.wait(Until.hasObject(getWorkspaceSelector()), SHORT_WAIT_TIME)) { in open()
329 return mDevice.wait(Until.hasObject(getAppWidgetSelector()), SHORT_WAIT_TIME); in hasAppWidgetSelector()
337 return mDevice.wait(Until.hasObject(getNowPlayingCardSelector()), SHORT_WAIT_TIME); in hasNowPlayingCard()
474 if (!mDevice.wait(Until.hasObject(By.pkg(packageName).depth(0)), APP_LAUNCH_TIMEOUT)) { in launchApp()
482 boolean success = mDevice.wait(Until.hasObject( in launchApp()
529 return row.hasObject(By.focused(true)); in isSearchRowSelected()
537 return row.hasObject(By.focused(true)); in isAppsRowSelected()
545 return row.hasObject(By.focused(true)); in isGamesRowSelected()
553 return row.hasObject(By.focused(true)); in isNotificationRowSelected()
[all …]
DWearLauncherStrategy.java61 if (!mDevice.hasObject(getHotSeatSelector())) { in open()
63 if (!mDevice.wait(Until.hasObject(getHotSeatSelector()), 5000)) { in open()
78 if (!mDevice.hasObject(getAllAppsSelector())) { in openAllApps()
81 if (!mDevice.wait(Until.hasObject(getAllAppsSelector()), 5000)) { in openAllApps()
DBaseLauncher3Strategy.java53 if (!mDevice.hasObject(getHotSeatSelector())) { in open()
56 if (!mDevice.wait(Until.hasObject(getHotSeatSelector()), 5000)) { in open()
94 if (!mDevice.hasObject(getAllAppsSelector()) || reset) { in openAllApps()
99 !mDevice.hasObject(getAllAppsSelector())); in openAllApps()
194 if (!mDevice.hasObject(getAllWidgetsSelector())) { in openAllWidgets()
DAospLauncherStrategy.java49 if (!mDevice.hasObject(getHotSeatSelector())) { in open()
52 mDevice.wait(Until.hasObject(By.pkg(LAUNCHER_PKG)), 5000)); in open()
69 if (!mDevice.hasObject(APPS_CONTAINER)) { in openAllApps()
159 if (!mDevice.hasObject(APPS_CONTAINER)) { in openAllWidgets()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/ui/
DUiSearch.java21 import static androidx.test.uiautomator.Until.hasObject;
133 if (getUiDevice().wait(hasObject(selector), in search()
141 return getUiDevice().wait(hasObject(selector), in search()
157 if (getUiDevice().hasObject(selector)) { in search()
DUiSearch2.java19 import static androidx.test.uiautomator.Until.hasObject;
137 if (getUiDevice().wait(hasObject(selector), in search()
145 return getUiDevice().wait(hasObject(selector), in search()
161 if (getUiDevice().hasObject(selector)) { in search()
/platform_testing/tests/functional/overviewtests/src/com/android/overview/functional/
DMultiWindowTests.java76 mDevice.wait(Until.hasObject(By.text("No recent items")), TIMEOUT)); in testDockingUndockingOnMultiwindow()
83 mDevice.wait(Until.hasObject(By.text("No recent items")), TIMEOUT)); in testDockingUndockingOnMultiwindow()
133 mDevice.wait(Until.hasObject in testLandscapeModeMultiwindow()
137 mDevice.wait(Until.hasObject in testLandscapeModeMultiwindow()
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/
DAbstractStandardAppHelper2.java247 if (mDevice.hasObject(screenLock)) { in open()
287 if (!mDevice.hasObject(By.pkg(pkg).depth(0))) { in open()
297 if (!mDevice.wait(Until.hasObject(By.pkg(pkg).depth(0)), mLaunchTimeout)) { in open()
357 while (!mDevice.hasObject(getLauncherStrategy().getWorkspaceSelector()) in exit()
398 Until.hasObject(getLauncherStrategy().getWorkspaceSelector()), in exit()
428 return mDevice.hasObject(By.pkg(getPackage()).depth(0)); in isAppInForeground()
553 if (!mDevice.wait(Until.hasObject(By.res(packageStr, id)), timeout)) { in checkElementWithIdExists()
560 if (!mDevice.wait(Until.hasObject(By.text(text)), timeout)) { in checkElementWithTextExists()
567 if (!mDevice.wait(Until.hasObject(By.desc(description)), timeout)) { in checkElementWithDescriptionExists()
DAbstractStandardAppHelper.java256 if (mDevice.hasObject(screenLock)) { in open()
302 if (!mDevice.hasObject(By.pkg(pkg).depth(0))) { in open()
312 if (!mDevice.wait(Until.hasObject(By.pkg(pkg).depth(0)), mLaunchTimeout)) { in open()
398 while (!mDevice.hasObject(getLauncherStrategy().getWorkspaceSelector()) in exit()
439 Until.hasObject(getLauncherStrategy().getWorkspaceSelector()), in exit()
469 return mDevice.hasObject(By.pkg(getPackage()).depth(0)); in isAppInForeground()
594 if (!mDevice.wait(Until.hasObject(By.res(packageStr, id)), timeout)) { in checkElementWithIdExists()
601 if (!mDevice.wait(Until.hasObject(By.text(text)), timeout)) { in checkElementWithTextExists()
608 if (!mDevice.wait(Until.hasObject(By.desc(description)), timeout)) { in checkElementWithDescriptionExists()
/platform_testing/tests/jank/androidtvjanktests/src/com/android/androidtv/janktests/
DSystemUiJankTests.java114 mDevice.wait(Until.hasObject( in testNavigateToSettings()
128 Until.hasObject(By.res(SETTINGS_PACKAGE, "settings_preference_fragment_container")), in goToSettings()
166 while (!mDevice.wait(Until.hasObject(selector), timeoutMs)) { in select()
/platform_testing/libraries/uiautomator-helpers/src/android/platform/uiautomator_helpers/
DDeviceHelpers.kt165 fun hasObject( in waitForNullableObjects() method
167 ): Boolean = trace("Checking if device has $selector") { uiDevice.hasObject(selector) } in waitForNullableObjects()
210 uiDevice.hasObject(selector) == visible in assertVisibility()
235 hasObject(selector) == visible in assertVisibility()
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/performancelaunch/hermeticapp/
DPerformanceBase.java49 mDevice.wait(Until.hasObject(By.pkg(PACKAGE).depth(0)), 5000); in open()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/features/common/
DSystemPowerMenu.java74 if (!mUiDevice.wait(Until.hasObject(mPageTitleSelector), OPEN_MENU_TIMEOUT_MSEC)) { in open()

123