Searched refs:GIB_IN_BYTES (Results 1 – 8 of 8) sorted by relevance
61 private static final long GIB_IN_BYTES = 1024 * 1024 * 1024; field in DataLimitPreferenceControllerTest138 .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()
63 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()
19 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()
44 static final long GIB_IN_BYTES = MIB_IN_BYTES * 1024; field in DataUsageSetThresholdBaseFragment46 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()
48 static final long GIB_IN_BYTES = MIB_IN_BYTES * 1024; field in UsageBytesThresholdPickerDialog50 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()
44 private static final long GIB_IN_BYTES = 1024 * 1024 * 1024; field in DataLimitPreferenceController127 long limitBytes = Math.max(5 * GIB_IN_BYTES, minLimitBytes); in onConfirm()
68 public static final long GIB_IN_BYTES = MIB_IN_BYTES * 1024; field in BillingCycleSettings70 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()
210 warningBytes = BillingCycleSettings.GIB_IN_BYTES / 2 in onViewCreated_policyHasWarningAndLimit()211 limitBytes = BillingCycleSettings.GIB_IN_BYTES in onViewCreated_policyHasWarningAndLimit()