/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/ |
H A D | ControlsProviderLifecycleManagerTest.kt | 140 `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 D | TransportConnectionManagerTest.java | 68 when(mContext.bindServiceAsUser( in setUp() 84 .bindServiceAsUser( in testGetTransportClient() 103 .bindServiceAsUser( in testGetTransportClient_withExtras_createsTransportClientWithCorrectIntent()
|
H A D | TransportConnectionTest.java | 123 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 D | TileLifecycleManagerTest.java | 315 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 D | ObservableServiceConnectionTest.java | 143 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 D | InputMethodBindingControllerTest.java | 112 .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 D | PersistentConnectionTest.java | 133 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 D | TestableContext.java | 277 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 D | ContextWrapper.java | 890 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 D | AppClipsServiceConnector.java | 90 boolean bindService = mContext.bindServiceAsUser(serviceIntent, serviceConnection, in connectToServiceAndProcessRequest()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/dreams/ |
H A D | DreamControllerTest.java | 97 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 D | ManagedServicesTest.java | 879 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 D | SuggestionController.java | 83 mContext.bindServiceAsUser(mServiceIntent, mServiceConnection, Context.BIND_AUTO_CREATE, in start()
|
/aosp14/frameworks/base/services/core/java/com/android/server/location/geofence/ |
H A D | GeofenceProxy.java | 86 context.bindServiceAsUser( in register()
|
/aosp14/frameworks/base/services/systemcaptions/java/com/android/server/systemcaptions/ |
H A D | RemoteSystemCaptionsManagerService.java | 135 boolean willBind = mContext.bindServiceAsUser(mIntent, mServiceConnection, flags, in handleEnsureBound()
|
/aosp14/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | TvRemoteProviderProxy.java | 114 mBound = mContext.bindServiceAsUser(service, this, in bind()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/ |
H A D | NetworkScoreServiceTest.java | 885 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 D | PacProxyService.java | 375 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 D | ScreenshotHelperTest.java | 72 doReturn(true).when(mContext).bindServiceAsUser(any(), any(), anyInt(), any()); in setUp()
|
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/ |
H A D | FullBackupObbConnection.java | 67 backupManagerService.getContext().bindServiceAsUser( in establish()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/rotationresolver/ |
H A D | RotationResolverManagerPerUserServiceTest.java | 74 doReturn(true).when(mContext).bindServiceAsUser(any(), any(), anyInt(), any()); in setUp()
|
/aosp14/frameworks/base/services/print/java/com/android/server/print/ |
H A D | RemotePrintServiceRecommendationService.java | 142 mIsBound = mContext.bindServiceAsUser(serviceIntent, mConnection, in RemotePrintServiceRecommendationService()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
H A D | TileLifecycleManager.java | 255 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 D | ObservableServiceConnection.java | 152 bindResult = mContext.bindServiceAsUser(mServiceIntent, this, mFlags, in bind()
|
/aosp14/frameworks/base/core/java/com/android/internal/util/ |
H A D | ScreenshotHelper.java | 193 if (mContext.bindServiceAsUser(serviceIntent, conn, in takeScreenshotInternal()
|