Searched refs:cycleDay (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/core/java/android/net/ |
D | NetworkPolicy.java | 70 public static RecurrenceRule buildRule(int cycleDay, ZoneId cycleTimezone) { in buildRule() argument 71 if (cycleDay != NetworkPolicy.CYCLE_NONE) { in buildRule() 72 return RecurrenceRule.buildRecurringMonthly(cycleDay, cycleTimezone); in buildRule() 79 public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone, in NetworkPolicy() argument 81 this(template, cycleDay, cycleTimezone, warningBytes, limitBytes, SNOOZE_NEVER, in NetworkPolicy() 87 public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone, in NetworkPolicy() argument 90 this(template, buildRule(cycleDay, ZoneId.of(cycleTimezone)), warningBytes, in NetworkPolicy() 281 final int cycleDay = in.readInt(); in getNetworkPolicyFromBackup() local 283 cycleRule = buildRule(cycleDay, ZoneId.of(cycleTimezone)); in getNetworkPolicyFromBackup()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/ |
D | NetworkPolicyEditor.java | 161 public void setPolicyCycleDay(NetworkTemplate template, int cycleDay, String cycleTimezone) { in setPolicyCycleDay() argument 163 policy.cycleRule = NetworkPolicy.buildRule(cycleDay, ZoneId.of(cycleTimezone)); in setPolicyCycleDay()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 1554 int cycleDay = in getCycleDayFromCarrierConfig() local 1556 if (cycleDay == DATA_CYCLE_USE_PLATFORM_DEFAULT) { in getCycleDayFromCarrierConfig() 1561 if (cycleDay < cal.getMinimum(Calendar.DAY_OF_MONTH) || in getCycleDayFromCarrierConfig() 1562 cycleDay > cal.getMaximum(Calendar.DAY_OF_MONTH)) { in getCycleDayFromCarrierConfig() 1564 + "CarrierConfigManager.KEY_MONTHLY_DATA_CYCLE_DAY_INT: " + cycleDay); in getCycleDayFromCarrierConfig() 1567 return cycleDay; in getCycleDayFromCarrierConfig() 2142 final int cycleDay = getCycleDayFromCarrierConfig(config, currentCycleDay); in updateDefaultMobilePolicyAL() local 2143 policy.cycleRule = NetworkPolicy.buildRule(cycleDay, ZoneId.systemDefault()); in updateDefaultMobilePolicyAL() 2206 final int cycleDay = readIntAttribute(in, ATTR_CYCLE_DAY); in readPolicyAL() local 2213 cycleRule = NetworkPolicy.buildRule(cycleDay, ZoneId.of(cycleTimezone)); in readPolicyAL()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 1796 private static NetworkPolicy buildFakeMobilePolicy(int cycleDay, long warningBytes, in buildFakeMobilePolicy() argument 1799 return new NetworkPolicy(template, cycleDay, new Time().timezone, warningBytes, in buildFakeMobilePolicy()
|