Searched refs:mConnection (Results 1 - 25 of 37) sorted by relevance

12

/frameworks/base/core/java/android/net/http/
H A DConnectionThread.java43 Connection mConnection; field in class:ConnectionThread
109 mConnection = mConnectionManager.getConnection(mContext,
111 mConnection.processRequests(request);
112 if (mConnection.getCanPersist()) {
113 if (!mConnectionManager.recycleConnection(mConnection)) {
114 mConnection.closeConnection();
117 mConnection.closeConnection();
119 mConnection = null;
132 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.java54 private Connection mConnection; field in class:Request
156 mConnection = connection;
221 mConnection.getHttpContext());
291 buf = mConnection.getBuf();
349 mConnection.setCanPersist(entity, statusLine.getProtocolVersion(),
375 if (mConnection != null) {
376 mConnection.cancel();
509 HttpsConnection connection = (HttpsConnection)(mConnection);
517 * This should not be called before the mConnection is set.
522 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/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/view/inputmethod/
H A DInputBinding.java33 final InputConnection mConnection; field in class:InputBinding
60 mConnection = conn;
74 mConnection = conn;
81 mConnection = null;
91 return mConnection;
/frameworks/base/media/java/android/media/
H A DMediaHTTPConnection.java48 private HttpURLConnection mConnection = null; field in class:MediaHTTPConnection
133 if (mConnection != null) {
136 mConnection.disconnect();
137 mConnection = null;
180 mConnection = (HttpURLConnection)url.openConnection(Proxy.NO_PROXY);
182 mConnection = (HttpURLConnection)url.openConnection();
186 mConnection.setInstanceFollowRedirects(mAllowCrossDomainRedirect);
190 mConnection.setRequestProperty(
196 mConnection.setRequestProperty(
200 response = mConnection
[all...]
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/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/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/services/core/java/com/android/server/
H A DBluetoothManagerService.java351 synchronized(mConnection) {
391 synchronized(mConnection) {
492 synchronized (mConnection) {
496 if (!mConnection.isGetNameAddressOnly()) {
507 mContext.unbindService(mConnection);
722 if (!mConnection.isGetNameAddressOnly()) {
740 if (!mConnection.isGetNameAddressOnly()) {
764 synchronized(mConnection) {
789 synchronized(mConnection) {
850 private BluetoothServiceConnection mConnection field in class:BluetoothManagerService
[all...]
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothA2dpSink.java136 synchronized (mConnection) {
139 mContext.unbindService(mConnection);
145 synchronized (mConnection) {
183 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
202 synchronized (mConnection) {
206 mContext.unbindService(mConnection);
398 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothA2dpSink
H A DBluetoothAvrcpController.java77 synchronized (mConnection) {
80 mContext.unbindService(mConnection);
86 synchronized (mConnection) {
125 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
144 synchronized (mConnection) {
148 mContext.unbindService(mConnection);
226 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothAvrcpController
H A DBluetoothPbap.java118 synchronized (mConnection) {
121 mContext.unbindService(mConnection);
127 synchronized (mConnection) {
163 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
195 synchronized (mConnection) {
199 mContext.unbindService(mConnection);
302 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothPbap
H A DBluetoothPan.java148 if (comp == null || !mContext.bindServiceAsUser(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 DBluetoothA2dp.java123 synchronized (mConnection) {
126 mContext.unbindService(mConnection);
132 synchronized (mConnection) {
170 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
189 synchronized (mConnection) {
193 mContext.unbindService(mConnection);
522 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothA2dp
H A DBluetoothHealth.java106 synchronized (mConnection) {
109 mContext.unbindService(mConnection);
115 synchronized (mConnection) {
490 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
509 synchronized (mConnection) {
513 mContext.unbindService(mConnection);
522 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothHealth
H A DBluetoothMap.java61 synchronized (mConnection) {
64 mContext.unbindService(mConnection);
70 synchronized (mConnection) {
107 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
139 synchronized (mConnection) {
143 mContext.unbindService(mConnection);
371 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothMap
H A DBluetoothInputDevice.java213 synchronized (mConnection) {
216 mContext.unbindService(mConnection);
222 synchronized (mConnection) {
262 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
281 synchronized (mConnection) {
285 mContext.unbindService(mConnection);
479 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothInputDevice
/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;
407 if (mConnection != null) {
408 mContext.unbindService(mConnection);
412 mConnection = null;
/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);
353 if (mConnection != null) {
354 mConnection.unselectRoute(mControllerId, reason);
360 if (mConnection !
[all...]
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DPacManager.java80 private ServiceConnection mConnection; field in class:PacManager
268 if ((mProxyConnection != null) && (mConnection != null)) {
273 mConnection = new ServiceConnection() {
305 mContext.bindService(intent, mConnection,
348 if (mConnection != null) {
349 mContext.unbindService(mConnection);
350 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);
453 mConnection = null;
470 if (mConnection == null && mDstMessenger != null && mDeathMonitor!= null) {
853 if (mConnection == null) {

Completed in 5624 milliseconds

12