FileDocCategorySizeDatePackage
ParcelableConnection.javaAPI DocAndroid 5.1 API7770Thu Mar 12 22:22:42 GMT 2015android.telecom

ParcelableConnection

public final class ParcelableConnection extends Object implements android.os.Parcelable
Information about a connection that is used between Telecom and the ConnectionService. This is used to send initial Connection information to Telecom when the connection is first created.
hide

Fields Summary
private final PhoneAccountHandle
mPhoneAccount
private final int
mState
private final int
mConnectionCapabilities
private final android.net.Uri
mAddress
private final int
mAddressPresentation
private final String
mCallerDisplayName
private final int
mCallerDisplayNamePresentation
private final com.android.internal.telecom.IVideoProvider
mVideoProvider
private final int
mVideoState
private final boolean
mRingbackRequested
private final boolean
mIsVoipAudioMode
private final StatusHints
mStatusHints
private final DisconnectCause
mDisconnectCause
private final List
mConferenceableConnectionIds
public static final Parcelable.Creator
CREATOR
Constructors Summary
public ParcelableConnection(PhoneAccountHandle phoneAccount, int state, int capabilities, android.net.Uri address, int addressPresentation, String callerDisplayName, int callerDisplayNamePresentation, com.android.internal.telecom.IVideoProvider videoProvider, int videoState, boolean ringbackRequested, boolean isVoipAudioMode, StatusHints statusHints, DisconnectCause disconnectCause, List conferenceableConnectionIds)

hide

        mPhoneAccount = phoneAccount;
        mState = state;
        mConnectionCapabilities = capabilities;
        mAddress = address;
        mAddressPresentation = addressPresentation;
        mCallerDisplayName = callerDisplayName;
        mCallerDisplayNamePresentation = callerDisplayNamePresentation;
        mVideoProvider = videoProvider;
        mVideoState = videoState;
        mRingbackRequested = ringbackRequested;
        mIsVoipAudioMode = isVoipAudioMode;
        mStatusHints = statusHints;
        mDisconnectCause = disconnectCause;
        this.mConferenceableConnectionIds = conferenceableConnectionIds;
    
Methods Summary
public intdescribeContents()
{@inheritDoc}


      
    
       
        return 0;
    
public java.lang.StringgetCallerDisplayName()

        return mCallerDisplayName;
    
public intgetCallerDisplayNamePresentation()

        return mCallerDisplayNamePresentation;
    
public final java.util.ListgetConferenceableConnectionIds()

        return mConferenceableConnectionIds;
    
public intgetConnectionCapabilities()

        return mConnectionCapabilities;
    
public final DisconnectCausegetDisconnectCause()

        return mDisconnectCause;
    
public android.net.UrigetHandle()

        return mAddress;
    
public intgetHandlePresentation()

        return mAddressPresentation;
    
public booleangetIsVoipAudioMode()

        return mIsVoipAudioMode;
    
public PhoneAccountHandlegetPhoneAccount()

        return mPhoneAccount;
    
public intgetState()

        return mState;
    
public final StatusHintsgetStatusHints()

        return mStatusHints;
    
public com.android.internal.telecom.IVideoProvidergetVideoProvider()

        return mVideoProvider;
    
public intgetVideoState()

        return mVideoState;
    
public booleanisRingbackRequested()

        return mRingbackRequested;
    
public java.lang.StringtoString()

        return new StringBuilder()
                .append("ParcelableConnection [act:")
                .append(mPhoneAccount)
                .append(", state:")
                .append(mState)
                .append(", capabilities:")
                .append(Connection.capabilitiesToString(mConnectionCapabilities))
                .toString();
    
public voidwriteToParcel(android.os.Parcel destination, int flags)
Writes ParcelableConnection object into a Parcel.

        destination.writeParcelable(mPhoneAccount, 0);
        destination.writeInt(mState);
        destination.writeInt(mConnectionCapabilities);
        destination.writeParcelable(mAddress, 0);
        destination.writeInt(mAddressPresentation);
        destination.writeString(mCallerDisplayName);
        destination.writeInt(mCallerDisplayNamePresentation);
        destination.writeStrongBinder(
                mVideoProvider != null ? mVideoProvider.asBinder() : null);
        destination.writeInt(mVideoState);
        destination.writeByte((byte) (mRingbackRequested ? 1 : 0));
        destination.writeByte((byte) (mIsVoipAudioMode ? 1 : 0));
        destination.writeParcelable(mStatusHints, 0);
        destination.writeParcelable(mDisconnectCause, 0);
        destination.writeStringList(mConferenceableConnectionIds);