Home
last modified time | relevance | path

Searched refs:usageData (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageList.kt178 private fun updateSelectedCycle(usageData: NetworkUsageData) { in <lambda>()
179 Log.d(TAG, "showing cycle $usageData") in <lambda>()
181 usageAmount?.title = usageData.getDataUsedString(requireContext()).displayText in <lambda>()
182 viewModel.selectedCycleFlow.value = usageData in <lambda>()
184 updateApps(usageData) in <lambda>()
188 private fun updateApps(usageData: NetworkUsageData) { in <lambda>()
191 startTime = usageData.startTime, in <lambda>()
192 endTime = usageData.endTime, in <lambda>()
DDataUsageListHeaderController.kt42 private val updateSelectedCycle: (usageData: NetworkUsageData) -> Unit,
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/
DDataUsagePreferenceControllerTest.kt118 val usageData = NetworkUsageData(START_TIME, END_TIME, 1L) in <lambda>() constant
120 on { loadFirstCycle() } doReturn usageData in <lambda>()
145 val usageData = NetworkUsageData(START_TIME, END_TIME, 0L) in <lambda>() constant
147 on { loadFirstCycle() } doReturn usageData in <lambda>()
161 val usageData = NetworkUsageData(START_TIME, END_TIME, 0L) in <lambda>() constant
163 on { loadFirstCycle() } doReturn usageData in <lambda>()
177 val usageData = NetworkUsageData(START_TIME, END_TIME, DataUnit.MEBIBYTES.toBytes(1)) in <lambda>() constant
179 on { loadFirstCycle() } doReturn usageData in <lambda>()
/packages/apps/Settings/src/com/android/settings/datausage/lib/
DNetworkCycleBucketRepository.kt47 fun queryChartData(usageData: NetworkUsageData) = NetworkCycleChartData( in queryCyclesAsFourWeeks()
48 total = usageData, in queryCyclesAsFourWeeks()
50 startTime = usageData.startTime, in queryCyclesAsFourWeeks()
51 endTime = usageData.endTime, in queryCyclesAsFourWeeks()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DDataUsagePreferenceController.kt111 repository.loadFirstCycle()?.let { usageData -> in <lambda>() method
112 val formattedDataUsage = usageData.formatUsage(mContext) in <lambda>()
113 .format(mContext, R.string.data_usage_template, usageData.formatDateRange(mContext)) in <lambda>()
114 val hasUsage = usageData.usage > 0 || repository.queryUsage(AllTimeRange).usage > 0 in <lambda>()