FileDocCategorySizeDatePackage
ImsStreamMediaProfile.javaAPI DocAndroid 5.1 API4581Thu Mar 12 22:22:42 GMT 2015com.android.ims

ImsStreamMediaProfile

public class ImsStreamMediaProfile extends Object implements android.os.Parcelable
Parcelable object to handle IMS stream media profile. It provides the media direction, quality of audio and/or video.
hide

Fields Summary
private static final String
TAG
public static final int
DIRECTION_INVALID
Media directions
public static final int
DIRECTION_INACTIVE
public static final int
DIRECTION_RECEIVE
public static final int
DIRECTION_SEND
public static final int
DIRECTION_SEND_RECEIVE
public static final int
AUDIO_QUALITY_NONE
Audio information
public static final int
AUDIO_QUALITY_AMR
public static final int
AUDIO_QUALITY_AMR_WB
public static final int
AUDIO_QUALITY_QCELP13K
public static final int
AUDIO_QUALITY_EVRC
public static final int
AUDIO_QUALITY_EVRC_B
public static final int
AUDIO_QUALITY_EVRC_WB
public static final int
AUDIO_QUALITY_EVRC_NW
public static final int
AUDIO_QUALITY_GSM_EFR
public static final int
AUDIO_QUALITY_GSM_FR
public static final int
AUDIO_QUALITY_GSM_HR
public static final int
VIDEO_QUALITY_NONE
Video information
public static final int
VIDEO_QUALITY_QCIF
public static final int
VIDEO_QUALITY_QVGA_LANDSCAPE
public static final int
VIDEO_QUALITY_QVGA_PORTRAIT
public static final int
VIDEO_QUALITY_VGA_LANDSCAPE
public static final int
VIDEO_QUALITY_VGA_PORTRAIT
public int
mAudioQuality
public int
mAudioDirection
public int
mVideoQuality
public int
mVideoDirection
public static final Creator
CREATOR
Constructors Summary
public ImsStreamMediaProfile(android.os.Parcel in)




       
        readFromParcel(in);
    
public ImsStreamMediaProfile()

        mAudioQuality = AUDIO_QUALITY_AMR_WB;
        mAudioDirection = DIRECTION_SEND_RECEIVE;
        mVideoQuality = VIDEO_QUALITY_NONE;
        mVideoDirection = DIRECTION_INVALID;
    
public ImsStreamMediaProfile(int audioQuality, int audioDirection, int videoQuality, int videoDirection)

        mAudioQuality = audioQuality;
        mAudioDirection = audioDirection;
        mVideoQuality = videoQuality;
        mVideoDirection = videoDirection;
    
Methods Summary
public voidcopyFrom(com.android.ims.ImsStreamMediaProfile profile)

        mAudioQuality = profile.mAudioQuality;
        mAudioDirection = profile.mAudioDirection;
        mVideoQuality = profile.mVideoQuality;
        mVideoDirection = profile.mVideoDirection;
    
public intdescribeContents()

        return 0;
    
private voidreadFromParcel(android.os.Parcel in)

        mAudioQuality = in.readInt();
        mAudioDirection = in.readInt();
        mVideoQuality = in.readInt();
        mVideoDirection = in.readInt();
    
public java.lang.StringtoString()

        return "{ audioQuality=" + mAudioQuality +
                ", audioDirection=" + mAudioDirection +
                ", videoQuality=" + mVideoQuality +
                ", videoDirection=" + mVideoDirection + " }";
    
public voidwriteToParcel(android.os.Parcel out, int flags)

        out.writeInt(mAudioQuality);
        out.writeInt(mAudioDirection);
        out.writeInt(mVideoQuality);
        out.writeInt(mVideoDirection);