Home
last modified time | relevance | path

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

12345678

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaConnectionTest.java43 private GsmCdmaConnection connection; field in GsmCdmaConnectionTest
60 connection = null; in tearDown()
66 connection = new GsmCdmaConnection(mPhone, String.format( in testFormatDialString()
70 String formattedDialStr = connection.formatDialString( in testFormatDialString()
76 formattedDialStr = connection.formatDialString("+1 (700).555-41NN,;1234"); in testFormatDialString()
83 connection = new GsmCdmaConnection(mPhone, "+8610000", mCT, null, in testOriginalDialString()
85 assertEquals("+8610000", connection.getOrigDialString()); in testOriginalDialString()
88 connection = new GsmCdmaConnection(mPhone, "+8610000", mCT, null, in testOriginalDialString()
90 assertEquals("+8610000", connection.getOrigDialString()); in testOriginalDialString()
95 connection = new GsmCdmaConnection(mPhone, String.format( in testSanityGSM()
[all …]
/frameworks/base/telecomm/java/android/telecom/
DRemoteConnection.java64 public void onStateChanged(RemoteConnection connection, int state) {} in onStateChanged() argument
74 RemoteConnection connection, in onDisconnected() argument
84 public void onRingbackRequested(RemoteConnection connection, boolean ringback) {} in onRingbackRequested() argument
94 RemoteConnection connection, in onConnectionCapabilitiesChanged() argument
105 RemoteConnection connection, in onConnectionPropertiesChanged() argument
117 public void onPostDialWait(RemoteConnection connection, String remainingPostDialSequence) {} in onPostDialWait() argument
126 public void onPostDialChar(RemoteConnection connection, char nextChar) {} in onPostDialChar() argument
135 public void onVoipAudioChanged(RemoteConnection connection, boolean isVoip) {} in onVoipAudioChanged() argument
144 public void onStatusHintsChanged(RemoteConnection connection, StatusHints statusHints) {} in onStatusHintsChanged() argument
155 public void onAddressChanged(RemoteConnection connection, Uri address, int presentation) {} in onAddressChanged() argument
[all …]
DRemoteConnectionService.java60 RemoteConnection connection =
62 if (connection != NULL_CONNECTION && mPendingConnections.contains(connection)) {
63 mPendingConnections.remove(connection);
65 connection.setConnectionCapabilities(parcel.getConnectionCapabilities());
66 connection.setConnectionProperties(parcel.getConnectionProperties());
69 connection.setAddress(parcel.getHandle(), parcel.getHandlePresentation());
73 connection.setCallerDisplayName(
79 connection.setDisconnected(parcel.getDisconnectCause());
81 connection.setState(parcel.getState());
89 connection.setConferenceableConnections(conferenceable);
[all …]
DRemoteConference.java73 public void onConnectionAdded(RemoteConference conference, RemoteConnection connection) {} in onConnectionAdded() argument
81 public void onConnectionRemoved(RemoteConference conference, RemoteConnection connection) {} in onConnectionRemoved() argument
164 for (RemoteConnection connection : mChildConnections) { in setDestroyed()
165 connection.setConference(null); in setDestroyed()
206 void addConnection(final RemoteConnection connection) { in addConnection() argument
207 if (!mChildConnections.contains(connection)) { in addConnection()
208 mChildConnections.add(connection); in addConnection()
209 connection.setConference(this); in addConnection()
216 callback.onConnectionAdded(conference, connection); in addConnection()
224 void removeConnection(final RemoteConnection connection) { in removeConnection() argument
[all …]
DConnectionService.java1469 public void onConnectionAdded(Conference conference, Connection connection) {
1473 public void onConnectionRemoved(Conference conference, Connection connection) {
1718 Connection connection, List<Conferenceable> conferenceables) {
1720 mIdByConnection.get(connection),
1725 public void onConferenceChanged(Connection connection, Conference conference) {
1726 String id = mIdByConnection.get(connection);
1737 public void onConferenceMergeFailed(Connection connection) {
1738 String id = mIdByConnection.get(connection);
1761 public void onConnectionEvent(Connection connection, String event, Bundle extras) {
1762 String id = mIdByConnection.get(connection);
[all …]
DConference.java58 public void onConnectionAdded(Conference conference, Connection connection) {} in onConnectionAdded() argument
59 public void onConnectionRemoved(Conference conference, Connection connection) {} in onConnectionRemoved() argument
259 public void onSeparate(Connection connection) {} in onSeparate() argument
267 public void onMerge(Connection connection) {} in onMerge() argument
327 public void onConnectionAdded(Connection connection) {} in onConnectionAdded() argument
456 public final boolean addConnection(Connection connection) { in addConnection() argument
457 Log.d(this, "Connection=%s, connection=", connection); in addConnection()
458 if (connection != null && !mChildConnections.contains(connection)) { in addConnection()
459 if (connection.setConference(this)) { in addConnection()
460 mChildConnections.add(connection); in addConnection()
[all …]
/frameworks/base/core/java/android/database/sqlite/
DSQLiteConnectionPool.java401 public void releaseConnection(SQLiteConnection connection) { in releaseConnection() argument
404 mIdleConnectionHandler.connectionReleased(connection); in releaseConnection()
406 AcquiredConnectionStatus status = mAcquiredConnections.remove(connection); in releaseConnection()
414 closeConnectionAndLogExceptionsLocked(connection); in releaseConnection()
415 } else if (connection.isPrimaryConnection()) { in releaseConnection()
416 if (recycleConnectionLocked(connection, status)) { in releaseConnection()
418 mAvailablePrimaryConnection = connection; in releaseConnection()
422 closeConnectionAndLogExceptionsLocked(connection); in releaseConnection()
424 if (recycleConnectionLocked(connection, status)) { in releaseConnection()
425 mAvailableNonPrimaryConnections.add(connection); in releaseConnection()
[all …]
/frameworks/base/services/robotests/backup/src/com/android/server/backup/transport/
DTransportClientTest.java153 ServiceConnection connection = verifyBindServiceAsUserAndCaptureServiceConnection(mContext); in testConnectAsync_callsListenerWhenConnected() local
155 connection.onServiceConnected(mTransportComponent, mTransportBinder); in testConnectAsync_callsListenerWhenConnected()
165 ServiceConnection connection = verifyBindServiceAsUserAndCaptureServiceConnection(mContext); in testConnectAsync_whenPendingConnection_callsAllListenersWhenConnected() local
169 connection.onServiceConnected(mTransportComponent, mTransportBinder); in testConnectAsync_whenPendingConnection_callsAllListenersWhenConnected()
180 ServiceConnection connection = verifyBindServiceAsUserAndCaptureServiceConnection(mContext); in testConnectAsync_whenAlreadyConnected_callsListener() local
181 connection.onServiceConnected(mTransportComponent, mTransportBinder); in testConnectAsync_whenAlreadyConnected_callsListener()
217 ServiceConnection connection = verifyBindServiceAsUserAndCaptureServiceConnection(mContext); in testConnectAsync_whenFrameworkDoesNotBind_releasesConnection() local
218 verify(mContext).unbindService(eq(connection)); in testConnectAsync_whenFrameworkDoesNotBind_releasesConnection()
224 ServiceConnection connection = verifyBindServiceAsUserAndCaptureServiceConnection(mContext); in testConnectAsync_afterOnServiceDisconnectedBeforeNewConnection_callsListener() local
225 connection.onServiceConnected(mTransportComponent, mTransportBinder); in testConnectAsync_afterOnServiceDisconnectedBeforeNewConnection_callsListener()
[all …]
/frameworks/base/media/java/android/service/media/
DMediaBrowserService.java221 final ConnectionRecord connection = new ConnectionRecord(); in connect()
222 connection.pkg = pkg; in connect()
223 connection.pid = pid; in connect()
224 connection.uid = uid; in connect()
225 connection.rootHints = rootHints; in connect()
226 connection.callbacks = callbacks; in connect()
228 mCurConnection = connection; in connect()
229 connection.root = MediaBrowserService.this.onGetRoot(pkg, uid, rootHints); in connect()
233 if (connection.root == null) { in connect()
244 mConnections.put(b, connection); in connect()
[all …]
/frameworks/base/core/jni/
Dandroid_database_SQLiteConnection.cpp93 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); in sqliteTraceCallback() local
95 connection->label.string(), sql); in sqliteTraceCallback()
100 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); in sqliteProfileCallback() local
102 connection->label.string(), sql, tm * 0.000001f); in sqliteProfileCallback()
107 SQLiteConnection* connection = static_cast<SQLiteConnection*>(data); in sqliteProgressHandlerCallback() local
108 return connection->canceled; in sqliteProgressHandlerCallback()
173 SQLiteConnection* connection = new SQLiteConnection(db, openFlags, path, label); in nativeOpen() local
177 sqlite3_trace(db, &sqliteTraceCallback, connection); in nativeOpen()
180 sqlite3_profile(db, &sqliteProfileCallback, connection); in nativeOpen()
184 return reinterpret_cast<jlong>(connection); in nativeOpen()
[all …]
/frameworks/native/services/sensorservice/
DSensorRecord.cpp24 const sp<const SensorEventConnection>& connection) in SensorRecord() argument
26 mConnections.add(connection); in SensorRecord()
30 const sp<const SensorEventConnection>& connection) in addConnection() argument
32 if (mConnections.indexOf(connection) < 0) { in addConnection()
33 mConnections.add(connection); in addConnection()
40 const wp<const SensorEventConnection>& connection) in removeConnection() argument
42 ssize_t index = mConnections.indexOf(connection); in removeConnection()
49 if (*it == connection) { in removeConnection()
59 const sp<const SensorEventConnection>& connection) { in addPendingFlushConnection() argument
60 mPendingFlushConnections.add(connection); in addPendingFlushConnection()
DSensorService.cpp821 void SensorService::cleanupAutoDisabledSensorLocked(const sp<SensorEventConnection>& connection, in cleanupAutoDisabledSensorLocked() argument
828 if (connection->hasSensor(handle)) { in cleanupAutoDisabledSensorLocked()
834 si->autoDisable(connection.get(), handle); in cleanupAutoDisabledSensorLocked()
835 cleanupWithoutDisableLocked(connection, handle); in cleanupAutoDisabledSensorLocked()
1001 for (const sp<SensorEventConnection>& connection : activeConnections) { in threadLoop() local
1002 connection->removeSensor(handle); in threadLoop()
1011 for (const sp<SensorEventConnection>& connection : activeConnections) { in threadLoop() local
1012 connection->sendEvents(mSensorEventBuffer, count, mSensorEventScratch, in threadLoop()
1014 needsWakeLock |= connection->needsWakeLock(); in threadLoop()
1017 if (connection->hasOneShotSensors()) { in threadLoop()
[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/base/services/core/java/com/android/server/storage/
DStorageSessionController.java93 StorageUserConnection connection = null; in onVolumeMount() local
95 connection = mConnections.get(userId); in onVolumeMount()
96 if (connection == null) { in onVolumeMount()
98 connection = new StorageUserConnection(mContext, userId, this); in onVolumeMount()
99 mConnections.put(userId, connection); in onVolumeMount()
102 connection.startSession(sessionId, deviceFd, vol.getPath().getPath(), in onVolumeMount()
125 StorageUserConnection connection = null; in notifyVolumeStateChanged() local
127 connection = mConnections.get(userId); in notifyVolumeStateChanged()
128 if (connection != null) { in notifyVolumeStateChanged()
130 connection.notifyVolumeStateChanged(sessionId, in notifyVolumeStateChanged()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsExternalCallTracker.java84 public void onPullExternalCall(ImsExternalConnection connection) { in onPullExternalCall() argument
85 Log.d(TAG, "onPullExternalCall: connection = " + connection); in onPullExternalCall()
90 mCallPuller.pullExternalCall(connection.getAddress(), connection.getVideoState(), in onPullExternalCall()
91 connection.getCallId()); in onPullExternalCall()
309 ImsExternalConnection connection = new ImsExternalConnection(mPhone, in createExternalConnection() local
313 connection.setVideoState(videoState); in createExternalConnection()
314 connection.addListener(mExternalConnectionListener); in createExternalConnection()
318 + connection.getCallId() in createExternalConnection()
326 mExternalConnections.put(connection.getCallId(), connection); in createExternalConnection() local
327 mExternalCallPullableState.put(connection.getCallId(), state.isCallPullable()); in createExternalConnection()
[all …]
/frameworks/base/services/core/jni/
Dcom_android_server_tv_TvUinputBridge.cpp368 NativeConnection* connection = NativeConnection::open(name.c_str(), uniqueId.c_str(), in nativeOpen() local
370 return reinterpret_cast<jlong>(connection); in nativeOpen()
377 NativeConnection* connection = NativeConnection::openGamepad(name.c_str(), uniqueId.c_str()); in nativeGamepadOpen() local
378 return reinterpret_cast<jlong>(connection); in nativeGamepadOpen()
382 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); in nativeClose() local
383 delete connection; in nativeClose()
388 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); in nativeSendKey() local
390 if (connection->IsGamepad()) { in nativeSendKey()
396 connection->sendEvent(EV_KEY, code, down ? 1 : 0); in nativeSendKey()
404 NativeConnection* connection = reinterpret_cast<NativeConnection*>(ptr); in nativeSendGamepadKey() local
[all …]
/frameworks/base/core/java/android/accessibilityservice/
DAccessibilityService.java917 final IAccessibilityServiceConnection connection = in disableSelf() local
919 if (connection != null) { in disableSelf()
921 connection.disableSelf(); in disableSelf()
938 final IAccessibilityServiceConnection connection = in setDefaultTokenInternal() local
941 if (connection != null) { in setDefaultTokenInternal()
944 token = connection.getOverlayWindowToken(displayId); in setDefaultTokenInternal()
1042 final IAccessibilityServiceConnection connection = in dispatchGesture() local
1045 if (connection == null) { in dispatchGesture()
1061 connection.dispatchGesture(mGestureStatusCallbackSequence, in dispatchGesture()
1230 final IAccessibilityServiceConnection connection = in setMagnificationCallbackEnabled() local
[all …]
/frameworks/base/services/core/java/com/android/server/media/
DMediaRoute2ProviderServiceProxy.java261 Connection connection = new Connection(serviceBinder); in onServiceConnected() local
262 if (connection.register()) { in onServiceConnected()
263 mActiveConnection = connection; in onServiceConnected()
294 private void onConnectionReady(Connection connection) { in onConnectionReady() argument
295 if (mActiveConnection == connection) { in onConnectionReady()
303 private void onConnectionDied(Connection connection) { in onConnectionDied() argument
304 if (mActiveConnection == connection) { in onConnectionDied()
312 private void onProviderStateUpdated(Connection connection, in onProviderStateUpdated() argument
314 if (mActiveConnection != connection) { in onProviderStateUpdated()
323 private void onSessionCreated(Connection connection, long requestId, in onSessionCreated() argument
[all …]
/frameworks/native/services/surfaceflinger/Scheduler/
DEventThread.cpp69 std::string toString(const EventThreadConnection& connection) { in toString() argument
70 return StringPrintf("Connection{%p, %s}", &connection, in toString()
71 toString(connection.vsyncRequest).c_str()); in toString()
220 status_t EventThread::registerDisplayEventConnection(const sp<EventThreadConnection>& connection) { in registerDisplayEventConnection() argument
225 mDisplayEventConnections.cend(), connection); in registerDisplayEventConnection()
227 ALOGW("DisplayEventConnection %p already exists", connection.get()); in registerDisplayEventConnection()
232 mDisplayEventConnections.push_back(connection); in registerDisplayEventConnection()
237 void EventThread::removeDisplayEventConnectionLocked(const wp<EventThreadConnection>& connection) { in removeDisplayEventConnectionLocked() argument
239 mDisplayEventConnections.cend(), connection); in removeDisplayEventConnectionLocked()
245 void EventThread::setVsyncRate(uint32_t rate, const sp<EventThreadConnection>& connection) { in setVsyncRate() argument
[all …]
/frameworks/base/services/core/java/com/android/server/location/gnss/
DGpsPsdsDownloader.java120 HttpURLConnection connection = null; in doDownload() local
122 connection = (HttpURLConnection) (new URL(url)).openConnection(); in doDownload()
123 connection.setRequestProperty( in doDownload()
126 connection.setRequestProperty( in doDownload()
129 connection.setConnectTimeout(CONNECTION_TIMEOUT_MS); in doDownload()
130 connection.setReadTimeout(READ_TIMEOUT_MS); in doDownload()
132 connection.connect(); in doDownload()
133 int statusCode = connection.getResponseCode(); in doDownload()
139 try (InputStream in = connection.getInputStream()) { in doDownload()
155 if (connection != null) { in doDownload()
[all …]
/frameworks/native/services/inputflinger/dispatcher/
DInputDispatcher.cpp425 sp<Connection> connection = mConnectionsByFd.begin()->second; in ~InputDispatcher() local
426 unregisterInputChannel(connection->inputChannel); in ~InputDispatcher()
513 sp<Connection> connection = getConnectionLocked(mAnrTracker.firstToken()); in processAnrsLocked() local
514 if (connection == nullptr) { in processAnrsLocked()
518 connection->responsive = false; in processAnrsLocked()
520 mAnrTracker.eraseToken(connection->inputChannel->getConnectionToken()); in processAnrsLocked()
521 onAnrLocked(connection); in processAnrsLocked()
718 sp<Connection> connection = in shouldPruneInboundQueueLocked() local
720 if (connection != nullptr && connection->responsive) { in shouldPruneInboundQueueLocked()
967 commandEntry->connection.clear(); in runCommandsLockedInterruptible()
[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/base/core/java/android/view/accessibility/
DAccessibilityInteractionClient.java172 public static void addConnection(int connectionId, IAccessibilityServiceConnection connection) { in addConnection() argument
174 sConnectionCache.put(connectionId, connection); in addConnection()
254 IAccessibilityServiceConnection connection = getConnection(connectionId); in getWindow() local
255 if (connection != null) { in getWindow()
271 window = connection.getWindow(accessibilityWindowId); in getWindow()
316 IAccessibilityServiceConnection connection = getConnection(connectionId); in getWindowsOnAllDisplays() local
317 if (connection != null) { in getWindowsOnAllDisplays()
331 windows = connection.getWindows(); in getWindowsOnAllDisplays()
376 IAccessibilityServiceConnection connection = getConnection(connectionId); in findAccessibilityNodeInfoByAccessibilityId() local
377 if (connection != null) { in findAccessibilityNodeInfoByAccessibilityId()
[all …]
/frameworks/base/services/core/java/com/android/server/tv/
DTvInputHardwareManager.java157 Connection connection = new Connection(info); in onDeviceAvailable() local
158 connection.updateConfigsLocked(configs); in onDeviceAvailable()
159 mConnections.put(info.getDeviceId(), connection); in onDeviceAvailable() local
179 Connection connection = mConnections.get(deviceId); in onDeviceUnavailable() local
180 if (connection == null) { in onDeviceUnavailable()
184 connection.resetLocked(null, null, null, null, null, null); in onDeviceUnavailable()
187 TvInputHardwareInfo info = connection.getHardwareInfoLocked(); in onDeviceUnavailable()
207 Connection connection = mConnections.get(deviceId); in onStreamConfigurationChanged() local
208 if (connection == null) { in onStreamConfigurationChanged()
213 int previousConfigsLength = connection.getConfigsLengthLocked(); in onStreamConfigurationChanged()
[all …]
/frameworks/base/core/proto/android/debug/
Denums.proto24 * adb connection state used to track adb connection changes in AdbDebuggingManager.java.
30 * The adb connection is waiting for approval from the user.
35 * The user allowed the adb connection from the system.
40 * The user denied the adb connection from the system.
45 * The adb connection was automatically allowed without user interaction due to the system
52 * An empty or invalid base64 encoded key was provided to the framework; the connection was
58 * vold decrypt has not yet occurred; the connection was automatically denied.

12345678