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

123

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
H A DAccessibilityServiceConnectionTest.java62 AccessibilityServiceConnection mConnection; field in class:AccessibilityServiceConnectionTest
95 mConnection = new AccessibilityServiceConnection(mMockUserState, mMockContext,
103 mConnection.bindLocked();
104 verify(mMockContext).bindServiceAsUser(any(Intent.class), eq(mConnection),
111 mConnection.unbindLocked();
112 verify(mMockContext).unbindService(mConnection);
119 mConnection.bindLocked();
120 mConnection.onServiceConnected(COMPONENT_NAME, mockBinder);
121 verify(mockBinder).linkToDeath(eq(mConnection), anyInt());
122 mConnection
[all...]
/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 DMedia2HTTPConnection.java51 private HttpURLConnection mConnection = null; field in class:Media2HTTPConnection
133 if (mConnection != null) {
142 mConnection.disconnect();
143 mConnection = null;
186 mConnection = (HttpURLConnection)url.openConnection(Proxy.NO_PROXY);
188 mConnection = (HttpURLConnection)url.openConnection();
190 mConnection.setConnectTimeout(CONNECT_TIMEOUT_MS);
193 mConnection.setInstanceFollowRedirects(mAllowCrossDomainRedirect);
197 mConnection.setRequestProperty(
203 mConnection
[all...]
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/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/browser/src/androidTest/java/androidx/browser/customtabs/
H A DPostMessageServiceConnectionTest.java51 private PostMessageServiceConnection mConnection; field in class:PostMessageServiceConnectionTest
64 mConnection = new PostMessageServiceConnection(
79 mServiceRule.bindService(intent, mConnection, Context.BIND_AUTO_CREATE);
94 mConnection.notifyMessageChannelReady(null);
96 mConnection.postMessage("message1", null);
98 mConnection.postMessage("message2", 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);
/frameworks/base/services/core/java/com/android/server/utils/
H A DManagedApplicationService.java95 private ServiceConnection mConnection; field in class:ManagedApplicationService
281 if (mConnection == null) {
285 mContext.unbindService(mConnection);
286 mConnection = null;
296 if (mConnection != null) {
310 mConnection = new ServiceConnection() {
316 if (mConnection != this) {
336 if (mConnection != this) {
377 if (mConnection != this) {
397 if (!mContext.bindServiceAsUser(intent, mConnection, flag
[all...]
/frameworks/base/core/java/android/bluetooth/
H A DBluetoothAvrcpController.java93 synchronized (mConnection) {
96 mContext.unbindService(mConnection);
102 synchronized (mConnection) {
140 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
159 synchronized (mConnection) {
163 mContext.unbindService(mConnection);
292 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothAvrcpController
H A DBluetoothPbap.java120 synchronized (mConnection) {
123 mContext.unbindService(mConnection);
129 synchronized (mConnection) {
165 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
197 synchronized (mConnection) {
201 mContext.unbindService(mConnection);
300 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothPbap
H A DBluetoothPbapClient.java68 synchronized (mConnection) {
71 mContext.unbindService(mConnection);
77 synchronized (mConnection) {
118 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
150 synchronized (mConnection) {
154 mContext.unbindService(mConnection);
293 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothPbapClient
H A DBluetoothPan.java149 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
169 synchronized (mConnection) {
173 mContext.unbindService(mConnection);
210 synchronized (mConnection) {
213 mContext.unbindService(mConnection);
376 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);
488 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothA2dpSink
H A DBluetoothMap.java65 synchronized (mConnection) {
68 mContext.unbindService(mConnection);
74 synchronized (mConnection) {
111 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
143 synchronized (mConnection) {
147 mContext.unbindService(mConnection);
387 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);
396 private final ServiceConnection mConnection = new ServiceConnection() { field in class:BluetoothMapClient
H A DBluetoothSap.java103 synchronized (mConnection) {
106 mContext.unbindService(mConnection);
112 synchronized (mConnection) {
149 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0,
183 synchronized (mConnection) {
187 mContext.unbindService(mConnection);
412 private final 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/core/java/android/se/omapi/
H A DSEService.java112 private ServiceConnection mConnection; field in class:SEService
147 mConnection = new ServiceConnection() {
169 mContext.bindService(intent, mConnection, Context.BIND_AUTO_CREATE);
240 mContext.unbindService(mConnection);
/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/av/packages/MediaComponents/src/com/android/support/mediarouter/media/
H A DRegisteredMediaRouteProvider.java360 private Connection mConnection; field in class:RegisteredMediaRouteProvider.Controller
369 mConnection = connection;
385 if (mConnection != null) {
386 mConnection.releaseRouteController(mControllerId);
387 mConnection = null;
400 if (mConnection != null) {
401 mConnection.selectRoute(mControllerId);
413 if (mConnection != null) {
414 mConnection.unselectRoute(mControllerId, reason);
420 if (mConnection !
[all...]
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/media/
H A DRegisteredMediaRouteProvider.java352 private Connection mConnection; field in class:RegisteredMediaRouteProvider.Controller
361 mConnection = connection;
377 if (mConnection != null) {
378 mConnection.releaseRouteController(mControllerId);
379 mConnection = null;
392 if (mConnection != null) {
393 mConnection.selectRoute(mControllerId);
405 if (mConnection != null) {
406 mConnection.unselectRoute(mControllerId, reason);
412 if (mConnection !
[all...]
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DPacManager.java82 private ServiceConnection mConnection; field in class:PacManager
300 if ((mProxyConnection != null) && (mConnection != null)) {
305 mConnection = new ServiceConnection() {
337 mContext.bindService(intent, mConnection,
380 if (mConnection != null) {
381 mContext.unbindService(mConnection);
382 mConnection = null;
/frameworks/base/core/java/android/hardware/usb/
H A DUsbRequest.java64 private UsbDeviceConnection mConnection; field in class:UsbRequest
95 mConnection = Preconditions.checkNotNull(connection, "connection");
113 mConnection = null;
192 if (mConnection.getContext().getApplicationInfo().targetSdkVersion < Build.VERSION_CODES.P
258 if (mConnection.getContext().getApplicationInfo().targetSdkVersion

Completed in 295 milliseconds

123