Loading telephony/java/android/telephony/TelephonyManager.java +20 −0 Original line number Diff line number Diff line Loading @@ -19265,6 +19265,26 @@ public class TelephonyManager { return false; } /** * Returns whether the AOSP domain selection service is supported. * * @return {@code true} if the AOSP domain selection service is supported. * @hide */ @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) @RequiresFeature(PackageManager.FEATURE_TELEPHONY_CALLING) public boolean isAospDomainSelectionService() { try { ITelephony telephony = getITelephony(); if (telephony != null) { return telephony.isAospDomainSelectionService(); } } catch (RemoteException ex) { Rlog.w(TAG, "RemoteException", ex); } return false; } /** * Returns the primary IMEI (International Mobile Equipment Identity) of the device as * mentioned in GSMA TS.37. {@link #getImei(int)} returns the IMEI that belongs to the selected telephony/java/com/android/internal/telephony/ITelephony.aidl +6 −0 Original line number Diff line number Diff line Loading @@ -3244,6 +3244,12 @@ interface ITelephony { */ boolean clearDomainSelectionServiceOverride(); /** * @return {@code true} if the AOSP domain selection service is supported, * {@code false} otherwise. */ boolean isAospDomainSelectionService(); /** * Enable or disable notifications sent for cellular identifier disclosure events. * Loading Loading
telephony/java/android/telephony/TelephonyManager.java +20 −0 Original line number Diff line number Diff line Loading @@ -19265,6 +19265,26 @@ public class TelephonyManager { return false; } /** * Returns whether the AOSP domain selection service is supported. * * @return {@code true} if the AOSP domain selection service is supported. * @hide */ @RequiresPermission(android.Manifest.permission.READ_PRIVILEGED_PHONE_STATE) @RequiresFeature(PackageManager.FEATURE_TELEPHONY_CALLING) public boolean isAospDomainSelectionService() { try { ITelephony telephony = getITelephony(); if (telephony != null) { return telephony.isAospDomainSelectionService(); } } catch (RemoteException ex) { Rlog.w(TAG, "RemoteException", ex); } return false; } /** * Returns the primary IMEI (International Mobile Equipment Identity) of the device as * mentioned in GSMA TS.37. {@link #getImei(int)} returns the IMEI that belongs to the selected
telephony/java/com/android/internal/telephony/ITelephony.aidl +6 −0 Original line number Diff line number Diff line Loading @@ -3244,6 +3244,12 @@ interface ITelephony { */ boolean clearDomainSelectionServiceOverride(); /** * @return {@code true} if the AOSP domain selection service is supported, * {@code false} otherwise. */ boolean isAospDomainSelectionService(); /** * Enable or disable notifications sent for cellular identifier disclosure events. * Loading