Home
last modified time | relevance | path

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

12345678910>>...12

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaConnectionTest.java47 private GsmCdmaConnection connection; field in GsmCdmaConnectionTest
65 if (connection != null) { in tearDown()
66 connection.dispose(); in tearDown()
67 connection = null; in tearDown()
74 connection = new GsmCdmaConnection(mPhone, String.format( in testFormatDialString()
78 String formattedDialStr = connection.formatDialString( in testFormatDialString()
84 formattedDialStr = connection.formatDialString("+1 (700).555-41NN,;1234"); in testFormatDialString()
91 connection = new GsmCdmaConnection(mPhone, "+8610000", mCT, null, in testOriginalDialString()
93 assertEquals("+8610000", connection.getOrigDialString()); in testOriginalDialString()
96 connection = new GsmCdmaConnection(mPhone, "+8610000", mCT, null, in testOriginalDialString()
[all …]
DConnectionTest.java172 Connection connection = new TestConnection(TEST_PHONE_TYPE); in testEmergencyCallParameters() local
173 connection.setEmergencyCallInfo(mPhone.getCallTracker(), null); in testEmergencyCallParameters()
174 assertTrue(connection.isEmergencyCall()); in testEmergencyCallParameters()
175 assertEquals(getTestEmergencyNumber(), connection.getEmergencyNumberInfo()); in testEmergencyCallParameters()
176 connection.setHasKnownUserIntentEmergency(true); in testEmergencyCallParameters()
177 assertTrue(connection.hasKnownUserIntentEmergency()); in testEmergencyCallParameters()
202 Connection connection = new TestConnection(TEST_PHONE_TYPE); in testUpdateEmergencyRouting() local
203 connection.setEmergencyCallInfo(mPhone.getCallTracker(), dialArgs); in testUpdateEmergencyRouting()
206 assertEquals(getTestEmergencyNumber(), connection.getEmergencyNumberInfo()); in testUpdateEmergencyRouting()
210 connection = new TestConnection(TEST_PHONE_TYPE); in testUpdateEmergencyRouting()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/service/
DObservableServiceConnectionTest.java112 ObservableServiceConnection<Foo> connection = new ObservableServiceConnection<>(mContext, in testConnect() local
115 connection.addCallback(mCallback); in testConnect()
116 connection.addCallback(mCallback); in testConnect()
118 connection.bind(); in testConnect()
123 connection.onServiceConnected(mComponentName, mBinder); in testConnect()
128 verify(mCallback, times(1)).onConnected(eq(connection), eq(mResult)); in testConnect()
133 ObservableServiceConnection<Foo> connection = new ObservableServiceConnection<>(mContext, in testDisconnect() local
135 connection.addCallback(mCallback); in testDisconnect()
136 connection.onServiceDisconnected(mComponentName); in testDisconnect()
140 verify(mCallback, never()).onDisconnected(eq(connection), anyInt()); in testDisconnect()
[all …]
/frameworks/base/services/core/java/com/android/server/storage/
DStorageSessionController.java122 StorageUserConnection connection = null; in onVolumeMount() local
124 connection = mConnections.get(userId); in onVolumeMount()
125 if (connection == null) { in onVolumeMount()
127 connection = new StorageUserConnection(mContext, userId, this); in onVolumeMount()
128 mConnections.put(userId, connection); in onVolumeMount()
132 connection.startSession(sessionId, deviceFd, vol.getPath().getPath(), in onVolumeMount()
154 StorageUserConnection connection = null; in notifyVolumeStateChanged() local
156 connection = mConnections.get(connectionUserId); in notifyVolumeStateChanged()
157 if (connection != null) { in notifyVolumeStateChanged()
159 connection.notifyVolumeStateChanged(sessionId, in notifyVolumeStateChanged()
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteConnectionPool.java420 public void releaseConnection(SQLiteConnection connection) { in releaseConnection() argument
423 mIdleConnectionHandler.connectionReleased(connection); in releaseConnection()
425 AcquiredConnectionStatus status = mAcquiredConnections.remove(connection); in releaseConnection()
433 closeConnectionAndLogExceptionsLocked(connection); in releaseConnection()
434 } else if (connection.isPrimaryConnection()) { in releaseConnection()
435 if (recycleConnectionLocked(connection, status)) { in releaseConnection()
437 mAvailablePrimaryConnection = connection; in releaseConnection()
441 closeConnectionAndLogExceptionsLocked(connection); in releaseConnection()
443 if (recycleConnectionLocked(connection, status)) { in releaseConnection()
444 mAvailableNonPrimaryConnections.add(connection); in releaseConnection()
[all …]
/frameworks/base/telecomm/java/android/telecom/
DRemoteConnection.java64 public void onStateChanged(RemoteConnection connection, int state) {} in onStateChanged() argument
74 RemoteConnection connection, in onDisconnected() argument
84 public void onRingbackRequested(RemoteConnection connection, boolean ringback) {} in onRingbackRequested() argument
94 RemoteConnection connection, in onConnectionCapabilitiesChanged() argument
105 RemoteConnection connection, in onConnectionPropertiesChanged() argument
117 public void onPostDialWait(RemoteConnection connection, String remainingPostDialSequence) {} in onPostDialWait() argument
126 public void onPostDialChar(RemoteConnection connection, char nextChar) {} in onPostDialChar() argument
135 public void onVoipAudioChanged(RemoteConnection connection, boolean isVoip) {} in onVoipAudioChanged() argument
144 public void onStatusHintsChanged(RemoteConnection connection, StatusHints statusHints) {} in onStatusHintsChanged() argument
155 public void onAddressChanged(RemoteConnection connection, Uri address, int presentation) {} in onAddressChanged() argument
[all …]
DRemoteConnectionService.java63 RemoteConnection connection =
65 if (connection != NULL_CONNECTION && mPendingConnections.contains(connection)) {
66 mPendingConnections.remove(connection);
68 connection.setConnectionCapabilities(parcel.getConnectionCapabilities());
69 connection.setConnectionProperties(parcel.getConnectionProperties());
72 connection.setAddress(parcel.getHandle(), parcel.getHandlePresentation());
76 connection.setCallerDisplayName(
82 connection.setDisconnected(parcel.getDisconnectCause());
84 connection.setState(parcel.getState());
92 connection.setConferenceableConnections(conferenceable);
[all …]
DRemoteConference.java73 public void onConnectionAdded(RemoteConference conference, RemoteConnection connection) {} in onConnectionAdded() argument
81 public void onConnectionRemoved(RemoteConference conference, RemoteConnection connection) {} in onConnectionRemoved() argument
172 for (RemoteConnection connection : mChildConnections) { in setDestroyed()
173 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()
224 callback.onConnectionAdded(conference, connection); in addConnection()
232 void removeConnection(final RemoteConnection connection) { in removeConnection() argument
[all …]
/frameworks/base/core/jni/
Dandroid_database_SQLiteConnection.cpp99 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); in sqliteTraceCallback() local
100 ALOG(LOG_VERBOSE, SQLITE_TRACE_TAG, "%s: \"%s\"\n", connection->label.c_str(), sql); in sqliteTraceCallback()
105 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); in sqliteProfileCallback() local
106 ALOG(LOG_VERBOSE, SQLITE_PROFILE_TAG, "%s: \"%s\" took %0.3f ms\n", connection->label.c_str(), in sqliteProfileCallback()
112 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); in sqliteProgressHandlerCallback() local
113 return connection->canceled; in sqliteProgressHandlerCallback()
178 SQLiteConnection* connection = new SQLiteConnection(db, openFlags, path, label); in nativeOpen() local
182 sqlite3_trace(db, &sqliteTraceCallback, connection); in nativeOpen()
185 sqlite3_profile(db, &sqliteProfileCallback, connection); in nativeOpen()
189 return reinterpret_cast<jlong>(connection); in nativeOpen()
[all …]
/frameworks/base/core/java/android/hardware/usb/
DUsbRequest.java98 public boolean initialize(UsbDeviceConnection connection, UsbEndpoint endpoint) { in initialize() argument
100 mConnection = Objects.requireNonNull(connection, "connection"); in initialize()
102 boolean wasInitialized = native_init(connection, endpoint.getAddress(), in initialize()
196 UsbDeviceConnection connection = mConnection; in queue() local
197 if (connection == null) { in queue()
204 return connection.queueRequest(this, buffer, length); in queue()
212 UsbDeviceConnection connection = mConnection; in queueIfConnectionOpen() local
213 if (connection == null || !connection.isOpen()) { in queueIfConnectionOpen()
221 if (connection.getContext().getApplicationInfo().targetSdkVersion < Build.VERSION_CODES.P in queueIfConnectionOpen()
270 UsbDeviceConnection connection = mConnection; in queue() local
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/transport/
DTransportConnectionTest.java157 ServiceConnection connection = verifyBindServiceAsUserAndCaptureServiceConnection(mContext); in testConnectAsync_callsListenerWhenConnected() local
159 connection.onServiceConnected(mTransportComponent, mTransportBinder); in testConnectAsync_callsListenerWhenConnected()
170 ServiceConnection connection = verifyBindServiceAsUserAndCaptureServiceConnection(mContext); in testConnectAsync_whenPendingConnection_callsAllListenersWhenConnected() local
174 connection.onServiceConnected(mTransportComponent, mTransportBinder); in testConnectAsync_whenPendingConnection_callsAllListenersWhenConnected()
187 ServiceConnection connection = verifyBindServiceAsUserAndCaptureServiceConnection(mContext); in testConnectAsync_whenAlreadyConnected_callsListener() local
188 connection.onServiceConnected(mTransportComponent, mTransportBinder); in testConnectAsync_whenAlreadyConnected_callsListener()
225 ServiceConnection connection = verifyBindServiceAsUserAndCaptureServiceConnection(mContext); in testConnectAsync_whenFrameworkDoesNotBind_releasesConnection() local
226 verify(mContext).unbindService(eq(connection)); in testConnectAsync_whenFrameworkDoesNotBind_releasesConnection()
232 ServiceConnection connection = verifyBindServiceAsUserAndCaptureServiceConnection(mContext); in testConnectAsync_afterOnServiceDisconnectedBeforeNewConnection_callsListener() local
233 connection.onServiceConnected(mTransportComponent, mTransportBinder); in testConnectAsync_afterOnServiceDisconnectedBeforeNewConnection_callsListener()
[all …]
/frameworks/native/services/sensorservice/
DSensorRecord.cpp24 const sp<const SensorEventConnection>& connection) in SensorRecord() argument
26 mConnections.add(connection); in SensorRecord()
30 const sp<const SensorEventConnection>& connection) in addConnection() argument
32 if (mConnections.indexOf(connection) < 0) { in addConnection()
33 mConnections.add(connection); in addConnection()
40 const wp<const SensorEventConnection>& connection) in removeConnection() argument
42 ssize_t index = mConnections.indexOf(connection); in removeConnection()
49 if (*it == connection) { in removeConnection()
59 const sp<const SensorEventConnection>& connection) { in addPendingFlushConnection() argument
60 mPendingFlushConnections.add(connection); in addPendingFlushConnection()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsExternalCallTracker.java92 public void onPullExternalCall(ImsExternalConnection connection) { in onPullExternalCall() argument
93 Log.d(TAG, "onPullExternalCall: connection = " + connection); in onPullExternalCall()
98 mCallPuller.pullExternalCall(connection.getAddress(), connection.getVideoState(), in onPullExternalCall()
99 connection.getCallId()); in onPullExternalCall()
317 ImsExternalConnection connection = new ImsExternalConnection(mPhone, in createExternalConnection() local
321 connection.setVideoState(videoState); in createExternalConnection()
322 connection.addListener(mExternalConnectionListener); in createExternalConnection()
326 + connection.getCallId() in createExternalConnection()
334 mExternalConnections.put(connection.getCallId(), connection); in createExternalConnection() local
335 mExternalCallPullableState.put(connection.getCallId(), state.isCallPullable()); in createExternalConnection()
[all …]
/frameworks/base/services/tests/PackageManagerServiceTests/unit/src/com/android/server/pm/test/verify/domain/
DDomainVerificationProxyTest.kt139 val connection = mockConnection() in <lambda>() constant
142 manager, collector, connection in <lambda>()
146 verify(connection).isCallerPackage(TEST_CALLING_UID_ACCEPT, TEST_PKG_NAME_ONE) in <lambda>()
147 verifyNoMoreInteractions(connection) in <lambda>()
148 clearInvocations(connection) in <lambda>()
151 verify(connection).isCallerPackage(TEST_CALLING_UID_REJECT, TEST_PKG_NAME_ONE) in <lambda>()
152 verifyNoMoreInteractions(connection) in <lambda>()
157 val connection = mockConnection() in <lambda>() constant
160 manager, collector, connection in <lambda>()
164 verify(connection).isCallerPackage(TEST_CALLING_UID_ACCEPT, TEST_PKG_NAME_TWO) in <lambda>()
[all …]
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityService.java1136 final IAccessibilityServiceConnection connection = in disableSelf() local
1138 if (connection != null) { in disableSelf()
1140 connection.disableSelf(); in disableSelf()
1276 final IAccessibilityServiceConnection connection = in dispatchGesture() local
1278 if (connection == null) { in dispatchGesture()
1295 connection.dispatchGesture(mGestureStatusCallbackSequence, in dispatchGesture()
1494 final IAccessibilityServiceConnection connection = in setMagnificationCallbackEnabled() local
1497 if (connection != null) { in setMagnificationCallbackEnabled()
1499 connection.setMagnificationCallbackEnabled(mDisplayId, enabled); in setMagnificationCallbackEnabled()
1553 final IAccessibilityServiceConnection connection = in getMagnificationConfig() local
[all …]
DTouchInteractionController.java248 final IAccessibilityServiceConnection connection = in setServiceDetectsGestures() local
251 if (connection != null) { in setServiceDetectsGestures()
253 connection.setServiceDetectsGesturesEnabled(mDisplayId, mode); in setServiceDetectsGestures()
269 final IAccessibilityServiceConnection connection = in requestTouchExploration() local
272 if (connection != null) { in requestTouchExploration()
274 connection.requestTouchExploration(mDisplayId); in requestTouchExploration()
298 final IAccessibilityServiceConnection connection = in requestDragging() local
301 if (connection != null) { in requestDragging()
303 connection.requestDragging(mDisplayId, pointerId); in requestDragging()
320 final IAccessibilityServiceConnection connection = in requestDelegating() local
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_tv_TvUinputBridge.cpp368 NativeConnection* connection = NativeConnection::open(name.c_str(), uniqueId.c_str(), in nativeOpen() local
370 return reinterpret_cast<jlong>(connection); in nativeOpen()
377 NativeConnection* connection = NativeConnection::openGamepad(name.c_str(), uniqueId.c_str()); in nativeGamepadOpen() local
378 return reinterpret_cast<jlong>(connection); in nativeGamepadOpen()
382 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); in nativeClose() local
383 delete connection; in nativeClose()
388 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); in nativeSendKey() local
390 if (connection->IsGamepad()) { in nativeSendKey()
396 connection->sendEvent(EV_KEY, code, down ? 1 : 0); in nativeSendKey()
404 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); in nativeSendGamepadKey() local
[all …]
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityInteractionClient.java252 public static void addConnection(int connectionId, IAccessibilityServiceConnection connection, in addConnection() argument
264 sConnectionCache.put(connectionId, connection); in addConnection()
284 public static int addDirectConnection(IAccessibilityInteractionConnection connection, in addDirectConnection() argument
293 new DirectAccessibilityConnection(connection, accessibilityManager); in addDirectConnection()
405 IAccessibilityServiceConnection connection = getConnection(connectionId); in getWindow() local
406 if (connection != null) { in getWindow()
417 logTraceClient(connection, "getWindow cache", in getWindow()
435 window = connection.getWindow(accessibilityWindowId); in getWindow()
440 logTraceClient(connection, "getWindow", "connectionId=" + connectionId in getWindow()
492 IAccessibilityServiceConnection connection = getConnection(connectionId); in getWindowsOnAllDisplays() local
[all …]
/frameworks/native/libs/binder/
DRpcState.h69 [[nodiscard]] status_t readNewSessionResponse(const sp<RpcSession::RpcConnection>& connection,
71 [[nodiscard]] status_t sendConnectionInit(const sp<RpcSession::RpcConnection>& connection,
73 [[nodiscard]] status_t readConnectionInit(const sp<RpcSession::RpcConnection>& connection,
77 sp<IBinder> getRootObject(const sp<RpcSession::RpcConnection>& connection,
79 [[nodiscard]] status_t getMaxThreads(const sp<RpcSession::RpcConnection>& connection,
81 [[nodiscard]] status_t getSessionId(const sp<RpcSession::RpcConnection>& connection,
85 [[nodiscard]] status_t transact(const sp<RpcSession::RpcConnection>& connection,
88 [[nodiscard]] status_t transactAddress(const sp<RpcSession::RpcConnection>& connection,
112 [[nodiscard]] status_t sendDecStrongToTarget(const sp<RpcSession::RpcConnection>& connection,
120 [[nodiscard]] status_t getAndExecuteCommand(const sp<RpcSession::RpcConnection>& connection,
[all …]
DRpcSession.cpp227 ExclusiveConnection connection; in getRootObject() local
229 ConnectionUse::CLIENT, &connection); in getRootObject()
231 return state()->getRootObject(connection.get(), sp<RpcSession>::fromExisting(this)); in getRootObject()
235 ExclusiveConnection connection; in getRemoteMaxThreads() local
237 ConnectionUse::CLIENT, &connection); in getRemoteMaxThreads()
239 return state()->getMaxThreads(connection.get(), sp<RpcSession>::fromExisting(this), maxThreads); in getRemoteMaxThreads()
269 ExclusiveConnection connection; in transact() local
274 &connection); in transact()
276 return state()->transact(connection.get(), binder, code, data, in transact()
286 ExclusiveConnection connection; in sendDecStrongToTarget() local
[all …]
/frameworks/base/media/java/android/service/media/
DMediaBrowserService.java698 ConnectionRecord connection = iter.next(); in notifySessionTokenInitializedOnHandler() local
700 connection.callbacks.onConnect( in notifySessionTokenInitializedOnHandler()
701 connection.root.getRootId(), token, connection.root.getExtras()); in notifySessionTokenInitializedOnHandler()
703 Log.w(TAG, "Connection for " + connection.pkg + " is no longer valid."); in notifySessionTokenInitializedOnHandler()
711 ConnectionRecord connection = mConnections.get(binder); in notifyChildrenChangeOnHandler() local
712 List<Pair<IBinder, Bundle>> callbackList = connection.subscriptions.get(parentId); in notifyChildrenChangeOnHandler()
716 performLoadChildrenOnHandler(parentId, connection, callback.second); in notifyChildrenChangeOnHandler()
728 ConnectionRecord connection = mConnections.get(b); in addSubscriptionOnHandler() local
729 if (connection == null) { in addSubscriptionOnHandler()
735 List<Pair<IBinder, Bundle>> callbackList = connection.subscriptions.get(id); in addSubscriptionOnHandler()
[all …]
/frameworks/base/core/java/android/view/
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()
/frameworks/libs/service_entitlement/java/com/android/libraries/entitlement/http/
DHttpClient.java154 private static HttpResponse getHttpResponse(HttpURLConnection connection) in getHttpResponse() argument
157 responseBuilder.setContentType(getContentType(connection)); in getHttpResponse()
159 int responseCode = connection.getResponseCode(); in getHttpResponse()
160 logPii("HttpClient.response headers: " + connection.getHeaderFields()); in getHttpResponse()
164 connection.getHeaderField(HttpHeaders.RETRY_AFTER), in getHttpResponse()
168 responseBuilder.setResponseMessage(nullToEmpty(connection.getResponseMessage())); in getHttpResponse()
170 nullToEmpty(connection.getHeaderField(HttpHeaders.LOCATION))); in getHttpResponse()
175 responseBuilder.setCookies(getCookies(connection)); in getHttpResponse()
177 String responseBody = readResponse(connection); in getHttpResponse()
187 private static String readResponse(URLConnection connection) throws IOException { in readResponse() argument
[all …]
/frameworks/base/services/core/java/com/android/server/location/gnss/
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 …]
/frameworks/base/media/java/android/media/audio/common/
DAidlConversion.java656 aidl.connection = ""; in api2aidl_NativeType_AudioDeviceDescription()
666 aidl.connection = AudioDeviceDescription.CONNECTION_ANALOG; in api2aidl_NativeType_AudioDeviceDescription()
670 aidl.connection = AudioDeviceDescription.CONNECTION_BT_SCO; in api2aidl_NativeType_AudioDeviceDescription()
674 aidl.connection = AudioDeviceDescription.CONNECTION_BT_SCO; in api2aidl_NativeType_AudioDeviceDescription()
678 aidl.connection = AudioDeviceDescription.CONNECTION_BT_A2DP; in api2aidl_NativeType_AudioDeviceDescription()
682 aidl.connection = AudioDeviceDescription.CONNECTION_BT_A2DP; in api2aidl_NativeType_AudioDeviceDescription()
695 aidl.connection = AudioDeviceDescription.CONNECTION_WIRELESS; in api2aidl_NativeType_AudioDeviceDescription()
702 aidl.connection = AudioDeviceDescription.CONNECTION_BT_LE; in api2aidl_NativeType_AudioDeviceDescription()
706 aidl.connection = AudioDeviceDescription.CONNECTION_BT_LE; in api2aidl_NativeType_AudioDeviceDescription()
725 aidl.connection = AudioDeviceDescription.CONNECTION_BT_LE; in api2aidl_NativeType_AudioDeviceDescription()
[all …]

12345678910>>...12