Home
last modified time | relevance | path

Searched refs:getCycles (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Settings/src/com/android/settings/datausage/lib/
DNetworkCycleDataRepository.kt28 fun getCycles(): List<Range<Long>> in <lambda>() method
42 fun loadFirstCycle(): NetworkUsageData? = getCycles().firstOrNull()?.let { queryUsage(it) } in <lambda>()
44 override fun getCycles(): List<Range<Long>> = in getCycles() method
45 getPolicy()?.getCycles().orEmpty().ifEmpty { queryCyclesAsFourWeeks() } in getCycles()
63 fun NetworkPolicy.getCycles() = cycleIterator().asSequence().map { in queryUsage() method
DNetworkCycleBucketRepository.kt24 import com.android.settings.datausage.lib.NetworkCycleDataRepository.Companion.getCycles
38 getCycles().map { aggregateUsage(it) }.filter { it.usage > 0 } in loadCycles()
40 private fun getCycles(): List<Range<Long>> = in getCycles() method
41 networkCycleDataRepository.getPolicy()?.getCycles().orEmpty() in getCycles()
DAppDataUsageDetailsRepository.kt43 getCycles().asyncMap { queryDetails(it) }.filter { it.totalUsage > 0 } in queryDetailsForCycles()
45 private fun getCycles(): List<Range<Long>> = in getCycles() method
47 ?: networkCycleDataRepository.getCycles()
/packages/apps/Settings/src/com/android/settings/datausage/
DDataPlanRepository.kt22 import com.android.settings.datausage.lib.NetworkCycleDataRepository.Companion.getCycles in <lambda>()
51 val cycle = policy.getCycles().firstOrNull() in getDataPlanInfo()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/
DDataPlanRepositoryTest.kt36 override fun getCycles(): List<Range<Long>> = emptyList() in getCycles() method
DDataUsageSummaryPreferenceControllerTest.kt80 override fun getCycles(): List<Range<Long>> = emptyList() in getCycles() method in com.android.settings.datausage.DataUsageSummaryPreferenceControllerTest
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/lib/
DAppDataUsageDetailsRepositoryTest.kt41 on { getCycles() } doReturn listOf(Range(CYCLE1_END_TIME, CYCLE2_END_TIME)) in <lambda>()