/frameworks/volley/src/com/android/volley/toolbox/ |
H A D | HurlStack.java | 102 HttpURLConnection connection = openConnection(parsedUrl, request); 104 connection.addRequestProperty(headerName, map.get(headerName)); 106 setConnectionParametersForRequest(connection, request); 109 int responseCode = connection.getResponseCode(); 112 // Signal to the caller that something was wrong with the connection. 116 connection.getResponseCode(), connection.getResponseMessage()); 118 response.setEntity(entityFromConnection(connection)); 119 for (Entry<String, List<String>> header : connection.getHeaderFields().entrySet()) { 130 * @param connection 133 entityFromConnection(HttpURLConnection connection) argument 179 setConnectionParametersForRequest(HttpURLConnection connection, Request<?> request) argument 221 addBodyIfExists(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/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/native/services/surfaceflinger/ |
H A D | EventThread.cpp | 61 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...] |
H A D | EventThread.h | 69 status_t registerDisplayEventConnection(const sp<Connection>& connection); 71 void setVsyncRate(uint32_t count, const sp<Connection>& connection); 72 void requestNextVsync(const sp<Connection>& connection); 93 void removeDisplayEventConnection(const wp<Connection>& connection);
|
/frameworks/base/core/java/android/accessibilityservice/ |
H A D | AccessibilityService.java | 470 IAccessibilityServiceConnection connection = 472 if (connection != null) { 474 return connection.performGlobalAction(action); 493 IAccessibilityServiceConnection connection = 495 if (connection != null) { 497 return connection.getServiceInfo(); 524 IAccessibilityServiceConnection connection = 526 if (mInfo != null && connection != null) { 528 connection.setServiceInfo(mInfo); 606 public void setConnection(IAccessibilityServiceConnection connection, in argument [all...] |
H A D | IAccessibilityServiceClient.aidl | 30 void setConnection(in IAccessibilityServiceConnection connection, int connectionId);
|
/frameworks/native/services/sensorservice/ |
H A D | SensorService.cpp | 243 void SensorService::cleanupAutoDisabledSensor(const sp<SensorEventConnection>& connection, argument 250 if (connection->hasSensor(handle)) { 253 sensor->autoDisable(connection.get(), handle); 255 cleanupWithoutDisable(connection, handle); 351 sp<SensorEventConnection> connection( 353 if (connection != 0) { 354 connection->sendEvents(buffer, count, scratch); 356 cleanupAutoDisabledSensor(connection, buffer, count); 458 const wp<SensorEventConnection> connection(c); 474 "removing connection 491 enable(const sp<SensorEventConnection>& connection, int handle) argument 547 disable(const sp<SensorEventConnection>& connection, int handle) argument 562 cleanupWithoutDisable( const sp<SensorEventConnection>& connection, int handle) argument 568 cleanupWithoutDisableLocked( const sp<SensorEventConnection>& connection, int handle) argument 590 setEventRate(const sp<SensorEventConnection>& connection, int handle, nsecs_t ns) argument 616 SensorRecord( const sp<SensorEventConnection>& connection) argument 622 addConnection( const sp<SensorEventConnection>& connection) argument 632 removeConnection( const wp<SensorEventConnection>& connection) argument [all...] |
H A D | SensorService.h | 103 SensorRecord(const sp<SensorEventConnection>& connection); 104 bool addConnection(const sp<SensorEventConnection>& connection); 105 bool removeConnection(const wp<SensorEventConnection>& connection); 119 const sp<SensorEventConnection>& connection, int handle); 121 const sp<SensorEventConnection>& connection, int handle); 122 void cleanupAutoDisabledSensor(const sp<SensorEventConnection>& connection, 145 void cleanupConnection(SensorEventConnection* connection); 146 status_t enable(const sp<SensorEventConnection>& connection, int handle); 147 status_t disable(const sp<SensorEventConnection>& connection, int handle); 148 status_t setEventRate(const sp<SensorEventConnection>& connection, in [all...] |
/frameworks/base/core/java/android/app/ |
H A D | UiAutomation.java | 154 * operations on the provided connection. 157 * @param connection The connection for performing privileged operations. 161 public UiAutomation(Looper looper, IUiAutomationConnection connection) { argument 165 if (connection == null) { 168 mUiAutomationConnection = connection; 278 final IAccessibilityServiceConnection connection; 281 connection = AccessibilityInteractionClient.getInstance() 285 if (connection != null) { 287 return connection [all...] |
/frameworks/support/v7/mediarouter/src/android/support/v7/media/ |
H A D | RegisteredMediaRouteProvider.java | 40 * Maintains a connection to a particular media route provider service. 195 Connection connection = new Connection(messenger); 196 if (connection.register()) { 197 mActiveConnection = connection; 217 private void onConnectionReady(Connection connection) { argument 218 if (mActiveConnection == connection) { 229 private void onConnectionDied(Connection connection) { argument 230 if (mActiveConnection == connection) { 232 Log.d(TAG, this + ": Service connection died"); 238 private void onConnectionError(Connection connection, Strin argument 247 onConnectionDescriptorChanged(Connection connection, MediaRouteProviderDescriptor descriptor) argument 306 attachConnection(Connection connection) argument 602 ReceiveHandler(Connection connection) argument 627 processMessage(Connection connection, int what, int requestId, int arg, Object obj, Bundle data) argument [all...] |
/frameworks/base/core/java/android/view/accessibility/ |
H A D | AccessibilityInteractionClient.java | 104 // The connection cache is shared between all interrogating threads. 108 // The connection cache is shared between all interrogating threads since 160 * @param connectionId The id of a connection for interacting with the system. 172 * @param connectionId The id of a connection for interacting with the system. 186 IAccessibilityServiceConnection connection = getConnection(connectionId); 187 if (connection != null) { 194 final boolean success = connection.findAccessibilityNodeInfoByAccessibilityId( 208 Log.w(LOG_TAG, "No connection for connection id: " + connectionId); 225 * @param connectionId The id of a connection fo 666 addConnection(int connectionId, IAccessibilityServiceConnection connection) argument [all...] |
H A D | IAccessibilityManager.aidl | 49 in IAccessibilityInteractionConnection connection, int userId);
|
/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 588 commandEntry->connection.clear(); 913 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local 914 prepareDispatchCycleLocked(currentTime, connection, eventEntry, &inputTarget); 1007 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local 1008 sp<InputWindowHandle> windowHandle = connection->inputWindowHandle; 1014 if (connection->status == Connection::STATUS_NORMAL) { 1017 synthesizeCancelationEventsForConnectionLocked(connection, options); 1668 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local 1669 if (connection 1770 prepareDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget) argument 1818 enqueueDispatchEntriesLocked(nsecs_t currentTime, const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget) argument 1842 enqueueDispatchEntryLocked( const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget, int32_t dispatchMode) argument 1929 startDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection) argument 2045 finishDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, uint32_t seq, bool handled) argument 2063 abortBrokenDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, bool notify) argument 2116 sp<Connection> connection = d->mConnectionsByFd.valueAt(connectionIndex); local 2183 synthesizeCancelationEventsForConnectionLocked( const sp<Connection>& connection, const CancelationOptions& options) argument 3179 const sp<Connection>& connection = mConnectionsByFd.valueAt(i); local 3252 sp<Connection> connection = new Connection(inputChannel, inputWindowHandle, monitor); local 3298 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local 3326 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local 3335 onDispatchCycleFinishedLocked( nsecs_t currentTime, const sp<Connection>& connection, uint32_t seq, bool handled) argument 3345 onDispatchCycleBrokenLocked( nsecs_t currentTime, const sp<Connection>& connection) argument 3399 sp<Connection> connection = commandEntry->connection; local 3451 sp<Connection> connection = commandEntry->connection; local 3497 startDispatchCycleLocked(now(), connection); local 3501 afterKeyEventLockedInterruptible(const sp<Connection>& connection, DispatchEntry* dispatchEntry, KeyEntry* keyEntry, bool handled) argument 3673 afterMotionEventLockedInterruptible(const sp<Connection>& connection, DispatchEntry* dispatchEntry, MotionEntry* motionEntry, bool handled) argument 3703 traceOutboundQueueLengthLocked(const sp<Connection>& connection) argument 3711 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(), 177 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());
|
/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
|
/frameworks/base/services/java/com/android/server/ |
H A D | WallpaperManagerService.java | 193 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/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...] |