Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/unit/src/com/android/settings/datausage/
DDataUsageInfoControllerTest.java53 info.usageLevel = POSITIVE_SMALL; in getSummaryLimit_LowUsageLowWarning_LimitUsed()
62 info.usageLevel = POSITIVE_SMALL; in getSummaryLimit_LowUsageEqualWarning_LimitUsed()
71 info.usageLevel = ZERO; in getSummaryLimit_NoLimitNoUsage_WarningUsed()
80 info.usageLevel = POSITIVE_SMALL; in getSummaryLimit_NoLimitLowUsage_WarningUsed()
89 info.usageLevel = POSITIVE_LARGE; in getSummaryLimit_LowWarningNoLimit_UsageUsed()
91 assertThat(mInfoController.getSummaryLimit(info)).isEqualTo(info.usageLevel); in getSummaryLimit_LowWarningNoLimit_UsageUsed()
98 info.usageLevel = POSITIVE_LARGE; in getSummaryLimit_LowWarningLowLimit_UsageUsed()
100 assertThat(mInfoController.getSummaryLimit(info)).isEqualTo(info.usageLevel); in getSummaryLimit_LowWarningLowLimit_UsageUsed()
/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/datausage/
DDataUsageSummaryPreferenceController.java220 long usageLevel = info.usageLevel; in updateState() local
230 summaryPreference.setUsageNumbers(displayUsageLevel(usageLevel), in updateState()
263 mDataplanUse = displayUsageLevel(usageLevel); in updateState()
281 private long displayUsageLevel(long usageLevel) { in displayUsageLevel() argument
282 if (usageLevel > 0) { in displayUsageLevel()
283 return usageLevel; in displayUsageLevel()
286 usageLevel = mHistoricalUsageLevel.get(); in displayUsageLevel()
289 return usageLevel; in displayUsageLevel()
301 mDataplanUse = info.usageLevel; in refreshDataplanInfo()
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()
DDataUsageSummary.java217 static CharSequence formatUsage(Context context, String template, long usageLevel) { in formatUsage() argument
220 return formatUsage(context, template, usageLevel, LARGER_SIZE, SMALLER_SIZE); in formatUsage()
223 static CharSequence formatUsage(Context context, String template, long usageLevel, in formatUsage() argument
228 usageLevel, Formatter.FLAG_CALCULATE_ROUNDED | Formatter.FLAG_IEC_UNITS); in formatUsage()
DDataUsageInfoController.java50 if (info.usageLevel > limit) { in getSummaryLimit()
51 limit = info.usageLevel; in getSummaryLimit()
DDataUsageSummaryPreference.java196 final long usageLevel = getHistoricalUsageLevel(); in onBindViewHolder() local
197 if (usageLevel > 0L) { in onBindViewHolder()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DDataUsagePreferenceController.java137 long usageLevel = usageInfo.usageLevel; in getDataUsageSummary() local
138 if (usageLevel <= 0L) { in getDataUsageSummary()
140 usageLevel = mHistoricalUsageLevel.get(); in getDataUsageSummary()
144 if (usageLevel <= 0L) { in getDataUsageSummary()
148 DataUsageUtils.formatDataUsage(context, usageLevel), usageInfo.period); in getDataUsageSummary()
/packages/services/Car/service/src/com/android/car/telemetry/systemmonitor/
DSystemMonitorEvent.java45 public void setCpuUsageLevel(@UsageLevel int usageLevel) { in setCpuUsageLevel() argument
46 this.mCpuUsageLevel = usageLevel; in setCpuUsageLevel()
49 public void setMemoryUsageLevel(@UsageLevel int usageLevel) { in setMemoryUsageLevel() argument
50 this.mMemoryUsageLevel = usageLevel; in setMemoryUsageLevel()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageSummaryPreferenceController.java235 mDataplanUse = info.usageLevel; in refreshDataplanInfo()
324 if (info.usageLevel > limit) { in getSummaryLimit()
325 limit = info.usageLevel; in getSummaryLimit()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/telephony/
DDataUsagePreferenceControllerTest.java131 usageInfo.usageLevel = TrafficStats.MB_IN_BYTES; in updateState_shouldUseIECUnit()
/packages/apps/Settings/src/com/android/settings/
DSettingsDumpService.java144 obj.put("usage", usage.usageLevel); in dumpDataUsage()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.java397 info.usageLevel = USAGE1; in createTestDataUsageInfo()