Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.java155 mController.setCarrierValues(CARRIER_NAME, now - UPDATE_BACKOFF_MS, info.cycleEnd, intent); in testSummaryUpdate_onePlan_basic()
164 verify(mSummaryPreference).setUsageInfo(info.cycleEnd, now - UPDATE_BACKOFF_MS, in testSummaryUpdate_onePlan_basic()
180 mController.setCarrierValues(CARRIER_NAME, now - UPDATE_BACKOFF_MS, info.cycleEnd, intent); in testSummaryUpdate_noPlan_basic()
189 verify(mSummaryPreference).setUsageInfo(info.cycleEnd, now - UPDATE_BACKOFF_MS, in testSummaryUpdate_noPlan_basic()
204 info.cycleEnd, null /* intent */); in testSummaryUpdate_noCarrier_basic()
213 info.cycleEnd, in testSummaryUpdate_noCarrier_basic()
232 info.cycleEnd, null /* intent */); in testSummaryUpdate_noPlanData_basic()
240 info.cycleEnd, in testSummaryUpdate_noPlanData_basic()
261 mController.setCarrierValues(CARRIER_NAME, now - UPDATE_BACKOFF_MS, info.cycleEnd, intent); in testSummaryUpdate_noLimitNoWarning()
278 mController.setCarrierValues(CARRIER_NAME, now - UPDATE_BACKOFF_MS, info.cycleEnd, intent); in testSummaryUpdate_warningOnly()
[all …]
DDataUsageSummaryPreferenceTest.java266 final long cycleEnd = System.currentTimeMillis() + TimeUnit.HOURS.toMillis(23); in testSetUsageInfo_cycleRemainingTimeIsLessOneDay() local
267 mSummaryPreference.setUsageInfo(cycleEnd, mUpdateTime, DUMMY_CARRIER, 0 /* numPlans */, in testSetUsageInfo_cycleRemainingTimeIsLessOneDay()
278 final long cycleEnd = System.currentTimeMillis() - 1L; in testSetUsageInfo_cycleRemainingTimeNegativeDaysLeft_shouldDisplayNoneLeft() local
279 mSummaryPreference.setUsageInfo(cycleEnd, mUpdateTime, DUMMY_CARRIER, 0 /* numPlans */, in testSetUsageInfo_cycleRemainingTimeNegativeDaysLeft_shouldDisplayNoneLeft()
291 final long cycleEnd = System.currentTimeMillis() + TimeUnit.DAYS.toMillis(daysLeft) in testSetUsageInfo_cycleRemainingTimeDaysLeft_shouldUsePlurals() local
293 mSummaryPreference.setUsageInfo(cycleEnd, mUpdateTime, DUMMY_CARRIER, 0 /* numPlans */, in testSetUsageInfo_cycleRemainingTimeDaysLeft_shouldUsePlurals()
483 final long cycleEnd = System.currentTimeMillis() + TimeUnit.DAYS.toMillis(daysLeft) in testSetWifiMode_withUsageInfo_dataUsageShown() local
487 mSummaryPreference.setUsageInfo(cycleEnd, mUpdateTime, DUMMY_CARRIER, 0 /* numPlans */, in testSetWifiMode_withUsageInfo_dataUsageShown()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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.java182 void setCarrierValues(String carrierName, long snapshotTime, long cycleEnd, Intent intent) { in setCarrierValues() argument
185 mCycleEnd = cycleEnd; in setCarrierValues()
215 summaryPreference.setUsageInfo(info.cycleEnd, in updateState()
268 mCycleEnd = info.cycleEnd; in refreshDataplanInfo()
DDataUsageSummaryPreference.java118 public void setUsageInfo(long cycleEnd, long snapshotTime, CharSequence carrierName, in setUsageInfo() argument
120 mCycleEndTimeMs = cycleEnd; in setUsageInfo()
/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.java185 void setCarrierValues(String carrierName, long snapshotTime, long cycleEnd, Intent intent) { in setCarrierValues() argument
188 mCycleEnd = cycleEnd; in setCarrierValues()
218 summaryPreference.setUsageInfo(info.cycleEnd, in updateState()
271 mCycleEnd = info.cycleEnd; in refreshDataplanInfo()
DDataUsageSummaryPreference.java118 public void setUsageInfo(long cycleEnd, long snapshotTime, CharSequence carrierName, in setUsageInfo() argument
120 mCycleEndTimeMs = cycleEnd; in setUsageInfo()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DAppDataUsageFragment.java129 long cycleEnd = historyEnd; in getBundleForNetworkStats() local
130 while (cycleEnd > historyStart) { in getBundleForNetworkStats()
131 long cycleStart = cycleEnd - (DateUtils.WEEK_IN_MILLIS * 4); in getBundleForNetworkStats()
134 end = cycleEnd; in getBundleForNetworkStats()
135 cycleEnd = cycleStart; in getBundleForNetworkStats()
DDataUsageSummaryPreferenceController.java231 mCycleEnd = info.cycleEnd; in refreshDataplanInfo()
/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()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/deviceinfo/
DDataUsageSlice.java120 final long millisLeft = info.cycleEnd - System.currentTimeMillis(); in getCycleTime()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/deviceinfo/
DDataUsageSlice.java120 final long millisLeft = info.cycleEnd - System.currentTimeMillis(); in getCycleTime()