Loading core/java/android/net/NetworkPolicyManager.java +4 −2 Original line number Diff line number Diff line Loading @@ -523,9 +523,11 @@ public class NetworkPolicyManager { * * @param subId the subscriber to get the subscription plans for. * @param callingPackage the name of the package making the call. * @return the active {@link SubscriptionPlan}s for the given subscription id, or * {@code null} if not found. * @hide */ @NonNull @Nullable public SubscriptionPlan[] getSubscriptionPlans(int subId, @NonNull String callingPackage) { try { return mService.getSubscriptionPlans(subId, callingPackage); Loading @@ -538,7 +540,7 @@ public class NetworkPolicyManager { * Get subscription plan for the given networkTemplate. * * @param template the networkTemplate to get the subscription plan for. * @return the active {@link SubscriptionPlan} for the given template, or * @return the active {@link SubscriptionPlan}s for the given template, or * {@code null} if not found. * @hide */ Loading Loading
core/java/android/net/NetworkPolicyManager.java +4 −2 Original line number Diff line number Diff line Loading @@ -523,9 +523,11 @@ public class NetworkPolicyManager { * * @param subId the subscriber to get the subscription plans for. * @param callingPackage the name of the package making the call. * @return the active {@link SubscriptionPlan}s for the given subscription id, or * {@code null} if not found. * @hide */ @NonNull @Nullable public SubscriptionPlan[] getSubscriptionPlans(int subId, @NonNull String callingPackage) { try { return mService.getSubscriptionPlans(subId, callingPackage); Loading @@ -538,7 +540,7 @@ public class NetworkPolicyManager { * Get subscription plan for the given networkTemplate. * * @param template the networkTemplate to get the subscription plan for. * @return the active {@link SubscriptionPlan} for the given template, or * @return the active {@link SubscriptionPlan}s for the given template, or * {@code null} if not found. * @hide */ Loading