Searched refs:bindService (Results 1 - 25 of 78) sorted by relevance

1234

/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/
H A DServiceBindPerfTest.java58 private void bindService(Intent intent, ServiceConnection serviceConnection, int flags) { method in class:ServiceBindPerfTest
59 final boolean success = mContext.bindService(intent, serviceConnection, flags);
64 * Benchmark time from Context.bindService() to Service.onBind() when target package is not
74 bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE);
85 * Benchmark time from Context.bindService() to Service.onBind() when target package is running.
96 bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE);
107 * Benchmark time from Context.bindService() to Service.onBind() when service is already bound
124 bindService(intent, serviceConnection, Context.BIND_AUTO_CREATE);
137 * Benchmark time from Context.bindService() (without BIND_ALLOW_OOM_MANAGEMENT) to
153 bindService(intentNoOo
[all...]
/frameworks/base/services/robotests/src/com/android/server/testing/shadows/
H A DFrameworkShadowContextImpl.java35 return bindService(service, connection, flags);
/frameworks/base/core/tests/coretests/src/android/os/
H A DBinderProxyCountingTest.java123 private ServiceConnection bindService(final Consumer<IBinder> consumer, Intent intent) method in class:BinderProxyCountingTest
139 sContext.bindService(intent, connection,
199 sTestAppConnection = bindService(sTestAppConsumer, sTestAppIntent);
225 sTestAppConnection = bindService(sTestAppConsumer, sTestAppIntent);
226 sTestServiceConnection = bindService(sTestServiceConsumer, sTestServiceIntent);
262 sTestAppConnection = bindService(sTestAppConsumer, sTestAppIntent);
263 sTestServiceConnection = bindService(sTestServiceConsumer, sTestServiceIntent);
295 sTestAppConnection = bindService(sTestAppConsumer, sTestAppIntent);
296 sTestServiceConnection = bindService(sTestServiceConsumer, sTestServiceIntent);
353 sTestAppConnection = bindService(sTestAppConsume
[all...]
H A DMessengerTest.java96 getContext().bindService(new Intent(mContext, MessengerService.class),
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
H A DPrintSpoolerProvider.java37 mContext.bindService(intent, this, BIND_AUTO_CREATE);
/frameworks/base/core/tests/coretests/src/android/app/activity/
H A DServiceTest.java239 getContext().bindService(service, conn, 0);
244 getContext().bindService(service, conn2, 0);
274 getContext().bindService(service, conn, 0);
304 getContext().bindService(service, conn, 0);
328 getContext().bindService(service, conn, 0);
345 getContext().bindService(
366 getContext().bindService(service, conn, Context.BIND_AUTO_CREATE);
459 getContext().bindService(
H A DLocalReceiver.java55 context.bindService(new Intent(context, LocalService.class), sc, 0);
/frameworks/base/core/tests/coretests/src/android/service/settings/suggestions/
H A DSuggestionServiceTest.java68 IBinder binder = mServiceTestRule.bindService(mMockServiceIntent);
79 IBinder binder = mServiceTestRule.bindService(mMockServiceIntent);
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/
H A DFakeApp.java135 bindService(new Intent(this, FakeCoreService.class), mServiceConnection,
137 bindService(new Intent(this, FakeCoreService2.class), mServiceConnection2,
139 bindService(new Intent(this, FakeCoreService3.class), mServiceConnection3,
/frameworks/support/browser/src/androidTest/java/androidx/browser/customtabs/
H A DPostMessageTest.java80 mContext.bindService(postMessageServiceIntent,
117 mContext.bindService(customTabsServiceIntent,
H A DPostMessageServiceConnectionTest.java79 mServiceRule.bindService(intent, mConnection, Context.BIND_AUTO_CREATE);
/frameworks/base/tests/ServiceCrashTest/src/com/android/tests/servicecrashtest/
H A DMainActivity.java66 bindService(intent, mServiceConnection, Service.BIND_AUTO_CREATE);
/frameworks/opt/telephony/src/java/android/telephony/
H A DCarrierMessagingServiceManager.java64 return context.bindService(intent, mCarrierMessagingServiceConnection,
/frameworks/support/browser/src/main/java/androidx/browser/customtabs/
H A DPostMessageServiceConnection.java53 return context.bindService(intent, this, Context.BIND_AUTO_CREATE);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
H A DImsServiceControllerTest.java93 when(mMockContext.bindService(any(), any(), anyInt())).thenReturn(true);
105 * Tests that Context.bindService is called with the correct parameters when we call bind.
122 verify(mMockContext).bindService(intentCaptor.capture(), any(), eq(expectedFlags));
129 * Verify that if bind is called multiple times, we only call bindService once.
142 verify(mMockContext, times(1)).bindService(any(), any(), anyInt());
452 verify(mMockContext, times(2)).bindService(any(), any(), anyInt());
456 * Ensure that bindService has only been called once before automatic rebind occurs.
471 verify(mMockContext, times(1)).bindService(any(), any(), anyInt());
494 verify(mMockContext, times(1)).bindService(any(), any(), anyInt());
499 * call to bindService
[all...]
/frameworks/base/test-runner/src/android/test/
H A DIsolatedContext.java73 public boolean bindService(Intent service, ServiceConnection conn, int flags) { method in class:IsolatedContext
H A DServiceTestCase.java56 * test methods calls {@link #startService} or {@link #bindService}. This gives you an
62 * or {@link #bindService ServiceTestCase.bindService()}, the test case calls
65 * {@link android.app.Service#bindService(Intent, ServiceConnection, int)
66 * Service.bindService(Intent, ServiceConnection, int)}, as appropriate. It also stores
90 * startService() or bindService(). The test framework provides a
128 * a test calls {@link #startService} or {@link #bindService}.
153 * by {@link #bindService}.
204 * {@link android.content.Context#bindService(Intent, ServiceConnection, int)
205 * Context.bindService(Inten
231 protected IBinder bindService(Intent intent) { method in class:ServiceTestCase
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
H A DTileServiceManager.java125 bindService();
155 bindService();
167 private void bindService() { method in class:TileServiceManager
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DNetworkRegistrationManager.java68 bindService();
177 private boolean bindService() { method in class:NetworkRegistrationManager
183 return mPhone.getContext().bindService(intent, new NetworkServiceConnection(),
186 loge("bindService failed " + e);
/frameworks/base/core/tests/utiltests/src/android/util/
H A DRemoteIntArray.java119 InstrumentationRegistry.getContext().bindService(mIntent, this, Context.BIND_AUTO_CREATE);
/frameworks/base/tests/utils/SleepUtils/SleepHelper/src/com/android/testing/sleephelper/
H A DSetAlarm.java115 if (!getContext().bindService(mServceIntent, mConn, Context.BIND_AUTO_CREATE)) {
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/
H A DImsServiceFeatureQueryManager.java61 boolean bindStarted = mContext.bindService(imsServiceIntent, this, serviceFlags);
/frameworks/support/media/version-compat-tests/current/client/src/androidTest/java/androidx/media/test/client/
H A DTestHelper.java69 bound = mContext.bindService(intent, mServiceConnection, Context.BIND_AUTO_CREATE);
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
H A DConnOnActivityStartTest.java116 bindService();
129 private static void bindService() throws Exception { method in class:ConnOnActivityStartTest
148 mContext.bindService(intent, mServiceConnection,
/frameworks/base/apct-tests/perftests/core/src/android/os/
H A DStrictModeTest.java118 context.bindService(

Completed in 760 milliseconds

1234