Home
last modified time | relevance | path

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

12

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/soap/
DHttpsServiceConnection.java44 private HttpsURLConnection mConnection; field in HttpsServiceConnection
47 mConnection = (HttpsURLConnection) network.openConnection(url); in HttpsServiceConnection()
48 mConnection.setConnectTimeout(DEFAULT_TIMEOUT_MS); in HttpsServiceConnection()
49 mConnection.setReadTimeout(DEFAULT_TIMEOUT_MS); in HttpsServiceConnection()
54 mConnection.connect(); in connect()
59 mConnection.disconnect(); in disconnect()
64 Map<String, List<String>> properties = mConnection.getHeaderFields(); in getResponseProperties()
78 return mConnection.getResponseCode(); in getResponseCode()
86 mConnection.setRequestProperty(propertyName, value); in setRequestProperty()
92 mConnection.setRequestMethod(requestMethodType); in setRequestMethod()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityServiceConnectionTest.java64 AccessibilityServiceConnection mConnection; field in AccessibilityServiceConnectionTest
91 mConnection = new AccessibilityServiceConnection(mMockUserState, mMockContext, in setup()
95 when(mMockSecurityPolicy.canPerformGestures(mConnection)).thenReturn(true); in setup()
106 mConnection.bindLocked(); in bind_requestsContextToBindService()
107 verify(mMockContext).bindServiceAsUser(any(Intent.class), eq(mConnection), in bind_requestsContextToBindService()
114 mConnection.unbindLocked(); in unbind_requestsContextToUnbindService()
115 verify(mMockContext).unbindService(mConnection); in unbind_requestsContextToUnbindService()
122 mConnection.bindLocked(); in bindConnectUnbind_linksAndUnlinksToServiceDeath()
123 mConnection.onServiceConnected(COMPONENT_NAME, mockBinder); in bindConnectUnbind_linksAndUnlinksToServiceDeath()
124 verify(mockBinder).linkToDeath(eq(mConnection), anyInt()); in bindConnectUnbind_linksAndUnlinksToServiceDeath()
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteSession.java167 private SQLiteConnection mConnection; field in SQLiteSession
260 return mConnection != null; in hasConnection()
321 mConnection.execute("BEGIN IMMEDIATE;", null, in beginTransactionUnchecked()
325 mConnection.execute("BEGIN EXCLUSIVE;", null, in beginTransactionUnchecked()
329 mConnection.execute("BEGIN;", null, cancellationSignal); // might throw in beginTransactionUnchecked()
340 mConnection.execute("ROLLBACK;", null, cancellationSignal); // might throw in beginTransactionUnchecked()
401 assert mConnection != null; in endTransaction()
439 mConnection.execute("COMMIT;", null, cancellationSignal); // might throw in endTransactionUnchecked()
441 mConnection.execute("ROLLBACK;", null, cancellationSignal); // might throw in endTransactionUnchecked()
516 assert mConnection != null; in yieldTransaction()
[all …]
/frameworks/base/media/java/android/media/
DMediaHTTPConnection.java67 private volatile HttpURLConnection mConnection = null; field in MediaHTTPConnection
166 HttpURLConnection connectionToDisconnect = mConnection; in disconnect()
186 if (mConnection != null) { in teardownConnection()
195 mConnection.disconnect(); in teardownConnection()
196 mConnection = null; in teardownConnection()
252 mConnection = (HttpURLConnection)url.openConnection(Proxy.NO_PROXY); in seekTo()
254 mConnection = (HttpURLConnection)url.openConnection(); in seekTo()
268 mConnection.setConnectTimeout(CONNECT_TIMEOUT_MS); in seekTo()
271 mConnection.setInstanceFollowRedirects(mAllowCrossDomainRedirect); in seekTo()
275 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/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/
DBluetoothProfileConnector.java54 private final ServiceConnection mConnection = new ServiceConnection() { field in BluetoothProfileConnector
82 synchronized (mConnection) { in doBind()
90 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0, in doBind()
105 synchronized (mConnection) { in doUnbind()
109 mContext.unbindService(mConnection); in doUnbind()
DBluetoothPbap.java145 synchronized (mConnection) { in doBind()
153 if (comp == null || !mContext.bindServiceAsUser(intent, mConnection, 0, in doBind()
168 synchronized (mConnection) { in doUnbind()
172 mContext.unbindService(mConnection); in doUnbind()
342 private final ServiceConnection mConnection = new ServiceConnection() { field in BluetoothPbap
/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/base/core/java/android/hardware/usb/
DUsbRequest.java68 private UsbDeviceConnection mConnection; field in UsbRequest
99 mConnection = Preconditions.checkNotNull(connection, "connection"); in initialize()
117 mConnection = null; in close()
196 if (mConnection.getContext().getApplicationInfo().targetSdkVersion < Build.VERSION_CODES.P in queue()
262 if (mConnection.getContext().getApplicationInfo().targetSdkVersion in queue()
/frameworks/base/core/tests/coretests/src/android/os/
DBinderWorkSourceNestedService.java54 ServiceConnection mConnection = new ServiceConnection() {
66 mConnection, Context.BIND_AUTO_CREATE);
83 context.unbindService(mConnection);
DMessengerTest.java30 private ServiceConnection mConnection = new ServiceConnection() { field in MessengerTest
93 mConnection, Context.BIND_AUTO_CREATE); in setUp()
107 getContext().unbindService(mConnection); in tearDown()
DBinderThreadPriorityTest.java37 private ServiceConnection mConnection = new ServiceConnection() { field in BinderThreadPriorityTest
64 mConnection, Context.BIND_AUTO_CREATE); in setUp()
92 getContext().unbindService(mConnection); in tearDown()
/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.java114 private ServiceConnection mConnection; field in SEService
149 mConnection = new ServiceConnection() { in SEService()
171 mContext.bindService(intent, mConnection, Context.BIND_AUTO_CREATE); in SEService()
243 mContext.unbindService(mConnection); in shutdown()
/frameworks/base/services/core/java/com/android/server/connectivity/
DPacManager.java85 private ServiceConnection mConnection; field in PacManager
297 if ((mProxyConnection != null) && (mConnection != null)) { in bind()
302 mConnection = new ServiceConnection() { in bind()
329 mContext.bindService(intent, mConnection, in bind()
372 if (mConnection != null) { in unbind()
373 mContext.unbindService(mConnection); in unbind()
374 mConnection = null; in unbind()
/frameworks/native/services/surfaceflinger/tests/unittests/
DEventThreadTest.cpp97 sp<MockEventThreadConnection> mConnection; member in android::EventThreadTest
115 mConnection = createConnection(mConnectionEventCallRecorder, in EventThreadTest()
237 mThread->requestNextVsync(mConnection); in TEST_F()
245 mThread->requestNextVsync(mConnection); in TEST_F()
304 mThread->setVsyncRate(1, mConnection); in TEST_F()
327 mThread->setVsyncRate(2, mConnection); in TEST_F()
354 mThread->setVsyncRate(1, mConnection); in TEST_F()
360 mConnection = nullptr; in TEST_F()
/frameworks/base/core/java/com/android/internal/app/
DResolverRankerServiceResolverComparator.java82 private ResolverRankerServiceConnection mConnection; field in ResolverRankerServiceResolverComparator
294 if (mConnection != null) { in destroy()
295 mContext.unbindService(mConnection); in destroy()
296 mConnection.destroy(); in destroy()
320 if (mConnection != null && mRanker != null) { in initRanker()
332 mConnection = new ResolverRankerServiceConnection(mConnectSignal); in initRanker()
333 context.bindServiceAsUser(intent, mConnection, Context.BIND_AUTO_CREATE, UserHandle.SYSTEM); in initRanker()
450 if (mConnection == null) { in predictSelectProbabilities()
459 mRanker.predict(targets, mConnection.resolverRankerResult); in predictSelectProbabilities()
/frameworks/base/services/backup/java/com/android/server/backup/transport/
DTransportClient.java86 private final ServiceConnection mConnection; field in TransportClient
146 mConnection = new TransportConnection(context, this); in TransportClient()
219 mConnection, in connectAsync()
232 mContext.unbindService(mConnection); in connectAsync()
269 mContext.unbindService(mConnection); in unbind()
274 mContext.unbindService(mConnection); in unbind()
449 mContext.unbindService(mConnection); in onServiceDisconnected()
480 mContext.unbindService(mConnection); in onBindingDied()
485 mContext.unbindService(mConnection); in onBindingDied()
/frameworks/base/services/print/java/com/android/server/print/
DRemotePrintServiceRecommendationService.java57 private @NonNull final Connection mConnection; field in RemotePrintServiceRecommendationService
136 mConnection = new Connection(callbacks); in RemotePrintServiceRecommendationService()
142 mIsBound = mContext.bindServiceAsUser(serviceIntent, mConnection, in RemotePrintServiceRecommendationService()
171 mContext.unbindService(mConnection); in close()
/frameworks/base/core/java/com/android/internal/util/
DAsyncChannel.java193 private AsyncChannelConnection mConnection; field in AsyncChannel
233 mConnection = new AsyncChannelConnection(); in connectSrcHandlerToPackageSync()
250 boolean result = srcContext.bindService(intent, mConnection, Context.BIND_AUTO_CREATE); in connectSrcHandlerToPackageSync()
453 mConnection = null; in disconnected()
461 if ((mConnection != null) && (mSrcContext != null)) { in disconnect()
462 mSrcContext.unbindService(mConnection); in disconnect()
463 mConnection = null; in disconnect()
478 if (mConnection == null && mDstMessenger != null && mDeathMonitor!= null) { in disconnect()
888 if (mConnection == null && mDeathMonitor == null) { in linkToDeathMonitor()
/frameworks/base/services/core/java/com/android/server/
DExplicitHealthCheckController.java87 @GuardedBy("mLock") @Nullable private ServiceConnection mConnection; field in ExplicitHealthCheckController
293 if (!mEnabled || mConnection != null || mRemoteService != null) { in bindService()
311 mConnection = new ServiceConnection() { in bindService()
345 mContext.bindServiceAsUser(intent, mConnection, in bindService()
355 mContext.unbindService(mConnection); in unbindService()
357 mConnection = null; in unbindService()
/frameworks/base/core/java/android/os/image/
DDynamicSystemClient.java273 private final DynSystemServiceConnection mConnection; field in DynamicSystemClient
292 mConnection = new DynSystemServiceConnection(); in DynamicSystemClient()
336 mContext.bindService(intent, mConnection, Context.BIND_AUTO_CREATE); in bind()
365 mContext.unbindService(mConnection); in unbind()

12