Home
last modified time | relevance | path

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

/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/
DBatterySaverBgServiceTest.java59 final String targetPackage = APP_25_PACKAGE; in testBgServiceThrottled() local
67 runMakeUidIdle(targetPackage); in testBgServiceThrottled()
68 runKill(targetPackage); in testBgServiceThrottled()
71 requestClearIntent(targetPackage); in testBgServiceThrottled()
73 final String action = tryStartTestServiceAndReturnAction(targetPackage, false); in testBgServiceThrottled()
75 assertEquals(action, waitForLastIntentAction(targetPackage)); in testBgServiceThrottled()
85 runMakeUidIdle(targetPackage); in testBgServiceThrottled()
86 runKill(targetPackage); in testBgServiceThrottled()
89 requestClearIntent(targetPackage); in testBgServiceThrottled()
91 assertNull(requestLastIntent(targetPackage)); in testBgServiceThrottled()
[all …]
DBatterySaverAlarmTest.java118 private void scheduleAlarm(String targetPackage, int type, long triggerMillis) in scheduleAlarm() argument
120 scheduleAlarm(targetPackage, type, triggerMillis, /*whileIdle=*/ true); in scheduleAlarm()
123 private void scheduleAlarm(String targetPackage, int type, long triggerMillis, in scheduleAlarm() argument
133 final Payload response = mRpc.sendRequest(targetPackage, in scheduleAlarm()
144 private String startService(String targetPackage, boolean foreground) in startService() argument
148 final Payload response = mRpc.sendRequest(targetPackage, in startService()
160 private void stopService(String targetPackage) throws Exception { in stopService() argument
161 final Payload response = mRpc.sendRequest(targetPackage, in stopService()
180 final String targetPackage = APP_25_PACKAGE; in testAllowWhileIdleThrottled() local
186 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.java94 String targetPackage = getTargetPackage(commandIntent); in doBindService() local
98 bindIntent.setComponent(new ComponentName(targetPackage, SERVICE_NAME)); in doBindService()
100 ServiceConnection connection = addServiceConnection(targetPackage); in doBindService()
106 String targetPackage = getTargetPackage(commandIntent); in doUnbindService() local
107 context.unbindService(sServiceMap.remove(targetPackage)); in doUnbindService()
139 String targetPackage, int flags, Bundle extras) { in sendCommand() argument
147 intent.putExtra(EXTRA_TARGET_PACKAGE, targetPackage); in sendCommand()
/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/content/src/android/content/pm/cts/
DInstrumentationInfoTest.java62 assertEquals(expected.targetPackage, actual.targetPackage); in checkInfoSame()
DPackageManagerTest.java141 String targetPackage = "android"; in testQuery() local
143 targetPackage, 0); in testQuery()
/cts/hostsidetests/devicepolicy/app/LauncherTests/src/com/android/cts/launchertests/
DLauncherAppsTests.java328 private void assertActivityInjected(String targetPackage) { in assertActivityInjected() argument
336 if (compName.getPackageName().equals(targetPackage)) { in assertActivityInjected()
462 private void assertInjectedActivityNotFound(String targetPackage) { in assertInjectedActivityNotFound() argument
469 if (compName.getPackageName().equals(targetPackage)) { in assertInjectedActivityNotFound()
/cts/tests/app/src/android/app/cts/
DActivityManagerTest.java339 final String targetPackage = targetContext.getPackageName();
341 setForcedAppStandby(targetPackage, true);
343 setForcedAppStandby(targetPackage, false);
/cts/tests/tests/display/src/android/display/cts/
DDisplayTest.java426 String targetPackage =
433 launchActivity(targetPackage, clazz, null);