Home
last modified time | relevance | path

Searched refs:TestService (Results 1 – 24 of 24) sorted by relevance

/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/
DAppComponents.java41 public static class TestService extends Service { class in AppComponents
46 private final IBinder mBinder = new TestService.TestBinder();
49 TestService getService() { in getService()
50 return TestService.this; in getService()
54 public TestService() {} in TestService() method in AppComponents.TestService
56 static TestService startService(Context context) throws TimeoutException { in startService()
57 final Intent intent = new Intent(context, TestService.class); in startService()
60 return ((TestService.TestBinder) serviceToken).getService(); in startService()
DActivityManagementTest.java42 import android.virtualdevice.cts.applaunch.AppComponents.TestService;
159 Service service = TestService.startService(mContext); in launchPendingIntent_activityIntent_shouldLaunchActivity()
176 TestService service = TestService.startService(mContext); in launchPendingIntent_serviceIntentTrampolineActivity_shouldLaunchActivity()
177 Intent intent = new Intent(TestService.ACTION_START_TRAMPOLINE_ACTIVITY) in launchPendingIntent_serviceIntentTrampolineActivity_shouldLaunchActivity()
193 Service service = TestService.startService(mContext); in launchPendingIntent_serviceIntentNoTrampoline_shouldBeNoOp()
194 Intent intent = new Intent(Intent.ACTION_MAIN).setClass(service, TestService.class); in launchPendingIntent_serviceIntentNoTrampoline_shouldBeNoOp()
DDeviceAssociationTest.java46 import android.virtualdevice.cts.applaunch.AppComponents.TestService;
335 Service service = TestService.startService(mContext); in serviceContext_lastActivityOnVirtualDevice_returnsVirtualDeviceId()
345 Service service = TestService.startService(mContext); in serviceContext_lastActivityOnDefaultDevice_returnsDefault()
357 Service service = TestService.startService(mContext); in serviceContext_startServiceAfterActivity_hasDeviceIdOfTopActivity()
369 Service service = TestService.startService(mContext); in serviceContext_startServiceAfterActivityDeviceIsClosed_returnsDefault()
376 Service service = TestService.startService(mContext); in serviceContext_noActivities_hasDefaultId()
/cts/tests/tests/content/HelloWorldApp/src5/com/example/helloworld/
DTestService.java22 public class TestService extends IntentService { class
23 public TestService() { in TestService() method in TestService
/cts/tests/tests/content/HelloWorldApp/src_system_user_only/com/example/helloworld/
DTestService.java23 public class TestService extends IntentService { class
24 public TestService() { in TestService() method in TestService
/cts/tests/app/BroadcastsTest/helper-app/src/com/android/app/cts/broadcasts/helper/
DTestService.java40 public class TestService extends Service { class
73 TestService.this.sendBroadcast(intent, null /* receiverPermission */, options); in sendBroadcast()
78 registerReceiver(TestService.this.getApplicationContext(), new BroadcastReceiver() { in monitorBroadcasts()
128 TestService.this.getApplicationContext().unregisterReceiver( in tearDown()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DTestService.java26 public class TestService extends Service { class
27 private static final String NOTIFICATION_CHANNEL_ID = TestService.class.getSimpleName();
DUsageStatsTest.java1871 mContext.startService(new Intent(mContext, TestService.class)); in testForegroundServiceHelper()
1872 mUiDevice.wait(Until.hasObject(By.clazz(TestService.class)), TIMEOUT); in testForegroundServiceHelper()
1875 mContext.stopService(new Intent(mContext, TestService.class)); in testForegroundServiceHelper()
1876 mUiDevice.wait(Until.gone(By.clazz(TestService.class)), TIMEOUT); in testForegroundServiceHelper()
1901 || TestService.class.getName().equals(event.getClassName())) { in testForegroundServiceHelper()
/cts/tests/framework/base/windowmanager/backgroundactivity/common/src/android/server/wm/backgroundactivity/common/
DTestService.java38 public class TestService extends Service { class
39 static final String TAG = TestService.class.getName();
59 return PendingIntent.getActivity(TestService.this, 0, intent, in generatePendingIntent()
71 return PendingIntent.getBroadcast(TestService.this, 0, intent, in generatePendingIntentBroadcast()
/cts/tests/tests/batterysaving/apps/app_target_api_current/src/android/os/cts/batterysaving/app/
DTestService.java31 public class TestService extends Service { class
37 return new ComponentName(this, TestService.class).toShortString(); in getNotificationChannelId()
DCommReceiver.java53 TestService.LastStartIntent.set(null); in handleBatterySaverBgServiceRequest()
59 final Intent intent = TestService.LastStartIntent.get(); in handleBatterySaverBgServiceRequest()
/cts/hostsidetests/os/test-apps/StaticSharedLibConsumerApp1/src/android/os/lib/consumer1/
DTestService.java24 public class TestService extends Service { class
/cts/libs/install/testapp/src/com/android/cts/install/lib/testapp/
DTestService.java24 public class TestService extends Service { class
DTestServiceActivity.java39 SERVICE_PACKAGE_NAME, TestService.class.getName()); in onCreate()
/cts/tests/suspendapps/test-apps/SuspendTestApp/src/com/android/suspendapps/suspendtestapp/
DTestService.java34 public class TestService extends Service { class
35 private static final String TAG = TestService.class.getSimpleName();
DSuspendTestReceiver.java30 TestService.reportBroadcastIfNeeded(intent); in onReceive()
/cts/tests/tests/batterysaving/common/proto/
Dbattery_saver_cts_common.proto24 // Request to clear TestService.LastStartIntent.
27 // Request to return the action set in TestService.LastStartIntent.
/cts/tests/AlarmManager/app_common/src/android/alarmmanager/alarmtestapp/cts/common/
DFgsTester.java34 Intent i = new Intent(context, TestService.class); in tryStartingFgs()
DTestService.java31 public class TestService extends Service { class
/cts/tests/framework/base/windowmanager/backgroundactivity/TestApp/src/android/server/wm/backgroundactivity/appa/
DForegroundActivity.java27 import android.server.wm.backgroundactivity.common.TestService;
112 TestService.sLatestForegroundActivity = this; in onCreate()
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/
DTestAppInterface.java35 import com.android.suspendapps.suspendtestapp.TestService;
79 .setClassName(TEST_APP_PACKAGE_NAME, TestService.class.getName()); in TestAppInterface()
/cts/tests/tests/app.usage/TestApp1/src/android/app/usage/cts/test1/
DTestService.java28 public class TestService extends Service { class
/cts/tests/tests/content/ContentUriTestApp/src/android/content/cts/contenturitestapp/
DTestService.java25 public class TestService extends Service { class
/cts/tests/tests/os/src/android/os/cts/
DStrictModeTest.java1131 final Intent intent = new Intent(getContext(), TestService.class); in testIncorrectContextUse_Service_ThrowViolation()
1133 TestService service = ((TestService.TestToken) serviceRule.bindService(intent)) in testIncorrectContextUse_Service_ThrowViolation()
1520 public static class TestService extends Service { class in StrictModeTest
1529 TestService getService() { in getService()
1530 return TestService.this; in getService()