Searched defs:mConnection (Results 1 - 25 of 29) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/os/
H A DMessengerTest.java34 private ServiceConnection mConnection = new ServiceConnection() { field in class:MessengerTest
97 mConnection, Context.BIND_AUTO_CREATE);
111 getContext().unbindService(mConnection);
H A DBinderThreadPriorityTest.java38 private ServiceConnection mConnection = new ServiceConnection() { field in class:BinderThreadPriorityTest
65 mConnection, Context.BIND_AUTO_CREATE);
93 getContext().unbindService(mConnection);
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
H A DUsbAccessoryBulkTransport.java35 private UsbDeviceConnection mConnection; field in class:UsbAccessoryBulkTransport
42 mConnection = connection;
49 mConnection = null;
56 if (mConnection == null) {
59 return mConnection.bulkTransfer(mBulkInEndpoint, buffer, offset, count, -1);
64 if (mConnection == null) {
67 int result = mConnection.bulkTransfer(mBulkOutEndpoint,
/frameworks/base/core/java/android/net/http/
H A DConnectionThread.java45 Connection mConnection; field in class:ConnectionThread
111 mConnection = mConnectionManager.getConnection(mContext,
113 mConnection.processRequests(request);
114 if (mConnection.getCanPersist()) {
115 if (!mConnectionManager.recycleConnection(mConnection)) {
116 mConnection.closeConnection();
119 mConnection.closeConnection();
121 mConnection = null;
134 String con = mConnection == null ? "" : mConnection
[all...]
H A DIdleCache.java34 Connection mConnection; field in class:IdleCache.Entry
81 entry.mConnection = connection;
105 ret = entry.mConnection;
107 entry.mConnection = null;
122 entry.mConnection.closeConnection();
123 entry.mConnection = null;
136 entry.mConnection.closeConnection();
137 entry.mConnection = null;
H A DRequest.java57 private Connection mConnection; field in class:Request
159 mConnection = connection;
224 mConnection.getHttpContext());
294 buf = mConnection.getBuf();
352 mConnection.setCanPersist(entity, statusLine.getProtocolVersion(),
378 if (mConnection != null) {
379 mConnection.cancel();
512 HttpsConnection connection = (HttpsConnection)(mConnection);
520 * This should not be called before the mConnection is set.
525 mConnection
[all...]
H A DRequestHandle.java52 private Connection mConnection; field in class:RequestHandle
92 mConnection = conn;
288 if (mConnection != null) {
289 mConnection.processRequests(mRequest);
451 // mConnection is non-null if and only if the requests are synchronous.
452 if (mConnection != null) {
457 mConnection = newHandle.mConnection;
/frameworks/base/core/java/android/view/inputmethod/
H A DInputBinding.java34 final InputConnection mConnection; field in class:InputBinding
61 mConnection = conn;
75 mConnection = conn;
82 mConnection = null;
92 return mConnection;
/frameworks/ml/bordeaux/service/src/android/bordeaux/services/
H A DBordeauxManagerService.java58 mConnection, Context.BIND_AUTO_CREATE);
64 if (mStarted && mConnection != null) {
65 context.unbindService(mConnection);
137 static private ServiceConnection mConnection = new ServiceConnection() { field in class:BordeauxManagerService
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothPbap.java119 synchronized (mConnection) {
122 mContext.unbindService(mConnection);
128 synchronized (mConnection) {
164 if (comp == null || !mContext.bindService(intent, mConnection, 0)) {
195 synchronized (mConnection) {
199 mContext.unbindService(mConnection);
302 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothPbap
H A DBluetoothA2dp.java118 synchronized (mConnection) {
121 mContext.unbindService(mConnection);
127 synchronized (mConnection) {
165 if (comp == null || !mContext.bindService(intent, mConnection, 0)) {
183 synchronized (mConnection) {
187 mContext.unbindService(mConnection);
516 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothA2dp
H A DBluetoothInputDevice.java196 synchronized (mConnection) {
199 mContext.unbindService(mConnection);
205 synchronized (mConnection) {
245 if (comp == null || !mContext.bindService(intent, mConnection, 0)) {
263 synchronized (mConnection) {
267 mContext.unbindService(mConnection);
461 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothInputDevice
H A DBluetoothMap.java63 synchronized (mConnection) {
66 mContext.unbindService(mConnection);
72 synchronized (mConnection) {
109 if (comp == null || !mContext.bindService(intent, mConnection, 0)) {
140 synchronized (mConnection) {
144 mContext.unbindService(mConnection);
372 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothMap
H A DBluetoothPan.java149 if (comp == null || !mContext.bindService(intent, mConnection, 0)) {
168 synchronized (mConnection) {
172 mContext.unbindService(mConnection);
196 synchronized (mConnection) {
199 mContext.unbindService(mConnection);
353 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothPan
H A DBluetoothHeadset.java236 synchronized (mConnection) {
239 mContext.unbindService(mConnection);
245 synchronized (mConnection) {
283 if (comp == null || !mContext.bindService(intent, mConnection, 0)) {
308 synchronized (mConnection) {
312 mContext.unbindService(mConnection);
888 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothHeadset
H A DBluetoothHealth.java107 synchronized (mConnection) {
110 mContext.unbindService(mConnection);
116 synchronized (mConnection) {
491 if (comp == null || !mContext.bindService(intent, mConnection, 0)) {
509 synchronized (mConnection) {
513 mContext.unbindService(mConnection);
522 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothHealth
/frameworks/base/media/java/android/media/
H A DMediaScannerConnection.java185 MediaScannerConnection mConnection; field in class:MediaScannerConnection.ClientProxy
207 mConnection.disconnect();
211 mConnection.scanFile(mPaths[mNextPath], mimeType);
237 client.mConnection = connection;
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteSession.java166 private SQLiteConnection mConnection; field in class:SQLiteSession
259 return mConnection != null;
319 mConnection.execute("BEGIN IMMEDIATE;", null,
323 mConnection.execute("BEGIN EXCLUSIVE;", null,
327 mConnection.execute("BEGIN;", null, cancellationSignal); // might throw
338 mConnection.execute("ROLLBACK;", null, cancellationSignal); // might throw
399 assert mConnection != null;
437 mConnection.execute("COMMIT;", null, cancellationSignal); // might throw
439 mConnection.execute("ROLLBACK;", null, cancellationSignal); // might throw
514 assert mConnection !
[all...]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DFaceUnlock.java132 mConnection,
169 mContext.unbindService(mConnection);
355 private ServiceConnection mConnection = new ServiceConnection() { field in class:FaceUnlock
/frameworks/base/services/java/com/android/server/connectivity/
H A DPacManager.java83 private ServiceConnection mConnection; field in class:PacManager
272 if ((mProxyConnection != null) && (mConnection != null)) {
281 mConnection = new ServiceConnection() {
313 mContext.bindService(intent, mConnection,
356 if (mConnection != null) {
357 mContext.unbindService(mConnection);
358 mConnection = null;
H A DVpn.java103 private Connection mConnection; field in class:Vpn
263 if (mConnection != null) {
265 mConnection.mService.transact(IBinder.LAST_CALL_TRANSACTION,
270 mContext.unbindService(mConnection);
271 mConnection = null;
375 if (mConnection != null) {
376 mContext.unbindService(mConnection);
381 mConnection = connection;
579 if (mConnection != null) {
580 mContext.unbindService(mConnection);
[all...]
/frameworks/base/core/java/android/speech/
H A DSpeechRecognizer.java117 private Connection mConnection; field in class:SpeechRecognizer
182 mConnection = null;
267 if (mConnection == null) { // first time connection
268 mConnection = new Connection();
287 if (!mContext.bindService(serviceIntent, mConnection, Context.BIND_AUTO_CREATE)) {
289 mConnection = null;
399 if (mConnection != null) {
400 mContext.unbindService(mConnection);
404 mConnection = null;
/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);
444 mConnection = null;
451 if ((mConnection != null) && (mSrcContext != null)) {
452 mSrcContext.unbindService(mConnection);
468 if (mConnection == null && mDstMessenger != null && mDeathMonitor!= null) {
850 if (mConnection == null) {
/frameworks/base/packages/Keyguard/test/src/com/android/keyguard/test/
H A DKeyguardTestActivity.java67 RemoteServiceConnection mConnection; field in class:KeyguardTestActivity
127 if (mConnection == null) {
128 mConnection = new RemoteServiceConnection();
132 if (!bindService(intent, mConnection, Context.BIND_AUTO_CREATE)) {
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
H A DRegisteredMediaRouteProvider.java301 private Connection mConnection; field in class:RegisteredMediaRouteProvider.Controller
309 mConnection = connection;
325 if (mConnection != null) {
326 mConnection.releaseRouteController(mControllerId);
327 mConnection = null;
340 if (mConnection != null) {
341 mConnection.selectRoute(mControllerId);
348 if (mConnection != null) {
349 mConnection.unselectRoute(mControllerId);
355 if (mConnection !
[all...]

Completed in 614 milliseconds

12