Home
last modified time | relevance | path

Searched refs:cycleEnd (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Settings/src/com/android/settings/datausage/
DCycleAdapter.java98 final long cycleEnd = cycle.second.toInstant().toEpochMilli(); in updateCycleList() local
102 entry = chartData.network.getValues(cycleStart, cycleEnd, entry); in updateCycleList()
109 add(new CycleAdapter.CycleItem(context, cycleStart, cycleEnd)); in updateCycleList()
117 long cycleEnd = historyEnd; in updateCycleList() local
118 while (cycleEnd > historyStart) { in updateCycleList()
119 final long cycleStart = cycleEnd - (DateUtils.WEEK_IN_MILLIS * 4); in updateCycleList()
123 entry = chartData.network.getValues(cycleStart, cycleEnd, entry); in updateCycleList()
130 add(new CycleAdapter.CycleItem(context, cycleStart, cycleEnd)); in updateCycleList()
132 cycleEnd = cycleStart; in updateCycleList()
DDataUsageSummaryPreferenceController.java234 summaryPreference.setUsageInfo(info.cycleEnd, in updateState()
303 mCycleEnd = info.cycleEnd; in refreshDataplanInfo()
DDataUsageSummaryPreference.java119 public void setUsageInfo(long cycleEnd, long snapshotTime, CharSequence carrierName, in setUsageInfo() argument
121 mCycleEndTimeMs = cycleEnd; in setUsageInfo()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DAppDataUsageFragment.java128 long cycleEnd = historyEnd; in getBundleForNetworkStats() local
129 while (cycleEnd > historyStart) { in getBundleForNetworkStats()
130 long cycleStart = cycleEnd - (DateUtils.WEEK_IN_MILLIS * 4); in getBundleForNetworkStats()
133 end = cycleEnd; in getBundleForNetworkStats()
134 cycleEnd = cycleStart; in getBundleForNetworkStats()
DDataUsageSummaryPreferenceController.java236 mCycleEnd = info.cycleEnd; in refreshDataplanInfo()
/packages/apps/Settings/tests/unit/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceTest.java261 final long cycleEnd = System.currentTimeMillis() + TimeUnit.HOURS.toMillis(23); in testSetUsageInfo_cycleRemainingTimeIsLessOneDay() local
262 mSummaryPreference.setUsageInfo(cycleEnd, mUpdateTime, FAKE_CARRIER, 0 /* numPlans */, in testSetUsageInfo_cycleRemainingTimeIsLessOneDay()
275 final long cycleEnd = System.currentTimeMillis() - 1L; in testSetUsageInfo_cycleRemainingTimeNegativeDaysLeft_shouldDisplayNoneLeft() local
276 mSummaryPreference.setUsageInfo(cycleEnd, mUpdateTime, FAKE_CARRIER, 0 /* numPlans */, in testSetUsageInfo_cycleRemainingTimeNegativeDaysLeft_shouldDisplayNoneLeft()
289 final long cycleEnd = System.currentTimeMillis() + TimeUnit.DAYS.toMillis(daysLeft) in testSetUsageInfo_cycleRemainingTimeDaysLeft_shouldUsePlurals() local
291 mSummaryPreference.setUsageInfo(cycleEnd, mUpdateTime, FAKE_CARRIER, 0 /* numPlans */, in testSetUsageInfo_cycleRemainingTimeDaysLeft_shouldUsePlurals()
500 final long cycleEnd = System.currentTimeMillis() + TimeUnit.DAYS.toMillis(daysLeft) in testSetWifiMode_withUsageInfo_dataUsageShown() local
502 mSummaryPreference.setUsageInfo(cycleEnd, mUpdateTime, FAKE_CARRIER, 0 /* numPlans */, in testSetWifiMode_withUsageInfo_dataUsageShown()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.java176 createTestDataPlan(info.cycleStart, info.cycleEnd); in testSummaryUpdate_onePlan_basic()
187 verify(mSummaryPreference).setUsageInfo((info.cycleEnd / 1000) * 1000, in testSummaryUpdate_onePlan_basic()
213 info.cycleEnd, in testSummaryUpdate_noPlan_basic()
240 info.cycleEnd, in testSummaryUpdate_noCarrier_basic()
267 info.cycleEnd, in testSummaryUpdate_noPlanData_basic()
399 info.cycleEnd = info.cycleStart + CYCLE_LENGTH_MS; in createTestDataUsageInfo()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.java201 info.cycleEnd = System.currentTimeMillis() + TimeUnit.DAYS.toMillis(numDays) in refreshUi_endTimeIsGreaterThanOneDay_setsBillingCycleText()
217 info.cycleEnd = System.currentTimeMillis() + TimeUnit.HOURS.toMillis(22); in refreshUi_endTimeIsLessThanOneDay_setsBillingCycleText()
231 info.cycleEnd = System.currentTimeMillis(); in refreshUi_endTimeIsNow_setsBillingCycleText()