Home
last modified time | relevance | path

Searched refs:SubscriptionPlan (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/core/java/android/telephony/
DSubscriptionPlan.java58 public final class SubscriptionPlan implements Parcelable { class
95 private SubscriptionPlan(RecurrenceRule cycleRule) { in SubscriptionPlan() method in SubscriptionPlan
101 private SubscriptionPlan(Parcel source) { in SubscriptionPlan() method in SubscriptionPlan
151 if (obj instanceof SubscriptionPlan) { in equals()
152 final SubscriptionPlan other = (SubscriptionPlan) obj; in equals()
165 …roid.annotation.NonNull Parcelable.Creator<SubscriptionPlan> CREATOR = new Parcelable.Creator<Subs…
167 public SubscriptionPlan createFromParcel(Parcel source) {
168 return new SubscriptionPlan(source);
172 public SubscriptionPlan[] newArray(int size) {
173 return new SubscriptionPlan[size];
[all …]
DSubscriptionPlan.aidl19 parcelable SubscriptionPlan;
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerInternal.java25 import android.telephony.SubscriptionPlan;
86 public abstract SubscriptionPlan getSubscriptionPlan(Network network); in getSubscriptionPlan()
91 public abstract SubscriptionPlan getSubscriptionPlan(NetworkTemplate template); in getSubscriptionPlan()
DNetworkPolicyManagerService.java200 import android.telephony.SubscriptionPlan;
447 final SparseArray<SubscriptionPlan[]> mSubscriptionPlans = new SparseArray<>();
1990 final SubscriptionPlan plan = getPrimarySubscriptionPlanLocked(subId);
1998 } else if (limitBytes == SubscriptionPlan.BYTES_UNKNOWN) {
2000 } else if (limitBytes == SubscriptionPlan.BYTES_UNLIMITED) {
2130 final SubscriptionPlan[] plans = mSubscriptionPlans.get(subId); in updateDefaultMobilePolicyAL()
2132 final SubscriptionPlan plan = plans[0]; in updateDefaultMobilePolicyAL()
2135 if (planLimitBytes == SubscriptionPlan.BYTES_UNKNOWN) { in updateDefaultMobilePolicyAL()
2138 } else if (planLimitBytes == SubscriptionPlan.BYTES_UNLIMITED) { in updateDefaultMobilePolicyAL()
2144 case SubscriptionPlan.LIMIT_BEHAVIOR_BILLED: in updateDefaultMobilePolicyAL()
[all …]
DNetworkStatsCollection.java45 import android.telephony.SubscriptionPlan;
163 || time == SubscriptionPlan.TIME_UNKNOWN) { in roundUp()
178 || time == SubscriptionPlan.TIME_UNKNOWN) { in roundDown()
214 public NetworkStatsHistory getHistory(NetworkTemplate template, SubscriptionPlan augmentPlan, in getHistory()
233 long augmentStart = SubscriptionPlan.TIME_UNKNOWN; in getHistory()
235 : SubscriptionPlan.TIME_UNKNOWN; in getHistory()
240 if (augmentEnd != SubscriptionPlan.TIME_UNKNOWN) { in getHistory()
255 if (augmentStart != SubscriptionPlan.TIME_UNKNOWN) { in getHistory()
273 if (augmentStart != SubscriptionPlan.TIME_UNKNOWN) { in getHistory()
DNetworkStatsService.java133 import android.telephony.SubscriptionPlan;
817 private SubscriptionPlan resolveSubscriptionPlan(NetworkTemplate template, int flags) {
818 SubscriptionPlan plan = null;
863 final SubscriptionPlan augmentPlan = resolveSubscriptionPlan(template, flags);
/frameworks/base/core/java/android/net/
DINetworkPolicyManager.aidl24 import android.telephony.SubscriptionPlan;
73 SubscriptionPlan[] getSubscriptionPlans(int subId, String callingPackage); in getSubscriptionPlans()
74 void setSubscriptionPlans(int subId, in SubscriptionPlan[] plans, String callingPackage); in setSubscriptionPlans()
DINetworkPolicyListener.aidl18 import android.telephony.SubscriptionPlan;
27 void onSubscriptionPlansChanged(int subId, in SubscriptionPlan[] plans); in onSubscriptionPlansChanged()
DNetworkPolicyManager.java37 import android.telephony.SubscriptionPlan;
395 public void setSubscriptionPlans(int subId, @NonNull SubscriptionPlan[] plans, in setSubscriptionPlans()
412 public SubscriptionPlan[] getSubscriptionPlans(int subId, @NonNull String callingPackage) { in getSubscriptionPlans()
570 public void onSubscriptionPlansChanged(int subId, @NonNull SubscriptionPlan[] plans) {}
591 public void onSubscriptionPlansChanged(int subId, SubscriptionPlan[] plans) {
604 @Override public void onSubscriptionPlansChanged(int subId, SubscriptionPlan[] plans) { }
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsCollectionTest.java46 import android.telephony.SubscriptionPlan;
286 final List<SubscriptionPlan> plans = new ArrayList<>(); 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()
358 final SubscriptionPlan plan = SubscriptionPlan.Builder in testAugmentPlan()
413 final SubscriptionPlan plan = SubscriptionPlan.Builder in testAugmentPlan()
480 final SubscriptionPlan plan = SubscriptionPlan.Builder in testAugmentPlanGigantic()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java51 import static android.telephony.SubscriptionPlan.BYTES_UNLIMITED;
52 import static android.telephony.SubscriptionPlan.LIMIT_BEHAVIOR_DISABLED;
128 import android.telephony.SubscriptionPlan;
1049 final SubscriptionPlan plan = buildMonthlyDataPlan(
1051 setSubscriptionPlans(TEST_SUB_ID, new SubscriptionPlan[] { plan },
1173 final SubscriptionPlan plan = buildMonthlyDataPlan(
1175 setSubscriptionPlans(TEST_SUB_ID, new SubscriptionPlan[] { plan },
1588 final SubscriptionPlan plan = buildMonthlyDataPlan(
1591 setSubscriptionPlans(TEST_SUB_ID, new SubscriptionPlan[]{plan},
1609 final SubscriptionPlan plan = buildMonthlyDataPlan(
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DDcTrackerTest.java74 import android.telephony.SubscriptionPlan;
1723 List<SubscriptionPlan> plans = new ArrayList<>(); in setUpSubscriptionPlans()
1725 plans.add(SubscriptionPlan.Builder in setUpSubscriptionPlans()
1728 .setDataLimit(SubscriptionPlan.BYTES_UNLIMITED, in setUpSubscriptionPlans()
1729 SubscriptionPlan.LIMIT_BEHAVIOR_THROTTLED) in setUpSubscriptionPlans()
1733 plans.add(SubscriptionPlan.Builder in setUpSubscriptionPlans()
1736 .setDataLimit(1_000_000_000, SubscriptionPlan.LIMIT_BEHAVIOR_DISABLED) in setUpSubscriptionPlans()
1800 List<SubscriptionPlan> plans = new ArrayList<>(); in testIsNetworkTypeUnmetered()
1801 plans.add(SubscriptionPlan.Builder in testIsNetworkTypeUnmetered()
1805 .setDataLimit(SubscriptionPlan.BYTES_UNLIMITED, in testIsNetworkTypeUnmetered()
[all …]
/frameworks/base/telephony/java/android/telephony/
DSubscriptionManager.java2495 public @NonNull List<SubscriptionPlan> getSubscriptionPlans(int subId) { in getSubscriptionPlans()
2496 SubscriptionPlan[] subscriptionPlans = in getSubscriptionPlans()
2524 public void setSubscriptionPlans(int subId, @NonNull List<SubscriptionPlan> plans) { in setSubscriptionPlans()
2526 plans.toArray(new SubscriptionPlan[plans.size()]), mContext.getOpPackageName()); in setSubscriptionPlans()
2616 final List<SubscriptionPlan> plans = getSubscriptionPlans(subId); in createManageSubscriptionIntent()
2639 final List<SubscriptionPlan> plans = getSubscriptionPlans(subId); in createRefreshSubscriptionIntent()
/frameworks/base/non-updatable-api/
Dsystem-lint-baseline.txt66 MissingNullability: android.telephony.SubscriptionPlan.Builder#createRecurringDaily(java.time.Zoned…
68 MissingNullability: android.telephony.SubscriptionPlan.Builder#createRecurringMonthly(java.time.Zon…
70 MissingNullability: android.telephony.SubscriptionPlan.Builder#createRecurringWeekly(java.time.Zone…
Dsystem-current.txt8862 public static class SubscriptionPlan.Builder {
8863 …method @Deprecated public static android.telephony.SubscriptionPlan.Builder createRecurringDaily(j…
8864 …method @Deprecated public static android.telephony.SubscriptionPlan.Builder createRecurringMonthly…
8865 …method @Deprecated public static android.telephony.SubscriptionPlan.Builder createRecurringWeekly(…
Dcurrent.txt45781 …method @NonNull public java.util.List<android.telephony.SubscriptionPlan> getSubscriptionPlans(int…
45793 …public void setSubscriptionPlans(int, @NonNull java.util.List<android.telephony.SubscriptionPlan>);
45820 public final class SubscriptionPlan implements android.os.Parcelable {
45833 …Null public static final android.os.Parcelable.Creator<android.telephony.SubscriptionPlan> CREATOR;
45841 public static class SubscriptionPlan.Builder {
45842 method public android.telephony.SubscriptionPlan build();
45843 …method public static android.telephony.SubscriptionPlan.Builder createNonrecurring(java.time.Zoned…
45844 …method public static android.telephony.SubscriptionPlan.Builder createRecurring(java.time.ZonedDat…
45845 method @NonNull public android.telephony.SubscriptionPlan.Builder resetNetworkTypes();
45846 method public android.telephony.SubscriptionPlan.Builder setDataLimit(long, int);
[all …]
/frameworks/base/api/
Dsystem-lint-baseline.txt92 MissingNullability: android.telephony.SubscriptionPlan.Builder#createRecurringDaily(java.time.Zoned…
94 MissingNullability: android.telephony.SubscriptionPlan.Builder#createRecurringMonthly(java.time.Zon…
96 MissingNullability: android.telephony.SubscriptionPlan.Builder#createRecurringWeekly(java.time.Zone…
Dsystem-current.txt8964 public static class SubscriptionPlan.Builder {
8965 …method @Deprecated public static android.telephony.SubscriptionPlan.Builder createRecurringDaily(j…
8966 …method @Deprecated public static android.telephony.SubscriptionPlan.Builder createRecurringMonthly…
8967 …method @Deprecated public static android.telephony.SubscriptionPlan.Builder createRecurringWeekly(…
Dcurrent.txt45925 …method @NonNull public java.util.List<android.telephony.SubscriptionPlan> getSubscriptionPlans(int…
45937 …public void setSubscriptionPlans(int, @NonNull java.util.List<android.telephony.SubscriptionPlan>);
45964 public final class SubscriptionPlan implements android.os.Parcelable {
45977 …Null public static final android.os.Parcelable.Creator<android.telephony.SubscriptionPlan> CREATOR;
45985 public static class SubscriptionPlan.Builder {
45986 method public android.telephony.SubscriptionPlan build();
45987 …method public static android.telephony.SubscriptionPlan.Builder createNonrecurring(java.time.Zoned…
45988 …method public static android.telephony.SubscriptionPlan.Builder createRecurring(java.time.ZonedDat…
45989 method @NonNull public android.telephony.SubscriptionPlan.Builder resetNetworkTypes();
45990 method public android.telephony.SubscriptionPlan.Builder setDataLimit(long, int);
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDcTracker.java82 import android.telephony.SubscriptionPlan;
330 private List<SubscriptionPlan> mSubscriptionPlans = null;
420 public void onSubscriptionPlansChanged(int subId, SubscriptionPlan[] plans) {
4059 for (SubscriptionPlan plan : mSubscriptionPlans) { in isNetworkTypeUnmetered()
4081 private boolean isPlanUnmetered(SubscriptionPlan plan) { in isPlanUnmetered()
4082 return plan.getDataLimitBytes() == SubscriptionPlan.BYTES_UNLIMITED in isPlanUnmetered()
4083 && (plan.getDataLimitBehavior() == SubscriptionPlan.LIMIT_BEHAVIOR_UNKNOWN in isPlanUnmetered()
4084 || plan.getDataLimitBehavior() == SubscriptionPlan.LIMIT_BEHAVIOR_THROTTLED); in isPlanUnmetered()
/frameworks/base/services/
Dart-profile8858 …ternalImpl;->getSubscriptionPlan(Landroid/net/NetworkTemplate;)Landroid/telephony/SubscriptionPlan;
8888 …tworkPolicyManagerService;->getPrimarySubscriptionPlanLocked(I)Landroid/telephony/SubscriptionPlan;
8892 …licyManagerService;->getSubscriptionPlans(ILjava/lang/String;)[Landroid/telephony/SubscriptionPlan;
8930 …orkPolicyManagerService;->setSubscriptionPlans(I[Landroid/telephony/SubscriptionPlan;Ljava/lang/St…
8978 …ection;->getHistory(Landroid/net/NetworkTemplate;Landroid/telephony/SubscriptionPlan;IIIIJJII)Land…
9095 …rvice;->resolveSubscriptionPlan(Landroid/net/NetworkTemplate;I)Landroid/telephony/SubscriptionPlan;
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt43360 …Manager$Stub$Proxy;->getSubscriptionPlans(ILjava/lang/String;)[Landroid/telephony/SubscriptionPlan;
43373 …olicyManager$Stub$Proxy;->setSubscriptionPlans(I[Landroid/telephony/SubscriptionPlan;Ljava/lang/St…
43407 …tworkPolicyManager;->getSubscriptionPlans(ILjava/lang/String;)[Landroid/telephony/SubscriptionPlan;
43416 Landroid/net/INetworkPolicyManager;->setSubscriptionPlans(I[Landroid/telephony/SubscriptionPlan;Lja…
69460 Landroid/telephony/SubscriptionPlan$Builder;-><init>(Ljava/time/ZonedDateTime;Ljava/time/ZonedDateT…
69461 Landroid/telephony/SubscriptionPlan$Builder;->plan:Landroid/telephony/SubscriptionPlan;
69462 Landroid/telephony/SubscriptionPlan;-><init>(Landroid/os/Parcel;)V
69463 Landroid/telephony/SubscriptionPlan;-><init>(Landroid/util/RecurrenceRule;)V
69464 Landroid/telephony/SubscriptionPlan;->cycleRule:Landroid/util/RecurrenceRule;
69465 Landroid/telephony/SubscriptionPlan;->dataLimitBehavior:I
[all …]
Dboot-image-profile.txt14308 HSPLandroid/telephony/SubscriptionPlan$1;-><init>()V
14309 HSPLandroid/telephony/SubscriptionPlan$1;->newArray(I)[Landroid/telephony/SubscriptionPlan;
14310 HSPLandroid/telephony/SubscriptionPlan$1;->newArray(I)[Ljava/lang/Object;