Searched refs:mConnection (Results 26 - 47 of 47) sorted by relevance

12

/frameworks/base/core/java/android/bluetooth/
H A DBluetoothHealth.java107 synchronized (mConnection) {
110 mContext.unbindService(mConnection);
116 synchronized (mConnection) {
496 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
515 synchronized (mConnection) {
519 mContext.unbindService(mConnection);
528 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothHealth
H A DBluetoothInputDevice.java225 synchronized (mConnection) {
228 mContext.unbindService(mConnection);
234 synchronized (mConnection) {
274 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
293 synchronized (mConnection) {
297 mContext.unbindService(mConnection);
498 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothInputDevice
H A DBluetoothInputHost.java171 synchronized (mConnection) {
177 mContext.unbindService(mConnection);
198 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothInputHost
239 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
260 synchronized (mConnection) {
264 mContext.unbindService(mConnection);
H A DBluetoothHeadsetClient.java380 synchronized (mConnection) {
383 mContext.unbindService(mConnection);
389 synchronized (mConnection) {
428 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
454 synchronized (mConnection) {
458 mContext.unbindService(mConnection);
1108 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothHeadsetClient
H A DBluetoothHeadset.java312 synchronized (mConnection) {
349 BluetoothProfile.HEADSET, mConnection);
357 synchronized (mConnection) {
361 BluetoothProfile.HEADSET, mConnection);
1128 private final IBluetoothProfileServiceConnection mConnection field in class:BluetoothHeadset
H A DBluetoothA2dp.java186 mContext.unbindService(mConnection);
232 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
255 mContext.unbindService(mConnection);
796 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothA2dp
/frameworks/base/core/java/com/android/internal/app/
H A DResolverComparator.java108 private ResolverRankerServiceConnection mConnection; field in class:ResolverComparator
410 if (mConnection != null) {
411 mContext.unbindService(mConnection);
412 mConnection.destroy();
435 if (mConnection != null && mRanker != null) {
447 mConnection = new ResolverRankerServiceConnection(mConnectSignal);
448 context.bindServiceAsUser(intent, mConnection, Context.BIND_AUTO_CREATE, UserHandle.SYSTEM);
572 if (mConnection == null) {
582 mRanker.predict(targets, mConnection.resolverRankerResult);
/frameworks/base/core/java/com/android/internal/util/
H A DAsyncChannel.java187 private AsyncChannelConnection mConnection; field in class:AsyncChannel
226 mConnection = new AsyncChannelConnection();
243 boolean result = srcContext.bindService(intent, mConnection, Context.BIND_AUTO_CREATE);
443 mConnection = null;
450 if ((mConnection != null) && (mSrcContext != null)) {
451 mSrcContext.unbindService(mConnection);
452 mConnection = null;
467 if (mConnection == null && mDstMessenger != null && mDeathMonitor!= null) {
865 if (mConnection == null && mDeathMonitor == null) {
/frameworks/base/packages/Osu/src/com/android/hotspot2/app/
H A DMainActivity.java45 private final ServiceConnection mConnection = new ServiceConnection() { field in class:MainActivity
71 unbindService(mConnection);
94 bindService(new Intent(this, OSUService.class), mConnection, 0);
/frameworks/base/tests/SoundTriggerTestApp/src/com/android/test/soundtrigger/
H A DSoundTriggerTestActivity.java106 bindService(intent, mConnection, Context.BIND_AUTO_CREATE);
116 unbindService(mConnection);
310 private ServiceConnection mConnection = new ServiceConnection() { field in class:SoundTriggerTestActivity
/frameworks/base/core/java/android/service/wallpaper/
H A DWallpaperService.java140 IWallpaperConnection mConnection; field in class:WallpaperService.Engine
601 if (mConnection != null) {
602 mConnection.onWallpaperColorsChanged(newColors);
956 mConnection = wrapper.mConnection;
1176 final IWallpaperConnection mConnection; field in class:WallpaperService.IWallpaperEngineWrapper
1191 mConnection = conn;
1238 mConnection.engineShown(this);
1260 mConnection.attachEngine(this);
1327 if (mConnection
[all...]
/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/
H A DVoiceInteractionManagerServiceImpl.java100 final ServiceConnection mConnection = new ServiceConnection() { field in class:VoiceInteractionManagerServiceImpl
332 mBound = mContext.bindServiceAsUser(intent, mConnection,
367 mContext.unbindService(mConnection);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DGsmCdmaCallTrackerTest.java56 GsmCdmaConnection mConnection; field in class:GsmCdmaCallTrackerTest
422 mCTUT.mConnections[0] = mConnection;
435 verify(mConnection).onDisconnect(DisconnectCause.ERROR_UNSPECIFIED);
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DVpn.java137 private Connection mConnection; field in class:Vpn
636 if (mConnection != null) {
638 mConnection.mService.transact(IBinder.LAST_CALL_TRANSACTION,
643 mContext.unbindService(mConnection);
644 mConnection = null;
894 Connection oldConnection = mConnection;
920 mConnection = connection;
954 mConnection = oldConnection;
1261 if (mConnection != null) {
1262 mContext.unbindService(mConnection);
[all...]
/frameworks/base/core/java/android/app/
H A DLoadedApk.java1491 private final ServiceConnection mConnection; field in class:LoadedApk.ServiceDispatcher
1528 mConnection = conn;
1539 "ServiceConnection " + mConnection +
1545 "ServiceConnection " + mConnection +
1567 return mConnection;
1645 mConnection.onServiceDisconnected(name);
1648 mConnection.onBindingDied(name);
1652 mConnection.onServiceConnected(name, service);
1668 mConnection.onServiceDisconnected(name);
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
H A DTelephonyMetricsTest.java85 private GsmCdmaConnection mConnection; field in class:TelephonyMetricsTest
458 doReturn(Call.State.DIALING).when(mConnection).getState();
459 mMetrics.writeRilDial(mPhone.getPhoneId(), mConnection, 2, mUusInfo);
460 doReturn(Call.State.DISCONNECTED).when(mConnection).getState();
461 mMetrics.writeRilHangup(mPhone.getPhoneId(), mConnection, 3);
/frameworks/base/services/core/java/com/android/server/trust/
H A DTrustAgentWrapper.java352 private final ServiceConnection mConnection = new ServiceConnection() { field in class:TrustAgentWrapper
409 mBound = context.bindServiceAsUser(intent, mConnection,
557 mContext.unbindService(mConnection);
/frameworks/base/services/core/java/com/android/server/
H A DBluetoothManagerService.java939 mContext.unbindService(mConnection);
1342 private BluetoothServiceConnection mConnection = new BluetoothServiceConnection(); field in class:BluetoothManagerService
1364 if (!doBind(i, mConnection,
1750 mContext.unbindService(mConnection);
1812 if (!doBind(i, mConnection,Context.BIND_AUTO_CREATE | Context.BIND_IMPORTANT,
1936 doBind(i, mConnection, Context.BIND_AUTO_CREATE | Context.BIND_IMPORTANT, UserHandle.CURRENT);
2072 mContext.unbindService(mConnection);
H A DMmsServiceBroker.java91 private ServiceConnection mConnection = new ServiceConnection() { field in class:MmsServiceBroker
241 if (!mContext.bindService(intent, mConnection, Context.BIND_AUTO_CREATE)) {
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
H A DImsPhoneTest.java89 Connection mConnection; field in class:ImsPhoneTest
332 mImsPhoneUT.notifyNewRingingConnection(mConnection);
333 verify(mPhone).notifyNewRingingConnectionP(mConnection);
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
H A DAccessibilityManagerService.java2360 private final IAccessibilityInteractionConnection mConnection; field in class:AccessibilityManagerService.AccessibilityConnectionWrapper
2366 mConnection = connection;
2370 mConnection.asBinder().linkToDeath(this, 0);
2374 mConnection.asBinder().unlinkToDeath(this, 0);
3378 connection = mPictureInPictureActionReplacingConnection.mConnection;
4083 if (wrapper != null && wrapper.mConnection != null) {
4084 return wrapper.mConnection;
4124 mPictureInPictureActionReplacingConnection.mConnection, interactionId,
/frameworks/base/services/core/java/com/android/server/tv/
H A DTvInputHardwareManager.java562 Connection mConnection = mConnections.valueAt(i);
563 pw.println(deviceId + ": " + mConnection);

Completed in 582 milliseconds

12