Home
last modified time | relevance | path

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

12

/packages/apps/Contacts/src/com/android/contacts/
DContactSaveService.java376 Intent serviceIntent = new Intent( in createNewRawContactIntent() local
378 serviceIntent.setAction(ContactSaveService.ACTION_NEW_RAW_CONTACT); in createNewRawContactIntent()
380 serviceIntent.putExtra(ContactSaveService.EXTRA_ACCOUNT_NAME, account.name); in createNewRawContactIntent()
381 serviceIntent.putExtra(ContactSaveService.EXTRA_ACCOUNT_TYPE, account.type); in createNewRawContactIntent()
382 serviceIntent.putExtra(ContactSaveService.EXTRA_DATA_SET, account.dataSet); in createNewRawContactIntent()
384 serviceIntent.putParcelableArrayListExtra( in createNewRawContactIntent()
392 serviceIntent.putExtra(ContactSaveService.EXTRA_CALLBACK_INTENT, callbackIntent); in createNewRawContactIntent()
393 return serviceIntent; in createNewRawContactIntent()
467 Intent serviceIntent = new Intent( in createSaveContactIntent() local
469 serviceIntent.setAction(ContactSaveService.ACTION_SAVE_CONTACT); in createSaveContactIntent()
[all …]
/packages/modules/DeviceLock/DeviceLockController/tests/robolectric/src/com/android/devicelockcontroller/
DDeviceLockControllerServiceTest.java98 Intent serviceIntent = new Intent(mTestApp, DeviceLockControllerService.class); in lockDevice_shouldLogKioskRequest_andLogLockSuccess() local
99 IBinder binder = mServiceRule.bindService(serviceIntent); in lockDevice_shouldLogKioskRequest_andLogLockSuccess()
116 Intent serviceIntent = new Intent(mTestApp, DeviceLockControllerService.class); in lockDevice_failure_shouldLogToStatsLogger() local
117 IBinder binder = mServiceRule.bindService(serviceIntent); in lockDevice_failure_shouldLogToStatsLogger()
134 Intent serviceIntent = new Intent(mTestApp, DeviceLockControllerService.class); in unlockDevice_shouldLogKioskRequest_AndLogUnlockSuccess() local
135 IBinder binder = mServiceRule.bindService(serviceIntent); in unlockDevice_shouldLogKioskRequest_AndLogUnlockSuccess()
152 Intent serviceIntent = new Intent(mTestApp, DeviceLockControllerService.class); in unlockDevice_failure_shouldLogToStatsLogger() local
153 IBinder binder = mServiceRule.bindService(serviceIntent); in unlockDevice_failure_shouldLogToStatsLogger()
169 Intent serviceIntent = new Intent(mTestApp, DeviceLockControllerService.class); in isDeviceLocked_shouldLogKioskRequest() local
170 IBinder binder = mServiceRule.bindService(serviceIntent); in isDeviceLocked_shouldLogKioskRequest()
[all …]
/packages/services/AlternativeNetworkAccess/src/com/android/ons/
DONSProfileResultReceiver.java50 Intent serviceIntent = new Intent(context, OpportunisticNetworkService.class); in onReceive() local
51 serviceIntent.setAction(intent.getAction()); in onReceive()
52 serviceIntent.putExtra(EXTRA_RESULT_CODE, getResultCode()); in onReceive()
53 serviceIntent.putExtra(Intent.EXTRA_INTENT, intent); in onReceive()
54 context.startService(serviceIntent); in onReceive()
55 Log.d(TAG, "Service Started:" + serviceIntent.toString()); in onReceive()
/packages/apps/Dialer/java/com/android/dialer/interactions/
DContactUpdateService.java36 Intent serviceIntent = new Intent(context, ContactUpdateService.class); in createSetSuperPrimaryIntent() local
37 serviceIntent.putExtra(EXTRA_PHONE_NUMBER_DATA_ID, dataId); in createSetSuperPrimaryIntent()
38 return serviceIntent; in createSetSuperPrimaryIntent()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarProjectionManagerUnitTest.java117 Intent serviceIntent = mock(Intent.class); in testRegisterProjectionRunner() local
118 mCarProjectionManager.registerProjectionRunner(serviceIntent); in testRegisterProjectionRunner()
119 verify(mService).registerProjectionRunner(eq(serviceIntent)); in testRegisterProjectionRunner()
130 Intent serviceIntent = mock(Intent.class); in testUnregisterProjectionRunner() local
131 mCarProjectionManager.unregisterProjectionRunner(serviceIntent); in testUnregisterProjectionRunner()
132 verify(mService).unregisterProjectionRunner(eq(serviceIntent)); in testUnregisterProjectionRunner()
/packages/apps/SecureElement/src/com/android/se/
DSEApplication.java29 Intent serviceIntent = new Intent(getApplicationContext(), SecureElementService.class); in onCreate() local
30 startService(serviceIntent); in onCreate()
/packages/apps/DeskClock/tests/src/com/android/deskclock/timer/
DTimerServiceTest.java130 Intent serviceIntent = new Intent(ApplicationProvider.getApplicationContext(), in getTimerServiceIntent() local
133 final ComponentName component = serviceIntent.getComponent(); in getTimerServiceIntent()
137 return serviceIntent; in getTimerServiceIntent()
/packages/modules/AdServices/sdksandbox/tests/hostsidetests/SdkSandboxSmallModuleHostTest/app/src/com/android/tests/sdksandbox/
DSdkSandboxSmallModuleTestApp.java153 Intent serviceIntent = new Intent(serviceName); in isAdServiceAvailable() local
156 serviceIntent, in isAdServiceAvailable()
164 AdServicesCommon.resolveAdServicesService(resolveInfos, serviceIntent.getAction()); in isAdServiceAvailable()
/packages/apps/Contacts/src/com/android/contacts/quickcontact/
DDirectoryContactUtil.java53 Intent serviceIntent = ContactSaveService.createNewRawContactIntent( in createCopy() local
56 context.startService(serviceIntent); in createCopy()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPairingService.java191 Intent serviceIntent = new Intent(ACTION_DISMISS_PAIRING); in createPairingNotification() local
192 serviceIntent.setClass(this, BluetoothPairingService.class); in createPairingNotification()
193 serviceIntent.putExtra(BluetoothDevice.EXTRA_DEVICE, mDevice); in createPairingNotification()
195 serviceIntent, PendingIntent.FLAG_ONE_SHOT | PendingIntent.FLAG_IMMUTABLE); in createPairingNotification()
/packages/services/Car/car-lib/src/android/car/
DICarProjection.aidl38 void registerProjectionRunner(in Intent serviceIntent) = 0; field
44 void unregisterProjectionRunner(in Intent serviceIntent) = 1; field
DCarProjectionManager.java485 public void registerProjectionRunner(@NonNull Intent serviceIntent) { in registerProjectionRunner() argument
486 Objects.requireNonNull(serviceIntent, "serviceIntent cannot be null"); in registerProjectionRunner()
489 mService.registerProjectionRunner(serviceIntent); in registerProjectionRunner()
503 public void unregisterProjectionRunner(@NonNull Intent serviceIntent) { in unregisterProjectionRunner() argument
504 Objects.requireNonNull(serviceIntent, "serviceIntent cannot be null"); in unregisterProjectionRunner()
507 mService.unregisterProjectionRunner(serviceIntent); in unregisterProjectionRunner()
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogNotificationsService.java86 Intent serviceIntent = new Intent(context, CallLogNotificationsService.class); in markAllNewVoicemailsAsOld() local
87 serviceIntent.setAction(CallLogNotificationsService.ACTION_MARK_ALL_NEW_VOICEMAILS_AS_OLD); in markAllNewVoicemailsAsOld()
88 context.startService(serviceIntent); in markAllNewVoicemailsAsOld()
/packages/services/Car/libs/car-test-lib/src/android/car/testapi/
DFakeCarProjectionService.java80 public void registerProjectionRunner(Intent serviceIntent) throws RemoteException { in registerProjectionRunner() argument
81 mContext.bindService(serviceIntent, mServiceConnection, Context.BIND_AUTO_CREATE); in registerProjectionRunner()
85 public void unregisterProjectionRunner(Intent serviceIntent) throws RemoteException { in unregisterProjectionRunner() argument
/packages/services/Car/service/src/com/android/car/
DCarProjectionService.java215 public void registerProjectionRunner(Intent serviceIntent) { in registerProjectionRunner() argument
219 if (serviceIntent.filterEquals(mRegisteredService) && mBound) { in registerProjectionRunner()
223 Slogf.w(CarLog.TAG_PROJECTION, "Registering new service[" + serviceIntent in registerProjectionRunner()
228 bindToService(serviceIntent); in registerProjectionRunner()
232 public void unregisterProjectionRunner(Intent serviceIntent) { in unregisterProjectionRunner() argument
235 if (!serviceIntent.filterEquals(mRegisteredService)) { in unregisterProjectionRunner()
237 + serviceIntent + "]. Registered service[" + mRegisteredService + "]"); in unregisterProjectionRunner()
245 private void bindToService(Intent serviceIntent) { in bindToService() argument
247 mRegisteredService = serviceIntent; in bindToService()
250 mContext.bindServiceAsUser(serviceIntent, mConnection, Context.BIND_AUTO_CREATE, in bindToService()
/packages/modules/OnDevicePersonalization/tests/servicetests/src/com/android/ondevicepersonalization/services/
DOnDevicePersonalizationDebugServiceTest.java83 Intent serviceIntent = new Intent(mContext, in testWithBoundService() local
85 IBinder binder = serviceRule.bindService(serviceIntent); in testWithBoundService()
DOnDevicePersonalizationManagingServiceTest.java561 Intent serviceIntent = new Intent(mContext, in testWithBoundService() local
563 IBinder binder = serviceRule.bindService(serviceIntent); in testWithBoundService()
572 Intent serviceIntent = in testJobRestoring() local
574 IBinder binder = service.onBind(serviceIntent); in testJobRestoring()
/packages/modules/Media/apex/framework/java/android/media/
DSession2Token.java242 Intent serviceIntent = new Intent(serviceInterface); in isInterfaceDeclared() local
246 serviceIntent.setPackage(serviceComponent.getPackageName()); in isInterfaceDeclared()
249 serviceIntent, PackageManager.GET_META_DATA); in isInterfaceDeclared()
/packages/modules/Permission/PermissionController/role-controller/java/com/android/role/controller/behavior/
DAssistantRoleBehavior.java103 Intent serviceIntent = new Intent(VoiceInteractionService.SERVICE_INTERFACE); in getQualifyingPackagesInternal() local
105 serviceIntent.setPackage(filterPackageName); in getQualifyingPackagesInternal()
108 serviceIntent, PackageManager.GET_META_DATA in getQualifyingPackagesInternal()
/packages/modules/AdServices/sdksandbox/tests/cts/endtoendtests/src/com/android/tests/sdksandbox/endtoend/
DCtsSmallModuleTests.java79 Intent serviceIntent = new Intent("android.adservices.TOPICS_SERVICE"); in isSmallModuleSupported() local
82 serviceIntent, in isSmallModuleSupported()
/packages/apps/Contacts/src/com/android/contacts/group/
DGroupNameEditDialogFragment.java257 final Intent serviceIntent; in maybePersistCurrentGroupName() local
259 serviceIntent = ContactSaveService.createNewGroupIntent(getActivity(), mAccount, in maybePersistCurrentGroupName()
262 serviceIntent = ContactSaveService.createGroupRenameIntent(getActivity(), mGroupId, in maybePersistCurrentGroupName()
265 ContactSaveService.startService(getActivity(), serviceIntent); in maybePersistCurrentGroupName() local
/packages/services/Telecomm/src/com/android/server/telecom/
DServiceBinder.java87 Intent serviceIntent = new Intent(mServiceAction).setComponent(mComponentName); in bind() local
95 isBound = mContext.bindServiceAsUser(serviceIntent, connection, bindingFlags, in bind()
98 isBound = mContext.bindService(serviceIntent, connection, bindingFlags); in bind()
DCallStreamingController.java214 Intent serviceIntent = new Intent(CallStreamingService.SERVICE_INTERFACE); in processTransaction() local
215 serviceIntent.setPackage(holders.get(0)); in processTransaction()
216 List<ResolveInfo> infos = packageManager.queryIntentServicesAsUser(serviceIntent, in processTransaction()
/packages/apps/KeyChain/tests/src/com/android/keychain/tests/
DBasicKeyChainServiceTest.java358 Intent serviceIntent = new Intent(mContext, IKeyChainServiceTestSupport.class); in bindTestSupportService() local
359 serviceIntent.setComponent( in bindTestSupportService()
363 Log.d(TAG, String.format("Binding intent: %s", serviceIntent)); in bindTestSupportService()
365 mContext.bindService(serviceIntent, mSupportConnection, Context.BIND_AUTO_CREATE); in bindTestSupportService()
/packages/services/Car/experimental/tests/experimentalcarservice_unit_test/src/com/android/experimentalcar/
DGazeDriverAwarenessSupplierTest.java77 Intent serviceIntent = in testWithBoundService() local
82 IBinder binder = serviceRule.bindService(serviceIntent); in testWithBoundService()

12