Home
last modified time | relevance | path

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

123

/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DAutoLauncherStrategy.java52 private static final BySelector UP_BTN = By.res(Pattern.compile(".*:id/page_up"));
53 private static final BySelector DOWN_BTN = By.res(Pattern.compile(".*:id/page_down"));
54 private static final BySelector APP_SWITCH = By.res(Pattern.compile(".*:id/" + APP_SWITCH_ID));
55 private static final BySelector APP_LIST = By.res(Pattern.compile(".*:id/" + APP_LIST_ID));
57 By.res(Pattern.compile(".*:id/" + APP_LIST_ID)).scrollable(true);
58 private static final BySelector QUICK_SETTINGS = By.res(SYSTEM_UI_PACKAGE, "qs");
59 private static final BySelector LEFT_HVAC = By.res(SYSTEM_UI_PACKAGE, "hvacleft");
60 private static final BySelector RIGHT_HVAC = By.res(SYSTEM_UI_PACKAGE, "hvacright");
64 { "Home", By.res(SYSTEM_UI_PACKAGE, "home").clickable(true) },
65 { "Maps", By.res(SYSTEM_UI_PACKAGE, "maps_nav").clickable(true) },
[all …]
DLauncher3Strategy.java42 By.res(getSupportedLauncherPackage(), "cling_dismiss_longpress_info")); in dismissHomeScreenCling()
53 return By.res(getSupportedLauncherPackage(), "all_apps_handle"); in getAllAppsButtonSelector()
DLeanbackLauncherStrategy.java119 return By.res(getSupportedLauncherPackage(), "main_list_view"); in getWorkspaceSelector()
127 return By.res(getSupportedLauncherPackage(), "search_view"); in getSearchRowSelector()
135 return By.res(getSupportedLauncherPackage(), "notification_view"); in getNotificationRowSelector()
143 return By.res(getSupportedLauncherPackage(), "list").desc("Apps"); in getAppsRowSelector()
151 return By.res(getSupportedLauncherPackage(), "list").desc("Games"); in getGamesRowSelector()
159 return By.res(getSupportedLauncherPackage(), "list").desc("").hasDescendant( in getSettingsRowSelector()
160 By.res(getSupportedLauncherPackage(), "icon"), 3); in getSettingsRowSelector()
176 return By.res(getSupportedLauncherPackage(), "content_text").text("Now Playing"); in getNowPlayingCardSelector()
201 BySelector app = By.res(getSupportedLauncherPackage(), "app_banner").desc(appName); in launch()
222 BySelector keyboardOrb = By.res(getSupportedLauncherPackage(), "keyboard_orb"); in search()
[all …]
DAospLauncherStrategy.java36 By.res(LAUNCHER_PKG, "apps_customize_pane_content");
37 private static final BySelector WORKSPACE = By.res(LAUNCHER_PKG, "workspace");
38 private static final BySelector HOTSEAT = By.res(LAUNCHER_PKG, "hotseat");
54 UiObject2 cling = mDevice.findObject(By.res(LAUNCHER_PKG, "workspace_cling")); in open()
76 UiObject2 cling = mDevice.findObject(By.res(LAUNCHER_PKG, "cling_dismiss") in openAllApps()
157 By.res("").clazz(TextView.class).desc(appName), packageName); in launch()
DBaseLauncher3Strategy.java141 mDevice.findObject(By.res(getSupportedLauncherPackage(), "widget_button")).click(); in openAllWidgets()
176 return By.res(getSupportedLauncherPackage(), "apps_list_view"); in getAllAppsSelector()
184 return By.res(getSupportedLauncherPackage(), "widgets_list_view"); in getAllWidgetsSelector()
192 return By.res(getSupportedLauncherPackage(), "workspace"); in getWorkspaceSelector()
200 return By.res(getSupportedLauncherPackage(), "hotseat"); in getHotSeatSelector()
DTvLauncherStrategy.java60 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,
202 Assert.assertNotNull(selectBidirect(By.res(getSupportedLauncherPackage(), "settings"), in openSettings()
206 Until.hasObject(By.res(PACKAGE_SETTINGS, "decor_title").text("Settings")), in openSettings()
[all …]
DNexusLauncherStrategy.java71 return By.res(getSupportedLauncherPackage(), "apps_view"); in getAllAppsSelector()
87 return By.res(getSupportedLauncherPackage(), "hotseat"); in getHotSeatSelector()
91 return By.res(LAUNCHER_PKG, "overview_panel"); in getLauncherOverviewSelector()
152 By.res(getSupportedLauncherPackage(), "deep_shortcuts_container")); in openAllWidgets()
/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/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()
DAccessibilityScannerHelper.java126 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/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/tests/functional/calculator/src/com/android/calculator/functional/
DCalculatorHelper.java67 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()
DCalculatorTests.java109 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/
DUiBenchJankTests.java80 By.res("android", "content")), mHelper.TIMEOUT); in testFullscreenOverdraw()
108 By.res("android", "content")), mHelper.TIMEOUT); in testInvalidate()
124 By.res("android", "content")), mHelper.TIMEOUT); in testTrivialAnimation()
171 By.res("android", "content")), mHelper.TIMEOUT); in testTrivialRecyclerListViewFling()
182 By.res("android", "content")), mHelper.TIMEOUT); in testTrivialRecyclerListViewFling()
187 By.res("android", "content")), mHelper.TIMEOUT); in testTrivialRecyclerListViewFling()
206 By.res("android", "content")), mHelper.TIMEOUT); in testInflatingListViewFling()
217 By.res("android", "content")), mHelper.TIMEOUT); in testInflatingListViewFling()
222 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()
/platform_testing/libraries/flicker/src/com/android/server/wm/flicker/helpers/
DAutomationUtils.java82 boolean enabled = device.findObject(By.res(SYSTEMUI_PACKAGE, "recent_apps")) == null; in isQuickstepEnabled()
90 UiObject2 navBar = device.findObject(By.res(SYSTEMUI_PACKAGE, "navigation_bar_frame")); in openQuickstep()
112 BySelector recentsSysUISelector = By.res(device.getLauncherPackageName(), "overview_panel"); in openQuickstep()
153 By.res(device.getLauncherPackageName(), "clear_all_button"); in clearRecents()
164 return By.res(device.getLauncherPackageName(), "overview_panel"); in getLauncherOverviewSelector()
168 BySelector recentsSelector = By.res(SYSTEMUI_PACKAGE, "recent_apps"); in longPressRecents()
187 By.res(device.getLauncherPackageName(), "icon").clazz(View.class); in launchSplitScreen()
207 return By.res(SYSTEMUI_PACKAGE, "docked_divider_handle"); in getSplitScreenDividerSelector()
255 return By.res(SYSTEMUI_PACKAGE, "background"); in getPipWindowSelector()
264 UiObject2 exitPipObject = device.findObject(By.res(SYSTEMUI_PACKAGE, "dismiss")); in closePipWindow()
/platform_testing/tests/functional/overviewtests/src/com/android/overview/functional/
DMultiWindowTests.java91 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/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DOverviewHelper.java24 import android.content.res.Resources;
79 return mDevice.wait(Until.findObject(By.res(RECENTS)), TIMEOUT); in navigateToRecents()
167 (By.res("com.android.systemui:id/recents_view")),TIMEOUT); in dockAppToTopMultiwindowSlot()
195 .res("android:id/content")), TIMEOUT)); in dockAppToTopMultiwindowSlot()
224 .res("android:id/content")), TIMEOUT); in undockAppFromMultiwindow()
239 final Resources res = Resources.getSystem(); in isRecentsInLauncher() local
240 int id = res.getIdentifier("config_recentsComponentName", "string", "android"); in isRecentsInLauncher()
241 ComponentName recentsComponent = ComponentName.unflattenFromString(res.getString(id)); in isRecentsInLauncher()
/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/
DDownloadAppTests.java80 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/app-helpers/core/src/android/platform/helpers/watchers/
DAppIsNotRespondingWatcher.java43 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/
DActivityHelper.java109 while (!mDevice.wait(Until.hasObject(By.res(SYSTEMUI_PACKAGE, "recents_view")), in clearRecents()
119 By.res(SYSTEMUI_PACKAGE, "recents_view")), ONE_SECOND * 5)); in clearRecents()
123 By.res(SYSTEMUI_PACKAGE, "task_view_thumbnail")), ONE_SECOND * 5).size(); in clearRecents()
141 while (!mDevice.wait(Until.hasObject(By.res(NEXUS_LAUNCHER, "overview_panel")), in clearRecentsByClearAll()
146 while (mDevice.findObject(By.res(NEXUS_LAUNCHER, "overview_panel")) in clearRecentsByClearAll()
/platform_testing/tests/jank/androidtvjanktests/src/com/android/androidtv/janktests/
DSystemUiJankTests.java48 private static final BySelector SELECTOR_TOP_ROW = By.res(TVLAUNCHER_PACKAGE, "top_row");
66 .wait(Until.findObject(By.res(TVLAUNCHER_PACKAGE, "home_view_container")), in goHome()
96 selectBidirect(By.res(TVLAUNCHER_PACKAGE, "settings").focused(true), Direction.RIGHT)); in goToSettingsButton()
114 By.res(SETTINGS_PACKAGE, "settings_preference_fragment_container")), in testNavigateToSettings()
127 Until.hasObject(By.res(SETTINGS_PACKAGE, "settings_preference_fragment_container")), in goToSettings()
/platform_testing/tests/functional/testapks/permissiontestappmv1/
DAndroid.bp8 resource_dirs: ["res"],
/platform_testing/libraries/device-collectors/src/hostsidetests/src/com/android/loggers/
DDeviceFileLoggerHostTest.java83 for (TestResult res : result.getTestResults().values()) { in testFileIsLogged()
84 assertTrue(res.getMetrics().containsKey("fake_file")); in testFileIsLogged()
85 assertEquals("/fake/path", res.getMetrics().get("fake_file")); in testFileIsLogged()

123