Home
last modified time | relevance | path

Searched refs:cycleRule (Results 1 – 5 of 5) sorted by relevance

/frameworks/base/core/java/android/net/
DNetworkPolicy.java55 public RecurrenceRule cycleRule; field in NetworkPolicy
95 public NetworkPolicy(NetworkTemplate template, RecurrenceRule cycleRule, long warningBytes, in NetworkPolicy() argument
98 this(template, cycleRule, warningBytes, limitBytes, lastWarningSnooze, lastLimitSnooze, in NetworkPolicy()
102 public NetworkPolicy(NetworkTemplate template, RecurrenceRule cycleRule, long warningBytes, in NetworkPolicy() argument
106 this.cycleRule = Preconditions.checkNotNull(cycleRule, "missing RecurrenceRule"); in NetworkPolicy()
118 cycleRule = source.readParcelable(null); in NetworkPolicy()
131 dest.writeParcelable(cycleRule, flags); in writeToParcel()
147 return cycleRule.cycleIterator(); in cycleIterator()
184 return cycleRule.cycleIterator().hasNext(); in hasCycle()
203 return Objects.hash(template, cycleRule, warningBytes, limitBytes, in hashCode()
[all …]
/frameworks/base/core/java/android/telephony/
DSubscriptionPlan.java86 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); 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/
DNetworkPolicyEditor.java134 final RecurrenceRule cycleRule; in buildDefaultPolicy() local
138 cycleRule = RecurrenceRule.buildNever(); in buildDefaultPolicy()
141 cycleRule = RecurrenceRule.buildRecurringMonthly(ZonedDateTime.now().getDayOfMonth(), in buildDefaultPolicy()
146 return new NetworkPolicy(template, cycleRule, WARNING_DISABLED, in buildDefaultPolicy()
153 if (policy != null && policy.cycleRule.isMonthly()) { in getPolicyCycleDay()
154 return policy.cycleRule.start.getDayOfMonth(); in getPolicyCycleDay()
163 policy.cycleRule = NetworkPolicy.buildRule(cycleDay, ZoneId.of(cycleTimezone)); in setPolicyCycleDay()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java2106 final RecurrenceRule cycleRule = NetworkPolicy in buildDefaultMobilePolicy() local
2108 final NetworkPolicy policy = new NetworkPolicy(template, cycleRule, in buildDefaultMobilePolicy()
2133 final NetworkPolicy original = new NetworkPolicy(policy.template, policy.cycleRule, in updateDefaultMobilePolicyAL()
2140 policy.cycleRule = plan.getCycleRule(); in updateDefaultMobilePolicyAL()
2163 if (policy.cycleRule.isMonthly()) { in updateDefaultMobilePolicyAL()
2164 currentCycleDay = policy.cycleRule.start.getDayOfMonth(); in updateDefaultMobilePolicyAL()
2169 policy.cycleRule = NetworkPolicy.buildRule(cycleDay, ZoneId.systemDefault()); in updateDefaultMobilePolicyAL()
2222 final RecurrenceRule cycleRule; in readPolicyAL() local
2227 cycleRule = new RecurrenceRule( in readPolicyAL()
2239 cycleRule = NetworkPolicy.buildRule(cycleDay, ZoneId.of(cycleTimezone)); in readPolicyAL()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java1926 p.cycleRule = new RecurrenceRule( in buildDefaultFakeMobilePolicy()
1927 p.cycleRule.start.withDayOfMonth(DEFAULT_CYCLE_DAY), in buildDefaultFakeMobilePolicy()
1928 p.cycleRule.end, Period.ofMonths(1)); in buildDefaultFakeMobilePolicy()