Home
last modified time | relevance | path

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

123

/packages/services/Telephony/src/com/android/services/telephony/
DImsConference.java26 import android.telecom.Connection.VideoProvider;
27 import android.telecom.Connection;
74 private final Connection.Listener mParticipantListener = new Connection.Listener() {
81 public void onDestroyed(Connection connection) {
108 private final android.telecom.Connection.Listener mConferenceHostListener =
109 new android.telecom.Connection.Listener() {
118 public void onStateChanged(android.telecom.Connection c, int state) {
129 public void onDisconnected(android.telecom.Connection c, DisconnectCause disconnectCause) {
141 public void onConferenceParticipantsChanged(android.telecom.Connection c,
153 public void onVideoStateChanged(android.telecom.Connection c, int videoState) {
[all …]
DTelephonyConferenceController.java32 import android.telecom.Connection;
48 private final Connection.Listener mConnectionListener = new Connection.Listener() {
50 public void onStateChanged(Connection c, int state) {
58 public void onDisconnected(Connection c, DisconnectCause disconnectCause) {
63 public void onDestroyed(Connection connection) {
96 void remove(Connection connection) { in remove()
117 private boolean participatesInFullConference(Connection connection) { in participatesInFullConference()
127 HashSet<Connection> conferenceableConnections = new HashSet<>(mTelephonyConnections.size()); in recalculateConferenceable()
136 case Connection.STATE_ACTIVE: in recalculateConferenceable()
138 case Connection.STATE_HOLDING: in recalculateConferenceable()
[all …]
DTelephonyConnectionService.java27 import android.telecom.Connection;
79 public Collection<Connection> getAllConnections() {
91 public void removeConnection(Connection connection) {
96 Connection connection) {
102 Connection connection, Conference conference) {
256 public Connection onCreateOutgoingConnection( in onCreateOutgoingConnection()
264 return Connection.createFailedConnection( in onCreateOutgoingConnection()
278 return Connection.createFailedConnection( in onCreateOutgoingConnection()
286 return Connection.createFailedConnection( in onCreateOutgoingConnection()
297 return Connection.createFailedConnection( in onCreateOutgoingConnection()
[all …]
DTelephonyConference.java20 import android.telecom.Connection;
38 Connection.CAPABILITY_SUPPORT_HOLD | in TelephonyConference()
39 Connection.CAPABILITY_HOLD | in TelephonyConference()
40 Connection.CAPABILITY_MUTE | in TelephonyConference()
41 Connection.CAPABILITY_MANAGE_CONFERENCE); in TelephonyConference()
50 for (Connection connection : getConnections()) { in onDisconnect()
63 private boolean disconnectCall(Connection connection) { in disconnectCall()
83 public void onSeparate(Connection connection) { in onSeparate()
84 com.android.internal.telephony.Connection radioConnection = in onSeparate()
94 public void onMerge(Connection connection) { in onMerge()
[all …]
DImsConferenceController.java25 import android.telecom.Connection;
61 private final Connection.Listener mConnectionListener = new Connection.Listener() {
63 public void onStateChanged(Connection c, int state) {
69 public void onDisconnected(Connection c, DisconnectCause disconnectCause) {
75 public void onDestroyed(Connection connection) {
86 public void onConferenceSupportedChanged(Connection c, boolean isConferenceSupported) {
129 if ((connection.getConnectionProperties() & Connection.PROPERTY_IS_EXTERNAL_CALL) == in add()
130 Connection.PROPERTY_IS_EXTERNAL_CALL) { in add()
156 void remove(Connection connection) { in remove()
158 if ((connection.getConnectionProperties() & Connection.PROPERTY_IS_EXTERNAL_CALL) == in remove()
[all …]
DTelephonyConnection.java29 import android.telecom.Connection;
45 import com.android.internal.telephony.Connection.Capability;
46 import com.android.internal.telephony.Connection.PostDialListener;
72 abstract class TelephonyConnection extends Connection {
108 com.android.internal.telephony.Connection connection =
109 (com.android.internal.telephony.Connection) ar.result;
165 Connection.EXTRA_LAST_FORWARDED_NUMBER,
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;
[all …]
DCdmaConference.java22 import android.telecom.Connection;
44 mProperties = Connection.PROPERTY_GENERIC_CONFERENCE; in CdmaConference()
49 capabilities |= Connection.CAPABILITY_MUTE; in updateCapabilities()
70 public void onSeparate(Connection connection) { in onSeparate()
91 mCapabilities &= ~Connection.CAPABILITY_MERGE_CONFERENCE; in onMerge()
94 mCapabilities |= Connection.CAPABILITY_SWAP_CONFERENCE; in onMerge()
138 private Call getMultipartyCallForConnection(Connection connection) { in getMultipartyCallForConnection()
139 com.android.internal.telephony.Connection radioConnection = in getMultipartyCallForConnection()
151 List<Connection> connections = getConnections(); in getOriginalCall()
153 com.android.internal.telephony.Connection originalConnection = in getOriginalCall()
[all …]
DCdmaConferenceController.java22 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()
DPstnIncomingCallNotifier.java36 import com.android.internal.telephony.Connection;
133 Connection connection = (Connection) asyncResult.result; in handleNewRingingConnection()
149 Connection connection = call.getLatestConnection(); in handleCdmaCallWaiting()
161 if (!(asyncResult.result instanceof Connection)) { in handleNewUnknownConnection()
165 Connection connection = (Connection) asyncResult.result; in handleNewUnknownConnection()
183 private void addNewUnknownCall(Connection connection) { in addNewUnknownCall()
226 private void sendIncomingCallIntent(Connection connection) { in sendIncomingCallIntent()
287 private boolean maybeSwapAnyWithUnknownConnection(Connection unknown) { in maybeSwapAnyWithUnknownConnection()
293 for (android.telecom.Connection telephonyConnection : service in maybeSwapAnyWithUnknownConnection()
311 Connection unknown) { in maybeSwapWithUnknownConnection()
[all …]
DCdmaConnection.java28 import com.android.internal.telephony.Connection;
77 Connection connection, in CdmaConnection()
115 Connection connection = getOriginalConnection(); in onReject()
156 Connection originalConnection = getOriginalConnection(); in onStateChanged()
161 if (state == android.telecom.Connection.STATE_DIALING) { in onStateChanged()
185 public void performConference(android.telecom.Connection otherConnection) { in performConference()
220 Connection originalConnection = getOriginalConnection(); in hangupCallWaiting()
DTelephonyConnectionServiceProxy.java20 import android.telecom.Connection;
30 Collection<Connection> getAllConnections(); in getAllConnections()
33 void removeConnection(Connection connection); in removeConnection()
35 Connection connection); in addExistingConnection()
37 Connection connection, Conference conference); in addExistingConnection()
/packages/services/Telecomm/src/com/android/server/telecom/
DParcelableCallUtils.java20 import android.telecom.Connection;
246 Connection.CAPABILITY_HOLD,
249 Connection.CAPABILITY_SUPPORT_HOLD,
252 Connection.CAPABILITY_MERGE_CONFERENCE,
255 Connection.CAPABILITY_SWAP_CONFERENCE,
258 Connection.CAPABILITY_RESPOND_VIA_TEXT,
261 Connection.CAPABILITY_MUTE,
264 Connection.CAPABILITY_MANAGE_CONFERENCE,
267 Connection.CAPABILITY_SUPPORTS_VT_LOCAL_RX,
270 Connection.CAPABILITY_SUPPORTS_VT_LOCAL_TX,
[all …]
DCall.java34 import android.telecom.Connection;
607 Connection.capabilitiesToString(getConnectionCapabilities()), in toString()
608 Connection.propertiesToString(getConnectionProperties())); in toString()
1021 return (getConnectionProperties() & Connection.PROPERTY_IS_EXTERNAL_CALL) == in isExternalCall()
1022 Connection.PROPERTY_IS_EXTERNAL_CALL; in isExternalCall()
1147 Log.v(this, "setConnectionCapabilities: %s", Connection.capabilitiesToString( in setConnectionCapabilities()
1167 Connection.capabilitiesToStringShort(mConnectionCapabilities), in setConnectionCapabilities()
1168 Connection.capabilitiesToStringShort(previousCapabilities & xorCaps), in setConnectionCapabilities()
1169 Connection.capabilitiesToStringShort(mConnectionCapabilities & xorCaps)); in setConnectionCapabilities()
1174 Log.v(this, "setConnectionProperties: %s", Connection.propertiesToString( in setConnectionProperties()
[all …]
DBluetoothPhoneServiceImpl.java31 import android.telecom.Connection;
519 if (activeCall != null && activeCall.can(Connection.CAPABILITY_SWAP_CONFERENCE)) { in processChld()
532 } else if (activeCall != null && activeCall.can(Connection.CAPABILITY_HOLD)) { in processChld()
538 if (activeCall.can(Connection.CAPABILITY_MERGE_CONFERENCE)) { in processChld()
566 .can(Connection.CAPABILITY_CONFERENCE_HAS_NO_CHILDREN))) { in sendListOfCalls()
581 .can(Connection.CAPABILITY_CONFERENCE_HAS_NO_CHILDREN); in sendClccForCall()
603 conferenceCall.can(Connection.CAPABILITY_MERGE_CONFERENCE) || in sendClccForCall()
604 (conferenceCall.can(Connection.CAPABILITY_SWAP_CONFERENCE) && in sendClccForCall()
619 conferenceCall.can(Connection.CAPABILITY_MANAGE_CONFERENCE)) { in sendClccForCall()
723 !activeCall.can(Connection.CAPABILITY_CONFERENCE_HAS_NO_CHILDREN)) { in updateHeadsetWithCallState()
[all …]
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestConnectionService.java30 import android.telecom.Connection;
66 private final Connection.Listener mConnectionListener = new Connection.Listener() {
68 public void onDestroyed(Connection c) {
77 public TestConference(Connection a, Connection b) { in TestConference()
80 Connection.CAPABILITY_SUPPORT_HOLD | in TestConference()
81 Connection.CAPABILITY_HOLD | in TestConference()
82 Connection.CAPABILITY_MUTE | in TestConference()
83 Connection.CAPABILITY_MANAGE_CONFERENCE); in TestConference()
98 for (Connection c : getConnections()) { in onDisconnect()
105 public void onSeparate(Connection connection) { in onSeparate()
[all …]
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
149 Set<Connection> mConnections = new HashSet<Connection>();
228 mConnections.add(new Connection(connId, address, id)); in addConnection()
238 Iterator<Connection> i = mConnections.iterator(); in removeConnection()
240 Connection connection = i.next(); in removeConnection()
253 Iterator<Connection> i = mConnections.iterator(); in removeConnectionsByAppId()
255 Connection connection = i.next(); in removeConnectionsByAppId()
347 Iterator<Connection> i = mConnections.iterator(); in getConnectedDevices()
349 Connection connection = i.next(); in getConnectedDevices()
[all …]
/packages/services/Telephony/sip/src/com/android/services/telephony/sip/
DSipConnectionService.java30 import android.telecom.Connection;
65 public Connection onCreateOutgoingConnection( in onCreateOutgoingConnection()
73 return Connection.createFailedConnection(DisconnectCauseUtil.toTelecomDisconnectCause( in onCreateOutgoingConnection()
80 return Connection.createFailedConnection(DisconnectCauseUtil.toTelecomDisconnectCause( in onCreateOutgoingConnection()
121 com.android.internal.telephony.Connection chosenConnection = in onCreateOutgoingConnection()
140 public Connection onCreateIncomingConnection( in onCreateIncomingConnection()
147 return Connection.createFailedConnection(DisconnectCauseUtil.toTelecomDisconnectCause( in onCreateIncomingConnection()
155 return Connection.createFailedConnection(DisconnectCauseUtil.toTelecomDisconnectCause( in onCreateIncomingConnection()
164 return Connection.createCanceledConnection(); in onCreateIncomingConnection()
172 com.android.internal.telephony.Connection originalConnection = phone.takeIncomingCall( in onCreateIncomingConnection()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DConnectionServiceFixture.java37 import android.telecom.Connection;
81 public Connection onCreateUnknownConnection( in onCreateUnknownConnection()
88 public Connection onCreateIncomingConnection( in onCreateIncomingConnection()
105 public Connection onCreateOutgoingConnection( in onCreateOutgoingConnection()
120 public void onCreateConnectionComplete(Connection connection) { in onCreateConnectionComplete()
124 public void onConference(Connection cxn1, Connection cxn2) { in onConference()
144 public class FakeConnection extends Connection {
178 Connection.CAPABILITY_SUPPORT_HOLD in FakeConference()
179 | Connection.CAPABILITY_HOLD in FakeConference()
180 | Connection.CAPABILITY_MUTE in FakeConference()
[all …]
DBluetoothPhoneServiceTest.java26 import android.telecom.Connection;
276 addCallCapability(parentCall, Connection.CAPABILITY_MERGE_CONFERENCE); in testConferenceInProgressCDMA()
277 addCallCapability(parentCall, Connection.CAPABILITY_SWAP_CONFERENCE); in testConferenceInProgressCDMA()
278 removeCallCapability(parentCall, Connection.CAPABILITY_CONFERENCE_HAS_NO_CHILDREN); in testConferenceInProgressCDMA()
323 addCallCapability(parentCall, Connection.CAPABILITY_MERGE_CONFERENCE); in testListCurrentCallsCdmaHold()
324 addCallCapability(parentCall, Connection.CAPABILITY_SWAP_CONFERENCE); in testListCurrentCallsCdmaHold()
325 removeCallCapability(parentCall, Connection.CAPABILITY_CONFERENCE_HAS_NO_CHILDREN); in testListCurrentCallsCdmaHold()
364 removeCallCapability(parentCall, Connection.CAPABILITY_MERGE_CONFERENCE); in testListCurrentCallsCdmaConference()
365 removeCallCapability(parentCall, Connection.CAPABILITY_CONFERENCE_HAS_NO_CHILDREN); in testListCurrentCallsCdmaConference()
531 addCallCapability(parentCall, Connection.CAPABILITY_CONFERENCE_HAS_NO_CHILDREN); in testListCurrentCallsImsConference()
[all …]
DCallExtrasTest.java22 import android.telecom.Connection;
61 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testCsPutExtras()
82 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testCsPutBooleanExtra()
103 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testCsPutIntExtra()
124 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testCsPutStringExtra()
147 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testCsRemoveExtra()
176 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testCsUpdateExisting()
212 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testCsSetExtras()
257 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testICSPutExtras()
278 Connection connection = mConnectionServiceFixtureA.mLatestConnection; in testExtrasBidirectional()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/
DHfpClientConference.java23 import android.telecom.Connection;
43 setConnectionCapabilities(Connection.CAPABILITY_SUPPORT_HOLD | in HfpClientConference()
44 Connection.CAPABILITY_HOLD | in HfpClientConference()
45 (manage ? Connection.CAPABILITY_MANAGE_CONFERENCE : 0)); in HfpClientConference()
56 public void onMerge(Connection connection) { in onMerge()
62 public void onSeparate(Connection connection) { in onSeparate()
94 public void onConnectionAdded(Connection connection) { in onConnectionAdded()
96 if (connection.getState() == Connection.STATE_HOLDING && in onConnectionAdded()
97 getState() == Connection.STATE_ACTIVE) { in onConnectionAdded()
99 } else if (connection.getState() == Connection.STATE_ACTIVE && in onConnectionAdded()
[all …]
DHfpClientDeviceBlock.java31 import android.telecom.Connection;
108 synchronized Connection onCreateIncomingConnection(BluetoothHeadsetClientCall call) { in onCreateIncomingConnection()
120 Connection onCreateOutgoingConnection(Uri address) { in onCreateOutgoingConnection()
128 synchronized Connection onCreateUnknownConnection(BluetoothHeadsetClientCall call) { in onCreateUnknownConnection()
142 synchronized void onConference(Connection connection1, Connection connection2) { in onConference()
275 if (connection.getState() != Connection.STATE_DISCONNECTED) { in buildConnection()
293 for (Connection confConn : mConference.getConnections()) { in updateConferenceableConnections()
306 for (Connection otherConn : mConnections.values()) { in updateConferenceableConnections()
/packages/services/Telephony/src/com/android/phone/
DCallGatewayManager.java26 import com.android.internal.telephony.Connection;
70 private final ConcurrentHashMap<Connection, RawGatewayInfo> mMap =
71 new ConcurrentHashMap<Connection, RawGatewayInfo>(4, 0.9f, 1);
104 public void setGatewayInfoForConnection(Connection connection, RawGatewayInfo gatewayInfo) { in setGatewayInfoForConnection()
115 public void clearGatewayData(Connection connection) { in clearGatewayData()
124 public RawGatewayInfo getGatewayInfo(Connection connection) { in getGatewayInfo()
/packages/apps/Dialer/java/com/android/incallui/videotech/ims/
DImsVideoCallCallback.java21 import android.telecom.Connection;
22 import android.telecom.Connection.VideoProvider;
167 case Connection.VideoProvider.SESSION_EVENT_RX_PAUSE: in onCallSessionEvent()
170 case Connection.VideoProvider.SESSION_EVENT_RX_RESUME: in onCallSessionEvent()
173 case Connection.VideoProvider.SESSION_EVENT_CAMERA_FAILURE: in onCallSessionEvent()
176 case Connection.VideoProvider.SESSION_EVENT_CAMERA_READY: in onCallSessionEvent()

123