Home
last modified time | relevance | path

Searched refs:mConnection (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityServiceConnectionTest.java62 AccessibilityServiceConnection mConnection; field in AccessibilityServiceConnectionTest
95 mConnection = new AccessibilityServiceConnection(mMockUserState, mMockContext, in setup()
103 mConnection.bindLocked(); in bind_requestsContextToBindService()
104 verify(mMockContext).bindServiceAsUser(any(Intent.class), eq(mConnection), in bind_requestsContextToBindService()
111 mConnection.unbindLocked(); in unbind_requestsContextToUnbindService()
112 verify(mMockContext).unbindService(mConnection); in unbind_requestsContextToUnbindService()
119 mConnection.bindLocked(); in bindConnectUnbind_linksAndUnlinksToServiceDeath()
120 mConnection.onServiceConnected(COMPONENT_NAME, mockBinder); in bindConnectUnbind_linksAndUnlinksToServiceDeath()
121 verify(mockBinder).linkToDeath(eq(mConnection), anyInt()); in bindConnectUnbind_linksAndUnlinksToServiceDeath()
122 mConnection.unbindLocked(); in bindConnectUnbind_linksAndUnlinksToServiceDeath()
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteSession.java166 private SQLiteConnection mConnection; field in SQLiteSession
259 return mConnection != null; in hasConnection()
319 mConnection.execute("BEGIN IMMEDIATE;", null, in beginTransactionUnchecked()
323 mConnection.execute("BEGIN EXCLUSIVE;", null, in beginTransactionUnchecked()
327 mConnection.execute("BEGIN;", null, cancellationSignal); // might throw in beginTransactionUnchecked()
338 mConnection.execute("ROLLBACK;", null, cancellationSignal); // might throw in beginTransactionUnchecked()
399 assert mConnection != null; in endTransaction()
437 mConnection.execute("COMMIT;", null, cancellationSignal); // might throw in endTransactionUnchecked()
439 mConnection.execute("ROLLBACK;", null, cancellationSignal); // might throw in endTransactionUnchecked()
514 assert mConnection != null; in yieldTransaction()
[all …]
/frameworks/base/media/java/android/media/
DMedia2HTTPConnection.java51 private HttpURLConnection mConnection = null; field in Media2HTTPConnection
133 if (mConnection != null) { in teardownConnection()
142 mConnection.disconnect(); in teardownConnection()
143 mConnection = null; in teardownConnection()
186 mConnection = (HttpURLConnection)url.openConnection(Proxy.NO_PROXY); in seekTo()
188 mConnection = (HttpURLConnection)url.openConnection(); in seekTo()
190 mConnection.setConnectTimeout(CONNECT_TIMEOUT_MS); in seekTo()
193 mConnection.setInstanceFollowRedirects(mAllowCrossDomainRedirect); in seekTo()
197 mConnection.setRequestProperty( in seekTo()
203 mConnection.setRequestProperty( in seekTo()
[all …]
DMediaHTTPConnection.java52 private HttpURLConnection mConnection = null; field in MediaHTTPConnection
138 if (mConnection != null) { in teardownConnection()
147 mConnection.disconnect(); in teardownConnection()
148 mConnection = null; in teardownConnection()
191 mConnection = (HttpURLConnection)url.openConnection(Proxy.NO_PROXY); in seekTo()
193 mConnection = (HttpURLConnection)url.openConnection(); in seekTo()
195 mConnection.setConnectTimeout(CONNECT_TIMEOUT_MS); in seekTo()
198 mConnection.setInstanceFollowRedirects(mAllowCrossDomainRedirect); in seekTo()
202 mConnection.setRequestProperty( in seekTo()
208 mConnection.setRequestProperty( in seekTo()
[all …]
DMediaScannerConnection.java189 MediaScannerConnection mConnection; field in MediaScannerConnection.ClientProxy
211 mConnection.disconnect(); in scanNextPath()
212 mConnection = null; in scanNextPath()
216 mConnection.scanFile(mPaths[mNextPath], mimeType); in scanNextPath()
242 client.mConnection = connection; in scanFile()
/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/
DUsbAccessoryBulkTransport.java35 private UsbDeviceConnection mConnection; field in UsbAccessoryBulkTransport
42 mConnection = connection; in UsbAccessoryBulkTransport()
49 mConnection = null; in ioClose()
56 if (mConnection == null) { in ioRead()
59 return mConnection.bulkTransfer(mBulkInEndpoint, buffer, offset, count, -1); in ioRead()
64 if (mConnection == null) { in ioWrite()
67 int result = mConnection.bulkTransfer(mBulkOutEndpoint, in ioWrite()
/frameworks/support/browser/src/androidTest/java/androidx/browser/customtabs/
DPostMessageServiceConnectionTest.java51 private PostMessageServiceConnection mConnection; field in PostMessageServiceConnectionTest
64 mConnection = new PostMessageServiceConnection( in setup()
79 mServiceRule.bindService(intent, mConnection, Context.BIND_AUTO_CREATE); in setup()
94 mConnection.notifyMessageChannelReady(null); in testNotifyChannelCreationAndSendMessages()
96 mConnection.postMessage("message1", null); in testNotifyChannelCreationAndSendMessages()
98 mConnection.postMessage("message2", null); in testNotifyChannelCreationAndSendMessages()
/frameworks/base/core/java/android/view/inputmethod/
DInputBinding.java33 final InputConnection mConnection; field in InputBinding
60 mConnection = conn; in InputBinding()
74 mConnection = conn; in InputBinding()
81 mConnection = null; in InputBinding()
91 return mConnection; in getConnection()
/frameworks/base/services/core/java/com/android/server/utils/
DManagedApplicationService.java95 private ServiceConnection mConnection; field in ManagedApplicationService
281 if (mConnection == null) { in disconnect()
285 mContext.unbindService(mConnection); in disconnect()
286 mConnection = null; in disconnect()
296 if (mConnection != null) { in connect()
310 mConnection = new ServiceConnection() { in connect()
316 if (mConnection != this) { in connect()
336 if (mConnection != this) { in connect()
377 if (mConnection != this) { in connect()
397 if (!mContext.bindServiceAsUser(intent, mConnection, flags, in connect()
[all …]
/frameworks/base/core/java/android/bluetooth/
DBluetoothPbap.java120 synchronized (mConnection) {
123 mContext.unbindService(mConnection);
129 synchronized (mConnection) {
165 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0, in doBind()
197 synchronized (mConnection) { in close()
201 mContext.unbindService(mConnection); in close()
300 private final ServiceConnection mConnection = new ServiceConnection() { field in BluetoothPbap
DBluetoothAvrcpController.java93 synchronized (mConnection) {
96 mContext.unbindService(mConnection);
102 synchronized (mConnection) {
140 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0, in doBind()
159 synchronized (mConnection) { in close()
163 mContext.unbindService(mConnection); in close()
292 private final ServiceConnection mConnection = new ServiceConnection() { field in BluetoothAvrcpController
DBluetoothPbapClient.java68 synchronized (mConnection) {
71 mContext.unbindService(mConnection);
77 synchronized (mConnection) {
118 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0, in doBind()
150 synchronized (mConnection) { in close()
154 mContext.unbindService(mConnection); in close()
293 private final ServiceConnection mConnection = new ServiceConnection() { field in BluetoothPbapClient
DBluetoothSap.java103 synchronized (mConnection) {
106 mContext.unbindService(mConnection);
112 synchronized (mConnection) {
149 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0, in doBind()
183 synchronized (mConnection) { in close()
187 mContext.unbindService(mConnection); in close()
412 private final ServiceConnection mConnection = new ServiceConnection() { field in BluetoothSap
DBluetoothA2dpSink.java137 synchronized (mConnection) {
140 mContext.unbindService(mConnection);
146 synchronized (mConnection) {
184 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0, in doBind()
203 synchronized (mConnection) { in close()
207 mContext.unbindService(mConnection); in close()
488 private final ServiceConnection mConnection = new ServiceConnection() { field in BluetoothA2dpSink
DBluetoothMap.java65 synchronized (mConnection) {
68 mContext.unbindService(mConnection);
74 synchronized (mConnection) {
111 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0, in doBind()
143 synchronized (mConnection) { in close()
147 mContext.unbindService(mConnection); in close()
387 private final ServiceConnection mConnection = new ServiceConnection() { field in BluetoothMap
DBluetoothPan.java149 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0, in doBind()
169 synchronized (mConnection) { in close()
173 mContext.unbindService(mConnection); in close()
210 synchronized (mConnection) {
213 mContext.unbindService(mConnection);
376 private final ServiceConnection mConnection = new ServiceConnection() { field in BluetoothPan
DBluetoothMapClient.java81 synchronized (mConnection) {
84 mContext.unbindService(mConnection);
90 synchronized (mConnection) {
127 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0, in doBind()
159 synchronized (mConnection) { in close()
163 mContext.unbindService(mConnection); in close()
396 private final ServiceConnection mConnection = new ServiceConnection() { field in BluetoothMapClient
/frameworks/base/core/java/android/speech/
DSpeechRecognizer.java117 private Connection mConnection; field in SpeechRecognizer
182 mConnection = null; in onServiceDisconnected()
267 if (mConnection == null) { // first time connection in startListening()
268 mConnection = new Connection(); in startListening()
287 if (!mContext.bindService(serviceIntent, mConnection, Context.BIND_AUTO_CREATE)) { in startListening()
289 mConnection = null; in startListening()
407 if (mConnection != null) { in destroy()
408 mContext.unbindService(mConnection); in destroy()
412 mConnection = null; in destroy()
/frameworks/av/packages/MediaComponents/src/com/android/support/mediarouter/media/
DRegisteredMediaRouteProvider.java360 private Connection mConnection; field in RegisteredMediaRouteProvider.Controller
369 mConnection = connection; in attachConnection()
385 if (mConnection != null) { in detachConnection()
386 mConnection.releaseRouteController(mControllerId); in detachConnection()
387 mConnection = null; in detachConnection()
400 if (mConnection != null) { in onSelect()
401 mConnection.selectRoute(mControllerId); in onSelect()
413 if (mConnection != null) { in onUnselect()
414 mConnection.unselectRoute(mControllerId, reason); in onUnselect()
420 if (mConnection != null) { in onSetVolume()
[all …]
/frameworks/support/mediarouter/src/main/java/androidx/mediarouter/media/
DRegisteredMediaRouteProvider.java352 private Connection mConnection; field in RegisteredMediaRouteProvider.Controller
361 mConnection = connection; in attachConnection()
377 if (mConnection != null) { in detachConnection()
378 mConnection.releaseRouteController(mControllerId); in detachConnection()
379 mConnection = null; in detachConnection()
392 if (mConnection != null) { in onSelect()
393 mConnection.selectRoute(mControllerId); in onSelect()
405 if (mConnection != null) { in onUnselect()
406 mConnection.unselectRoute(mControllerId, reason); in onUnselect()
412 if (mConnection != null) { in onSetVolume()
[all …]
/frameworks/base/core/java/android/hardware/usb/
DUsbRequest.java64 private UsbDeviceConnection mConnection; field in UsbRequest
95 mConnection = Preconditions.checkNotNull(connection, "connection"); in initialize()
113 mConnection = null; in close()
192 if (mConnection.getContext().getApplicationInfo().targetSdkVersion < Build.VERSION_CODES.P in queue()
258 if (mConnection.getContext().getApplicationInfo().targetSdkVersion in queue()
/frameworks/base/media/java/android/mtp/
DMtpDevice.java56 private UsbDeviceConnection mConnection; field in MtpDevice
97 mConnection = connection; in open()
112 if (mConnection != null) { in close()
117 mConnection.close(); in close()
118 mConnection = null; in close()
/frameworks/base/core/java/android/se/omapi/
DSEService.java112 private ServiceConnection mConnection; field in SEService
147 mConnection = new ServiceConnection() { in SEService()
169 mContext.bindService(intent, mConnection, Context.BIND_AUTO_CREATE); in SEService()
240 mContext.unbindService(mConnection); in shutdown()
/frameworks/native/services/surfaceflinger/tests/unittests/
DEventThreadTest.cpp85 sp<MockEventThreadConnection> mConnection; member in android::EventThreadTest
103 mConnection = createConnection(mConnectionEventCallRecorder); in EventThreadTest()
199 mThread->requestNextVsync(mConnection); in TEST_F()
261 mThread->setVsyncRate(1, mConnection); in TEST_F()
287 mThread->setVsyncRate(2, mConnection); in TEST_F()
317 mThread->setVsyncRate(1, mConnection); in TEST_F()
326 mConnection = nullptr; in TEST_F()
/frameworks/base/services/core/java/com/android/server/connectivity/
DPacManager.java82 private ServiceConnection mConnection; field in PacManager
300 if ((mProxyConnection != null) && (mConnection != null)) { in bind()
305 mConnection = new ServiceConnection() { in bind()
337 mContext.bindService(intent, mConnection, in bind()
380 if (mConnection != null) { in unbind()
381 mContext.unbindService(mConnection); in unbind()
382 mConnection = null; in unbind()

123