/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/domainselection/ |
D | DomainSelectionControllerTest.java | 116 public boolean bindService(Intent service, ServiceConnection conn, int flags) { in setUp() 117 return mMockContext.bindService(service, conn, flags); in setUp() 131 when(mMockContext.bindService(any(), any(), anyInt())).thenReturn(true); in setUp() 156 verify(mMockContext).bindService(intentCaptor.capture(), any(), eq(expectedFlags)); in testBindService() 175 verify(mMockContext, times(1)).bindService(any(), any(), anyInt()); in testBindFailureWhenBound() 251 verify(mMockContext, times(2)).bindService(any(), any(), anyInt()); in testAutoBindAfterBinderDied() 270 verify(mMockContext, times(2)).bindService(any(), any(), anyInt()); in testAutoBindAfterBinderDiedIgnoreNullBinding() 284 verify(mMockContext, times(1)).bindService(any(), any(), anyInt()); in testNoAutoBindBeforeTimeout() 302 verify(mMockContext, times(1)).bindService(any(), any(), anyInt()); in testUnbindCauseAutoBindCancelAfterBinderDied() 317 ServiceConnection connection = bindService(mTestComponentName); in bindAndNullServiceError() [all …]
|
/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/ |
D | OomAdjPerfTest.java | 157 TargetPackageUtils.bindService(STUB_PACKAGE1_NAME, STUB_PACKAGE2_NAME, in runCUJWithOomComputationOnce() 165 TargetPackageUtils.bindService(STUB_PACKAGE2_NAME, STUB_PACKAGE3_NAME, in runCUJWithOomComputationOnce() 178 TargetPackageUtils.bindService(STUB_PACKAGE1_NAME, STUB_PACKAGE2_NAME, in runCUJWithOomComputationOnce() 181 TargetPackageUtils.bindService(STUB_PACKAGE3_NAME, STUB_PACKAGE1_NAME, in runCUJWithOomComputationOnce() 195 TargetPackageUtils.bindService(STUB_PACKAGE3_NAME, STUB_PACKAGE1_NAME, in runCUJWithOomComputationOnce() 206 TargetPackageUtils.bindService(STUB_PACKAGE3_NAME, STUB_PACKAGE2_NAME, in runCUJWithOomComputationOnce() 212 TargetPackageUtils.bindService(STUB_PACKAGE3_NAME, STUB_PACKAGE2_NAME, in runCUJWithOomComputationOnce() 218 TargetPackageUtils.bindService(STUB_PACKAGE3_NAME, STUB_PACKAGE2_NAME, in runCUJWithOomComputationOnce() 224 TargetPackageUtils.bindService(STUB_PACKAGE3_NAME, STUB_PACKAGE2_NAME, in runCUJWithOomComputationOnce() 230 TargetPackageUtils.bindService(STUB_PACKAGE3_NAME, STUB_PACKAGE2_NAME, in runCUJWithOomComputationOnce()
|
D | ServiceBindPerfTest.java | 59 private void bindService(Intent intent, ServiceConnection serviceConnection, int flags) { 60 final boolean success = mContext.bindService(intent, serviceConnection, flags); 75 bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE); 97 bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE); 125 bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE); 154 bindService(intentNoOom, serviceConnectionNoOom, Context.BIND_AUTO_CREATE);
|
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
D | MockingOomAdjusterTests.java | 685 ServiceRecord s = bindService(app, system, in testUpdateOomAdj_DoOne_PerceptibleRecent_AlmostPerceptibleService() 719 ServiceRecord s = bindService(app, system, in testUpdateOomAdj_DoOne_PerceptibleRecent_AlmostPerceptibleService() 741 ServiceRecord s = bindService(app, system, in testUpdateOomAdj_DoOne_PerceptibleRecent_AlmostPerceptibleService() 766 ServiceRecord s = bindService(app, system, in testUpdateOomAdj_DoOne_ImpFg_AlmostPerceptibleService() 953 ServiceRecord s = bindService(app, client, null, null, Context.BIND_WAIVE_PRIORITY, in testUpdateOomAdj_DoOne_Service_Started_WaivePriority() 973 bindService(app, client, null, null, Context.BIND_WAIVE_PRIORITY in testUpdateOomAdj_DoOne_Service_Started_WaivePriority_TreatLikeActivity() 989 ServiceRecord s = bindService(app, client, null, null, Context.BIND_WAIVE_PRIORITY in testUpdateOomAdj_DoOne_Service_Started_WaivePriority_AdjustWithActivity() 1008 bindService(app, app, null, null, 0, mock(IBinder.class)); in testUpdateOomAdj_DoOne_Service_Self() 1023 bindService(app, client, null, null, 0, mock(IBinder.class)); in testUpdateOomAdj_DoOne_Service_CachedActivity() 1041 bindService(app, client, null, null, Context.BIND_ALLOW_OOM_MANAGEMENT, in testUpdateOomAdj_DoOne_Service_AllowOomManagement() [all …]
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | BinderProxyCountingTest.java | 131 private ServiceConnection bindService(final Consumer<IBinder> consumer, Intent intent) in bindService() method in BinderProxyCountingTest 147 sContext.bindService(intent, connection, in bindService() 215 sTestAppConnection = bindService(sTestAppConsumer, sTestAppIntent); in testBinderProxyCount() 242 sTestAppConnection = bindService(sTestAppConsumer, sTestAppIntent); in testBinderProxyLimitBoundary() 243 sTestServiceConnection = bindService(sTestServiceConsumer, sTestServiceIntent); in testBinderProxyLimitBoundary() 293 sTestAppConnection = bindService(sTestAppConsumer, sTestAppIntent); in testSetBinderProxyLimit() 294 sTestServiceConnection = bindService(sTestServiceConsumer, sTestServiceIntent); in testSetBinderProxyLimit() 335 sTestAppConnection = bindService(sTestAppConsumer, sTestAppIntent); in testRearmCallbackThreshold() 336 sTestServiceConnection = bindService(sTestServiceConsumer, sTestServiceIntent); in testRearmCallbackThreshold() 416 sTestAppConnection = bindService(sTestAppConsumer, sTestAppIntent); in testKillBadBehavingApp()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | GbaManagerTest.java | 103 when(mMockContext.bindService(any(), any(), anyInt())).thenReturn(true); in setUp() 132 verify(mMockContext, never()).bindService(any(), any(), anyInt()); in testFailOnRequest() 155 when(mMockContext.bindService(any(), any(), anyInt())).thenReturn(false); in testFailAndRetryOnRequest() 163 verify(mMockContext, times(i + 1)).bindService(any(), any(), anyInt()); in testFailAndRetryOnRequest() 214 verify(mMockContext, never()).bindService(any(), any(), anyInt()); in testDontBindServiceWhenPackageNameChanged() 226 verify(mMockContext, never()).bindService(any(), any(), anyInt()); in testDontBindServiceWhenReleaseTimeChanged() 270 ServiceConnection connection = bindService(component); in bindAndConnectService() 278 private ServiceConnection bindService(ComponentName component) { in bindService() method in GbaManagerTest 283 verify(mMockContext, atLeastOnce()).bindService(intentCaptor.capture(), in bindService()
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | PersistentServiceConnectionTest.java | 128 verify(mContext, times(1)).bindService( in testRetryOnBindFailure() 138 verify(mContext, times(2)).bindService( in testRetryOnBindFailure() 148 verify(mContext, times(3)).bindService( in testRetryOnBindFailure() 158 verify(mContext, times(3)).bindService( in testRetryOnBindFailure() 169 verify(mContext, times(1)).bindService( in testManualUnbindDoesNotReconnect() 181 verify(mContext, times(1)).bindService( in testManualUnbindDoesNotReconnect()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/ |
D | ControlsProviderLifecycleManager.kt | 106 bindService(true, lastForPanel) in <lambda>() 111 private fun bindService(bind: Boolean, forPanel: Boolean = false) { in bindService() method 225 bindService(true) in invokeOrQueue() 324 fun bindService() { in bindService() method 325 bindService(true) in bindService() 329 bindService(bind = true, forPanel = true) in bindServiceForPanel() 339 bindService(false) in unbindService()
|
D | ControlsBindingController.kt | 59 fun bindService(component: ComponentName) in bindAndLoad() method
|
/frameworks/base/tests/EnforcePermission/perf-app/src/android/tests/enforcepermission/tests/ |
D | ServicePerfTest.java | 68 private void bindService(Intent intent) throws Exception { in bindService() method in ServicePerfTest 71 assertTrue(mContext.bindService(intent, mServiceConnection, Context.BIND_AUTO_CREATE)); in bindService() 78 bindService(intent); in bindRemoteService() 85 bindService(intent); in bindLocalService()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/ |
D | ControlsProviderLifecycleManagerTest.kt | 115 manager.bindService() in testBindService() 160 nullManager.bindService() in testNullBinding() 168 manager.bindService() in testUnbindService() 256 manager.bindService() in testFalseBindCallsUnbind() 274 manager.bindService() in testBound_packageMonitorStartsMonitoring() 296 manager.bindService() in testOnPackageUpdateWhileBound_unbound_thenBindAgain() 329 manager.bindService() in testUnbindService_stopsTracking()
|
D | ControlsBindingControllerImplTest.kt | 262 controller.bindService(TEST_COMPONENT_NAME_1) in testBindService() 265 verify(providers[0]).bindService() in testBindService() 298 controller.bindService(TEST_COMPONENT_NAME_2) in testUnsubscribe_notRefreshing() 339 controller.bindService(TEST_COMPONENT_NAME_1) in testChangeUsers_providersHaveCorrectUser() 344 controller.bindService(TEST_COMPONENT_NAME_2) in testChangeUsers_providersHaveCorrectUser() 350 controller.bindService(TEST_COMPONENT_NAME_1) in testChangeUsers_providersUnbound() 355 controller.bindService(TEST_COMPONENT_NAME_2) in testChangeUsers_providersUnbound() 363 controller.bindService(TEST_COMPONENT_NAME_1) in testComponentRemoved_existingIsUnbound()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | ServiceTest.java | 111 final int servicePid = bindService(Context.BIND_AUTO_CREATE); in testRestart_boundService_restarted() 131 final int servicePid = bindService(Context.BIND_AUTO_CREATE); in testRestart_boundNotStickyStartedService_restarted() 154 assertThat(bindService(0 /* flags */), is(servicePid)); in testRestart_notStickyStartedNoAutoCreateBoundService_notRestarted() 186 private int bindService(int flags) { in bindService() method in ServiceTest 188 assertThat(mContext.bindService(mServiceIntent, mCurrentConnection, flags), is(true)); in bindService()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
D | ImsServiceControllerCompatTest.java | 113 when(mMockContext.bindService(any(), any(), anyInt())).thenReturn(true); in setUp() 182 ServiceConnection connection = bindService(testFeatures, slotIdToSubIdMap); in bindAndConnectService() 189 private ServiceConnection bindService( in bindService() method in ImsServiceControllerCompatTest 195 verify(mMockContext).bindService(any(), serviceCaptor.capture(), anyInt()); in bindService()
|
/frameworks/base/test-runner/api/ |
D | lint-baseline.txt | 56 MissingNullability: android.test.IsolatedContext#bindService(android.content.Intent, android.conten… 57 Missing nullability on parameter `service` in method `bindService` 58 MissingNullability: android.test.IsolatedContext#bindService(android.content.Intent, android.conten… 59 Missing nullability on parameter `conn` in method `bindService` 60 MissingNullability: android.test.IsolatedContext#bindService(android.content.Intent, int, java.util… 61 Missing nullability on parameter `service` in method `bindService` 62 MissingNullability: android.test.IsolatedContext#bindService(android.content.Intent, int, java.util… 63 Missing nullability on parameter `executor` in method `bindService` 64 MissingNullability: android.test.IsolatedContext#bindService(android.content.Intent, int, java.util… 65 Missing nullability on parameter `conn` in method `bindService`
|
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/ |
D | FakeApp.java | 146 bindService(new Intent(this, FakeCoreService.class), mServiceConnection, in onCreate() 148 bindService(new Intent(this, FakeCoreService2.class), mServiceConnection2, in onCreate() 150 bindService(new Intent(this, FakeCoreService3.class), mServiceConnection3, in onCreate()
|
/frameworks/base/core/tests/coretests/src/android/service/settings/suggestions/ |
D | SuggestionServiceTest.java | 69 IBinder binder = mServiceTestRule.bindService(mMockServiceIntent); in dismissSuggestion_shouldCallImplementation() 80 IBinder binder = mServiceTestRule.bindService(mMockServiceIntent); in launchSuggestion_shouldCallImplementation()
|
/frameworks/base/core/java/com/android/internal/statusbar/ |
D | AppClipsServiceConnector.java | 90 boolean bindService = mContext.bindServiceAsUser(serviceIntent, serviceConnection, in connectToServiceAndProcessRequest() 95 if (!bindService) { in connectToServiceAndProcessRequest()
|
/frameworks/base/test-runner/src/android/test/ |
D | IsolatedContext.java | 85 public boolean bindService(Intent service, ServiceConnection conn, int flags) { in bindService() method in IsolatedContext 90 public boolean bindService(Intent service, int flags, Executor executor, in bindService() method in IsolatedContext
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
D | TileServiceManager.java | 158 bindService(); in setBindRequested() 203 bindService(); in setBindAllowed() 215 private void bindService() { in bindService() method in TileServiceManager
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | NetworkRegistrationManager.java | 239 private void bindService(String packageName) { in bindService() method in NetworkRegistrationManager 266 if (!mPhone.getContext().bindService(intent, mServiceConnection, in bindService() 287 bindService(packageName); in rebindService()
|
/frameworks/base/test-mock/api/ |
D | lint-baseline.txt | 32 MissingNullability: android.test.mock.MockContext#bindService(android.content.Intent, int, java.uti… 33 Missing nullability on parameter `service` in method `bindService` 34 MissingNullability: android.test.mock.MockContext#bindService(android.content.Intent, int, java.uti… 35 Missing nullability on parameter `executor` in method `bindService` 36 MissingNullability: android.test.mock.MockContext#bindService(android.content.Intent, int, java.uti… 37 Missing nullability on parameter `conn` in method `bindService`
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
D | PrintSpoolerProvider.java | 37 mContext.bindService(intent, this, BIND_AUTO_CREATE); in PrintSpoolerProvider()
|
/frameworks/base/services/core/java/com/android/server/ |
D | ExplicitHealthCheckController.java | 291 private void bindService() { in bindService() method in ExplicitHealthCheckController 335 bindService(); in bindService() 450 bindService(); in prepareServiceLocked()
|
/frameworks/base/tests/ServiceCrashTest/src/com/android/tests/servicecrashtest/ |
D | MainActivity.java | 66 bindService(intent, mServiceConnection, Service.BIND_AUTO_CREATE); in onResume()
|