API review cleanups/changes.
- Change onCreateIncomingConnectionFailed/onCreateOutgoingConnectionFailed to accept the connection mgr phone account as the first parameter. - For the video APIs, pass the target SDK of the caller into along so that the Telecom permission check can have fallback behavior for older API versions. - Add guidance for how UX should be shown in onShowIncomingCallUi API. API guidance follows how the Dialer app shows its notification and full screen UX. Test: Manual, CTS. Bug: 35767711 Bug: 35767096 Change-Id: Ib343f0eda1a4d067a38c553f33f140b4efcf3e48
This commit is contained in:
@@ -286,10 +286,11 @@ final class RemoteConnectionService {
|
||||
|
||||
String callingPackage = mOurConnectionServiceImpl.getApplicationContext()
|
||||
.getOpPackageName();
|
||||
int targetSdkVersion = mOurConnectionServiceImpl.getApplicationInfo().targetSdkVersion;
|
||||
RemoteConnection.VideoProvider remoteVideoProvider = null;
|
||||
if (videoProvider != null) {
|
||||
remoteVideoProvider = new RemoteConnection.VideoProvider(videoProvider,
|
||||
callingPackage);
|
||||
callingPackage, targetSdkVersion);
|
||||
}
|
||||
findConnectionForAction(callId, "setVideoProvider")
|
||||
.setVideoProvider(remoteVideoProvider);
|
||||
@@ -357,8 +358,11 @@ final class RemoteConnectionService {
|
||||
Session.Info sessionInfo) {
|
||||
String callingPackage = mOurConnectionServiceImpl.getApplicationContext().
|
||||
getOpPackageName();
|
||||
int callingTargetSdkVersion = mOurConnectionServiceImpl.getApplicationInfo()
|
||||
.targetSdkVersion;
|
||||
RemoteConnection remoteConnection = new RemoteConnection(callId,
|
||||
mOutgoingConnectionServiceRpc, connection, callingPackage);
|
||||
mOutgoingConnectionServiceRpc, connection, callingPackage,
|
||||
callingTargetSdkVersion);
|
||||
mConnectionById.put(callId, remoteConnection);
|
||||
remoteConnection.registerCallback(new RemoteConnection.Callback() {
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user