/packages/services/Telephony/src/com/android/services/telephony/ |
D | ImsConferenceController.java | 75 public void onDestroyed(Connection connection) { 76 remove(connection); 126 void add(TelephonyConnection connection) { in add() argument 129 if ((connection.getConnectionProperties() & Connection.PROPERTY_IS_EXTERNAL_CALL) == in add() 134 if (mTelephonyConnections.contains(connection)) { in add() 136 Log.w(this, "add - connection already tracked; connection=%s", connection); in add() 143 Log.v(this, "add connection %s", connection); in add() 146 mTelephonyConnections.add(connection); in add() 147 connection.addConnectionListener(mConnectionListener); in add() 156 void remove(Connection connection) { in remove() argument [all …]
|
D | TelephonyConferenceController.java | 63 public void onDestroyed(Connection connection) { 64 remove(connection); 85 void add(TelephonyConnection connection) { in add() argument 86 if (mTelephonyConnections.contains(connection)) { in add() 88 Log.w(this, "add - connection already tracked; connection=%s", connection); in add() 91 mTelephonyConnections.add(connection); in add() 92 connection.addConnectionListener(mConnectionListener); in add() 96 void remove(Connection connection) { in remove() argument 97 if (!mTelephonyConnections.contains(connection)) { in remove() 100 Log.d(this, "remove - connection not tracked; connection=%s", connection); in remove() [all …]
|
D | TelephonyConference.java | 50 for (Connection connection : getConnections()) { in onDisconnect() 51 if (disconnectCall(connection)) { in onDisconnect() 63 private boolean disconnectCall(Connection connection) { in disconnectCall() argument 64 Call call = getMultipartyCallForConnection(connection, "onDisconnect"); in disconnectCall() 83 public void onSeparate(Connection connection) { in onSeparate() argument 85 getOriginalConnection(connection); in onSeparate() 94 public void onMerge(Connection connection) { in onMerge() argument 96 Phone phone = ((TelephonyConnection) connection).getPhone(); in onMerge() 110 final TelephonyConnection connection = getFirstConnection(); in onHold() local 111 if (connection != null) { in onHold() [all …]
|
D | PstnIncomingCallNotifier.java | 125 Connection connection = (Connection) asyncResult.result; in handleNewRingingConnection() local 126 if (connection != null) { in handleNewRingingConnection() 127 Call call = connection.getCall(); in handleNewRingingConnection() 131 sendIncomingCallIntent(connection); in handleNewRingingConnection() 141 Connection connection = call.getLatestConnection(); in handleCdmaCallWaiting() local 142 if (connection != null) { in handleCdmaCallWaiting() 143 String number = connection.getAddress(); in handleCdmaCallWaiting() 144 int presentation = connection.getNumberPresentation(); in handleCdmaCallWaiting() 152 sendIncomingCallIntent(connection); in handleCdmaCallWaiting() 158 sendIncomingCallIntent(connection); in handleCdmaCallWaiting() [all …]
|
D | CdmaConferenceController.java | 92 void add(final CdmaConnection connection) { in add() argument 93 if (mCdmaConnections.contains(connection)) { in add() 95 Log.w(this, "add - connection already tracked; connection=%s", connection); in add() 99 if (!mCdmaConnections.isEmpty() && connection.isOutgoing()) { in add() 106 connection.forceAsDialing(true); in add() 117 connection.forceAsDialing(false); in add() 118 addInternal(connection); in add() 136 mHandler.post(() -> addInternal(connection)); in add() 140 private void addInternal(CdmaConnection connection) { in addInternal() argument 141 mCdmaConnections.add(connection); in addInternal() [all …]
|
D | TelephonyConnectionService.java | 91 public void removeConnection(Connection connection) { 92 TelephonyConnectionService.this.removeConnection(connection); 96 Connection connection) { 98 .addExistingConnection(phoneAccountHandle, connection); 102 Connection connection, Conference conference) { 104 .addExistingConnection(phoneAccountHandle, connection, conference); 107 public void addConnectionToConferenceController(TelephonyConnection connection) { 108 TelephonyConnectionService.this.addConnectionToConferenceController(connection); 456 for (Connection connection : connections) { in canAddCall() 457 if (connection.getExtras() != null && in canAddCall() [all …]
|
D | CdmaConference.java | 70 public void onSeparate(Connection connection) { in onSeparate() argument 102 final CdmaConnection connection = getFirstConnection(); in onPlayDtmfTone() local 103 if (connection != null) { in onPlayDtmfTone() 104 connection.onPlayDtmfTone(c); in onPlayDtmfTone() 112 final CdmaConnection connection = getFirstConnection(); in onStopDtmfTone() local 113 if (connection != null) { in onStopDtmfTone() 114 connection.onStopDtmfTone(); in onStopDtmfTone() 138 private Call getMultipartyCallForConnection(Connection connection) { in getMultipartyCallForConnection() argument 140 getOriginalConnection(connection); in getMultipartyCallForConnection() 186 private com.android.internal.telephony.Connection getOriginalConnection(Connection connection) { in getOriginalConnection() argument [all …]
|
D | ImsConference.java | 81 public void onDestroyed(Connection connection) { 83 (ConferenceParticipantConnection) connection; 432 public void onSeparate(android.telecom.Connection connection) { in onSeparate() argument 443 public void onMerge(android.telecom.Connection connection) { in onMerge() argument 507 public void onConnectionAdded(android.telecom.Connection connection) { in onConnectionAdded() argument 666 ConferenceParticipantConnection connection = in handleConferenceParticipantsUpdate() local 670 connection.updateState(participant.getState()); in handleConferenceParticipantsUpdate() 678 ConferenceParticipantConnection connection = in handleConferenceParticipantsUpdate() local 682 connection.updateState(newParticipant.getState()); in handleConferenceParticipantsUpdate() 728 ConferenceParticipantConnection connection = new ConferenceParticipantConnection( in createConferenceParticipantConnection() local [all …]
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | TestConnectionService.java | 105 public void onSeparate(Connection connection) { in onSeparate() argument 106 if (getConnections().contains(connection)) { in onSeparate() 107 connection.setConference(null); in onSeparate() 108 removeConnection(connection); in onSeparate() 109 connection.removeConnectionListener(mConnectionListener); in onSeparate() 374 final TestConnection connection = 376 setAddress(connection, handle); 390 connection.setVideoState(originalRequest.getVideoState()); 391 addVideoProvider(connection); 392 addCall(connection); [all …]
|
D | TestConnectionManager.java | 46 public void onStateChanged(RemoteConnection connection, int state) { 52 RemoteConnection connection, DisconnectCause disconnectCause) { 58 public void onRingbackRequested(RemoteConnection connection, boolean ringback) { 63 public void onConnectionCapabilitiesChanged(RemoteConnection connection, 69 public void onConnectionPropertiesChanged(RemoteConnection connection, 75 public void onPostDialWait(RemoteConnection connection, String remainingDigits) { 80 public void onVoipAudioChanged(RemoteConnection connection, boolean isVoip) { 85 public void onStatusHintsChanged(RemoteConnection connection, StatusHints statusHints) { 90 public void onVideoStateChanged(RemoteConnection connection, int videoState) { 92 setVideoProvider(new TestManagedVideoProvider(connection.getVideoProvider())); [all …]
|
D | SelfManagedConnectionService.java | 69 SelfManagedConnection connection = new SelfManagedConnection(mCallList, in createSelfManagedConnection() local 71 connection.setListener(mCallList.getConnectionListener()); in createSelfManagedConnection() 72 connection.setConnectionProperties(Connection.PROPERTY_SELF_MANAGED); in createSelfManagedConnection() 73 connection.setAddress(request.getAddress(), TelecomManager.PRESENTATION_ALLOWED); in createSelfManagedConnection() 74 connection.setAudioModeIsVoip(true); in createSelfManagedConnection() 75 connection.setVideoState(request.getVideoState()); in createSelfManagedConnection() 77 connection.setCallerDisplayName(TEST_NAMES[random.nextInt(TEST_NAMES.length)], in createSelfManagedConnection() 79 connection.setExtras(request.getExtras()); in createSelfManagedConnection() 81 connection.setIsIncomingCallUiShowing(request.shouldShowIncomingCallUi()); in createSelfManagedConnection() 88 connection.setIsHandover(requestExtras.getBoolean(TelecomManager.EXTRA_IS_HANDOVER, in createSelfManagedConnection() [all …]
|
D | SelfManagedCallListAdapter.java | 43 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag(); 44 connection.setConnectionDisconnected(DisconnectCause.LOCAL); 45 SelfManagedCallList.getInstance().removeConnection(connection); 56 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag(); 57 connection.setConnectionActive(); 69 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag(); 70 connection.setConnectionHeld(); 79 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag(); 80 connection.setAudioRoute(CallAudioState.ROUTE_SPEAKER); 89 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag(); [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/ |
D | HfpClientDeviceBlock.java | 109 HfpClientConnection connection = connection = mConnections.get(call.getUUID()); in onCreateIncomingConnection() local 110 if (connection != null) { in onCreateIncomingConnection() 111 connection.onAdded(); in onCreateIncomingConnection() 113 return connection; in onCreateIncomingConnection() 121 HfpClientConnection connection = buildConnection(null, address); in onCreateOutgoingConnection() local 122 if (connection != null) { in onCreateOutgoingConnection() 123 connection.onAdded(); in onCreateOutgoingConnection() 125 return connection; in onCreateOutgoingConnection() 130 HfpClientConnection connection = connection = mConnections.get(call.getUUID()); in onCreateUnknownConnection() local 132 if (connection != null) { in onCreateUnknownConnection() [all …]
|
D | HfpClientConference.java | 56 public void onMerge(Connection connection) { in onMerge() argument 57 Log.d(TAG, "onMerge " + connection); in onMerge() 58 addConnection(connection); in onMerge() 62 public void onSeparate(Connection connection) { in onSeparate() argument 63 Log.d(TAG, "onSeparate " + connection); in onSeparate() 64 ((HfpClientConnection) connection).enterPrivateMode(); in onSeparate() 65 removeConnection(connection); in onSeparate() 89 public void onConnectionAdded(Connection connection) { in onConnectionAdded() argument 90 Log.d(TAG, "onConnectionAdded " + connection); in onConnectionAdded() 91 if (connection.getState() == Connection.STATE_HOLDING && in onConnectionAdded() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/ |
D | HttpUrlConnectionBuilderTests.java | 66 HttpURLConnection connection = builder.build(); in testSetConnectTimeout() local 67 assertEquals(8765, connection.getConnectTimeout()); in testSetConnectTimeout() 84 HttpURLConnection connection = builder.build(); in testSetReadTimeout() local 85 assertEquals(8765, connection.getReadTimeout()); in testSetReadTimeout() 92 HttpURLConnection connection = builder.build(); in testAddHeader() local 93 assertEquals("some-random-value", connection.getRequestProperty("some-random-key")); in testAddHeader() 99 HttpURLConnection connection = builder.build(); in testSetUseCache_notSet() local 100 assertFalse(connection.getUseCaches()); in testSetUseCache_notSet() 106 HttpURLConnection connection = builder.build(); in testSetUseCache_false() local 107 connection.setUseCaches(false); in testSetUseCache_false() [all …]
|
/packages/services/Mms/src/com/android/mms/service/ |
D | MmsHttpClient.java | 120 HttpURLConnection connection = null; in execute() local 130 connection = (HttpURLConnection) mNetwork.openConnection(url, proxy); in execute() 131 connection.setDoInput(true); in execute() 132 connection.setConnectTimeout( in execute() 136 connection.setRequestProperty(HEADER_ACCEPT, HEADER_VALUE_ACCEPT); in execute() 138 connection.setRequestProperty( in execute() 143 connection.setRequestProperty(HEADER_USER_AGENT, userAgent); in execute() 150 connection.setRequestProperty(uaProfUrlTagName, uaProfUrl); in execute() 158 connection.setRequestProperty(HEADER_CONNECTION, HEADER_CONNECTION_CLOSE); in execute() 161 addExtraHeaders(connection, mmsConfig, subId); in execute() [all …]
|
/packages/apps/Messaging/src/android/support/v7/mms/ |
D | MmsHttpClient.java | 119 HttpURLConnection connection = null; in execute() local 127 connection = (HttpURLConnection) url.openConnection(proxy); in execute() 128 connection.setDoInput(true); in execute() 129 connection.setConnectTimeout( in execute() 134 connection.setRequestProperty(HEADER_ACCEPT, HEADER_VALUE_ACCEPT); in execute() 136 connection.setRequestProperty( in execute() 140 connection.setRequestProperty(HEADER_USER_AGENT, userAgent); in execute() 147 connection.setRequestProperty(uaProfUrlTagName, uaProfUrl); in execute() 150 addExtraHeaders(connection, mmsConfig); in execute() 157 connection.setDoOutput(true); in execute() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallExtrasTest.java | 61 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testCsPutExtras() local 62 connection.putExtras(extras); in testCsPutExtras() 82 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testCsPutBooleanExtra() local 83 connection.putExtra(EXTRA_KEY_BOOL, true); in testCsPutBooleanExtra() 103 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testCsPutIntExtra() local 104 connection.putExtra(EXTRA_KEY_INT, EXTRA_VALUE_INT); in testCsPutIntExtra() 124 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testCsPutStringExtra() local 125 connection.putExtra(EXTRA_KEY_STR, EXTRA_VALUE_STR); in testCsPutStringExtra() 147 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testCsRemoveExtra() local 148 connection.putExtra(EXTRA_KEY_STR2, EXTRA_VALUE_STR); in testCsRemoveExtra() [all …]
|
/packages/apps/Email/provider_src/com/android/email/mail/store/ |
D | ImapStore.java | 422 ImapConnection connection = getConnection(); in updateFolders() local 427 connection.executeSimpleCommand(ImapConstants.NOOP); in updateFolders() 432 List<ImapResponse> responses = connection.executeSimpleCommand(imapCommand); in updateFolders() 469 connection.close(); in updateFolders() 474 connection.destroyResponses(); in updateFolders() 475 connection = null; in updateFolders() 478 if (connection != null) { in updateFolders() 481 poolConnection(connection); in updateFolders() 493 ImapConnection connection = new ImapConnection(this); in checkSettings() local 495 connection.open(); in checkSettings() [all …]
|
/packages/apps/Messaging/src/com/android/messaging/datamodel/media/ |
D | NetworkUriImageRequest.java | 57 HttpURLConnection connection = null; in isGif() local 60 connection = (HttpURLConnection) url.openConnection(); in isGif() 61 connection.connect(); in isGif() 62 if (connection.getResponseCode() == HttpURLConnection.HTTP_OK) { in isGif() 63 return ContentType.IMAGE_GIF.equalsIgnoreCase(connection.getContentType()); in isGif() 74 if (connection != null) { in isGif() 75 connection.disconnect(); in isGif() 88 HttpURLConnection connection = null; in loadBitmapInternal() local 91 connection = (HttpURLConnection) url.openConnection(); in loadBitmapInternal() 92 connection.setDoInput(true); in loadBitmapInternal() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
D | ContextMap.java | 248 Connection connection = i.next(); in removeConnection() local 249 if (connection.connId == connId) { in removeConnection() 263 Connection connection = i.next(); in removeConnectionsByAppId() local 264 if (connection.appId == appId) { in removeConnectionsByAppId() 357 Connection connection = i.next(); in getConnectedDevices() local 358 addresses.add(connection.address); in getConnectedDevices() 369 Connection connection = ii.next(); in getByConnId() local 370 if (connection.connId == connId){ in getByConnId() 371 return getById(connection.appId); in getByConnId() 386 Connection connection = i.next(); in connIdByAddress() local [all …]
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/network/ |
D | HttpUrlConnectionBuilder.java | 203 final HttpURLConnection connection = (HttpURLConnection) mUrl.openConnection(); in build() local 204 connection.setConnectTimeout(mConnectTimeoutMillis); in build() 205 connection.setReadTimeout(mReadTimeoutMillis); in build() 206 connection.setUseCaches(mUseCache); in build() 209 connection.setDoInput(true); in build() 210 connection.setDoOutput(false); in build() 213 connection.setDoInput(false); in build() 214 connection.setDoOutput(true); in build() 217 connection.setDoInput(true); in build() 218 connection.setDoOutput(true); in build() [all …]
|
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/ |
D | WifiDownloadReceiver.java | 104 HttpURLConnection connection = null; in doInBackground() local 107 connection = (HttpURLConnection) url.openConnection(); in doInBackground() 108 connection.connect(); in doInBackground() 111 if (connection.getResponseCode() != HttpURLConnection.HTTP_OK) { in doInBackground() 112 return "Server returned HTTP " + connection.getResponseCode() in doInBackground() 113 + " " + connection.getResponseMessage(); in doInBackground() 117 int fileLength = connection.getContentLength(); in doInBackground() 118 int bytesRead = downloadFile(connection); in doInBackground() 132 if (connection != null) { in doInBackground() 133 connection.disconnect(); in doInBackground() [all …]
|
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/ |
D | SipConnectionService.java | 84 final SipConnection connection = new SipConnection(); in onCreateOutgoingConnection() local 85 connection.setAddress(request.getAddress(), TelecomManager.PRESENTATION_ALLOWED); in onCreateOutgoingConnection() 86 connection.setInitializing(); in onCreateOutgoingConnection() 87 connection.onAddedToCallService(); in onCreateOutgoingConnection() 92 connection.setDisconnected(new android.telecom.DisconnectCause( in onCreateOutgoingConnection() 103 connection.setDisconnected(new android.telecom.DisconnectCause( in onCreateOutgoingConnection() 117 connection.setDisconnected(DisconnectCauseUtil.toTelecomDisconnectCause( in onCreateOutgoingConnection() 119 connection.destroy(); in onCreateOutgoingConnection() 124 connection.setDisconnected(DisconnectCauseUtil.toTelecomDisconnectCause( in onCreateOutgoingConnection() 126 connection.destroy(); in onCreateOutgoingConnection() [all …]
|
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
D | UsbUtil.java | 35 UsbDeviceConnection connection = openConnection(usbManager, device); in findAllPossibleAndroidDevices() local 36 if (AoapInterface.isSupported(connection)) { in findAllPossibleAndroidDevices() 39 connection.close(); in findAllPossibleAndroidDevices() 49 public static void sendAoapAccessoryStart(UsbDeviceConnection connection, String manufacturer, in sendAoapAccessoryStart() argument 52 AoapInterface.sendString(connection, AoapInterface.ACCESSORY_STRING_MANUFACTURER, in sendAoapAccessoryStart() 54 AoapInterface.sendString(connection, AoapInterface.ACCESSORY_STRING_MODEL, in sendAoapAccessoryStart() 56 AoapInterface.sendString(connection, AoapInterface.ACCESSORY_STRING_DESCRIPTION, in sendAoapAccessoryStart() 58 AoapInterface.sendString(connection, AoapInterface.ACCESSORY_STRING_VERSION, in sendAoapAccessoryStart() 60 AoapInterface.sendString(connection, AoapInterface.ACCESSORY_STRING_URI, uri); in sendAoapAccessoryStart() 61 AoapInterface.sendString(connection, AoapInterface.ACCESSORY_STRING_SERIAL,serial); in sendAoapAccessoryStart() [all …]
|