Cleanup video provider binder code.

1. Ensure we always unlink for death from the VideoCallImpl.
2. Ensure we compare the binders in the Call instance properly so that
we are not always replacing the VideoCallImpl used.
3. Ensure we cleanup the VideoCallImpl when its being removed.

Test: Manual testing of video calls for regressions.
Bug: 121156974
Change-Id: I440e8fb4ab9a5051ee02358933c495de736e2bd0
This commit is contained in:
Tyler Gunn
2019-11-05 15:47:58 -08:00
parent e8a5b8a76d
commit d1fdf3a85b
3 changed files with 42 additions and 6 deletions

View File

@@ -21,6 +21,7 @@ import android.annotation.UnsupportedAppUsage;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.IBinder;
import android.os.Parcel;
import android.os.Parcelable;
import android.os.RemoteException;
@@ -225,6 +226,10 @@ public final class ParcelableCall implements Parcelable {
return mVideoCall;
}
public IVideoProvider getVideoProvider() {
return mVideoCallProvider;
}
public boolean getIsRttCallChanged() {
return mIsRttCallChanged;
}