Home
last modified time | relevance | path

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

12345

/aosp12/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
H A DInCallControllerTests.java347 verify(mMockContext).bindServiceAsUser( in testBindToService_NoServicesFound_IncomingCall()
382 verify(mMockContext).bindServiceAsUser( in testBindToService_NoServicesFound_OutgoingCall()
435 verify(mMockContext, times(1)).bindServiceAsUser( in testBindToService_DefaultDialer_NoEmergency()
495 verify(mMockContext, times(1)).bindServiceAsUser( in testBindToService_SystemDialer_Emergency()
574 verify(mMockContext, times(1)).bindServiceAsUser( in testBindToService_SystemDialer_Crash()
604 verify(mMockContext, times(2)).bindServiceAsUser( in testBindToService_SystemDialer_Crash()
635 when(mMockContext.bindServiceAsUser( in testBindToService_DefaultDialer_FallBackToSystem()
714 when(mMockContext.bindServiceAsUser( in testBindToService_NullBinding_FallBackToSystem()
1046 verify(mMockContext).bindServiceAsUser( in testRandomAppRemovalWhenNotInCarMode()
1205 verify(mMockContext, never()).bindServiceAsUser( in testBindToService_SelfManagedCarModeUI()
[all …]
H A DCallRedirectionProcessorTest.java139 when(mContext.bindServiceAsUser(nullable(Intent.class), nullable(ServiceConnection.class), in setUp()
197 verify(mContext, times(0)).bindServiceAsUser(any(Intent.class), in testNoUserDefinedServiceNoCarrierSerivce()
212 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testCarrierServiceTimeoutNoUserDefinedService()
232 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testUserDefinedServiceTimeoutNoCarrierService()
261 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testUserDefinedServiceTimeoutAndCarrierServiceTimeout()
269 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testUserDefinedServiceTimeoutAndCarrierServiceTimeout()
285 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testUserDefinedServiceTimeoutAndCarrierServiceTimeout()
298 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testProcessGatewayCall()
321 verify(mContext, times(1)).bindServiceAsUser(any(Intent.class), in testStripPostDialDigits()
H A 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()
H A DCallScreeningServiceFilterTest.java134 when(mContext.bindServiceAsUser(nullable(Intent.class), nullable(ServiceConnection.class), in setUp()
156 when(mContext.bindServiceAsUser(nullable(Intent.class), nullable(ServiceConnection.class), in testContextFailToBind()
201 when(mContext.bindServiceAsUser(nullable(Intent.class), nullable(ServiceConnection.class), in testNoBindingCondition()
397 .bindServiceAsUser(intentCaptor.capture(), serviceCaptor.capture(), in verifyBindingIntent()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/cluster/
H A DInstrumentClusterServiceTest.java98 doReturn(true).when(mContext).bindServiceAsUser(any(), any(), anyInt(), any()); in setUp()
148 verify(mContext).bindServiceAsUser(any(), any(), anyInt(), any()); in testNonNullManager()
163 verify(mContext).bindServiceAsUser(any(), any(), anyInt(), any()); in testDelayedConnection()
171 verify(mContext, times(0)).bindServiceAsUser(any(), any(), anyInt(), any()); in testNoConfig()
/aosp12/frameworks/base/services/robotests/backup/src/com/android/server/backup/transport/
H A DTransportClientManagerTest.java68 when(mContext.bindServiceAsUser( in setUp()
84 .bindServiceAsUser( in testGetTransportClient()
102 .bindServiceAsUser( in testGetTransportClient_withExtras_createsTransportClientWithCorrectIntent()
H A DTransportClientTest.java120 when(mContext.bindServiceAsUser( in setUp()
143 .bindServiceAsUser( in testConnectAsync_callsBindService()
192 when(mContext.bindServiceAsUser( in testConnectAsync_whenFrameworkDoesntBind_callsListener()
208 when(mContext.bindServiceAsUser( in testConnectAsync_whenFrameworkDoesNotBind_releasesConnection()
542 .bindServiceAsUser( in verifyBindServiceAsUserAndCaptureServiceConnection()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
H A DCarUserNoticeServiceTest.java142 when(mMockContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(true); in setUpMocks()
273 verify(mMockContext).bindServiceAsUser(any(), any(), anyInt(), any()); in assertUiShownOnce()
277 verify(mMockContext, times(2)).bindServiceAsUser(any(), any(), anyInt(), any()); in assertUiShownTwice()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/android/car/
H A DCarTest.java157 when(mContext.bindServiceAsUser(anyObject(), anyObject(), anyInt(), in expectBindService()
173 verify(mContext, times(1)).bindServiceAsUser(anyObject(), anyObject(), anyInt(), in assertServiceBoundOnce()
268 verify(mContext, times(1)).bindServiceAsUser(anyObject(), anyObject(), anyInt(), in testCreateCarWithStatusChangeDirectCallInsideMainForServiceAlreadyReady()
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
H A DPersistentConnectionTest.java133 when(context.bindServiceAsUser(any(Intent.class), any(ServiceConnection.class), anyInt(), in testAll()
148 verify(context).bindServiceAsUser( in testAll()
330 when(context.bindServiceAsUser(any(Intent.class), any(ServiceConnection.class), anyInt(), in testReconnectFiresAfterUnbind()
379 when(context.bindServiceAsUser(any(Intent.class), any(ServiceConnection.class), anyInt(), in testResetBackoff()
/aosp12/frameworks/base/tests/testables/src/android/testing/
H A DTestableContext.java243 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, int flags, in bindServiceAsUser() method in TestableContext
247 return super.bindServiceAsUser(service, conn, flags, handler, user); in bindServiceAsUser()
254 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, int flags, in bindServiceAsUser() method in TestableContext
258 return super.bindServiceAsUser(service, conn, flags, user); in bindServiceAsUser()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/
H A DVendorServiceControllerTest.java253 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, int flags, in bindServiceAsUser() method in VendorServiceControllerTest.ServiceLauncherContext
265 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, in bindServiceAsUser() method in VendorServiceControllerTest.ServiceLauncherContext
267 return bindServiceAsUser(service, conn, flags, null, user); in bindServiceAsUser()
/aosp12/frameworks/opt/car/services/tests/src/com/android/internal/car/
H A DCarServiceHelperServiceTest.java236 verify(mMockContext).bindServiceAsUser( in verifyBindService()
247 when(mMockContext.bindServiceAsUser(any(), any(), in mockBindService()
/aosp12/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
H A DRestrictedProfilePinServiceConnection.java86 mContext.bindServiceAsUser(intent, this, Context.BIND_AUTO_CREATE, UserHandle.SYSTEM); in bindPinService()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/databroker/
H A DDataBrokerTest.java148 when(mMockContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer(i -> { in setUp()
384 when(mMockContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer( in testScheduleNextTask_bindScriptExecutorFailedOnce_shouldRebind()
416 when(mMockContext.bindServiceAsUser(any(), any(), anyInt(), any())) in testScheduleNextTask_bindScriptExecutorFailedMultipleTimes_shouldDisableBroker()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DNetworkScoreServiceTest.java885 verify(mContext).bindServiceAsUser(MockUtils.checkIntent( in testServiceConnection_bind_notBound()
898 when(mContext.bindServiceAsUser(MockUtils.checkIntent( in testServiceConnection_bind_alreadyBound()
909 verify(mContext, times(1)).bindServiceAsUser(MockUtils.checkIntent( in testServiceConnection_bind_alreadyBound()
922 when(mContext.bindServiceAsUser(MockUtils.checkIntent( in testServiceConnection_bindFails()
949 when(mContext.bindServiceAsUser(MockUtils.checkIntent( in testServiceConnection_unbind_alreadyBound()
/aosp12/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/
H A DSuggestionController.java83 mContext.bindServiceAsUser(mServiceIntent, mServiceConnection, Context.BIND_AUTO_CREATE, in start()
/aosp12/frameworks/base/services/core/java/com/android/server/location/geofence/
H A DGeofenceProxy.java86 context.bindServiceAsUser( in register()
/aosp12/frameworks/base/core/tests/screenshothelpertests/src/com/android/internal/util/
H A DScreenshotHelperTest.java70 doReturn(true).when(mContext).bindServiceAsUser(any(), any(), anyInt(), any()); in setUp()
/aosp12/frameworks/base/services/systemcaptions/java/com/android/server/systemcaptions/
H A DRemoteSystemCaptionsManagerService.java135 boolean willBind = mContext.bindServiceAsUser(mIntent, mServiceConnection, flags, in handleEnsureBound()
/aosp12/frameworks/base/services/core/java/com/android/server/tv/
H A DTvRemoteProviderProxy.java114 mBound = mContext.bindServiceAsUser(service, this, in bind()
/aosp12/packages/services/Telecomm/src/com/android/server/telecom/
H A DTelecomSystem.java282 public boolean bindServiceAsUser(@NonNull Intent service, in TelecomSystem()
285 return mContext.bindServiceAsUser(service, conn, flags, user); in TelecomSystem()
/aosp12/frameworks/base/core/java/android/bluetooth/
H A DBluetoothProfileConnector.java105 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0, in doBind()
/aosp12/packages/services/Car/service/src/com/android/car/pm/
H A DAppBlockingPolicyProxy.java85 mContext.bindServiceAsUser(intent, this, Context.BIND_AUTO_CREATE | Context.BIND_IMPORTANT, in connect()
/aosp12/packages/services/Car/experimental/tests/experimentalcarservice_unit_test/src/com/android/experimentalcar/
H A DDriverDistractionExperimentalFeatureServiceTest.java745 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, int flags, in bindServiceAsUser() method in DriverDistractionExperimentalFeatureServiceTest.ServiceLauncherContext
755 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, in bindServiceAsUser() method in DriverDistractionExperimentalFeatureServiceTest.ServiceLauncherContext
757 return bindServiceAsUser(service, conn, flags, null, user); in bindServiceAsUser()

12345