/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | ChartDataUsagePreferenceTest.java | 35 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/ |
D | NetworkUsageData.kt | 28 data class NetworkUsageData( dataClass 48 val AllZero = NetworkUsageData( in formatStartDate() 58 fun List<NetworkUsageData>.aggregate(): NetworkUsageData? = when { in List() 60 else -> NetworkUsageData( in List()
|
D | NetworkCycleBucketRepository.kt | 37 fun loadCycles(): List<NetworkUsageData> = in loadCycles() 47 fun queryChartData(usageData: NetworkUsageData) = NetworkCycleChartData( in queryCyclesAsFourWeeks() 56 private fun aggregateUsage(range: Range<Long>) = NetworkUsageData(
|
D | NetworkCycleDataRepository.kt | 30 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()
|
D | NetworkCycleChartData.kt | 25 val total: NetworkUsageData, 26 val dailyUsage: List<NetworkUsageData>,
|
D | NetworkStatsRepository.kt | 33 ): NetworkUsageData? = try { in queryAggregateForUid() 79 fun List<Bucket>.aggregate(): NetworkUsageData? = when { in List() 81 else -> NetworkUsageData( in List()
|
D | AppDataUsageSummaryRepository.kt | 26 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/ |
D | DataUsagePreferenceControllerTest.kt | 37 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/ |
D | NetworkCycleBucketRepositoryTest.kt | 76 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()
|
D | AppDataUsageSummaryRepositoryTest.kt | 40 } 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>()
|
D | NetworkCycleDataRepositoryTest.kt | 76 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/ |
D | ChartDataUsagePreference.java | 38 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()
|
D | DataUsageListHeaderController.kt | 31 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()
|
D | DataUsageListViewModel.kt | 27 import com.android.settings.datausage.lib.NetworkUsageData in <lambda>() 39 val selectedCycle: NetworkUsageData, in <lambda>() 56 val selectedCycleFlow = MutableStateFlow<NetworkUsageData?>(null) in <lambda>()
|
D | DataUsageListAppsController.kt | 34 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>()
|
D | DataUsageList.kt | 35 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/ |
D | AppDataUsagePreferenceTest.kt | 43 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/ |
D | ChartDataUsagePreferenceControllerTest.kt | 25 import com.android.settings.datausage.lib.NetworkUsageData 63 val UsageData = NetworkUsageData(startTime = START_TIME, endTime = END_TIME, usage = 10)
|
D | DataUsageListAppsControllerTest.kt | 25 import com.android.settings.datausage.lib.NetworkUsageData 51 val data = NetworkUsageData(START_TIME, END_TIME, 0) in setUp()
|
D | DataPlanRepositoryTest.kt | 24 import com.android.settings.datausage.lib.NetworkUsageData 39 override fun queryUsage(range: Range<Long>) = NetworkUsageData( in getCycles()
|
D | DataUsageSummaryPreferenceControllerTest.kt | 33 import com.android.settings.datausage.lib.NetworkUsageData 82 override fun queryUsage(range: Range<Long>) = NetworkUsageData.AllZero in getCycles()
|