Home
last modified time | relevance | path

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

1234

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
H A DControlsProviderLifecycleManagerTest.kt140 `when`(mockContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer {
262 verify(falseContext).bindServiceAsUser(any(), captor.capture(), anyInt(), any())
284 `when`(bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(true)
305 inOrder.verify(mockContext).bindServiceAsUser(any(), any(), anyInt(), any())
311 `when`(bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(true)
339 `when`(bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(true)
355 verify(mockContext).bindServiceAsUser(any(), any(), capture(flagsCaptor), any())
361 verify(mockContext).bindServiceAsUser(any(), any(), eq(flagsCaptor.value), any())
367 `when`(bindServiceAsUser(any(), any(), anyInt(), any()))
383 `when`(mockContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(true)
[all …]
/aosp14/frameworks/base/services/robotests/backup/src/com/android/server/backup/transport/
H A DTransportConnectionManagerTest.java68 when(mContext.bindServiceAsUser( in setUp()
84 .bindServiceAsUser( in testGetTransportClient()
103 .bindServiceAsUser( in testGetTransportClient_withExtras_createsTransportClientWithCorrectIntent()
H A DTransportConnectionTest.java123 when(mContext.bindServiceAsUser( in setUp()
146 .bindServiceAsUser( in testConnectAsync_callsBindService()
199 when(mContext.bindServiceAsUser( in testConnectAsync_whenFrameworkDoesntBind_callsListener()
215 when(mContext.bindServiceAsUser( in testConnectAsync_whenFrameworkDoesNotBind_releasesConnection()
550 .bindServiceAsUser( in verifyBindServiceAsUserAndCaptureServiceConnection()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
H A DTileLifecycleManagerTest.java315 when(falseContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(false); in testFalseBindCallsUnbind()
328 verify(falseContext).bindServiceAsUser(any(), captor.capture(), anyInt(), any()); in testFalseBindCallsUnbind()
351 verify(falseContext).bindServiceAsUser(any(), any(), eq(flags), any()); in testVersionUDoesNotBindsAllowBackgroundActivity()
373 verify(falseContext).bindServiceAsUser(any(), any(), eq(flags), any()); in testVersionLessThanUBindsAllowBackgroundActivity()
380 when(mockContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(true); in testNullBindingCallsUnbind()
393 verify(mockContext).bindServiceAsUser(any(), captor.capture(), anyInt(), any()); in testNullBindingCallsUnbind()
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/service/
H A DObservableServiceConnectionTest.java143 when(mContext.bindServiceAsUser(eq(mIntent), eq(connection), anyInt(), in testDisconnect()
174 when(mContext.bindServiceAsUser(eq(mIntent), eq(connection), anyInt(), in testUnbind()
194 when(mContext.bindServiceAsUser(eq(mIntent), eq(connection), anyInt(), in testBindServiceThrowsError()
/aosp14/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/
H A DInputMethodBindingControllerTest.java112 .bindServiceAsUser( in testBindCurrentMethod_notConnected()
153 .bindServiceAsUser( in testBindCurrentMethodWithMainConnection()
186 .bindServiceAsUser( in testBindCurrentMethodWithVisibleConnection()
/aosp14/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()
/aosp14/frameworks/base/tests/testables/src/android/testing/
H A DTestableContext.java277 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, int flags, in bindServiceAsUser() method in TestableContext
281 return super.bindServiceAsUser(service, conn, flags, handler, user); in bindServiceAsUser()
288 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, int flags, in bindServiceAsUser() method in TestableContext
292 return super.bindServiceAsUser(service, conn, flags, user); in bindServiceAsUser()
/aosp14/frameworks/base/core/java/android/content/
H A DContextWrapper.java890 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, int flags, in bindServiceAsUser() method in ContextWrapper
892 return mBase.bindServiceAsUser(service, conn, flags, user); in bindServiceAsUser()
897 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, in bindServiceAsUser() method in ContextWrapper
899 return mBase.bindServiceAsUser(service, conn, flags, user); in bindServiceAsUser()
904 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, int flags, in bindServiceAsUser() method in ContextWrapper
906 return mBase.bindServiceAsUser(service, conn, flags, handler, user); in bindServiceAsUser()
911 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, in bindServiceAsUser() method in ContextWrapper
913 return mBase.bindServiceAsUser(service, conn, flags, handler, user); in bindServiceAsUser()
/aosp14/frameworks/base/core/java/com/android/internal/statusbar/
H A DAppClipsServiceConnector.java90 boolean bindService = mContext.bindServiceAsUser(serviceIntent, serviceConnection, in connectToServiceAndProcessRequest()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/dreams/
H A DDreamControllerTest.java97 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(true); in setup()
266 verify(mContext).bindServiceAsUser(any(), mServiceConnectionACaptor.capture(), anyInt(), in captureServiceConnection()
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
H A DManagedServicesTest.java879 when(context.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer(invocation -> { in reregisterService_checksAppIsApproved_pkg()
909 when(context.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer(invocation -> { in reregisterService_checksAppIsApproved_pkg_secondary()
939 when(context.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer(invocation -> { in reregisterService_checksAppIsApproved_cn()
969 when(context.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer(invocation -> { in reregisterService_checksAppIsApproved_cn_secondary()
999 when(context.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer(invocation -> { in reregisterService_checksAppIsNotApproved_cn_secondary()
1029 when(context.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer(invocation -> { in unbindOtherUserServices()
1456 when(context.bindServiceAsUser(any(), captor.capture(), anyInt(), any())) in testOnNullBinding()
1483 when(context.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer(invocation -> { in testOnServiceConnected()
1511 when(context.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer(invocation -> { in testSetComponentState()
1541 when(context.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer(invocation -> { in testSetComponentState_workProfile()
[all …]
/aosp14/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/
H A DSuggestionController.java83 mContext.bindServiceAsUser(mServiceIntent, mServiceConnection, Context.BIND_AUTO_CREATE, in start()
/aosp14/frameworks/base/services/core/java/com/android/server/location/geofence/
H A DGeofenceProxy.java86 context.bindServiceAsUser( in register()
/aosp14/frameworks/base/services/systemcaptions/java/com/android/server/systemcaptions/
H A DRemoteSystemCaptionsManagerService.java135 boolean willBind = mContext.bindServiceAsUser(mIntent, mServiceConnection, flags, in handleEnsureBound()
/aosp14/frameworks/base/services/core/java/com/android/server/tv/
H A DTvRemoteProviderProxy.java114 mBound = mContext.bindServiceAsUser(service, this, in bind()
/aosp14/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()
/aosp14/frameworks/base/services/core/java/com/android/server/connectivity/
H A DPacProxyService.java375 mContext.bindServiceAsUser(intent, mConnection, in bind()
417 mContext.bindServiceAsUser(intent, mProxyConnection, in bind()
/aosp14/frameworks/base/core/tests/screenshothelpertests/src/com/android/internal/util/
H A DScreenshotHelperTest.java72 doReturn(true).when(mContext).bindServiceAsUser(any(), any(), anyInt(), any()); in setUp()
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
H A DFullBackupObbConnection.java67 backupManagerService.getContext().bindServiceAsUser( in establish()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/rotationresolver/
H A DRotationResolverManagerPerUserServiceTest.java74 doReturn(true).when(mContext).bindServiceAsUser(any(), any(), anyInt(), any()); in setUp()
/aosp14/frameworks/base/services/print/java/com/android/server/print/
H A DRemotePrintServiceRecommendationService.java142 mIsBound = mContext.bindServiceAsUser(serviceIntent, mConnection, in RemotePrintServiceRecommendationService()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
H A DTileLifecycleManager.java255 return mContext.bindServiceAsUser(mIntent, this, in bindServices()
261 return mContext.bindServiceAsUser(mIntent, this, in bindServices()
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/service/
H A DObservableServiceConnection.java152 bindResult = mContext.bindServiceAsUser(mServiceIntent, this, mFlags, in bind()
/aosp14/frameworks/base/core/java/com/android/internal/util/
H A DScreenshotHelper.java193 if (mContext.bindServiceAsUser(serviceIntent, conn, in takeScreenshotInternal()

1234