diff options
author | Junda Liu <junda@google.com> | 2014-12-02 18:45:41 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-12-02 18:45:41 +0000 |
commit | 92205a33655f8a4f487e8d85a9d6d151d0db21a1 (patch) | |
tree | ce43bd388c7e04af09723f8f156d87c3e0144f2d /telephony/java/android | |
parent | 8abe01aa80a0697d21103322ac500dce31058b50 (diff) | |
parent | 50e2d6c2ce079c00531ecbcf112593cb0263e47a (diff) | |
download | frameworks_base-92205a33655f8a4f487e8d85a9d6d151d0db21a1.zip frameworks_base-92205a33655f8a4f487e8d85a9d6d151d0db21a1.tar.gz frameworks_base-92205a33655f8a4f487e8d85a9d6d151d0db21a1.tar.bz2 |
am 50e2d6c2: am ef6178a9: Merge "Add hasMatchedTetherApnSetting to telmgr API." into lmp-mr1-dev
* commit '50e2d6c2ce079c00531ecbcf112593cb0263e47a':
Add hasMatchedTetherApnSetting to telmgr API.
Diffstat (limited to 'telephony/java/android')
-rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index e38aff0..9e008ea 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -3083,6 +3083,26 @@ public class TelephonyManager { } /** + * Check TETHER_DUN_REQUIRED and TETHER_DUN_APN settings, net.tethering.noprovisioning + * SystemProperty, and config_tether_apndata to decide whether DUN APN is required for + * tethering. + * + * @return 0: Not required. 1: required. 2: Not set. + * @hide + */ + public int getTetherApnRequired() { + try { + return getITelephony().getTetherApnRequired(); + } catch (RemoteException ex) { + Rlog.e(TAG, "hasMatchedTetherApnSetting RemoteException", ex); + } catch (NullPointerException ex) { + Rlog.e(TAG, "hasMatchedTetherApnSetting NPE", ex); + } + return 2; + } + + + /** * Values used to return status for hasCarrierPrivileges call. */ /** @hide */ |