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.java119 private void scheduleAlarm(String targetPackage, int type, long triggerMillis) in scheduleAlarm() argument
121 scheduleAlarm(targetPackage, type, triggerMillis, /*whileIdle=*/ true); in scheduleAlarm()
124 private void scheduleAlarm(String targetPackage, int type, long triggerMillis, in scheduleAlarm() argument
134 final Payload response = mRpc.sendRequest(targetPackage, in scheduleAlarm()
145 private String startService(String targetPackage, boolean foreground) in startService() argument
149 final Payload response = mRpc.sendRequest(targetPackage, in startService()
161 private void stopService(String targetPackage) throws Exception { in stopService() argument
162 final Payload response = mRpc.sendRequest(targetPackage, in stopService()
181 final String targetPackage = APP_25_PACKAGE; in testAllowWhileIdleThrottled() local
187 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.java91 String targetPackage = getTargetPackage(commandIntent); in doBindService() local
95 bindIntent.setComponent(new ComponentName(targetPackage, SERVICE_NAME)); in doBindService()
97 ServiceConnection connection = addServiceConnection(targetPackage); in doBindService()
102 String targetPackage = getTargetPackage(commandIntent); in doUnbindService() local
103 ServiceConnection connection = sServiceMap.remove(targetPackage); in doUnbindService()
136 String targetPackage, int flags, Bundle extras) { in sendCommand() argument
144 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.java340 private void assertActivityInjected(String targetPackage) { in assertActivityInjected() argument
348 if (compName.getPackageName().equals(targetPackage)) { in assertActivityInjected()
474 private void assertInjectedActivityNotFound(String targetPackage) { in assertInjectedActivityNotFound() argument
481 if (compName.getPackageName().equals(targetPackage)) { in assertInjectedActivityNotFound()
/cts/tests/app/src/android/app/cts/
DActivityManagerTest.java346 final String targetPackage = targetContext.getPackageName();
348 setForcedAppStandby(targetPackage, true);
350 setForcedAppStandby(targetPackage, false);
/cts/tests/tests/display/src/android/display/cts/
DDisplayTest.java436 String targetPackage =
443 launchActivity(targetPackage, clazz, null);