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

12

/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/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/support/customtabs/tests/src/android/support/customtabs/
H A DPostMessageServiceConnectionTest.java50 private PostMessageServiceConnection mConnection; field in class:PostMessageServiceConnectionTest
63 mConnection = new PostMessageServiceConnection(
78 mServiceRule.bindService(intent, mConnection, Context.BIND_AUTO_CREATE);
93 mConnection.notifyMessageChannelReady(null);
95 mConnection.postMessage("message1", null);
97 mConnection.postMessage("message2", null);
/frameworks/base/media/java/android/media/
H A DMediaHTTPConnection.java52 private HttpURLConnection mConnection = null; field in class:MediaHTTPConnection
138 if (mConnection != null) {
147 mConnection.disconnect();
148 mConnection = null;
191 mConnection = (HttpURLConnection)url.openConnection(Proxy.NO_PROXY);
193 mConnection = (HttpURLConnection)url.openConnection();
195 mConnection.setConnectTimeout(CONNECT_TIMEOUT_MS);
198 mConnection.setInstanceFollowRedirects(mAllowCrossDomainRedirect);
202 mConnection.setRequestProperty(
208 mConnection
[all...]
H A DMediaScannerConnection.java189 MediaScannerConnection mConnection; field in class:MediaScannerConnection.ClientProxy
211 mConnection.disconnect();
212 mConnection = null;
216 mConnection.scanFile(mPaths[mNextPath], mimeType);
242 client.mConnection = connection;
/frameworks/base/services/core/java/com/android/server/utils/
H A DManagedApplicationService.java61 private ServiceConnection mConnection; field in class:ManagedApplicationService
174 if (mConnection != null) {
175 mContext.unbindService(mConnection);
176 mConnection = null;
188 if (mConnection != null || mPendingConnection != null) {
208 mConnection = this;
244 mConnection = null;
/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/core/java/android/bluetooth/
H A DBluetoothAvrcpController.java95 synchronized (mConnection) {
98 mContext.unbindService(mConnection);
104 synchronized (mConnection) {
143 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
162 synchronized (mConnection) {
166 mContext.unbindService(mConnection);
285 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 DBluetoothPbapClient.java66 synchronized (mConnection) {
69 mContext.unbindService(mConnection);
75 synchronized (mConnection) {
116 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
148 synchronized (mConnection) {
152 mContext.unbindService(mConnection);
287 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothPbapClient
H A DBluetoothPan.java148 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
168 synchronized (mConnection) {
172 mContext.unbindService(mConnection);
206 synchronized (mConnection) {
209 mContext.unbindService(mConnection);
369 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothPan
H A DBluetoothA2dpSink.java137 synchronized (mConnection) {
140 mContext.unbindService(mConnection);
146 synchronized (mConnection) {
184 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
203 synchronized (mConnection) {
207 mContext.unbindService(mConnection);
482 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothA2dpSink
H A DBluetoothHealth.java107 synchronized (mConnection) {
110 mContext.unbindService(mConnection);
116 synchronized (mConnection) {
491 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
510 synchronized (mConnection) {
514 mContext.unbindService(mConnection);
523 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 DBluetoothMapClient.java81 synchronized (mConnection) {
84 mContext.unbindService(mConnection);
90 synchronized (mConnection) {
127 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
159 synchronized (mConnection) {
163 mContext.unbindService(mConnection);
390 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothMapClient
H A DBluetoothSap.java99 synchronized (mConnection) {
102 mContext.unbindService(mConnection);
108 synchronized (mConnection) {
145 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
178 synchronized (mConnection) {
182 mContext.unbindService(mConnection);
394 private ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothSap
/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/base/services/print/java/com/android/server/print/
H A DRemotePrintServiceRecommendationService.java57 private @NonNull final Connection mConnection; field in class:RemotePrintServiceRecommendationService
136 mConnection = new Connection(callbacks);
142 mIsBound = mContext.bindServiceAsUser(serviceIntent, mConnection,
171 mContext.unbindService(mConnection);
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
H A DRegisteredMediaRouteProvider.java349 private Connection mConnection; field in class:RegisteredMediaRouteProvider.Controller
358 mConnection = connection;
374 if (mConnection != null) {
375 mConnection.releaseRouteController(mControllerId);
376 mConnection = null;
389 if (mConnection != null) {
390 mConnection.selectRoute(mControllerId);
402 if (mConnection != null) {
403 mConnection.unselectRoute(mControllerId, reason);
409 if (mConnection !
[all...]
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DPacManager.java84 private ServiceConnection mConnection; field in class:PacManager
302 if ((mProxyConnection != null) && (mConnection != null)) {
307 mConnection = new ServiceConnection() {
339 mContext.bindService(intent, mConnection,
382 if (mConnection != null) {
383 mContext.unbindService(mConnection);
384 mConnection = null;
/frameworks/base/media/java/android/mtp/
H A DMtpDevice.java56 private UsbDeviceConnection mConnection; field in class:MtpDevice
97 mConnection = connection;
112 if (mConnection != null) {
117 mConnection.close();
118 mConnection = null;
/frameworks/base/core/java/android/hardware/usb/
H A DUsbRequest.java63 private UsbDeviceConnection mConnection; field in class:UsbRequest
94 mConnection = Preconditions.checkNotNull(connection, "connection");
112 mConnection = null;

Completed in 514 milliseconds

12