diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2010-11-03 17:05:24 -0700 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2010-11-03 17:05:24 -0700 |
commit | 26ba12490347f34a0aa3a2ee2370d60d24f5f7d0 (patch) | |
tree | 326d2f9ff7aae02f95fea79ff4b386855d546813 /telephony | |
parent | 9195f75df0d2503b4134be7e0deb7699c1613381 (diff) | |
parent | 962a990a45a2a9f9c3002064e71f9c2fed86acf1 (diff) | |
download | frameworks_base-26ba12490347f34a0aa3a2ee2370d60d24f5f7d0.zip frameworks_base-26ba12490347f34a0aa3a2ee2370d60d24f5f7d0.tar.gz frameworks_base-26ba12490347f34a0aa3a2ee2370d60d24f5f7d0.tar.bz2 |
Merge "Add some network/phone type constants."
Diffstat (limited to 'telephony')
-rw-r--r-- | telephony/java/android/telephony/NeighboringCellInfo.java | 2 | ||||
-rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 19 |
2 files changed, 18 insertions, 3 deletions
diff --git a/telephony/java/android/telephony/NeighboringCellInfo.java b/telephony/java/android/telephony/NeighboringCellInfo.java index 2f7666d..0f9a3b9 100644 --- a/telephony/java/android/telephony/NeighboringCellInfo.java +++ b/telephony/java/android/telephony/NeighboringCellInfo.java @@ -127,7 +127,7 @@ public class NeighboringCellInfo implements Parcelable location = "0" + location; } } - + // TODO - handle LTE and eHRPD (or find they can't be supported) try {// set LAC/CID or PSC based on radioType switch (radioType) { case NETWORK_TYPE_GPRS: diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 2370add..1cd3679 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -272,13 +272,17 @@ public class TelephonyManager { public static final int PHONE_TYPE_GSM = Phone.PHONE_TYPE_GSM; /** Phone radio is CDMA. */ public static final int PHONE_TYPE_CDMA = Phone.PHONE_TYPE_CDMA; + /** Phone is via SIP. */ + public static final int PHONE_TYPE_SIP = Phone.PHONE_TYPE_SIP; /** - * Returns a constant indicating the device phone type. + * Returns a constant indicating the device phone type. This + * indicates the type of radio used to transmit voice calls. * * @see #PHONE_TYPE_NONE * @see #PHONE_TYPE_GSM * @see #PHONE_TYPE_CDMA + * @see #PHONE_TYPE_SIP */ public int getPhoneType() { try{ @@ -393,11 +397,15 @@ public class TelephonyManager { public static final int NETWORK_TYPE_IDEN = 11; /** Current network is EVDO revision B*/ public static final int NETWORK_TYPE_EVDO_B = 12; + /** Current network is LTE */ + public static final int NETWORK_TYPE_LTE = 13; + /** Current network is eHRPD */ + public static final int NETWORK_TYPE_EHRPD = 14; /** * Returns a constant indicating the radio technology (network type) - * currently in use on the device. + * currently in use on the device for data transmission. * @return the network type * * @see #NETWORK_TYPE_UNKNOWN @@ -412,6 +420,9 @@ public class TelephonyManager { * @see #NETWORK_TYPE_EVDO_A * @see #NETWORK_TYPE_EVDO_B * @see #NETWORK_TYPE_1xRTT + * @see #NETWORK_TYPE_IDEN + * @see #NETWORK_TYPE_LTE + * @see #NETWORK_TYPE_EHRPD */ public int getNetworkType() { try{ @@ -462,6 +473,10 @@ public class TelephonyManager { return "CDMA - EvDo rev. B"; case NETWORK_TYPE_1xRTT: return "CDMA - 1xRTT"; + case NETWORK_TYPE_LTE: + return "LTE"; + case NETWORK_TYPE_EHRPD: + return "CDMA - eHRPD"; default: return "UNKNOWN"; } |