Home
last modified time | relevance | path

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

12

/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/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/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, in bind()
/cts/tests/tests/voiceinteraction/service/src/android/voiceinteraction/service/
DVoiceInteractionServiceBindingHelper.java92 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/
DGwpAsanServiceTest.java54 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/
DOffHostApduServiceTest.java25 Intent serviceIntent in testOnBind() local
27 Assert.assertNull(service.onBind(serviceIntent)); in testOnBind()
DHostNfcFServiceTest.java26 Intent serviceIntent in testOnBind() local
28 Assert.assertNotNull(service.onBind(serviceIntent)); in testOnBind()
DHostApduServiceTest.java33 Intent serviceIntent in testOnBind() local
35 Assert.assertNotNull(service.onBind(serviceIntent)); in testOnBind()
/cts/libs/install/testapp/src/com/android/cts/install/lib/testapp/
DTestServiceActivity.java38 Intent serviceIntent = new Intent().setClassName( in onCreate() local
40 bindService(serviceIntent, new ServiceConnection() { in onCreate()
/cts/hostsidetests/voiceinteraction/app/src/com/android/cts/voiceinteraction/
DAbstractVoiceInteractionServiceTest.java96 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/
DBindServiceActivity.java51 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/
DOverlayTargetActivity.java87 final Intent serviceIntent = new Intent(this, OverlayTargetService.class); in startServiceIfNecessary() local
88 startService(serviceIntent); in startServiceIfNecessary()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DVoiceInteractionMultiDetectorTest.java79 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/
DNanoAppBundleTest.java88 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()
DIsolatedProcessTest.java91 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/
DBasicInCallServiceTest.java70 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/
DMediaProjectionHelper.java239 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/
DSensitiveContentMediaProjectionHelper.java239 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/
DTestAppInterface.java78 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/
DNotificationManagerBubbleTest.java482 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/
DAppATests.java304 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/
DDeviceTest.java80 Intent serviceIntent = new Intent(mContext, PocService.class); in testActivity() local
84 mContext.startService(serviceIntent); in testActivity()

12