/platform_testing/tests/jank/jankmicrobenchmark/src/com/android/jankmicrobenchmark/janktests/ |
D | ApiDemoJankTests.java | 71 return mDevice.wait(Until.findObject(By.res(LEANBACK_LAUNCHER, "main_list_view")), in getHomeScreen() 76 return mDevice.wait(Until.findObject(By.res(launcherPackage,"workspace")), in getHomeScreen() 95 By.res(RES_PACKAGE_NAME, "text1").text("Animation")), LONG_TIMEOUT); in selectAnimation() 99 By.res(RES_PACKAGE_NAME, "text1").text(optionName)), LONG_TIMEOUT); in selectAnimation() 102 mDevice.wait(Until.findObject(By.res(RES_PACKAGE_NAME, "content")), LONG_TIMEOUT) in selectAnimation() 104 option = mDevice.wait(Until.findObject(By.res(RES_PACKAGE_NAME, "text1") in selectAnimation() 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() 198 By.res(PACKAGE_NAME, "startButton").text("RUN")), LONG_TIMEOUT); in testLoadingJank() [all …]
|
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/ |
D | AutoLauncherStrategy.java | 53 By.res(Pattern.compile(".*:id/car_ui_scrollbar_page_up")); 55 By.res(Pattern.compile(".*:id/car_ui_scrollbar_page_down")); 56 private static final BySelector APP_SWITCH = By.res(Pattern.compile(".*:id/" + APP_SWITCH_ID)); 57 private static final BySelector APP_LIST = By.res(Pattern.compile(".*:id/" + APP_LIST_ID)); 59 By.res(Pattern.compile(".*:id/" + APP_LIST_ID)).scrollable(true); 60 private static final BySelector QUICK_SETTINGS = By.res(SYSTEM_UI_PACKAGE, "qs"); 61 private static final BySelector LEFT_HVAC = By.res(SYSTEM_UI_PACKAGE, "hvacleft"); 62 private static final BySelector RIGHT_HVAC = By.res(SYSTEM_UI_PACKAGE, "hvacright"); 66 { "Home", By.res(SYSTEM_UI_PACKAGE, "home").clickable(true) }, 67 { "Maps", By.res(SYSTEM_UI_PACKAGE, "maps_nav").clickable(true) }, [all …]
|
D | AospLauncherStrategy.java | 37 By.res(LAUNCHER_PKG, "apps_customize_pane_content"); 38 private static final BySelector OVERVIEW = By.res(LAUNCHER_PKG, "overview_panel"); 39 private static final BySelector WORKSPACE = By.res(LAUNCHER_PKG, "workspace"); 40 private static final BySelector HOTSEAT = By.res(LAUNCHER_PKG, "hotseat"); 56 UiObject2 cling = mDevice.findObject(By.res(LAUNCHER_PKG, "workspace_cling")); in open() 78 UiObject2 cling = mDevice.findObject(By.res(LAUNCHER_PKG, "cling_dismiss") in openAllApps() 132 BySelector clearAllSelector = By.res(mDevice.getLauncherPackageName(), "clear_all"); in clearRecentAppsFromOverview() 204 By.res("").clazz(TextView.class).desc(appName), packageName); in launch()
|
D | Launcher3Strategy.java | 42 By.res(getSupportedLauncherPackage(), "cling_dismiss_longpress_info")); in dismissHomeScreenCling() 53 return By.res(getSupportedLauncherPackage(), "all_apps_handle"); in getAllAppsButtonSelector()
|
D | LeanbackLauncherStrategy.java | 132 return By.res(getSupportedLauncherPackage(), "main_list_view"); in getWorkspaceSelector() 140 return By.res(getSupportedLauncherPackage(), "search_view"); in getSearchRowSelector() 148 return By.res(getSupportedLauncherPackage(), "notification_view"); in getNotificationRowSelector() 156 return By.res(getSupportedLauncherPackage(), "list").desc("Apps"); in getAppsRowSelector() 164 return By.res(getSupportedLauncherPackage(), "list").desc("Games"); in getGamesRowSelector() 172 return By.res(getSupportedLauncherPackage(), "list").desc("").hasDescendant( in getSettingsRowSelector() 173 By.res(getSupportedLauncherPackage(), "icon"), 3); in getSettingsRowSelector() 189 return By.res(getSupportedLauncherPackage(), "content_text").text("Now Playing"); in getNowPlayingCardSelector() 214 BySelector app = By.res(getSupportedLauncherPackage(), "app_banner").desc(appName); in launch() 235 BySelector keyboardOrb = By.res(getSupportedLauncherPackage(), "keyboard_orb"); in search() [all …]
|
D | BaseLauncher3Strategy.java | 166 BySelector clearAllSelector = By.res(mDevice.getLauncherPackageName(), "clear_all"); in clearRecentAppsFromOverview() 195 mDevice.findObject(By.res(getSupportedLauncherPackage(), "widget_button")).click(); in openAllWidgets() 230 return By.res(getSupportedLauncherPackage(), "apps_list_view"); in getAllAppsSelector() 238 return By.res(getSupportedLauncherPackage(), "widgets_list_view"); in getAllWidgetsSelector() 246 return By.res(getSupportedLauncherPackage(), "workspace"); in getWorkspaceSelector() 254 return By.res(getSupportedLauncherPackage(), "hotseat"); in getHotSeatSelector() 260 return By.res(getSupportedLauncherPackage(), "overview_panel"); in getOverviewSelector()
|
D | TvLauncherStrategy.java | 60 private static final BySelector SELECTOR_TOP_ROW = By.res(PACKAGE_LAUNCHER, "top_row"); 61 private static final BySelector SELECTOR_APPS_ROW = By.res(PACKAGE_LAUNCHER, "apps_row"); 63 By.res(PACKAGE_LAUNCHER, "row_list_view"); 65 By.res(PACKAGE_LAUNCHER, "channel_logo").focused(true).descContains("Apps"); 67 By.res(PACKAGE_LAUNCHER, "configure_channels_row"); 68 private static final BySelector SELECTOR_CONTROLLER_MOVE = By.res(PACKAGE_LAUNCHER, "move"); 69 private static final BySelector SELECTOR_CONTROLLER_REMOVE = By.res(PACKAGE_LAUNCHER, "remove"); 70 private static final BySelector SELECTOR_NOTIFICATIONS_ROW = By.res(PACKAGE_LAUNCHER, 214 Assert.assertNotNull(selectBidirect(By.res(getSupportedLauncherPackage(), "settings"), in openSettings() 218 Until.hasObject(By.res(PACKAGE_SETTINGS, "decor_title").text("Settings")), in openSettings() [all …]
|
D | NexusLauncherStrategy.java | 73 return By.res(getSupportedLauncherPackage(), "apps_view"); in getAllAppsSelector() 89 return By.res(getSupportedLauncherPackage(), "hotseat"); in getHotSeatSelector() 93 return By.res(LAUNCHER_PKG, "overview_panel"); in getLauncherOverviewSelector() 175 By.res(getSupportedLauncherPackage(), "deep_shortcuts_container")); in openAllWidgets()
|
/platform_testing/libraries/device-collectors/src/main/java/android/device/collectors/ |
D | DataRecord.java | 78 Map<String, String> res = new LinkedHashMap<>(); in getStringMetrics() local 80 res.put(entry.getKey(), entry.getValue().getAbsolutePath()); in getStringMetrics() 82 res.putAll(mCurrentStringMetrics); in getStringMetrics() 83 return res; in getStringMetrics()
|
D | GcaEventLogCollector.java | 185 String res = in getCameraEventLogProperty() local 190 return res.isEmpty() ? "0" : res; in getCameraEventLogProperty() 208 String res = in getSeLinuxEnforceProperty() local 210 return SeLinuxEnforceProperty.valueOf(res.toUpperCase()); in getSeLinuxEnforceProperty()
|
/platform_testing/libraries/app-helpers/interfaces/tv/src/android/platform/helpers/ |
D | AbstractLeanbackAppHelper.java | 83 return By.res(getPackage(), "browse_headers").hasChild(By.selected(true)); in getBrowseHeadersSelector() 91 return By.res(getPackage(), "row_content").hasChild(By.selected(true)); in getBrowseRowsSelector() 98 return By.res(getPackage(), "details_fragment"); in getDetailsFragmentSelector() 105 return By.res(getPackage(), "lb_search_frame"); in getSearchFragmentSelector() 112 return By.res(getPackage(), "grid_frame"); in getVerticalGridFragmentSelector() 119 return By.res(getPackage(), "guidedactions_list"); in getGuidedStepFragmentSelector() 126 return By.res(getPackage(), "playback_controls_dock"); in getPlaybackOverlayFragmentSelector() 133 return By.res(getPackage(), "error_frame"); in getErrorFragmentSelector() 315 By.res(getPackage(), "guidedactions_list").hasChild(By.focused(true))), 318 BySelector selector = By.res(getPackage(), "guidedactions_item_title").text(action); [all …]
|
/platform_testing/libraries/system-helpers/accessibility-helper/src/android/system/helpers/ |
D | AccessibilityHelper.java | 79 Until.findObject(By.res(SETTINGS_PACKAGE, "switch_bar")), SHORT_TIMEOUT) in setTalkBackSetting() 80 .findObject(By.res(SETTINGS_PACKAGE, "switch_widget")); in setTalkBackSetting() 84 Until.findObject(By.res("android:id/button1")), LONG_TIMEOUT); in setTalkBackSetting() 119 By.res(SETTINGS_PACKAGE, "action_bar").enabled(true)), SHORT_TIMEOUT); in launchSpecificAccessibilitySetting() 130 mDevice.wait(Until.findObject(By.res(SETTINGS_PACKAGE, "action_bar") in launchSpecificAccessibilitySetting() 155 By.res("android:id/button1")), LONG_TIMEOUT); in setSettingSwitchValue() 180 return mDevice.findObject(By.res("android:id/title").text(settingName)); in getSettingFromList()
|
D | AccessibilityScannerHelper.java | 126 By.res(AccessibilityHelper.SETTINGS_PACKAGE, "switch_widget")), in setAccessibilityScannerSetting() 222 By.res(ACCESSIBILITY_SCANNER_PACKAGE, "history_item_row")); in clearHistory() 241 int res = getNumberOfSuggestions(); in logScannerResult() local 242 if (res > 0) { in logScannerResult() 243 Log.i(RESULT_TAG, String.format("%s: %s suggestions!", pageName, res)); in logScannerResult() 244 } else if (res == 0) { in logScannerResult() 328 return mDevice.findObject(By.res(ACCESSIBILITY_SCANNER_PACKAGE, CHECK_BUTTON_RES_ID)); in getScannerCheckBtn() 362 By.res(ACCESSIBILITY_SCANNER_PACKAGE, "toolbar")), SHORT_TIMEOUT); in getToolBarTextView() 414 UiObject2 shareBtn = mDevice.wait(Until.findObject(By.res(ACCESSIBILITY_SCANNER_PACKAGE, in getShareApp() 418 mDevice.wait(Until.hasObject(By.res("android:id/resolver_list")), SHORT_TIMEOUT * 3); in getShareApp()
|
/platform_testing/libraries/tradefed-python-lib/helloWorld/ |
D | test_hello_world.py | 48 res = self.android_device.executeShellCommand('id') 49 self.assertTrue('uid' in res)
|
/platform_testing/tests/functional/calculator/src/com/android/calculator/functional/ |
D | CalculatorHelper.java | 67 Until.findObject(By.res(PACKAGE_NAME, resource_id)), in clickButton() 91 Until.findObject(By.res(PACKAGE_NAME, result)), in getResultText() 99 Until.findObject(By.res(PACKAGE_NAME, result)), in clearResults() 107 Until.findObject(By.res(PACKAGE_NAME, result)), in scrollResults() 118 Until.findObject(By.res(PACKAGE_NAME, "pad_advanced")), in showAdvancedPad() 129 Until.findObject(By.res(PACKAGE_NAME, "pad_advanced")), in dismissAdvancedPad()
|
D | CalculatorTests.java | 109 Until.findObject(By.res(mCalculatorHelper.PACKAGE_NAME, "del")), in testClearButton() 167 Until.findObject(By.res("android:id/alertTitle")), SHORT_TIMEOUT); in testComplexCalculationTimeout() 170 Until.findObject(By.res(mCalculatorHelper.PACKAGE_NAME, "message")), in testComplexCalculationTimeout() 175 Until.findObject(By.res("android:id/button2")), SHORT_TIMEOUT); in testComplexCalculationTimeout() 189 Until.findObject(By.res(mCalculatorHelper.PACKAGE_NAME, "toggle_mode")), in testDegRadSwitch() 194 Until.findObject(By.res(mCalculatorHelper.PACKAGE_NAME, "mode")), in testDegRadSwitch()
|
/platform_testing/tests/jank/uibench_wear/src/com/android/wearable/uibench/janktests/ |
D | UiBenchJankTests.java | 79 By.res("android", "content")), mHelper.TIMEOUT); in testFullscreenOverdraw() 107 By.res("android", "content")), mHelper.TIMEOUT); in testInvalidate() 123 By.res("android", "content")), mHelper.TIMEOUT); in testTrivialAnimation() 170 By.res("android", "content")), mHelper.TIMEOUT); in testTrivialRecyclerListViewFling() 181 By.res("android", "content")), mHelper.TIMEOUT); in testTrivialRecyclerListViewFling() 186 By.res("android", "content")), mHelper.TIMEOUT); in testTrivialRecyclerListViewFling() 205 By.res("android", "content")), mHelper.TIMEOUT); in testInflatingListViewFling() 216 By.res("android", "content")), mHelper.TIMEOUT); in testInflatingListViewFling() 221 By.res("android", "content")), mHelper.TIMEOUT); in testInflatingListViewFling()
|
D | UiBenchJankTestsHelper.java | 95 UiObject2 homeScreen = mDevice.findObject(By.res(launcherPackage, ROOT_NAME)); in goBackHome() 99 homeScreen = mDevice.findObject(By.res(launcherPackage, ROOT_NAME)); in goBackHome() 103 homeScreen = mDevice.findObject(By.res(launcherPackage, LAUNCHER_VIEW_NAME)); in goBackHome() 112 By.res(RES_PACKAGE_NAME, TEXT_OBJECT_NAME).text(itemName)), TIMEOUT); in openTextInList() 116 By.res(RES_PACKAGE_NAME, TEXT_OBJECT_NAME).text(itemName)), TIMEOUT); in openTextInList() 122 By.res(RES_PACKAGE_NAME, TEXT_OBJECT_NAME).text(itemName)), TIMEOUT); in openTextInList()
|
/platform_testing/tests/functional/overviewtests/src/com/android/overview/functional/ |
D | MultiWindowTests.java | 91 UiObject2 calcArea = mDevice.wait(Until.findObject(By.res("android:id/content")), TIMEOUT); in testDockingUndockingOnMultiwindow() 108 (By.pkg(CALCULATOR_PACKAGE).res("android:id/content")), TIMEOUT); in testResizeHandleOnMultiwindow() 112 (By.pkg(GMAIL_PACKAGE).res("android:id/content")), TIMEOUT); in testResizeHandleOnMultiwindow() 120 (By.pkg(CALCULATOR_PACKAGE).res("android:id/content")), TIMEOUT); in testResizeHandleOnMultiwindow() 124 (By.pkg(GMAIL_PACKAGE).res("android:id/content")), TIMEOUT); in testResizeHandleOnMultiwindow() 146 (By.pkg(CALCULATOR_PACKAGE).res("android:id/content")), TIMEOUT)); in testLandscapeModeMultiwindow() 150 (By.pkg(GMAIL_PACKAGE).res("android:id/content")), TIMEOUT)); in testLandscapeModeMultiwindow()
|
/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/ |
D | DownloadAppTests.java | 80 By.res("com.android.documentsui:id/container_directory")), mDLAppHelper.TIMEOUT); in testScroll() 117 mDevice.wait(Until.findObject(By.res( in testToggleViewTypeForDownloadItems() 121 mDevice.wait(Until.findObject(By.res( in testToggleViewTypeForDownloadItems() 131 mDevice.wait(Until.findObject(By.res("com.android.documentsui:id/dir_list")), in testCABMenuShow() 135 while ((cabMenuObj = mDevice.wait(Until.findObject(By.res(String.format("%s:id/menu_share", in testCABMenuShow() 140 while ((cabMenuObj = mDevice.wait(Until.findObject(By.res(String.format("%s:id/menu_delete", in testCABMenuShow() 162 By.res("com.android.documentsui:id/dir_list")), mDLAppHelper.TIMEOUT) in testCABMenuDelete() 168 while ((cabMenuObj = mDevice.wait(Until.findObject(By.res(String.format("%s:id/menu_delete", in testCABMenuDelete()
|
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/ |
D | OverviewHelper.java | 24 import android.content.res.Resources; 80 return mDevice.wait(Until.findObject(By.res(RECENTS)), TIMEOUT); in navigateToRecents() 168 (By.res("com.android.systemui:id/recents_view")),TIMEOUT); in dockAppToTopMultiwindowSlot() 196 .res("android:id/content")), TIMEOUT)); in dockAppToTopMultiwindowSlot() 225 .res("android:id/content")), TIMEOUT); in undockAppFromMultiwindow() 240 final Resources res = Resources.getSystem(); in isRecentsInLauncher() local 241 int id = res.getIdentifier("config_recentsComponentName", "string", "android"); in isRecentsInLauncher() 242 ComponentName recentsComponent = ComponentName.unflattenFromString(res.getString(id)); in isRecentsInLauncher()
|
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/watchers/ |
D | AppIsNotRespondingWatcher.java | 43 mDevice.findObject(By.res(UI_ANDROID_PACKAGE, UI_CLOSE_APP_BUTTON_ID)); in checkForCondition() 46 mDevice.findObject(By.res(UI_ANDROID_PACKAGE, UI_ALERT_TITLE_ID)); in checkForCondition()
|
/platform_testing/libraries/system-helpers/activity-helper/src/android/system/helpers/ |
D | ActivityHelper.java | 110 while (!mDevice.wait(Until.hasObject(By.res(SYSTEMUI_PACKAGE, "recents_view")), in clearRecents() 120 By.res(SYSTEMUI_PACKAGE, "recents_view")), ONE_SECOND * 5)); in clearRecents() 124 By.res(SYSTEMUI_PACKAGE, "task_view_thumbnail")), ONE_SECOND * 5).size(); in clearRecents() 142 while (!mDevice.wait(Until.hasObject(By.res(NEXUS_LAUNCHER, "overview_panel")), in clearRecentsByClearAll() 147 while (mDevice.findObject(By.res(NEXUS_LAUNCHER, "overview_panel")) in clearRecentsByClearAll()
|
/platform_testing/tests/jank/androidtvjanktests/src/com/android/androidtv/janktests/ |
D | SystemUiJankTests.java | 49 private static final BySelector SELECTOR_TOP_ROW = By.res(TVLAUNCHER_PACKAGE, "top_row"); 67 .wait(Until.findObject(By.res(TVLAUNCHER_PACKAGE, "home_view_container")), in goHome() 97 selectBidirect(By.res(TVLAUNCHER_PACKAGE, "settings").focused(true), Direction.RIGHT)); in goToSettingsButton() 115 By.res(SETTINGS_PACKAGE, "settings_preference_fragment_container")), in testNavigateToSettings() 128 Until.hasObject(By.res(SETTINGS_PACKAGE, "settings_preference_fragment_container")), in goToSettings()
|
/platform_testing/tests/functional/permission/src/com/android/functional/permissiontests/ |
D | GenericAppPermissionTests.java | 115 mDevice.wait(Until.findObject(By.res(PERMISSION_TEST_APP_PKG, GET_PERMISSION_BUTTON)), in testPermissionDialogAllow() 118 By.res(PACKAGE_INSTALLER, "permission_allow_button")), pHelper.TIMEOUT).click(); in testPermissionDialogAllow() 132 BySelector getContactSelector = By.res(PERMISSION_TEST_APP_PKG, GET_PERMISSION_BUTTON); in testPermissionDialogDenyFlow() 133 BySelector dontAskChkSelector = By.res(PACKAGE_INSTALLER, "do_not_ask_checkbox"); in testPermissionDialogDenyFlow() 134 BySelector denySelctor = By.res(PACKAGE_INSTALLER, "permission_deny_button"); in testPermissionDialogDenyFlow()
|