Home
last modified time | relevance | path

Searched refs:bindService (Results 1 – 25 of 83) sorted by relevance

1234

/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/
DServiceBindPerfTest.java59 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/core/tests/coretests/src/android/os/
DBinderProxyCountingTest.java123 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()
DBinderWorkSourceTest.java81 sContext.bindService( in setUp()
84 sContext.bindService( in setUp()
DBinderWorkSourceNestedService.java64 context.bindService(
DMessengerTest.java92 getContext().bindService(new Intent(mContext, MessengerService.class), in setUp()
DBinderProxyTest.java113 mContext.bindService( in testGetExtension()
DBinderThreadPriorityTest.java62 getContext().bindService( in setUp()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DServiceTest.java238 getContext().bindService(service, conn, 0); in bindExpectResult()
243 getContext().bindService(service, conn2, 0); in bindExpectResult()
273 getContext().bindService(service, conn, 0); in bindExpectResult()
303 getContext().bindService(service, conn, 0); in bindExpectResult()
327 getContext().bindService(service, conn, 0); in bindExpectResult()
344 getContext().bindService( in bindAutoExpectResult()
365 getContext().bindService(service, conn, Context.BIND_AUTO_CREATE); in bindExpectNoPermission()
458 getContext().bindService( in testLocalUnbindTwice()
DLocalReceiver.java55 context.bindService(new Intent(context, LocalService.class), sc, 0); in onReceive()
/frameworks/base/test-runner/api/
Dlint-baseline.txt56 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/
DFakeApp.java135 bindService(new Intent(this, FakeCoreService.class), mServiceConnection, in onCreate()
137 bindService(new Intent(this, FakeCoreService2.class), mServiceConnection2, in onCreate()
139 bindService(new Intent(this, FakeCoreService3.class), mServiceConnection3, in onCreate()
/frameworks/base/core/tests/coretests/src/android/service/settings/suggestions/
DSuggestionServiceTest.java69 IBinder binder = mServiceTestRule.bindService(mMockServiceIntent); in dismissSuggestion_shouldCallImplementation()
80 IBinder binder = mServiceTestRule.bindService(mMockServiceIntent); in launchSuggestion_shouldCallImplementation()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsServiceControllerTest.java96 when(mMockContext.bindService(any(), any(), anyInt())).thenReturn(true); in setUp()
128 verify(mMockContext).bindService(intentCaptor.capture(), any(), eq(expectedFlags)); in testBindService()
148 verify(mMockContext, times(1)).bindService(any(), any(), anyInt()); in testBindFailureWhenBound()
600 verify(mMockContext, times(2)).bindService(any(), any(), anyInt()); in testAutoBindAfterBinderDied()
619 verify(mMockContext, times(1)).bindService(any(), any(), anyInt()); in testNoAutoBindBeforeTimeout()
642 verify(mMockContext, times(1)).bindService(any(), any(), anyInt()); in testUnbindCauseAutoBindCancelAfterBinderDied()
664 verify(mMockContext, times(2)).bindService(any(), any(), anyInt()); in testBindCauseAutoBindCancelAfterBinderDied()
669 ServiceConnection connection = bindService(testFeatures); in bindAndNullServiceError()
675 ServiceConnection connection = bindService(testFeatures); in bindAndConnectService()
682 private ServiceConnection bindService( in bindService() method in ImsServiceControllerTest
[all …]
/frameworks/base/test-runner/src/android/test/
DIsolatedContext.java74 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
DServiceTestCase.java231 protected IBinder bindService(Intent intent) { in bindService() method in ServiceTestCase
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileServiceManager.java143 bindService(); in setBindRequested()
173 bindService(); in setBindAllowed()
185 private void bindService() { in bindService() method in TileServiceManager
/frameworks/base/test-mock/api/
Dlint-baseline.txt36 MissingNullability: android.test.mock.MockContext#bindService(android.content.Intent, int, java.uti…
37 Missing nullability on parameter `service` in method `bindService`
38 MissingNullability: android.test.mock.MockContext#bindService(android.content.Intent, int, java.uti…
39 Missing nullability on parameter `executor` in method `bindService`
40 MissingNullability: android.test.mock.MockContext#bindService(android.content.Intent, int, java.uti…
41 Missing nullability on parameter `conn` in method `bindService`
/frameworks/base/services/core/java/com/android/server/
DExplicitHealthCheckController.java291 private void bindService() { in bindService() method in ExplicitHealthCheckController
335 bindService(); in bindService()
450 bindService(); in prepareServiceLocked()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNetworkRegistrationManager.java262 private void bindService(String packageName) { in bindService() method in NetworkRegistrationManager
289 if (!mPhone.getContext().bindService(intent, mServiceConnection, in bindService()
310 bindService(packageName); in rebindService()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPrintSpoolerProvider.java37 mContext.bindService(intent, this, BIND_AUTO_CREATE); in PrintSpoolerProvider()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DConnOnActivityStartTest.java116 bindService(); in setUpOnce()
129 private static void bindService() throws Exception { in bindService() method in ConnOnActivityStartTest
148 mContext.bindService(intent, mServiceConnection, in bindService()
/frameworks/base/tests/ServiceCrashTest/src/com/android/tests/servicecrashtest/
DMainActivity.java66 bindService(intent, mServiceConnection, Service.BIND_AUTO_CREATE); in onResume()
/frameworks/base/core/java/android/appwidget/
DAppWidgetHost.java171 bindService(context); in AppWidgetHost()
174 private static void bindService(Context context) { in bindService() method in AppWidgetHost
/frameworks/base/services/core/java/com/android/server/connectivity/
DPacManager.java329 mContext.bindService(intent, mConnection, in bind()
367 mContext.bindService(intent, mProxyConnection, in bind()
/frameworks/base/core/tests/utiltests/src/android/util/
DRemoteIntArray.java120 InstrumentationRegistry.getContext().bindService(mIntent, this, Context.BIND_AUTO_CREATE); in bindLocked()

1234