/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | DataUsageInfoControllerTest.java | 36 info.usageLevel = POSITIVE_SMALL; in testLowUsageLowWarning_LimitUsed() 44 info.usageLevel = POSITIVE_SMALL; in testLowUsageEqualWarning_LimitUsed() 52 info.usageLevel = ZERO; in testNoLimitNoUsage_WarningUsed() 60 info.usageLevel = POSITIVE_SMALL; in testNoLimitLowUsage_WarningUsed() 68 info.usageLevel = POSITIVE_LARGE; in testLowWarningNoLimit_UsageUsed() 69 assertThat(mInfoController.getSummaryLimit(info)).isEqualTo(info.usageLevel); in testLowWarningNoLimit_UsageUsed() 76 info.usageLevel = POSITIVE_LARGE; in testLowWarningLowLimit_UsageUsed() 77 assertThat(mInfoController.getSummaryLimit(info)).isEqualTo(info.usageLevel); in testLowWarningLowLimit_UsageUsed()
|
D | DataUsageSummaryPreferenceControllerTest.java | 351 verify(mSummaryPreference).setUsageNumbers(info.usageLevel, -1L, true); in testSummaryUpdate_noSim_shouldSetWifiMode() 435 info.usageLevel = USAGE1; in createTestDataUsageInfo()
|
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/ |
D | DataUsageSummaryPreferenceControllerTest.java | 121 info.usageLevel = 10000; in refreshUi_hasUsage_titleSet() 127 String usedValueString = Formatter.formatBytes(mContext.getResources(), info.usageLevel, in refreshUi_hasUsage_titleSet() 135 info.usageLevel = 10000; in refreshUi_noLimits_doesntSetDataLimitText() 149 info.usageLevel = 10000; in refreshUi_hasLimit_setsDataLimitText() 165 info.usageLevel = 10000; in refreshUi_hasWarning_setsDataLimitText() 181 info.usageLevel = 10000; in refreshUi_hasWarningAndLimit_setsDataLimitText() 245 info.usageLevel = 10000; in refreshUi_hasCarrierName_hasRecentUpdate_setsCarrierInfoText() 262 info.usageLevel = 10000; in refreshUi_hasCarrierName_hasOldUpdate_setsCarrierInfoText() 281 info.usageLevel = 10000; in refreshUi_noCarrierName_hasRecentUpdate_setsCarrierInfoText() 296 info.usageLevel = 10000; in refreshUi_noCarrierName_hasOldUpdate_setsCarrierInfoText() [all …]
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | DataUsagePreferenceController.java | 69 long usageLevel = mDataUsageInfo.usageLevel; in updateState() local 70 if (usageLevel <= 0L) { in updateState() 72 usageLevel = controller.getHistoricalUsageLevel(mTemplate); in updateState() 74 final boolean enabled = usageLevel > 0L; in updateState() 79 DataUsageUtils.formatDataUsage(mContext, mDataUsageInfo.usageLevel), in updateState()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/network/telephony/ |
D | DataUsagePreferenceController.java | 70 long usageLevel = mDataUsageInfo.usageLevel; in updateState() local 71 if (usageLevel <= 0L) { in updateState() 73 usageLevel = controller.getHistoricalUsageLevel(mTemplate); in updateState() 75 final boolean enabled = usageLevel > 0L; in updateState() 80 Formatter.formatFileSize(mContext, mDataUsageInfo.usageLevel), in updateState()
|
/packages/apps/Settings/src/com/android/settings/datausage/ |
D | DataUsageSummary.java | 196 static CharSequence formatUsage(Context context, String template, long usageLevel) { in formatUsage() argument 199 return formatUsage(context, template, usageLevel, LARGER_SIZE, SMALLER_SIZE); in formatUsage() 202 static CharSequence formatUsage(Context context, String template, long usageLevel, in formatUsage() argument 207 usageLevel, Formatter.FLAG_CALCULATE_ROUNDED | Formatter.FLAG_IEC_UNITS); in formatUsage() 284 DataUsageUtils.formatDataUsage(mActivity, info.usageLevel); in setListening() 317 return DataUsageUtils.formatDataUsage(mActivity, info.usageLevel); in formatFallbackData() 319 return Utils.formatPercentage(info.usageLevel, info.limitLevel); in formatFallbackData()
|
D | WifiDataUsageSummaryPreferenceController.java | 64 mPreference.setUsageNumbers(info.usageLevel, info.usageLevel, /* hasMobileData */ false); in updateState() 69 DataUsageUtils.formatDataUsage(mContext, info.usageLevel)); in updateState()
|
D | DataUsagePreference.java | 63 DataUsageUtils.formatDataUsage(getContext(), usageInfo.usageLevel), in setTemplate() 66 final long usageLevel = controller.getHistoricalUsageLevel(template); in setTemplate() local 67 if (usageLevel > 0L) { in setTemplate()
|
D | DataUsageInfoController.java | 50 if (info.usageLevel > limit) { in getSummaryLimit() 51 limit = info.usageLevel; in getSummaryLimit()
|
D | DataUsageSummaryPreferenceController.java | 210 summaryPreference.setUsageNumbers(info.usageLevel, in updateState() 265 mDataplanUse = info.usageLevel; in refreshDataplanInfo()
|
D | DataUsageSummaryPreference.java | 195 final long usageLevel = getHistoricalUsageLevel(); in onBindViewHolder() local 196 if (usageLevel > 0L) { in onBindViewHolder()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/ |
D | DataUsageSummary.java | 207 static CharSequence formatUsage(Context context, String template, long usageLevel) { in formatUsage() argument 210 return formatUsage(context, template, usageLevel, LARGER_SIZE, SMALLER_SIZE); in formatUsage() 213 static CharSequence formatUsage(Context context, String template, long usageLevel, in formatUsage() argument 218 usageLevel, Formatter.FLAG_CALCULATE_ROUNDED | Formatter.FLAG_IEC_UNITS); in formatUsage() 295 DataUsageUtils.formatDataUsage(mActivity, info.usageLevel); in setListening() 328 return DataUsageUtils.formatDataUsage(mActivity, info.usageLevel); in formatFallbackData() 330 return Utils.formatPercentage(info.usageLevel, info.limitLevel); in formatFallbackData()
|
D | WifiDataUsageSummaryPreferenceController.java | 65 mPreference.setUsageNumbers(info.usageLevel, info.usageLevel, /* hasMobileData */ false); in updateState() 70 DataUsageUtils.formatDataUsage(mContext, info.usageLevel)); in updateState()
|
D | DataUsagePreference.java | 63 DataUsageUtils.formatDataUsage(getContext(), usageInfo.usageLevel), in setTemplate() 66 final long usageLevel = controller.getHistoricalUsageLevel(template); in setTemplate() local 67 if (usageLevel > 0L) { in setTemplate()
|
D | DataUsageInfoController.java | 50 if (info.usageLevel > limit) { in getSummaryLimit() 51 limit = info.usageLevel; in getSummaryLimit()
|
D | DataUsageSummaryPreferenceController.java | 211 summaryPreference.setUsageNumbers(info.usageLevel, in updateState() 266 mDataplanUse = info.usageLevel; in refreshDataplanInfo()
|
D | DataUsageSummaryPreference.java | 195 final long usageLevel = getHistoricalUsageLevel(); in onBindViewHolder() local 196 if (usageLevel > 0L) { in onBindViewHolder()
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | DataUsageSummaryPreferenceController.java | 230 mDataplanUse = info.usageLevel; in refreshDataplanInfo() 280 if (info.usageLevel > limit) { in getSummaryLimit() 281 limit = info.usageLevel; in getSummaryLimit()
|
/packages/services/Telephony/src/com/android/phone/ |
D | DataUsagePreference.java | 58 Formatter.formatFileSize(activity, usageInfo.usageLevel), usageInfo.period)); in initialize()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/ |
D | DataUsagePreferenceControllerTest.java | 125 usageInfo.usageLevel = TrafficStats.MB_IN_BYTES; in updateState_shouldUseIECUnit()
|
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/deviceinfo/ |
D | DataUsageSlice.java | 109 info.usageLevel, Formatter.FLAG_CALCULATE_ROUNDED | Formatter.FLAG_IEC_UNITS); in getDataUsageText()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/deviceinfo/ |
D | DataUsageSlice.java | 109 info.usageLevel, Formatter.FLAG_CALCULATE_ROUNDED | Formatter.FLAG_IEC_UNITS); in getDataUsageText()
|
/packages/apps/Settings/src/com/android/settings/ |
D | SettingsDumpService.java | 133 obj.put("usage", usage.usageLevel); in dumpDataUsage()
|
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/ |
D | SettingsDumpService.java | 133 obj.put("usage", usage.usageLevel); in dumpDataUsage()
|