Loading telephony/java/android/telephony/TelephonyManager.java +12 −1 Original line number Diff line number Diff line Loading @@ -7197,10 +7197,21 @@ public class TelephonyManager { * @hide */ public boolean getTetherApnRequired() { return getTetherApnRequired(getSubId(SubscriptionManager.getDefaultDataSubscriptionId())); } /** * Check whether DUN APN is required for tethering with subId. * * @param subId the id of the subscription to require tethering. * @return {@code true} if DUN APN is required for tethering. * @hide */ public boolean getTetherApnRequired(int subId) { try { ITelephony telephony = getITelephony(); if (telephony != null) return telephony.getTetherApnRequired(); return telephony.getTetherApnRequiredForSubscriber(subId); } catch (RemoteException ex) { Rlog.e(TAG, "hasMatchedTetherApnSetting RemoteException", ex); } catch (NullPointerException ex) { Loading telephony/java/com/android/internal/telephony/ITelephony.aidl +3 −2 Original line number Diff line number Diff line Loading @@ -788,12 +788,13 @@ interface ITelephony { int getPreferredNetworkType(int subId); /** * Check whether DUN APN is required for tethering. * Check whether DUN APN is required for tethering with subId. * * @param subId the id of the subscription to require tethering. * @return {@code true} if DUN APN is required for tethering. * @hide */ boolean getTetherApnRequired(); boolean getTetherApnRequiredForSubscriber(int subId); /** * Enables framework IMS and triggers IMS Registration. Loading Loading
telephony/java/android/telephony/TelephonyManager.java +12 −1 Original line number Diff line number Diff line Loading @@ -7197,10 +7197,21 @@ public class TelephonyManager { * @hide */ public boolean getTetherApnRequired() { return getTetherApnRequired(getSubId(SubscriptionManager.getDefaultDataSubscriptionId())); } /** * Check whether DUN APN is required for tethering with subId. * * @param subId the id of the subscription to require tethering. * @return {@code true} if DUN APN is required for tethering. * @hide */ public boolean getTetherApnRequired(int subId) { try { ITelephony telephony = getITelephony(); if (telephony != null) return telephony.getTetherApnRequired(); return telephony.getTetherApnRequiredForSubscriber(subId); } catch (RemoteException ex) { Rlog.e(TAG, "hasMatchedTetherApnSetting RemoteException", ex); } catch (NullPointerException ex) { Loading
telephony/java/com/android/internal/telephony/ITelephony.aidl +3 −2 Original line number Diff line number Diff line Loading @@ -788,12 +788,13 @@ interface ITelephony { int getPreferredNetworkType(int subId); /** * Check whether DUN APN is required for tethering. * Check whether DUN APN is required for tethering with subId. * * @param subId the id of the subscription to require tethering. * @return {@code true} if DUN APN is required for tethering. * @hide */ boolean getTetherApnRequired(); boolean getTetherApnRequiredForSubscriber(int subId); /** * Enables framework IMS and triggers IMS Registration. Loading