Home
last modified time | relevance | path

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

1234

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/external/
DCloseShadeRightAfterClickTestB339290820.kt174 override fun bindServiceAsUser( in bindServiceAsUser() method in ContextWrapperDelayedBind
180 executor.execute { super.bindServiceAsUser(service, conn, flags, user) } in bindServiceAsUser()
184 override fun bindServiceAsUser( in bindServiceAsUser() method in ContextWrapperDelayedBind
190 executor.execute { super.bindServiceAsUser(service, conn, flags, user) } in bindServiceAsUser()
194 override fun bindServiceAsUser( in bindServiceAsUser() method in ContextWrapperDelayedBind
201 executor.execute { super.bindServiceAsUser(service, conn, flags, handler, user) } in bindServiceAsUser()
205 override fun bindServiceAsUser( in bindServiceAsUser() method in ContextWrapperDelayedBind
212 executor.execute { super.bindServiceAsUser(service, conn, flags, handler, user) } in bindServiceAsUser()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DControlsProviderLifecycleManagerTest.kt140 `when`(mockContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer { in testNullBinding()
247 `when`(falseContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(false) in testFalseBindCallsUnbind()
262 verify(falseContext).bindServiceAsUser(any(), captor.capture(), anyInt(), any()) in testFalseBindCallsUnbind()
284 `when`(bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(true) in testOnPackageUpdateWhileBound_unbound_thenBindAgain()
305 inOrder.verify(mockContext).bindServiceAsUser(any(), any(), anyInt(), any()) in testOnPackageUpdateWhileBound_unbound_thenBindAgain()
311 `when`(bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(true) in testOnPackageUpdateWhenNotBound_nothingHappens()
339 `when`(bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(true) in testRebindForPanelWithSameFlags()
355 verify(mockContext).bindServiceAsUser(any(), any(), capture(flagsCaptor), any()) in testRebindForPanelWithSameFlags()
361 verify(mockContext).bindServiceAsUser(any(), any(), eq(flagsCaptor.value), any()) in testRebindForPanelWithSameFlags()
367 `when`(bindServiceAsUser(any(), any(), anyInt(), any())) in testBindAfterSecurityExceptionWorks()
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/transport/
DTransportConnectionManagerTest.java68 when(mContext.bindServiceAsUser( in setUp()
84 .bindServiceAsUser( in testGetTransportClient()
103 .bindServiceAsUser( in testGetTransportClient_withExtras_createsTransportClientWithCorrectIntent()
DTransportConnectionTest.java124 when(mContext.bindServiceAsUser( in setUp()
147 .bindServiceAsUser( in testConnectAsync_callsBindService()
200 when(mContext.bindServiceAsUser( in testConnectAsync_whenFrameworkDoesntBind_callsListener()
216 when(mContext.bindServiceAsUser( in testConnectAsync_whenFrameworkDoesNotBind_releasesConnection()
563 .bindServiceAsUser( in verifyBindServiceAsUserAndCaptureServiceConnection()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/service/
DObservableServiceConnectionTest.java142 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()
211 when(mContext.bindServiceAsUser(eq(mIntent), eq(connection), anyInt(), in testUnbindDoesNotCallUnbindServiceWhenBindThrowsError()
/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/
DInputMethodBindingControllerTest.java116 .bindServiceAsUser( in testBindCurrentMethod_notConnected()
158 .bindServiceAsUser( in testBindCurrentMethodWithMainConnection()
191 .bindServiceAsUser( in testBindCurrentMethodWithVisibleConnection()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/external/
DTileLifecycleManagerTest.java467 when(falseContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(false); in testFalseBindCallsUnbind()
482 verify(falseContext).bindServiceAsUser(any(), captor.capture(), anyInt(), any()); in testFalseBindCallsUnbind()
507 verify(falseContext).bindServiceAsUser(any(), any(), eq(flags), any()); in testVersionUDoesNotBindsAllowBackgroundActivity()
531 verify(falseContext).bindServiceAsUser(any(), any(), eq(flags), any()); in testVersionLessThanUBindsAllowBackgroundActivity()
538 when(mockContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(true); in testNullBindingCallsUnbind()
553 verify(mockContext).bindServiceAsUser(any(), captor.capture(), anyInt(), any()); in testNullBindingCallsUnbind()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
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()
/frameworks/base/tests/testables/src/android/testing/
DTestableContext.java296 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, int flags, in bindServiceAsUser() method in TestableContext
300 return super.bindServiceAsUser(service, conn, flags, handler, user); in bindServiceAsUser()
307 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, int flags, in bindServiceAsUser() method in TestableContext
311 return super.bindServiceAsUser(service, conn, flags, user); in bindServiceAsUser()
/frameworks/base/core/java/com/android/internal/statusbar/
DAppClipsServiceConnector.java90 boolean bindService = mContext.bindServiceAsUser(serviceIntent, serviceConnection, in connectToServiceAndProcessRequest()
/frameworks/base/core/java/android/content/
DContextWrapper.java892 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, int flags, in bindServiceAsUser() method in ContextWrapper
894 return mBase.bindServiceAsUser(service, conn, flags, user); in bindServiceAsUser()
899 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, in bindServiceAsUser() method in ContextWrapper
901 return mBase.bindServiceAsUser(service, conn, flags, user); in bindServiceAsUser()
906 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, int flags, in bindServiceAsUser() method in ContextWrapper
908 return mBase.bindServiceAsUser(service, conn, flags, handler, user); in bindServiceAsUser()
913 public boolean bindServiceAsUser(Intent service, ServiceConnection conn, in bindServiceAsUser() method in ContextWrapper
915 return mBase.bindServiceAsUser(service, conn, flags, handler, user); in bindServiceAsUser()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/suggestions/
DSuggestionController.java83 mContext.bindServiceAsUser(mServiceIntent, mServiceConnection, Context.BIND_AUTO_CREATE, in start()
/frameworks/base/services/tests/dreamservicetests/src/com/android/server/dreams/
DDreamControllerTest.java104 when(mContext.bindServiceAsUser(any(), any(), anyInt(), any())).thenReturn(true); in setup()
309 verify(mContext).bindServiceAsUser(any(), mServiceConnectionACaptor.capture(), anyInt(), in captureServiceConnection()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/recents/
DOverviewProxyServiceTest.kt210 verify(spyContext, atLeast(1)).bindServiceAsUser(any(), any(), anyInt(), any()) in connectToOverviewService_primaryUser_expectBindService()
225 verify(spyContext, times(0)).bindServiceAsUser(any(), any(), anyInt(), any()) in connectToOverviewService_nonPrimaryUser_expectNoBindService()
/frameworks/base/services/core/java/com/android/server/location/geofence/
DGeofenceProxy.java86 context.bindServiceAsUser( in register()
/frameworks/base/services/core/java/com/android/server/tv/
DTvRemoteProviderProxy.java114 mBound = mContext.bindServiceAsUser(service, this, in bind()
/frameworks/base/services/systemcaptions/java/com/android/server/systemcaptions/
DRemoteSystemCaptionsManagerService.java135 boolean willBind = mContext.bindServiceAsUser(mIntent, mServiceConnection, flags, in handleEnsureBound()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DManagedServicesTest.java884 when(context.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer(invocation -> { in reregisterService_checksAppIsApproved_pkg()
915 when(context.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer(invocation -> { in reregisterService_checksAppIsApproved_pkg_secondary()
946 when(context.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer(invocation -> { in reregisterService_checksAppIsApproved_cn()
977 when(context.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer(invocation -> { in reregisterService_checksAppIsApproved_cn_secondary()
1008 when(context.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer(invocation -> { in reregisterService_checksAppIsNotApproved_cn_secondary()
1038 when(context.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer(invocation -> { in unbindOtherUserServices()
1164 doReturn(true).when(context).bindServiceAsUser(any(), any(), anyInt(), any()); in testUpgradeAppNoPermissionNoRebind()
1537 when(context.bindServiceAsUser(any(), captor.capture(), anyInt(), any())) in testOnNullBinding()
1564 when(context.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer(invocation -> { in testOnServiceConnected()
1592 when(context.bindServiceAsUser(any(), any(), anyInt(), any())).thenAnswer(invocation -> { in testSetComponentState()
[all …]
/frameworks/base/services/core/java/com/android/server/connectivity/
DPacProxyService.java375 mContext.bindServiceAsUser(intent, mConnection, in bind()
417 mContext.bindServiceAsUser(intent, mProxyConnection, in bind()
/frameworks/base/services/tests/servicestests/src/com/android/server/
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()
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
DFullBackupObbConnection.java67 backupManagerService.getContext().bindServiceAsUser( in establish()
/frameworks/base/services/tests/servicestests/src/com/android/server/rotationresolver/
DRotationResolverManagerPerUserServiceTest.java74 doReturn(true).when(mContext).bindServiceAsUser(any(), any(), anyInt(), any()); in setUp()
/frameworks/base/core/tests/screenshothelpertests/src/com/android/internal/util/
DScreenshotHelperTest.java72 doReturn(true).when(mContext).bindServiceAsUser(any(), any(), anyInt(), any()); in setUp()
/frameworks/base/services/print/java/com/android/server/print/
DRemotePrintServiceRecommendationService.java142 mIsBound = mContext.bindServiceAsUser(serviceIntent, mConnection, in RemotePrintServiceRecommendationService()
/frameworks/base/services/tests/servicestests/src/com/android/server/audio/
DMusicFxHelperTest.java126 .bindServiceAsUser(anyObject(), anyObject(), anyInt(), anyObject()); in openSessionWithResList()
212 .bindServiceAsUser(anyObject(), anyObject(), anyInt(), anyObject()); in testBroadcastIntentWithPackage()
219 .bindServiceAsUser(anyObject(), anyObject(), anyInt(), anyObject()); in testBroadcastIntentWithPackage()

1234