Home
last modified time | relevance | path

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

12345678

/packages/services/Telephony/src/com/android/services/telephony/
DTelephonyConference.java20 import android.telecom.Connection;
41 Connection.CAPABILITY_SUPPORT_HOLD | in TelephonyConference()
42 Connection.CAPABILITY_HOLD | in TelephonyConference()
43 Connection.CAPABILITY_MUTE | in TelephonyConference()
44 Connection.CAPABILITY_MANAGE_CONFERENCE); in TelephonyConference()
54 for (Connection connection : getConnections()) { in onDisconnect()
67 private boolean disconnectCall(Connection connection) { in disconnectCall()
87 public void onSeparate(Connection connection) { in onSeparate()
88 com.android.internal.telephony.Connection radioConnection = in onSeparate()
114 public void onMerge(Connection connection) { in onMerge()
[all …]
DImsConference.java24 import android.telecom.Connection;
25 import android.telecom.Connection.VideoProvider;
216 public void onStateChanged(android.telecom.Connection c, int state) {
227 public void onDisconnected(android.telecom.Connection c,
233 public void onVideoStateChanged(android.telecom.Connection c, int videoState) {
239 public void onVideoProviderChanged(android.telecom.Connection c,
240 Connection.VideoProvider videoProvider) {
247 public void onConnectionCapabilitiesChanged(Connection c,
260 public void onConnectionPropertiesChanged(Connection c, int connectionProperties) {
267 public void onStatusHintsChanged(Connection c, StatusHints statusHints) {
[all …]
DTelephonyConferenceController.java20 import android.telecom.Connection;
49 public void onStateChanged(Connection c, int state) {
56 public void onDisconnected(Connection c, DisconnectCause disconnectCause) {
61 public void onDestroyed(Connection connection) {
116 private boolean participatesInFullConference(Connection connection) { in participatesInFullConference()
126 HashSet<Connection> conferenceableConnections = new HashSet<>(mTelephonyConnections.size()); in recalculateConferenceable()
135 case Connection.STATE_ACTIVE: in recalculateConferenceable()
137 case Connection.STATE_HOLDING: in recalculateConferenceable()
145 connection.setConferenceableConnections(Collections.<Connection>emptyList()); in recalculateConferenceable()
152 for (Connection c : conferenceableConnections) { in recalculateConferenceable()
[all …]
DImsConferenceController.java24 import android.telecom.Connection;
92 public void onConferenceSupportedChanged(Connection c, boolean isConferenceSupported) {
98 public void onStateChanged(Connection c, int state) {
104 public void onDisconnected(Connection c, DisconnectCause disconnectCause) {
110 public void onDestroyed(Connection connection) {
169 if ((connection.getConnectionProperties() & Connection.PROPERTY_IS_EXTERNAL_CALL) == in add()
170 Connection.PROPERTY_IS_EXTERNAL_CALL) { in add()
197 void remove(Connection connection) { in remove()
199 if ((connection.getConnectionProperties() & Connection.PROPERTY_IS_EXTERNAL_CALL) == in remove()
200 Connection.PROPERTY_IS_EXTERNAL_CALL) { in remove()
[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()
109 mCapabilities &= ~Connection.CAPABILITY_MERGE_CONFERENCE; in onMerge()
112 mCapabilities |= Connection.CAPABILITY_SWAP_CONFERENCE; in onMerge()
156 private Call getMultipartyCallForConnection(Connection connection) { in getMultipartyCallForConnection()
157 com.android.internal.telephony.Connection radioConnection = in getMultipartyCallForConnection()
169 List<Connection> connections = getConnections(); in getOriginalCall()
171 com.android.internal.telephony.Connection originalConnection = in getOriginalCall()
[all …]
DTelephonyConnection.java41 import android.telecom.Connection;
74 import com.android.internal.telephony.Connection.Capability;
75 import com.android.internal.telephony.Connection.PostDialListener;
116 abstract class TelephonyConnection extends Connection implements Holdable, Communicator.Callback {
177 com.android.internal.telephony.Connection connection =
178 (com.android.internal.telephony.Connection) ar.result;
266 Pair<com.android.internal.telephony.Connection, Boolean> heldInfo =
267 (Pair<com.android.internal.telephony.Connection, Boolean>)
274 com.android.internal.telephony.Connection heldConnection = heldInfo.first;
369 com.android.internal.telephony.Connection connection) { in onOriginalConnectionRedialed()
[all …]
DTelephonyConferenceBase.java22 import android.telecom.Connection;
48 public void onConferenceMembershipChanged(Connection connection) {} in onConferenceMembershipChanged()
106 public void addTelephonyConnection(@NonNull Connection connection) { in addTelephonyConnection()
119 public void removeTelephonyConnection(@NonNull Connection connection) { in removeTelephonyConnection()
136 Iterator<Connection> connectionIterator = getConnections().iterator(); in destroyTelephonyConference()
149 if (oldState == Connection.STATE_HOLDING) { in setConferenceOnHold()
161 if (oldState == Connection.STATE_DIALING) { in setConferenceOnDialing()
173 if (oldState == Connection.STATE_RINGING) { in setConferenceOnRinging()
185 if (oldState == Connection.STATE_ACTIVE) { in setConferenceOnActive()
196 final Connection primaryConnection = getPrimaryConnection(); in updateCallRadioTechAfterCreation()
[all …]
DTelephonyConnectionService.java44 import android.telecom.Connection;
161 public Collection<Connection> getAllConnections() {
170 Connection conferenceHost = mImsConference.getConferenceHost();
180 Connection connection) {
186 Connection connection, Conference conference) {
580 public void onStateChanged(Connection connection,
581 @Connection.ConnectionState int state) {
596 com.android.internal.telephony.Connection origConn = c.getOriginalConnection();
608 public void onStateChanged(Connection connection,
609 @Connection.ConnectionState int state) {
[all …]
DCdmaConferenceController.java20 import android.telecom.Connection;
57 public void onStateChanged(Connection c, int state) {
62 public void onDisconnected(Connection c, DisconnectCause disconnectCause) {
67 public void onDestroyed(Connection c) {
172 connection.getState() != Connection.STATE_DISCONNECTED) { in recalculateConference()
195 mConference.updateCapabilities(Connection.CAPABILITY_MERGE_CONFERENCE); in recalculateConference()
199 mConference.updateCapabilities(Connection.CAPABILITY_SWAP_CONFERENCE); in recalculateConference()
203 List<Connection> existingChildConnections = in recalculateConference()
214 for (Connection oldConnection : existingChildConnections) { in recalculateConference()
/packages/services/Telephony/tests/src/com/android/services/telephony/
DImsConferenceTest.java38 import android.telecom.Connection;
83 mConferenceHost.setConnectionProperties(Connection.PROPERTY_ASSISTED_DIALING in testPropertyPropagation()
84 | Connection.PROPERTY_WIFI); in testPropertyPropagation()
99 Connection.STATE_ACTIVE, in testPropertyPropagation()
105 Connection.STATE_ACTIVE, in testPropertyPropagation()
110 ArgumentCaptor<Connection> captor = ArgumentCaptor.forClass(Connection.class); in testPropertyPropagation()
116 for (Connection c : captor.getAllValues()) { in testPropertyPropagation()
117 assertEquals(0, c.getConnectionProperties() & Connection.PROPERTY_ASSISTED_DIALING); in testPropertyPropagation()
118 assertEquals(Connection.PROPERTY_WIFI, in testPropertyPropagation()
119 c.getConnectionProperties() & Connection.PROPERTY_WIFI); in testPropertyPropagation()
[all …]
DTelephonyConferenceControllerTest.java29 import android.telecom.Connection;
130 List<Connection> listConnections = Arrays.asList( in testSrvccConferenceConnection()
137 Connection.PROPERTY_IS_DOWNGRADED_CONFERENCE); in testSrvccConferenceConnection()
141 Connection.PROPERTY_IS_DOWNGRADED_CONFERENCE); in testSrvccConferenceConnection()
151 & Connection.PROPERTY_IS_DOWNGRADED_CONFERENCE) != 0); in testSrvccConferenceConnection()
155 & Connection.PROPERTY_IS_DOWNGRADED_CONFERENCE) != 0); in testSrvccConferenceConnection()
180 Collection<Connection> allConnections = new ArrayList<Connection>(); in testMergeMultiPartyCalls()
/packages/services/Telecomm/src/com/android/server/telecom/
DParcelableCallUtils.java25 import android.telecom.Connection;
53 EXTRA_KEYS_TO_SANITIZE.add(android.telecom.Connection.EXTRA_SIP_INVITE);
64 RESTRICTED_CALL_SCREENING_EXTRA_KEYS.add(android.telecom.Connection.EXTRA_SIP_INVITE);
450 Connection.CAPABILITY_HOLD,
453 Connection.CAPABILITY_SUPPORT_HOLD,
456 Connection.CAPABILITY_MERGE_CONFERENCE,
459 Connection.CAPABILITY_SWAP_CONFERENCE,
462 Connection.CAPABILITY_RESPOND_VIA_TEXT,
465 Connection.CAPABILITY_MUTE,
468 Connection.CAPABILITY_MANAGE_CONFERENCE,
[all …]
DCall.java52 import android.telecom.Connection;
432 private @Connection.VerificationStatus int mCallerNumberVerificationStatus;
1099 Connection.capabilitiesToStringShort(getConnectionCapabilities()), in toString()
1100 Connection.propertiesToStringShort(getConnectionProperties()), in toString()
1168 case Connection.VERIFICATION_STATUS_FAILED: in getDescription()
1171 case Connection.VERIFICATION_STATUS_NOT_VERIFIED: in getDescription()
1174 case Connection.VERIFICATION_STATUS_PASSED: in getDescription()
1561 @Connection.VerificationStatus int callerNumberVerificationStatus) { in setCallerNumberVerificationStatus()
1567 public @Connection.VerificationStatus int getCallerNumberVerificationStatus() { in getCallerNumberVerificationStatus()
1765 return hasProperty(Connection.PROPERTY_NETWORK_IDENTIFIED_EMERGENCY_CALL); in isNetworkIdentifiedEmergencyCall()
[all …]
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DParcelableCallUtilsTest.java17 import android.telecom.Connection;
103 assertFalse(parceledExtras.containsKey(Connection.EXTRA_SIP_INVITE)); in testParcelForNonSystemDialer()
106 assertTrue(parceledExtras.containsKey(Connection.EXTRA_CALL_SUBJECT)); in testParcelForNonSystemDialer()
121 assertTrue(parceledExtras.containsKey(Connection.EXTRA_SIP_INVITE)); in testParcelForSystemDialer()
124 assertTrue(parceledExtras.containsKey(Connection.EXTRA_CALL_SUBJECT)); in testParcelForSystemDialer()
135 assertTrue(parceledExtras.containsKey(Connection.EXTRA_SIP_INVITE)); in testParcelForSystemCallScreening()
138 assertFalse(parceledExtras.containsKey(Connection.EXTRA_CALL_SUBJECT)); in testParcelForSystemCallScreening()
149 assertFalse(parceledExtras.containsKey(Connection.EXTRA_SIP_INVITE)); in testParcelForSystemNonSystemCallScreening()
152 assertFalse(parceledExtras.containsKey(Connection.EXTRA_CALL_SUBJECT)); in testParcelForSystemNonSystemCallScreening()
158 checkVerStatParcelingForCallScreening(Connection.VERIFICATION_STATUS_NOT_VERIFIED, false); in testVerificationStatusParcelingForScreening()
[all …]
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/hfpclient/
DHfpClientConference.java20 import android.telecom.Connection;
39 Connection.CAPABILITY_SUPPORT_HOLD in HfpClientConference()
40 | Connection.CAPABILITY_HOLD in HfpClientConference()
41 | (manage ? Connection.CAPABILITY_MANAGE_CONFERENCE : 0)); in HfpClientConference()
52 public void onMerge(Connection connection) { in onMerge()
58 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()
[all …]
/packages/modules/Bluetooth/pandora/interfaces/pandora_experimental/
Dhfp.proto60 // Connection crafted by grpc server
61 Connection connection = 1;
66 // Connection crafted by grpc server
67 Connection connection = 1;
72 // Connection crafted by grpc server
73 Connection connection = 1;
115 Connection connection = 1;
126 Connection connection = 1;
132 Connection connection = 1;
138 Connection connection = 1;
[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/testapps/src/com/android/server/telecom/testapps/
DTestConnectionService.java36 import android.telecom.Connection;
81 public TestConference(Connection a, Connection b) { in TestConference()
84 Connection.CAPABILITY_SUPPORT_HOLD | in TestConference()
85 Connection.CAPABILITY_HOLD | in TestConference()
86 Connection.CAPABILITY_MUTE | in TestConference()
87 Connection.CAPABILITY_MANAGE_CONFERENCE); in TestConference()
99 for (Connection c : getConnections()) { in onDisconnect()
106 public void onSeparate(Connection connection) { in onSeparate()
115 for (Connection c : getConnections()) { in onHold()
123 for (Connection c : getConnections()) { in onUnhold()
[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()
91 private Connection createSelfManagedConnection(ConnectionRequest request, boolean isIncoming, in createSelfManagedConnection()
96 connection.setConnectionProperties(Connection.PROPERTY_SELF_MANAGED); in createSelfManagedConnection()
123 Connection.CAPABILITY_HOLD | Connection.CAPABILITY_SUPPORT_HOLD); in createSelfManagedConnection()
DTestConnectionManager.java22 import android.telecom.Connection;
42 public final class TestManagedConnection extends Connection {
118 List<Connection> c = new ArrayList<>();
253 case Connection.STATE_DISCONNECTED:
256 case Connection.STATE_HOLDING:
259 case Connection.STATE_ACTIVE:
355 public Connection onCreateOutgoingConnection( in onCreateOutgoingConnection()
362 public Connection onCreateIncomingConnection( in onCreateIncomingConnection()
369 public void onConference(Connection a, Connection b) { in onConference()
384 private Connection makeConnection(ConnectionRequest request, boolean incoming) { in makeConnection()
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/api/
DChronicle.kt42 fun <T : Connection> getConnection(request: ConnectionRequest<T>): ConnectionResult<T> in getAvailableConnectionTypes()
49 fun <T : Connection> getConnectionOrNull( in getAvailableConnectionTypes()
67 fun <T : Connection> getConnectionOrNull( in getConnectionOrNull()
75 fun <T : Connection> getConnectionOrThrow(request: ConnectionRequest<T>): T { in getConnectionOrThrow()
93 sealed class ConnectionResult<T : Connection> {
94 class Success<T : Connection>(val connection: T) : ConnectionResult<T>()
95 class Failure<T : Connection>(val error: ChronicleError) : ConnectionResult<T>()
102 inline fun <reified T : Connection> Chronicle.getConnection( in getConnection()
114 inline fun <reified T : Connection> Chronicle.getConnectionOrNull( in getConnection()
124 inline fun <reified T : Connection> Chronicle.getConnectionOrThrow(
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/hfpclient/connserv/
DHfpClientConnectionTest.java30 import android.telecom.Connection;
91 assertThat(mHfpClientConnection.getState()).isEqualTo(Connection.STATE_ACTIVE); in constructorWithCall()
100 Connection.CAPABILITY_SUPPORT_HOLD in constructorWithCall()
101 | Connection.CAPABILITY_MUTE in constructorWithCall()
102 | Connection.CAPABILITY_SEPARATE_FROM_CONFERENCE in constructorWithCall()
103 | Connection.CAPABILITY_DISCONNECT_FROM_CONFERENCE in constructorWithCall()
104 | Connection.CAPABILITY_HOLD); in constructorWithCall()
117 assertThat(mHfpClientConnection.getState()).isEqualTo(Connection.STATE_DIALING); in constructorWithNumber()
126 Connection.CAPABILITY_SUPPORT_HOLD in constructorWithNumber()
127 | Connection.CAPABILITY_MUTE in constructorWithNumber()
[all …]
/packages/modules/adb/
Dtransport_benchmark.cpp41 std::unique_ptr<Connection> MakeConnection(unique_fd fd);
44 std::unique_ptr<Connection> MakeConnection<FdConnection>(unique_fd fd) { in MakeConnection()
50 std::unique_ptr<Connection> MakeConnection<NonblockingFdConnection>(unique_fd fd) { in MakeConnection()
51 return Connection::FromFd(std::move(fd)); in MakeConnection()
66 client->SetReadCallback([](Connection*, std::unique_ptr<apacket>) -> bool { return true; }); in BM_Connection_Unidirectional() argument
67 … server->SetReadCallback([&received_bytes](Connection*, std::unique_ptr<apacket> packet) -> bool { in BM_Connection_Unidirectional() argument
73 [](Connection*, const std::string& error) { LOG(INFO) << "client closed: " << error; }); in BM_Connection_Unidirectional() argument
75 [](Connection*, const std::string& error) { LOG(INFO) << "server closed: " << error; }); in BM_Connection_Unidirectional() argument
124 … client->SetReadCallback([&received_bytes](Connection*, std::unique_ptr<apacket> packet) -> bool { in BM_Connection_Echo() argument
129 static const auto handle_packet = [](Connection* connection, std::unique_ptr<apacket> packet) { in BM_Connection_Echo()
[all …]
/packages/modules/OnDevicePersonalization/src/com/android/libraries/pcc/chronicle/analysis/
DDefaultChronicleContext.kt19 import com.android.libraries.pcc.chronicle.api.Connection in <lambda>()
39 private val connectionProviderByType: Map<Class<out Connection>, ConnectionProvider> in <lambda>()
40 private val dtdByType: Map<Class<out Connection>, DataTypeDescriptor> in <lambda>()
41 private val mgmtStrategyByType: Map<Class<out Connection>, ManagementStrategy> in <lambda>()
46 val tempConnectionProviders = mutableMapOf<Class<out Connection>, ConnectionProvider>() in <lambda>()
47 val tempDtds = mutableMapOf<Class<out Connection>, DataTypeDescriptor>() in <lambda>()
48 val tempMgmtProperties = mutableMapOf<Class<out Connection>, ManagementStrategy>() in <lambda>()
72 override fun <T : Connection> findConnectionProvider( in <lambda>()
78 override fun <T : Connection> findDataType(connectionType: Class<T>): DataTypeDescriptor? { in <lambda>()

12345678