Searched defs:connection (Results 1 - 25 of 34) sorted by relevance

12

/frameworks/support/volley/src/com/android/volley/toolbox/
H A DHurlStack.java86 HttpURLConnection connection = openConnection(parsedUrl, request);
88 connection.addRequestProperty(headerName, map.get(headerName));
90 handlePost(connection, request);
93 int responseCode = connection.getResponseCode();
96 // Signal to the caller that something was wrong with the connection.
100 connection.getResponseCode(), connection.getResponseMessage());
102 response.setEntity(entityFromConnection(connection));
103 for (Entry<String, List<String>> header : connection.getHeaderFields().entrySet()) {
114 * @param connection
117 entityFromConnection(HttpURLConnection connection) argument
149 handlePost(HttpURLConnection connection, Request<?> request) argument
[all...]
/frameworks/base/core/java/android/net/http/
H A DCertificateChainValidator.java70 * @param sslSocket The secure connection socket
75 HttpsConnection connection, SSLSocket sslSocket, String domain)
91 // update the SSL certificate associated with the connection
92 if (connection != null) {
94 connection.setCertificate(
74 doHandshakeAndValidateServerCertificates( HttpsConnection connection, SSLSocket sslSocket, String domain) argument
H A DHttpResponseCache.java114 * connection.addRequestProperty("Cache-Control", "no-cache");
118 * connection.addRequestProperty("Cache-Control", "max-age=0");
128 * connection.addRequestProperty("Cache-Control", "only-if-cached");
129 * InputStream cached = connection.getInputStream();
139 * connection.addRequestProperty("Cache-Control", "max-stale=" + maxStale);
277 @Override public void update(CacheResponse conditionalCacheHit, HttpURLConnection connection) { argument
278 delegate.update(conditionalCacheHit, connection);
H A DIdleCache.java63 * Caches connection, if there is room.
64 * @return true if connection cached
67 HttpHost host, Connection connection) {
81 entry.mConnection = connection;
66 cacheConnection( HttpHost host, Connection connection) argument
H A DRequest.java76 // This will be used to set the Range field if we retry a connection. This
156 * @param connection Request served by this connection
158 void setConnection(Connection connection) { argument
159 mConnection = connection;
363 * call. Does not close connection--use close() below for that.
512 HttpsConnection connection = (HttpsConnection)(mConnection);
513 if (connection != null) {
514 connection.restartConnection(proceed);
H A DRequestQueue.java64 /* default simultaneous connection count */
68 * This class maintains active connection threads
151 Connection connection = mThreads[i].mConnection;
152 if (connection != null) connection.setCanPersist(false);
164 Connection connection = ct.mConnection;
165 if (connection != null && connection.mHost.equals(host)) {
183 public boolean recycleConnection(Connection connection) { argument
184 return mIdleCache.cacheConnection(connection
544 recycleConnection(Connection connection) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/view/accessibility/
H A DAccessibilityManager.java130 IAccessibilityInteractionConnection connection) {
129 addAccessibilityInteractionConnection(IWindow windowToken, IAccessibilityInteractionConnection connection) argument
/frameworks/native/libs/gui/
H A DSensorEventQueue.cpp37 SensorEventQueue::SensorEventQueue(const sp<ISensorEventConnection>& connection) argument
38 : mSensorEventConnection(connection)
H A DSensorManager.cpp136 sp<ISensorEventConnection> connection = local
138 if (connection == NULL) {
140 ALOGE("createEventQueue: connection is NULL. SensorService died.");
143 queue = new SensorEventQueue(connection);
H A DSurfaceComposerClient.cpp422 sp<IBinder> SurfaceComposerClient::connection() const { function in class:android::SurfaceComposerClient
/frameworks/av/media/libstagefright/rtsp/
H A DARTPSession.cpp52 AString connection; local
53 if (!mDesc->findAttribute(i, "c=", &connection)) {
54 // No per-stream connection information, try global fallback.
55 if (!mDesc->findAttribute(0, "c=", &connection)) {
56 ALOGE("Unable to find connection attribute.");
60 if (!(connection == "IN IP4 127.0.0.1")) {
/frameworks/base/core/java/android/hardware/usb/
H A DUsbRequest.java61 public boolean initialize(UsbDeviceConnection connection, UsbEndpoint endpoint) { argument
63 return native_init(connection, endpoint.getAddress(), endpoint.getAttributes(),
177 private native boolean native_init(UsbDeviceConnection connection, int ep_address, argument
/frameworks/base/core/jni/
H A Dandroid_hardware_UsbDeviceConnection.cpp36 struct usb_device* get_device_from_object(JNIEnv* env, jobject connection) argument
38 return (struct usb_device*)env->GetIntField(connection, field_context);
H A Dandroid_database_SQLiteConnection.cpp45 * If another connection (possibly in another process) has the database locked for
50 * have a single open connection at a time unless they are using WAL. When using
51 * WAL, a timeout could occur if one connection is busy performing an auto-checkpoint
92 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); local
94 connection->label.string(), sql);
99 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); local
101 connection->label.string(), sql, tm * 0.000001f);
106 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); local
107 return connection->canceled;
161 SQLiteConnection* connection local
176 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
247 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
271 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
284 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
315 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
327 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
335 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
343 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
351 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
367 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
378 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
389 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
400 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
415 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
429 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
441 executeNonQuery(JNIEnv* env, SQLiteConnection* connection, sqlite3_stmt* statement) argument
454 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
462 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
471 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
479 executeOneRowQuery(JNIEnv* env, SQLiteConnection* connection, sqlite3_stmt* statement) argument
489 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
501 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
551 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
669 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
763 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
772 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
778 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local
[all...]
/frameworks/base/core/java/android/accessibilityservice/
H A DAccessibilityService.java437 IAccessibilityServiceConnection connection =
439 if (connection != null) {
441 return connection.performGlobalAction(action);
460 IAccessibilityServiceConnection connection =
462 if (connection != null) {
464 return connection.getServiceInfo();
491 IAccessibilityServiceConnection connection =
493 if (mInfo != null && connection != null) {
495 connection.setServiceInfo(mInfo);
562 public void setConnection(IAccessibilityServiceConnection connection, in argument
[all...]
/frameworks/base/core/java/android/appwidget/
H A DAppWidgetManager.java752 * @param connection The callback interface to be notified when a connection is made or lost.
756 public void bindRemoteViewsService(int appWidgetId, Intent intent, IBinder connection, argument
759 sService.bindRemoteViewsService(appWidgetId, intent, connection,
/frameworks/base/core/java/android/view/accessibility/
H A DAccessibilityManager.java419 * Adds an accessibility interaction connection interface for a given window.
420 * @param windowToken The window token to which a connection is added.
421 * @param connection The connection.
426 IAccessibilityInteractionConnection connection) {
428 return mService.addAccessibilityInteractionConnection(windowToken, connection, mUserId);
430 Log.e(LOG_TAG, "Error while adding an accessibility interaction connection. ", re);
436 * Removed an accessibility interaction connection interface for a given window.
437 * @param windowToken The window token to which a connection is removed.
445 Log.e(LOG_TAG, "Error while removing an accessibility interaction connection
425 addAccessibilityInteractionConnection(IWindow windowToken, IAccessibilityInteractionConnection connection) argument
[all...]
H A DAccessibilityInteractionClient.java107 // The connection cache is shared between all interrogating threads.
111 // The connection cache is shared between all interrogating threads since
163 * @param connectionId The id of a connection for interacting with the system.
175 * @param connectionId The id of a connection for interacting with the system.
189 IAccessibilityServiceConnection connection = getConnection(connectionId);
190 if (connection != null) {
197 final float windowScale = connection.findAccessibilityNodeInfoByAccessibilityId(
211 Log.w(LOG_TAG, "No connection for connection id: " + connectionId);
228 * @param connectionId The id of a connection fo
693 addConnection(int connectionId, IAccessibilityServiceConnection connection) argument
[all...]
/frameworks/base/media/java/android/mtp/
H A DMtpDevice.java28 * device and objects stored on it, as well as open the connection and transfer data.
52 * The connection will be closed when you call {@link #close()}
53 * The connection will also be closed if this method fails.
55 * @param connection an open {@link android.hardware.usb.UsbDeviceConnection} for the device
58 public boolean open(UsbDeviceConnection connection) { argument
59 boolean result = native_open(mDevice.getDeviceName(), connection.getFileDescriptor());
61 connection.close();
/frameworks/base/services/java/com/android/server/
H A DAppWidgetService.java199 public void bindRemoteViewsService(int appWidgetId, Intent intent, IBinder connection, argument
207 appWidgetId, intent, connection);
H A DTextServicesManagerService.java474 final InternalServiceConnection connection = new InternalServiceConnection(
481 if (!bindCurrentSpellCheckerService(serviceIntent, connection, Context.BIND_AUTO_CREATE)) {
486 connection, tsListener, locale, scListener, uid, bundle);
715 public SpellCheckerBindGroup(InternalServiceConnection connection, argument
718 mInternalConnection = connection;
H A DWallpaperManagerService.java193 WallpaperConnection connection; field in class:WallpaperManagerService.WallpaperData
230 if (mWallpaper.connection == this) {
248 if (mWallpaper.connection == this) {
286 if (mWallpaper.connection == this) {
647 if (wallpaper.connection != null) {
648 if (wallpaper.connection.mEngine != null) {
650 wallpaper.connection.mEngine.setDesiredSize(
711 if (wallpaper.connection != null) {
712 return wallpaper.connection.mInfo;
789 if (wallpaper.connection !
[all...]
/frameworks/native/services/surfaceflinger/
H A DEventThread.cpp61 const sp<EventThread::Connection>& connection) {
63 mDisplayEventConnections.add(connection);
69 const wp<EventThread::Connection>& connection) {
71 mDisplayEventConnections.remove(connection);
75 const sp<EventThread::Connection>& connection) {
79 if (connection->count != new_count) {
80 connection->count = new_count;
87 const sp<EventThread::Connection>& connection) {
89 if (connection->count < 0) {
90 connection
60 registerDisplayEventConnection( const sp<EventThread::Connection>& connection) argument
68 removeDisplayEventConnection( const wp<EventThread::Connection>& connection) argument
74 setVsyncRate(uint32_t count, const sp<EventThread::Connection>& connection) argument
86 requestNextVsync( const sp<EventThread::Connection>& connection) argument
333 sp<Connection> connection = local
[all...]
/frameworks/native/services/sensorservice/
H A DSensorService.cpp306 sp<SensorEventConnection> connection(
308 if (connection != 0) {
309 connection->sendEvents(buffer, count, scratch);
395 const wp<SensorEventConnection> connection(c);
411 "removing connection %p for sensor[%d].handle=0x%08x",
414 if (rec && rec->removeConnection(connection)) {
415 ALOGD_IF(DEBUG_CONNECTIONS, "... and it was the last connection");
424 mActiveConnections.remove(connection);
428 status_t SensorService::enable(const sp<SensorEventConnection>& connection, argument
436 status_t err = sensor ? sensor->activate(connection
478 disable(const sp<SensorEventConnection>& connection, int handle) argument
507 setEventRate(const sp<SensorEventConnection>& connection, int handle, nsecs_t ns) argument
533 SensorRecord( const sp<SensorEventConnection>& connection) argument
539 addConnection( const sp<SensorEventConnection>& connection) argument
549 removeConnection( const wp<SensorEventConnection>& connection) argument
[all...]
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteConnectionPool.java39 * At any given time, a connection is either owned by the pool, or it has been
41 * finished with the connection it is using, it must return the connection
47 * that the connection pool can detect when connections have been improperly
50 * The connection pool is thread-safe (but the connections themselves are not).
76 // and logging a message about the connection pool being busy.
96 // Describes what should happen to an acquired connection when it is returned to the pool.
98 // The connection should be returned to the pool as usual.
101 // The connection must be reconfigured before being returned.
104 // The connection mus
363 releaseConnection(SQLiteConnection connection) argument
392 recycleConnectionLocked(SQLiteConnection connection, AcquiredConnectionStatus status) argument
421 shouldYieldConnection(SQLiteConnection connection, int connectionFlags) argument
526 closeConnectionAndLogExceptionsLocked(SQLiteConnection connection) argument
906 finishAcquireConnectionLocked(SQLiteConnection connection, int connectionFlags) argument
[all...]

Completed in 4949 milliseconds

12