Support for treating single party IMS conference as a standalone call.

Adding @hide APIs which Telephony can use to make a conference call with
a single participant look like its a standalone call.

Test: Manual testing
Bug: 75975913
Change-Id: Id8532234ab295785fc749b120898f43911e12637
This commit is contained in:
Tyler Gunn
2018-10-03 15:38:57 -07:00
parent eb678ba1d3
commit 68a73a4d0d
6 changed files with 131 additions and 0 deletions

View File

@@ -1254,6 +1254,31 @@ public abstract class ConnectionService extends Service {
mAdapter.removeExtras(id, keys);
}
}
@Override
public void onConferenceStateChanged(Conference c, boolean isConference) {
String id = mIdByConference.get(c);
if (id != null) {
mAdapter.setConferenceState(id, isConference);
}
}
@Override
public void onAddressChanged(Conference c, Uri newAddress, int presentation) {
String id = mIdByConference.get(c);
if (id != null) {
mAdapter.setAddress(id, newAddress, presentation);
}
}
@Override
public void onCallerDisplayNameChanged(Conference c, String callerDisplayName,
int presentation) {
String id = mIdByConference.get(c);
if (id != null) {
mAdapter.setCallerDisplayName(id, callerDisplayName, presentation);
}
}
};
private final Connection.Listener mConnectionListener = new Connection.Listener() {