diff options
| author | 2022-03-18 21:22:49 +0000 | |
|---|---|---|
| committer | 2022-03-18 21:22:49 +0000 | |
| commit | f3ecc6182b500e15e99faa47812e433c87b9d29d (patch) | |
| tree | 86dbf274e086faeff5024b7af45755c29ffc5495 | |
| parent | 10fc99d0b8b0b990a2e8b544f6d1a33936f9a242 (diff) | |
| parent | 5fe695fbddd7b913901312385cf4ff5dca4e505a (diff) | |
Merge "Update getSubscriptionPlans documentation"
| -rw-r--r-- | core/java/android/net/NetworkPolicyManager.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/core/java/android/net/NetworkPolicyManager.java b/core/java/android/net/NetworkPolicyManager.java index 341d98f27320..3f92eb1d9a40 100644 --- a/core/java/android/net/NetworkPolicyManager.java +++ b/core/java/android/net/NetworkPolicyManager.java @@ -525,9 +525,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); @@ -540,7 +542,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 */ |