Loading telephony/java/android/telephony/SubscriptionManager.java +4 −11 Original line number Diff line number Diff line Loading @@ -1743,8 +1743,7 @@ public class SubscriptionManager { * * <p>Requires Permission: {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE} * or that the calling app has carrier privileges (see * {@link TelephonyManager#hasCarrierPrivileges}). In the latter case, only records accessible * to the calling app are returned. * {@link TelephonyManager#hasCarrierPrivileges}). * * @return Sorted list of the currently {@link SubscriptionInfo} records available on the device. * <ul> Loading @@ -1762,7 +1761,6 @@ public class SubscriptionManager { * </li> * </ul> */ @SuppressAutoDoc // Blocked by b/72967236 - no support for carrier privileges @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) public List<SubscriptionInfo> getActiveSubscriptionInfoList() { return getActiveSubscriptionInfoList(/* userVisibleonly */true); Loading Loading @@ -1966,17 +1964,12 @@ public class SubscriptionManager { } /** * Get the active subscription count. * * Requires Permission: {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE} * or that the calling app has carrier privileges (see * {@link TelephonyManager#hasCarrierPrivileges}). In the latter case, the count will include * only those subscriptions accessible to the caller. * @return The current number of active subscriptions. * * @return the current number of active subscriptions. There is no guarantee the value * returned by this method will be the same as the length of the list returned by * {@link #getActiveSubscriptionInfoList}. * @see #getActiveSubscriptionInfoList() */ @SuppressAutoDoc // Blocked by b/72967236 - no support for carrier privileges @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) public int getActiveSubscriptionInfoCount() { int result = 0; Loading Loading
telephony/java/android/telephony/SubscriptionManager.java +4 −11 Original line number Diff line number Diff line Loading @@ -1743,8 +1743,7 @@ public class SubscriptionManager { * * <p>Requires Permission: {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE} * or that the calling app has carrier privileges (see * {@link TelephonyManager#hasCarrierPrivileges}). In the latter case, only records accessible * to the calling app are returned. * {@link TelephonyManager#hasCarrierPrivileges}). * * @return Sorted list of the currently {@link SubscriptionInfo} records available on the device. * <ul> Loading @@ -1762,7 +1761,6 @@ public class SubscriptionManager { * </li> * </ul> */ @SuppressAutoDoc // Blocked by b/72967236 - no support for carrier privileges @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) public List<SubscriptionInfo> getActiveSubscriptionInfoList() { return getActiveSubscriptionInfoList(/* userVisibleonly */true); Loading Loading @@ -1966,17 +1964,12 @@ public class SubscriptionManager { } /** * Get the active subscription count. * * Requires Permission: {@link android.Manifest.permission#READ_PHONE_STATE READ_PHONE_STATE} * or that the calling app has carrier privileges (see * {@link TelephonyManager#hasCarrierPrivileges}). In the latter case, the count will include * only those subscriptions accessible to the caller. * @return The current number of active subscriptions. * * @return the current number of active subscriptions. There is no guarantee the value * returned by this method will be the same as the length of the list returned by * {@link #getActiveSubscriptionInfoList}. * @see #getActiveSubscriptionInfoList() */ @SuppressAutoDoc // Blocked by b/72967236 - no support for carrier privileges @RequiresPermission(android.Manifest.permission.READ_PHONE_STATE) public int getActiveSubscriptionInfoCount() { int result = 0; Loading