/frameworks/volley/src/main/java/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 234 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/media/java/android/service/media/ |
H A D | MediaBrowserService.java | 91 * All the info about a connection. 181 final ConnectionRecord connection = new ConnectionRecord(); 182 connection.pkg = pkg; 183 connection.rootHints = rootHints; 184 connection.callbacks = callbacks; 186 connection.root = MediaBrowserService.this.onGetRoot(pkg, uid, rootHints); 189 if (connection.root == null) { 200 mConnections.put(b, connection); 202 callbacks.onConnect(connection.root.getRootId(), 203 mSession, connection 454 addSubscription(String id, ConnectionRecord connection) argument 467 performLoadChildren(final String parentId, final ConnectionRecord connection) argument [all...] |
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
H A D | URLFetcher.java | 53 * Retry {@code retry} times if the connection failed or timed out for any reason. 97 HttpURLConnection connection = null; 99 connection = (HttpURLConnection) url.openConnection(); 100 connection.setInstanceFollowRedirects(true); 101 connection.setConnectTimeout(connectionTimeoutMillis); 102 connection.setReadTimeout(connectionTimeoutMillis); 103 connection.setUseCaches(true); 104 connection.setInstanceFollowRedirects(false); 105 connection.addRequestProperty("Cache-Control", "max-stale=60"); 107 if (connection [all...] |
/frameworks/base/telecomm/java/android/telecom/ |
H A D | RemoteConnection.java | 40 * A connection provided to a {@link ConnectionService} by another {@code ConnectionService} 56 * @param connection The {@code RemoteConnection} invoking this method. 59 public void onStateChanged(RemoteConnection connection, int state) {} argument 64 * @param connection The {@code RemoteConnection} invoking this method. 66 * connection. 69 RemoteConnection connection, 76 * @param connection The {@code RemoteConnection} invoking this method. 79 public void onRingbackRequested(RemoteConnection connection, boolean ringback) {} argument 85 * @param connection The {@code RemoteConnection} invoking this method. 89 RemoteConnection connection, 68 onDisconnected( RemoteConnection connection, DisconnectCause disconnectCause) argument 88 onConnectionCapabilitiesChanged( RemoteConnection connection, int connectionCapabilities) argument 101 onPostDialWait(RemoteConnection connection, String remainingPostDialSequence) argument 110 onPostDialChar(RemoteConnection connection, char nextChar) argument 119 onVoipAudioChanged(RemoteConnection connection, boolean isVoip) argument 128 onStatusHintsChanged(RemoteConnection connection, StatusHints statusHints) argument 139 onAddressChanged(RemoteConnection connection, Uri address, int presentation) argument 150 onCallerDisplayNameChanged( RemoteConnection connection, String callerDisplayName, int presentation) argument 160 onVideoStateChanged(RemoteConnection connection, int videoState) argument 168 onDestroyed(RemoteConnection connection) argument 178 onConferenceableConnectionsChanged( RemoteConnection connection, List<RemoteConnection> conferenceableConnections) argument 190 onVideoProviderChanged( RemoteConnection connection, VideoProvider videoProvider) argument 201 onConferenceChanged( RemoteConnection connection, RemoteConference conference) argument 211 onExtrasChanged(RemoteConnection connection, @Nullable Bundle extras) argument 607 RemoteConnection(String callId, IConnectionService connectionService, ParcelableConnection connection) argument [all...] |
H A D | ConnectionService.java | 386 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); 966 addExistingConnection(PhoneAccountHandle phoneAccountHandle, Connection connection) argument 1103 onRemoteExistingConnectionAdded(RemoteConnection connection) argument 1136 addExistingConnectionInternal(Connection connection) argument 1142 addConnection(String callId, Connection connection) argument 1150 removeConnection(Connection connection) argument [all...] |
H A D | RemoteConference.java | 71 * @param connection The {@link RemoteConnection} being added. 73 public void onConnectionAdded(RemoteConference conference, RemoteConnection connection) {} argument 79 * @param connection The {@link RemoteConnection} being removed. 81 public void onConnectionRemoved(RemoteConference conference, RemoteConnection connection) {} argument 151 for (RemoteConnection connection : mChildConnections) { 152 connection.setConference(null); 193 void addConnection(final RemoteConnection connection) { argument 194 if (!mChildConnections.contains(connection)) { 195 mChildConnections.add(connection); 196 connection 211 removeConnection(final RemoteConnection connection) argument 350 separate(RemoteConnection connection) argument [all...] |
H A D | Conference.java | 38 * Used to indicate that the conference connection time is not specified. If not specified, 47 public void onConnectionAdded(Conference conference, Connection connection) {} argument 48 public void onConnectionRemoved(Conference conference, Connection connection) {} argument 220 * @param connection The connection to separate. 222 public void onSeparate(Connection connection) {} argument 227 * @param connection The {@code Connection} to merge. 229 public void onMerge(Connection connection) {} argument 284 * Notifies this conference that a connection has been added to it. 286 * @param connection Th 288 onConnectionAdded(Connection connection) argument 354 addConnection(Connection connection) argument 374 removeConnection(Connection connection) argument [all...] |
H A D | RemoteConnectionService.java | 39 * Remote connection service which other connection services can use to place calls on their behalf. 58 RemoteConnection connection = 60 if (connection != NULL_CONNECTION && mPendingConnections.contains(connection)) { 61 mPendingConnections.remove(connection); 62 // Unconditionally initialize the connection ... 63 connection.setConnectionCapabilities(parcel.getConnectionCapabilities()); 66 connection.setAddress(parcel.getHandle(), parcel.getHandlePresentation()); 70 connection [all...] |
/frameworks/base/services/core/java/com/android/server/location/ |
H A D | GpsXtraDownloader.java | 107 HttpURLConnection connection = null; 109 connection = (HttpURLConnection) (new URL(url)).openConnection(); 110 connection.setRequestProperty( 113 connection.setRequestProperty( 117 connection.connect(); 118 int statusCode = connection.getResponseCode(); 124 return Streams.readFully(connection.getInputStream()); 128 if (connection != null) { 129 connection.disconnect();
|
/frameworks/base/core/jni/ |
H A D | android_database_SQLiteConnection.cpp | 48 * If another connection (possibly in another process) has the database locked for 53 * have a single open connection at a time unless they are using WAL. When using 54 * WAL, a timeout could occur if one connection is busy performing an auto-checkpoint 95 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); local 97 connection->label.string(), sql); 102 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); local 104 connection->label.string(), sql, tm * 0.000001f); 109 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); local 110 return connection->canceled; 164 SQLiteConnection* connection local 179 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 250 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 274 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 287 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 318 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 366 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 377 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 388 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 399 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 414 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 428 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 440 executeNonQuery(JNIEnv* env, SQLiteConnection* connection, sqlite3_stmt* statement) argument 453 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 461 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 470 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 478 executeOneRowQuery(JNIEnv* env, SQLiteConnection* connection, sqlite3_stmt* statement) argument 488 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 500 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 550 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 668 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 762 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 771 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local 777 SQLiteConnection* connection = reinterpret_cast<SQLiteConnection*>(connectionPtr); local [all...] |
/frameworks/native/services/surfaceflinger/ |
H A D | EventThread.cpp | 101 const sp<EventThread::Connection>& connection) { 103 mDisplayEventConnections.add(connection); 109 const wp<EventThread::Connection>& connection) { 111 mDisplayEventConnections.remove(connection); 115 const sp<EventThread::Connection>& connection) { 119 if (connection->count != new_count) { 120 connection->count = new_count; 127 const sp<EventThread::Connection>& connection) { 129 if (connection->count < 0) { 130 connection 100 registerDisplayEventConnection( const sp<EventThread::Connection>& connection) argument 108 removeDisplayEventConnection( const wp<EventThread::Connection>& connection) argument 114 setVsyncRate(uint32_t count, const sp<EventThread::Connection>& connection) argument 126 requestNextVsync( const sp<EventThread::Connection>& connection) argument 373 sp<Connection> connection = local [all...] |
/frameworks/base/core/java/android/service/wallpaper/ |
H A D | IWallpaperService.aidl | 26 void attach(IWallpaperConnection connection,
|
/frameworks/base/core/java/android/accessibilityservice/ |
H A D | AccessibilityService.java | 530 IAccessibilityServiceConnection connection = 532 if (connection != null) { 534 return connection.performGlobalAction(action); 578 IAccessibilityServiceConnection connection = 580 if (connection != null) { 582 return connection.getServiceInfo(); 609 IAccessibilityServiceConnection connection = 611 if (mInfo != null && connection != null) { 613 connection.setServiceInfo(mInfo); 711 public void init(IAccessibilityServiceConnection connection, in argument [all...] |
H A D | IAccessibilityServiceClient.aidl | 31 void init(in IAccessibilityServiceConnection connection, int connectionId, IBinder windowToken);
|
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/ |
H A D | ProxyServer.java | 52 private static final String HEADER_CONNECTION = "connection"; 53 private static final String HEADER_PROXY_CONNECTION = "proxy-connection"; 64 private Socket connection; field in class:ProxyServer.ProxyConnection 66 private ProxyConnection(Socket connection) { argument 67 this.connection = connection; 73 String requestLine = getLine(connection.getInputStream()); 76 connection.close(); 97 connection.close(); 111 connection [all...] |
/frameworks/support/v7/mediarouter/src/android/support/v7/media/ |
H A D | RegisteredMediaRouteProvider.java | 42 * Maintains a connection to a particular media route provider service. 197 Connection connection = new Connection(messenger); 198 if (connection.register()) { 199 mActiveConnection = connection; 219 private void onConnectionReady(Connection connection) { argument 220 if (mActiveConnection == connection) { 231 private void onConnectionDied(Connection connection) { argument 232 if (mActiveConnection == connection) { 234 Log.d(TAG, this + ": Service connection died"); 240 private void onConnectionError(Connection connection, Strin argument 249 onConnectionDescriptorChanged(Connection connection, MediaRouteProviderDescriptor descriptor) argument 308 attachConnection(Connection connection) argument 611 ReceiveHandler(Connection connection) argument 636 processMessage(Connection connection, int what, int requestId, int arg, Object obj, Bundle data) argument [all...] |
/frameworks/base/services/core/java/com/android/server/media/ |
H A D | RemoteDisplayProviderProxy.java | 39 * Maintains a connection to a particular remote display provider service. 230 Connection connection = new Connection(provider); 231 if (connection.register()) { 232 mActiveConnection = connection; 252 private void onConnectionReady(Connection connection) { argument 253 if (mActiveConnection == connection) { 265 private void onConnectionDied(Connection connection) { argument 266 if (mActiveConnection == connection) { 268 Slog.d(TAG, this + ": Service connection died"); 274 private void onDisplayStateChanged(Connection connection, RemoteDisplayStat argument 427 ProviderCallback(Connection connection) argument [all...] |
/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | TvInputHardwareManager.java | 70 * This class does a basic connection management and forwarding calls to TvInputHal which eventually 149 Connection connection = new Connection(info); 150 connection.updateConfigsLocked(configs); 151 mConnections.put(info.getDeviceId(), connection); 171 Connection connection = mConnections.get(deviceId); 172 if (connection == null) { 173 Slog.e(TAG, "onDeviceUnavailable: Cannot find a connection with " + deviceId); 176 connection.resetLocked(null, null, null, null, null); 179 TvInputHardwareInfo info = connection.getHardwareInfoLocked(); 199 Connection connection 251 checkUidChangedLocked( Connection connection, int callingUid, int resolvedUserId) argument [all...] |
/frameworks/base/core/java/android/view/accessibility/ |
H A D | AccessibilityInteractionClient.java | 156 * @param connectionId The id of a connection for interacting with the system. 168 * @param connectionId The id of a connection for interacting with the system. 176 IAccessibilityServiceConnection connection = getConnection(connectionId); 177 if (connection != null) { 190 window = connection.getWindow(accessibilityWindowId); 198 Log.w(LOG_TAG, "No connection for connection id: " + connectionId); 210 * @param connectionId The id of a connection for interacting with the system. 215 IAccessibilityServiceConnection connection = getConnection(connectionId); 216 if (connection ! 760 addConnection(int connectionId, IAccessibilityServiceConnection connection) argument [all...] |
/frameworks/native/services/inputflinger/ |
H A D | InputDispatcher.cpp | 79 // Amount of time to allow touch events to be streamed out to a connection before requiring 603 commandEntry->connection.clear(); 936 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local 937 prepareDispatchCycleLocked(currentTime, connection, eventEntry, &inputTarget); 1030 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local 1031 sp<InputWindowHandle> windowHandle = connection->inputWindowHandle; 1044 if (connection->status == Connection::STATUS_NORMAL) { 1047 synthesizeCancelationEventsForConnectionLocked(connection, options); 1642 // If the window's connection is not registered then keep waiting. 1650 // If the connection i 1651 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local 1773 prepareDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget) argument 1821 enqueueDispatchEntriesLocked(nsecs_t currentTime, const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget) argument 1845 enqueueDispatchEntryLocked( const sp<Connection>& connection, EventEntry* eventEntry, const InputTarget* inputTarget, int32_t dispatchMode) argument 1932 startDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection) argument 2048 finishDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, uint32_t seq, bool handled) argument 2066 abortBrokenDispatchCycleLocked(nsecs_t currentTime, const sp<Connection>& connection, bool notify) argument 2119 sp<Connection> connection = d->mConnectionsByFd.valueAt(connectionIndex); local 2193 synthesizeCancelationEventsForConnectionLocked( const sp<Connection>& connection, const CancelationOptions& options) argument 3254 const sp<Connection>& connection = mConnectionsByFd.valueAt(i); local 3327 sp<Connection> connection = new Connection(inputChannel, inputWindowHandle, monitor); local 3373 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local 3401 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); local 3410 onDispatchCycleFinishedLocked( nsecs_t currentTime, const sp<Connection>& connection, uint32_t seq, bool handled) argument 3420 onDispatchCycleBrokenLocked( nsecs_t currentTime, const sp<Connection>& connection) argument 3475 sp<Connection> connection = commandEntry->connection; local 3528 sp<Connection> connection = commandEntry->connection; local 3574 startDispatchCycleLocked(now(), connection); local 3578 afterKeyEventLockedInterruptible(const sp<Connection>& connection, DispatchEntry* dispatchEntry, KeyEntry* keyEntry, bool handled) argument 3750 afterMotionEventLockedInterruptible(const sp<Connection>& connection, DispatchEntry* dispatchEntry, MotionEntry* motionEntry, bool handled) argument 3780 traceOutboundQueueLengthLocked(const sp<Connection>& connection) argument 3788 traceWaitQueueLengthLocked(const sp<Connection>& connection) argument [all...] |
/frameworks/native/services/sensorservice/ |
H A D | SensorService.h | 165 // this connection. Wake up and non-wake up sensors have separate FIFOs but FIFO may be 182 // set to true or there are no more sensors for this connection, the file descriptor is 184 // connection FD may be added to the Looper. The flags to set are determined by the internal 185 // state of the connection. FDs are added to the looper when wake-up sensors are registered 187 // error and the other end hangs up or when this client unregisters for this connection. 202 // this connection has wake-up sensors associated with it or when write has failed on this 203 // connection and we're storing some events in the cache. 216 // received, the events for the sensor are sent on that *connection*. 258 SensorRecord(const sp<SensorEventConnection>& connection); 259 bool addConnection(const sp<SensorEventConnection>& connection); [all...] |
H A D | SensorService.cpp | 272 // flush complete event is returned, we need to remove the connection from this queue. 402 sp<SensorEventConnection> connection(mActiveConnections[i].promote()); 403 if (connection != 0) { 405 connection->dump(result); 442 void SensorService::cleanupAutoDisabledSensorLocked(const sp<SensorEventConnection>& connection, argument 449 if (connection->hasSensor(handle)) { 451 // If this buffer has an event from a one_shot sensor and this connection is registered 452 // for this particular one_shot sensor, try cleaning up the connection. 455 sensor->autoDisable(connection.get(), handle); 456 cleanupWithoutDisableLocked(connection, handl 830 enable(const sp<SensorEventConnection>& connection, int handle, nsecs_t samplingPeriodNs, nsecs_t maxBatchReportLatencyNs, int reservedFlags, const String16& opPackageName) argument 964 disable(const sp<SensorEventConnection>& connection, int handle) argument 993 cleanupWithoutDisable( const sp<SensorEventConnection>& connection, int handle) argument 999 cleanupWithoutDisableLocked( const sp<SensorEventConnection>& connection, int handle) argument 1022 setEventRate(const sp<SensorEventConnection>& connection, int handle, nsecs_t ns, const String16& opPackageName) argument 1047 flushSensor(const sp<SensorEventConnection>& connection, const String16& opPackageName) argument 1145 sendEventsFromCache(const sp<SensorEventConnection>& connection) argument 1192 SensorRecord( const sp<SensorEventConnection>& connection) argument 1198 addConnection( const sp<SensorEventConnection>& connection) argument 1208 removeConnection( const wp<SensorEventConnection>& connection) argument 1228 addPendingFlushConnection( const sp<SensorEventConnection>& connection) argument [all...] |
/frameworks/base/services/core/jni/ |
H A D | com_android_server_tv_TvInputHal.cpp | 340 Connection& connection = connections.editValueFor(streamId); local 341 if (connection.mSurface == surface) { 345 // Clear the surface in the connection. 346 if (connection.mSurface != NULL) { 347 if (connection.mStreamType == TV_STREAM_TYPE_INDEPENDENT_VIDEO_SOURCE) { 348 if (Surface::isValid(connection.mSurface)) { 349 connection.mSurface->setSidebandStream(NULL); 352 connection.mSurface.clear(); 354 if (connection.mSourceHandle == NULL && connection 411 Connection& connection = connections.editValueFor(streamId); local 544 Connection& connection = connections.editValueFor(streamId); local [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
|