Home
last modified time | relevance | path

Searched refs:connection (Results 1 – 25 of 252) sorted by relevance

1234567891011

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaConnectionTest.java36 private GsmCdmaConnection connection; field in GsmCdmaConnectionTest
53 connection = null; in tearDown()
59 connection = new GsmCdmaConnection(mPhone, String.format( in testFormatDialString()
62 String formattedDialStr = connection.formatDialString( in testFormatDialString()
68 formattedDialStr = connection.formatDialString("+1 (700).555-41NN,;1234"); in testFormatDialString()
74 connection = new GsmCdmaConnection(mPhone, String.format( in testSanityGSM()
77 assertEquals(GsmCdmaCall.State.IDLE, connection.getState()); in testSanityGSM()
78 assertEquals(Connection.PostDialState.NOT_STARTED, connection.getPostDialState()); in testSanityGSM()
80 assertEquals(0, connection.getDisconnectTime()); in testSanityGSM()
81 assertEquals(0, connection.getHoldDurationMillis()); in testSanityGSM()
[all …]
/frameworks/volley/src/main/java/com/android/volley/toolbox/
DHurlStack.java103 HttpURLConnection connection = openConnection(parsedUrl, request); in performRequest() local
105 connection.addRequestProperty(headerName, map.get(headerName)); in performRequest()
107 setConnectionParametersForRequest(connection, request); in performRequest()
110 int responseCode = connection.getResponseCode(); in performRequest()
117 connection.getResponseCode(), connection.getResponseMessage()); in performRequest()
120 response.setEntity(entityFromConnection(connection)); in performRequest()
122 for (Entry<String, List<String>> header : connection.getHeaderFields().entrySet()) { in performRequest()
150 private static HttpEntity entityFromConnection(HttpURLConnection connection) { in entityFromConnection() argument
154 inputStream = connection.getInputStream(); in entityFromConnection()
156 inputStream = connection.getErrorStream(); in entityFromConnection()
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteConnectionPool.java363 public void releaseConnection(SQLiteConnection connection) { in releaseConnection() argument
365 AcquiredConnectionStatus status = mAcquiredConnections.remove(connection); in releaseConnection()
373 closeConnectionAndLogExceptionsLocked(connection); in releaseConnection()
374 } else if (connection.isPrimaryConnection()) { in releaseConnection()
375 if (recycleConnectionLocked(connection, status)) { in releaseConnection()
377 mAvailablePrimaryConnection = connection; in releaseConnection()
381 closeConnectionAndLogExceptionsLocked(connection); in releaseConnection()
383 if (recycleConnectionLocked(connection, status)) { in releaseConnection()
384 mAvailableNonPrimaryConnections.add(connection); in releaseConnection()
392 private boolean recycleConnectionLocked(SQLiteConnection connection, in recycleConnectionLocked() argument
[all …]
/frameworks/base/telecomm/java/android/telecom/
DRemoteConnection.java59 public void onStateChanged(RemoteConnection connection, int state) {} in onStateChanged() argument
69 RemoteConnection connection, in onDisconnected() argument
79 public void onRingbackRequested(RemoteConnection connection, boolean ringback) {} in onRingbackRequested() argument
89 RemoteConnection connection, in onConnectionCapabilitiesChanged() argument
101 RemoteConnection connection, in onConnectionPropertiesChanged() argument
113 public void onPostDialWait(RemoteConnection connection, String remainingPostDialSequence) {} in onPostDialWait() argument
122 public void onPostDialChar(RemoteConnection connection, char nextChar) {} in onPostDialChar() argument
131 public void onVoipAudioChanged(RemoteConnection connection, boolean isVoip) {} in onVoipAudioChanged() argument
140 public void onStatusHintsChanged(RemoteConnection connection, StatusHints statusHints) {} in onStatusHintsChanged() argument
151 public void onAddressChanged(RemoteConnection connection, Uri address, int presentation) {} in onAddressChanged() argument
[all …]
DConnectionService.java467 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);
[all …]
DRemoteConnectionService.java58 RemoteConnection connection =
60 if (connection != NULL_CONNECTION && mPendingConnections.contains(connection)) {
61 mPendingConnections.remove(connection);
63 connection.setConnectionCapabilities(parcel.getConnectionCapabilities());
64 connection.setConnectionProperties(parcel.getConnectionProperties());
67 connection.setAddress(parcel.getHandle(), parcel.getHandlePresentation());
71 connection.setCallerDisplayName(
77 connection.setDisconnected(parcel.getDisconnectCause());
79 connection.setState(parcel.getState());
87 connection.setConferenceableConnections(conferenceable);
[all …]
DConference.java49 public void onConnectionAdded(Conference conference, Connection connection) {} in onConnectionAdded() argument
50 public void onConnectionRemoved(Conference conference, Connection connection) {} in onConnectionRemoved() argument
268 public void onSeparate(Connection connection) {} in onSeparate() argument
275 public void onMerge(Connection connection) {} in onMerge() argument
334 public void onConnectionAdded(Connection connection) {} in onConnectionAdded() argument
417 public final boolean addConnection(Connection connection) { in addConnection() argument
418 Log.d(this, "Connection=%s, connection=", connection); in addConnection()
419 if (connection != null && !mChildConnections.contains(connection)) { in addConnection()
420 if (connection.setConference(this)) { in addConnection()
421 mChildConnections.add(connection); in addConnection()
[all …]
DRemoteConference.java73 public void onConnectionAdded(RemoteConference conference, RemoteConnection connection) {} in onConnectionAdded() argument
81 public void onConnectionRemoved(RemoteConference conference, RemoteConnection connection) {} in onConnectionRemoved() argument
165 for (RemoteConnection connection : mChildConnections) { in setDestroyed()
166 connection.setConference(null); in setDestroyed()
207 void addConnection(final RemoteConnection connection) { in addConnection() argument
208 if (!mChildConnections.contains(connection)) { in addConnection()
209 mChildConnections.add(connection); in addConnection()
210 connection.setConference(this); in addConnection()
217 callback.onConnectionAdded(conference, connection); in addConnection()
225 void removeConnection(final RemoteConnection connection) { in removeConnection() argument
[all …]
/frameworks/base/core/jni/
Dandroid_database_SQLiteConnection.cpp95 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); in sqliteTraceCallback() local
97 connection->label.string(), sql); in sqliteTraceCallback()
102 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); in sqliteProfileCallback() local
104 connection->label.string(), sql, tm * 0.000001f); in sqliteProfileCallback()
109 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); in sqliteProgressHandlerCallback() local
110 return connection->canceled; in sqliteProgressHandlerCallback()
164 SQLiteConnection* connection = new SQLiteConnection(db, openFlags, path, label); in nativeOpen() local
168 sqlite3_trace(db, &sqliteTraceCallback, connection); in nativeOpen()
171 sqlite3_profile(db, &sqliteProfileCallback, connection); in nativeOpen()
175 return reinterpret_cast<jlong>(connection); in nativeOpen()
[all …]
/frameworks/base/media/java/android/service/media/
DMediaBrowserService.java201 final ConnectionRecord connection = new ConnectionRecord(); in connect()
202 connection.pkg = pkg; in connect()
203 connection.rootHints = rootHints; in connect()
204 connection.callbacks = callbacks; in connect()
206 connection.root = MediaBrowserService.this.onGetRoot(pkg, uid, rootHints); in connect()
209 if (connection.root == null) { in connect()
220 mConnections.put(b, connection); in connect()
222 callbacks.onConnect(connection.root.getRootId(), in connect()
223 mSession, connection.root.getExtras()); in connect()
265 final ConnectionRecord connection = mConnections.get(b); in addSubscription()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsExternalCallTracker.java57 public void onPullExternalCall(ImsExternalConnection connection) { in onPullExternalCall() argument
58 Log.d(TAG, "onPullExternalCall: connection = " + connection); in onPullExternalCall()
59 mCallPuller.pullExternalCall(connection.getAddress(), connection.getVideoState()); in onPullExternalCall()
169 ImsExternalConnection connection = new ImsExternalConnection(mPhone, in createExternalConnection() local
173 connection.setVideoState(ImsCallProfile.getVideoStateFromCallType(state.getCallType())); in createExternalConnection()
174 connection.addListener(mExternalConnectionListener); in createExternalConnection()
177 mExternalConnections.put(connection.getCallId(), connection); in createExternalConnection() local
183 mPhone.notifyUnknownConnection(connection); in createExternalConnection()
193 private void updateExistingConnection(ImsExternalConnection connection, in updateExistingConnection() argument
195 Call.State existingState = connection.getState(); in updateExistingConnection()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_tv_TvUinputBridge.cpp193 NativeConnection* connection = NativeConnection::open(name.c_str(), uniqueId.c_str(), in nativeOpen() local
195 return reinterpret_cast<jlong>(connection); in nativeOpen()
199 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); in nativeClose() local
200 delete connection; in nativeClose()
204 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); in nativeSendTimestamp() local
206 connection->sendEvent(EV_MSC, MSC_ANDROID_TIME_SEC, timestamp / 1000L); in nativeSendTimestamp()
207 connection->sendEvent(EV_MSC, MSC_ANDROID_TIME_USEC, (timestamp % 1000L) * 1000L); in nativeSendTimestamp()
212 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); in nativeSendKey() local
214 connection->sendEvent(EV_KEY, code, down ? 1 : 0); in nativeSendKey()
222 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); in nativeSendPointerDown() local
[all …]
Dcom_android_server_tv_TvInputHal.cpp340 Connection& connection = connections.editValueFor(streamId); in addOrUpdateStream() local
341 if (connection.mSurface == surface) { in addOrUpdateStream()
346 if (connection.mSurface != NULL) { in addOrUpdateStream()
347 if (connection.mStreamType == TV_STREAM_TYPE_INDEPENDENT_VIDEO_SOURCE) { in addOrUpdateStream()
348 if (Surface::isValid(connection.mSurface)) { in addOrUpdateStream()
349 connection.mSurface->setSidebandStream(NULL); in addOrUpdateStream()
352 connection.mSurface.clear(); in addOrUpdateStream()
354 if (connection.mSourceHandle == NULL && connection.mThread == NULL) { in addOrUpdateStream()
374 connection.mStreamType = configs[configIndex].type; in addOrUpdateStream()
378 if (connection.mStreamType == TV_STREAM_TYPE_BUFFER_PRODUCER) { in addOrUpdateStream()
[all …]
/frameworks/base/services/core/java/com/android/server/tv/
DTvRemoteProviderProxy.java186 Connection connection = new Connection(provider); in onServiceConnected() local
187 if (connection.register()) { in onServiceConnected()
189 mActiveConnection = connection; in onServiceConnected()
212 private void onConnectionReady(Connection connection) { in onConnectionReady() argument
215 if (mActiveConnection == connection) { in onConnectionReady()
222 private void onConnectionDied(Connection connection) { in onConnectionDied() argument
223 if (mActiveConnection == connection) { in onConnectionDied()
564 public RemoteServiceInputProvider(Connection connection) { in RemoteServiceInputProvider() argument
565 mConnectionRef = new WeakReference<Connection>(connection); in RemoteServiceInputProvider()
576 Connection connection = mConnectionRef.get(); in openInputBridge() local
[all …]
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
DURLFetcher.java97 HttpURLConnection connection = null; in getWebContentFromUrl() local
99 connection = (HttpURLConnection) url.openConnection(); in getWebContentFromUrl()
100 connection.setInstanceFollowRedirects(true); in getWebContentFromUrl()
101 connection.setConnectTimeout(connectionTimeoutMillis); in getWebContentFromUrl()
102 connection.setReadTimeout(connectionTimeoutMillis); in getWebContentFromUrl()
103 connection.setUseCaches(true); in getWebContentFromUrl()
104 connection.setInstanceFollowRedirects(false); in getWebContentFromUrl()
105 connection.addRequestProperty("Cache-Control", "max-stale=60"); in getWebContentFromUrl()
107 if (connection.getResponseCode() != HttpURLConnection.HTTP_OK) { in getWebContentFromUrl()
108 Log.e(TAG, "The responses code is not 200 but " + connection.getResponseCode()); in getWebContentFromUrl()
[all …]
/frameworks/native/services/sensorservice/
DSensorRecord.cpp24 const sp<SensorEventConnection>& connection) in SensorRecord() argument
26 mConnections.add(connection); in SensorRecord()
30 const sp<SensorEventConnection>& connection) in addConnection() argument
32 if (mConnections.indexOf(connection) < 0) { in addConnection()
33 mConnections.add(connection); in addConnection()
40 const wp<SensorEventConnection>& connection) in removeConnection() argument
42 ssize_t index = mConnections.indexOf(connection); in removeConnection()
49 if (it->unsafe_get() == connection.unsafe_get()) { in removeConnection()
59 const sp<SensorEventConnection>& connection) { in addPendingFlushConnection() argument
60 mPendingFlushConnections.add(connection); in addPendingFlushConnection()
DSensorService.cpp417 sp<SensorEventConnection> connection(mActiveConnections[i].promote()); in dump() local
418 if (connection != 0) { in dump()
420 connection->dump(result); in dump()
458 void SensorService::cleanupAutoDisabledSensorLocked(const sp<SensorEventConnection>& connection, in cleanupAutoDisabledSensorLocked() argument
465 if (connection->hasSensor(handle)) { in cleanupAutoDisabledSensorLocked()
471 si->autoDisable(connection.get(), handle); in cleanupAutoDisabledSensorLocked()
472 cleanupWithoutDisableLocked(connection, handle); in cleanupAutoDisabledSensorLocked()
942 const wp<SensorEventConnection> connection(c); in cleanupConnection() local
963 if (rec && rec->removeConnection(connection)) { in cleanupConnection()
974 mActiveConnections.remove(connection); in cleanupConnection()
[all …]
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityService.java566 final IAccessibilityServiceConnection connection = in disableSelf() local
568 if (connection != null) { in disableSelf()
570 connection.disableSelf(); in disableSelf()
625 final IAccessibilityServiceConnection connection = in dispatchGesture() local
628 if (connection == null) { in dispatchGesture()
644 connection.sendMotionEvents(mGestureStatusCallbackSequence, in dispatchGesture()
794 final IAccessibilityServiceConnection connection = in setMagnificationCallbackEnabled() local
797 if (connection != null) { in setMagnificationCallbackEnabled()
799 connection.setMagnificationCallbackEnabled(enabled); in setMagnificationCallbackEnabled()
855 final IAccessibilityServiceConnection connection = in getScale() local
[all …]
/frameworks/native/services/surfaceflinger/
DEventThread.cpp102 const sp<EventThread::Connection>& connection) { in registerDisplayEventConnection() argument
104 mDisplayEventConnections.add(connection); in registerDisplayEventConnection()
110 const wp<EventThread::Connection>& connection) { in removeDisplayEventConnection() argument
112 mDisplayEventConnections.remove(connection); in removeDisplayEventConnection()
116 const sp<EventThread::Connection>& connection) { in setVsyncRate() argument
120 if (connection->count != new_count) { in setVsyncRate()
121 connection->count = new_count; in setVsyncRate()
128 const sp<EventThread::Connection>& connection) { in requestNextVsync() argument
133 if (connection->count < 0) { in requestNextVsync()
134 connection->count = 0; in requestNextVsync()
[all …]
/frameworks/support/v7/mediarouter/src/android/support/v7/media/
DRegisteredMediaRouteProvider.java197 Connection connection = new Connection(messenger); in onServiceConnected() local
198 if (connection.register()) { in onServiceConnected()
199 mActiveConnection = connection; in onServiceConnected()
219 private void onConnectionReady(Connection connection) { in onConnectionReady() argument
220 if (mActiveConnection == connection) { in onConnectionReady()
231 private void onConnectionDied(Connection connection) { in onConnectionDied() argument
232 if (mActiveConnection == connection) { in onConnectionDied()
240 private void onConnectionError(Connection connection, String error) { in onConnectionError() argument
241 if (mActiveConnection == connection) { in onConnectionError()
249 private void onConnectionDescriptorChanged(Connection connection, in onConnectionDescriptorChanged() argument
[all …]
/frameworks/support/v4/java/android/support/v4/media/
DMediaBrowserServiceCompat.java157 ConnectionRecord connection = mConnections.get(key); in setSessionToken()
159 connection.callbacks.onConnect(connection.root.getRootId(), token, in setSessionToken()
160 connection.root.getExtras()); in setSessionToken()
162 Log.w(TAG, "Connection for " + connection.pkg + " is no longer valid."); in setSessionToken()
176 ConnectionRecord connection = mConnections.get(binder); in notifyChildrenChanged()
178 connection.subscriptions.get(parentId); in notifyChildrenChanged()
183 performLoadChildren(parentId, connection, callback.second); in notifyChildrenChanged()
233 ConnectionRecord connection = mConnections.get(binder); in notifyChildrenChanged()
235 connection.subscriptions.get(parentId); in notifyChildrenChanged()
240 performLoadChildren(parentId, connection, callback.second); in notifyChildrenChanged()
[all …]
/frameworks/base/services/core/java/com/android/server/location/
DGpsXtraDownloader.java109 HttpURLConnection connection = null; in doDownload() local
111 connection = (HttpURLConnection) (new URL(url)).openConnection(); in doDownload()
112 connection.setRequestProperty( in doDownload()
115 connection.setRequestProperty( in doDownload()
118 connection.setConnectTimeout(CONNECTION_TIMEOUT_MS); in doDownload()
120 connection.connect(); in doDownload()
121 int statusCode = connection.getResponseCode(); in doDownload()
127 return Streams.readFully(connection.getInputStream()); in doDownload()
131 if (connection != null) { in doDownload()
132 connection.disconnect(); in doDownload()
/frameworks/base/core/java/android/view/accessibility/
DAccessibilityInteractionClient.java176 IAccessibilityServiceConnection connection = getConnection(connectionId); in getWindow() local
177 if (connection != null) { in getWindow()
190 window = connection.getWindow(accessibilityWindowId); in getWindow()
215 IAccessibilityServiceConnection connection = getConnection(connectionId); in getWindows() local
216 if (connection != null) { in getWindows()
228 windows = connection.getWindows(); in getWindows()
269 IAccessibilityServiceConnection connection = getConnection(connectionId); in findAccessibilityNodeInfoByAccessibilityId() local
270 if (connection != null) { in findAccessibilityNodeInfoByAccessibilityId()
286 final boolean success = connection.findAccessibilityNodeInfoByAccessibilityId( in findAccessibilityNodeInfoByAccessibilityId()
330 IAccessibilityServiceConnection connection = getConnection(connectionId); in findAccessibilityNodeInfosByViewId() local
[all …]
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/
DProxyServer.java64 private Socket connection; field in ProxyServer.ProxyConnection
66 private ProxyConnection(Socket connection) { in ProxyConnection() argument
67 this.connection = connection; in ProxyConnection()
73 String requestLine = getLine(connection.getInputStream()); in run()
76 connection.close(); in run()
97 connection.close(); in run()
111 connection.close(); in run()
135 skipToRequestBody(connection); in run()
137 sendLine(connection, HTTP_OK); in run()
140 sendAugmentedRequestToHost(connection, server, in run()
[all …]
/frameworks/native/services/inputflinger/
DInputDispatcher.cpp603 commandEntry->connection.clear(); in runCommandsLockedInterruptible()
938 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); in dispatchEventLocked() local
939 prepareDispatchCycleLocked(currentTime, connection, eventEntry, &inputTarget); in dispatchEventLocked()
1032 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); in resumeAfterTargetsNotReadyTimeoutLocked() local
1033 sp<InputWindowHandle> windowHandle = connection->inputWindowHandle; in resumeAfterTargetsNotReadyTimeoutLocked()
1046 if (connection->status == Connection::STATUS_NORMAL) { in resumeAfterTargetsNotReadyTimeoutLocked()
1049 synthesizeCancelationEventsForConnectionLocked(connection, options); in resumeAfterTargetsNotReadyTimeoutLocked()
1679 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); in checkWindowReadyForMoreInputLocked() local
1680 if (connection->status != Connection::STATUS_NORMAL) { in checkWindowReadyForMoreInputLocked()
1683 connection->getStatusLabel()); in checkWindowReadyForMoreInputLocked()
[all …]

1234567891011