/aosp12/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/common/ |
H A D | StartDpcInsideSuwServiceConnectionTest.java | 114 when(mActivity.bindService(any(Intent.class), any(ServiceConnection.class), anyInt())) in testBindingSucceeds_serviceConnects() 140 when(mActivity.bindService(any(Intent.class), any(ServiceConnection.class), anyInt())) in testBindingSucceeds_instanceStateSavedAndRestoredBeforeServiceConnected() 158 when(mRestoredActivity.bindService( in testBindingSucceeds_instanceStateSavedAndRestoredBeforeServiceConnected() 185 when(mActivity.bindService(any(Intent.class), any(ServiceConnection.class), anyInt())) in testBindingSucceeds_instanceStateSavedAndRestoredAfterServiceConnected() 209 when(mRestoredActivity.bindService( in testBindingSucceeds_instanceStateSavedAndRestoredAfterServiceConnected() 264 when(mRestoredActivity.bindService( in testBindingSucceeds_instanceStateSavedAndRestoredAfterDpcFinished() 272 verify(mRestoredActivity, never()).bindService(any(Intent.class), in testBindingSucceeds_instanceStateSavedAndRestoredAfterDpcFinished() 342 when(mRestoredActivity.bindService( in testBindingSucceeds_serviceConnectsAndDisconnects_instanceStateSavedAndRestored() 476 when(mRestoredActivity.bindService( in testBindingSucceeds_nullBinding_instanceStateSavedAndRestored() 548 when(mRestoredActivity.bindService( in testBindingFails_instanceStateSavedAndRestored() [all …]
|
/aosp12/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/ |
H A D | OomAdjPerfTest.java | 154 TargetPackageUtils.bindService(STUB_PACKAGE1_NAME, STUB_PACKAGE2_NAME, in runCUJWithOomComputationOnce() 162 TargetPackageUtils.bindService(STUB_PACKAGE2_NAME, STUB_PACKAGE3_NAME, in runCUJWithOomComputationOnce() 175 TargetPackageUtils.bindService(STUB_PACKAGE1_NAME, STUB_PACKAGE2_NAME, in runCUJWithOomComputationOnce() 178 TargetPackageUtils.bindService(STUB_PACKAGE3_NAME, STUB_PACKAGE1_NAME, in runCUJWithOomComputationOnce() 192 TargetPackageUtils.bindService(STUB_PACKAGE3_NAME, STUB_PACKAGE1_NAME, in runCUJWithOomComputationOnce() 203 TargetPackageUtils.bindService(STUB_PACKAGE3_NAME, STUB_PACKAGE2_NAME, in runCUJWithOomComputationOnce() 209 TargetPackageUtils.bindService(STUB_PACKAGE3_NAME, STUB_PACKAGE2_NAME, in runCUJWithOomComputationOnce() 215 TargetPackageUtils.bindService(STUB_PACKAGE3_NAME, STUB_PACKAGE2_NAME, in runCUJWithOomComputationOnce() 221 TargetPackageUtils.bindService(STUB_PACKAGE3_NAME, STUB_PACKAGE2_NAME, in runCUJWithOomComputationOnce() 227 TargetPackageUtils.bindService(STUB_PACKAGE3_NAME, STUB_PACKAGE2_NAME, in runCUJWithOomComputationOnce()
|
H A 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);
|
/aosp12/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/ |
H A D | MockingOomAdjusterTests.java | 677 bindService(app, app, null, 0, mock(IBinder.class)); in testUpdateOomAdj_DoOne_Service_Self() 1667 bindService(app, app2, null, 0, mock(IBinder.class)); in testUpdateOomAdj_DoAll_BoundFgService() 1689 bindService(app, app2, null, 0, mock(IBinder.class)); in testUpdateOomAdj_DoAll_BoundFgService_Cycle() 1694 bindService(app3, app, null, 0, mock(IBinder.class)); in testUpdateOomAdj_DoAll_BoundFgService_Cycle() 1732 bindService(app3, app, null, 0, mock(IBinder.class)); in testUpdateOomAdj_DoAll_BoundFgService_Cycle_Branch_2() 1738 bindService(app, app4, s, 0, mock(IBinder.class)); in testUpdateOomAdj_DoAll_BoundFgService_Cycle_Branch_2() 1742 bindService(app, app5, s, 0, mock(IBinder.class)); in testUpdateOomAdj_DoAll_BoundFgService_Cycle_Branch_2() 1783 bindService(app, app4, s, 0, mock(IBinder.class)); in testUpdateOomAdj_DoAll_BoundFgService_Cycle_Branch_3() 1787 bindService(app, app5, s, 0, mock(IBinder.class)); in testUpdateOomAdj_DoAll_BoundFgService_Cycle_Branch_3() 1828 bindService(app, app4, s, 0, mock(IBinder.class)); in testUpdateOomAdj_DoAll_BoundFgService_Cycle_Branch_4() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | BinderProxyCountingTest.java | 123 private ServiceConnection bindService(final Consumer<IBinder> consumer, Intent intent) in bindService() method in BinderProxyCountingTest 139 sContext.bindService(intent, connection, in bindService() 199 sTestAppConnection = bindService(sTestAppConsumer, sTestAppIntent); in testBinderProxyCount() 225 sTestAppConnection = bindService(sTestAppConsumer, sTestAppIntent); in testBinderProxyLimitBoundary() 226 sTestServiceConnection = bindService(sTestServiceConsumer, sTestServiceIntent); in testBinderProxyLimitBoundary() 262 sTestAppConnection = bindService(sTestAppConsumer, sTestAppIntent); in testSetBinderProxyLimit() 263 sTestServiceConnection = bindService(sTestServiceConsumer, sTestServiceIntent); in testSetBinderProxyLimit() 295 sTestAppConnection = bindService(sTestAppConsumer, sTestAppIntent); in testRearmCallbackThreshold() 296 sTestServiceConnection = bindService(sTestServiceConsumer, sTestServiceIntent); in testRearmCallbackThreshold() 353 sTestAppConnection = bindService(sTestAppConsumer, sTestAppIntent); in testKillBadBehavingApp()
|
H A D | BinderWorkSourceTest.java | 81 sContext.bindService( in setUp() 84 sContext.bindService( in setUp()
|
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | GbaManagerTest.java | 98 when(mMockContext.bindService(any(), any(), anyInt())).thenReturn(true); in setUp() 126 verify(mMockContext, never()).bindService(any(), any(), anyInt()); in testFailOnRequest() 149 when(mMockContext.bindService(any(), any(), anyInt())).thenReturn(false); in testFailAndRetryOnRequest() 157 verify(mMockContext, times(i + 1)).bindService(any(), any(), anyInt()); in testFailAndRetryOnRequest() 208 verify(mMockContext, never()).bindService(any(), any(), anyInt()); in testDontBindServiceWhenPackageNameChanged() 220 verify(mMockContext, never()).bindService(any(), any(), anyInt()); in testDontBindServiceWhenReleaseTimeChanged() 264 ServiceConnection connection = bindService(component); in bindAndConnectService() 272 private ServiceConnection bindService(ComponentName component) { in bindService() method in GbaManagerTest 277 verify(mMockContext, atLeastOnce()).bindService(intentCaptor.capture(), in bindService()
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/ |
H A D | ControlsProviderLifecycleManager.kt | 90 private fun bindService(bind: Boolean) { regex 132 bindService(false) 175 bindService(true) 274 fun bindService() { regex 275 bindService(true) 285 bindService(false)
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/ |
H A D | ControlsBindingControllerImplTest.kt | 265 controller.bindService(TEST_COMPONENT_NAME_1) 268 verify(providers[0]).bindService() 293 controller.bindService(TEST_COMPONENT_NAME_2) 334 controller.bindService(TEST_COMPONENT_NAME_1) 339 controller.bindService(TEST_COMPONENT_NAME_2) 345 controller.bindService(TEST_COMPONENT_NAME_1) 350 controller.bindService(TEST_COMPONENT_NAME_2) 358 controller.bindService(TEST_COMPONENT_NAME_1)
|
H A D | ControlsProviderLifecycleManagerTest.kt | 102 manager.bindService() 130 nullManager.bindService() 138 manager.bindService()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/app/activity/ |
H A 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()
|
/aosp12/frameworks/base/test-runner/api/ |
H A 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`
|
/aosp12/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/ |
H A 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()
|
/aosp12/packages/apps/Car/Dialer/framework/fake/src/com/android/car/dialer/framework/ |
H A D | FakeTelecomManager.java | 91 bindService(context); in FakeTelecomManager() 161 public void bindService(@ApplicationContext Context context) { in bindService() method in FakeTelecomManager 180 context.bindService(intent, mInCallServiceConnection, Context.BIND_AUTO_CREATE); in bindService()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/service/settings/suggestions/ |
H A D | SuggestionServiceTest.java | 69 IBinder binder = mServiceTestRule.bindService(mMockServiceIntent); in dismissSuggestion_shouldCallImplementation() 80 IBinder binder = mServiceTestRule.bindService(mMockServiceIntent); in launchSuggestion_shouldCallImplementation()
|
/aosp12/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
H A D | ImsServiceControllerTest.java | 138 when(mMockContext.bindService(any(), any(), anyInt())).thenReturn(true); in setUp() 200 verify(mMockContext, times(1)).bindService(any(), any(), anyInt()); in testBindFailureWhenBound() 839 verify(mMockContext, times(2)).bindService(any(), any(), anyInt()); in testAutoBindAfterBinderDied() 863 verify(mMockContext, times(2)).bindService(any(), any(), anyInt()); in testAutoBindAfterBinderDiedIgnoreNullBinding() 882 verify(mMockContext, times(1)).bindService(any(), any(), anyInt()); in testNoAutoBindBeforeTimeout() 905 verify(mMockContext, times(1)).bindService(any(), any(), anyInt()); in testUnbindCauseAutoBindCancelAfterBinderDied() 927 verify(mMockContext, times(2)).bindService(any(), any(), anyInt()); in testBindCauseAutoBindCancelAfterBinderDied() 993 ServiceConnection connection = bindService(testFeatures); in bindAndNullServiceError() 999 ServiceConnection connection = bindService(testFeatures); in bindAndConnectService() 1006 private ServiceConnection bindService( in bindService() method in ImsServiceControllerTest [all …]
|
/aosp12/packages/apps/Nfc/src/com/android/nfc/ |
H A D | DtaServiceConnector.java | 46 public void bindService() { in bindService() method in DtaServiceConnector 49 mContext.bindService(createExplicitFromImplicitIntent(mContext,intent), in bindService()
|
/aosp12/frameworks/base/test-runner/src/android/test/ |
H A D | IsolatedContext.java | 74 public boolean bindService(Intent service, ServiceConnection conn, int flags) { in bindService() method in IsolatedContext 79 public boolean bindService(Intent service, int flags, Executor executor, in bindService() method in IsolatedContext
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/ |
H A D | TileServiceManager.java | 149 bindService(); in setBindRequested() 179 bindService(); in setBindAllowed() 191 private void bindService() { in bindService() method in TileServiceManager
|
/aosp12/frameworks/base/test-mock/api/ |
H A 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`
|
/aosp12/packages/services/BuiltInPrintService/src/com/android/bips/jni/ |
H A D | PdfRender.java | 77 mContext.bindService(mIntent, this, Context.BIND_AUTO_CREATE); 84 context.bindService(mIntent, mConnection, Context.BIND_AUTO_CREATE); in PdfRender()
|
/aosp12/frameworks/base/services/core/java/com/android/server/ |
H A D | ExplicitHealthCheckController.java | 291 private void bindService() { in bindService() method in ExplicitHealthCheckController 335 bindService(); in bindService() 450 bindService(); in prepareServiceLocked()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
H A D | ConnOnActivityStartTest.java | 108 bindService(); in setUpOnce() 117 private static void bindService() throws Exception { in bindService() method in ConnOnActivityStartTest 136 mContext.bindService(intent, mServiceConnection, in bindService()
|
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | NetworkRegistrationManager.java | 261 private void bindService(String packageName) { in bindService() method in NetworkRegistrationManager 288 if (!mPhone.getContext().bindService(intent, mServiceConnection, in bindService() 309 bindService(packageName); in rebindService()
|
/aosp12/packages/services/Car/service/src/com/android/car/ |
H A D | CarExperimentalFeatureServiceController.java | 145 boolean bound = bindService(intent); in init() 159 public boolean bindService(Intent intent) { in bindService() method in CarExperimentalFeatureServiceController
|