Home
last modified time | relevance | path

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

123

/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsServiceControllerTest.java82 when(mMockContext.bindService(any(), any(), anyInt())).thenReturn(true); in setUp()
110 verify(mMockContext).bindService(intentCaptor.capture(), any(), eq(expectedFlags)); in testBindService()
129 verify(mMockContext, times(1)).bindService(any(), any(), anyInt()); in testBindFailureWhenBound()
364 verify(mMockContext, times(2)).bindService(any(), any(), anyInt()); in testAutoBindAfterBinderDied()
382 verify(mMockContext, times(1)).bindService(any(), any(), anyInt()); in testNoAutoBindBeforeTimeout()
403 verify(mMockContext, times(1)).bindService(any(), any(), anyInt()); in testUnbindCauseAutoBindCancelAfterBinderDied()
424 verify(mMockContext, times(2)).bindService(any(), any(), anyInt()); in testBindCauseAutoBindCancelAfterBinderDied()
431 verify(mMockContext).bindService(any(), serviceCaptor.capture(), anyInt()); in bindAndConnectService()
/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/packages/SystemUI/src/com/android/systemui/qs/external/
DTileServiceManager.java127 bindService(); in setBindRequested()
157 bindService(); in setBindAllowed()
169 private void bindService() { in bindService() method in TileServiceManager
/frameworks/support/customtabs/tests/src/android/support/customtabs/
DPostMessageTest.java79 mContext.bindService(postMessageServiceIntent, in setup()
116 mContext.bindService(customTabsServiceIntent, in setup()
DPostMessageServiceConnectionTest.java78 mServiceRule.bindService(intent, mConnection, Context.BIND_AUTO_CREATE); in setup()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPrintSpoolerProvider.java35 mContext.bindService(intent, this, 0); in PrintSpoolerProvider()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DConnOnActivityStartTest.java115 bindService(); in setUpOnce()
127 private static void bindService() throws Exception { in bindService() method in ConnOnActivityStartTest
146 mContext.bindService(intent, mServiceConnection, in bindService()
/frameworks/opt/telephony/src/java/android/telephony/
DCarrierMessagingServiceManager.java64 return context.bindService(intent, mCarrierMessagingServiceConnection, in bindToCarrierMessagingService()
/frameworks/base/tests/ServiceCrashTest/src/com/android/tests/servicecrashtest/
DMainActivity.java66 bindService(intent, mServiceConnection, Service.BIND_AUTO_CREATE); in onResume()
/frameworks/support/customtabs/src/android/support/customtabs/
DPostMessageServiceConnection.java51 return context.bindService(intent, this, Context.BIND_AUTO_CREATE); in bindSessionToPostMessageService()
DCustomTabsClient.java70 return context.bindService(intent, connection, in bindCustomTabsService()
/frameworks/base/core/tests/coretests/src/android/os/
DMessengerTest.java96 getContext().bindService(new Intent(mContext, MessengerService.class), in setUp()
DBinderThreadPriorityTest.java63 getContext().bindService( in setUp()
/frameworks/base/test-runner/src/android/test/
DServiceTestCase.java236 protected IBinder bindService(Intent intent) { in bindService() method in ServiceTestCase
DIsolatedContext.java81 public boolean bindService(Intent service, ServiceConnection conn, int flags) { in bindService() method in IsolatedContext
/frameworks/base/telephony/java/android/telephony/mbms/
DMbmsUtils.java83 context.bindService(bindIntent, serviceConnection, Context.BIND_AUTO_CREATE); in startBinding()
/frameworks/base/tests/testables/src/android/testing/
DTestableContext.java230 public boolean bindService(Intent service, ServiceConnection conn, int flags) { in bindService() method in TestableContext
233 return super.bindService(service, conn, flags); in bindService()
/frameworks/base/core/java/android/appwidget/
DAppWidgetHost.java165 bindService(context); in AppWidgetHost()
168 private static void bindService(Context context) { in bindService() method in AppWidgetHost
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
DOSUManager.java100 mContext.bindService(new Intent(mContext, FlowService.class), new ServiceConnection() { in setOSUSelection()
124 mContext.bindService(new Intent(mContext, FlowService.class), new ServiceConnection() { in networkDeleted()
/frameworks/base/core/tests/utiltests/src/android/util/
DRemoteIntArray.java119 InstrumentationRegistry.getContext().bindService(mIntent, this, Context.BIND_AUTO_CREATE); in bindLocked()
/frameworks/base/services/core/java/com/android/server/connectivity/
DPacManager.java339 mContext.bindService(intent, mConnection, in bind()
377 mContext.bindService(intent, mProxyConnection, in bind()
/frameworks/base/tests/utils/SleepUtils/SleepHelper/src/com/android/testing/sleephelper/
DSetAlarm.java115 if (!getContext().bindService(mServceIntent, mConn, Context.BIND_AUTO_CREATE)) { in connectToAlarmService()
/frameworks/base/media/java/android/media/
DMediaScannerConnection.java119 mContext.bindService(intent, this, Context.BIND_AUTO_CREATE); in connect()

123