/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | GsmCdmaConnectionTest.java | 43 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/ |
D | RemoteConnection.java | 61 public void onStateChanged(RemoteConnection connection, int state) {} in onStateChanged() argument 71 RemoteConnection connection, in onDisconnected() argument 81 public void onRingbackRequested(RemoteConnection connection, boolean ringback) {} in onRingbackRequested() argument 91 RemoteConnection connection, in onConnectionCapabilitiesChanged() argument 102 RemoteConnection connection, in onConnectionPropertiesChanged() argument 114 public void onPostDialWait(RemoteConnection connection, String remainingPostDialSequence) {} in onPostDialWait() argument 123 public void onPostDialChar(RemoteConnection connection, char nextChar) {} in onPostDialChar() argument 132 public void onVoipAudioChanged(RemoteConnection connection, boolean isVoip) {} in onVoipAudioChanged() argument 141 public void onStatusHintsChanged(RemoteConnection connection, StatusHints statusHints) {} in onStatusHintsChanged() argument 152 public void onAddressChanged(RemoteConnection connection, Uri address, int presentation) {} in onAddressChanged() argument [all …]
|
D | RemoteConnectionService.java | 60 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 …]
|
D | RemoteConference.java | 73 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 …]
|
D | ConnectionService.java | 1469 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 …]
|
D | Conference.java | 58 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 452 public final boolean addConnection(Connection connection) { in addConnection() argument 453 Log.d(this, "Connection=%s, connection=", connection); in addConnection() 454 if (connection != null && !mChildConnections.contains(connection)) { in addConnection() 455 if (connection.setConference(this)) { in addConnection() 456 mChildConnections.add(connection); in addConnection() [all …]
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteConnectionPool.java | 401 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/core/jni/ |
D | android_database_SQLiteConnection.cpp | 95 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() 175 SQLiteConnection* connection = new SQLiteConnection(db, openFlags, path, label); in nativeOpen() local 179 sqlite3_trace(db, &sqliteTraceCallback, connection); in nativeOpen() 182 sqlite3_profile(db, &sqliteProfileCallback, connection); in nativeOpen() 186 return reinterpret_cast<jlong>(connection); in nativeOpen() [all …]
|
/frameworks/base/services/robotests/backup/src/com/android/server/backup/transport/ |
D | TransportClientTest.java | 153 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/ |
D | MediaBrowserService.java | 221 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/services/core/jni/ |
D | com_android_server_tv_TvUinputBridge.cpp | 193 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 …]
|
/frameworks/native/services/sensorservice/ |
D | SensorRecord.cpp | 24 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()
|
D | SensorService.cpp | 515 for (const sp<SensorDirectConnection>& connection : connLock->getDirectConnections()) { in disableAllSensorsLocked() local 516 connection->stopAll(true /* backupRecord */); in disableAllSensorsLocked() 543 for (const sp<SensorDirectConnection>& connection : connLock->getDirectConnections()) { in enableAllSensorsLocked() local 544 connection->recoverAll(); in enableAllSensorsLocked() 673 void SensorService::cleanupAutoDisabledSensorLocked(const sp<SensorEventConnection>& connection, in cleanupAutoDisabledSensorLocked() argument 680 if (connection->hasSensor(handle)) { in cleanupAutoDisabledSensorLocked() 686 si->autoDisable(connection.get(), handle); in cleanupAutoDisabledSensorLocked() 687 cleanupWithoutDisableLocked(connection, handle); in cleanupAutoDisabledSensorLocked() 853 for (const sp<SensorEventConnection>& connection : activeConnections) { in threadLoop() local 854 connection->removeSensor(handle); in threadLoop() [all …]
|
/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/ |
D | URLFetcher.java | 97 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/tv/ |
D | TvRemoteProviderProxy.java | 186 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 …]
|
D | TvInputHardwareManager.java | 154 Connection connection = new Connection(info); in onDeviceAvailable() local 155 connection.updateConfigsLocked(configs); in onDeviceAvailable() 156 mConnections.put(info.getDeviceId(), connection); in onDeviceAvailable() local 176 Connection connection = mConnections.get(deviceId); in onDeviceUnavailable() local 177 if (connection == null) { in onDeviceUnavailable() 181 connection.resetLocked(null, null, null, null, null); in onDeviceUnavailable() 184 TvInputHardwareInfo info = connection.getHardwareInfoLocked(); in onDeviceUnavailable() 204 Connection connection = mConnections.get(deviceId); in onStreamConfigurationChanged() local 205 if (connection == null) { in onStreamConfigurationChanged() 210 int previousConfigsLength = connection.getConfigsLengthLocked(); in onStreamConfigurationChanged() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsExternalCallTracker.java | 84 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/core/java/android/accessibilityservice/ |
D | AccessibilityService.java | 636 final IAccessibilityServiceConnection connection = in disableSelf() local 638 if (connection != null) { in disableSelf() 640 connection.disableSelf(); in disableSelf() 735 final IAccessibilityServiceConnection connection = in dispatchGesture() local 738 if (connection == null) { in dispatchGesture() 754 connection.sendGesture(mGestureStatusCallbackSequence, in dispatchGesture() 922 final IAccessibilityServiceConnection connection = in setMagnificationCallbackEnabled() local 925 if (connection != null) { in setMagnificationCallbackEnabled() 927 connection.setMagnificationCallbackEnabled(mDisplayId, enabled); in setMagnificationCallbackEnabled() 983 final IAccessibilityServiceConnection connection = in getScale() local [all …]
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | EventThread.cpp | 64 std::string toString(const EventThreadConnection& connection) { in toString() argument 65 return StringPrintf("Connection{%p, %s}", &connection, in toString() 66 toString(connection.vsyncRequest).c_str()); in toString() 218 status_t EventThread::registerDisplayEventConnection(const sp<EventThreadConnection>& connection) { in registerDisplayEventConnection() argument 223 mDisplayEventConnections.cend(), connection); in registerDisplayEventConnection() 225 ALOGW("DisplayEventConnection %p already exists", connection.get()); in registerDisplayEventConnection() 230 mDisplayEventConnections.push_back(connection); in registerDisplayEventConnection() 235 void EventThread::removeDisplayEventConnectionLocked(const wp<EventThreadConnection>& connection) { in removeDisplayEventConnectionLocked() argument 237 mDisplayEventConnections.cend(), connection); in removeDisplayEventConnectionLocked() 243 void EventThread::setVsyncRate(uint32_t rate, const sp<EventThreadConnection>& connection) { in setVsyncRate() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/location/ |
D | GpsPsdsDownloader.java | 120 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/base/core/java/android/view/accessibility/ |
D | AccessibilityInteractionClient.java | 159 public static void addConnection(int connectionId, IAccessibilityServiceConnection connection) { in addConnection() argument 161 sConnectionCache.put(connectionId, connection); in addConnection() 226 IAccessibilityServiceConnection connection = getConnection(connectionId); in getWindow() local 227 if (connection != null) { in getWindow() 241 window = connection.getWindow(accessibilityWindowId); in getWindow() 268 IAccessibilityServiceConnection connection = getConnection(connectionId); in getWindows() local 269 if (connection != null) { in getWindows() 282 windows = connection.getWindows(); in getWindows() 325 IAccessibilityServiceConnection connection = getConnection(connectionId); in findAccessibilityNodeInfoByAccessibilityId() local 326 if (connection != null) { in findAccessibilityNodeInfoByAccessibilityId() [all …]
|
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/ |
D | ProxyServer.java | 64 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/dispatcher/ |
D | InputDispatcher.cpp | 660 commandEntry->connection.clear(); in runCommandsLockedInterruptible() 1009 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); in dispatchEventLocked() local 1010 prepareDispatchCycleLocked(currentTime, connection, eventEntry, &inputTarget); in dispatchEventLocked() 1108 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); in resumeAfterTargetsNotReadyTimeoutLocked() local 1109 sp<IBinder> token = connection->inputChannel->getToken(); in resumeAfterTargetsNotReadyTimeoutLocked() 1115 if (connection->status == Connection::STATUS_NORMAL) { in resumeAfterTargetsNotReadyTimeoutLocked() 1118 synthesizeCancelationEventsForConnectionLocked(connection, options); in resumeAfterTargetsNotReadyTimeoutLocked() 1804 sp<Connection> connection = mConnectionsByFd.valueAt(connectionIndex); in checkWindowReadyForMoreInputLocked() local 1805 if (connection->status != Connection::STATUS_NORMAL) { in checkWindowReadyForMoreInputLocked() 1808 targetType, connection->getStatusLabel()); in checkWindowReadyForMoreInputLocked() [all …]
|
/frameworks/base/core/proto/android/debug/ |
D | enums.proto | 24 * 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.
|
/frameworks/base/services/core/java/com/android/server/media/ |
D | RemoteDisplayProviderProxy.java | 230 Connection connection = new Connection(provider); in onServiceConnected() local 231 if (connection.register()) { in onServiceConnected() 232 mActiveConnection = connection; in onServiceConnected() 252 private void onConnectionReady(Connection connection) { in onConnectionReady() argument 253 if (mActiveConnection == connection) { in onConnectionReady() 265 private void onConnectionDied(Connection connection) { in onConnectionDied() argument 266 if (mActiveConnection == connection) { in onConnectionDied() 274 private void onDisplayStateChanged(Connection connection, RemoteDisplayState state) { in onDisplayStateChanged() argument 275 if (mActiveConnection == connection) { in onDisplayStateChanged() 427 public ProviderCallback(Connection connection) { in ProviderCallback() argument [all …]
|