/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/tests/ |
H A D | ServiceBindPerfTest.java | 58 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 D | FrameworkShadowContextImpl.java | 35 return bindService(service, connection, flags);
|
/frameworks/base/core/tests/coretests/src/android/os/ |
H A D | BinderProxyCountingTest.java | 123 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 D | MessengerTest.java | 96 getContext().bindService(new Intent(mContext, MessengerService.class),
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
H A D | PrintSpoolerProvider.java | 37 mContext.bindService(intent, this, BIND_AUTO_CREATE);
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
H A D | ServiceTest.java | 239 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 D | LocalReceiver.java | 55 context.bindService(new Intent(context, LocalService.class), sc, 0);
|
/frameworks/base/core/tests/coretests/src/android/service/settings/suggestions/ |
H A D | SuggestionServiceTest.java | 68 IBinder binder = mServiceTestRule.bindService(mMockServiceIntent); 79 IBinder binder = mServiceTestRule.bindService(mMockServiceIntent);
|
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/ |
H A D | FakeApp.java | 135 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 D | PostMessageTest.java | 80 mContext.bindService(postMessageServiceIntent, 117 mContext.bindService(customTabsServiceIntent,
|
H A D | PostMessageServiceConnectionTest.java | 79 mServiceRule.bindService(intent, mConnection, Context.BIND_AUTO_CREATE);
|
/frameworks/base/tests/ServiceCrashTest/src/com/android/tests/servicecrashtest/ |
H A D | MainActivity.java | 66 bindService(intent, mServiceConnection, Service.BIND_AUTO_CREATE);
|
/frameworks/opt/telephony/src/java/android/telephony/ |
H A D | CarrierMessagingServiceManager.java | 64 return context.bindService(intent, mCarrierMessagingServiceConnection,
|
/frameworks/support/browser/src/main/java/androidx/browser/customtabs/ |
H A D | PostMessageServiceConnection.java | 53 return context.bindService(intent, this, Context.BIND_AUTO_CREATE);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/ |
H A D | ImsServiceControllerTest.java | 93 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 D | IsolatedContext.java | 73 public boolean bindService(Intent service, ServiceConnection conn, int flags) { method in class:IsolatedContext
|
H A D | ServiceTestCase.java | 56 * 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 D | TileServiceManager.java | 125 bindService(); 155 bindService(); 167 private void bindService() { method in class:TileServiceManager
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | NetworkRegistrationManager.java | 68 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 D | RemoteIntArray.java | 119 InstrumentationRegistry.getContext().bindService(mIntent, this, Context.BIND_AUTO_CREATE);
|
/frameworks/base/tests/utils/SleepUtils/SleepHelper/src/com/android/testing/sleephelper/ |
H A D | SetAlarm.java | 115 if (!getContext().bindService(mServceIntent, mConn, Context.BIND_AUTO_CREATE)) {
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/ |
H A D | ImsServiceFeatureQueryManager.java | 61 boolean bindStarted = mContext.bindService(imsServiceIntent, this, serviceFlags);
|
/frameworks/support/media/version-compat-tests/current/client/src/androidTest/java/androidx/media/test/client/ |
H A D | TestHelper.java | 69 bound = mContext.bindService(intent, mServiceConnection, Context.BIND_AUTO_CREATE);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
H A D | ConnOnActivityStartTest.java | 116 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 D | StrictModeTest.java | 118 context.bindService(
|