Home
last modified time | relevance | path

Searched refs:plans (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/java/android/net/
DNetworkPolicyManager.java395 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) { }
DINetworkPolicyListener.aidl27 void onSubscriptionPlansChanged(int subId, in SubscriptionPlan[] plans); in onSubscriptionPlansChanged() argument
DINetworkPolicyManager.aidl74 void setSubscriptionPlans(int subId, in SubscriptionPlan[] plans, String callingPackage); in setSubscriptionPlans() argument
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java2130 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/
DNetworkStatsCollectionTest.java286 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/
DSubscriptionManager.java2524 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/
DDcTrackerTest.java1723 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/
DNetworkPolicyManagerServiceTest.java2052 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/
DDcTracker.java420 public void onSubscriptionPlansChanged(int subId, SubscriptionPlan[] plans) {
423 mSubscriptionPlans = plans == null ? null : Arrays.asList(plans);