/frameworks/support/volley/src/com/android/volley/toolbox/ |
H A D | HurlStack.java | 86 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/database/sqlite/ |
H A D | SQLiteConnectionPool.java | 39 * 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...] |
/frameworks/base/core/java/android/service/wallpaper/ |
H A D | IWallpaperService.aidl | 25 void attach(IWallpaperConnection connection,
|
/frameworks/native/services/surfaceflinger/ |
H A D | EventThread.cpp | 60 const sp<EventThread::Connection>& connection) { 62 mDisplayEventConnections.add(connection); 68 const wp<EventThread::Connection>& connection) { 70 mDisplayEventConnections.remove(connection); 76 const wp<EventThread::Connection>& connection) { 78 mDisplayEventConnections.remove(connection); 82 const sp<EventThread::Connection>& connection) { 86 if (connection->count != new_count) { 87 connection->count = new_count; 94 const sp<EventThread::Connection>& connection) { 59 registerDisplayEventConnection( const sp<EventThread::Connection>& connection) argument 67 unregisterDisplayEventConnection( const wp<EventThread::Connection>& connection) argument 75 removeDisplayEventConnection( const wp<EventThread::Connection>& connection) argument 81 setVsyncRate(uint32_t count, const sp<EventThread::Connection>& connection) argument 93 requestNextVsync( const sp<EventThread::Connection>& connection) argument 144 sp<Connection> connection = local 194 sp<Connection> connection = local 281 sp<Connection> connection = local [all...] |
H A D | EventThread.h | 69 status_t registerDisplayEventConnection(const sp<Connection>& connection); 70 status_t unregisterDisplayEventConnection(const wp<Connection>& connection); 72 void setVsyncRate(uint32_t count, const sp<Connection>& connection); 73 void requestNextVsync(const sp<Connection>& connection); 89 void removeDisplayEventConnection(const wp<Connection>& connection);
|
/frameworks/base/core/jni/ |
H A D | android_database_SQLiteConnection.cpp | 45 * 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 D | IAccessibilityServiceClient.aidl | 29 void setConnection(in IAccessibilityServiceConnection connection, int connectionId);
|
H A D | AccessibilityService.java | 432 IAccessibilityServiceConnection connection = 434 if (connection != null) { 436 return connection.performGlobalAction(action); 455 IAccessibilityServiceConnection connection = 457 if (connection != null) { 459 return connection.getServiceInfo(); 486 IAccessibilityServiceConnection connection = 488 if (mInfo != null && connection != null) { 490 connection.setServiceInfo(mInfo); 557 public void setConnection(IAccessibilityServiceConnection connection, in argument [all...] |
/frameworks/base/services/sensorservice/ |
H A D | SensorService.cpp | 290 sp<SensorEventConnection> connection( 292 if (connection != 0) { 293 connection->sendEvents(buffer, count, scratch); 373 const wp<SensorEventConnection> connection(c); 389 "removing connection %p for sensor[%d].handle=0x%08x", 392 if (rec && rec->removeConnection(connection)) { 393 ALOGD_IF(DEBUG_CONNECTIONS, "... and it was the last connection"); 402 mActiveConnections.remove(connection); 405 status_t SensorService::enable(const sp<SensorEventConnection>& connection, argument 413 status_t err = sensor ? sensor->activate(connection 451 disable(const sp<SensorEventConnection>& connection, int handle) argument 478 setEventRate(const sp<SensorEventConnection>& connection, int handle, nsecs_t ns) argument 504 SensorRecord( const sp<SensorEventConnection>& connection) argument 510 addConnection( const sp<SensorEventConnection>& connection) argument 520 removeConnection( const wp<SensorEventConnection>& connection) argument [all...] |
H A D | SensorService.h | 99 SensorRecord(const sp<SensorEventConnection>& connection); 100 bool addConnection(const sp<SensorEventConnection>& connection); 101 bool removeConnection(const wp<SensorEventConnection>& connection); 133 void cleanupConnection(SensorEventConnection* connection); 134 status_t enable(const sp<SensorEventConnection>& connection, int handle); 135 status_t disable(const sp<SensorEventConnection>& connection, int handle); 136 status_t setEventRate(const sp<SensorEventConnection>& connection, int handle, nsecs_t ns);
|
/frameworks/base/core/java/android/view/accessibility/ |
H A D | AccessibilityInteractionClient.java | 107 // 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...] |
H A D | IAccessibilityManager.aidl | 48 in IAccessibilityInteractionConnection connection);
|
/frameworks/base/services/input/ |
H A D | InputDispatcher.cpp | 78 // Amount of time to allow touch events to be streamed out to a connection before requiring 568 commandEntry->connection.clear(); 890 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local 891 prepareDispatchCycleLocked(currentTime, connection, eventEntry, &inputTarget); 984 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local 985 sp<InputWindowHandle> windowHandle = connection->inputWindowHandle; 991 if (connection->status == Connection::STATUS_NORMAL) { 994 synthesizeCancelationEventsForConnectionLocked(connection, options); 1633 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local 1634 if (connection 1725 prepareDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget) argument 1773 enqueueDispatchEntriesLocked(nsecs_t currentTime, const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget) argument 1797 enqueueDispatchEntryLocked( const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget, int32_t dispatchMode) argument 1884 startDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection) argument 2000 finishDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, uint32_t seq, bool handled) argument 2018 abortBrokenDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, bool notify) argument 2071 sp<Connection> connection = d->mConnectionsByFd.valueAt(connectionIndex); local 2138 synthesizeCancelationEventsForConnectionLocked( const sp<Connection>& connection, const CancelationOptions& options) argument 3114 const sp<Connection>& connection = mConnectionsByFd.valueAt(i); local 3187 sp<Connection> connection = new Connection(inputChannel, inputWindowHandle, monitor); local 3232 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local 3262 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local 3271 onDispatchCycleFinishedLocked( nsecs_t currentTime, const sp<Connection>& connection, uint32_t seq, bool handled) argument 3281 onDispatchCycleBrokenLocked( nsecs_t currentTime, const sp<Connection>& connection) argument 3335 sp<Connection> connection = commandEntry->connection; local 3387 sp<Connection> connection = commandEntry->connection; local 3433 startDispatchCycleLocked(now(), connection); local 3437 afterKeyEventLockedInterruptible(const sp<Connection>& connection, DispatchEntry* dispatchEntry, KeyEntry* keyEntry, bool handled) argument 3609 afterMotionEventLockedInterruptible(const sp<Connection>& connection, DispatchEntry* dispatchEntry, MotionEntry* motionEntry, bool handled) argument 3639 traceOutboundQueueLengthLocked(const sp<Connection>& connection) argument 3647 traceWaitQueueLengthLocked(const sp<Connection>& connection) argument [all...] |
/frameworks/base/core/java/android/hardware/usb/ |
H A D | UsbRequest.java | 61 public boolean initialize(UsbDeviceConnection connection, UsbEndpoint endpoint) { argument 63 return native_init(connection, endpoint.getAddress(), endpoint.getAttributes(), 173 private native boolean native_init(UsbDeviceConnection connection, int ep_address, argument
|
H A D | UsbManager.java | 267 UsbDeviceConnection connection = new UsbDeviceConnection(device); 268 boolean result = connection.open(deviceName, pfd); 271 return connection;
|
/frameworks/base/media/java/android/mtp/ |
H A D | MtpDevice.java | 28 * 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/native/libs/gui/ |
H A D | SensorManager.cpp | 136 sp<ISensorEventConnection> connection = local 138 if (connection == NULL) { 140 ALOGE("createEventQueue: connection is NULL. SensorService died."); 143 queue = new SensorEventQueue(connection);
|
H A D | ISensorServer.cpp | 93 sp<ISensorEventConnection> connection(createSensorEventConnection()); 94 reply->writeStrongBinder(connection->asBinder());
|
H A D | SensorEventQueue.cpp | 37 SensorEventQueue::SensorEventQueue(const sp<ISensorEventConnection>& connection) argument 38 : mSensorEventConnection(connection)
|
/frameworks/base/tools/layoutlib/bridge/src/android/view/accessibility/ |
H A D | AccessibilityManager.java | 130 IAccessibilityInteractionConnection connection) { 129 addAccessibilityInteractionConnection(IWindow windowToken, IAccessibilityInteractionConnection connection) argument
|
/frameworks/base/core/java/android/net/http/ |
H A D | RequestQueue.java | 64 /* 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...] |
H A D | CertificateChainValidator.java | 70 * @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 D | HttpResponseCache.java | 114 * 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 D | IdleCache.java | 63 * 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
|
/frameworks/base/media/java/android/media/ |
H A D | MediaScannerConnection.java | 75 * when a connection to the MediaScanner service has been established 80 * Called to notify the client when a connection to the 97 * @param context the Context object, required for establishing a connection to 108 * Initiates a connection to the media scanner service. 110 * will be called when the connection is established. 123 * Releases the connection to the media scanner service. 216 * <var>path</var> and <var>mimeType</var> when the connection is 218 * @param context The caller's Context, required for establishing a connection to 233 MediaScannerConnection connection = new MediaScannerConnection(context, client); 234 client.mConnection = connection; [all...] |