Home
last modified time | relevance | path

Searched refs:GIB_IN_BYTES (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/
DDataLimitPreferenceControllerTest.java61 private static final long GIB_IN_BYTES = 1024 * 1024 * 1024; field in DataLimitPreferenceControllerTest
138 .thenReturn(5 * GIB_IN_BYTES); in refreshUi_limitEnabled_summaryPopulated()
147 .thenReturn(5 * GIB_IN_BYTES); in refreshUi_limitEnabled_preferenceEnabled()
156 .thenReturn(5 * GIB_IN_BYTES); in refreshUi_limitEnabled_switchChecked()
180 verify(mMockPolicyEditor).setPolicyLimitBytes(mMockNetworkTemplate, 5 * GIB_IN_BYTES); in onDialogConfirm_noWarningThreshold_setsLimitTo5GB()
186 .thenReturn(5 * GIB_IN_BYTES); in onDialogConfirm_hasWarningThreshold_setsLimitToWithMultiplier()
195 (long) (5 * GIB_IN_BYTES * DataLimitPreferenceController.LIMIT_BYTES_MULTIPLIER) in onDialogConfirm_hasWarningThreshold_setsLimitToWithMultiplier()
198 (long) (5 * GIB_IN_BYTES * DataLimitPreferenceController.LIMIT_BYTES_MULTIPLIER) in onDialogConfirm_hasWarningThreshold_setsLimitToWithMultiplier()
DUsageBytesThresholdPickerDialogTest.java63 long twoGB = 2 * UsageBytesThresholdPickerDialog.GIB_IN_BYTES; in dialogInit_validValue_showsCurrentValue()
87 long twoGB = 2 * UsageBytesThresholdPickerDialog.GIB_IN_BYTES; in positiveButtonClick_noChangeInValue_dialogListenerNotCalled()
104 long twoGB = 2 * UsageBytesThresholdPickerDialog.GIB_IN_BYTES; in positiveButtonClick_changeInValue_dialogListenerCalled()
113 long threeGB = 3 * UsageBytesThresholdPickerDialog.GIB_IN_BYTES; in positiveButtonClick_changeInValue_dialogListenerCalled()
DDataUsageSetThresholdBaseFragmentTest.java19 import static com.android.car.settings.datausage.DataUsageSetThresholdBaseFragment.GIB_IN_BYTES;
138 /* initialBytes= */ (long) (MB_GB_SUFFIX_THRESHOLD * GIB_IN_BYTES * 2)); in onActivityCreated_aboveGbThreshold_gbSet()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageSetThresholdBaseFragment.java44 static final long GIB_IN_BYTES = MIB_IN_BYTES * 1024; field in DataUsageSetThresholdBaseFragment
46 static final long MAX_DATA_LIMIT_BYTES = 50000 * GIB_IN_BYTES;
108 if (currentWarningBytes > MB_GB_SUFFIX_THRESHOLD * GIB_IN_BYTES) { in onAttach()
110 bytesText = formatText(currentWarningBytes / (float) GIB_IN_BYTES); in onAttach()
141 ? GIB_IN_BYTES : MIB_IN_BYTES)); in getCurrentThreshold()
DUsageBytesThresholdPickerDialog.java48 static final long GIB_IN_BYTES = MIB_IN_BYTES * 1024; field in UsageBytesThresholdPickerDialog
50 static final long MAX_DATA_LIMIT_BYTES = 50000 * GIB_IN_BYTES;
147 ? MIB_IN_BYTES : GIB_IN_BYTES)); in getCurrentThreshold()
162 if (threshold > MB_GB_SUFFIX_THRESHOLD * GIB_IN_BYTES) { in updateCurrentView()
163 bytesText = formatText(threshold / (float) GIB_IN_BYTES); in updateCurrentView()
DDataLimitPreferenceController.java44 private static final long GIB_IN_BYTES = 1024 * 1024 * 1024; field in DataLimitPreferenceController
127 long limitBytes = Math.max(5 * GIB_IN_BYTES, minLimitBytes); in onConfirm()
/packages/apps/Settings/src/com/android/settings/datausage/
DBillingCycleSettings.java68 public static final long GIB_IN_BYTES = MIB_IN_BYTES * 1024; field in BillingCycleSettings
70 private static final long MAX_DATA_LIMIT_BYTES = 50000 * GIB_IN_BYTES;
327 DataUsageFormatter.Companion.getBytesDisplayUnit(getResources(), GIB_IN_BYTES), in setupPicker()
333 final boolean unitInGigaBytes = (bytes > 1.5f * GIB_IN_BYTES); in setupPicker()
335 unitInGigaBytes ? GIB_IN_BYTES : MIB_IN_BYTES); in setupPicker()
372 * (spinner.getSelectedItemPosition() == 0 ? MIB_IN_BYTES : GIB_IN_BYTES)); in onClick()
482 limitBytes = Math.max(5 * GIB_IN_BYTES, minLimitBytes); in show()
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.kt210 warningBytes = BillingCycleSettings.GIB_IN_BYTES / 2 in onViewCreated_policyHasWarningAndLimit()
211 limitBytes = BillingCycleSettings.GIB_IN_BYTES in onViewCreated_policyHasWarningAndLimit()