diff options
| author | 2020-01-17 15:16:53 -0800 | |
|---|---|---|
| committer | 2020-01-17 15:16:53 -0800 | |
| commit | 8528eef2c7939d4dec860c514bb93b34423e282c (patch) | |
| tree | df4955a43c9b5f31e3674cabd4b5bb8be9fd6cfe | |
| parent | 2c4472ceeaa3d7ec1b237c9b54142c72e721e235 (diff) | |
| parent | c8fb6e0efe69dcb47d2a8e97939e269c208775b7 (diff) | |
Using PhoneTypes in TelephonyManager
am: c8fb6e0efe
Change-Id: I60e1077eb07c37460b6bb4c17967b91e0b607715
| -rw-r--r-- | api/current.txt | 1 | ||||
| -rwxr-xr-x | api/system-current.txt | 1 | ||||
| -rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 10 |
3 files changed, 12 insertions, 0 deletions
diff --git a/api/current.txt b/api/current.txt index fb63154f7f60..711f77306308 100644 --- a/api/current.txt +++ b/api/current.txt @@ -45764,6 +45764,7 @@ package android.telephony { field public static final int NETWORK_TYPE_UNKNOWN = 0; // 0x0 field public static final int PHONE_TYPE_CDMA = 2; // 0x2 field public static final int PHONE_TYPE_GSM = 1; // 0x1 + field public static final int PHONE_TYPE_IMS = 5; // 0x5 field public static final int PHONE_TYPE_NONE = 0; // 0x0 field public static final int PHONE_TYPE_SIP = 3; // 0x3 field public static final int SET_OPPORTUNISTIC_SUB_INACTIVE_SUBSCRIPTION = 2; // 0x2 diff --git a/api/system-current.txt b/api/system-current.txt index 095b94ae2b4c..98701fd5c599 100755 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -9335,6 +9335,7 @@ package android.telephony { field public static final long NETWORK_TYPE_BITMASK_TD_SCDMA = 65536L; // 0x10000L field public static final long NETWORK_TYPE_BITMASK_UMTS = 4L; // 0x4L field public static final long NETWORK_TYPE_BITMASK_UNKNOWN = 0L; // 0x0L + field public static final int PHONE_TYPE_THIRD_PARTY = 4; // 0x4 field public static final int RADIO_POWER_OFF = 0; // 0x0 field public static final int RADIO_POWER_ON = 1; // 0x1 field public static final int RADIO_POWER_UNAVAILABLE = 2; // 0x2 diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 25458db6d968..04725318cfb5 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -1950,6 +1950,16 @@ public class TelephonyManager { public static final int PHONE_TYPE_CDMA = PhoneConstants.PHONE_TYPE_CDMA; /** Phone is via SIP. */ public static final int PHONE_TYPE_SIP = PhoneConstants.PHONE_TYPE_SIP; + /** Phone is via IMS. */ + public static final int PHONE_TYPE_IMS = PhoneConstants.PHONE_TYPE_IMS; + + /** + * Phone is via Third Party. + * + * @hide + */ + @SystemApi + public static final int PHONE_TYPE_THIRD_PARTY = PhoneConstants.PHONE_TYPE_THIRD_PARTY; /** * Returns the current phone type. |