/frameworks/base/core/java/android/net/ |
D | NetworkPolicyManager.java | 395 public void setSubscriptionPlans(int subId, @NonNull SubscriptionPlan[] plans, in setSubscriptionPlans() argument 398 mService.setSubscriptionPlans(subId, plans, callingPackage); in setSubscriptionPlans() 570 public void onSubscriptionPlansChanged(int subId, @NonNull SubscriptionPlan[] plans) {} 591 public void onSubscriptionPlansChanged(int subId, SubscriptionPlan[] plans) { 592 mCallback.onSubscriptionPlansChanged(subId, plans); 604 @Override public void onSubscriptionPlansChanged(int subId, SubscriptionPlan[] plans) { }
|
D | INetworkPolicyListener.aidl | 27 void onSubscriptionPlansChanged(int subId, in SubscriptionPlan[] plans); in onSubscriptionPlansChanged() argument
|
D | INetworkPolicyManager.aidl | 74 void setSubscriptionPlans(int subId, in SubscriptionPlan[] plans, String callingPackage); in setSubscriptionPlans() argument
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 2130 final SubscriptionPlan[] plans = mSubscriptionPlans.get(subId); in updateDefaultMobilePolicyAL() local 2131 if (!ArrayUtils.isEmpty(plans)) { in updateDefaultMobilePolicyAL() 2132 final SubscriptionPlan plan = plans[0]; in updateDefaultMobilePolicyAL() 2489 final SubscriptionPlan[] plans = mSubscriptionPlans.valueAt(i); in writePolicyAL() local 2490 if (ArrayUtils.isEmpty(plans)) continue; in writePolicyAL() 2492 for (SubscriptionPlan plan : plans) { in writePolicyAL() 3091 private void enforceSubscriptionPlanValidity(SubscriptionPlan[] plans) { in enforceSubscriptionPlanValidity() argument 3093 if (plans.length == 0) { in enforceSubscriptionPlanValidity() 3104 for (int i = 0; i < plans.length; i++) { in enforceSubscriptionPlanValidity() 3105 final int[] planNetworkTypes = plans[i].getNetworkTypes(); in enforceSubscriptionPlanValidity() [all …]
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsCollectionTest.java | 286 final List<SubscriptionPlan> plans = new ArrayList<>(); in testAugmentPlan() local 289 plans.add(null); in testAugmentPlan() 291 plans.add(SubscriptionPlan.Builder in testAugmentPlan() 294 plans.add(SubscriptionPlan.Builder in testAugmentPlan() 298 plans.add(SubscriptionPlan.Builder in testAugmentPlan() 302 plans.add(SubscriptionPlan.Builder in testAugmentPlan() 307 for (SubscriptionPlan plan : plans) { in testAugmentPlan()
|
/frameworks/base/telephony/java/android/telephony/ |
D | SubscriptionManager.java | 2524 public void setSubscriptionPlans(int subId, @NonNull List<SubscriptionPlan> plans) { in setSubscriptionPlans() argument 2526 plans.toArray(new SubscriptionPlan[plans.size()]), mContext.getOpPackageName()); in setSubscriptionPlans() 2616 final List<SubscriptionPlan> plans = getSubscriptionPlans(subId); in createManageSubscriptionIntent() 2617 if (plans.isEmpty()) return null; in createManageSubscriptionIntent() 2639 final List<SubscriptionPlan> plans = getSubscriptionPlans(subId); in createRefreshSubscriptionIntent() 2640 if (plans.isEmpty()) return null; in createRefreshSubscriptionIntent()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | DcTrackerTest.java | 1723 List<SubscriptionPlan> plans = new ArrayList<>(); in setUpSubscriptionPlans() local 1725 plans.add(SubscriptionPlan.Builder in setUpSubscriptionPlans() 1733 plans.add(SubscriptionPlan.Builder in setUpSubscriptionPlans() 1739 replaceInstance(DcTracker.class, "mSubscriptionPlans", mDct, plans); in setUpSubscriptionPlans() 1800 List<SubscriptionPlan> plans = new ArrayList<>(); in testIsNetworkTypeUnmetered() local 1801 plans.add(SubscriptionPlan.Builder in testIsNetworkTypeUnmetered() 1808 replaceInstance(DcTracker.class, "mSubscriptionPlans", mDct, plans); in testIsNetworkTypeUnmetered()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 2052 private void setSubscriptionPlans(int subId, SubscriptionPlan[] plans, String callingPackage) in setSubscriptionPlans() argument 2054 mService.setSubscriptionPlans(subId, plans, callingPackage); in setSubscriptionPlans()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DcTracker.java | 420 public void onSubscriptionPlansChanged(int subId, SubscriptionPlan[] plans) { 423 mSubscriptionPlans = plans == null ? null : Arrays.asList(plans);
|