Searched refs:cycleRule (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/core/java/android/net/ |
D | NetworkPolicy.java | 55 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/ |
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); 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 | 134 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/ |
D | NetworkPolicyManagerService.java | 2099 final RecurrenceRule cycleRule = NetworkPolicy in buildDefaultMobilePolicy() local 2101 final NetworkPolicy policy = new NetworkPolicy(template, cycleRule, in buildDefaultMobilePolicy() 2126 final NetworkPolicy original = new NetworkPolicy(policy.template, policy.cycleRule, in updateDefaultMobilePolicyAL() 2133 policy.cycleRule = plan.getCycleRule(); in updateDefaultMobilePolicyAL() 2156 if (policy.cycleRule.isMonthly()) { in updateDefaultMobilePolicyAL() 2157 currentCycleDay = policy.cycleRule.start.getDayOfMonth(); in updateDefaultMobilePolicyAL() 2162 policy.cycleRule = NetworkPolicy.buildRule(cycleDay, ZoneId.systemDefault()); in updateDefaultMobilePolicyAL() 2215 final RecurrenceRule cycleRule; in readPolicyAL() local 2220 cycleRule = new RecurrenceRule( in readPolicyAL() 2232 cycleRule = NetworkPolicy.buildRule(cycleDay, ZoneId.of(cycleTimezone)); in readPolicyAL() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 1849 p.cycleRule = new RecurrenceRule( in buildDefaultFakeMobilePolicy() 1850 p.cycleRule.start.withDayOfMonth(DEFAULT_CYCLE_DAY), in buildDefaultFakeMobilePolicy() 1851 p.cycleRule.end, Period.ofMonths(1)); in buildDefaultFakeMobilePolicy()
|
/frameworks/base/config/ |
D | hiddenapi-greylist-max-o.txt | 44496 Landroid/net/NetworkPolicy;->cycleRule:Landroid/util/RecurrenceRule; 69464 Landroid/telephony/SubscriptionPlan;->cycleRule:Landroid/util/RecurrenceRule;
|