diff options
author | Shriram Ganesh <sganesh@codeaurora.org> | 2015-03-05 16:43:03 +0530 |
---|---|---|
committer | Tyler Gunn <tgunn@google.com> | 2015-06-29 15:54:54 -0700 |
commit | ef0cde848bc73fbbe7328863e4e3df352a952dfc (patch) | |
tree | e186c959889508fd17914d5c7c2fcd19b236720e /telephony/java/com/android | |
parent | a1b647c8833cf85e304e3c201e7d0477b9838502 (diff) | |
download | frameworks_base-ef0cde848bc73fbbe7328863e4e3df352a952dfc.zip frameworks_base-ef0cde848bc73fbbe7328863e4e3df352a952dfc.tar.gz frameworks_base-ef0cde848bc73fbbe7328863e4e3df352a952dfc.tar.bz2 |
IMS: Map pay phone and unknown presentation with OIR.
Current code does not map pay phone and unknown
presentation with OIR.
Add code to map pay phone and unknown presentation
with OIR correctly.
Bug: 22123243
Change-Id: I7610db8547a0f0f5529c2627879047dd9a45cf9f
Diffstat (limited to 'telephony/java/com/android')
-rw-r--r-- | telephony/java/com/android/ims/ImsCallProfile.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/telephony/java/com/android/ims/ImsCallProfile.java b/telephony/java/com/android/ims/ImsCallProfile.java index b0b95f6..2c4354b 100644 --- a/telephony/java/com/android/ims/ImsCallProfile.java +++ b/telephony/java/com/android/ims/ImsCallProfile.java @@ -143,6 +143,8 @@ public class ImsCallProfile implements Parcelable { public static final int OIR_DEFAULT = 0; // "user subscription default value" public static final int OIR_PRESENTATION_RESTRICTED = 1; public static final int OIR_PRESENTATION_NOT_RESTRICTED = 2; + public static final int OIR_PRESENTATION_UNKNOWN = 3; + public static final int OIR_PRESENTATION_PAYPHONE = 4; /** * Values for EXTRA_DIALSTRING @@ -373,6 +375,10 @@ public class ImsCallProfile implements Parcelable { return ImsCallProfile.OIR_PRESENTATION_RESTRICTED; case PhoneConstants.PRESENTATION_ALLOWED: return ImsCallProfile.OIR_PRESENTATION_NOT_RESTRICTED; + case PhoneConstants.PRESENTATION_PAYPHONE: + return ImsCallProfile.OIR_PRESENTATION_PAYPHONE; + case PhoneConstants.PRESENTATION_UNKNOWN: + return ImsCallProfile.OIR_PRESENTATION_UNKNOWN; default: return ImsCallProfile.OIR_DEFAULT; } @@ -389,6 +395,10 @@ public class ImsCallProfile implements Parcelable { return PhoneConstants.PRESENTATION_RESTRICTED; case ImsCallProfile.OIR_PRESENTATION_NOT_RESTRICTED: return PhoneConstants.PRESENTATION_ALLOWED; + case ImsCallProfile.OIR_PRESENTATION_PAYPHONE: + return PhoneConstants.PRESENTATION_PAYPHONE; + case ImsCallProfile.OIR_PRESENTATION_UNKNOWN: + return PhoneConstants.PRESENTATION_UNKNOWN; default: return PhoneConstants.PRESENTATION_UNKNOWN; } |