/packages/apps/Settings/tests/unit/src/com/android/settings/datausage/ |
D | DataUsageInfoControllerTest.java | 53 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/ |
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/datausage/ |
D | DataUsageSummaryPreferenceController.java | 220 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()
|
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 | DataUsageSummary.java | 217 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()
|
D | DataUsageInfoController.java | 50 if (info.usageLevel > limit) { in getSummaryLimit() 51 limit = info.usageLevel; in getSummaryLimit()
|
D | DataUsageSummaryPreference.java | 196 final long usageLevel = getHistoricalUsageLevel(); in onBindViewHolder() local 197 if (usageLevel > 0L) { in onBindViewHolder()
|
/packages/apps/Settings/src/com/android/settings/network/telephony/ |
D | DataUsagePreferenceController.java | 137 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/ |
D | SystemMonitorEvent.java | 45 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/ |
D | DataUsageSummaryPreferenceController.java | 235 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/ |
D | DataUsagePreferenceControllerTest.java | 131 usageInfo.usageLevel = TrafficStats.MB_IN_BYTES; in updateState_shouldUseIECUnit()
|
/packages/apps/Settings/src/com/android/settings/ |
D | SettingsDumpService.java | 144 obj.put("usage", usage.usageLevel); in dumpDataUsage()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/ |
D | DataUsageSummaryPreferenceControllerTest.java | 397 info.usageLevel = USAGE1; in createTestDataUsageInfo()
|