Loading api/current.txt +6 −5 Original line number Diff line number Diff line Loading @@ -27572,11 +27572,6 @@ package android.telecomm { method public abstract void setCamera(java.lang.String); } public class CallVideoProviderWrapper implements android.os.IBinder.DeathRecipient { method public void binderDied(); method public void setCamera(java.lang.String) throws android.os.RemoteException; } public abstract class Connection { ctor protected Connection(); method public final android.telecomm.CallAudioState getCallAudioState(); Loading Loading @@ -27723,6 +27718,7 @@ package android.telecomm { public final class InCallCall implements android.os.Parcelable { method public int describeContents(); method public android.telecomm.RemoteCallVideoProvider getCallVideoProvider() throws android.os.RemoteException; method public java.util.List<java.lang.String> getCannedSmsResponses(); method public int getCapabilities(); method public long getConnectTimeMillis(); Loading Loading @@ -27752,6 +27748,11 @@ package android.telecomm { method protected abstract void updateCall(android.telecomm.InCallCall); } public class RemoteCallVideoProvider implements android.os.IBinder.DeathRecipient { method public void binderDied(); method public void setCamera(java.lang.String) throws android.os.RemoteException; } public final class RemoteConnection { method public void addListener(android.telecomm.RemoteConnection.Listener); method public void answer(); telecomm/java/android/telecomm/InCallCall.java +28 −21 Original line number Diff line number Diff line Loading @@ -19,8 +19,11 @@ package android.telecomm; import android.net.Uri; import android.os.Parcel; import android.os.Parcelable; import android.os.RemoteException; import android.telephony.DisconnectCause; import com.android.internal.telecomm.ICallVideoProvider; import java.util.ArrayList; import java.util.Collections; import java.util.List; Loading @@ -41,29 +44,11 @@ public final class InCallCall implements Parcelable { private final Subscription mSubscription; private final CallServiceDescriptor mCurrentCallServiceDescriptor; private final CallServiceDescriptor mHandoffCallServiceDescriptor; private final ICallVideoProvider mCallVideoProvider; private RemoteCallVideoProvider mRemoteCallVideoProvider; private final String mParentCallId; private final List<String> mChildCallIds; /** @hide */ @SuppressWarnings("unchecked") public InCallCall( String id, CallState state, int disconnectCauseCode, String disconnectCauseMsg, List<String> cannedSmsResponses, int capabilities, long connectTimeMillis, Uri handle, GatewayInfo gatewayInfo, Subscription subscription, CallServiceDescriptor descriptor, CallServiceDescriptor handoffDescriptor) { this(id, state, disconnectCauseCode, disconnectCauseMsg, cannedSmsResponses, capabilities, connectTimeMillis, handle, gatewayInfo, subscription, descriptor, handoffDescriptor, null, Collections.EMPTY_LIST); } /** @hide */ public InCallCall( String id, Loading @@ -78,6 +63,7 @@ public final class InCallCall implements Parcelable { Subscription subscription, CallServiceDescriptor descriptor, CallServiceDescriptor handoffDescriptor, ICallVideoProvider callVideoProvider, String parentCallId, List<String> childCallIds) { mId = id; Loading @@ -92,6 +78,7 @@ public final class InCallCall implements Parcelable { mSubscription = subscription; mCurrentCallServiceDescriptor = descriptor; mHandoffCallServiceDescriptor = handoffDescriptor; mCallVideoProvider = callVideoProvider; mParentCallId = parentCallId; mChildCallIds = childCallIds; } Loading Loading @@ -167,6 +154,22 @@ public final class InCallCall implements Parcelable { return mHandoffCallServiceDescriptor; } /** * Returns an object for remotely communicating through the call video provider's binder. * @return The call video provider. */ public RemoteCallVideoProvider getCallVideoProvider() throws RemoteException { if (mRemoteCallVideoProvider == null) { try { mRemoteCallVideoProvider = new RemoteCallVideoProvider(mCallVideoProvider); } catch (RemoteException ignored) { // Ignore RemoteException. } } return mRemoteCallVideoProvider; } /** * The conference call to which this call is conferenced. Null if not conferenced. * @hide Loading Loading @@ -203,12 +206,15 @@ public final class InCallCall implements Parcelable { Subscription subscription = source.readParcelable(classLoader); CallServiceDescriptor descriptor = source.readParcelable(classLoader); CallServiceDescriptor handoffDescriptor = source.readParcelable(classLoader); ICallVideoProvider callVideoProvider = ICallVideoProvider.Stub.asInterface(source.readStrongBinder()); String parentCallId = source.readString(); List<String> childCallIds = new ArrayList<>(); source.readList(childCallIds, classLoader); return new InCallCall(id, state, disconnectCauseCode, disconnectCauseMsg, cannedSmsResponses, capabilities, connectTimeMillis, handle, gatewayInfo, subscription, descriptor, handoffDescriptor, parentCallId, childCallIds); subscription, descriptor, handoffDescriptor, callVideoProvider, parentCallId, childCallIds); } @Override Loading Loading @@ -238,6 +244,7 @@ public final class InCallCall implements Parcelable { destination.writeParcelable(mSubscription, 0); destination.writeParcelable(mCurrentCallServiceDescriptor, 0); destination.writeParcelable(mHandoffCallServiceDescriptor, 0); destination.writeStrongBinder(mCallVideoProvider.asBinder()); destination.writeString(mParentCallId); destination.writeList(mChildCallIds); } Loading telecomm/java/android/telecomm/CallVideoProviderWrapper.java→telecomm/java/android/telecomm/RemoteCallVideoProvider.java +2 −2 Original line number Diff line number Diff line Loading @@ -22,10 +22,10 @@ import android.os.RemoteException; import com.android.internal.telecomm.ICallVideoProvider; public class CallVideoProviderWrapper implements IBinder.DeathRecipient { public class RemoteCallVideoProvider implements IBinder.DeathRecipient { private final ICallVideoProvider mCallVideoProvider; CallVideoProviderWrapper(ICallVideoProvider callVideoProvider) throws RemoteException { RemoteCallVideoProvider(ICallVideoProvider callVideoProvider) throws RemoteException { mCallVideoProvider = callVideoProvider; mCallVideoProvider.asBinder().linkToDeath(this, 0); } Loading Loading
api/current.txt +6 −5 Original line number Diff line number Diff line Loading @@ -27572,11 +27572,6 @@ package android.telecomm { method public abstract void setCamera(java.lang.String); } public class CallVideoProviderWrapper implements android.os.IBinder.DeathRecipient { method public void binderDied(); method public void setCamera(java.lang.String) throws android.os.RemoteException; } public abstract class Connection { ctor protected Connection(); method public final android.telecomm.CallAudioState getCallAudioState(); Loading Loading @@ -27723,6 +27718,7 @@ package android.telecomm { public final class InCallCall implements android.os.Parcelable { method public int describeContents(); method public android.telecomm.RemoteCallVideoProvider getCallVideoProvider() throws android.os.RemoteException; method public java.util.List<java.lang.String> getCannedSmsResponses(); method public int getCapabilities(); method public long getConnectTimeMillis(); Loading Loading @@ -27752,6 +27748,11 @@ package android.telecomm { method protected abstract void updateCall(android.telecomm.InCallCall); } public class RemoteCallVideoProvider implements android.os.IBinder.DeathRecipient { method public void binderDied(); method public void setCamera(java.lang.String) throws android.os.RemoteException; } public final class RemoteConnection { method public void addListener(android.telecomm.RemoteConnection.Listener); method public void answer();
telecomm/java/android/telecomm/InCallCall.java +28 −21 Original line number Diff line number Diff line Loading @@ -19,8 +19,11 @@ package android.telecomm; import android.net.Uri; import android.os.Parcel; import android.os.Parcelable; import android.os.RemoteException; import android.telephony.DisconnectCause; import com.android.internal.telecomm.ICallVideoProvider; import java.util.ArrayList; import java.util.Collections; import java.util.List; Loading @@ -41,29 +44,11 @@ public final class InCallCall implements Parcelable { private final Subscription mSubscription; private final CallServiceDescriptor mCurrentCallServiceDescriptor; private final CallServiceDescriptor mHandoffCallServiceDescriptor; private final ICallVideoProvider mCallVideoProvider; private RemoteCallVideoProvider mRemoteCallVideoProvider; private final String mParentCallId; private final List<String> mChildCallIds; /** @hide */ @SuppressWarnings("unchecked") public InCallCall( String id, CallState state, int disconnectCauseCode, String disconnectCauseMsg, List<String> cannedSmsResponses, int capabilities, long connectTimeMillis, Uri handle, GatewayInfo gatewayInfo, Subscription subscription, CallServiceDescriptor descriptor, CallServiceDescriptor handoffDescriptor) { this(id, state, disconnectCauseCode, disconnectCauseMsg, cannedSmsResponses, capabilities, connectTimeMillis, handle, gatewayInfo, subscription, descriptor, handoffDescriptor, null, Collections.EMPTY_LIST); } /** @hide */ public InCallCall( String id, Loading @@ -78,6 +63,7 @@ public final class InCallCall implements Parcelable { Subscription subscription, CallServiceDescriptor descriptor, CallServiceDescriptor handoffDescriptor, ICallVideoProvider callVideoProvider, String parentCallId, List<String> childCallIds) { mId = id; Loading @@ -92,6 +78,7 @@ public final class InCallCall implements Parcelable { mSubscription = subscription; mCurrentCallServiceDescriptor = descriptor; mHandoffCallServiceDescriptor = handoffDescriptor; mCallVideoProvider = callVideoProvider; mParentCallId = parentCallId; mChildCallIds = childCallIds; } Loading Loading @@ -167,6 +154,22 @@ public final class InCallCall implements Parcelable { return mHandoffCallServiceDescriptor; } /** * Returns an object for remotely communicating through the call video provider's binder. * @return The call video provider. */ public RemoteCallVideoProvider getCallVideoProvider() throws RemoteException { if (mRemoteCallVideoProvider == null) { try { mRemoteCallVideoProvider = new RemoteCallVideoProvider(mCallVideoProvider); } catch (RemoteException ignored) { // Ignore RemoteException. } } return mRemoteCallVideoProvider; } /** * The conference call to which this call is conferenced. Null if not conferenced. * @hide Loading Loading @@ -203,12 +206,15 @@ public final class InCallCall implements Parcelable { Subscription subscription = source.readParcelable(classLoader); CallServiceDescriptor descriptor = source.readParcelable(classLoader); CallServiceDescriptor handoffDescriptor = source.readParcelable(classLoader); ICallVideoProvider callVideoProvider = ICallVideoProvider.Stub.asInterface(source.readStrongBinder()); String parentCallId = source.readString(); List<String> childCallIds = new ArrayList<>(); source.readList(childCallIds, classLoader); return new InCallCall(id, state, disconnectCauseCode, disconnectCauseMsg, cannedSmsResponses, capabilities, connectTimeMillis, handle, gatewayInfo, subscription, descriptor, handoffDescriptor, parentCallId, childCallIds); subscription, descriptor, handoffDescriptor, callVideoProvider, parentCallId, childCallIds); } @Override Loading Loading @@ -238,6 +244,7 @@ public final class InCallCall implements Parcelable { destination.writeParcelable(mSubscription, 0); destination.writeParcelable(mCurrentCallServiceDescriptor, 0); destination.writeParcelable(mHandoffCallServiceDescriptor, 0); destination.writeStrongBinder(mCallVideoProvider.asBinder()); destination.writeString(mParentCallId); destination.writeList(mChildCallIds); } Loading
telecomm/java/android/telecomm/CallVideoProviderWrapper.java→telecomm/java/android/telecomm/RemoteCallVideoProvider.java +2 −2 Original line number Diff line number Diff line Loading @@ -22,10 +22,10 @@ import android.os.RemoteException; import com.android.internal.telecomm.ICallVideoProvider; public class CallVideoProviderWrapper implements IBinder.DeathRecipient { public class RemoteCallVideoProvider implements IBinder.DeathRecipient { private final ICallVideoProvider mCallVideoProvider; CallVideoProviderWrapper(ICallVideoProvider callVideoProvider) throws RemoteException { RemoteCallVideoProvider(ICallVideoProvider callVideoProvider) throws RemoteException { mCallVideoProvider = callVideoProvider; mCallVideoProvider.asBinder().linkToDeath(this, 0); } Loading