Home
last modified time | relevance | path

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

1234

/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/
DServiceBindPerfTest.java58 private void bindService(Intent intent, ServiceConnection serviceConnection, int flags) {
59 final boolean success = mContext.bindService(intent, serviceConnection, flags);
74 bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE);
96 bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE);
124 bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE);
153 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()
DMessengerTest.java96 getContext().bindService(new Intent(mContext, MessengerService.class), in setUp()
/frameworks/base/core/tests/coretests/src/android/app/activity/
DServiceTest.java239 getContext().bindService(service, conn, 0); in bindExpectResult()
244 getContext().bindService(service, conn2, 0); in bindExpectResult()
274 getContext().bindService(service, conn, 0); in bindExpectResult()
304 getContext().bindService(service, conn, 0); in bindExpectResult()
328 getContext().bindService(service, conn, 0); in bindExpectResult()
345 getContext().bindService( in bindAutoExpectResult()
366 getContext().bindService(service, conn, Context.BIND_AUTO_CREATE); in bindExpectNoPermission()
459 getContext().bindService( in testLocalUnbindTwice()
DLocalReceiver.java55 context.bindService(new Intent(context, LocalService.class), sc, 0); in onReceive()
/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsServiceControllerTest.java93 when(mMockContext.bindService(any(), any(), anyInt())).thenReturn(true); in setUp()
122 verify(mMockContext).bindService(intentCaptor.capture(), any(), eq(expectedFlags)); in testBindService()
142 verify(mMockContext, times(1)).bindService(any(), any(), anyInt()); in testBindFailureWhenBound()
452 verify(mMockContext, times(2)).bindService(any(), any(), anyInt()); in testAutoBindAfterBinderDied()
471 verify(mMockContext, times(1)).bindService(any(), any(), anyInt()); in testNoAutoBindBeforeTimeout()
494 verify(mMockContext, times(1)).bindService(any(), any(), anyInt()); in testUnbindCauseAutoBindCancelAfterBinderDied()
516 verify(mMockContext, times(2)).bindService(any(), any(), anyInt()); in testBindCauseAutoBindCancelAfterBinderDied()
524 verify(mMockContext).bindService(any(), serviceCaptor.capture(), anyInt()); in bindAndConnectService()
/frameworks/base/core/tests/coretests/src/android/service/settings/suggestions/
DSuggestionServiceTest.java68 IBinder binder = mServiceTestRule.bindService(mMockServiceIntent); in dismissSuggestion_shouldCallImplementation()
79 IBinder binder = mServiceTestRule.bindService(mMockServiceIntent); in launchSuggestion_shouldCallImplementation()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DNetworkRegistrationManager.java68 bindService(); in NetworkRegistrationManager()
177 private boolean bindService() { in bindService() method in NetworkRegistrationManager
183 return mPhone.getContext().bindService(intent, new NetworkServiceConnection(), in bindService()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DTileServiceManager.java125 bindService(); in setBindRequested()
155 bindService(); in setBindAllowed()
167 private void bindService() { in bindService() method in TileServiceManager
/frameworks/support/browser/src/androidTest/java/androidx/browser/customtabs/
DPostMessageTest.java80 mContext.bindService(postMessageServiceIntent, in setup()
117 mContext.bindService(customTabsServiceIntent, in setup()
DPostMessageServiceConnectionTest.java79 mServiceRule.bindService(intent, mConnection, Context.BIND_AUTO_CREATE); in setup()
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
DFrameworkShadowContextImpl.java35 return bindService(service, connection, flags); in bindServiceAsUser()
/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/opt/telephony/src/java/android/telephony/
DCarrierMessagingServiceManager.java64 return context.bindService(intent, mCarrierMessagingServiceConnection, in bindToCarrierMessagingService()
/frameworks/support/browser/src/main/java/androidx/browser/customtabs/
DPostMessageServiceConnection.java53 return context.bindService(intent, this, Context.BIND_AUTO_CREATE); in bindSessionToPostMessageService()
/frameworks/base/test-runner/src/android/test/
DIsolatedContext.java73 public boolean bindService(Intent service, ServiceConnection conn, int flags) { in bindService() method in IsolatedContext
DServiceTestCase.java231 protected IBinder bindService(Intent intent) { in bindService() method in ServiceTestCase
/frameworks/base/core/java/android/appwidget/
DAppWidgetHost.java166 bindService(context); in AppWidgetHost()
169 private static void bindService(Context context) { in bindService() method in AppWidgetHost
/frameworks/support/media/version-compat-tests/current/client/src/androidTest/java/androidx/media/test/client/
DTestHelper.java69 bound = mContext.bindService(intent, mServiceConnection, Context.BIND_AUTO_CREATE); in connect()
/frameworks/base/services/core/java/com/android/server/connectivity/
DPacManager.java337 mContext.bindService(intent, mConnection, in bind()
375 mContext.bindService(intent, mProxyConnection, in bind()
/frameworks/base/core/tests/utiltests/src/android/util/
DRemoteIntArray.java119 InstrumentationRegistry.getContext().bindService(mIntent, this, Context.BIND_AUTO_CREATE); in bindLocked()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/
DImsServiceFeatureQueryManager.java61 boolean bindStarted = mContext.bindService(imsServiceIntent, this, serviceFlags); in start()

1234