Support indicating call direction on existing connections.

This is important for ensuring the original call direction for existing
connections added from Conference Event Packages matches the call direction
of the original calls merged into the conference.

Also moved a utility function into ConferenceParticipant from
ConferenceParticipantConnection to make it generically usable inside
Telephony.

Test: Run all unit tests.
Test: Manual testing using VoLTE conference calls with mix of MO and MT
calls; verify call logging is appropriate.
Bug: 134471046

Change-Id: Iab09397b811782ab0f876aac02070e3447d81f09
This commit is contained in:
Tyler Gunn
2019-06-25 13:45:32 -07:00
parent c760a652ab
commit 6986a63325
4 changed files with 139 additions and 6 deletions

View File

@@ -2144,7 +2144,8 @@ public abstract class ConnectionService extends Service {
connection.getDisconnectCause(),
emptyList,
connection.getExtras(),
conferenceId);
conferenceId,
connection.getCallDirection());
mAdapter.addExistingConnection(id, parcelableConnection);
}
}