Home
last modified time | relevance | path

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

123

/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DInCallControllerTests.java422 verify(mMockContext).bindServiceAsUser( in testBindToService_NoServicesFound_IncomingCall()
457 verify(mMockContext).bindServiceAsUser( in testBindToService_NoServicesFound_OutgoingCall()
489 when(mMockContext.bindServiceAsUser(any(Intent.class), any(ServiceConnection.class), in testBindToService_DefaultDialer_NoEmergency()
510 verify(mMockContext, times(1)).bindServiceAsUser( in testBindToService_DefaultDialer_NoEmergency()
547 when(mMockContext.bindServiceAsUser(any(Intent.class), any(ServiceConnection.class), in testBindToService_SystemDialer_Emergency()
573 verify(mMockContext, times(1)).bindServiceAsUser( in testBindToService_SystemDialer_Emergency()
621 verify(mMockContext, times(1)).bindServiceAsUser( in testBindToService_UserAssociatedWithCallIsInQuietMode_EmergCallInCallUi_BindsToPrimaryUser()
652 verify(mMockContext, times(1)).bindServiceAsUser( in testBindToService_UserAssociatedWithCallIsInQuietMode_NonEmergCallECBM_BindsToPrimaryUser()
685 verify(mMockContext, times(1)).bindServiceAsUser( in testBindToService_UserAssociatedWithCallSecondary_NonEmergCallECBM_BindsToSecondaryUser()
714 verify(mMockContext, times(1)).bindServiceAsUser( in testBindToService_UserAssociatedWithCallNotInQuietMode_EmergCallInCallUi_BindsToAssociatedUser()
[all …]
DCallRedirectionProcessorTest.java139 when(mContext.bindServiceAsUser(nullable(Intent.class), nullable(ServiceConnection.class), in setUp()
199 verify(mContext, times(0)).bindServiceAsUser(any(Intent.class), in testNoUserDefinedServiceNoCarrierSerivce()
214 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testCarrierServiceTimeoutNoUserDefinedService()
237 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testUserDefinedServiceTimeoutNoCarrierService()
269 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testUserDefinedServiceTimeoutAndCarrierServiceTimeout()
277 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testUserDefinedServiceTimeoutAndCarrierServiceTimeout()
296 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testUserDefinedServiceTimeoutAndCarrierServiceTimeout()
312 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testProcessGatewayCall()
335 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testStripPostDialDigits()
384 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testUnbindOnNullBind()
DCallDiagnosticServiceControllerTest.java107 when(mContextProxy.bindServiceAsUser(any(Intent.class), any(ServiceConnection.class), in setUp()
125 verify(mContextProxy, never()).bindServiceAsUser(any(Intent.class), in testNoBindOnNonSimCall()
140 verify(mContextProxy, never()).bindServiceAsUser(any(Intent.class), in testNoBindOnExternalCall()
154 verify(mContextProxy).bindServiceAsUser(intentCaptor.capture(), in testAddSimCallCausesBind()
212 verify(mContextProxy).bindServiceAsUser(intentCaptor.capture(), in testTestOverride()
DCallScreeningServiceFilterTest.java143 when(mContext.bindServiceAsUser(nullable(Intent.class), nullable(ServiceConnection.class), in setUp()
165 when(mContext.bindServiceAsUser(nullable(Intent.class), nullable(ServiceConnection.class), in testContextFailToBind()
210 when(mContext.bindServiceAsUser(nullable(Intent.class), nullable(ServiceConnection.class), in testNoBindingCondition()
406 .bindServiceAsUser(intentCaptor.capture(), serviceCaptor.capture(), in verifyBindingIntent()
/packages/modules/Nfc/NfcNci/tests/unit/src/com/android/nfc/cardemulation/
DHostEmulationManagerTest.java193 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(true); in testOnPreferredPaymentServiceChanged_noPreviouslyBoundService()
203 .bindServiceAsUser( in testOnPreferredPaymentServiceChanged_noPreviouslyBoundService()
221 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(true); in testOnPreferredPaymentServiceChanged_previouslyBoundService()
233 .bindServiceAsUser( in testOnPreferredPaymentServiceChanged_previouslyBoundService()
382 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(true); in testOnPreferredForegroundServiceChanged_noPreviouslyBoundService()
391 .bindServiceAsUser( in testOnPreferredForegroundServiceChanged_noPreviouslyBoundService()
421 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(true); in testOnPreferredForegroundServiceChanged_nullService_previouslyBoundService()
432 .bindServiceAsUser( in testOnPreferredForegroundServiceChanged_nullService_previouslyBoundService()
769 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(true); in testOnHostEmulationData_stateW4Select_noDefaultService_noBoundActiveService()
802 .bindServiceAsUser( in testOnHostEmulationData_stateW4Select_noDefaultService_noBoundActiveService()
[all …]
DHostNfcFEmulationManagerTest.java357 when(mockContext.bindServiceAsUser(any(Intent.class), any(ServiceConnection.class), anyInt(), in testBindServiceWithNewService_SuccessfullyBindsToService()
362 verify(mockContext).bindServiceAsUser(intentCaptor.capture(), serviceConnectionCaptor.capture(), in testBindServiceWithNewService_SuccessfullyBindsToService()
378 when(mockContext.bindServiceAsUser(any(Intent.class), any(ServiceConnection.class), anyInt(), in testBindServiceWithNewService_FailsToBindToService()
442 verify(mockContext).bindServiceAsUser(any(Intent.class), serviceConnectionCaptor.capture(), in testServiceConnectionOnConnected()
460 verify(mockContext).bindServiceAsUser(any(Intent.class), serviceConnectionCaptor.capture(), in testServiceConnectionOnDisconnected()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/cluster/
DInstrumentClusterServiceTest.java137 doReturn(true).when(mContext).bindServiceAsUser(any(), any(), anyInt(), any()); in setUp()
242 verify(mContext).bindServiceAsUser(any(), any(), anyInt(), any()); in testNonNullManager()
257 verify(mContext).bindServiceAsUser(any(), any(), anyInt(), any()); in testDelayedConnection()
273 verify(mContext, times(0)).bindServiceAsUser(any(), any(), anyInt(), any()); in testNoConfig()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserNoticeServiceTest.java156 when(mMockContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(true); in setUpMocks()
308 verify(mMockContext).bindServiceAsUser(any(), any(), anyInt(), any()); in assertUiShownOnce()
312 verify(mMockContext, times(2)).bindServiceAsUser(any(), any(), anyInt(), any()); in assertUiShownTwice()
/packages/modules/RemoteKeyProvisioning/system-server/tests/unit/src/android/security/rkp/service/test/
DRegistrationProxyTests.java190 doReturn(false).when(context).bindServiceAsUser(any(), any(), anyInt(), any()); in bindServiceAsUserReturnsFalse()
210 })).when(context).bindServiceAsUser(any(), any(), anyInt(), any()); in boundRegistrationServiceIsNull()
232 })).when(context).bindServiceAsUser(any(), any(), anyInt(), any()); in boundRegistrationServiceDisconnected()
256 })).when(context).bindServiceAsUser(any(), any(), anyInt(), any()); in boundRegistrationServiceBindingDied()
278 doReturn(true).when(context).bindServiceAsUser(any(), any(), anyInt(), any()); in timeoutWaitingForBoundService()
554 })).when(context).bindServiceAsUser( in addBoundSystemServiceToContext()
/packages/modules/Bluetooth/service/tests/src/com/android/server/bluetooth/
DBluetoothManagerServiceTest.java228 .bindServiceAsUser( in setUp()
317 .bindServiceAsUser( in enable_bindFailure_removesTimeout()
358 .bindServiceAsUser( in acceptBluetoothBinding()
559 mInOrder.verify(mContext).bindServiceAsUser(any(), any(), anyInt(), any()); in disable_whenBinding_bluetoothShouldStop_new()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/oem/
DCarOemProxyServiceTest.java248 verify(mContext).bindServiceAsUser(any(), mConnectionCapture.capture(), anyInt(), any()); in mockServiceConnection()
262 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(true); in mockOemCarServiceComponent()
/packages/modules/NetworkStack/tests/integration/common/android/net/networkstack/
DTestNetworkStackServiceClient.kt89 context.bindServiceAsUser( in onServiceDisconnected()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DRestrictedProfilePinServiceConnection.java86 mContext.bindServiceAsUser(intent, this, Context.BIND_AUTO_CREATE, UserHandle.SYSTEM); in bindPinService()
/packages/services/Car/experimental/tests/experimentalcarservice_unit_test/src/com/android/experimentalcar/
DDriverDistractionExperimentalFeatureServiceTest.java747 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, int flags, in bindServiceAsUser() method in DriverDistractionExperimentalFeatureServiceTest.ServiceLauncherContext
757 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, in bindServiceAsUser() method in DriverDistractionExperimentalFeatureServiceTest.ServiceLauncherContext
759 return bindServiceAsUser(service, conn, flags, null, user); in bindServiceAsUser()
/packages/services/Car/packages/ScriptExecutor/tests/nonsystemuser/src/com/android/car/scriptexecutortest/nonsystemuser/
DScriptExecutorNonSystemUserTest.java121 mContext.bindServiceAsUser( in setUp()
/packages/services/Car/service/src/com/android/car/pm/
DAppBlockingPolicyProxy.java86 mContext.bindServiceAsUser(intent, this, Context.BIND_AUTO_CREATE | Context.BIND_IMPORTANT, in connect()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallDiagnosticServiceController.java63 boolean bindServiceAsUser(@NonNull @RequiresPermission Intent service, in bindServiceAsUser() method
428 if (mContextProxy.bindServiceAsUser( in bindCallDiagnosticService()
DTelecomSystem.java327 public boolean bindServiceAsUser(@NonNull Intent service, in TelecomSystem()
330 return mContext.bindServiceAsUser(service, conn, flags, user); in TelecomSystem()
DCallScreeningServiceHelper.java231 if (context.bindServiceAsUser( in bindCallScreeningService()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/remoteaccess/
DCarRemoteAccessServiceUnitTest.java248 doReturn(true).when(mContext).bindServiceAsUser(any(), any(), anyInt(), any()); in setUp()
326 verify(mContext, times(packageNames.length)).bindServiceAsUser(intentCaptor.capture(), in verifyBindingStartedForPackages()
367 verify(mContext, never()).bindServiceAsUser(any(), any(), anyInt(), any()); in testStartRemoteTaskClientServiceUserLocked()
390 verify(mContext, never()).bindServiceAsUser(any(), any(), anyInt(), any()); in testStartRemoteTaskClientServiceUserLocked_bindAgainAfterUnlock()
401 verify(mContext, never()).bindServiceAsUser(any(), any(), anyInt(), any()); in testStartRemoteTaskClientServiceUserLocked_bindAgainAfterUnlock()
410 verify(mContext, times(VALID_PACKAGE_COUNT)).bindServiceAsUser( in testStartRemoteTaskClientServiceUserLocked_bindAgainAfterUnlock()
423 verify(mContext, never()).bindServiceAsUser(any(), any(), anyInt(), any()); in testStartRemoteTaskClientServiceUserLocked_unbindWhileWaiting()
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/displayarea/
DDisplayAreaComponent.java136 mContext.bindServiceAsUser(intent, mConnection, in doBindService()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/databroker/
DDataBrokerTest.java156 when(mMockContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer(i -> { in setUp()
483 when(mMockContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer( in testScheduleNextTask_bindScriptExecutorFailedOnce_shouldRebind()
516 when(mMockContext.bindServiceAsUser(any(), any(), anyInt(), any())) in testScheduleNextTask_bindScriptExecutorFailedMultipleTimes_shouldDisableBroker()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/hotword/
DHotwordServiceManager.java142 boolean bounded = mContext.bindServiceAsUser(intent, mServiceConnection, in startService()
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/autofill/
DPasswordsPreferenceControllerTest.java133 doReturn(false).when(mContext).bindServiceAsUser(any(), any(), anyInt(), any()); in displayPreference_withPasswords_addsPreference()
/packages/services/Car/service/src/com/android/car/
DCarPerUserServiceHelper.java187 boolean bindSuccess = mContext.bindServiceAsUser(startIntent, mUserServiceConnection, in bindToCarPerUserService()

123