/cts/hostsidetests/devicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/ |
D | SimpleActivityStartFgService.java | 52 Intent serviceIntent = getIntent().getParcelableExtra("service"); in onCreate() local 53 stopService(serviceIntent); in onCreate() 67 Intent serviceIntent = getIntent().getParcelableExtra("service"); in onNewIntent() local 68 stopService(serviceIntent); in onNewIntent() 76 Intent serviceIntent = getIntent().getParcelableExtra("service"); in attemptStartService() local 79 final ComponentName svcName = startService(serviceIntent); in attemptStartService()
|
D | SimpleReceiverStartService.java | 27 Intent serviceIntent = intent.getParcelableExtra("service"); in onReceive() local 29 context.startService(serviceIntent); in onReceive()
|
D | SimpleActivityStartService.java | 68 Intent serviceIntent = getIntent().getParcelableExtra("service"); in attemptStartService() local 70 startService(serviceIntent); in attemptStartService()
|
/cts/apps/ForceStopHelperApp/src/com/android/cts/forcestophelper/ |
D | RecentTaskActivity.java | 37 final Intent serviceIntent = new Intent(); in onCreate() local 38 serviceIntent.setClass(this, TaskRemovedListenerService.class); in onCreate() 40 serviceIntent.putExtras(extras); in onCreate() 42 startService(serviceIntent); in onCreate()
|
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/ |
D | BindDeviceAdminServiceGoodSetupTest.java | 112 final Intent serviceIntent = new Intent(mContext, UnprotectedCrossUserService.class); in testCannotBind_unprotectedCrossUserService() local 115 bind(serviceIntent, EMPTY_SERVICE_CONNECTION, targetUser); in testCannotBind_unprotectedCrossUserService() 128 final Intent serviceIntent = new Intent(); in testCheckCannotBind_nonManagingPackage() local 129 serviceIntent.setClassName(NON_MANAGING_PACKAGE, ProtectedCrossUserService.class.getName()); in testCheckCannotBind_nonManagingPackage() 132 bind(serviceIntent, EMPTY_SERVICE_CONNECTION, targetUser); in testCheckCannotBind_nonManagingPackage() 145 final Intent serviceIntent = new Intent(mContext, ProtectedCrossUserService.class); in testCannotBind_sameUser() local 146 bind(serviceIntent, EMPTY_SERVICE_CONNECTION, Process.myUserHandle()); in testCannotBind_sameUser() 202 final Intent serviceIntent = new Intent(mContext, ProtectedCrossUserService.class); in assertCrossProfileCall() local 203 assertTrue(bind(serviceIntent, serviceConnection, targetUserHandle)); in assertCrossProfileCall() 217 private boolean bind(Intent serviceIntent, ServiceConnection serviceConnection, in bind() argument [all …]
|
D | BindDeviceAdminServiceFailsTest.java | 68 final Intent serviceIntent = new Intent(); in checkCannotBind() local 69 … serviceIntent.setClassName(targetPackageName, ProtectedCrossUserService.class.getName()); in checkCannotBind() 70 bind(serviceIntent, EMPTY_SERVICE_CONNECTION, otherProfile); in checkCannotBind() 78 private boolean bind(Intent serviceIntent, ServiceConnection serviceConnection, in bind() argument 81 serviceIntent, serviceConnection, in bind()
|
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/ |
D | VoiceInteractionServiceBindingHelper.java | 92 Intent serviceIntent = new Intent(); in onCreate() local 93 serviceIntent.setAction(Utils.ACTION_BIND_TEST_VOICE_INTERACTION); in onCreate() 94 serviceIntent.setComponent( in onCreate() 98 VoiceInteractionServiceBindingHelper.this.bindService(serviceIntent, mTestServiceConnection, in onCreate()
|
/cts/hostsidetests/gwp_asan/common/android/cts/gwp_asan/ |
D | GwpAsanServiceTest.java | 54 Intent serviceIntent = new Intent(getApplicationContext(), cls); in runServiceAndCheckSuccess() local 55 IBinder binder = mServiceRule.bindService(serviceIntent); in runServiceAndCheckSuccess() 64 Intent serviceIntent = new Intent(getApplicationContext(), cls); in runService() local 65 IBinder binder = mServiceRule.bindService(serviceIntent); in runService()
|
/cts/tests/tests/nfc/src/android/nfc/cts/ |
D | OffHostApduServiceTest.java | 25 Intent serviceIntent in testOnBind() local 27 Assert.assertNull(service.onBind(serviceIntent)); in testOnBind()
|
D | HostNfcFServiceTest.java | 26 Intent serviceIntent in testOnBind() local 28 Assert.assertNotNull(service.onBind(serviceIntent)); in testOnBind()
|
D | HostApduServiceTest.java | 33 Intent serviceIntent in testOnBind() local 35 Assert.assertNotNull(service.onBind(serviceIntent)); in testOnBind()
|
/cts/libs/install/testapp/src/com/android/cts/install/lib/testapp/ |
D | TestServiceActivity.java | 38 Intent serviceIntent = new Intent().setClassName( in onCreate() local 40 bindService(serviceIntent, new ServiceConnection() { in onCreate()
|
/cts/hostsidetests/voiceinteraction/app/src/com/android/cts/voiceinteraction/ |
D | AbstractVoiceInteractionServiceTest.java | 96 Intent serviceIntent = new Intent(); in setUp() local 97 serviceIntent.setAction(ProxyVoiceInteractionService.ACTION_BIND_TEST_VOICE_INTERACTION); in setUp() 98 serviceIntent.setComponent( in setUp() 102 mServiceTestRule.bindService(serviceIntent) in setUp()
|
/cts/tests/framework/base/windowmanager/backgroundactivity/TestApp/src/android/server/wm/backgroundactivity/appa/ |
D | BindServiceActivity.java | 51 Intent serviceIntent = new Intent().setComponent(appA.ACTIVITY_START_SERVICE); in onStart() local 56 bindService(serviceIntent, mServiceConnection, flags); in onStart()
|
/cts/hostsidetests/appsecurity/test-apps/rro/OverlayTarget/src/com/android/cts/overlay/target/ |
D | OverlayTargetActivity.java | 87 final Intent serviceIntent = new Intent(this, OverlayTargetService.class); in startServiceIfNecessary() local 88 startService(serviceIntent); in startServiceIfNecessary()
|
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/ |
D | VoiceInteractionMultiDetectorTest.java | 79 Intent serviceIntent = new Intent(); in setUp() local 80 serviceIntent.setAction(Utils.ACTION_BIND_TEST_VOICE_INTERACTION); in setUp() 81 serviceIntent.setComponent( in setUp() 86 mServiceTestRule.bindService(serviceIntent) in setUp()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | NanoAppBundleTest.java | 88 Intent serviceIntent = new Intent(mContext, AuthenticatorService.class); in setUp() local 89 mContext.startService(serviceIntent); in setUp() 90 mContext.bindService(serviceIntent, mServiceConnection, Context.BIND_AUTO_CREATE); in setUp() 96 Intent serviceIntent = new Intent(mContext, AuthenticatorService.class); in tearDown() local 97 mContext.stopService(serviceIntent); in tearDown()
|
D | IsolatedProcessTest.java | 91 Intent serviceIntent = new Intent(getInstrumentation().getContext(), IsolatedService.class); in setUp() local 92 …getInstrumentation().getContext().bindService(serviceIntent, mServiceConnection, Context.BIND_AUTO… in setUp()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | BasicInCallServiceTest.java | 70 Intent serviceIntent = new Intent(InCallService.SERVICE_INTERFACE); in testResolveInCallIntent() local 71 List<ResolveInfo> resolveInfo = packageManager.queryIntentServices(serviceIntent, in testResolveInCallIntent()
|
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/ |
D | MediaProjectionHelper.java | 239 Intent serviceIntent = new Intent(targetContext, MediaProjectionService.class); in authorizeMediaProjection() local 240 targetContext.bindService(serviceIntent, new ServiceConnection() { in authorizeMediaProjection() 251 targetContext.startForegroundService(serviceIntent); in authorizeMediaProjection()
|
/cts/tests/sensitivecontentprotection/src/android/sensitivecontentprotection/cts/ |
D | SensitiveContentMediaProjectionHelper.java | 239 Intent serviceIntent = new Intent(targetContext, MediaProjectionService.class); in authorizeMediaProjection() local 240 targetContext.bindService(serviceIntent, new ServiceConnection() { in authorizeMediaProjection() 251 targetContext.startForegroundService(serviceIntent); in authorizeMediaProjection()
|
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/ |
D | TestAppInterface.java | 78 final Intent serviceIntent = new Intent() in TestAppInterface() local 80 context.bindService(serviceIntent, mRemoteConnection, Context.BIND_AUTO_CREATE); in TestAppInterface()
|
/cts/tests/tests/notification/src/android/app/notification/current/cts/ |
D | NotificationManagerBubbleTest.java | 482 Intent serviceIntent = new Intent(mContext, BubblesTestService.class); in testNotificationManagerBubblePolicy_noFlag_service() local 483 serviceIntent.putExtra(EXTRA_TEST_CASE, TEST_MESSAGING); in testNotificationManagerBubblePolicy_noFlag_service() 490 mContext.startService(serviceIntent); in testNotificationManagerBubblePolicy_noFlag_service() 496 mContext.stopService(serviceIntent); in testNotificationManagerBubblePolicy_noFlag_service() 506 Intent serviceIntent = new Intent(mContext, BubblesTestService.class); in testNotificationManagerBubblePolicy_noFlag_phonecall() local 507 serviceIntent.putExtra(EXTRA_TEST_CASE, TEST_CALL); in testNotificationManagerBubblePolicy_noFlag_phonecall() 515 mContext.startService(serviceIntent); in testNotificationManagerBubblePolicy_noFlag_phonecall() 521 mContext.stopService(serviceIntent); in testNotificationManagerBubblePolicy_noFlag_phonecall()
|
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppA/src/com/android/cts/appdataisolation/appa/ |
D | AppATests.java | 304 Intent serviceIntent = new Intent(mContext, IsolatedService.class); in testIsolatedProcess() local 306 mContext.bindService(serviceIntent, mServiceConnection, Context.BIND_AUTO_CREATE); in testIsolatedProcess() 318 Intent serviceIntent = new Intent(mContext, AppZygoteIsolatedService.class); in testAppZygoteIsolatedProcess() local 320 mContext.bindService(serviceIntent, mServiceConnection, Context.BIND_AUTO_CREATE); in testAppZygoteIsolatedProcess()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2023-20913/src/android/security/cts/CVE_2023_20913/ |
D | DeviceTest.java | 80 Intent serviceIntent = new Intent(mContext, PocService.class); in testActivity() local 84 mContext.startService(serviceIntent); in testActivity()
|