Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/vms/
DVmsClientManagerTest.java248 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any(), any())).thenReturn(false); in testSystemUserUnlocked_BindFailed()
258 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any(), any())).thenThrow( in testSystemUserUnlocked_BindException()
300 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any(), any())) in testUserUnlocked_BindFailed()
311 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any(), eq(UserHandle.of(mUserId)))) in testUserUnlocked_UserBindFailed()
322 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any(), any())) in testUserUnlocked_BindException()
333 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any(), eq(UserHandle.SYSTEM))) in testUserUnlocked_SystemRebind()
339 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any(), eq(UserHandle.SYSTEM))) in testUserUnlocked_SystemRebind()
348 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any(), eq(UserHandle.SYSTEM))) in testUserUnlocked_SystemRebind_BindFailed()
354 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any(), eq(UserHandle.SYSTEM))) in testUserUnlocked_SystemRebind_BindFailed()
365 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any(), eq(UserHandle.SYSTEM))) in testUserUnlocked_SystemRebind_BindException()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DInCallControllerTests.java187 verify(mMockContext).bindServiceAsUser( in testBindToService_NoServicesFound_IncomingCall()
222 verify(mMockContext).bindServiceAsUser( in testBindToService_NoServicesFound_OutgoingCall()
254 when(mMockContext.bindServiceAsUser(any(Intent.class), any(ServiceConnection.class), in testBindToService_DefaultDialer_NoEmergency()
274 verify(mMockContext, times(1)).bindServiceAsUser( in testBindToService_DefaultDialer_NoEmergency()
307 when(mMockContext.bindServiceAsUser(any(Intent.class), any(ServiceConnection.class), in testBindToService_SystemDialer_Emergency()
333 verify(mMockContext, times(1)).bindServiceAsUser( in testBindToService_SystemDialer_Emergency()
380 when(mMockContext.bindServiceAsUser( in testBindToService_DefaultDialer_FallBackToSystem()
403 verify(mMockContext, times(1)).bindServiceAsUser( in testBindToService_DefaultDialer_FallBackToSystem()
436 verify(mMockContext, times(2)).bindServiceAsUser( in testBindToService_DefaultDialer_FallBackToSystem()
473 verify(mMockContext, times(1)).bindServiceAsUser( in testBindToService_IncludeExternal()
[all …]
DCallRedirectionProcessorTest.java125 when(mContext.bindServiceAsUser(nullable(Intent.class), nullable(ServiceConnection.class), in setUp()
171 verify(mContext, times(0)).bindServiceAsUser(any(Intent.class), in testNoUserDefinedServiceNoCarrierSerivce()
186 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testCarrierServiceTimeoutNoUserDefinedService()
206 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testUserDefinedServiceTimeoutNoCarrierService()
235 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testUserDefinedServiceTimeoutAndCarrierServiceTimeout()
243 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testUserDefinedServiceTimeoutAndCarrierServiceTimeout()
259 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testUserDefinedServiceTimeoutAndCarrierServiceTimeout()
272 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testProcessGatewayCall()
DCallScreeningServiceControllerTest.java158 when(mContext.bindServiceAsUser(nullable(Intent.class), nullable(ServiceConnection.class), in setUp()
188 verify(mContext, times(3)).bindServiceAsUser(any(Intent.class), any(ServiceConnection in testAllAllowCall()
214 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), any(ServiceConnection in testCarrierAllowCallAndContactExists()
242 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testCarrierCallScreeningRejectCall()
288 verify(mContext, times(3)).bindServiceAsUser(any(Intent.class), in testDefaultDialerRejectCall()
336 verify(mContext, times(3)).bindServiceAsUser(any(Intent.class), in testUserChosenRejectCall()
DCallScreeningServiceFilterTest.java161 when(mContext.bindServiceAsUser(nullable(Intent.class), nullable(ServiceConnection.class), in setUp()
204 when(mContext.bindServiceAsUser(nullable(Intent.class), nullable(ServiceConnection.class), in testContextFailToBind()
351 verify(mContext).bindServiceAsUser(intentCaptor.capture(), serviceCaptor.capture(), in verifyBindingIntent()
DComponentContextFixture.java135 public boolean bindServiceAsUser( in bindServiceAsUser() method in ComponentContextFixture.FakeApplicationContext
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/
DVendorServiceControllerTest.java197 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, int flags, in bindServiceAsUser() method in VendorServiceControllerTest.ServiceLauncherContext
205 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, in bindServiceAsUser() method in VendorServiceControllerTest.ServiceLauncherContext
207 return bindServiceAsUser(service, conn, flags, null, user); in bindServiceAsUser()
/packages/apps/Nfc/src/com/android/nfc/cardemulation/
DHostEmulationManager.java313 if (mContext.bindServiceAsUser(aidIntent, mConnection, in bindServiceIfNeededLocked()
372 if (mContext.bindServiceAsUser(intent, mPaymentConnection, in bindPaymentServiceLocked()
DHostNfcFEmulationManager.java235 if (mContext.bindServiceAsUser(bindIntent, mConnection, in bindServiceIfNeededLocked()
/packages/services/Car/service/src/com/android/car/pm/
DAppBlockingPolicyProxy.java82 mContext.bindServiceAsUser(intent, this, Context.BIND_AUTO_CREATE | Context.BIND_IMPORTANT, in connect()
DVendorServiceController.java302 return mContext.bindServiceAsUser(intent, this, BIND_AUTO_CREATE, mHandler, mUser); in startOrBindService()
/packages/services/Car/service/src/com/android/car/
DPerUserCarServiceHelper.java174 boolean bindSuccess = mContext.bindServiceAsUser(startIntent, mUserServiceConnection, in bindToPerUserCarService()
DCarProjectionService.java212 mContext.bindServiceAsUser(serviceIntent, mConnection, Context.BIND_AUTO_CREATE, in bindToService()
/packages/services/Telecomm/src/com/android/server/telecom/
DCallScreeningServiceHelper.java219 if (context.bindServiceAsUser( in bindCallScreeningService()
DServiceBinder.java94 isBound = mContext.bindServiceAsUser(serviceIntent, connection, bindingFlags, in bind()
DInCallController.java235 if (!mContext.bindServiceAsUser(intent, mServiceConnection, in connect()
/packages/services/Car/service/src/com/android/car/cluster/
DInstrumentClusterService.java224 return mContext.bindServiceAsUser(intent, mRendererServiceConnection, in bindInstrumentClusterRendererService()
/packages/services/Telecomm/src/com/android/server/telecom/callredirection/
DCallRedirectionProcessor.java81 if (mContext.bindServiceAsUser( in process()
/packages/services/Car/service/src/com/android/car/vms/
DVmsClientManager.java382 mIsBound = mContext.bindServiceAsUser(intent, this, Context.BIND_AUTO_CREATE, in bind()
/packages/services/Car/car-lib/src/android/car/
DCar.java952 boolean bound = mContext.bindServiceAsUser(intent, mServiceConnectionListener, in startCarService()
/packages/apps/Car/Cluster/src/android/car/cluster/
DMainClusterActivity.java213 bindServiceAsUser(intent, mClusterRenderingServiceConnection, 0, UserHandle.SYSTEM); in onCreate()