/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/soap/ |
D | HttpsServiceConnection.java | 44 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/ |
D | AccessibilityServiceConnectionTest.java | 64 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/ |
D | SQLiteSession.java | 167 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/ |
D | MediaHTTPConnection.java | 67 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 …]
|
D | MediaScannerConnection.java | 189 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/ |
D | UsbAccessoryBulkTransport.java | 35 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/ |
D | InputBinding.java | 33 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/ |
D | ManagedApplicationService.java | 95 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/ |
D | BluetoothProfileConnector.java | 54 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()
|
D | BluetoothPbap.java | 145 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/ |
D | SpeechRecognizer.java | 117 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/ |
D | UsbRequest.java | 68 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/ |
D | BinderWorkSourceNestedService.java | 54 ServiceConnection mConnection = new ServiceConnection() { 66 mConnection, Context.BIND_AUTO_CREATE); 83 context.unbindService(mConnection);
|
D | MessengerTest.java | 30 private ServiceConnection mConnection = new ServiceConnection() { field in MessengerTest 93 mConnection, Context.BIND_AUTO_CREATE); in setUp() 107 getContext().unbindService(mConnection); in tearDown()
|
D | BinderThreadPriorityTest.java | 37 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/ |
D | MtpDevice.java | 56 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/ |
D | SEService.java | 114 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/ |
D | PacManager.java | 85 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/ |
D | EventThreadTest.cpp | 97 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/ |
D | ResolverRankerServiceResolverComparator.java | 82 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/ |
D | TransportClient.java | 86 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/ |
D | RemotePrintServiceRecommendationService.java | 57 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/ |
D | AsyncChannel.java | 193 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/ |
D | ExplicitHealthCheckController.java | 87 @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/ |
D | DynamicSystemClient.java | 273 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()
|