Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 126) sorted by relevance

123456

/platform_testing/libraries/sts-common-util/host-side/src/com/android/sts/common/
DCommandUtil.java55 CommandResult res; in runAndCheck() local
59 res = device.executeShellV2Command(cmd); in runAndCheck()
60 } while (res.getStatus() != CommandStatus.SUCCESS && attempt <= retries); in runAndCheck()
65 cmd, res.getExitCode(), res.getStdout(), res.getStderr()); in runAndCheck()
66 assumeThat(failMsg, res.getStatus(), equalTo(CommandStatus.SUCCESS)); in runAndCheck()
67 return res; in runAndCheck()
DNativePoc.java81 .after((res) -> {}) in builder()
224 CommandResult res = runPocAndAssert(test); in run() local
227 res.getStatus(), in run()
231 "PoC did not exit with success. stderr: " + res.getStderr(), in run()
232 res.getStatus(), in run()
253 CommandResult res = in runPocAndAssert() local
261 res.getExitCode(), res.getStdout(), res.getStderr()); in runPocAndAssert()
263 after().run(res); in runPocAndAssert()
264 asserter().checkCmdResult(res); in runPocAndAssert()
265 return res; in runPocAndAssert()
[all …]
/platform_testing/tests/jank/jankmicrobenchmark/src/com/android/jankmicrobenchmark/janktests/
DApiDemoJankTests.java71 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/launcherhelper2/
DAutoLauncherStrategy.java54 By.res(Pattern.compile(".*:id/car_ui_scrollbar_page_up"));
56 By.res(Pattern.compile(".*:id/car_ui_scrollbar_page_down"));
57 private static final BySelector APP_SWITCH = By.res(Pattern.compile(".*:id/" + APP_SWITCH_ID));
58 private static final BySelector APP_LIST = By.res(Pattern.compile(".*:id/" + APP_LIST_ID));
60 By.res(Pattern.compile(".*:id/" + APP_LIST_ID)).scrollable(true);
61 private static final BySelector QUICK_SETTINGS = By.res(SYSTEM_UI_PACKAGE, "qs");
62 private static final BySelector LEFT_HVAC = By.res(SYSTEM_UI_PACKAGE, "hvacleft");
63 private static final BySelector RIGHT_HVAC = By.res(SYSTEM_UI_PACKAGE, "hvacright");
68 {"Home", By.res(SYSTEM_UI_PACKAGE, "home").clickable(true)},
69 {"Maps", By.res(SYSTEM_UI_PACKAGE, "maps_nav").clickable(true)},
[all …]
DAospLauncherStrategy.java36 By.res(LAUNCHER_PKG, "apps_customize_pane_content");
37 private static final BySelector OVERVIEW = By.res(LAUNCHER_PKG, "overview_panel");
38 private static final BySelector WORKSPACE = By.res(LAUNCHER_PKG, "workspace");
39 private static final BySelector HOTSEAT = By.res(LAUNCHER_PKG, "hotseat");
54 UiObject2 cling = mDevice.findObject(By.res(LAUNCHER_PKG, "workspace_cling")); in open()
76 By.res(LAUNCHER_PKG, "cling_dismiss").clazz(Button.class).text("OK")); in openAllApps()
130 BySelector clearAllSelector = By.res(mDevice.getLauncherPackageName(), "clear_all"); in clearRecentAppsFromOverview()
194 .launchApp(this, By.res("").clazz(TextView.class).desc(appName), packageName); in launch()
DLeanbackLauncherStrategy.java122 return By.res(getSupportedLauncherPackage(), "main_list_view"); in getWorkspaceSelector()
128 return By.res(getSupportedLauncherPackage(), "search_view"); in getSearchRowSelector()
134 return By.res(getSupportedLauncherPackage(), "notification_view"); in getNotificationRowSelector()
140 return By.res(getSupportedLauncherPackage(), "list").desc("Apps"); in getAppsRowSelector()
146 return By.res(getSupportedLauncherPackage(), "list").desc("Games"); in getGamesRowSelector()
152 return By.res(getSupportedLauncherPackage(), "list") in getSettingsRowSelector()
154 .hasDescendant(By.res(getSupportedLauncherPackage(), "icon"), 3); in getSettingsRowSelector()
166 return By.res(getSupportedLauncherPackage(), "content_text").text("Now Playing"); in getNowPlayingCardSelector()
185 BySelector app = By.res(getSupportedLauncherPackage(), "app_banner").desc(appName); in launch()
202 BySelector keyboardOrb = By.res(getSupportedLauncherPackage(), "keyboard_orb"); in search()
[all …]
DLauncher3Strategy.java39 By.res(getSupportedLauncherPackage(), "cling_dismiss_longpress_info")); in dismissHomeScreenCling()
48 return By.res(getSupportedLauncherPackage(), "all_apps_handle"); in getAllAppsButtonSelector()
DBaseLauncher3Strategy.java163 BySelector clearAllSelector = By.res(mDevice.getLauncherPackageName(), "clear_all"); in clearRecentAppsFromOverview()
188 mDevice.findObject(By.res(getSupportedLauncherPackage(), "widget_button")).click(); in openAllWidgets()
218 return By.res(getSupportedLauncherPackage(), "apps_list_view"); in getAllAppsSelector()
224 return By.res(getSupportedLauncherPackage(), "widgets_list_view"); in getAllWidgetsSelector()
230 return By.res(getSupportedLauncherPackage(), "workspace"); in getWorkspaceSelector()
236 return By.res(getSupportedLauncherPackage(), "hotseat"); in getHotSeatSelector()
242 return By.res(getSupportedLauncherPackage(), "overview_panel"); in getOverviewSelector()
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DAutoLauncherStrategy.java53 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 …]
DAospLauncherStrategy.java37 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()
DLeanbackLauncherStrategy.java132 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 …]
DLauncher3Strategy.java42 By.res(getSupportedLauncherPackage(), "cling_dismiss_longpress_info")); in dismissHomeScreenCling()
53 return By.res(getSupportedLauncherPackage(), "all_apps_handle"); in getAllAppsButtonSelector()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/features/quicksettings/
DUserSelection.java53 By.res("android:id/alertTitle")
58 private static final BySelector SETTINGS_SELECTOR = By.res("android:id/button3")
61 private static final BySelector CLOSE_SELECTOR = By.res("android:id/button1")
64 private static final BySelector BRIGHTNESS_SLIDER = By.res(
67 private static final BySelector MULTI_USER_SWITCH_SELECTOR = By.res(
100 BySelector userSelector = By.res(USER_NAME_RES_ID).text( in selectUserItem()
DGuestUserExitConfirmationDialog.java41 private static final BySelector sTitleSelector = By.res("android:id/alertTitle")
44 private static final BySelector sExitSelector = By.res("android:id/button1")
47 private static final BySelector sCancelSelector = By.res("android:id/button3")
DEditCurrentUserDialog.java43 private static final BySelector TITLE_SELECTOR = By.res("android:id/alertTitle")
47 By.res("com.android.systemui:id/user_name");
49 private static final BySelector OK_SELECTOR = By.res("android:id/button1")
52 private static final BySelector CANCEL_SELECTOR = By.res("android:id/button2")
DRemoveUserDialog.java40 private static final BySelector TITLE_SELECTOR = By.res("android:id/message")
43 private static final BySelector REMOVE_USER_SELECTOR = By.res("android:id/button1")
46 private static final BySelector KEEP_USER_SELECTOR = By.res("android:id/button2")
/platform_testing/libraries/app-helpers/interfaces/tv/src/android/platform/helpers/
DAbstractLeanbackAppHelper.java83 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/device-collectors/src/main/java/android/device/collectors/
DDataRecord.java78 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()
/platform_testing/libraries/system-helpers/accessibility-helper/src/android/system/helpers/
DAccessibilityHelper.java79 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()
/platform_testing/libraries/systemui-helper/src/android/platform/helpers/media/
DMediaController.java44 By.res(PKG, "actionPlayPause").descContains("Play");
46 By.res(PKG, "actionPlayPause").descContains("Pause");
48 By.res(PKG, "actionNext").descContains("Next");
50 By.res(PKG, "actionPrev").descContains("Previous");
136 mUiObject.wait(Until.findObject(By.res(PKG, "header_title")), WAIT_TIME_MILLIS); in title()
153 Until.findObject(By.res(PKG, HIDE_BTN_RES)), WAIT_TIME_MILLIS); in longPressAndHide()
174 By.res(PKG, "header_title").text(meta.getString(MediaMetadata.METADATA_KEY_TITLE)); in hasMetadata()
176 By.res(PKG, "header_artist") in hasMetadata()
/platform_testing/tests/functional/calculator/src/com/android/calculator/functional/
DCalculatorHelper.java64 Until.findObject(By.res(PACKAGE_NAME, resource_id)), in clickButton()
88 Until.findObject(By.res(PACKAGE_NAME, result)), in getResultText()
96 Until.findObject(By.res(PACKAGE_NAME, result)), in clearResults()
104 Until.findObject(By.res(PACKAGE_NAME, result)), in scrollResults()
115 Until.findObject(By.res(PACKAGE_NAME, "pad_advanced")), in showAdvancedPad()
126 Until.findObject(By.res(PACKAGE_NAME, "pad_advanced")), in dismissAdvancedPad()
DCalculatorTests.java106 Until.findObject(By.res(mCalculatorHelper.PACKAGE_NAME, "del")), in testClearButton()
164 Until.findObject(By.res("android:id/alertTitle")), SHORT_TIMEOUT); in testComplexCalculationTimeout()
167 Until.findObject(By.res(mCalculatorHelper.PACKAGE_NAME, "message")), in testComplexCalculationTimeout()
172 Until.findObject(By.res("android:id/button2")), SHORT_TIMEOUT); in testComplexCalculationTimeout()
186 Until.findObject(By.res(mCalculatorHelper.PACKAGE_NAME, "toggle_mode")), in testDegRadSwitch()
191 Until.findObject(By.res(mCalculatorHelper.PACKAGE_NAME, "mode")), in testDegRadSwitch()
/platform_testing/tests/functional/overviewtests/src/com/android/overview/functional/
DMultiWindowTests.java79 UiObject2 calcArea = mDevice.wait(Until.findObject(By.res("android:id/content")), TIMEOUT); in testDockingUndockingOnMultiwindow()
96 (By.pkg(CALCULATOR_PACKAGE).res("android:id/content")), TIMEOUT); in testResizeHandleOnMultiwindow()
100 (By.pkg(GMAIL_PACKAGE).res("android:id/content")), TIMEOUT); in testResizeHandleOnMultiwindow()
108 (By.pkg(CALCULATOR_PACKAGE).res("android:id/content")), TIMEOUT); in testResizeHandleOnMultiwindow()
112 (By.pkg(GMAIL_PACKAGE).res("android:id/content")), TIMEOUT); in testResizeHandleOnMultiwindow()
134 (By.pkg(CALCULATOR_PACKAGE).res("android:id/content")), TIMEOUT)); in testLandscapeModeMultiwindow()
138 (By.pkg(GMAIL_PACKAGE).res("android:id/content")), TIMEOUT)); in testLandscapeModeMultiwindow()
/platform_testing/tests/jank/uibench_wear/src/com/android/wearable/uibench/janktests/
DUiBenchJankTests.java79 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()
DUiBenchJankTestsHelper.java95 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()

123456