Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DNetworkPolicy.java39 public int cycleDay; field in NetworkPolicy
51 public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone, in NetworkPolicy() argument
53 this(template, cycleDay, cycleTimezone, warningBytes, limitBytes, SNOOZE_NEVER, in NetworkPolicy()
57 public NetworkPolicy(NetworkTemplate template, int cycleDay, String cycleTimezone, in NetworkPolicy() argument
61 this.cycleDay = cycleDay; in NetworkPolicy()
73 cycleDay = in.readInt(); in NetworkPolicy()
86 dest.writeInt(cycleDay); in writeToParcel()
131 return cycleDay != CYCLE_NONE; in hasCycle()
149 return Objects.hash(template, cycleDay, cycleTimezone, warningBytes, limitBytes, in hashCode()
157 return cycleDay == other.cycleDay && warningBytes == other.warningBytes in equals()
[all …]
DNetworkPolicyManager.java216 if (policy.cycleDay == CYCLE_NONE) { in computeLastCycleBoundary()
226 snapToCycleDay(cycle, policy.cycleDay); in computeLastCycleBoundary()
238 snapToCycleDay(cycle, policy.cycleDay); in computeLastCycleBoundary()
246 if (policy.cycleDay == CYCLE_NONE) { in computeNextCycleBoundary()
256 snapToCycleDay(cycle, policy.cycleDay); in computeNextCycleBoundary()
268 snapToCycleDay(cycle, policy.cycleDay); in computeNextCycleBoundary()
280 public static void snapToCycleDay(Time time, int cycleDay) { in snapToCycleDay() argument
281 if (cycleDay > time.getActualMaximum(MONTH_DAY)) { in snapToCycleDay()
287 time.monthDay = cycleDay; in snapToCycleDay()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DMobileDataControllerImpl.java124 if (policy != null && policy.cycleDay > 0) { in getDataUsageInfo()
126 if (DEBUG) Log.d(TAG, "Cycle day=" + policy.cycleDay + " tz=" in getDataUsageInfo()
131 policyTime.set(policy.cycleDay, policyTime.month, policyTime.year); in getDataUsageInfo()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java1314 final int cycleDay = time.monthDay; in ensureActiveMobilePolicyLocked() local
1318 final NetworkPolicy policy = new NetworkPolicy(template, cycleDay, cycleTimezone, in ensureActiveMobilePolicyLocked()
1359 final int cycleDay = readIntAttribute(in, ATTR_CYCLE_DAY); in readPolicyLocked() local
1405 mNetworkPolicy.put(template, new NetworkPolicy(template, cycleDay, in readPolicyLocked()
1491 writeIntAttribute(out, ATTR_CYCLE_DAY, policy.cycleDay); in writePolicyLocked()