Home
last modified time | relevance | path

Searched refs:Connection (Results 1 – 25 of 72) sorted by relevance

123

/packages/services/Telephony/src/com/android/services/telephony/
DImsConference.java26 import android.telecom.Connection;
27 import android.telecom.Connection.VideoProvider;
84 private final Connection.Listener mParticipantListener = new Connection.Listener() {
91 public void onDestroyed(Connection connection) {
118 private final android.telecom.Connection.Listener mConferenceHostListener =
119 new android.telecom.Connection.Listener() {
128 public void onStateChanged(android.telecom.Connection c, int state) {
139 public void onDisconnected(android.telecom.Connection c, DisconnectCause disconnectCause) {
151 public void onConferenceParticipantsChanged(android.telecom.Connection c,
163 public void onVideoStateChanged(android.telecom.Connection c, int videoState) {
[all …]
DTelephonyConference.java20 import android.telecom.Connection;
40 Connection.CAPABILITY_SUPPORT_HOLD | in TelephonyConference()
41 Connection.CAPABILITY_HOLD | in TelephonyConference()
42 Connection.CAPABILITY_MUTE | in TelephonyConference()
43 Connection.CAPABILITY_MANAGE_CONFERENCE); in TelephonyConference()
53 for (Connection connection : getConnections()) { in onDisconnect()
66 private boolean disconnectCall(Connection connection) { in disconnectCall()
86 public void onSeparate(Connection connection) { in onSeparate()
87 com.android.internal.telephony.Connection radioConnection = in onSeparate()
97 public void onMerge(Connection connection) { in onMerge()
[all …]
DTelephonyConferenceController.java20 import android.telecom.Connection;
44 private final Connection.Listener mConnectionListener = new Connection.Listener() {
46 public void onStateChanged(Connection c, int state) {
54 public void onDisconnected(Connection c, DisconnectCause disconnectCause) {
59 public void onDestroyed(Connection connection) {
92 void remove(Connection connection) { in remove()
113 private boolean participatesInFullConference(Connection connection) { in participatesInFullConference()
123 HashSet<Connection> conferenceableConnections = new HashSet<>(mTelephonyConnections.size()); in recalculateConferenceable()
132 case Connection.STATE_ACTIVE: in recalculateConferenceable()
134 case Connection.STATE_HOLDING: in recalculateConferenceable()
[all …]
DImsConferenceController.java21 import android.telecom.Connection;
60 private final Connection.Listener mConnectionListener = new Connection.Listener() {
62 public void onStateChanged(Connection c, int state) {
68 public void onDisconnected(Connection c, DisconnectCause disconnectCause) {
74 public void onDestroyed(Connection connection) {
85 public void onConferenceSupportedChanged(Connection c, boolean isConferenceSupported) {
133 if ((connection.getConnectionProperties() & Connection.PROPERTY_IS_EXTERNAL_CALL) == in add()
134 Connection.PROPERTY_IS_EXTERNAL_CALL) { in add()
160 void remove(Connection connection) { in remove()
162 if ((connection.getConnectionProperties() & Connection.PROPERTY_IS_EXTERNAL_CALL) == in remove()
[all …]
DTelephonyConnectionService.java30 import android.telecom.Connection;
98 public Collection<Connection> getAllConnections() {
110 public void removeConnection(Connection connection) {
115 Connection connection) {
121 Connection connection, Conference conference) {
131 private final Connection.Listener mConnectionListener = new Connection.Listener() {
133 public void onConferenceChanged(Connection connection, Conference conference) {
341 public Connection onCreateOutgoingConnection( in onCreateOutgoingConnection()
349 return Connection.createFailedConnection( in onCreateOutgoingConnection()
364 return Connection.createFailedConnection( in onCreateOutgoingConnection()
[all …]
DCdmaConference.java22 import android.telecom.Connection;
44 mProperties = Connection.PROPERTY_GENERIC_CONFERENCE; in CdmaConference()
51 capabilities |= Connection.CAPABILITY_MUTE; in updateCapabilities()
72 public void onSeparate(Connection connection) { in onSeparate()
93 mCapabilities &= ~Connection.CAPABILITY_MERGE_CONFERENCE; in onMerge()
96 mCapabilities |= Connection.CAPABILITY_SWAP_CONFERENCE; in onMerge()
140 private Call getMultipartyCallForConnection(Connection connection) { in getMultipartyCallForConnection()
141 com.android.internal.telephony.Connection radioConnection = in getMultipartyCallForConnection()
153 List<Connection> connections = getConnections(); in getOriginalCall()
155 com.android.internal.telephony.Connection originalConnection = in getOriginalCall()
[all …]
DCdmaConferenceController.java20 import android.telecom.Connection;
51 private final Connection.Listener mConnectionListener = new Connection.Listener() {
53 public void onStateChanged(Connection c, int state) {
58 public void onDisconnected(Connection c, DisconnectCause disconnectCause) {
63 public void onDestroyed(Connection c) {
164 connection.getState() != Connection.STATE_DISCONNECTED) { in recalculateConference()
187 mConference.updateCapabilities(Connection.CAPABILITY_MERGE_CONFERENCE); in recalculateConference()
191 mConference.updateCapabilities(Connection.CAPABILITY_SWAP_CONFERENCE); in recalculateConference()
195 List<Connection> existingChildConnections = in recalculateConference()
206 for (Connection oldConnection : existingChildConnections) { in recalculateConference()
DTelephonyConnection.java30 import android.telecom.Connection;
49 import com.android.internal.telephony.Connection.Capability;
50 import com.android.internal.telephony.Connection.PostDialListener;
75 abstract class TelephonyConnection extends Connection implements Holdable {
113 com.android.internal.telephony.Connection connection =
114 (com.android.internal.telephony.Connection) ar.result;
210 Pair<com.android.internal.telephony.Connection, Boolean> heldInfo =
211 (Pair<com.android.internal.telephony.Connection, Boolean>)
218 com.android.internal.telephony.Connection heldConnection = heldInfo.first;
421 private final com.android.internal.telephony.Connection.Listener mOriginalConnectionListener =
[all …]
DPstnIncomingCallNotifier.java32 import com.android.internal.telephony.Connection;
127 Connection connection = (Connection) asyncResult.result; in handleNewRingingConnection()
156 Connection connection = call.getLatestConnection(); in handleCdmaCallWaiting()
184 if (!(asyncResult.result instanceof Connection)) { in handleNewUnknownConnection()
188 Connection connection = (Connection) asyncResult.result; in handleNewUnknownConnection()
206 private void addNewUnknownCall(Connection connection) { in addNewUnknownCall()
249 private void sendIncomingCallIntent(Connection connection) { in sendIncomingCallIntent()
315 private boolean maybeSwapAnyWithUnknownConnection(Connection unknown) { in maybeSwapAnyWithUnknownConnection()
321 for (android.telecom.Connection telephonyConnection : service in maybeSwapAnyWithUnknownConnection()
339 Connection unknown) { in maybeSwapWithUnknownConnection()
[all …]
DCdmaConnection.java27 import com.android.internal.telephony.Connection;
81 Connection connection, in CdmaConnection()
119 Connection connection = getOriginalConnection(); in onReject()
160 Connection originalConnection = getOriginalConnection(); in onStateChanged()
165 if (state == android.telecom.Connection.STATE_DIALING) { in onStateChanged()
189 public void performConference(android.telecom.Connection otherConnection) { in performConference()
224 Connection originalConnection = getOriginalConnection(); in hangupCallWaiting()
320 void setOriginalConnection(com.android.internal.telephony.Connection originalConnection) { in setOriginalConnection()
/packages/services/Telecomm/src/com/android/server/telecom/
DParcelableCallUtils.java25 import android.telecom.Connection;
52 EXTRA_KEYS_TO_SANITIZE.add(android.telecom.Connection.EXTRA_SIP_INVITE);
63 RESTRICTED_CALL_SCREENING_EXTRA_KEYS.add(android.telecom.Connection.EXTRA_SIP_INVITE);
436 Connection.CAPABILITY_HOLD,
439 Connection.CAPABILITY_SUPPORT_HOLD,
442 Connection.CAPABILITY_MERGE_CONFERENCE,
445 Connection.CAPABILITY_SWAP_CONFERENCE,
448 Connection.CAPABILITY_RESPOND_VIA_TEXT,
451 Connection.CAPABILITY_MUTE,
454 Connection.CAPABILITY_MANAGE_CONFERENCE,
[all …]
DCall.java38 import android.telecom.Connection;
733 Connection.capabilitiesToString(getConnectionCapabilities()), in toString()
734 Connection.propertiesToString(getConnectionProperties())); in toString()
1149 return hasProperty(Connection.PROPERTY_NETWORK_IDENTIFIED_EMERGENCY_CALL); in isNetworkIdentifiedEmergencyCall()
1261 return (getConnectionProperties() & Connection.PROPERTY_IS_EXTERNAL_CALL) == in isExternalCall()
1262 Connection.PROPERTY_IS_EXTERNAL_CALL; in isExternalCall()
1301 return (getConnectionCapabilities() & Connection.CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL) in isLocallyVideoCapable()
1302 == Connection.CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL; in isLocallyVideoCapable()
1515 Log.v(this, "setConnectionCapabilities: %s", Connection.capabilitiesToString( in setConnectionCapabilities()
1535 Connection.capabilitiesToStringShort(mConnectionCapabilities), in setConnectionCapabilities()
[all …]
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestConnectionService.java36 import android.telecom.Connection;
82 private final Connection.Listener mConnectionListener = new Connection.Listener() {
84 public void onDestroyed(Connection c) {
93 public TestConference(Connection a, Connection b) { in TestConference()
96 Connection.CAPABILITY_SUPPORT_HOLD | in TestConference()
97 Connection.CAPABILITY_HOLD | in TestConference()
98 Connection.CAPABILITY_MUTE | in TestConference()
99 Connection.CAPABILITY_MANAGE_CONFERENCE); in TestConference()
114 for (Connection c : getConnections()) { in onDisconnect()
121 public void onSeparate(Connection connection) { in onSeparate()
[all …]
DSelfManagedConnectionService.java21 import android.telecom.Connection;
42 public Connection onCreateOutgoingConnection( in onCreateOutgoingConnection()
50 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateIncomingConnection()
56 public Connection onCreateOutgoingHandoverConnection(PhoneAccountHandle fromPhoneAccountHandle, in onCreateOutgoingHandoverConnection()
62 public Connection onCreateIncomingHandoverConnection(PhoneAccountHandle fromPhoneAccountHandle, in onCreateIncomingHandoverConnection()
90 private Connection createSelfManagedConnection(ConnectionRequest request, boolean isIncoming, in createSelfManagedConnection()
95 connection.setConnectionProperties(Connection.PROPERTY_SELF_MANAGED); in createSelfManagedConnection()
120 Connection.CAPABILITY_HOLD | Connection.CAPABILITY_SUPPORT_HOLD); in createSelfManagedConnection()
DTestConnectionManager.java22 import android.telecom.Connection;
43 public final class TestManagedConnection extends Connection {
119 List<Connection> c = new ArrayList<>();
254 case Connection.STATE_DISCONNECTED:
257 case Connection.STATE_HOLDING:
260 case Connection.STATE_ACTIVE:
356 public Connection onCreateOutgoingConnection( in onCreateOutgoingConnection()
363 public Connection onCreateIncomingConnection( in onCreateIncomingConnection()
370 public void onConference(Connection a, Connection b) { in onConference()
385 private Connection makeConnection(ConnectionRequest request, boolean incoming) { in makeConnection()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DContextMap.java48 class Connection { class in ContextMap
54 Connection(int connId, String address, int appId) { in Connection() method in ContextMap.Connection
171 Set<Connection> mConnections = new HashSet<Connection>();
252 mConnections.add(new Connection(connId, address, id)); in addConnection()
262 Iterator<Connection> i = mConnections.iterator(); in removeConnection()
264 Connection connection = i.next(); in removeConnection()
277 Iterator<Connection> i = mConnections.iterator(); in removeConnectionsByAppId()
279 Connection connection = i.next(); in removeConnectionsByAppId()
377 Iterator<Connection> i = mConnections.iterator(); in getConnectedDevices()
379 Connection connection = i.next(); in getConnectedDevices()
[all …]
/packages/apps/Dialer/java/com/android/dialer/simulator/impl/
DSimulatorConference.java22 import android.telecom.Connection;
54 Connection.CAPABILITY_MUTE in newGsmConference()
55 | Connection.CAPABILITY_SUPPORT_HOLD in newGsmConference()
56 | Connection.CAPABILITY_HOLD in newGsmConference()
57 | Connection.CAPABILITY_MANAGE_CONFERENCE); in newGsmConference()
65 Connection.CAPABILITY_MUTE in newVoLteConference()
66 | Connection.CAPABILITY_SUPPORT_HOLD in newVoLteConference()
67 | Connection.CAPABILITY_HOLD in newVoLteConference()
68 | Connection.CAPABILITY_MANAGE_CONFERENCE); in newVoLteConference()
92 public void onConnectionAdded(Connection connection) { in onConnectionAdded()
[all …]
DSimulatorConnectionsBankImpl.java22 import android.telecom.Connection;
48 public void add(Connection connection) { in add()
53 public void remove(Connection connection) { in remove()
69 Collection<Connection> connections = in mergeAllConnections()
71 for (Connection connection : connections) { in mergeAllConnections()
80 Collection<Connection> connections = in disconnectAllConnections()
82 for (Connection connection : connections) { in disconnectAllConnections()
113 public boolean isSimulatorConnection(@NonNull Connection connection) { in isSimulatorConnection()
127 capabilities |= Connection.CAPABILITY_SWAP_CONFERENCE; in onEvent()
136 for (Connection connection : new ArrayList<>(conference.getConnections())) { in onEvent()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DCallsManagerTest.java42 import android.telecom.Connection;
506 doReturn(true).when(ongoingCall).can(Connection.CAPABILITY_HOLD); in testUnholdCallWhenOngoingCallCanBeHeld()
507 doReturn(true).when(ongoingCall).can(Connection.CAPABILITY_SUPPORT_HOLD); in testUnholdCallWhenOngoingCallCanBeHeld()
529 doReturn(false).when(ongoingCall).can(Connection.CAPABILITY_HOLD); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService()
530 doReturn(false).when(ongoingCall).can(Connection.CAPABILITY_SUPPORT_HOLD); in testUnholdCallWhenOngoingCallCanNotBeHeldAndFromDifferentConnectionService()
553 doReturn(false).when(ongoingCall).can(Connection.CAPABILITY_HOLD); in testUnholdCallWhenOngoingEmergCallCanNotBeHeldAndFromDifferentConnectionService()
554 doReturn(false).when(ongoingCall).can(Connection.CAPABILITY_SUPPORT_HOLD); in testUnholdCallWhenOngoingEmergCallCanNotBeHeldAndFromDifferentConnectionService()
576 doReturn(false).when(ongoingCall).can(Connection.CAPABILITY_HOLD); in testUnholdCallWhenOngoingCallCanNotBeHeldAndHasSameConnectionService()
577 doReturn(true).when(ongoingCall).can(Connection.CAPABILITY_SUPPORT_HOLD); in testUnholdCallWhenOngoingCallCanNotBeHeldAndHasSameConnectionService()
599 doReturn(true).when(ongoingCall).can(Connection.CAPABILITY_HOLD); in testAnswerCallWhenOngoingCallCanBeHeld()
[all …]
DConnectionServiceFixture.java38 import android.telecom.Connection;
85 public Connection onCreateUnknownConnection( in onCreateUnknownConnection()
92 public Connection onCreateIncomingConnection( in onCreateIncomingConnection()
109 public Connection onCreateOutgoingConnection( in onCreateOutgoingConnection()
124 public void onCreateConnectionComplete(Connection connection) { in onCreateConnectionComplete()
128 public void onConference(Connection cxn1, Connection cxn2) { in onConference()
148 public class FakeConnection extends Connection {
182 Connection.CAPABILITY_SUPPORT_HOLD in FakeConference()
183 | Connection.CAPABILITY_HOLD in FakeConference()
184 | Connection.CAPABILITY_MUTE in FakeConference()
[all …]
DParcelableCallUtilsTest.java19 import android.telecom.Connection;
93 assertFalse(parceledExtras.containsKey(Connection.EXTRA_SIP_INVITE)); in testParcelForNonSystemDialer()
95 assertTrue(parceledExtras.containsKey(Connection.EXTRA_CALL_SUBJECT)); in testParcelForNonSystemDialer()
110 assertTrue(parceledExtras.containsKey(Connection.EXTRA_SIP_INVITE)); in testParcelForSystemDialer()
112 assertTrue(parceledExtras.containsKey(Connection.EXTRA_CALL_SUBJECT)); in testParcelForSystemDialer()
123 assertTrue(parceledExtras.containsKey(Connection.EXTRA_SIP_INVITE)); in testParcelForSystemCallScreening()
125 assertFalse(parceledExtras.containsKey(Connection.EXTRA_CALL_SUBJECT)); in testParcelForSystemCallScreening()
136 assertFalse(parceledExtras.containsKey(Connection.EXTRA_SIP_INVITE)); in testParcelForSystemNonSystemCallScreening()
138 assertFalse(parceledExtras.containsKey(Connection.EXTRA_CALL_SUBJECT)); in testParcelForSystemNonSystemCallScreening()
143 extras.putString(Connection.EXTRA_SIP_INVITE, "scary data"); in getSomeExtras()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/
DHfpClientConference.java21 import android.telecom.Connection;
38 Connection.CAPABILITY_SUPPORT_HOLD | Connection.CAPABILITY_HOLD | (manage in HfpClientConference()
39 ? Connection.CAPABILITY_MANAGE_CONFERENCE : 0)); in HfpClientConference()
50 public void onMerge(Connection connection) { in onMerge()
56 public void onSeparate(Connection connection) { in onSeparate()
83 public void onConnectionAdded(Connection connection) { in onConnectionAdded()
85 if (connection.getState() == Connection.STATE_HOLDING in onConnectionAdded()
86 && getState() == Connection.STATE_ACTIVE) { in onConnectionAdded()
88 } else if (connection.getState() == Connection.STATE_ACTIVE in onConnectionAdded()
89 && getState() == Connection.STATE_HOLDING) { in onConnectionAdded()
DHfpClientDeviceBlock.java24 import android.telecom.Connection;
90 synchronized Connection onCreateIncomingConnection(BluetoothHeadsetClientCall call) { in onCreateIncomingConnection()
101 Connection onCreateOutgoingConnection(Uri address) { in onCreateOutgoingConnection()
109 synchronized Connection onCreateUnknownConnection(BluetoothHeadsetClientCall call) { in onCreateUnknownConnection()
122 synchronized void onConference(Connection connection1, Connection connection2) { in onConference()
258 if (connection.getState() != Connection.STATE_DISCONNECTED) { in buildConnection()
276 for (Connection confConn : mConference.getConnections()) { in updateConferenceableConnections()
289 for (Connection otherConn : mConnections.values()) { in updateConferenceableConnections()
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipConnectionService.java30 import android.telecom.Connection;
66 public Connection onCreateOutgoingConnection( in onCreateOutgoingConnection()
74 return Connection.createFailedConnection(DisconnectCauseUtil.toTelecomDisconnectCause( in onCreateOutgoingConnection()
81 return Connection.createFailedConnection(DisconnectCauseUtil.toTelecomDisconnectCause( in onCreateOutgoingConnection()
122 com.android.internal.telephony.Connection chosenConnection = in onCreateOutgoingConnection()
141 public Connection onCreateIncomingConnection( in onCreateIncomingConnection()
148 return Connection.createFailedConnection(DisconnectCauseUtil.toTelecomDisconnectCause( in onCreateIncomingConnection()
156 return Connection.createFailedConnection(DisconnectCauseUtil.toTelecomDisconnectCause( in onCreateIncomingConnection()
165 return Connection.createCanceledConnection(); in onCreateIncomingConnection()
173 com.android.internal.telephony.Connection originalConnection = phone.takeIncomingCall( in onCreateIncomingConnection()
[all …]
/packages/services/Telephony/tests/src/com/android/services/telephony/
DImsConferenceTest.java38 import android.telecom.Connection;
89 Connection.STATE_ACTIVE, in testSinglePartyEmulation()
95 Connection.STATE_ACTIVE, in testSinglePartyEmulation()
101 any(PhoneAccountHandle.class), any(Connection.class), in testSinglePartyEmulation()
109 any(Connection.class)); in testSinglePartyEmulation()
117 any(PhoneAccountHandle.class), any(Connection.class), in testSinglePartyEmulation()
151 Connection.STATE_ACTIVE, in testSinglePartyEmulationWithPreDisconnectParticipantUpdate()
157 Connection.STATE_ACTIVE, in testSinglePartyEmulationWithPreDisconnectParticipantUpdate()
163 any(PhoneAccountHandle.class), any(Connection.class), in testSinglePartyEmulationWithPreDisconnectParticipantUpdate()
171 any(Connection.class)); in testSinglePartyEmulationWithPreDisconnectParticipantUpdate()
[all …]

123