diff options
author | Wink Saville <wink@google.com> | 2014-06-11 15:17:00 -0700 |
---|---|---|
committer | Wink Saville <wink@google.com> | 2014-06-11 15:24:53 -0700 |
commit | 36469e74b7c79ed84148754190c38196eb9a2c49 (patch) | |
tree | f3e3ae18e5c4367748c5d2cbf2a7ebd05f346226 /common/src | |
parent | 1143033d9d67f0e2c796749b073c7e0e356864ac (diff) | |
download | android_packages_services_Telephony-36469e74b7c79ed84148754190c38196eb9a2c49.tar.gz android_packages_services_Telephony-36469e74b7c79ed84148754190c38196eb9a2c49.tar.bz2 android_packages_services_Telephony-36469e74b7c79ed84148754190c38196eb9a2c49.zip |
Merge kwd to master
Add support for type and subid to Call.java
Add MSIM and IMS to PhoneInterfaceManager
Change-Id: Idb607c0aa32f80fe4fe1539aedea7a221e9e7f04
Diffstat (limited to 'common/src')
-rw-r--r-- | common/src/com/android/services/telephony/common/Call.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/common/src/com/android/services/telephony/common/Call.java b/common/src/com/android/services/telephony/common/Call.java index 35370194a..bb1806c46 100644 --- a/common/src/com/android/services/telephony/common/Call.java +++ b/common/src/com/android/services/telephony/common/Call.java @@ -153,6 +153,12 @@ public final class Call implements Parcelable { // Gateway service package name private String mGatewayPackage; + // The subscription id + private long mSubId; + + // The call type + private int mType; + public Call(int callId) { mCallId = callId; mIdentification = new CallIdentification(mCallId); @@ -169,6 +175,8 @@ public final class Call implements Parcelable { mChildCallIds = new TreeSet<Integer>(call.mChildCallIds); mGatewayNumber = call.mGatewayNumber; mGatewayPackage = call.mGatewayPackage; + mSubId = call.mSubId; + mType = call.mType; } public int getCallId() { @@ -301,6 +309,22 @@ public final class Call implements Parcelable { mGatewayPackage = packageName; } + public long getSubId() { + return mSubId; + } + + public void setSubId(long subId) { + mSubId = subId; + } + + public void setType(int type) { + mType = type; + } + + public int getType() { + return mType; + } + /** * Parcelable implementation */ @@ -317,6 +341,8 @@ public final class Call implements Parcelable { dest.writeString(getGatewayNumber()); dest.writeString(getGatewayPackage()); dest.writeParcelable(mIdentification, 0); + dest.writeLong(mSubId); + dest.writeInt(mType); } /** @@ -333,6 +359,8 @@ public final class Call implements Parcelable { mGatewayNumber = in.readString(); mGatewayPackage = in.readString(); mIdentification = in.readParcelable(CallIdentification.class.getClassLoader()); + mSubId = in.readLong(); + mType = in.readInt(); } @Override @@ -370,6 +398,8 @@ public final class Call implements Parcelable { .add("mGatewayNumber", MoreStrings.toSafeString(mGatewayNumber)) .add("mGatewayPackage", mGatewayPackage) .add("mIdentification", mIdentification) + .add("mSubId", mSubId) + .add("mType", mType) .toString(); } } |