/sdk/apps/SdkController/src/com/android/tools/sdkcontroller/activities/ |
BaseBindingActivity.java | 39 private ServiceConnection mServiceConnection; 109 if (mServiceConnection == null) { 112 mServiceConnection = new ServiceConnection() { 143 mServiceConnection, 152 if (mServiceConnection != null) { 154 mServiceConnection.onServiceDisconnected(null /*name*/); 155 unbindService(mServiceConnection); 156 mServiceConnection = null;
|
/cts/hostsidetests/net/app/src/com/android/cts/net/hostside/ |
MyServiceClient.java | 38 private ServiceConnection mServiceConnection; 51 mServiceConnection = new ServiceConnection() { 67 mContext.bindService(intent, mServiceConnection, Context.BIND_AUTO_CREATE 78 mContext.unbindService(mServiceConnection);
|
RemoteSocketFactoryClient.java | 42 private ServiceConnection mServiceConnection; 55 mServiceConnection = new ServiceConnection() { 69 mContext.bindService(intent, mServiceConnection, Context.BIND_AUTO_CREATE); 79 mContext.unbindService(mServiceConnection);
|
/frameworks/base/core/tests/coretests/src/android/content/ |
AbstractCrossUserContentResolverTest.java | 54 private CrossUserContentServiceConnection mServiceConnection; 67 mServiceConnection = new CrossUserContentServiceConnection(connectionLatch); 70 mServiceConnection, 85 if (mServiceConnection != null) { 86 mContext.unbindService(mServiceConnection); 113 mServiceConnection.getService().updateContent(uriToUpdate, "New Text", 42); 130 mServiceConnection.getService().notifyForUriAsUser(notifyUri, UserHandle.myUserId());
|
/cts/tests/tests/security/src/android/security/cts/ |
IsolatedProcessTest.java | 54 private final ServiceConnection mServiceConnection = new ServiceConnection() { 72 mContext.bindService(serviceIntent, mServiceConnection, Context.BIND_AUTO_CREATE); 95 mContext.unbindService(mServiceConnection);
|
/frameworks/base/tests/ServiceCrashTest/src/com/android/tests/servicecrashtest/ |
MainActivity.java | 37 private ServiceConnection mServiceConnection = new ServiceConnection() { 66 bindService(intent, mServiceConnection, Service.BIND_AUTO_CREATE);
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
ServiceBinder.java | 83 if (mServiceConnection == null) { 163 mServiceConnection = this; 194 mServiceConnection = null; 216 private ServiceConnection mServiceConnection; 297 if (mServiceConnection == null) { 302 mContext.unbindService(mServiceConnection); 303 mServiceConnection = null;
|
/frameworks/base/core/java/android/accessibilityservice/ |
AccessibilityButtonController.java | 57 private final IAccessibilityServiceConnection mServiceConnection; 62 mServiceConnection = serviceConnection; 80 return mServiceConnection.isAccessibilityButtonAvailable();
|
/packages/apps/Car/Stream/src/com/android/car/stream/ |
StreamProducer.java | 119 mContext.bindService(streamServiceIntent, mServiceConnection, 0 /* flags */); 127 mContext.unbindService(mServiceConnection); 131 private ServiceConnection mServiceConnection = new ServiceConnection() {
|
/cts/tests/tests/os/src/android/os/cts/ |
TokenWatcherTest.java | 39 private ServiceConnection mServiceConnection; 66 mServiceConnection = new ServiceConnection() { 89 getContext().bindService(secondaryIntent, mServiceConnection, Context.BIND_AUTO_CREATE); 105 getContext().unbindService(mServiceConnection);
|
/frameworks/base/services/core/java/com/android/server/telecom/ |
TelecomLoaderService.java | 155 private TelecomServiceConnection mServiceConnection; 178 if (mServiceConnection != null) { 180 mContext.unbindService(mServiceConnection); 181 mServiceConnection = null; 192 mServiceConnection = serviceConnection; 208 if (mServiceConnection == null) { 231 if (mServiceConnection == null) { 253 if (mServiceConnection == null) {
|
/packages/services/Car/car-support-lib/src/android/support/car/ |
CarServiceLoaderEmbedded.java | 35 private final ServiceConnection mServiceConnection = new ServiceConnection() { 54 mEmbeddedCar = android.car.Car.createCar(context, mServiceConnection, handler);
|
/frameworks/base/services/core/java/com/android/server/ |
NetworkScoreService.java | 101 private ScoringServiceConnection mServiceConnection; 355 if (mServiceConnection != null 356 && !mServiceConnection.getAppData().equals(appData)) { 361 if (mServiceConnection == null) { 362 mServiceConnection = mServiceConnProducer.apply(appData); 366 mServiceConnection.bind(mContext); 376 if (mServiceConnection != null) { 377 mServiceConnection.unbind(mContext); 379 + mServiceConnection.getAppData().getRecommendationServiceComponent()); 381 mServiceConnection = null [all...] |
/frameworks/base/media/java/android/media/browse/ |
MediaBrowser.java | 108 private MediaServiceConnection mServiceConnection; 166 if (mServiceConnection != null) { 167 throw new RuntimeException("mServiceConnection should be null. Instead it" 168 + " is " + mServiceConnection); 183 mServiceConnection = new MediaServiceConnection(); 187 bound = mContext.bindService(intent, mServiceConnection, 258 if (mServiceConnection != null) { 260 mContext.unbindService(mServiceConnection); 268 mServiceConnection = null; 707 Log.i(TAG, funcName + " for " + mServiceComponent + " with mServiceConnection= [all...] |
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
BluetoothInputDeviceConnector.java | 42 private BluetoothProfile.ServiceListener mServiceConnection = 157 if (!adapter.getProfileProxy(mContext, mServiceConnection, BluetoothProfile.INPUT_DEVICE)) {
|
BluetoothA2dpConnector.java | 77 private BluetoothProfile.ServiceListener mServiceConnection = 126 if (!adapter.getProfileProxy(mContext, mServiceConnection, BluetoothProfile.A2DP)) {
|
/frameworks/base/services/core/java/com/android/server/am/ |
PersistentConnection.java | 103 private final ServiceConnection mServiceConnection = new ServiceConnection() { 242 final boolean success = mContext.bindServiceAsUser(service, mServiceConnection, 287 mContext.unbindService(mServiceConnection); 362 return mServiceConnection;
|
/frameworks/base/services/core/java/com/android/server/storage/ |
CacheQuotaStrategy.java | 92 private ServiceConnection mServiceConnection; 118 intent, mServiceConnection, Context.BIND_AUTO_CREATE, UserHandle.CURRENT); 124 if (mServiceConnection != null) { 128 mServiceConnection = new ServiceConnection() { 254 if (mServiceConnection != null) { 255 mContext.unbindService(mServiceConnection); 256 mServiceConnection = null;
|
/frameworks/base/core/java/android/widget/ |
RemoteViewsAdapter.java | 79 private RemoteViewsAdapterServiceConnection mServiceConnection; 225 adapter.mServiceConnection.getRemoteViewsFactory(); [all...] |
/packages/services/Telephony/src/com/android/phone/ |
CarrierConfigLoader.java | 93 private CarrierServiceConnection[] mServiceConnection; 182 mServiceConnection[phoneId] = null; 236 if (mServiceConnection[phoneId] != conn || conn.service == null) { 252 mContext.unbindService(mServiceConnection[phoneId]); 257 mContext.unbindService(mServiceConnection[phoneId]); 265 && mServiceConnection[phoneId] == null) { 306 if (mServiceConnection[phoneId] != conn || 324 mContext.unbindService(mServiceConnection[phoneId]); 329 mContext.unbindService(mServiceConnection[phoneId]); 337 && mServiceConnection[phoneId] == null) [all...] |
/frameworks/base/packages/FakeOemFeatures/src/com/android/fakeoemfeatures/ |
FakeApp.java | 65 ServiceConnection mServiceConnection = new ServiceConnection() { 135 bindService(new Intent(this, FakeCoreService.class), mServiceConnection,
|
/frameworks/base/services/core/java/com/android/server/location/ |
GeofenceProxy.java | 97 mServiceConnection, Context.BIND_AUTO_CREATE, UserHandle.SYSTEM); 100 private ServiceConnection mServiceConnection = new ServiceConnection() {
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
ConnOnActivityStartTest.java | 101 private static ServiceConnection mServiceConnection; 129 mServiceConnection = new ServiceConnection() { 146 mContext.bindService(intent, mServiceConnection, 157 mContext.unbindService(mServiceConnection);
|
/packages/services/Car/TrustAgent/src/com/android/car/trust/ |
CarBleTrustAgent.java | 129 bindService(intent, mServiceConnection, Context.BIND_AUTO_CREATE); 144 unbindService(mServiceConnection); 180 private ServiceConnection mServiceConnection = new ServiceConnection() { 263 unbindService(mServiceConnection);
|
/frameworks/base/services/core/java/com/android/server/pm/ |
EphemeralResolverConnection.java | 67 private final ServiceConnection mServiceConnection = new MyServiceConnection(); 215 mContext.unbindService(mServiceConnection); 222 .bindServiceAsUser(mIntent, mServiceConnection, flags, UserHandle.SYSTEM);
|