Home
last modified time | relevance | path

Searched refs:usageLevel (Results 1 – 24 of 24) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageInfoControllerTest.java36 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()
DDataUsageSummaryPreferenceControllerTest.java351 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/
DDataUsageSummaryPreferenceControllerTest.java121 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/
DDataUsagePreferenceController.java69 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/
DDataUsagePreferenceController.java70 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/
DDataUsageSummary.java196 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()
DWifiDataUsageSummaryPreferenceController.java64 mPreference.setUsageNumbers(info.usageLevel, info.usageLevel, /* hasMobileData */ false); in updateState()
69 DataUsageUtils.formatDataUsage(mContext, info.usageLevel)); in updateState()
DDataUsagePreference.java63 DataUsageUtils.formatDataUsage(getContext(), usageInfo.usageLevel), in setTemplate()
66 final long usageLevel = controller.getHistoricalUsageLevel(template); in setTemplate() local
67 if (usageLevel > 0L) { in setTemplate()
DDataUsageInfoController.java50 if (info.usageLevel > limit) { in getSummaryLimit()
51 limit = info.usageLevel; in getSummaryLimit()
DDataUsageSummaryPreferenceController.java210 summaryPreference.setUsageNumbers(info.usageLevel, in updateState()
265 mDataplanUse = info.usageLevel; in refreshDataplanInfo()
DDataUsageSummaryPreference.java195 final long usageLevel = getHistoricalUsageLevel(); in onBindViewHolder() local
196 if (usageLevel > 0L) { in onBindViewHolder()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/datausage/
DDataUsageSummary.java207 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()
DWifiDataUsageSummaryPreferenceController.java65 mPreference.setUsageNumbers(info.usageLevel, info.usageLevel, /* hasMobileData */ false); in updateState()
70 DataUsageUtils.formatDataUsage(mContext, info.usageLevel)); in updateState()
DDataUsagePreference.java63 DataUsageUtils.formatDataUsage(getContext(), usageInfo.usageLevel), in setTemplate()
66 final long usageLevel = controller.getHistoricalUsageLevel(template); in setTemplate() local
67 if (usageLevel > 0L) { in setTemplate()
DDataUsageInfoController.java50 if (info.usageLevel > limit) { in getSummaryLimit()
51 limit = info.usageLevel; in getSummaryLimit()
DDataUsageSummaryPreferenceController.java211 summaryPreference.setUsageNumbers(info.usageLevel, in updateState()
266 mDataplanUse = info.usageLevel; in refreshDataplanInfo()
DDataUsageSummaryPreference.java195 final long usageLevel = getHistoricalUsageLevel(); in onBindViewHolder() local
196 if (usageLevel > 0L) { in onBindViewHolder()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageSummaryPreferenceController.java230 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/
DDataUsagePreference.java58 Formatter.formatFileSize(activity, usageInfo.usageLevel), usageInfo.period)); in initialize()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DDataUsagePreferenceControllerTest.java125 usageInfo.usageLevel = TrafficStats.MB_IN_BYTES; in updateState_shouldUseIECUnit()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/deviceinfo/
DDataUsageSlice.java109 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/
DDataUsageSlice.java109 info.usageLevel, Formatter.FLAG_CALCULATE_ROUNDED | Formatter.FLAG_IEC_UNITS); in getDataUsageText()
/packages/apps/Settings/src/com/android/settings/
DSettingsDumpService.java133 obj.put("usage", usage.usageLevel); in dumpDataUsage()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DSettingsDumpService.java133 obj.put("usage", usage.usageLevel); in dumpDataUsage()