Home
last modified time | relevance | path

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

12

/platform_testing/libraries/health/rules/src/android/platform/test/rule/
DQuickstepPressureRule.java44 for (String pkg : mPackages) { in starting()
45 startActivity(pkg); in starting()
54 void startActivity(String pkg) { in startActivity() argument
56 getContext().startActivity(getContext().getPackageManager().getLaunchIntentForPackage(pkg)); in startActivity()
57 if (!getUiDevice().wait(Until.hasObject(By.pkg(pkg).depth(0)), UI_RESPONSE_TIMEOUT_MSECS)) { in startActivity()
DCleanPackageRule.java35 public CleanPackageRule(String pkg) { in CleanPackageRule() argument
36 this(pkg, true, true); in CleanPackageRule()
39 public CleanPackageRule(String pkg, boolean clearOnStarting, boolean ClearOnFinished) { in CleanPackageRule() argument
40 mPackage = pkg; in CleanPackageRule()
DDex2oatPressureRule.java87 if (!packagesToCompile.stream().allMatch(pkg -> installedPackages.contains(pkg))) { in starting()
94 .filter(pkg -> !installedPackages.contains(pkg)) in starting()
169 protected void runCompileCommand(String pkg, String filter) { in runCompileCommand() argument
171 executeShellCommand(String.format(COMPILE_COMMAND_TEMPLATE, filter, pkg)).trim(); in runCompileCommand()
178 pkg, filter, response)); in runCompileCommand()
208 for (String pkg : mPackagesToCompile) { in run()
209 runCompileCommand(pkg, mCompilationFilter); in run()
DNotificationPressureRule.java51 public NotificationPressureRule(int notificationCount, String pkg) in NotificationPressureRule() argument
60 mPackage = pkg; in NotificationPressureRule()
DAppVersionRule.java40 public AppVersionRule(String pkg, String version) { in AppVersionRule() argument
41 mPackage = pkg; in AppVersionRule()
/platform_testing/libraries/app-helpers/interfaces/handheld/src/android/platform/helpers/
DINotificationHelper.java75 default UiObject2 postBigTextNotification(@Nullable String pkg) { in postBigTextNotification() argument
86 default UiObject2 postBigPictureNotification(String pkg) { in postBigPictureNotification() argument
97 default UiObject2 postMessagingStyleNotification(String pkg) { in postMessagingStyleNotification() argument
131 default UiObject2 postConversationNotification(String pkg) { in postConversationNotification() argument
145 default void postNotifications(int count, String pkg) { in postNotifications() argument
160 default void postNotifications(int count, String pkg, boolean interrupting) { in postNotifications() argument
/platform_testing/libraries/collectors-helper/jank/src/com/android/helpers/
DJankCollectionHelper.java199 for (String pkg : mTrackedPackages) { in startCollecting()
201 clearGfxInfo(pkg); in startCollecting()
232 for (String pkg : mTrackedPackages) { in getMetrics()
234 result.putAll(getGfxInfoMetrics(pkg)); in getMetrics()
275 void clearGfxInfo(String pkg) { in clearGfxInfo() argument
277 if (pkg.isEmpty()) { in clearGfxInfo()
284 String command = String.format(GFXINFO_COMMAND_RESET, pkg); in clearGfxInfo()
287 verifyMatches(output, getHeaderMatcher(pkg), "No package header in output."); in clearGfxInfo()
288 Log.v(LOG_TAG, String.format("Cleared %s gfxinfo.", pkg)); in clearGfxInfo()
303 Map<String, Double> getGfxInfoMetrics(String pkg) { in getGfxInfoMetrics() argument
[all …]
/platform_testing/libraries/collectors-helper/app/src/com/android/helpers/
DAppVersionHelper.java68 for (String pkg : mPackageNames) { in getMetrics()
71 PackageInfo pkgInfo = packageManager.getPackageInfo(pkg, 0); in getMetrics()
72 metrics.put(constructKey(METRIC_PREFIX, pkg), in getMetrics()
74 Log.d(TAG, "Found app version for package name " + pkg); in getMetrics()
76 Log.e(TAG, "Can't find package name " + pkg); in getMetrics()
/platform_testing/libraries/app-helpers/interfaces/auto/src/android/platform/helpers/
DIAutoNotificationMockingHelper.java34 public default void postNotifications(int count, String pkg) { in postNotifications() argument
49 public default void postNotifications(int count, String pkg, boolean interrupting) { in postNotifications() argument
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/automotive-helpers/notifications-app-helper/src/android/platform/helpers/
DAutoNotificationMockingHelperImpl.java93 public void postNotifications(int count, String pkg) { in postNotifications() argument
94 postNotifications(count, pkg, false /* interrupting */); in postNotifications()
99 public void postNotifications(int count, String pkg, boolean interrupting) { in postNotifications() argument
101 Notification.Builder builder = getBuilder(pkg); in postNotifications()
145 private Notification.Builder getBuilder(String pkg) { in getBuilder() argument
152 if (pkg != null) { in getBuilder()
157 context.getPackageManager().getLaunchIntentForPackage(pkg), in getBuilder()
/platform_testing/libraries/system-helpers/sysui-helper/src/android/system/helpers/
DOverviewHelper.java103 for (PackageInfo pkg : packages) { in populateManyRecentApps()
104 if (pkg.packageName.equals(mInstrumentation.getTargetContext().getPackageName())) { in populateManyRecentApps()
107 Intent intent = pm.getLaunchIntentForPackage(pkg.packageName); in populateManyRecentApps()
116 Log.i(TAG, "Failed to start package " + pkg.packageName + ", exception: " + e); in populateManyRecentApps()
121 launchedPackages.add(pkg.packageName); in populateManyRecentApps()
139 for (String pkg : packages) { in forceStopPackages()
140 mCommandsHelper.executeShellCommand("am force-stop " + pkg); in forceStopPackages()
195 mDevice.wait(Until.hasObject(By.pkg(appPackageName) in dockAppToTopMultiwindowSlot()
224 UiObject2 appArea = mDevice.wait(Until.findObject(By.pkg(topAppPackageName) in undockAppFromMultiwindow()
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/common/windowmanager/windows/
DWindowContainer.kt101 val pkg = split[0] in <lambda>() constant
104 if (clazz.startsWith("$pkg.")) { in <lambda>()
105 clazz = clazz.slice(pkg.length + 1..clazz.lastIndex) in <lambda>()
107 return "$pkg/$clazz" in <lambda>()
/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()
/platform_testing/libraries/flicker/src/com/android/server/wm/traces/common/
DFlickerComponentName.kt117 val pkg = str.substring(0, sep) in unflattenFromString() constant
120 cls = pkg + cls in unflattenFromString()
122 return FlickerComponentName(pkg, cls) in unflattenFromString()
/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/tests/health/scenarios/tests/src/android/platform/test/scenario/generic/
DIdleInAppMicrobenchmark.java78 public void setPackage(String pkg); in setPackage() argument
108 public void setPackage(String pkg) { in setPackage() argument
109 mPackage = pkg; in setPackage()
/platform_testing/libraries/health/rules/tests/src/android/platform/test/rule/
DNotificationPressureRuleTest.java92 TestableNotificationPressureRule(int notificationCount, String pkg) { in TestableNotificationPressureRule() argument
93 super(notificationCount, pkg); in TestableNotificationPressureRule()
DQuickstepPressureRuleTest.java82 void startActivity(String pkg) { in startActivity() argument
83 mOperations.add(String.format("start %s", pkg)); in startActivity()
/platform_testing/libraries/automotive-helpers/standard-app-helper/src/android/platform/helpers/
DAbstractAutoStandardAppHelper.java66 String pkg = getPackage(); in open() local
70 Log.i(LOG_TAG, String.format("Sending command to launch: %s", pkg)); in open()
73 throw new RuntimeException(String.format("Failed to find package: %s", pkg), e); in open()
77 if (!mDevice.wait(Until.hasObject(By.pkg(pkg).depth(0)), 30000)) { in open()
79 String.format("Did not find package, %s, in foreground.", pkg)); in open()
/platform_testing/libraries/launcher-helper/src/android/support/test/launcherhelper/
DAutoLauncherStrategy.java83 {"Maps", By.pkg(MAPS_PACKAGE).depth(0)},
84 {"Media", By.pkg(MEDIA_PACKAGE).depth(0)},
85 {"Radio", By.pkg(RADIO_PACKAGE).depth(0)},
86 {"Dial", By.pkg(DIAL_PACKAGE).depth(0)},
89 {"Google Assistant", By.pkg(ASSISTANT_PACKAGE)},
90 {"Settings", By.pkg(SETTINGS_PACKAGE).depth(0)},
/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()

12