FileDocCategorySizeDatePackage
ImsVideoCallProviderWrapper.javaAPI DocAndroid 5.1 API8513Thu Mar 12 22:22:52 GMT 2015com.android.ims.internal

ImsVideoCallProviderWrapper

public class ImsVideoCallProviderWrapper extends Connection.VideoProvider
Subclass implementation of {@link Connection.VideoProvider}. This intermediates and communicates with the actual implementation of the video call provider in the IMS service; it is in essence, a wrapper around the IMS's video call provider implementation. This class maintains a binder by which the ImsVideoCallProvider's implementation can communicate its intent to invoke callbacks. In this class, the message across this binder is handled, and the superclass's methods are used to execute the callbacks.
hide

Fields Summary
private static final int
MSG_RECEIVE_SESSION_MODIFY_REQUEST
private static final int
MSG_RECEIVE_SESSION_MODIFY_RESPONSE
private static final int
MSG_HANDLE_CALL_SESSION_EVENT
private static final int
MSG_CHANGE_PEER_DIMENSIONS
private static final int
MSG_CHANGE_CALL_DATA_USAGE
private static final int
MSG_CHANGE_CAMERA_CAPABILITIES
private final IImsVideoCallProvider
mVideoCallProvider
private final ImsVideoCallCallback
mBinder
private IBinder.DeathRecipient
mDeathRecipient
private final android.os.Handler
mHandler
Default handler used to consolidate binder method calls onto a single thread.
Constructors Summary
public ImsVideoCallProviderWrapper(IImsVideoCallProvider VideoProvider)
Instantiates an instance of the ImsVideoCallProvider, taking in the binder for IMS's video call provider implementation.

param
VideoProvider


                           
      
              
        mVideoCallProvider = VideoProvider;
        mVideoCallProvider.asBinder().linkToDeath(mDeathRecipient, 0);

        mBinder = new ImsVideoCallCallback();
        mVideoCallProvider.setCallback(mBinder);
    
Methods Summary
public voidonRequestCameraCapabilities()

inheritDoc

        try {
            mVideoCallProvider.requestCameraCapabilities();
        } catch (RemoteException e) {
        }
    
public voidonRequestConnectionDataUsage()

inheritDoc

        try {
            mVideoCallProvider.requestCallDataUsage();
        } catch (RemoteException e) {
        }
    
public voidonSendSessionModifyRequest(android.telecom.VideoProfile requestProfile)

inheritDoc

        try {
            mVideoCallProvider.sendSessionModifyRequest(requestProfile);
        } catch (RemoteException e) {
        }
    
public voidonSendSessionModifyResponse(android.telecom.VideoProfile responseProfile)

inheritDoc

        try {
            mVideoCallProvider.sendSessionModifyResponse(responseProfile);
        } catch (RemoteException e) {
        }
    
public voidonSetCamera(java.lang.String cameraId)

inheritDoc

        try {
            mVideoCallProvider.setCamera(cameraId);
        } catch (RemoteException e) {
        }
    
public voidonSetDeviceOrientation(int rotation)

inheritDoc

        try {
            mVideoCallProvider.setDeviceOrientation(rotation);
        } catch (RemoteException e) {
        }
    
public voidonSetDisplaySurface(android.view.Surface surface)

inheritDoc

        try {
            mVideoCallProvider.setDisplaySurface(surface);
        } catch (RemoteException e) {
        }
    
public voidonSetPauseImage(java.lang.String uri)

inheritDoc

        try {
            mVideoCallProvider.setPauseImage(uri);
        } catch (RemoteException e) {
        }
    
public voidonSetPreviewSurface(android.view.Surface surface)

inheritDoc

        try {
            mVideoCallProvider.setPreviewSurface(surface);
        } catch (RemoteException e) {
        }
    
public voidonSetZoom(float value)

inheritDoc

        try {
            mVideoCallProvider.setZoom(value);
        } catch (RemoteException e) {
        }