/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | GsmCdmaConnectionTest.java | 36 private GsmCdmaConnection connection; field in class:GsmCdmaConnectionTest 53 connection = null; 59 connection = new GsmCdmaConnection(mPhone, String.format( 62 String formattedDialStr = connection.formatDialString( 68 formattedDialStr = connection.formatDialString("+1 (700).555-41NN,;1234"); 74 connection = new GsmCdmaConnection(mPhone, String.format( 77 assertEquals(GsmCdmaCall.State.IDLE, connection.getState()); 78 assertEquals(Connection.PostDialState.NOT_STARTED, connection.getPostDialState()); 80 assertEquals(0, connection.getDisconnectTime()); 81 assertEquals(0, connection [all...] |
/frameworks/volley/src/main/java/com/android/volley/toolbox/ |
H A D | HurlStack.java | 103 HttpURLConnection connection = openConnection(parsedUrl, request); 105 connection.addRequestProperty(headerName, map.get(headerName)); 107 setConnectionParametersForRequest(connection, request); 110 int responseCode = connection.getResponseCode(); 113 // Signal to the caller that something was wrong with the connection. 117 connection.getResponseCode(), connection.getResponseMessage()); 120 response.setEntity(entityFromConnection(connection)); 122 for (Entry<String, List<String>> header : connection.getHeaderFields().entrySet()) { 147 * @param connection 150 entityFromConnection(HttpURLConnection connection) argument 203 setConnectionParametersForRequest(HttpURLConnection connection, Request<?> request) argument 258 addBodyIfExists(HttpURLConnection connection, Request<?> request) argument [all...] |
/frameworks/native/services/sensorservice/ |
H A D | SensorRecord.cpp | 24 const sp<SensorEventConnection>& connection) 26 mConnections.add(connection); 30 const sp<SensorEventConnection>& connection) 32 if (mConnections.indexOf(connection) < 0) { 33 mConnections.add(connection); 40 const wp<SensorEventConnection>& connection) 42 ssize_t index = mConnections.indexOf(connection); 49 if (it->unsafe_get() == connection.unsafe_get()) { 59 const sp<SensorEventConnection>& connection) { 60 mPendingFlushConnections.add(connection); 23 SensorRecord( const sp<SensorEventConnection>& connection) argument 29 addConnection( const sp<SensorEventConnection>& connection) argument 39 removeConnection( const wp<SensorEventConnection>& connection) argument 58 addPendingFlushConnection( const sp<SensorEventConnection>& connection) argument [all...] |
H A D | SensorRecord.h | 28 SensorRecord(const sp<SensorEventConnection>& connection); 29 bool addConnection(const sp<SensorEventConnection>& connection); 30 bool removeConnection(const wp<SensorEventConnection>& connection); 33 void addPendingFlushConnection(const sp<SensorEventConnection>& connection);
|
H A D | SensorService.h | 72 void cleanupConnection(SensorEventConnection* connection); 74 status_t enable(const sp<SensorEventConnection>& connection, int handle, 78 status_t disable(const sp<SensorEventConnection>& connection, int handle); 80 status_t setEventRate(const sp<SensorEventConnection>& connection, int handle, nsecs_t ns, 83 status_t flushSensor(const sp<SensorEventConnection>& connection, 170 status_t cleanupWithoutDisable(const sp<SensorEventConnection>& connection, int handle); 171 status_t cleanupWithoutDisableLocked(const sp<SensorEventConnection>& connection, int handle); 172 void cleanupAutoDisabledSensorLocked(const sp<SensorEventConnection>& connection, 195 // Send events from the event cache for this particular connection. 196 void sendEventsFromCache(const sp<SensorEventConnection>& connection); [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
H A D | ImsExternalCallTracker.java | 57 public void onPullExternalCall(ImsExternalConnection connection) { argument 58 Log.d(TAG, "onPullExternalCall: connection = " + connection); 59 mCallPuller.pullExternalCall(connection.getAddress(), connection.getVideoState()); 69 * create the connection for the unknown call that we can determine which 150 * Finds an external connection given a call Id. 161 * creates a new instance of {@link ImsExternalConnection} to represent the connection, and 169 ImsExternalConnection connection = new ImsExternalConnection(mPhone, 173 connection 193 updateExistingConnection(ImsExternalConnection connection, ImsExternalCallState state) argument [all...] |
H A D | ImsExternalCall.java | 34 public ImsExternalCall(Phone phone, ImsExternalConnection connection) { argument 36 mConnections.add(connection);
|
/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/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 100 onConnectionPropertiesChanged( RemoteConnection connection, int connectionProperties) argument 113 onPostDialWait(RemoteConnection connection, String remainingPostDialSequence) argument 122 onPostDialChar(RemoteConnection connection, char nextChar) argument 131 onVoipAudioChanged(RemoteConnection connection, boolean isVoip) argument 140 onStatusHintsChanged(RemoteConnection connection, StatusHints statusHints) argument 151 onAddressChanged(RemoteConnection connection, Uri address, int presentation) argument 162 onCallerDisplayNameChanged( RemoteConnection connection, String callerDisplayName, int presentation) argument 172 onVideoStateChanged(RemoteConnection connection, int videoState) argument 180 onDestroyed(RemoteConnection connection) argument 190 onConferenceableConnectionsChanged( RemoteConnection connection, List<RemoteConnection> conferenceableConnections) argument 202 onVideoProviderChanged( RemoteConnection connection, VideoProvider videoProvider) argument 213 onConferenceChanged( RemoteConnection connection, RemoteConference conference) argument 223 onExtrasChanged(RemoteConnection connection, @Nullable Bundle extras) argument 235 onConnectionEvent(RemoteConnection connection, String event, Bundle extras) argument 632 RemoteConnection(String callId, IConnectionService connectionService, ParcelableConnection connection) argument [all...] |
H A D | ConnectionService.java | 467 public void onConnectionAdded(Conference conference, Connection connection) { 471 public void onConnectionRemoved(Conference conference, Connection connection) { 665 Connection connection, List<Conferenceable> conferenceables) { 667 mIdByConnection.get(connection), 672 public void onConferenceChanged(Connection connection, Conference conference) { 673 String id = mIdByConnection.get(connection); 684 public void onConferenceMergeFailed(Connection connection) { 685 String id = mIdByConnection.get(connection); 708 public void onConnectionEvent(Connection connection, String event, Bundle extras) { 709 String id = mIdByConnection.get(connection); 1163 addExistingConnection(PhoneAccountHandle phoneAccountHandle, Connection connection) argument 1311 onRemoteExistingConnectionAdded(RemoteConnection connection) argument 1345 addExistingConnectionInternal(PhoneAccountHandle handle, Connection connection) argument 1360 addConnection(String callId, Connection connection) argument 1369 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()); 64 connection.setConnectionProperties(parcel.getConnectionProperties()); 67 connection [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 165 for (RemoteConnection connection : mChildConnections) { 166 connection.setConference(null); 207 void addConnection(final RemoteConnection connection) { argument 208 if (!mChildConnections.contains(connection)) { 209 mChildConnections.add(connection); 210 connection 225 removeConnection(final RemoteConnection connection) argument 412 separate(RemoteConnection connection) argument [all...] |
H A D | Conference.java | 40 * Used to indicate that the conference connection time is not specified. If not specified, 49 public void onConnectionAdded(Conference conference, Connection connection) {} argument 50 public void onConnectionRemoved(Conference conference, Connection connection) {} argument 266 * @param connection The connection to separate. 268 public void onSeparate(Connection connection) {} argument 273 * @param connection The {@code Connection} to merge. 275 public void onMerge(Connection connection) {} argument 330 * Notifies this conference that a connection has been added to it. 332 * @param connection Th 334 onConnectionAdded(Connection connection) argument 417 addConnection(Connection connection) argument 437 removeConnection(Connection 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/services/core/java/com/android/server/location/ |
H A D | GpsXtraDownloader.java | 109 HttpURLConnection connection = null; 111 connection = (HttpURLConnection) (new URL(url)).openConnection(); 112 connection.setRequestProperty( 115 connection.setRequestProperty( 118 connection.setConnectTimeout(CONNECTION_TIMEOUT_MS); 120 connection.connect(); 121 int statusCode = connection.getResponseCode(); 127 return Streams.readFully(connection.getInputStream()); 131 if (connection != null) { 132 connection [all...] |
/frameworks/base/services/core/jni/ |
H A D | com_android_server_tv_TvUinputBridge.cpp | 193 NativeConnection* connection = NativeConnection::open(name.c_str(), uniqueId.c_str(), local 195 return reinterpret_cast<jlong>(connection); 199 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); local 200 delete connection; 204 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); local 206 connection->sendEvent(EV_MSC, MSC_ANDROID_TIME_SEC, timestamp / 1000L); 207 connection->sendEvent(EV_MSC, MSC_ANDROID_TIME_USEC, (timestamp % 1000L) * 1000L); 212 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); local 214 connection->sendEvent(EV_KEY, code, down ? 1 : 0); 222 NativeConnection* connection local 238 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); local 249 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); local 254 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); local [all...] |
/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/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
H A D | TestUtils.java | 39 fail("Expected connection to " + host + ":" + port + " to fail."); 53 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); 54 connection.setSSLSocketFactory(context.getSocketFactory()); 56 connection.getInputStream(); 66 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); 67 connection.setSSLSocketFactory(context.getSocketFactory()); 68 connection.getInputStream();
|
/frameworks/native/services/surfaceflinger/ |
H A D | EventThread.cpp | 102 const sp<EventThread::Connection>& connection) { 104 mDisplayEventConnections.add(connection); 110 const wp<EventThread::Connection>& connection) { 112 mDisplayEventConnections.remove(connection); 116 const sp<EventThread::Connection>& connection) { 120 if (connection->count != new_count) { 121 connection->count = new_count; 128 const sp<EventThread::Connection>& connection) { 133 if (connection->count < 0) { 134 connection 101 registerDisplayEventConnection( const sp<EventThread::Connection>& connection) argument 109 removeDisplayEventConnection( const wp<EventThread::Connection>& connection) argument 115 setVsyncRate(uint32_t count, const sp<EventThread::Connection>& connection) argument 127 requestNextVsync( const sp<EventThread::Connection>& connection) argument 377 sp<Connection> connection = local [all...] |
/frameworks/base/core/java/android/service/wallpaper/ |
H A D | IWallpaperService.aidl | 26 void attach(IWallpaperConnection connection,
|
/frameworks/base/media/java/android/service/media/ |
H A D | MediaBrowserService.java | 106 * All the info about a connection. 201 final ConnectionRecord connection = new ConnectionRecord(); 202 connection.pkg = pkg; 203 connection.rootHints = rootHints; 204 connection.callbacks = callbacks; 206 connection.root = MediaBrowserService.this.onGetRoot(pkg, uid, rootHints); 209 if (connection.root == null) { 220 mConnections.put(b, connection); 222 callbacks.onConnect(connection.root.getRootId(), 223 mSession, connection 584 addSubscription(String id, ConnectionRecord connection, IBinder token, Bundle options) argument 606 removeSubscription(String id, ConnectionRecord connection, IBinder token) argument 631 performLoadChildren(final String parentId, final ConnectionRecord connection, final Bundle options) argument 695 performLoadItem(String itemId, final ConnectionRecord connection, final ResultReceiver receiver) argument [all...] |
/frameworks/base/services/core/java/com/android/server/tv/ |
H A D | TvRemoteProviderProxy.java | 37 * Maintains a connection to a tv remote provider service. 186 Connection connection = new Connection(provider); 187 if (connection.register()) { 189 mActiveConnection = connection; 212 private void onConnectionReady(Connection connection) { argument 215 if (mActiveConnection == connection) { 222 private void onConnectionDied(Connection connection) { argument 223 if (mActiveConnection == connection) { 224 if (DEBUG) Slog.d(TAG, this + ": Service connection died"); 345 "openInputBridge, Invalid connection o 564 RemoteServiceInputProvider(Connection connection) argument [all...] |
/frameworks/base/core/java/android/accessibilityservice/ |
H A D | AccessibilityService.java | 421 * Dispatches service connection to internal components first, then the 429 // The client gets to handle service connection last, after we've set 566 final IAccessibilityServiceConnection connection = 568 if (connection != null) { 570 connection.disableSelf(); 625 final IAccessibilityServiceConnection connection = 628 if (connection == null) { 644 connection.sendMotionEvents(mGestureStatusCallbackSequence, 794 final IAccessibilityServiceConnection connection = 797 if (connection ! 1521 init(IAccessibilityServiceConnection connection, int connectionId, IBinder windowToken) argument [all...] |
/frameworks/support/v4/java/android/support/v4/media/ |
H A D | MediaBrowserServiceCompat.java | 157 ConnectionRecord connection = mConnections.get(key); 159 connection.callbacks.onConnect(connection.root.getRootId(), token, 160 connection.root.getExtras()); 162 Log.w(TAG, "Connection for " + connection.pkg + " is no longer valid."); 176 ConnectionRecord connection = mConnections.get(binder); 178 connection.subscriptions.get(parentId); 183 performLoadChildren(parentId, connection, callback.second); 233 ConnectionRecord connection = mConnections.get(binder); 235 connection 972 addSubscription(String id, ConnectionRecord connection, IBinder token, Bundle options) argument 994 removeSubscription(String id, ConnectionRecord connection, IBinder token) argument 1019 performLoadChildren(final String parentId, final ConnectionRecord connection, final Bundle options) argument 1081 performLoadItem(String itemId, ConnectionRecord connection, final ResultReceiver receiver) argument [all...] |
/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...] |