Searched refs:mConnection (Results 1 - 25 of 40) 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/base/media/java/android/media/
H A DMediaHTTPConnection.java52 private HttpURLConnection mConnection = null; field in class:MediaHTTPConnection
137 if (mConnection != null) {
146 mConnection.disconnect();
147 mConnection = null;
190 mConnection = (HttpURLConnection)url.openConnection(Proxy.NO_PROXY);
192 mConnection = (HttpURLConnection)url.openConnection();
194 mConnection.setConnectTimeout(CONNECT_TIMEOUT_MS);
197 mConnection.setInstanceFollowRedirects(mAllowCrossDomainRedirect);
201 mConnection.setRequestProperty(
207 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 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.java65 synchronized (mConnection) {
68 mContext.unbindService(mConnection);
74 synchronized (mConnection) {
115 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
147 synchronized (mConnection) {
151 mContext.unbindService(mConnection);
286 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothPbapClient
H A DBluetoothSap.java98 synchronized (mConnection) {
101 mContext.unbindService(mConnection);
107 synchronized (mConnection) {
144 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
177 synchronized (mConnection) {
181 mContext.unbindService(mConnection);
393 private ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothSap
H A DBluetoothPan.java147 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
167 synchronized (mConnection) {
171 mContext.unbindService(mConnection);
205 synchronized (mConnection) {
208 mContext.unbindService(mConnection);
368 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothPan
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);
481 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothA2dpSink
H A DBluetoothAvrcpController.java135 synchronized (mConnection) {
138 mContext.unbindService(mConnection);
144 synchronized (mConnection) {
183 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
202 synchronized (mConnection) {
206 mContext.unbindService(mConnection);
382 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothAvrcpController
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/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.java322 private Connection mConnection; field in class:RegisteredMediaRouteProvider.Controller
331 mConnection = connection;
347 if (mConnection != null) {
348 mConnection.releaseRouteController(mControllerId);
349 mConnection = null;
362 if (mConnection != null) {
363 mConnection.selectRoute(mControllerId);
375 if (mConnection != null) {
376 mConnection.unselectRoute(mControllerId, reason);
382 if (mConnection !
[all...]
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DPacManager.java82 private ServiceConnection mConnection; field in class:PacManager
294 if ((mProxyConnection != null) && (mConnection != null)) {
299 mConnection = new ServiceConnection() {
331 mContext.bindService(intent, mConnection,
374 if (mConnection != null) {
375 mContext.unbindService(mConnection);
376 mConnection = null;
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DGsmCdmaCallTrackerTest.java161 Connection mConnection = mCTUT.mForegroundCall.getConnections().get(0);
162 assertEquals(DisconnectCause.NOT_DISCONNECTED, mConnection.getDisconnectCause());
175 assertEquals(DisconnectCause.LOCAL, mConnection.getDisconnectCause());
267 Connection mConnection = mCTUT.mRingingCall.getConnections().get(0);
268 assertNotNull(mConnection);
269 assertEquals(DisconnectCause.NOT_DISCONNECTED, mConnection.getDisconnectCause());
281 assertEquals(DisconnectCause.INCOMING_MISSED, mConnection.getDisconnectCause());
/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;
468 if (mConnection == null && mDstMessenger != null && mDeathMonitor!= null) {
861 if (mConnection == null && mDeathMonitor == 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)) {

Completed in 921 milliseconds

12