Add new @hide API to pass call direction changes through Telecom

Bug: 153277327
Test: atest TelecomUnitTests
Change-Id: Icad12c4144bf185c24ee80bcbdd1aec29550bf4e
This commit is contained in:
Brad Ebinger
2020-04-08 16:25:12 -07:00
parent a18e52f648
commit 31774ae752
6 changed files with 84 additions and 1 deletions

View File

@@ -693,4 +693,20 @@ final class ConnectionServiceAdapter implements DeathRecipient {
}
}
}
/**
* Sets the direction of a call. Setting a new direction of an existing call is usually only
* applicable during single caller emulation during conferencing, see
* {@link Conference#setConferenceState(boolean)} for more information.
* @param callId The identifier of the call.
* @param direction The new direction of the call.
*/
void setCallDirection(String callId, @Call.Details.CallDirection int direction) {
for (IConnectionServiceAdapter a : mAdapters) {
try {
a.setCallDirection(callId, direction, Log.getExternalSession());
} catch (RemoteException e) {
}
}
}
}