/packages/services/Telephony/src/com/android/services/telephony/ |
D | TelephonyConferenceController.java | 59 public void onDestroyed(Connection connection) { 61 remove((TelephonyConnection) connection); 82 void add(TelephonyConnection connection) { in add() argument 83 if (mTelephonyConnections.contains(connection)) { in add() 85 Log.w(this, "add - connection already tracked; connection=%s", connection); in add() 88 mTelephonyConnections.add(connection); in add() 89 connection.addTelephonyConnectionListener(mTelephonyConnectionListener); in add() 93 void remove(TelephonyConnection connection) { in remove() argument 94 if (!mTelephonyConnections.contains(connection)) { in remove() 97 Log.d(this, "remove - connection not tracked; connection=%s", connection); in remove() [all …]
|
D | ImsConferenceController.java | 101 public void onDestroyed(Connection connection) { 102 remove(connection); 157 void add(TelephonyConnection connection) { in add() argument 160 if ((connection.getConnectionProperties() & Connection.PROPERTY_IS_EXTERNAL_CALL) == in add() 165 if (mTelephonyConnections.contains(connection)) { in add() 167 Log.w(this, "add - connection already tracked; connection=%s", connection); in add() 174 Log.v(this, "add connection %s", connection); in add() 177 mTelephonyConnections.add(connection); in add() 178 connection.addTelephonyConnectionListener(mTelephonyConnectionListener); in add() 188 void remove(Connection connection) { in remove() argument [all …]
|
D | TelephonyConference.java | 53 for (Connection connection : getConnections()) { in onDisconnect() 54 if (disconnectCall(connection)) { in onDisconnect() 66 private boolean disconnectCall(Connection connection) { in disconnectCall() argument 67 Call call = getMultipartyCallForConnection(connection, "onDisconnect"); in disconnectCall() 86 public void onSeparate(Connection connection) { in onSeparate() argument 88 getOriginalConnection(connection); in onSeparate() 113 public void onMerge(Connection connection) { in onMerge() argument 115 Phone phone = ((TelephonyConnection) connection).getPhone(); in onMerge() 129 final TelephonyConnection connection = getFirstConnection(); in onHold() local 130 if (connection != null) { in onHold() [all …]
|
D | PstnIncomingCallNotifier.java | 138 Connection connection = (Connection) asyncResult.result; in handleNewRingingConnection() local 139 if (connection != null) { in handleNewRingingConnection() 140 Call call = connection.getCall(); in handleNewRingingConnection() 142 if (connection.getAddress() != null) { in handleNewRingingConnection() 144 .checkIncomingCall(connection.getAddress())) { in handleNewRingingConnection() 148 connection.hangup(); in handleNewRingingConnection() 161 sendIncomingCallIntent(connection); in handleNewRingingConnection() 171 Connection connection = call.getLatestConnection(); in handleCdmaCallWaiting() local 172 if (connection != null) { in handleCdmaCallWaiting() 173 String number = connection.getAddress(); in handleCdmaCallWaiting() [all …]
|
D | CdmaConferenceController.java | 93 void add(final CdmaConnection connection) { in add() argument 94 if (mCdmaConnections.contains(connection)) { in add() 96 Log.w(this, "add - connection already tracked; connection=%s", connection); in add() 100 if (!mCdmaConnections.isEmpty() && connection.isOutgoingCall()) { in add() 107 connection.forceAsDialing(true); in add() 118 connection.forceAsDialing(false); in add() 119 addInternal(connection); in add() 137 mHandler.post(() -> addInternal(connection)); in add() 141 private void addInternal(CdmaConnection connection) { in addInternal() argument 142 mCdmaConnections.add(connection); in addInternal() [all …]
|
D | TelephonyConnectionService.java | 119 Connection connection) { 121 .addExistingConnection(phoneAccountHandle, connection); 125 Connection connection, Conference conference) { 127 .addExistingConnection(phoneAccountHandle, connection, conference); 130 public void addConnectionToConferenceController(TelephonyConnection connection) { 131 TelephonyConnectionService.this.addConnectionToConferenceController(connection); 504 public void onConferenceMembershipChanged(Connection connection) { 505 mHoldTracker.updateHoldCapability(connection.getPhoneAccountHandle()); 587 TelephonyConnection connection = (TelephonyConnection)conn; in prepareConference() local 590 mTelephonyConnectionServiceProxy, connection, in prepareConference() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/network/ |
D | HttpUrlConnectionBuilderTests.java | 71 HttpURLConnection connection = builder.build(); in testSetConnectTimeout() local 72 assertEquals(8765, connection.getConnectTimeout()); in testSetConnectTimeout() 91 HttpURLConnection connection = builder.build(); in testSetReadTimeout() local 92 assertEquals(8765, connection.getReadTimeout()); in testSetReadTimeout() 100 HttpURLConnection connection = builder.build(); in testAddHeader() local 101 assertEquals("some-random-value", connection.getRequestProperty("some-random-key")); in testAddHeader() 108 HttpURLConnection connection = builder.build(); in testSetUseCache_notSet() local 109 assertFalse(connection.getUseCaches()); in testSetUseCache_notSet() 116 HttpURLConnection connection = builder.build(); in testSetUseCache_false() local 117 connection.setUseCaches(false); in testSetUseCache_false() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/ |
D | HfpClientDeviceBlock.java | 91 HfpClientConnection connection = mConnections.get(call.getUUID()); in onCreateIncomingConnection() local 92 if (connection != null) { in onCreateIncomingConnection() 93 connection.onAdded(); in onCreateIncomingConnection() 94 return connection; in onCreateIncomingConnection() 102 HfpClientConnection connection = buildConnection(null, address); in onCreateOutgoingConnection() local 103 if (connection != null) { in onCreateOutgoingConnection() 104 connection.onAdded(); in onCreateOutgoingConnection() 106 return connection; in onCreateOutgoingConnection() 111 HfpClientConnection connection = mConnections.get(call.getUUID()); in onCreateUnknownConnection() local 113 if (connection != null) { in onCreateUnknownConnection() [all …]
|
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | TestConnectionService.java | 106 public void onSeparate(Connection connection) { in onSeparate() argument 107 if (getConnections().contains(connection)) { in onSeparate() 108 connection.setConference(null); in onSeparate() 109 removeConnection(connection); in onSeparate() 388 final TestConnection connection = 390 setAddress(connection, handle); 404 connection.setVideoState(originalRequest.getVideoState()); 405 addVideoProvider(connection); 406 addCall(connection); 407 connection.startOutgoing(); [all …]
|
D | SelfManagedCallListAdapter.java | 45 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag(); 46 connection.setConnectionDisconnected(DisconnectCause.LOCAL); 47 SelfManagedCallList.getInstance().removeConnection(connection); 58 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag(); 59 connection.setConnectionActive(); 71 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag(); 72 connection.setConnectionDisconnected(DisconnectCause.MISSED); 73 SelfManagedCallList.getInstance().removeConnection(connection); 81 SelfManagedConnection connection = (SelfManagedConnection) parent.getTag(); 82 connection.setConnectionHeld(); [all …]
|
D | SelfManagedConnectionService.java | 92 SelfManagedConnection connection = new SelfManagedConnection(mCallList, in createSelfManagedConnection() local 94 connection.setListener(mCallList.getConnectionListener()); in createSelfManagedConnection() 95 connection.setConnectionProperties(Connection.PROPERTY_SELF_MANAGED); in createSelfManagedConnection() 96 connection.setAddress(request.getAddress(), TelecomManager.PRESENTATION_ALLOWED); in createSelfManagedConnection() 99 connection.setVideoState(request.getVideoState()); in createSelfManagedConnection() 101 connection.setCallerDisplayName(TEST_NAMES[random.nextInt(TEST_NAMES.length)], in createSelfManagedConnection() 103 connection.setExtras(request.getExtras()); in createSelfManagedConnection() 105 connection.setIsIncomingCallUiShowing(request.shouldShowIncomingCallUi()); in createSelfManagedConnection() 106 connection.setRinging(); in createSelfManagedConnection() 108 connection.setDialing(); in createSelfManagedConnection() [all …]
|
D | TestConnectionManager.java | 45 public void onStateChanged(RemoteConnection connection, int state) { 51 RemoteConnection connection, DisconnectCause disconnectCause) { 57 public void onRingbackRequested(RemoteConnection connection, boolean ringback) { 62 public void onConnectionCapabilitiesChanged(RemoteConnection connection, 68 public void onConnectionPropertiesChanged(RemoteConnection connection, 74 public void onPostDialWait(RemoteConnection connection, String remainingDigits) { 79 public void onVoipAudioChanged(RemoteConnection connection, boolean isVoip) { 84 public void onStatusHintsChanged(RemoteConnection connection, StatusHints statusHints) { 89 public void onVideoStateChanged(RemoteConnection connection, int videoState) { 91 setVideoProvider(new TestManagedVideoProvider(connection.getVideoProvider())); [all …]
|
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/ |
D | SimulatorRttCall.java | 70 public void onNewOutgoingConnection(@NonNull SimulatorConnection connection) { in onNewOutgoingConnection() argument 71 if (isMyConnection(connection)) { in onNewOutgoingConnection() 73 handleNewConnection(connection); in onNewOutgoingConnection() 77 ThreadUtil.postOnUiThread(connection::setActive); in onNewOutgoingConnection() 82 public void onNewIncomingConnection(@NonNull SimulatorConnection connection) { in onNewIncomingConnection() argument 83 if (isMyConnection(connection)) { in onNewIncomingConnection() 85 handleNewConnection(connection); in onNewIncomingConnection() 93 private void handleNewConnection(@NonNull SimulatorConnection connection) { in handleNewConnection() argument 94 connection.addListener(this); in handleNewConnection() 95 connection.setConnectionProperties( in handleNewConnection() [all …]
|
D | SimulatorConnectionsBankImpl.java | 48 public void add(Connection connection) { in add() argument 49 connectionTags.add(SimulatorSimCallManager.getConnectionTag(connection)); in add() 53 public void remove(Connection connection) { in remove() argument 54 connectionTags.remove(SimulatorSimCallManager.getConnectionTag(connection)); in remove() 71 for (Connection connection : connections) { in mergeAllConnections() 72 simulatorConference.addConnection(connection); in mergeAllConnections() 82 for (Connection connection : connections) { in disconnectAllConnections() 83 connection.setDisconnected(new DisconnectCause(DisconnectCause.LOCAL)); in disconnectAllConnections() 91 SimulatorConnection connection = SimulatorSimCallManager.findConnectionByTag(connectionTag); in updateConferenceableConnections() local 93 conferenceables.remove(connection); in updateConferenceableConnections() [all …]
|
D | SimulatorVideoCall.java | 72 public void onNewOutgoingConnection(@NonNull SimulatorConnection connection) { in onNewOutgoingConnection() argument 73 if (connection.getExtras().getBoolean(connectionTag)) { in onNewOutgoingConnection() 75 handleNewConnection(connection); in onNewOutgoingConnection() 78 ThreadUtil.postOnUiThread(() -> connection.setActive()); in onNewOutgoingConnection() 83 public void onNewIncomingConnection(@NonNull SimulatorConnection connection) { in onNewIncomingConnection() argument 84 if (connection.getExtras().getBoolean(connectionTag)) { in onNewIncomingConnection() 86 handleNewConnection(connection); in onNewIncomingConnection() 107 private void handleNewConnection(@NonNull SimulatorConnection connection) { in handleNewConnection() argument 108 connection.addListener(this); in handleNewConnection() 109 connection.setConnectionCapabilities( in handleNewConnection() [all …]
|
D | SimulatorConnectionService.java | 86 SimulatorConnection connection = new SimulatorConnection(this, request); in onCreateOutgoingConnection() local 88 simulatorConnectionsBank.add(connection); in onCreateOutgoingConnection() 89 connection.setAddress( in onCreateOutgoingConnection() 94 connection.setDialing(); in onCreateOutgoingConnection() 101 listener.onNewOutgoingConnection(connection); in onCreateOutgoingConnection() 104 connection.setAddress(request.getAddress(), 1); in onCreateOutgoingConnection() 105 Bundle extras = connection.getExtras(); in onCreateOutgoingConnection() 107 connection.putExtras(extras); in onCreateOutgoingConnection() 108 simulatorConnectionsBank.add(connection); in onCreateOutgoingConnection() 109 connection.addListener(new NonSimulatorConnectionListener()); in onCreateOutgoingConnection() [all …]
|
D | SimulatorVoiceCall.java | 157 public void onNewOutgoingConnection(@NonNull SimulatorConnection connection) { in onNewOutgoingConnection() argument 158 if (isMyConnection(connection)) { in onNewOutgoingConnection() 160 handleNewConnection(connection); in onNewOutgoingConnection() 164 ThreadUtil.postOnUiThread(connection::setActive); in onNewOutgoingConnection() 169 public void onNewIncomingConnection(@NonNull SimulatorConnection connection) { in onNewIncomingConnection() argument 170 if (isMyConnection(connection)) { in onNewIncomingConnection() 172 handleNewConnection(connection); in onNewIncomingConnection() 180 private void handleNewConnection(@NonNull SimulatorConnection connection) { in handleNewConnection() argument 181 connection.addListener(this); in handleNewConnection() 182 connection.setConnectionCapabilities( in handleNewConnection() [all …]
|
D | SimulatorConferenceCreator.java | 110 public void onNewIncomingConnection(@NonNull SimulatorConnection connection) { in onNewIncomingConnection() argument 114 if (!simulatorConnectionsBank.isSimulatorConnection(connection)) { in onNewIncomingConnection() 119 connection.addListener(this); in onNewIncomingConnection() 123 connection.setActive(); in onNewIncomingConnection() 124 addNextCall(getCallCount(connection), shouldReconnect(connection)); in onNewIncomingConnection() 130 public void onNewOutgoingConnection(@NonNull SimulatorConnection connection) {} in onNewOutgoingConnection() argument 161 private static int getCallCount(@NonNull Connection connection) { in getCallCount() argument 162 return connection.getExtras().getInt(EXTRA_CALL_COUNT); in getCallCount() 165 private static boolean shouldReconnect(@NonNull Connection connection) { in shouldReconnect() argument 166 return connection.getExtras().getBoolean(RECONNECT); in shouldReconnect() [all …]
|
/packages/services/Car/car-usb-handler/src/android/car/usb/handler/ |
D | AoapServiceManager.java | 92 final AoapServiceConnection connection = getConnectionOrNull(serviceName); in isDeviceSupported() local 93 if (connection == null) { in isDeviceSupported() 98 return connection.isDeviceSupported(device) in isDeviceSupported() 112 final AoapServiceConnection connection = getConnectionOrNull(serviceName); in canSwitchDeviceToAoap() local 113 if (connection == null) { in canSwitchDeviceToAoap() 118 return connection.canSwitchDeviceToAoap(device) in canSwitchDeviceToAoap() 128 AoapServiceConnection connection; in getConnectionOrNull() local 130 connection = mConnections.get(name); in getConnectionOrNull() 131 if (connection != null) { in getConnectionOrNull() 132 postponeServiceDisconnection(connection); in getConnectionOrNull() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/vms/ |
D | VmsClientManagerTest.java | 480 ServiceConnection connection = mConnectionCaptor.getValue(); in bindSystemClient() local 481 connection.onServiceConnected(null, binder); in bindSystemClient() 498 ServiceConnection connection = mConnectionCaptor.getValue(); in bindUserClient() local 499 connection.onServiceConnected(null, binder); in bindUserClient() 509 ServiceConnection connection = mConnectionCaptor.getValue(); in testOnSystemServiceDisconnected() local 510 connection.onServiceConnected(null, createPublisherBinder()); in testOnSystemServiceDisconnected() 514 connection.onServiceDisconnected(null); in testOnSystemServiceDisconnected() 519 verify(mContext).unbindService(connection); in testOnSystemServiceDisconnected() 529 ServiceConnection connection = mConnectionCaptor.getValue(); in testOnSystemServiceDisconnected_ServiceReboundByAndroid() local 531 connection.onServiceConnected(null, binder); in testOnSystemServiceDisconnected_ServiceReboundByAndroid() [all …]
|
/packages/services/Mms/src/com/android/mms/service/ |
D | MmsHttpClient.java | 126 HttpURLConnection connection = null; in execute() local 136 connection = (HttpURLConnection) mNetwork.openConnection(url, proxy); in execute() 137 connection.setDoInput(true); in execute() 138 connection.setConnectTimeout( in execute() 140 connection.setReadTimeout( in execute() 144 connection.setRequestProperty(HEADER_ACCEPT, HEADER_VALUE_ACCEPT); in execute() 146 connection.setRequestProperty( in execute() 151 connection.setRequestProperty(HEADER_USER_AGENT, userAgent); in execute() 165 connection.setRequestProperty(uaProfUrlTagName, uaProfUrl); in execute() 173 connection.setRequestProperty(HEADER_CONNECTION, HEADER_CONNECTION_CLOSE); in execute() [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/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/apps/UniversalMediaPlayer/java/com/android/pump/util/ |
D | Http.java | 121 HttpURLConnection connection = null; in getOrPost() local 127 connection = (HttpURLConnection) url.openConnection(); in getOrPost() 128 headers.apply(connection); in getOrPost() 131 connection.setDoOutput(true); in getOrPost() 132 connection.setFixedLengthStreamingMode(data.length); in getOrPost() 134 outputStream = connection.getOutputStream(); in getOrPost() 136 checkResponseCode(connection); in getOrPost() 139 checkResponseCode(connection); in getOrPost() 140 inputStream = connection.getInputStream(); in getOrPost() 145 disconnect(connection); in getOrPost() [all …]
|
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/ |
D | CallExtrasTest.java | 88 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testCsPutExtras() local 89 connection.putExtras(extras); in testCsPutExtras() 110 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testCsPutBooleanExtra() local 114 connection.putExtras(newExtras); in testCsPutBooleanExtra() 135 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testCsPutIntExtra() local 138 connection.putExtras(newExtras); in testCsPutIntExtra() 159 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testCsPutStringExtra() local 162 connection.putExtras(newExtras); in testCsPutStringExtra() 185 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testCsRemoveExtra() local 189 connection.putExtras(newExtras); in testCsRemoveExtra() [all …]
|