OSDN Git Service

ImsMultiEndPoint - Sip Notify Change
authorSumit Das <sumidas@codeaurora.org>
Fri, 22 Jun 2018 23:08:57 +0000 (16:08 -0700)
committerSumit Das <sumidas@codeaurora.org>
Fri, 22 Jun 2018 23:08:57 +0000 (16:08 -0700)
-Propagate the local-identity field to AOSP to help differentiate
between local calls and calls on secondary devices

Change-Id: I78c8f721dcffa167c7d65c474f13a8a377e4cd39

telephony/java/android/telephony/ims/ImsExternalCallState.java

index e82c115..d03c7e1 100644 (file)
@@ -45,6 +45,7 @@ public final class ImsExternalCallState implements Parcelable {
     private int mCallId;
     // Number
     private Uri mAddress;
+    private Uri mLocalAddress;
     private boolean mIsPullable;
     // CALL_STATE_CONFIRMED / CALL_STATE_TERMINATED
     private int mCallState;
@@ -69,6 +70,19 @@ public final class ImsExternalCallState implements Parcelable {
     }
 
     /** @hide */
+    public ImsExternalCallState(int callId, Uri address, Uri localAddress,
+            boolean isPullable, int callState, int callType, boolean isCallheld) {
+        mCallId = callId;
+        mAddress = address;
+        mLocalAddress = localAddress;
+        mIsPullable = isPullable;
+        mCallState = callState;
+        mCallType = callType;
+        mIsHeld = isCallheld;
+        Rlog.d(TAG, "ImsExternalCallState = " + this);
+    }
+
+    /** @hide */
     public ImsExternalCallState(Parcel in) {
         mCallId = in.readInt();
         ClassLoader classLoader = ImsExternalCallState.class.getClassLoader();