Home
last modified time | relevance | path

Searched refs:pkg (Results 1 – 25 of 31) sorted by relevance

12

/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DQuickstepPressureRule.java42 for (String pkg : mPackages) { in starting()
43 startActivity(pkg); in starting()
52 void startActivity(String pkg) { in startActivity() argument
54 getContext().startActivity(getContext().getPackageManager().getLaunchIntentForPackage(pkg)); in startActivity()
55 if (!getUiDevice().wait(Until.hasObject(By.pkg(pkg).depth(0)), UI_RESPONSE_TIMEOUT_MSECS)) { in startActivity()
DNotificationPressureRule.java51 public NotificationPressureRule(int notificationCount, String pkg) in NotificationPressureRule() argument
60 mPackage = pkg; in NotificationPressureRule()
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/
DJankCollectionHelper.java176 for (String pkg : mTrackedPackages) { in startCollecting()
178 clearGfxInfo(pkg); in startCollecting()
209 for (String pkg : mTrackedPackages) { in getMetrics()
211 result.putAll(getGfxInfoMetrics(pkg)); in getMetrics()
252 void clearGfxInfo(String pkg) { in clearGfxInfo() argument
254 if (pkg.isEmpty()) { in clearGfxInfo()
261 String command = String.format(GFXINFO_COMMAND_RESET, pkg); in clearGfxInfo()
264 verifyMatches(output, getHeaderMatcher(pkg), "No package header in output."); in clearGfxInfo()
265 Log.v(LOG_TAG, String.format("Cleared %s gfxinfo.", pkg)); in clearGfxInfo()
280 Map<String, Double> getGfxInfoMetrics(String pkg) { in getGfxInfoMetrics() argument
[all …]
/platform_testing/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/
DIAutoGenericAppHelper.java30 void setPackage(String pkg); in setPackage() argument
35 void setLaunchActivity(String pkg); in setLaunchActivity() argument
/platform_testing/libraries/app-helpers/core/src/android/platform/helpers/
DAbstractStandardAppHelper.java118 String pkg = getPackage(); in open() local
125 Log.i(LOG_TAG, String.format("Sending command to launch: %s", pkg)); in open()
129 throw new TestHelperException(String.format("Failed to find package: %s", pkg), e); in open()
134 if (!mDevice.hasObject(By.pkg(pkg).depth(0))) { in open()
135 getLauncherStrategy().launch(id, pkg); in open()
136 Log.i(LOG_TAG, "Launched package: id=" + id + ", pkg=" + pkg); in open()
141 if (!mDevice.wait(Until.hasObject(By.pkg(pkg).depth(0)), mLaunchTimeout)) { in open()
146 pkg, System.currentTimeMillis() - launchInitiationTimeMs)); in open()
211 String pkg = getPackage(); in getVersion() local
213 if (null == pkg || pkg.isEmpty()) { in getVersion()
[all …]
DILauncherHelper.java57 public void launchApp(String name, @Nullable String pkg); in launchApp() argument
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DOverviewHelper.java102 for (PackageInfo pkg : packages) { in populateManyRecentApps()
103 if (pkg.packageName.equals(mInstrumentation.getTargetContext().getPackageName())) { in populateManyRecentApps()
106 Intent intent = pm.getLaunchIntentForPackage(pkg.packageName); in populateManyRecentApps()
115 Log.i(TAG, "Failed to start package " + pkg.packageName + ", exception: " + e); in populateManyRecentApps()
120 launchedPackages.add(pkg.packageName); in populateManyRecentApps()
138 for (String pkg : packages) { in forceStopPackages()
139 mCommandsHelper.executeShellCommand("am force-stop " + pkg); in forceStopPackages()
194 mDevice.wait(Until.hasObject(By.pkg(appPackageName) in dockAppToTopMultiwindowSlot()
223 UiObject2 appArea = mDevice.wait(Until.findObject(By.pkg(topAppPackageName) in undockAppFromMultiwindow()
DHotseatHelper.java63 UiObject2 appLoaded = mDevice.wait(Until.findObject(By.pkg(appPackage)), TIMEOUT * 2); in launchAppFromHotseat()
/platform_testing/tests/functional/overviewtests/src/com/android/overview/functional/
DMultiWindowTests.java108 (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()
DOverviewHelper.java157 mDevice.wait(Until.hasObject(By.pkg(appPackageName) in dockAppToTopMultiwindowSlot()
187 UiObject2 appArea = mDevice.wait(Until.findObject(By.pkg(topAppPackageName) in undockAppFromMultiwindow()
/platform_testing/tests/health/scenarios/src/android/platform/test/scenario/generic/
DOpenApp.java74 public void setPackage(String pkg); in setPackage() argument
104 public void setPackage(String pkg) { in setPackage() argument
105 mPackage = pkg; in setPackage()
DOpenApps.java59 String pkg = pkgs[i]; in testOpen() local
63 helper.setPackage(pkg); in testOpen()
/platform_testing/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/
DINotificationHelper.java55 public default void postNotifications(int count, String pkg) { in postNotifications() argument
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DQuickstepPressureRuleTest.java82 void startActivity(String pkg) { in startActivity() argument
83 mOperations.add(String.format("start %s", pkg)); in startActivity()
DNotificationPressureRuleTest.java92 TestableNotificationPressureRule(int notificationCount, String pkg) { in TestableNotificationPressureRule() argument
93 super(notificationCount, pkg); in TestableNotificationPressureRule()
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DAutoLauncherStrategy.java79 { "Maps", By.pkg(MAPS_PACKAGE).depth(0) },
80 { "Media", By.pkg(MEDIA_PACKAGE).depth(0) },
81 { "Radio", By.pkg(RADIO_PACKAGE).depth(0) },
82 { "Dial", By.pkg(DIAL_PACKAGE).depth(0) },
85 { "Google Assistant", By.pkg(ASSISTANT_PACKAGE) },
86 { "Settings", By.pkg(SETTINGS_PACKAGE).depth(0) },
DTvLauncherStrategy.java226 String pkg = getSupportedLauncherPackage(); in getVersionCode() local
227 if (null == pkg || pkg.isEmpty()) { in getVersionCode()
238 pInfo = pm.getPackageInfo(pkg, 0); in getVersionCode()
241 Log.w(LOG_TAG, String.format("package name is not found: %s", pkg)); in getVersionCode()
691 BySelector appMain = By.pkg(packageName).depth(0);
731 BySelector appMain = By.pkg(packageName).depth(0);
765 return mDevice.hasObject(By.pkg(appPackage).depth(0));
DCommonLauncherHelper.java221 By.pkg(packageName).depth(0)), APP_LAUNCH_TIMEOUT); in verifyAppStart()
233 return mDevice.hasObject(By.pkg(appPackage).depth(0)); in isAppOpen()
/platform_testing/libraries/aupt-lib/src/android/support/test/aupt/
DUiWatchers.java50 By.pkg("android").textContains("isn't responding")); in registerAnrAndCrashWatchers()
65 By.pkg("android").textContains("has stopped")); in registerAnrAndCrashWatchers()
/platform_testing/libraries/collectors-helper/jank/test/src/com/android/helpers/
DJankCollectionHelperTest.java407 private String buildMetricKey(String pkg, String id) { in buildMetricKey() argument
408 return constructKey(JankCollectionHelper.GFXINFO_METRICS_PREFIX, pkg, id); in buildMetricKey()
411 private void mockResetCommand(String pkg, String output) throws IOException { in mockResetCommand() argument
412 String cmd = String.format(GFXINFO_COMMAND_RESET, pkg.isEmpty() ? "--" : pkg); in mockResetCommand()
416 private void mockGetCommand(String pkg, String output) throws IOException { in mockGetCommand() argument
417 String cmd = String.format(GFXINFO_COMMAND_GET, pkg); in mockGetCommand()
/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/tests/perf/BootHelperApp/src/com/android/boothelper/
DBootHelperTest.java151 public Activity launchActivity(String pkg, Class activityCls, Intent intent) { in launchActivity() argument
152 intent.setClassName(pkg, activityCls.getName()); in launchActivity()
/platform_testing/utils/crashcollector/src/android/test/crashcollector/
DCollector.java169 public boolean activityStarting(Intent intent, String pkg) throws RemoteException { in activityStarting() argument
178 public boolean activityResuming(String pkg) throws RemoteException { in activityResuming() argument
/platform_testing/tests/functional/permission/src/com/android/functional/permissiontests/
DGenericAppPermissionTests.java112 if (!mDevice.hasObject(By.pkg(PERMISSION_TEST_APP_PKG).depth(0))) { in testPermissionDialogAllow()
126 if (!mDevice.hasObject(By.pkg(PERMISSION_TEST_APP_PKG).depth(0))) { in testPermissionDialogDenyFlow()
/platform_testing/tests/jank/UbSystemUiJankTests/src/android/platform/systemui/tests/jank/
DSettingsJankTests.java76 mDevice.wait(Until.hasObject(By.pkg(SETTINGS_PACKAGE).depth(0)), TIMEOUT); in setUp()

12