Home
last modified time | relevance | path

Searched refs:serviceIntent (Results 1 – 25 of 25) sorted by relevance

/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DTestVoiceInteractionServiceActivity.java31 Intent serviceIntent = new Intent(); in triggerHotwordDetectionServiceTest() local
33 serviceIntent.setComponent(new ComponentName(this, in triggerHotwordDetectionServiceTest()
36 serviceIntent.setComponent(new ComponentName(this, in triggerHotwordDetectionServiceTest()
43 serviceIntent.putExtra(Utils.KEY_TEST_EVENT, testEvent); in triggerHotwordDetectionServiceTest()
44 ComponentName serviceName = startService(serviceIntent); in triggerHotwordDetectionServiceTest()
/cts/hostsidetests/devicepolicy/app/SimpleApp/src/com/android/cts/launcherapps/simpleapp/
DSimpleActivityStartFgService.java52 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()
DSimpleReceiverStartService.java27 Intent serviceIntent = intent.getParcelableExtra("service"); in onReceive() local
29 context.startService(serviceIntent); in onReceive()
DSimpleActivityStartService.java68 Intent serviceIntent = getIntent().getParcelableExtra("service"); in attemptStartService() local
70 startService(serviceIntent); in attemptStartService()
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/
DBindDeviceAdminServiceGoodSetupTest.java112 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 …]
DBindDeviceAdminServiceFailsTest.java68 final Intent serviceIntent = new Intent(); in checkCannotBind() local
69serviceIntent.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, Context.BIND_AUTO_CREATE, userHandle); in bind()
/cts/apps/ForceStopHelperApp/src/com/android/cts/forcestophelper/
DRecentTaskActivity.java37 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/tests/tests/gwp-asan/enabled/src/android/gwpasan/cts/
DGwpAsanServiceTest.java45 Intent serviceIntent = new Intent(getApplicationContext(), cls); in isGwpAsanEnabledInService() local
46 IBinder binder = mServiceRule.bindService(serviceIntent); in isGwpAsanEnabledInService()
/cts/tests/tests/security/src/android/security/cts/
DNanoAppBundleTest.java78 Intent serviceIntent = new Intent(mContext, AuthenticatorService.class); in setUp() local
79 mContext.startService(serviceIntent); in setUp()
80 mContext.bindService(serviceIntent, mServiceConnection, Context.BIND_AUTO_CREATE); in setUp()
86 Intent serviceIntent = new Intent(mContext, AuthenticatorService.class); in tearDown() local
87 mContext.stopService(serviceIntent); in tearDown()
DIsolatedProcessTest.java71 Intent serviceIntent = new Intent(mContext, IsolatedService.class); in setUp() local
72 mContext.bindService(serviceIntent, mServiceConnection, Context.BIND_AUTO_CREATE); in setUp()
/cts/tests/tests/telecom/src/android/telecom/cts/
DBasicInCallServiceTest.java72 Intent serviceIntent = new Intent(InCallService.SERVICE_INTERFACE); in testResolveInCallIntent() local
73 List<ResolveInfo> resolveInfo = packageManager.queryIntentServices(serviceIntent, in testResolveInCallIntent()
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppA/src/com/android/cts/appdataisolation/appa/
DAppATests.java273 Intent serviceIntent = new Intent(mContext, IsolatedService.class); in testIsolatedProcess() local
275 mContext.bindService(serviceIntent, mServiceConnection, Context.BIND_AUTO_CREATE); in testIsolatedProcess()
287 Intent serviceIntent = new Intent(mContext, AppZygoteIsolatedService.class); in testAppZygoteIsolatedProcess() local
289 mContext.bindService(serviceIntent, mServiceConnection, Context.BIND_AUTO_CREATE); in testAppZygoteIsolatedProcess()
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/
DTestAppInterface.java78 final Intent serviceIntent = new Intent() in TestAppInterface() local
80 context.bindService(serviceIntent, mRemoteConnection, Context.BIND_AUTO_CREATE); in TestAppInterface()
/cts/tests/tests/appop/src/android/app/appops/cts/
DForegroundModeTest.kt100 val serviceIntent = Intent().setComponent(ComponentName(TEST_SERVICE_PKG, in <lambda>() constant
114 context.bindService(serviceIntent, serviceConnection, in <lambda>()
DAppOpsLoggingTest.kt171 val serviceIntent = Intent() in nativeNoteOp() constant
172 serviceIntent.component = ComponentName(TEST_SERVICE_PKG, in nativeNoteOp()
186 context.bindService(serviceIntent, serviceConnection, BIND_AUTO_CREATE) in nativeNoteOp()
DDiscreteAppopsTest.kt136 val serviceIntent = Intent().setComponent(ComponentName(PACKAGE_NAME, in <lambda>() constant
150 context.bindService(serviceIntent, serviceConnection, in <lambda>()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DCreateAndManageUserTest.java587 Intent serviceIntent = new Intent(context, PrimaryUserService.class); in pingTargetUser() local
590 serviceIntent, in pingTargetUser()
594 assertWithMessage("bound to user %s using intent %s", target, serviceIntent).that(bound) in pingTargetUser()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DDeviceAdminTestReceiver.java266 final Intent serviceIntent = new Intent(context, PrimaryUserService.class); in bindPrimaryUserService() local
267 devicePolicyManager.bindDeviceAdminServiceAsUser(getReceiverComponentName(), serviceIntent, in bindPrimaryUserService() local
/cts/tests/app/src/android/app/cts/
DPendingIntentTest.java721 Intent serviceIntent = new Intent(); in testGetIntentComponentAndType() local
722 serviceIntent.setClass(mContext, MockService.class); in testGetIntentComponentAndType()
723 PendingIntent servicePI = PendingIntent.getService(mContext, 1, serviceIntent, in testGetIntentComponentAndType()
743 serviceIntent, PendingIntent.FLAG_CANCEL_CURRENT | PendingIntent.FLAG_IMMUTABLE); in testGetIntentComponentAndType()
DActivityManagerProcessStateTest.java471 Intent serviceIntent = new Intent(); in testBackgroundCheckService() local
472 serviceIntent.setClassName(SIMPLE_PACKAGE_NAME, in testBackgroundCheckService()
474 ServiceConnectionHandler conn = new ServiceConnectionHandler(mContext, serviceIntent, in testBackgroundCheckService()
504 mContext.stopService(serviceIntent); in testBackgroundCheckService()
545 mContext.startService(serviceIntent); in testBackgroundCheckService()
559 mContext.startService(serviceIntent); in testBackgroundCheckService()
568 mContext.stopService(serviceIntent); in testBackgroundCheckService()
591 mContext.startService(serviceIntent); in testBackgroundCheckService()
604 mContext.startService(serviceIntent); in testBackgroundCheckService()
611 mContext.stopService(serviceIntent); in testBackgroundCheckService()
[all …]
DNotificationManagerTest.java3339 Intent serviceIntent = new Intent(mContext, BubblesTestService.class); in testNotificationManagerBubblePolicy_noFlag_service() local
3340 serviceIntent.putExtra(EXTRA_TEST_CASE, TEST_MESSAGING); in testNotificationManagerBubblePolicy_noFlag_service()
3349 mContext.startService(serviceIntent); in testNotificationManagerBubblePolicy_noFlag_service()
3355 mContext.stopService(serviceIntent); in testNotificationManagerBubblePolicy_noFlag_service()
3365 Intent serviceIntent = new Intent(mContext, BubblesTestService.class); in testNotificationManagerBubblePolicy_noFlag_phonecall() local
3366 serviceIntent.putExtra(EXTRA_TEST_CASE, TEST_CALL); in testNotificationManagerBubblePolicy_noFlag_phonecall()
3376 mContext.startService(serviceIntent); in testNotificationManagerBubblePolicy_noFlag_phonecall()
3382 mContext.stopService(serviceIntent); in testNotificationManagerBubblePolicy_noFlag_phonecall()
/cts/tests/tests/content/src/android/content/cts/
DBroadcastReceiverTest.java106 Intent serviceIntent = new Intent(context, MockService.class); in onReceive() local
107 mIBinder = peekService(context, serviceIntent); in onReceive()
/cts/tests/tests/media/src/android/media/cts/
DMediaSession2ServiceTest.java389 Intent serviceIntent = new Intent(MediaSession2Service.SERVICE_INTERFACE); in testOnBind() local
390 assertNotNull(service.onBind(serviceIntent)); in testOnBind()
/cts/tests/app/NotificationTrampolineBase/src/com/android/test/notificationtrampoline/
DNotificationTrampolineTestService.java158 public int onStartCommand(Intent serviceIntent, int flags, int startId) { in onStartCommand() argument
/cts/tests/tests/content/src/android/content/pm/cts/
DPackageManagerTest.java214 Intent serviceIntent = new Intent(SERVICE_ACTION_NAME); in testQuery() local
215 List<ResolveInfo> services = mPackageManager.queryIntentServices(serviceIntent, in testQuery()