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

12345

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DGsmCdmaConnectionTest.java36 private GsmCdmaConnection connection; field in class:GsmCdmaConnectionTest
53 connection = null;
59 connection = new GsmCdmaConnection(mPhone, String.format(
63 String formattedDialStr = connection.formatDialString(
69 formattedDialStr = connection.formatDialString("+1 (700).555-41NN,;1234");
75 connection = new GsmCdmaConnection(mPhone, String.format(
79 assertEquals(GsmCdmaCall.State.IDLE, connection.getState());
80 assertEquals(Connection.PostDialState.NOT_STARTED, connection.getPostDialState());
82 assertEquals(0, connection.getDisconnectTime());
83 assertEquals(0, connection
[all...]
/frameworks/volley/src/main/java/com/android/volley/toolbox/
H A DHurlStack.java103 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 DSensorRecord.cpp24 const sp<const SensorEventConnection>& connection)
26 mConnections.add(connection);
30 const sp<const SensorEventConnection>& connection)
32 if (mConnections.indexOf(connection) < 0) {
33 mConnections.add(connection);
40 const wp<const SensorEventConnection>& connection)
42 ssize_t index = mConnections.indexOf(connection);
49 if (*it == connection) {
59 const sp<const SensorEventConnection>& connection) {
60 mPendingFlushConnections.add(connection);
23 SensorRecord( const sp<const SensorEventConnection>& connection) argument
29 addConnection( const sp<const SensorEventConnection>& connection) argument
39 removeConnection( const wp<const SensorEventConnection>& connection) argument
58 addPendingFlushConnection( const sp<const SensorEventConnection>& connection) argument
[all...]
H A DSensorRecord.h28 SensorRecord(const sp<const SensorEventConnection>& connection);
29 bool addConnection(const sp<const SensorEventConnection>& connection);
30 bool removeConnection(const wp<const SensorEventConnection>& connection);
33 void addPendingFlushConnection(const sp<const SensorEventConnection>& connection);
H A DSensorService.h72 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/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/telecomm/java/android/telecom/
H A DRemoteConnection.java40 * 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
99 onConnectionPropertiesChanged( RemoteConnection connection, int connectionProperties) argument
112 onPostDialWait(RemoteConnection connection, String remainingPostDialSequence) argument
121 onPostDialChar(RemoteConnection connection, char nextChar) argument
130 onVoipAudioChanged(RemoteConnection connection, boolean isVoip) argument
139 onStatusHintsChanged(RemoteConnection connection, StatusHints statusHints) argument
150 onAddressChanged(RemoteConnection connection, Uri address, int presentation) argument
161 onCallerDisplayNameChanged( RemoteConnection connection, String callerDisplayName, int presentation) argument
171 onVideoStateChanged(RemoteConnection connection, int videoState) argument
179 onDestroyed(RemoteConnection connection) argument
189 onConferenceableConnectionsChanged( RemoteConnection connection, List<RemoteConnection> conferenceableConnections) argument
201 onVideoProviderChanged( RemoteConnection connection, VideoProvider videoProvider) argument
212 onConferenceChanged( RemoteConnection connection, RemoteConference conference) argument
222 onExtrasChanged(RemoteConnection connection, @Nullable Bundle extras) argument
233 onConnectionEvent(RemoteConnection connection, String event, Bundle extras) argument
630 RemoteConnection(String callId, IConnectionService connectionService, ParcelableConnection connection) argument
[all...]
H A DConnectionService.java467 public void onConnectionAdded(Conference conference, Connection connection) {
471 public void onConnectionRemoved(Conference conference, Connection connection) {
668 Connection connection, List<Conferenceable> conferenceables) {
670 mIdByConnection.get(connection),
675 public void onConferenceChanged(Connection connection, Conference conference) {
676 String id = mIdByConnection.get(connection);
687 public void onConferenceMergeFailed(Connection connection) {
688 String id = mIdByConnection.get(connection);
711 public void onConnectionEvent(Connection connection, String event, Bundle extras) {
712 String id = mIdByConnection.get(connection);
1167 addExistingConnection(PhoneAccountHandle phoneAccountHandle, Connection connection) argument
1316 onRemoteExistingConnectionAdded(RemoteConnection connection) argument
1350 addExistingConnectionInternal(PhoneAccountHandle handle, Connection connection) argument
1371 addConnection(String callId, Connection connection) argument
1380 removeConnection(Connection connection) argument
[all...]
H A DRemoteConnectionService.java39 * 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 DRemoteConference.java71 * @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
164 for (RemoteConnection connection : mChildConnections) {
165 connection.setConference(null);
206 void addConnection(final RemoteConnection connection) { argument
207 if (!mChildConnections.contains(connection)) {
208 mChildConnections.add(connection);
209 connection
224 removeConnection(final RemoteConnection connection) argument
414 separate(RemoteConnection connection) argument
[all...]
H A DConference.java41 * Used to indicate that the conference connection time is not specified. If not specified,
50 public void onConnectionAdded(Conference conference, Connection connection) {} argument
51 public void onConnectionRemoved(Conference conference, Connection connection) {} argument
268 * @param connection The connection to separate.
270 public void onSeparate(Connection connection) {} argument
276 * @param connection The {@code Connection} to merge.
278 public void onMerge(Connection connection) {} argument
336 * @param connection The newly added connection
338 onConnectionAdded(Connection connection) argument
420 addConnection(Connection connection) argument
440 removeConnection(Connection connection) argument
[all...]
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
H A DURLFetcher.java53 * 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/jni/
H A Dcom_android_server_tv_TvUinputBridge.cpp193 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/opt/telephony/src/java/com/android/internal/telephony/imsphone/
H A DImsExternalCallTracker.java57 * Notifies that an unknown connection has been added.
58 * @param c The new unknown connection.
85 public void onPullExternalCall(ImsExternalConnection connection) { argument
86 Log.d(TAG, "onPullExternalCall: connection = " + connection);
91 mCallPuller.pullExternalCall(connection.getAddress(), connection.getVideoState(),
92 connection.getCallId());
104 * create the connection for the unknown call that we can determine which
119 * Tracks whether each external connection tracke
344 updateExistingConnection(ImsExternalConnection connection, ImsExternalCallState state) argument
[all...]
H A DImsExternalCall.java34 public ImsExternalCall(Phone phone, ImsExternalConnection connection) { argument
36 mConnections.add(connection);
/frameworks/base/core/jni/
H A Dandroid_database_SQLiteConnection.cpp48 * 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 DTestUtils.java39 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 DEventThread.cpp102 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 DIWallpaperService.aidl26 void attach(IWallpaperConnection connection,
/frameworks/base/media/java/android/service/media/
H A DMediaBrowserService.java106 * 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/location/
H A DGpsXtraDownloader.java114 HttpURLConnection connection = null;
116 connection = (HttpURLConnection) (new URL(url)).openConnection();
117 connection.setRequestProperty(
120 connection.setRequestProperty(
123 connection.setConnectTimeout(CONNECTION_TIMEOUT_MS);
125 connection.connect();
126 int statusCode = connection.getResponseCode();
132 try (InputStream in = connection.getInputStream()) {
148 if (connection != null) {
149 connection
[all...]
/frameworks/base/services/core/java/com/android/server/tv/
H A DTvRemoteProviderProxy.java37 * 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 DAccessibilityService.java422 * Dispatches service connection to internal components first, then the
430 // The client gets to handle service connection last, after we've set
567 final IAccessibilityServiceConnection connection =
569 if (connection != null) {
571 connection.disableSelf();
626 final IAccessibilityServiceConnection connection =
629 if (connection == null) {
645 connection.sendGesture(mGestureStatusCallbackSequence,
795 final IAccessibilityServiceConnection connection =
798 if (connection !
1522 init(IAccessibilityServiceConnection connection, int connectionId, IBinder windowToken) argument
[all...]
/frameworks/support/media-compat/java/android/support/v4/media/
H A DMediaBrowserServiceCompat.java165 ConnectionRecord connection = iter.next();
167 connection.callbacks.onConnect(connection.root.getRootId(), token,
168 connection.root.getExtras());
170 Log.w(TAG, "Connection for " + connection.pkg + " is no longer valid.");
184 ConnectionRecord connection = mConnections.get(binder);
186 connection.subscriptions.get(parentId);
191 performLoadChildren(parentId, connection, callback.second);
241 ConnectionRecord connection = mConnections.get(binder);
243 connection
1003 addSubscription(String id, ConnectionRecord connection, IBinder token, Bundle options) argument
1025 removeSubscription(String id, ConnectionRecord connection, IBinder token) argument
1051 performLoadChildren(final String parentId, final ConnectionRecord connection, final Bundle options) argument
1113 performLoadItem(String itemId, ConnectionRecord connection, final ResultReceiver receiver) argument
[all...]
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/
H A DProxyServer.java52 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...]

Completed in 592 milliseconds

12345