/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
H A D | AccessibilityServiceConnectionTest.java | 133 mConnection.bindLocked(); in bind_requestsContextToBindService() 144 mConnection.unbindLocked(); in unbind_requestsContextToUnbindService() 151 mConnection.bindLocked(); in bindConnectUnbind_linksAndUnlinksToServiceDeath() 161 mConnection.bindLocked(); in connectedServiceCrashedAndRestarted_crashReportedInServiceInfo() 164 mConnection.binderDied(); in connectedServiceCrashedAndRestarted_crashReportedInServiceInfo() 179 mConnection.bindLocked(); in binderDied_keysGetFlushed() 181 mConnection.binderDied(); in binderDied_keysGetFlushed() 193 mConnection.bindLocked(); in connectedService_notInEnabledServiceList_doNotInitClient() 205 mConnection.bindLocked(); in sendGesture_touchableDevice_injectEvents() 222 mConnection.bindLocked(); in sendGesture_untouchableDevice_performGestureResultFailed() [all …]
|
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/soap/ |
H A D | HttpsServiceConnection.java | 44 private HttpsURLConnection mConnection; field in HttpsServiceConnection 54 mConnection.connect(); in connect() 59 mConnection.disconnect(); in disconnect() 78 return mConnection.getResponseCode(); in getResponseCode() 102 mConnection.setChunkedStreamingMode(0); in setChunkedStreamingMode() 107 return mConnection.getOutputStream(); in openOutputStream() 112 return mConnection.getInputStream(); in openInputStream() 117 return mConnection.getErrorStream(); in getErrorStream() 122 return mConnection.getURL().getHost(); in getHost() 127 return mConnection.getURL().getPort(); in getPort() [all …]
|
/aosp12/packages/services/BuiltInPrintService/src/com/android/bips/p2p/ |
H A D | P2pMonitor.java | 117 if (mConnection != null && !peer.deviceAddress.equals(mConnection.getPeer() in connect() 121 mConnection.close(); in connect() 122 mConnection = null; in connect() 131 if (mConnection == null) { in connect() 158 if (mConnection == null || !mConnection.hasListener(listener)) { in stopConnect() 168 mConnection.close(); in stopConnect() 169 mConnection = null; in stopConnect() 175 return mConnection; in getConnection() 185 if (mConnection != null) { in stopAll() 186 mConnection.close(); in stopAll() [all …]
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/inputlogic/ |
H A D | InputLogic.java | 142 mConnection.onStartInput(); in startInput() 240 mConnection.beginBatchEdit(); in onTextInput() 253 mConnection.endBatchEdit(); in onTextInput() 296 mConnection.beginBatchEdit(); in onPickSuggestionManually() 324 mConnection.endBatchEdit(); in onPickSuggestionManually() 489 mConnection.endBatchEdit(); in onCodeInput() 541 mConnection.endBatchEdit(); in onStartBatchInput() 1106 mConnection.setSelection(mConnection.getExpectedSelectionEnd(), in handleBackspaceEvent() 2228 mConnection.getExpectedSelectionStart(), mConnection.getExpectedSelectionEnd(), in retryResetCachesAndReturnSuccess() 2319 return mConnection; in getPrivateCommandPerformer() [all …]
|
/aosp12/frameworks/base/core/tests/coretests/src/android/view/ |
H A D | ScrollCaptureConnectionTest.java | 62 private ScrollCaptureConnection mConnection; field in ScrollCaptureConnectionTest 109 mConnection.startCapture(mSurface, mRemote); in testStartCapture() 112 assertTrue(mConnection.isActive()); in testStartCapture() 124 assertFalse(mConnection.isActive()); in testStartCapture_cancellation() 132 mConnection.startCapture(mSurface, mRemote); in testRequestImage() 164 mConnection.endCapture(); in testEndCapture() 188 mConnection.close(); in testClose() 189 assertFalse(mConnection.isActive()); in testClose() 198 assertTrue(mConnection.isActive()); in testClose_whileActive() 200 mConnection.close(); in testClose_whileActive() [all …]
|
/aosp12/frameworks/base/core/java/android/database/sqlite/ |
H A 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() 401 assert mConnection != null; in endTransaction() 516 assert mConnection != null; in yieldTransaction() 590 mConnection.prepare(sql, outStatementInfo); // might throw in prepare() 838 return mConnection.executeForCursorWindow(sql, bindArgs, in executeForCursorWindow() 894 if (mConnection == null) { in acquireConnection() 904 assert mConnection != null; in releaseConnection() [all …]
|
/aosp12/frameworks/base/media/java/android/media/ |
H A D | MediaHTTPConnection.java | 67 private volatile HttpURLConnection mConnection = null; field in MediaHTTPConnection 186 if (mConnection != null) { in teardownConnection() 195 mConnection.disconnect(); in teardownConnection() 196 mConnection = null; in teardownConnection() 275 mConnection.setRequestProperty( in seekTo() 281 mConnection.setRequestProperty( in seekTo() 285 response = mConnection.getResponseCode(); in seekTo() 334 mURL = mConnection.getURL(); in seekTo() 444 if (mConnection == null) { in getSize() 458 if (mConnection == null) { in getMIMEType() [all …]
|
/aosp12/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/http/ |
H A D | HttpClient.java | 57 private HttpURLConnection mConnection; field in HttpClient 74 mConnection.connect(); // This is to trigger SocketTimeoutException early in request() 75 HttpResponse response = getHttpResponse(mConnection); in request() 93 mConnection = (HttpURLConnection) url.openConnection(); in createConnection() 95 mConnection = (HttpURLConnection) network.openConnection(url); in createConnection() 100 mConnection.addRequestProperty(entry.getKey(), entry.getValue()); in createConnection() 104 mConnection.setRequestMethod(request.requestMethod()); in createConnection() 108 mConnection.setDoOutput(true); in createConnection() 117 if (mConnection != null) { in closeConnection() 118 mConnection.disconnect(); in closeConnection() [all …]
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/network/ |
H A D | BlockingHttpClient.java | 38 private final HttpURLConnection mConnection; field in BlockingHttpClient 55 mConnection = connection; in BlockingHttpClient() 67 Log.d(TAG, "execute: " + mConnection.getURL()); in execute() 74 OutputStream out = new BufferedOutputStream(mConnection.getOutputStream()); in execute() 80 final int responseCode = mConnection.getResponseCode(); in execute() 83 + mConnection.getResponseMessage()); in execute() 85 throw new AuthException(mConnection.getResponseMessage()); in execute() 92 return responseProcessor.onSuccess(mConnection.getInputStream()); in execute() 94 mConnection.disconnect(); in execute()
|
/aosp12/frameworks/base/core/java/android/view/ |
H A D | ScrollCaptureResponse.java | 67 return mConnection != null && mConnection.asBinder().isBinderAlive(); in isConnected() 72 if (mConnection != null) { in close() 74 mConnection.close(); in close() 78 mConnection = null; in close() 109 this.mConnection = connection; in ScrollCaptureResponse() 134 return mConnection; in getConnection() 208 if (mConnection != null) dest.writeStrongInterface(mConnection); in writeToParcel() 240 this.mConnection = connection; in ScrollCaptureResponse() 304 mConnection = value; in setConnection() 380 mConnection = null; in build() [all …]
|
H A D | RemoteAccessibilityController.java | 69 return mConnectionWrapper.mConnection.equals(connection); in alreadyAssociated() 84 private final IAccessibilityEmbeddedConnection mConnection; field in RemoteAccessibilityController.RemoteAccessibilityEmbeddedConnection 89 mConnection = connection; in RemoteAccessibilityEmbeddedConnection() 94 return mConnection; in getConnection() 102 mConnection.asBinder().linkToDeath(this, 0); in linkToDeath() 106 mConnection.asBinder().unlinkToDeath(this, 0); in unlinkToDeath()
|
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
H A D | WindowMagnificationConnectionWrapperTest.java | 48 private IWindowMagnificationConnection mConnection; field in WindowMagnificationConnectionWrapperTest 63 mConnection = mMockWindowMagnificationConnection.getConnection(); in setUp() 64 mConnectionWrapper = new WindowMagnificationConnectionWrapper(mConnection, mTrace); in setUp() 78 verify(mConnection).setScale(TEST_DISPLAY, 3.0f); in setScale() 85 verify(mConnection).disableWindowMagnification(eq(TEST_DISPLAY), in disableWindowMagnification() 93 verify(mConnection).moveWindowMagnifier(TEST_DISPLAY, 100, 150); in moveWindowMagnifier() 100 verify(mConnection).showMagnificationButton(TEST_DISPLAY, in showMagnificationButton() 107 verify(mConnection).removeMagnificationButton(TEST_DISPLAY); in removeMagnificationButton() 113 verify(mConnection).setConnectionCallback(mCallback); in setMirrorWindowCallback()
|
H A D | MockWindowMagnificationConnection.java | 45 private final IWindowMagnificationConnection mConnection; field in MockWindowMagnificationConnection 64 mConnection = mock(IWindowMagnificationConnection.class); in MockWindowMagnificationConnection() 66 when(mConnection.asBinder()).thenReturn(mBinder); in MockWindowMagnificationConnection() 70 }).when(mConnection).setConnectionCallback( in MockWindowMagnificationConnection() 103 }).when(mConnection).enableWindowMagnification(anyInt(), anyFloat(), anyFloat(), anyFloat(), in stubEnableWindowMagnification() 119 }).when(mConnection).disableWindowMagnification(anyInt(), in stubDisableWindowMagnification() 149 return mConnection; in getConnection()
|
/aosp12/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | DownloadScanner.java | 48 private final MediaScannerConnection mConnection; field in DownloadScanner 75 mConnection = new MediaScannerConnection(context, this); in DownloadScanner() 100 synchronized (mConnection) { in hasPendingScans() 124 synchronized (mConnection) { in requestScan() 127 if (mConnection.isConnected()) { in requestScan() 128 req.exec(mConnection); in requestScan() 130 mConnection.connect(); in requestScan() 136 mConnection.disconnect(); in shutdown() 141 synchronized (mConnection) { in onMediaScannerConnected() 143 req.exec(mConnection); in onMediaScannerConnected() [all …]
|
/aosp12/frameworks/base/tests/AccessoryDisplay/sink/src/com/android/accessorydisplay/sink/ |
H A 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()
|
/aosp12/frameworks/base/services/accessibility/java/com/android/server/accessibility/magnification/ |
H A D | WindowMagnificationConnectionWrapper.java | 43 private final @NonNull IWindowMagnificationConnection mConnection; field in WindowMagnificationConnectionWrapper 48 mConnection = connection; in WindowMagnificationConnectionWrapper() 54 mConnection.asBinder().unlinkToDeath(deathRecipient, 0); in unlinkToDeath() 58 mConnection.asBinder().linkToDeath(deathRecipient, 0); in linkToDeath() 70 mConnection.enableWindowMagnification(displayId, scale, centerX, centerY, in enableWindowMagnification() 87 mConnection.setScale(displayId, scale); in setScale() 105 mConnection.disableWindowMagnification(displayId, in disableWindowMagnification() 122 mConnection.moveWindowMagnifier(displayId, offsetX, offsetY); in moveWindowMagnifier() 139 mConnection.showMagnificationButton(displayId, magnificationMode); in showMagnificationButton() 155 mConnection.removeMagnificationButton(displayId); in removeMagnificationButton() [all …]
|
/aosp12/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
H A D | ScrollCaptureClient.java | 239 private IScrollCaptureConnection mConnection; 263 mConnection = requireNonNull(connection); 264 mConnection.asBinder().linkToDeath(SessionWrapper.this, 0); 285 mConnection = null; 332 if (mConnection == null || !mConnection.asBinder().isBinderAlive()) { 338 mCancellationSignal = mConnection.requestImage(mRequestRect); 392 mConnection.close(); 396 mConnection = null; 403 mConnection.endCapture(); 419 mConnection.close(); [all …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/pm/verify/domain/ |
H A D | DomainVerificationService.java | 123 private Connection mConnection; field in DomainVerificationService 180 mConnection = connection; in setConnection() 183 mEnforcer.setCallback(mConnection); in setConnection() 452 mConnection.scheduleWriteSettings(); 494 mConnection.scheduleWriteSettings(); 536 mConnection.scheduleWriteSettings(); 634 mConnection.scheduleWriteSettings(); 747 mEnforcer.assertOwnerQuerent(mConnection.getCallingUid(), mConnection.getCallingUserId(), 1128 mConnection.scheduleWriteSettings(); 1148 mConnection.scheduleWriteSettings(); [all …]
|
/aosp12/frameworks/base/core/java/android/hardware/usb/ |
H A D | UsbRequest.java | 69 private UsbDeviceConnection mConnection; field in UsbRequest 100 mConnection = Objects.requireNonNull(connection, "connection"); in initialize() 118 mConnection = null; in close() 197 if (mConnection.getContext().getApplicationInfo().targetSdkVersion < Build.VERSION_CODES.P in queue() 263 if (mConnection.getContext().getApplicationInfo().targetSdkVersion in queue() 366 if (mConnection == null) { in cancel() 370 return mConnection.cancelRequest(this); in cancel() 385 if (mNativeContext == 0 || (mConnection != null && !mConnection.isOpen())) { in cancelIfOpen()
|
/aosp12/frameworks/base/services/core/java/com/android/server/utils/ |
H A 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() 311 mConnection = new ServiceConnection() { in connect() 317 if (mConnection != this) { in connect() 337 if (mConnection != this) { in connect() 378 if (mConnection != this) { in connect() 398 if (!mContext.bindServiceAsUser(intent, mConnection, flags, in connect() [all …]
|
/aosp12/frameworks/base/telephony/java/android/telephony/ |
H A D | BinderCacheManager.java | 59 private final T mConnection; field in BinderCacheManager.BinderDeathTracker 67 mConnection = connection; in BinderDeathTracker() 69 mConnection.asBinder().linkToDeath(this, 0 /*flags*/); in BinderDeathTracker() 96 mConnection.asBinder().unlinkToDeath(this, 0 /*flags*/); in binderDied() 108 return mConnection; in getConnection() 115 return mConnection.asBinder().isBinderAlive(); in isAlive()
|
/aosp12/frameworks/base/core/java/android/view/inputmethod/ |
H A 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()
|
/aosp12/packages/services/Car/tests/obd2_app/src/com/google/android/car/obd2app/ |
H A D | Obd2CollectionTask.java | 37 private final Obd2Connection mConnection; field in Obd2CollectionTask 72 if (!mConnection.isConnected()) { in run() 73 if (!mConnection.reconnect()) { in run() 101 mConnection = new Obd2Connection(bluetoothConnection); in Obd2CollectionTask() 102 mLiveFrameGenerator = new Obd2LiveFrameGenerator(mConnection); in Obd2CollectionTask() 103 mFreezeFrameGenerator = new Obd2FreezeFrameGenerator(mConnection); in Obd2CollectionTask()
|
/aosp12/frameworks/base/services/core/java/com/android/server/pm/verify/domain/proxy/ |
H A D | DomainVerificationProxyV2.java | 49 private final Connection mConnection; field in DomainVerificationProxyV2 57 mConnection = connection; in DomainVerificationProxyV2() 63 …mConnection.schedule(com.android.server.pm.verify.domain.DomainVerificationMessageCodes.SEND_REQUE… in sendBroadcastForPackages() 73 final long allowListTimeout = mConnection.getPowerSaveTempWhitelistAppDuration(); in runMessage() 79 mConnection.getDeviceIdleInternal().addPowerSaveTempWhitelistApp(Process.myUid(), in runMessage() 102 return mConnection.isCallerPackage(callingUid, mVerifierComponent.getPackageName()); in isCallerVerifier()
|
/aosp12/packages/services/Telephony/src/com/android/phone/vvm/ |
H A D | RemoteVvmTaskManager.java | 79 private RemoteServiceConnection mConnection; field in RemoteVvmTaskManager 313 mConnection = null; in onServiceDisconnected() 361 if (mConnection == null) { in send() 362 mConnection = new RemoteServiceConnection(); in send() 364 mConnection.enqueue(message); in send() 366 if (!mConnection.isConnected()) { in send() 370 bindService(intent, mConnection, Context.BIND_AUTO_CREATE); in send() 375 if (mConnection == null) { in checkReference() 379 unbindService(mConnection); in checkReference() 380 mConnection = null; in checkReference()
|