Home
last modified time | relevance | path

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

123456789

/frameworks/volley/src/main/java/com/android/volley/toolbox/
DHurlStack.java102 HttpURLConnection connection = openConnection(parsedUrl, request); in performRequest() local
104 connection.addRequestProperty(headerName, map.get(headerName)); in performRequest()
106 setConnectionParametersForRequest(connection, request); in performRequest()
109 int responseCode = connection.getResponseCode(); in performRequest()
116 connection.getResponseCode(), connection.getResponseMessage()); in performRequest()
118 response.setEntity(entityFromConnection(connection)); in performRequest()
119 for (Entry<String, List<String>> header : connection.getHeaderFields().entrySet()) { in performRequest()
133 private static HttpEntity entityFromConnection(HttpURLConnection connection) { in entityFromConnection() argument
137 inputStream = connection.getInputStream(); in entityFromConnection()
139 inputStream = connection.getErrorStream(); in entityFromConnection()
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteConnectionPool.java363 public void releaseConnection(SQLiteConnection connection) { in releaseConnection() argument
365 AcquiredConnectionStatus status = mAcquiredConnections.remove(connection); in releaseConnection()
373 closeConnectionAndLogExceptionsLocked(connection); in releaseConnection()
374 } else if (connection.isPrimaryConnection()) { in releaseConnection()
375 if (recycleConnectionLocked(connection, status)) { in releaseConnection()
377 mAvailablePrimaryConnection = connection; in releaseConnection()
381 closeConnectionAndLogExceptionsLocked(connection); in releaseConnection()
383 if (recycleConnectionLocked(connection, status)) { in releaseConnection()
384 mAvailableNonPrimaryConnections.add(connection); in releaseConnection()
392 private boolean recycleConnectionLocked(SQLiteConnection connection, in recycleConnectionLocked() argument
[all …]
/frameworks/base/telecomm/java/android/telecom/
DRemoteConnection.java59 public void onStateChanged(RemoteConnection connection, int state) {} in onStateChanged() argument
69 RemoteConnection connection, in onDisconnected() argument
79 public void onRingbackRequested(RemoteConnection connection, boolean ringback) {} in onRingbackRequested() argument
89 RemoteConnection connection, in onConnectionCapabilitiesChanged() argument
101 public void onPostDialWait(RemoteConnection connection, String remainingPostDialSequence) {} in onPostDialWait() argument
110 public void onPostDialChar(RemoteConnection connection, char nextChar) {} in onPostDialChar() argument
119 public void onVoipAudioChanged(RemoteConnection connection, boolean isVoip) {} in onVoipAudioChanged() argument
128 public void onStatusHintsChanged(RemoteConnection connection, StatusHints statusHints) {} in onStatusHintsChanged() argument
139 public void onAddressChanged(RemoteConnection connection, Uri address, int presentation) {} in onAddressChanged() argument
151 RemoteConnection connection, String callerDisplayName, int presentation) {} in onCallerDisplayNameChanged() argument
[all …]
DConnectionService.java386 public void onConnectionAdded(Conference conference, Connection connection) {
390 public void onConnectionRemoved(Conference conference, Connection connection) {
554 Connection connection, List<Conferenceable> conferenceables) {
556 mIdByConnection.get(connection),
561 public void onConferenceChanged(Connection connection, Conference conference) {
562 String id = mIdByConnection.get(connection);
573 public void onConferenceMergeFailed(Connection connection) {
574 String id = mIdByConnection.get(connection);
581 public void onExtrasChanged(Connection connection, Bundle extras) {
582 String id = mIdByConnection.get(connection);
[all …]
DConference.java47 public void onConnectionAdded(Conference conference, Connection connection) {} in onConnectionAdded() argument
48 public void onConnectionRemoved(Conference conference, Connection connection) {} in onConnectionRemoved() argument
222 public void onSeparate(Connection connection) {} in onSeparate() argument
229 public void onMerge(Connection connection) {} in onMerge() argument
288 public void onConnectionAdded(Connection connection) {} in onConnectionAdded() argument
354 public final boolean addConnection(Connection connection) { in addConnection() argument
355 Log.d(this, "Connection=%s, connection=", connection); in addConnection()
356 if (connection != null && !mChildConnections.contains(connection)) { in addConnection()
357 if (connection.setConference(this)) { in addConnection()
358 mChildConnections.add(connection); in addConnection()
[all …]
DRemoteConnectionService.java58 RemoteConnection connection =
60 if (connection != NULL_CONNECTION && mPendingConnections.contains(connection)) {
61 mPendingConnections.remove(connection);
63 connection.setConnectionCapabilities(parcel.getConnectionCapabilities());
66 connection.setAddress(parcel.getHandle(), parcel.getHandlePresentation());
70 connection.setCallerDisplayName(
76 connection.setDisconnected(parcel.getDisconnectCause());
78 connection.setState(parcel.getState());
86 connection.setConferenceableConnections(conferenceable);
87 connection.setVideoState(parcel.getVideoState());
[all …]
DRemoteConference.java73 public void onConnectionAdded(RemoteConference conference, RemoteConnection connection) {} in onConnectionAdded() argument
81 public void onConnectionRemoved(RemoteConference conference, RemoteConnection connection) {} in onConnectionRemoved() argument
151 for (RemoteConnection connection : mChildConnections) { in setDestroyed()
152 connection.setConference(null); in setDestroyed()
193 void addConnection(final RemoteConnection connection) { in addConnection() argument
194 if (!mChildConnections.contains(connection)) { in addConnection()
195 mChildConnections.add(connection); in addConnection()
196 connection.setConference(this); in addConnection()
203 callback.onConnectionAdded(conference, connection); in addConnection()
211 void removeConnection(final RemoteConnection connection) { in removeConnection() argument
[all …]
/frameworks/base/core/jni/
Dandroid_database_SQLiteConnection.cpp95 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); in sqliteTraceCallback() local
97 connection->label.string(), sql); in sqliteTraceCallback()
102 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); in sqliteProfileCallback() local
104 connection->label.string(), sql, tm * 0.000001f); in sqliteProfileCallback()
109 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); in sqliteProgressHandlerCallback() local
110 return connection->canceled; in sqliteProgressHandlerCallback()
164 SQLiteConnection* connection = new SQLiteConnection(db, openFlags, path, label); in nativeOpen() local
168 sqlite3_trace(db, &sqliteTraceCallback, connection); in nativeOpen()
171 sqlite3_profile(db, &sqliteProfileCallback, connection); in nativeOpen()
175 return reinterpret_cast<jlong>(connection); in nativeOpen()
[all …]
/frameworks/base/media/java/android/service/media/
DMediaBrowserService.java181 final ConnectionRecord connection = new ConnectionRecord(); in connect()
182 connection.pkg = pkg; in connect()
183 connection.rootHints = rootHints; in connect()
184 connection.callbacks = callbacks; in connect()
186 connection.root = MediaBrowserService.this.onGetRoot(pkg, uid, rootHints); in connect()
189 if (connection.root == null) { in connect()
200 mConnections.put(b, connection); in connect()
202 callbacks.onConnect(connection.root.getRootId(), in connect()
203 mSession, connection.root.getExtras()); in connect()
240 final ConnectionRecord connection = mConnections.get(b); in addSubscription()
[all …]
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DURLFetcher.java97 HttpURLConnection connection = null; in getWebContentFromUrl() local
99 connection = (HttpURLConnection) url.openConnection(); in getWebContentFromUrl()
100 connection.setInstanceFollowRedirects(true); in getWebContentFromUrl()
101 connection.setConnectTimeout(connectionTimeoutMillis); in getWebContentFromUrl()
102 connection.setReadTimeout(connectionTimeoutMillis); in getWebContentFromUrl()
103 connection.setUseCaches(true); in getWebContentFromUrl()
104 connection.setInstanceFollowRedirects(false); in getWebContentFromUrl()
105 connection.addRequestProperty("Cache-Control", "max-stale=60"); in getWebContentFromUrl()
107 if (connection.getResponseCode() != HttpURLConnection.HTTP_OK) { in getWebContentFromUrl()
108 Log.e(TAG, "The responses code is not 200 but " + connection.getResponseCode()); in getWebContentFromUrl()
[all …]
/frameworks/native/services/surfaceflinger/
DEventThread.cpp101 const sp<EventThread::Connection>& connection) { in registerDisplayEventConnection() argument
103 mDisplayEventConnections.add(connection); in registerDisplayEventConnection()
109 const wp<EventThread::Connection>& connection) { in removeDisplayEventConnection() argument
111 mDisplayEventConnections.remove(connection); in removeDisplayEventConnection()
115 const sp<EventThread::Connection>& connection) { in setVsyncRate() argument
119 if (connection->count != new_count) { in setVsyncRate()
120 connection->count = new_count; in setVsyncRate()
127 const sp<EventThread::Connection>& connection) { in requestNextVsync() argument
129 if (connection->count < 0) { in requestNextVsync()
130 connection->count = 0; in requestNextVsync()
[all …]
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
DRegisteredMediaRouteProvider.java197 Connection connection = new Connection(messenger); in onServiceConnected() local
198 if (connection.register()) { in onServiceConnected()
199 mActiveConnection = connection; in onServiceConnected()
219 private void onConnectionReady(Connection connection) { in onConnectionReady() argument
220 if (mActiveConnection == connection) { in onConnectionReady()
231 private void onConnectionDied(Connection connection) { in onConnectionDied() argument
232 if (mActiveConnection == connection) { in onConnectionDied()
240 private void onConnectionError(Connection connection, String error) { in onConnectionError() argument
241 if (mActiveConnection == connection) { in onConnectionError()
249 private void onConnectionDescriptorChanged(Connection connection, in onConnectionDescriptorChanged() argument
[all …]
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityService.java530 IAccessibilityServiceConnection connection = in performGlobalAction() local
532 if (connection != null) { in performGlobalAction()
534 return connection.performGlobalAction(action); in performGlobalAction()
578 IAccessibilityServiceConnection connection = in getServiceInfo() local
580 if (connection != null) { in getServiceInfo()
582 return connection.getServiceInfo(); in getServiceInfo()
609 IAccessibilityServiceConnection connection = in sendServiceInfo() local
611 if (mInfo != null && connection != null) { in sendServiceInfo()
613 connection.setServiceInfo(mInfo); in sendServiceInfo()
711 public void init(IAccessibilityServiceConnection connection, int connectionId,
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_tv_TvInputHal.cpp340 Connection& connection = connections.editValueFor(streamId); in addOrUpdateStream() local
341 if (connection.mSurface == surface) { in addOrUpdateStream()
346 if (connection.mSurface != NULL) { in addOrUpdateStream()
347 if (connection.mStreamType == TV_STREAM_TYPE_INDEPENDENT_VIDEO_SOURCE) { in addOrUpdateStream()
348 if (Surface::isValid(connection.mSurface)) { in addOrUpdateStream()
349 connection.mSurface->setSidebandStream(NULL); in addOrUpdateStream()
352 connection.mSurface.clear(); in addOrUpdateStream()
354 if (connection.mSourceHandle == NULL && connection.mThread == NULL) { in addOrUpdateStream()
374 connection.mStreamType = configs[configIndex].type; in addOrUpdateStream()
378 if (connection.mStreamType == TV_STREAM_TYPE_BUFFER_PRODUCER) { in addOrUpdateStream()
[all …]
/frameworks/base/services/core/java/com/android/server/location/
DGpsXtraDownloader.java107 HttpURLConnection connection = null; in doDownload() local
109 connection = (HttpURLConnection) (new URL(url)).openConnection(); in doDownload()
110 connection.setRequestProperty( in doDownload()
113 connection.setRequestProperty( in doDownload()
117 connection.connect(); in doDownload()
118 int statusCode = connection.getResponseCode(); in doDownload()
124 return Streams.readFully(connection.getInputStream()); in doDownload()
128 if (connection != null) { in doDownload()
129 connection.disconnect(); in doDownload()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityInteractionClient.java176 IAccessibilityServiceConnection connection = getConnection(connectionId); in getWindow() local
177 if (connection != null) { in getWindow()
190 window = connection.getWindow(accessibilityWindowId); in getWindow()
215 IAccessibilityServiceConnection connection = getConnection(connectionId); in getWindows() local
216 if (connection != null) { in getWindows()
228 windows = connection.getWindows(); in getWindows()
273 IAccessibilityServiceConnection connection = getConnection(connectionId); in findAccessibilityNodeInfoByAccessibilityId() local
274 if (connection != null) { in findAccessibilityNodeInfoByAccessibilityId()
290 final boolean success = connection.findAccessibilityNodeInfoByAccessibilityId( in findAccessibilityNodeInfoByAccessibilityId()
334 IAccessibilityServiceConnection connection = getConnection(connectionId); in findAccessibilityNodeInfosByViewId() local
[all …]
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/
DProxyServer.java64 private Socket connection; field in ProxyServer.ProxyConnection
66 private ProxyConnection(Socket connection) { in ProxyConnection() argument
67 this.connection = connection; in ProxyConnection()
73 String requestLine = getLine(connection.getInputStream()); in run()
76 connection.close(); in run()
97 connection.close(); in run()
111 connection.close(); in run()
135 skipToRequestBody(connection); in run()
137 sendLine(connection, HTTP_OK); in run()
140 sendAugmentedRequestToHost(connection, server, in run()
[all …]
/frameworks/native/services/inputflinger/
DInputDispatcher.cpp603 commandEntry->connection.clear(); in runCommandsLockedInterruptible()
936 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); in dispatchEventLocked() local
937 prepareDispatchCycleLocked(currentTime, connection, eventEntry, &inputTarget); in dispatchEventLocked()
1030 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); in resumeAfterTargetsNotReadyTimeoutLocked() local
1031 sp<InputWindowHandle> windowHandle = connection->inputWindowHandle; in resumeAfterTargetsNotReadyTimeoutLocked()
1044 if (connection->status == Connection::STATUS_NORMAL) { in resumeAfterTargetsNotReadyTimeoutLocked()
1047 synthesizeCancelationEventsForConnectionLocked(connection, options); in resumeAfterTargetsNotReadyTimeoutLocked()
1651 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); in checkWindowReadyForMoreInputLocked() local
1652 if (connection->status != Connection::STATUS_NORMAL) { in checkWindowReadyForMoreInputLocked()
1655 connection->getStatusLabel()); in checkWindowReadyForMoreInputLocked()
[all …]
/frameworks/native/services/sensorservice/
DSensorService.cpp402 sp<SensorEventConnection> connection(mActiveConnections[i].promote()); in dump() local
403 if (connection != 0) { in dump()
405 connection->dump(result); in dump()
442 void SensorService::cleanupAutoDisabledSensorLocked(const sp<SensorEventConnection>& connection, in cleanupAutoDisabledSensorLocked() argument
449 if (connection->hasSensor(handle)) { in cleanupAutoDisabledSensorLocked()
455 sensor->autoDisable(connection.get(), handle); in cleanupAutoDisabledSensorLocked()
456 cleanupWithoutDisableLocked(connection, handle); in cleanupAutoDisabledSensorLocked()
788 const wp<SensorEventConnection> connection(c); in cleanupConnection() local
808 if (rec && rec->removeConnection(connection)) { in cleanupConnection()
819 mActiveConnections.remove(connection); in cleanupConnection()
[all …]
DSensorService.h258 SensorRecord(const sp<SensorEventConnection>& connection);
259 bool addConnection(const sp<SensorEventConnection>& connection);
260 bool removeConnection(const wp<SensorEventConnection>& connection);
263 void addPendingFlushConnection(const sp<SensorEventConnection>& connection);
342 const sp<SensorEventConnection>& connection, int handle);
344 const sp<SensorEventConnection>& connection, int handle);
345 void cleanupAutoDisabledSensorLocked(const sp<SensorEventConnection>& connection,
371 void sendEventsFromCache(const sp<SensorEventConnection>& connection);
420 void cleanupConnection(SensorEventConnection* connection);
421 status_t enable(const sp<SensorEventConnection>& connection, int handle,
[all …]
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputHardwareManager.java149 Connection connection = new Connection(info); in onDeviceAvailable() local
150 connection.updateConfigsLocked(configs); in onDeviceAvailable()
151 mConnections.put(info.getDeviceId(), connection); in onDeviceAvailable() local
171 Connection connection = mConnections.get(deviceId); in onDeviceUnavailable() local
172 if (connection == null) { in onDeviceUnavailable()
176 connection.resetLocked(null, null, null, null, null); in onDeviceUnavailable()
179 TvInputHardwareInfo info = connection.getHardwareInfoLocked(); in onDeviceUnavailable()
199 Connection connection = mConnections.get(deviceId); in onStreamConfigurationChanged() local
200 if (connection == null) { in onStreamConfigurationChanged()
205 connection.updateConfigsLocked(configs); in onStreamConfigurationChanged()
[all …]
/frameworks/base/services/core/java/com/android/server/media/
DRemoteDisplayProviderProxy.java230 Connection connection = new Connection(provider); in onServiceConnected() local
231 if (connection.register()) { in onServiceConnected()
232 mActiveConnection = connection; in onServiceConnected()
252 private void onConnectionReady(Connection connection) { in onConnectionReady() argument
253 if (mActiveConnection == connection) { in onConnectionReady()
265 private void onConnectionDied(Connection connection) { in onConnectionDied() argument
266 if (mActiveConnection == connection) { in onConnectionDied()
274 private void onDisplayStateChanged(Connection connection, RemoteDisplayState state) { in onDisplayStateChanged() argument
275 if (mActiveConnection == connection) { in onDisplayStateChanged()
427 public ProviderCallback(Connection connection) { in ProviderCallback() argument
[all …]
/frameworks/base/services/midi/java/com/android/server/midi/
DMidiService.java156 DeviceConnection connection = new DeviceConnection(device, this, callback); in addDeviceConnection() local
157 mDeviceConnections.put(connection.getToken(), connection); in addDeviceConnection() local
158 device.addDeviceConnection(connection); in addDeviceConnection()
163 DeviceConnection connection = mDeviceConnections.remove(token); in removeDeviceConnection() local
164 if (connection != null) { in removeDeviceConnection()
165 connection.getDevice().removeDeviceConnection(connection); in removeDeviceConnection()
173 public void removeDeviceConnection(DeviceConnection connection) { in removeDeviceConnection() argument
174 mDeviceConnections.remove(connection.getToken()); in removeDeviceConnection()
227 for (DeviceConnection connection : mDeviceConnections.values()) { in close()
228 connection.getDevice().removeDeviceConnection(connection); in close()
[all …]
/frameworks/base/core/java/android/app/
DUiAutomation.java170 public UiAutomation(Looper looper, IUiAutomationConnection connection) { in UiAutomation() argument
174 if (connection == null) { in UiAutomation()
177 mUiAutomationConnection = connection; in UiAutomation()
287 final IAccessibilityServiceConnection connection; in performGlobalAction() local
290 connection = AccessibilityInteractionClient.getInstance() in performGlobalAction()
294 if (connection != null) { in performGlobalAction()
296 return connection.performGlobalAction(action); in performGlobalAction()
336 final IAccessibilityServiceConnection connection; in getServiceInfo() local
339 connection = AccessibilityInteractionClient.getInstance() in getServiceInfo()
343 if (connection != null) { in getServiceInfo()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DCarrierServiceBindHelper.java68 CarrierServiceConnection connection;
139 private CarrierServiceConnection connection; field in CarrierServiceBindHelper.AppBinding
159 connection = null; in handleConnectionDown()
203 connection = new CarrierServiceConnection(this); in bind()
210 if (mContext.bindService(carrierService, connection, Context.BIND_AUTO_CREATE)) { in bind()
226 if (connection == null) { in unbind()
236 mContext.unbindService(connection); in unbind()
237 connection = null; in unbind()
242 pw.println(" connection: " + connection); in dump()

123456789