Home
last modified time | relevance | path

Searched refs:MIB_IN_BYTES (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DUsageBytesThresholdPickerDialog.java44 static final long MIB_IN_BYTES = 1024 * 1024; field in UsageBytesThresholdPickerDialog
46 static final long GIB_IN_BYTES = MIB_IN_BYTES * 1024;
139 ? MIB_IN_BYTES : GIB_IN_BYTES)); in getCurrentThreshold()
158 bytesText = formatText(threshold / (float) MIB_IN_BYTES); in updateCurrentView()
/packages/apps/Settings/tests/unit/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceTest.java378 BillingCycleSettings.MIB_IN_BYTES, in testSetUsageAndRemainingInfo_withUsageInfo_dataUsageAndRemainingShown()
379 10 * BillingCycleSettings.MIB_IN_BYTES, in testSetUsageAndRemainingInfo_withUsageInfo_dataUsageAndRemainingShown()
399 11 * BillingCycleSettings.MIB_IN_BYTES, in testSetUsageInfo_withDataOverusage()
400 10 * BillingCycleSettings.MIB_IN_BYTES, in testSetUsageInfo_withDataOverusage()
418 BillingCycleSettings.MIB_IN_BYTES, -1L, true /* hasMobileData */); in testSetUsageInfo_withUsageInfo_dataUsageShown()
464 BillingCycleSettings.MIB_IN_BYTES, in testSetUsageInfo_withOverflowStrings_dataRemainingNotShown()
465 10 * BillingCycleSettings.MIB_IN_BYTES, in testSetUsageInfo_withOverflowStrings_dataRemainingNotShown()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.java81 private static final long USAGE1 = 373 * BillingCycleSettings.MIB_IN_BYTES;
297 info.warningLevel = BillingCycleSettings.MIB_IN_BYTES; in testSummaryUpdate_warningOnly()
318 info.limitLevel = BillingCycleSettings.MIB_IN_BYTES; in testSummaryUpdate_limitOnly()
337 info.warningLevel = BillingCycleSettings.MIB_IN_BYTES; in testSummaryUpdate_limitAndWarning()
338 info.limitLevel = BillingCycleSettings.MIB_IN_BYTES; in testSummaryUpdate_limitAndWarning()
/packages/apps/Settings/src/com/android/settings/datausage/
DBillingCycleSettings.java60 public static final long MIB_IN_BYTES = 1024 * 1024; field in BillingCycleSettings
61 public static final long GIB_IN_BYTES = MIB_IN_BYTES * 1024;
304 unitInGigaBytes ? GIB_IN_BYTES : MIB_IN_BYTES); in setupPicker()
341 * (spinner.getSelectedItemPosition() == 0 ? MIB_IN_BYTES : GIB_IN_BYTES)); in onClick()