Home
last modified time | relevance | path

Searched refs:NetworkUsageData (Results 1 – 21 of 21) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DChartDataUsagePreferenceTest.java35 import com.android.settings.datausage.lib.NetworkUsageData;
59 private List<NetworkUsageData> mNetworkCycleData;
126 mNetworkCycleData.add(new NetworkUsageData( in calcPoints_shouldNotDrawPointForFutureDate()
130 mNetworkCycleData.add(new NetworkUsageData( in calcPoints_shouldNotDrawPointForFutureDate()
134 mNetworkCycleData.add(new NetworkUsageData( in calcPoints_shouldNotDrawPointForFutureDate()
138 mNetworkCycleData.add(new NetworkUsageData( in calcPoints_shouldNotDrawPointForFutureDate()
142 mNetworkCycleData.add(new NetworkUsageData( in calcPoints_shouldNotDrawPointForFutureDate()
145 mNetworkCycleData.add(new NetworkUsageData( in calcPoints_shouldNotDrawPointForFutureDate()
147 mNetworkCycleData.add(new NetworkUsageData( in calcPoints_shouldNotDrawPointForFutureDate()
151 mNetworkCycleData.add(new NetworkUsageData( in calcPoints_shouldNotDrawPointForFutureDate()
[all …]
/packages/apps/Settings/src/com/android/settings/datausage/lib/
DNetworkUsageData.kt28 data class NetworkUsageData( dataClass
48 val AllZero = NetworkUsageData( in formatStartDate()
58 fun List<NetworkUsageData>.aggregate(): NetworkUsageData? = when { in List()
60 else -> NetworkUsageData( in List()
DNetworkCycleBucketRepository.kt37 fun loadCycles(): List<NetworkUsageData> = in loadCycles()
47 fun queryChartData(usageData: NetworkUsageData) = NetworkCycleChartData( in queryCyclesAsFourWeeks()
56 private fun aggregateUsage(range: Range<Long>) = NetworkUsageData(
DNetworkCycleDataRepository.kt30 fun queryUsage(range: Range<Long>): NetworkUsageData in <lambda>()
42 fun loadFirstCycle(): NetworkUsageData? = getCycles().firstOrNull()?.let { queryUsage(it) } in <lambda>()
56 override fun queryUsage(range: Range<Long>) = NetworkUsageData( in queryUsage()
DNetworkCycleChartData.kt25 val total: NetworkUsageData,
26 val dailyUsage: List<NetworkUsageData>,
DNetworkStatsRepository.kt33 ): NetworkUsageData? = try { in queryAggregateForUid()
79 fun List<Bucket>.aggregate(): NetworkUsageData? = when { in List()
81 else -> NetworkUsageData( in List()
DAppDataUsageSummaryRepository.kt26 suspend fun querySummary(uid: Int): NetworkUsageData? in querySummary()
36 override suspend fun querySummary(uid: Int): NetworkUsageData? = in querySummary()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/telephony/
DDataUsagePreferenceControllerTest.kt37 import com.android.settings.datausage.lib.NetworkUsageData
70 on { queryUsage(any()) } doReturn NetworkUsageData(START_TIME, END_TIME, 0L) in <lambda>()
118 val usageData = NetworkUsageData(START_TIME, END_TIME, 1L) in <lambda>()
145 val usageData = NetworkUsageData(START_TIME, END_TIME, 0L) in <lambda>()
149 NetworkUsageData(AllTimeRange.lower, AllTimeRange.upper, 1L) in <lambda>()
161 val usageData = NetworkUsageData(START_TIME, END_TIME, 0L) in <lambda>()
165 NetworkUsageData(AllTimeRange.lower, AllTimeRange.upper, 0L) in <lambda>()
177 val usageData = NetworkUsageData(START_TIME, END_TIME, DataUnit.MEBIBYTES.toBytes(1)) in <lambda>()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/lib/
DNetworkCycleBucketRepositoryTest.kt76 NetworkUsageData( in createRepository()
106 NetworkUsageData( in loadCycles_policyHasNoCycle_asFourWeeks()
133 NetworkUsageData( in loadCycles_noPolicy_asFourWeeks()
143 val cycle = NetworkUsageData( in queryChartData()
171 NetworkUsageData( in queryChartData()
176 NetworkUsageData( in queryChartData()
DAppDataUsageSummaryRepositoryTest.kt40 } doReturn NetworkUsageData(APP_START_TIME, APP_END_TIME, APP_USAGE) in <lambda>()
44 } doReturn NetworkUsageData(SDK_SANDBOX_START_TIME, SDK_SANDBOX_END_TIME, SDK_SANDBOX_USAGE) in <lambda>()
55 NetworkUsageData( in <lambda>()
DNetworkCycleDataRepositoryTest.kt76 NetworkUsageData(startTime = 1, endTime = 2, usage = CYCLE1_BYTES), in <lambda>()
93 NetworkUsageData( in <lambda>()
111 NetworkUsageData( in <lambda>()
/packages/apps/Settings/src/com/android/settings/datausage/
DChartDataUsagePreference.java38 import com.android.settings.datausage.lib.NetworkUsageData;
99 void calcPoints(UsageView chart, @NonNull List<NetworkUsageData> usageSummary) { in calcPoints()
105 for (NetworkUsageData data : usageSummary) { in calcPoints()
124 UsageView chart, @NonNull List<NetworkUsageData> usageSummary) { in setupContentDescription()
169 List<DataUsageSummaryNode> getDensedStatsData(@NonNull List<NetworkUsageData> usageSummary) { in getDensedStatsData()
172 .mapToLong(NetworkUsageData::getUsage).sum()); in getDensedStatsData()
176 for (NetworkUsageData data : usageSummary) { in getDensedStatsData()
DDataUsageListHeaderController.kt31 import com.android.settings.datausage.lib.NetworkUsageData
41 cyclesFlow: Flow<List<NetworkUsageData>>,
42 private val updateSelectedCycle: (usageData: NetworkUsageData) -> Unit,
76 private var cycles: List<NetworkUsageData> = emptyList()
DDataUsageListViewModel.kt27 import com.android.settings.datausage.lib.NetworkUsageData in <lambda>()
39 val selectedCycle: NetworkUsageData, in <lambda>()
56 val selectedCycleFlow = MutableStateFlow<NetworkUsageData?>(null) in <lambda>()
DDataUsageListAppsController.kt34 import com.android.settings.datausage.lib.NetworkUsageData in <lambda>()
51 private var cycleData: List<NetworkUsageData>? = null in <lambda>()
73 fun updateCycles(cycleData: List<NetworkUsageData>) { in <lambda>()
DDataUsageList.kt35 import com.android.settings.datausage.lib.NetworkUsageData in <lambda>()
178 private fun updateSelectedCycle(usageData: NetworkUsageData) { in <lambda>()
188 private fun updateApps(usageData: NetworkUsageData) { in <lambda>()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/spa/app/appinfo/
DAppDataUsagePreferenceTest.kt43 import com.android.settings.datausage.lib.NetworkUsageData in <lambda>()
64 private var networkUsageData: NetworkUsageData? = null in <lambda>()
67 override suspend fun querySummary(uid: Int): NetworkUsageData? = when (uid) { in <lambda>()
129 networkUsageData = NetworkUsageData( in <lambda>()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/
DChartDataUsagePreferenceControllerTest.kt25 import com.android.settings.datausage.lib.NetworkUsageData
63 val UsageData = NetworkUsageData(startTime = START_TIME, endTime = END_TIME, usage = 10)
DDataUsageListAppsControllerTest.kt25 import com.android.settings.datausage.lib.NetworkUsageData
51 val data = NetworkUsageData(START_TIME, END_TIME, 0) in setUp()
DDataPlanRepositoryTest.kt24 import com.android.settings.datausage.lib.NetworkUsageData
39 override fun queryUsage(range: Range<Long>) = NetworkUsageData( in getCycles()
DDataUsageSummaryPreferenceControllerTest.kt33 import com.android.settings.datausage.lib.NetworkUsageData
82 override fun queryUsage(range: Range<Long>) = NetworkUsageData.AllZero in getCycles()