Home
last modified time | relevance | path

Searched refs:connection (Results 1 – 25 of 161) sorted by relevance

1234567

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/service/
H A DObservableServiceConnectionTest.java117 connection.addCallback(mCallback); in testConnect()
118 connection.addCallback(mCallback); in testConnect()
120 connection.bind(); in testConnect()
136 connection.addCallback(mCallback); in testDisconnect()
145 connection.bind(); in testDisconnect()
159 connection.unbind(); in testDisconnect()
167 connection.addCallback(mCallback); in testUnbind()
176 connection.bind(); in testUnbind()
180 connection.unbind(); in testUnbind()
192 connection.addCallback(mCallback); in testBindServiceThrowsError()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/storage/
H A DStorageSessionController.java124 if (connection == null) { in onVolumeMount()
156 if (connection != null) { in notifyVolumeStateChanged()
203 if (connection != null) { in notifyAnrDelayStarted()
227 if (connection != null) { in onVolumeRemove()
230 return connection; in onVolumeRemove()
252 if (connection != null) { in onVolumeUnmount()
290 if (connection != null) { in onUserStopping()
343 connection.close(); in onReset()
406 if (connection != null) { in notifyAppIoBlocked()
425 if (connection != null) { in notifyAppIoResumed()
[all …]
/aosp14/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteConnectionPool.java624 SQLiteConnection connection = in closeExcessConnectionsAndLogExceptionsLocked() local
722 if (connection == null) { in waitForConnection()
725 if (connection != null) { in waitForConnection()
726 return connection; in waitForConnection()
958 if (connection != null) { in tryAcquirePrimaryConnectionLocked()
961 return connection; in tryAcquirePrimaryConnectionLocked()
976 return connection; in tryAcquirePrimaryConnectionLocked()
984 SQLiteConnection connection; in tryAcquireNonPrimaryConnectionLocked() local
994 return connection; in tryAcquireNonPrimaryConnectionLocked()
1002 return connection; in tryAcquireNonPrimaryConnectionLocked()
[all …]
/aosp14/frameworks/base/telecomm/java/android/telecom/
H A DRemoteConnection.java74 RemoteConnection connection, in onDisconnected() argument
94 RemoteConnection connection, in onConnectionCapabilitiesChanged() argument
105 RemoteConnection connection, in onConnectionPropertiesChanged() argument
195 RemoteConnection connection, in onConferenceableConnectionsChanged() argument
218 RemoteConnection connection, in onConferenceChanged() argument
691 mState = connection.getState(); in RemoteConnection()
696 mVideoState = connection.getVideoState(); in RemoteConnection()
705 mStatusHints = connection.getStatusHints(); in RemoteConnection()
706 mAddress = connection.getHandle(); in RemoteConnection()
711 putExtras(connection.getExtras()); in RemoteConnection()
[all …]
H A DRemoteConnectionService.java61 RemoteConnection connection =
63 if (connection != NULL_CONNECTION && mPendingConnections.contains(connection)) {
74 connection.setCallerDisplayName(
95 connection.setDestroyed();
198 RemoteConnection connection =
200 if (connection != NULL_CONNECTION) {
204 connection.getConference().removeConnection(connection);
380 connection);
594 RemoteConnection connection = in createRemoteConnection() local
596 mPendingConnections.add(connection); in createRemoteConnection()
[all …]
H A DRemoteConference.java173 connection.setConference(null); in setDestroyed()
214 void addConnection(final RemoteConnection connection) { in addConnection() argument
215 if (!mChildConnections.contains(connection)) { in addConnection()
216 mChildConnections.add(connection); in addConnection()
217 connection.setConference(this); in addConnection()
232 void removeConnection(final RemoteConnection connection) { in removeConnection() argument
233 if (mChildConnections.contains(connection)) { in removeConnection()
234 mChildConnections.remove(connection); in removeConnection()
235 connection.setConference(null); in removeConnection()
422 public void separate(RemoteConnection connection) { in separate() argument
[all …]
H A DConnectionService.java2380 Connection connection = null; in createConnection() local
2396 if (connection == null) { in createConnection()
2816 if (connection != null) { in pullExternalCall()
2833 if (connection != null) { in sendCallEvent()
2842 if (connection != null) { in onCallFilteringCompleted()
2855 if (connection != null) { in notifyHandoverComplete()
3111 Connection connection) { in addExistingConnection() argument
3157 connection.getState(), in addExistingConnection()
3657 if (connection.getExtras() != null && connection.getExtras() in addExistingConnectionInternal()
3682 onConnectionAdded(connection); in addConnection()
[all …]
/aosp14/frameworks/base/core/java/android/hardware/usb/
H A DUsbRequest.java196 UsbDeviceConnection connection = mConnection; in queue() local
197 if (connection == null) { in queue()
212 UsbDeviceConnection connection = mConnection; in queueIfConnectionOpen() local
213 if (connection == null || !connection.isOpen()) { in queueIfConnectionOpen()
270 UsbDeviceConnection connection = mConnection; in queue() local
271 if (connection == null) { in queue()
278 return connection.queueRequest(this, buffer); in queue()
287 if (connection == null || !connection.isOpen()) { in queueIfConnectionOpen()
413 if (connection == null) { in cancel()
417 return connection.cancelRequest(this); in cancel()
[all …]
/aosp14/frameworks/base/services/robotests/backup/src/com/android/server/backup/transport/
H A DTransportConnectionTest.java225 verify(mContext).unbindService(eq(connection)); in testConnectAsync_whenFrameworkDoesNotBind_releasesConnection()
233 connection.onServiceDisconnected(mTransportComponent); in testConnectAsync_afterOnServiceDisconnectedBeforeNewConnection_callsListener()
246 connection.onServiceDisconnected(mTransportComponent); in testConnectAsync_afterOnServiceDisconnectedAfterNewConnection_callsListener()
261 connection.onBindingDied(mTransportComponent); in testConnectAsync_callsListenerIfBindingDies()
275 connection.onBindingDied(mTransportComponent); in testConnectAsync_whenPendingConnection_callsListenersIfBindingDies()
310 connection.onBindingDied(mTransportComponent); in testConnectAsync_afterOnBindingDied_logsBoundAndUnboundTransitionEvents()
333 connection.onServiceDisconnected(mTransportComponent); in testConnect_afterOnServiceDisconnected_returnsNull()
345 connection.onBindingDied(mTransportComponent); in testConnect_afterOnBindingDied_returnsNull()
398 connection.onServiceDisconnected(mTransportComponent); in testOnServiceDisconnected_whenConnected_logsDisconnectedAndUnboundTransitionEvents()
411 connection.onBindingDied(mTransportComponent); in testOnBindingDied_whenConnected_logsDisconnectedAndUnboundTransitionEvents()
[all …]
/aosp14/frameworks/base/core/jni/
H A Dandroid_database_SQLiteConnection.cpp95 connection->label.string(), sql); in sqliteTraceCallback()
108 return connection->canceled; in sqliteProgressHandlerCallback()
184 return reinterpret_cast<jlong>(connection); in nativeOpen()
190 if (connection) { in nativeClose()
192 int err = sqlite3_close(connection->db); in nativeClose()
200 delete connection; in nativeClose()
254 throw_sqlite3_exception(env, connection->db); in nativeRegisterCustomScalarFunction()
373 int err = sqlite3_prepare16_v2(connection->db, in nativePrepareStatement()
867 connection->canceled = true; in nativeCancel()
873 connection->canceled = false; in nativeResetCancel()
[all …]
/aosp14/system/core/trusty/libtrusty-rs/tests/
H A Dtest.rs7 let mut connection = TipcChannel::connect(DEFAULT_DEVICE, ECHO_NAME) in recv_no_alloc() localVariable
12 connection.send(send_buf.as_slice()).unwrap(); in recv_no_alloc()
17 let read_len = connection.recv_no_alloc(recv_buf.as_mut_slice()).unwrap(); in recv_no_alloc()
31 let mut connection = TipcChannel::connect(DEFAULT_DEVICE, ECHO_NAME) in recv_small_buf() localVariable
37 connection.send(send_buf.as_slice()).unwrap(); in recv_small_buf()
54 let mut connection = TipcChannel::connect(DEFAULT_DEVICE, ECHO_NAME) in recv_empty_vec() localVariable
59 connection.send(send_buf.as_slice()).unwrap(); in recv_empty_vec()
64 connection.recv(&mut recv_buf).unwrap(); in recv_empty_vec()
71 let mut connection = TipcChannel::connect(DEFAULT_DEVICE, ECHO_NAME) in recv_vec_existing_capacity() localVariable
76 connection.send(send_buf.as_slice()).unwrap(); in recv_vec_existing_capacity()
[all …]
/aosp14/frameworks/base/core/java/android/accessibilityservice/
H A DAccessibilityService.java1095 if (connection != null) { in disableSelf()
1221 if (connection == null) { in dispatchGesture()
2370 if (connection == null) { in setCacheEnabled()
2452 if (connection != null) { in getSystemActions()
2491 if (connection != null) { in performGlobalAction()
2548 if (connection != null) { in getServiceInfo()
2643 if (connection == null) { in takeScreenshot()
2714 if (connection != null) { in setAccessibilityFocusAppearance()
3273 if (connection != null) {
3299 if (connection != null) {
[all …]
H A DTouchInteractionController.java245 final IAccessibilityServiceConnection connection = in setServiceDetectsGestures() local
248 if (connection != null) { in setServiceDetectsGestures()
266 final IAccessibilityServiceConnection connection = in requestTouchExploration() local
269 if (connection != null) { in requestTouchExploration()
295 final IAccessibilityServiceConnection connection = in requestDragging() local
298 if (connection != null) { in requestDragging()
320 if (connection != null) { in requestDelegating()
322 connection.requestDelegating(mDisplayId); in requestDelegating()
343 if (connection != null) { in performClick()
345 connection.onDoubleTap(mDisplayId); in performClick()
[all …]
/aosp14/frameworks/base/media/java/android/service/media/
H A DMediaBrowserService.java327 if (connection == null) { in addSubscription()
358 if (connection == null) { in removeSubscription()
384 if (connection == null) { in getMediaItem()
539 connection.callbacks.onConnect(connection.root.getRootId(), token, in setSessionToken()
681 connection.subscriptions.put(id, callbackList); in addSubscription()
683 performLoadChildren(id, connection, options); in addSubscription()
704 connection.subscriptions.remove(id); in removeSubscription()
721 if (mConnections.get(connection.callbacks.asBinder()) != connection) { in performLoadChildren()
751 mCurConnection = connection; in performLoadChildren()
792 if (mConnections.get(connection.callbacks.asBinder()) != connection) { in performLoadItem()
[all …]
/aosp14/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
H A DDomainVerificationProxyTest.kt220 connection
295 connection,
304 connection,
340 connection,
349 connection,
389 connection,
398 connection,
442 connection
478 connection
489 connection
[all …]
/aosp14/frameworks/base/services/core/jni/
H A Dcom_android_server_tv_TvUinputBridge.cpp370 return reinterpret_cast<jlong>(connection); in nativeOpen()
378 return reinterpret_cast<jlong>(connection); in nativeGamepadOpen()
383 delete connection; in nativeClose()
390 if (connection->IsGamepad()) { in nativeSendKey()
406 if (!connection->IsGamepad()) { in nativeSendGamepadKey()
423 if (!connection->IsGamepad()) { in nativeSendGamepadAxisValue()
453 if (connection->IsGamepad()) { in nativeSendPointerDown()
474 if (connection->IsGamepad()) { in nativeSendPointerUp()
489 connection->sendEvent(EV_SYN, SYN_REPORT, 0); in nativeSendPointerSync()
496 if (connection->IsRemote()) { in nativeClear()
[all …]
/aosp14/frameworks/base/core/java/android/view/accessibility/
H A DAccessibilityInteractionClient.java400 if (connection != null) { in getWindow()
487 if (connection != null) { in getWindowsOnAllDisplays()
566 if (connection != null) { in findAccessibilityNodeInfoByAccessibilityId()
603 if (connection != null) { in findAccessibilityNodeInfoByAccessibilityId()
754 if (connection != null) { in findAccessibilityNodeInfosByViewId()
814 if (connection == null) { in takeScreenshotOfWindow()
874 if (connection != null) { in findAccessibilityNodeInfosByText()
939 if (connection != null) { in findFocus()
1020 if (connection != null) { in focusSearch()
1079 if (connection != null) { in performAccessibilityAction()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/media/
H A DMediaRoute2ProviderServiceProxy.java282 if (connection.register()) { in onServiceConnected()
315 if (mActiveConnection == connection) { in onConnectionReady()
328 if (mActiveConnection == connection) { in onConnectionDied()
337 if (mActiveConnection != connection) { in onProviderUpdated()
348 if (mActiveConnection != connection) { in onSessionCreated()
385 if (mActiveConnection != connection) { in onSessionsUpdated()
645 if (connection != null) { in notifyProviderUpdated()
653 if (connection != null) { in notifySessionCreated()
661 if (connection != null) { in notifySessionsUpdated()
669 if (connection != null) { in notifySessionReleased()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/tv/
H A DTvInputHardwareManager.java160 Connection connection = new Connection(info); in onDeviceAvailable() local
161 connection.updateConfigsLocked(configs); in onDeviceAvailable()
184 if (connection == null) { in onDeviceUnavailable()
213 if (connection == null) { in onStreamConfigurationChanged()
220 connection.updateConfigsLocked(configs); in onStreamConfigurationChanged()
256 if (connection == null) { in onFirstFrameCaptured()
341 if (connection != null) { in addHardwareInput()
415 if (connection == null) { in acquireHardware()
440 return connection.getHardwareLocked(); in acquireHardware()
451 if (connection == null) { in releaseHardware()
[all …]
/aosp14/frameworks/base/core/java/android/view/
H A DRemoteAccessibilityController.java50 void assosciateHierarchy(IAccessibilityEmbeddedConnection connection, in assosciateHierarchy() argument
55 leashToken = connection.associateEmbeddedHierarchy( in assosciateHierarchy()
57 setRemoteAccessibilityEmbeddedConnection(connection, leashToken); in assosciateHierarchy()
67 boolean alreadyAssociated(IAccessibilityEmbeddedConnection connection) { in alreadyAssociated() argument
71 return mConnectionWrapper.mConnection.equals(connection); in alreadyAssociated()
93 IAccessibilityEmbeddedConnection connection, in RemoteAccessibilityEmbeddedConnection() argument
96 mConnection = connection; in RemoteAccessibilityEmbeddedConnection()
132 IAccessibilityEmbeddedConnection connection, IBinder leashToken) { in setRemoteAccessibilityEmbeddedConnection() argument
140 if (connection != null && leashToken != null) { in setRemoteAccessibilityEmbeddedConnection()
142 new RemoteAccessibilityEmbeddedConnection(this, connection, leashToken); in setRemoteAccessibilityEmbeddedConnection()
/aosp14/frameworks/base/media/java/android/media/audio/common/
H A DAidlConversion.java656 aidl.connection = ""; in api2aidl_NativeType_AudioDeviceDescription()
770 aidl.connection = AudioDeviceDescription.CONNECTION_USB; in api2aidl_NativeType_AudioDeviceDescription()
774 aidl.connection = AudioDeviceDescription.CONNECTION_USB; in api2aidl_NativeType_AudioDeviceDescription()
778 aidl.connection = AudioDeviceDescription.CONNECTION_USB; in api2aidl_NativeType_AudioDeviceDescription()
782 aidl.connection = AudioDeviceDescription.CONNECTION_USB; in api2aidl_NativeType_AudioDeviceDescription()
786 aidl.connection = AudioDeviceDescription.CONNECTION_USB; in api2aidl_NativeType_AudioDeviceDescription()
790 aidl.connection = AudioDeviceDescription.CONNECTION_USB; in api2aidl_NativeType_AudioDeviceDescription()
832 aidl.connection = AudioDeviceDescription.CONNECTION_BUS; in api2aidl_NativeType_AudioDeviceDescription()
836 aidl.connection = AudioDeviceDescription.CONNECTION_BUS; in api2aidl_NativeType_AudioDeviceDescription()
846 aidl.connection = AudioDeviceDescription.CONNECTION_USB; in api2aidl_NativeType_AudioDeviceDescription()
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/location/gnss/
H A DGnssPsdsDownloader.java147 HttpURLConnection connection = null; in doDownload() local
149 connection = (HttpURLConnection) (new URL(url)).openConnection(); in doDownload()
150 connection.setRequestProperty( in doDownload()
153 connection.setRequestProperty( in doDownload()
156 connection.setConnectTimeout(CONNECTION_TIMEOUT_MS); in doDownload()
157 connection.setReadTimeout(READ_TIMEOUT_MS); in doDownload()
159 connection.connect(); in doDownload()
160 int statusCode = connection.getResponseCode(); in doDownload()
166 try (InputStream in = connection.getInputStream()) { in doDownload()
182 if (connection != null) { in doDownload()
[all …]
/aosp14/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/
H A DProxyServer.java63 private Socket connection; field in ProxyServer.ProxyConnection
65 private ProxyConnection(Socket connection) { in ProxyConnection() argument
66 this.connection = connection; in ProxyConnection()
75 connection.close(); in run()
96 connection.close(); in run()
110 connection.close(); in run()
134 skipToRequestBody(connection); in run()
136 sendLine(connection, HTTP_OK); in run()
155 skipToRequestBody(connection); in run()
157 sendLine(connection, HTTP_OK); in run()
[all …]
/aosp14/frameworks/base/services/companion/java/com/android/server/companion/datatransfer/contextsync/
H A DCallMetadataSyncConnectionService.java83 connection.update(call);
91 mActiveConnections.values().removeIf(connection -> {
92 if (connection.isIdFinalized()
105 if (callIds.contains(connection.getCallId())) {
149 connection.setInitializing(); in onCreateIncomingConnection()
150 return connection; in onCreateIncomingConnection()
211 connection.setInitializing(); in onCreateOutgoingConnection()
212 return connection; in onCreateOutgoingConnection()
224 public void onCreateConnectionComplete(Connection connection) { in onCreateConnectionComplete() argument
225 if (connection instanceof CallMetadataSyncConnection) { in onCreateConnectionComplete()
[all …]
/aosp14/frameworks/base/services/core/jni/tvinput/
H A DJTvInputHal.cpp73 if (connection.mSurface != NULL) { in addOrUpdateStream()
79 connection.mSurface.clear(); in addOrUpdateStream()
81 if (connection.mSourceHandle == NULL && connection.mThread == NULL) { in addOrUpdateStream()
113 connection.mSurface = surface; in addOrUpdateStream()
115 connection.mSurface->setSidebandStream(connection.mSourceHandle); in addOrUpdateStream()
127 if (connection.mSurface == NULL) { in removeStream()
134 connection.mSurface.clear(); in removeStream()
135 if (connection.mThread != NULL) { in removeStream()
136 connection.mThread->shutdown(); in removeStream()
137 connection.mThread.clear(); in removeStream()
[all …]

1234567