Home
last modified time | relevance | path

Searched refs:targetPackage (Results 1 – 20 of 20) sorted by relevance

/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DBatterySaverBgServiceTest.java61 final String targetPackage = APP_25_PACKAGE; in testBgServiceThrottled() local
69 runMakeUidIdle(targetPackage); in testBgServiceThrottled()
70 runKill(targetPackage); in testBgServiceThrottled()
73 requestClearIntent(targetPackage); in testBgServiceThrottled()
75 final String action = tryStartTestServiceAndReturnAction(targetPackage, false); in testBgServiceThrottled()
77 assertEquals(action, waitForLastIntentAction(targetPackage)); in testBgServiceThrottled()
87 runMakeUidIdle(targetPackage); in testBgServiceThrottled()
88 runKill(targetPackage); in testBgServiceThrottled()
91 requestClearIntent(targetPackage); in testBgServiceThrottled()
93 assertNull(requestLastIntent(targetPackage)); in testBgServiceThrottled()
[all …]
DBatterySaverAlarmTest.java123 private void scheduleAlarm(String targetPackage, int type, long triggerMillis) in scheduleAlarm() argument
125 scheduleAlarm(targetPackage, type, triggerMillis, /*whileIdle=*/ true, in scheduleAlarm()
129 private void scheduleAlarm(String targetPackage, int type, long triggerMillis, in scheduleAlarm() argument
140 final Payload response = mRpc.sendRequest(targetPackage, in scheduleAlarm()
151 private String startService(String targetPackage, boolean foreground) in startService() argument
155 final Payload response = mRpc.sendRequest(targetPackage, in startService()
167 private void stopService(String targetPackage) throws Exception { in stopService() argument
168 final Payload response = mRpc.sendRequest(targetPackage, in stopService()
188 final String targetPackage = APP_25_PACKAGE; in testAllowWhileIdleThrottled() local
194 forcePackageIntoBg(targetPackage); in testAllowWhileIdleThrottled()
[all …]
DBroadcastRpc.java41 public Payload sendRequest(String targetPackage, in sendRequest() argument
43 return super.invoke(getCommReceiver(targetPackage), testServiceRequest); in sendRequest()
/cts/tests/app/app/src/android/app/stubs/
DCommandReceiver.java292 String targetPackage = getTargetPackage(commandIntent); in doBindService() local
296 bindIntent.setComponent(new ComponentName(targetPackage, serviceName)); in doBindService()
298 ServiceConnection connection = addServiceConnection(targetPackage); in doBindService()
304 String targetPackage = getTargetPackage(commandIntent); in doUnbindService() local
305 context.unbindService(sServiceMap.remove(targetPackage)); in doUnbindService()
309 String targetPackage = getTargetPackage(commandIntent); in doStartForegroundService() local
312 fgsIntent.setComponent(new ComponentName(targetPackage, FG_SERVICE_NAME)); in doStartForegroundService()
324 String targetPackage = getTargetPackage(commandIntent); in doStartService() local
327 fgsIntent.setComponent(new ComponentName(targetPackage, FG_SERVICE_NAME)); in doStartService()
332 String targetPackage = getTargetPackage(commandIntent); in doStartForegroundServiceWithType() local
[all …]
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/util/
DAppMimeGroups.java46 private AppMimeGroups(Context context, String targetPackage) { in AppMimeGroups() argument
48 mTargetPackage = targetPackage; in AppMimeGroups()
51 public static AppMimeGroups with(Context context, String targetPackage) { in with() argument
52 return new AppMimeGroups(context, targetPackage); in with()
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/assertions/
DAppAssertionsByGroupData.java28 AppAssertionsByGroupData(Context context, String targetPackage) { in AppAssertionsByGroupData() argument
29 mAppMimeGroups = AppMimeGroups.with(context, targetPackage); in AppAssertionsByGroupData()
/cts/hostsidetests/packagemanager/dynamicmime/test/src/android/dynamicmime/testapp/commands/
DAppCommands.java30 AppCommands(Context context, String targetPackage) { in AppCommands() argument
31 mAppMimeGroups = AppMimeGroups.with(context, targetPackage); in AppCommands()
/cts/tests/tests/syncmanager/src/android/content/syncmanager/cts/
DBroadcastRpc.java45 public Payload.Response invoke(String targetPackage, Consumer<Builder> c) throws Exception { in invoke() argument
49 return super.invoke(getCommReceiver(targetPackage), in invoke()
/cts/tests/tests/packageinstaller/userrestriction/src/android/packageinstaller/userrestriction/cts/
DUserRestrictionInstallTest.kt220 var targetPackage = TestApis.packages().installedForUser(initialUser).filter { in <lambda>() variable
224 .that(targetPackage.size) in <lambda>()
227 targetPackage = TestApis.packages().installedForUser(workProfile).filter { in <lambda>()
233 .that(targetPackage.size) in <lambda>()
254 val targetPackage = TestApis.packages().installedForUser(workProfile).filter { in <lambda>() constant
261 .that(targetPackage.size) in <lambda>()
330 var targetPackage = TestApis.packages().installedForUser(initialUser).filter { in <lambda>() variable
334 .that(targetPackage.size) in <lambda>()
337 targetPackage = TestApis.packages().installedForUser(workProfile).filter { in <lambda>()
341 .that(targetPackage.size) in <lambda>()
/cts/tests/tests/content/src/android/content/pm/cts/
DInstrumentationInfoTest.java62 assertEquals(expected.targetPackage, actual.targetPackage); in checkInfoSame()
DPackageManagerTest.java408 String targetPackage = "android"; in testQuery() local
410 targetPackage, 0); in testQuery()
/cts/tests/tests/display/src/android/display/cts/
DTestBase.java42 String targetPackage = in launchScreenOnActivity() local
49 launchActivity(targetPackage, clazz, null); in launchScreenOnActivity()
/cts/hostsidetests/devicepolicy/app/LauncherTests/src/com/android/cts/launchertests/
DLauncherAppsTests.java330 private void assertActivityInjected(String targetPackage) { in assertActivityInjected() argument
331 Log.d(TAG, "Getting activities for package " + targetPackage + " on user " + mUser); in assertActivityInjected()
343 if (compName.getPackageName().equals(targetPackage)) { in assertActivityInjected()
361 assertWithMessage("user %s has no launchable activity for app %s", mUser, targetPackage) in assertActivityInjected()
472 private void assertInjectedActivityNotFound(String targetPackage) { in assertInjectedActivityNotFound() argument
473 Log.d(TAG, "Searching for package " + targetPackage + " on user " + mUser); in assertInjectedActivityNotFound()
481 if (compName.getPackageName().equals(targetPackage)) { in assertInjectedActivityNotFound()
/cts/tests/tests/appenumeration/src/android/appenumeration/cts/
DInputMethodEnumerationTests.java129 private String[] getEnabledInputMethodSubtypeList(String sourcePackage, String targetPackage) in getEnabledInputMethodSubtypeList() argument
131 final InputMethodInfo imi = getInputMethod(targetPackage); in getEnabledInputMethodSubtypeList()
139 return !infos.isEmpty() ? new String[]{targetPackage} : new String[0]; in getEnabledInputMethodSubtypeList()
DAppEnumerationTests.java1598 private void startExplicitIntentViaComponent(String sourcePackage, String targetPackage) in startExplicitIntentViaComponent() argument
1600 sendCommandBlocking(sourcePackage, targetPackage, in startExplicitIntentViaComponent()
1602 .setClassName(targetPackage, ACTIVITY_CLASS_DUMMY_ACTIVITY), in startExplicitIntentViaComponent()
1606 String sourcePackage, String targetPackage) throws Exception { in startExplicitIntentNotExportedViaComponent() argument
1607 sendCommandBlocking(sourcePackage, targetPackage, in startExplicitIntentNotExportedViaComponent()
1609 .setClassName(targetPackage, ACTIVITY_CLASS_NOT_EXPORTED), in startExplicitIntentNotExportedViaComponent()
1612 private void startExplicitIntentViaPackageName(String sourcePackage, String targetPackage) in startExplicitIntentViaPackageName() argument
1614 sendCommandBlocking(sourcePackage, targetPackage, in startExplicitIntentViaPackageName()
1615 new Intent(ACTION_MANIFEST_ACTIVITY).setPackage(targetPackage), in startExplicitIntentViaPackageName()
1620 String sourcePackage, String targetPackage) throws Exception { in startExplicitPermissionProtectedIntentViaComponent() argument
[all …]
/cts/tests/app/BroadcastsTest/src/android/app/cts/broadcasts/
DBaseBroadcastTest.java118 protected void forceDelayBroadcasts(String targetPackage) { in forceDelayBroadcasts() argument
119 forceDelayBroadcasts(targetPackage, BROADCAST_FORCED_DELAYED_DURATION_MS); in forceDelayBroadcasts()
122 private void forceDelayBroadcasts(String targetPackage, long delayedDurationMs) { in forceDelayBroadcasts() argument
124 mAm.forceDelayBroadcastDelivery(targetPackage, delayedDurationMs)); in forceDelayBroadcasts()
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/appexit/
DAppExitHostTest.java126 private void performLogStatsdTest(String testMethod, String targetPackage, int expectedSize, in performLogStatsdTest() argument
132 ConfigUtils.uploadConfigForPushedAtomWithUid(getDevice(), targetPackage, in performLogStatsdTest() local
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DUsageStatsTest.java485 long startTime, long endTime, String targetPackage) { in verifyLastTimeVisibleWithinRange() argument
486 UsageStats stats = getAggregateUsageStats(startTime, endTime, targetPackage); in verifyLastTimeVisibleWithinRange()
493 stats = getAggregateUsageStats(startTime, endTime, targetPackage); in verifyLastTimeVisibleWithinRange()
502 long startTime, long endTime, String targetPackage) { in verifyLastTimeAnyComponentUsedWithinRange() argument
504 UsageStats stats = getAggregateUsageStats(startTime, endTime, targetPackage); in verifyLastTimeAnyComponentUsedWithinRange()
511 stats = getAggregateUsageStats(startTime, endTime, targetPackage); in verifyLastTimeAnyComponentUsedWithinRange()
520 mUsageStatsManager.getLastTimeAnyComponentUsed(targetPackage) / DAY; in verifyLastTimeAnyComponentUsedWithinRange()
526 private UsageStats getAggregateUsageStats(long startTime, long endTime, String targetPackage) { in getAggregateUsageStats() argument
532 stats = map.get(targetPackage); in getAggregateUsageStats()
/cts/tests/app/src/android/app/cts/
DActivityManagerTest.java530 final String targetPackage = mTargetContext.getPackageName();
532 setForcedAppStandby(targetPackage, true);
534 setForcedAppStandby(targetPackage, false);
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/
Dcurrent.txt1647 field public static final int targetPackage = 16842785; // 0x1010021
12455 field public String targetPackage;