Merge "IMS: Changes for MultiEndpoint" into nyc-dev

This commit is contained in:
Tyler Gunn
2016-03-24 02:39:07 +00:00
committed by Android (Google) Code Review
4 changed files with 22 additions and 22 deletions

View File

@@ -28,7 +28,7 @@ import android.telephony.Rlog;
*/
/**
* Parcelable object to handle VICE Dialog Information
* Parcelable object to handle MultiEndpoint Dialog Information
* @hide
*/
public class ImsExternalCallState implements Parcelable {
@@ -39,19 +39,30 @@ public class ImsExternalCallState implements Parcelable {
public static final int CALL_STATE_CONFIRMED = 1;
public static final int CALL_STATE_TERMINATED = 2;
// Dialog Id
public int mCallId;
private int mCallId;
// Number
public Uri mAddress;
public boolean mIsPullable;
private Uri mAddress;
private boolean mIsPullable;
// CALL_STATE_CONFIRMED / CALL_STATE_TERMINATED
public int mCallState;
private int mCallState;
// ImsCallProfile#CALL_TYPE_*
public int mCallType;
public boolean mIsHeld;
private int mCallType;
private boolean mIsHeld;
public ImsExternalCallState() {
}
public ImsExternalCallState(int callId, Uri address, boolean isPullable, int callState,
int callType, boolean isCallheld) {
mCallId = callId;
mAddress = address;
mIsPullable = isPullable;
mCallState = callState;
mCallType = callType;
mIsHeld = isCallheld;
Rlog.d(TAG, "ImsExternalCallState = " + this);
}
public ImsExternalCallState(Parcel in) {
mCallId = in.readInt();
ClassLoader classLoader = ImsExternalCallState.class.getClassLoader();
@@ -60,12 +71,7 @@ public class ImsExternalCallState implements Parcelable {
mCallState = in.readInt();
mCallType = in.readInt();
mIsHeld = (in.readInt() != 0);
Rlog.d(TAG, "ImsExternalCallState const = " +
"callid = " + getCallId() +
", address = " + getAddress() +
", mCallState = " + getCallState() +
", calltype = " + getCallType() +
", isheld = " + isCallHeld());
Rlog.d(TAG, "ImsExternalCallState const = " + this);
}
@Override
@@ -81,6 +87,7 @@ public class ImsExternalCallState implements Parcelable {
out.writeInt(mCallState);
out.writeInt(mCallType);
out.writeInt(mIsHeld ? 1 : 0);
Rlog.d(TAG, "ImsExternalCallState writeToParcel = " + out.toString());
}
public static final Parcelable.Creator<ImsExternalCallState> CREATOR =

View File

@@ -32,7 +32,7 @@ interface IImsExternalCallStateListener {
*
* @return void.
*/
void notifyRefreshExternalCallState(in List<ImsExternalCallState> externalCallDialogs);
void onImsExternalCallStateUpdate(in List<ImsExternalCallState> externalCallDialogs);
}

View File

@@ -34,5 +34,5 @@ interface IImsMultiEndpoint {
* Query api to get the latest Dialog Event Package information
* Should be invoked only after setListener is done
*/
void requestDialogEventPackageState();
void requestImsExternalCallStateInfo();
}

View File

@@ -218,11 +218,4 @@ public interface TelephonyProperties
*/
static final String PROPERTY_VIDEOCALL_AUDIO_OUTPUT = "persist.radio.call.audio.output";
/**
* For MultiEndpoint Feature
* If true: Dial intent is for call pull functionality
* if false: normal dial
*/
static final String EXTRA_IS_CALL_PULL =
"android.telephony.extra.IS_CALL_PULL";
}