Searched refs:cycleRule (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/java/android/net/ |
D | NetworkPolicy.java | 83 public RecurrenceRule cycleRule; field in NetworkPolicy 123 public NetworkPolicy(NetworkTemplate template, RecurrenceRule cycleRule, long warningBytes, in NetworkPolicy() argument 126 this(template, cycleRule, warningBytes, limitBytes, lastWarningSnooze, lastLimitSnooze, in NetworkPolicy() 130 public NetworkPolicy(NetworkTemplate template, RecurrenceRule cycleRule, long warningBytes, in NetworkPolicy() argument 134 this.cycleRule = Preconditions.checkNotNull(cycleRule, "missing RecurrenceRule"); in NetworkPolicy() 146 cycleRule = source.readParcelable(null, android.util.RecurrenceRule.class); in NetworkPolicy() 159 dest.writeParcelable(cycleRule, flags); in writeToParcel() 175 return cycleRule.cycleIterator(); in cycleIterator() 212 return cycleRule.cycleIterator().hasNext(); in hasCycle() 231 return Objects.hash(template, cycleRule, warningBytes, limitBytes, in hashCode() [all …]
|
/frameworks/base/core/java/android/telephony/ |
D | SubscriptionPlan.java | 86 private final RecurrenceRule cycleRule; field in SubscriptionPlan 95 private SubscriptionPlan(RecurrenceRule cycleRule) { in SubscriptionPlan() argument 96 this.cycleRule = Preconditions.checkNotNull(cycleRule); in SubscriptionPlan() 102 cycleRule = source.readParcelable(null, android.util.RecurrenceRule.class); in SubscriptionPlan() 119 dest.writeParcelable(cycleRule, flags); in writeToParcel() 132 .append("cycleRule=").append(cycleRule) in toString() 145 return Objects.hash(cycleRule, title, summary, dataLimitBytes, dataLimitBehavior, in hashCode() 153 return Objects.equals(cycleRule, other.cycleRule) in equals() 179 return cycleRule; in getCycleRule() 237 return cycleRule.cycleIterator(); in cycleIterator()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | NetworkPolicyEditor.java | 132 final RecurrenceRule cycleRule; in buildDefaultPolicy() local 136 cycleRule = RecurrenceRule.buildNever(); in buildDefaultPolicy() 139 cycleRule = RecurrenceRule.buildRecurringMonthly(ZonedDateTime.now().getDayOfMonth(), in buildDefaultPolicy() 144 return new NetworkPolicy(template, cycleRule, WARNING_DISABLED, in buildDefaultPolicy() 151 if (policy != null && policy.cycleRule.isMonthly()) { in getPolicyCycleDay() 152 return policy.cycleRule.start.getDayOfMonth(); in getPolicyCycleDay() 161 policy.cycleRule = NetworkPolicy.buildRule(cycleDay, ZoneId.of(cycleTimezone)); in setPolicyCycleDay()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 2625 final RecurrenceRule cycleRule = NetworkPolicy 2627 final NetworkPolicy policy = new NetworkPolicy(template, cycleRule, 2664 final NetworkPolicy original = new NetworkPolicy(policy.template, policy.cycleRule, 2671 policy.cycleRule = plan.getCycleRule(); 2694 if (policy.cycleRule.isMonthly()) { 2695 currentCycleDay = policy.cycleRule.start.getDayOfMonth(); 2700 policy.cycleRule = NetworkPolicy.buildRule(cycleDay, ZoneId.systemDefault()); 2772 final RecurrenceRule cycleRule; 2777 cycleRule = new RecurrenceRule( 2789 cycleRule = NetworkPolicy.buildRule(cycleDay, ZoneId.of(cycleTimezone)); [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 2740 p.cycleRule = new RecurrenceRule( in buildDefaultFakeCarrierPolicy() 2741 p.cycleRule.start.withDayOfMonth(DEFAULT_CYCLE_DAY), in buildDefaultFakeCarrierPolicy() 2742 p.cycleRule.end, Period.ofMonths(1)); in buildDefaultFakeCarrierPolicy()
|
/frameworks/base/boot/hiddenapi/ |
D | hiddenapi-max-target-o.txt | 54798 Landroid/telephony/SubscriptionPlan;->cycleRule:Landroid/util/RecurrenceRule;
|