Searched refs:connection (Results 1 - 25 of 56) sorted by relevance

123

/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/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...]
/frameworks/base/core/java/android/service/wallpaper/
H A DIWallpaperService.aidl25 void attach(IWallpaperConnection connection,
/frameworks/base/core/jni/
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/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...]
H A DEventThread.h69 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 DIAccessibilityServiceClient.aidl29 void setConnection(in IAccessibilityServiceConnection connection, int connectionId);
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/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...]
H A DSensorService.h102 SensorRecord(const sp<SensorEventConnection>& connection);
103 bool addConnection(const sp<SensorEventConnection>& connection);
104 bool removeConnection(const wp<SensorEventConnection>& connection);
137 void cleanupConnection(SensorEventConnection* connection);
138 status_t enable(const sp<SensorEventConnection>& connection, int handle);
139 status_t disable(const sp<SensorEventConnection>& connection, int handle);
140 status_t setEventRate(const sp<SensorEventConnection>& connection, int handle, nsecs_t ns);
/frameworks/base/core/java/android/view/accessibility/
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...]
H A DIAccessibilityManager.aidl49 in IAccessibilityInteractionConnection connection, int userId);
/frameworks/base/services/input/
H A DInputDispatcher.cpp78 // Amount of time to allow touch events to be streamed out to a connection before requiring
586 commandEntry->connection.clear();
911 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local
912 prepareDispatchCycleLocked(currentTime, connection, eventEntry, &inputTarget);
1005 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local
1006 sp<InputWindowHandle> windowHandle = connection->inputWindowHandle;
1012 if (connection->status == Connection::STATUS_NORMAL) {
1015 synthesizeCancelationEventsForConnectionLocked(connection, options);
1666 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local
1667 if (connection
1768 prepareDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget) argument
1816 enqueueDispatchEntriesLocked(nsecs_t currentTime, const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget) argument
1840 enqueueDispatchEntryLocked( const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget, int32_t dispatchMode) argument
1927 startDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection) argument
2043 finishDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, uint32_t seq, bool handled) argument
2061 abortBrokenDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, bool notify) argument
2114 sp<Connection> connection = d->mConnectionsByFd.valueAt(connectionIndex); local
2181 synthesizeCancelationEventsForConnectionLocked( const sp<Connection>& connection, const CancelationOptions& options) argument
3177 const sp<Connection>& connection = mConnectionsByFd.valueAt(i); local
3250 sp<Connection> connection = new Connection(inputChannel, inputWindowHandle, monitor); local
3296 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local
3324 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local
3333 onDispatchCycleFinishedLocked( nsecs_t currentTime, const sp<Connection>& connection, uint32_t seq, bool handled) argument
3343 onDispatchCycleBrokenLocked( nsecs_t currentTime, const sp<Connection>& connection) argument
3397 sp<Connection> connection = commandEntry->connection; local
3449 sp<Connection> connection = commandEntry->connection; local
3495 startDispatchCycleLocked(now(), connection); local
3499 afterKeyEventLockedInterruptible(const sp<Connection>& connection, DispatchEntry* dispatchEntry, KeyEntry* keyEntry, bool handled) argument
3671 afterMotionEventLockedInterruptible(const sp<Connection>& connection, DispatchEntry* dispatchEntry, MotionEntry* motionEntry, bool handled) argument
3701 traceOutboundQueueLengthLocked(const sp<Connection>& connection) argument
3709 traceWaitQueueLengthLocked(const sp<Connection>& connection) argument
[all...]
/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
H A DUsbManager.java267 UsbDeviceConnection connection = new UsbDeviceConnection(device);
268 boolean result = connection.open(deviceName, pfd);
271 return connection;
/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/native/libs/gui/
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 DISensorServer.cpp93 sp<ISensorEventConnection> connection(createSensorEventConnection());
94 reply->writeStrongBinder(connection->asBinder());
/frameworks/base/tools/layoutlib/bridge/src/android/view/accessibility/
H A DAccessibilityManager.java130 IAccessibilityInteractionConnection connection) {
129 addAccessibilityInteractionConnection(IWindow windowToken, IAccessibilityInteractionConnection connection) argument
/frameworks/base/core/java/android/net/http/
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...]
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
/frameworks/base/services/java/com/android/server/
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/base/media/java/android/media/
H A DMediaScannerConnection.java75 * 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...]

Completed in 464 milliseconds

123