Home
last modified time | relevance | path

Searched refs:formatDataUsage (Results 1 – 12 of 12) sorted by relevance

/packages/apps/Settings/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceController.kt123 DataUsageUtils.formatDataUsage(mContext, /* byteValue = */ 0), in setDataBarSize()
124 DataUsageUtils.formatDataUsage(mContext, dataBarSize) in setDataBarSize()
132 DataUsageUtils.formatDataUsage(mContext, warningBytes), in getLimitInfo()
133 DataUsageUtils.formatDataUsage(mContext, limitBytes), in getLimitInfo()
140 DataUsageUtils.formatDataUsage(mContext, warningBytes), in getLimitInfo()
147 DataUsageUtils.formatDataUsage(mContext, limitBytes), in getLimitInfo()
DAppDataUsageSummaryController.kt44 dataUsageFormatter.formatDataUsage(it.totalUsage) in <lambda>()
48 dataUsageFormatter.formatDataUsage(it.foregroundUsage) in <lambda>()
52 dataUsageFormatter.formatDataUsage(it.backgroundUsage) in <lambda>()
DAppDataUsagePreference.java48 setSummary(DataUsageUtils.formatDataUsage(context, item.total)); in AppDataUsagePreference()
DDataUsageSummaryPreference.java191 DataUsageUtils.formatDataUsage(getContext(), dataRemaining))); in updateDataUsageLabels()
197 DataUsageUtils.formatDataUsage(getContext(), -dataRemaining))); in updateDataUsageLabels()
DDataUsagePreference.java62 DataUsageUtils.formatDataUsage(getContext(), usageInfo.usageLevel), in setTemplate()
DDataUsageUtils.java63 public static CharSequence formatDataUsage(Context context, long byteValue) { in formatDataUsage() method in DataUsageUtils
DBillingCycleSettings.java156 mDataWarning.setSummary(DataUsageUtils.formatDataUsage(getContext(), warningBytes)); in updatePrefs()
166 mDataLimit.setSummary(DataUsageUtils.formatDataUsage(getContext(), limitBytes)); in updatePrefs()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/lib/
DDataUsageFormatterTest.kt36 val (displayText, contentDescription) = dataUsageFormatter.formatDataUsage(0) in formatDataUsage_0()
44 val (displayText, contentDescription) = dataUsageFormatter.formatDataUsage(1000) in formatDataUsage_1000()
52 val (displayText, contentDescription) = dataUsageFormatter.formatDataUsage(2000000) in formatDataUsage_2000000()
/packages/apps/Settings/src/com/android/settings/datausage/lib/
DNetworkUsageData.kt42 DataUsageFormatter(context).formatDataUsage(usage) in formatStartDate()
DDataUsageFormatter.kt42 fun formatDataUsage(sizeBytes: Long): FormattedDataUsage { in format() method in com.android.settings.datausage.lib.DataUsageFormatter
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageUtilsTest.java79 final CharSequence formattedDataUsage = DataUsageUtils.formatDataUsage( in formatDataUsage_useIECUnit()
DDataUsageSummaryTest.java100 final CharSequence formattedInIECUnit = DataUsageUtils.formatDataUsage(mContext, usage); in formatUsage_shouldLookLikeFormatFileSize()