Home
last modified time | relevance | path

Searched refs:cycleDay (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/android/net/
DNetworkPolicy.java70 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/
DNetworkPolicyEditor.java161 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/
DNetworkPolicyManagerService.java1566 int cycleDay = in getCycleDayFromCarrierConfig() local
1568 if (cycleDay == DATA_CYCLE_USE_PLATFORM_DEFAULT) { in getCycleDayFromCarrierConfig()
1573 if (cycleDay < cal.getMinimum(Calendar.DAY_OF_MONTH) || in getCycleDayFromCarrierConfig()
1574 cycleDay > cal.getMaximum(Calendar.DAY_OF_MONTH)) { in getCycleDayFromCarrierConfig()
1576 + "CarrierConfigManager.KEY_MONTHLY_DATA_CYCLE_DAY_INT: " + cycleDay); in getCycleDayFromCarrierConfig()
1579 return cycleDay; in getCycleDayFromCarrierConfig()
2161 final int cycleDay = getCycleDayFromCarrierConfig(config, currentCycleDay); in updateDefaultMobilePolicyAL() local
2162 policy.cycleRule = NetworkPolicy.buildRule(cycleDay, ZoneId.systemDefault()); in updateDefaultMobilePolicyAL()
2225 final int cycleDay = readIntAttribute(in, ATTR_CYCLE_DAY); in readPolicyAL() local
2232 cycleRule = NetworkPolicy.buildRule(cycleDay, ZoneId.of(cycleTimezone)); in readPolicyAL()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java1855 private static NetworkPolicy buildFakeMobilePolicy(int cycleDay, long warningBytes, in buildFakeMobilePolicy() argument
1858 return new NetworkPolicy(template, cycleDay, TimeZone.getDefault().getID(), warningBytes, in buildFakeMobilePolicy()