/cts/tests/tests/virtualdevice/applaunch/src/android/virtualdevice/cts/applaunch/ |
D | AppComponents.java | 41 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()
|
D | ActivityManagementTest.java | 42 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()
|
D | DeviceAssociationTest.java | 46 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/ |
D | TestService.java | 22 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/ |
D | TestService.java | 23 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/ |
D | TestService.java | 40 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/ |
D | TestService.java | 26 public class TestService extends Service { class 27 private static final String NOTIFICATION_CHANNEL_ID = TestService.class.getSimpleName();
|
D | UsageStatsTest.java | 1871 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/ |
D | TestService.java | 38 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/ |
D | TestService.java | 31 public class TestService extends Service { class 37 return new ComponentName(this, TestService.class).toShortString(); in getNotificationChannelId()
|
D | CommReceiver.java | 53 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/ |
D | TestService.java | 24 public class TestService extends Service { class
|
/cts/libs/install/testapp/src/com/android/cts/install/lib/testapp/ |
D | TestService.java | 24 public class TestService extends Service { class
|
D | TestServiceActivity.java | 39 SERVICE_PACKAGE_NAME, TestService.class.getName()); in onCreate()
|
/cts/tests/suspendapps/test-apps/SuspendTestApp/src/com/android/suspendapps/suspendtestapp/ |
D | TestService.java | 34 public class TestService extends Service { class 35 private static final String TAG = TestService.class.getSimpleName();
|
D | SuspendTestReceiver.java | 30 TestService.reportBroadcastIfNeeded(intent); in onReceive()
|
/cts/tests/tests/batterysaving/common/proto/ |
D | battery_saver_cts_common.proto | 24 // 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/ |
D | FgsTester.java | 34 Intent i = new Intent(context, TestService.class); in tryStartingFgs()
|
D | TestService.java | 31 public class TestService extends Service { class
|
/cts/tests/framework/base/windowmanager/backgroundactivity/TestApp/src/android/server/wm/backgroundactivity/appa/ |
D | ForegroundActivity.java | 27 import android.server.wm.backgroundactivity.common.TestService; 112 TestService.sLatestForegroundActivity = this; in onCreate()
|
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/ |
D | TestAppInterface.java | 35 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/ |
D | TestService.java | 28 public class TestService extends Service { class
|
/cts/tests/tests/content/ContentUriTestApp/src/android/content/cts/contenturitestapp/ |
D | TestService.java | 25 public class TestService extends Service { class
|
/cts/tests/tests/os/src/android/os/cts/ |
D | StrictModeTest.java | 1131 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()
|