Searched refs:GIB_IN_BYTES (Results 1 – 6 of 6) sorted by relevance
56 private static final long GIB_IN_BYTES = 1024 * 1024 * 1024; field in DataLimitPreferenceControllerTest118 when(mPolicyEditor.getPolicyLimitBytes(mNetworkTemplate)).thenReturn(5 * GIB_IN_BYTES); in refreshUi_limitEnabled_summaryPopulated()126 when(mPolicyEditor.getPolicyLimitBytes(mNetworkTemplate)).thenReturn(5 * GIB_IN_BYTES); in refreshUi_limitEnabled_preferenceEnabled()134 when(mPolicyEditor.getPolicyLimitBytes(mNetworkTemplate)).thenReturn(5 * GIB_IN_BYTES); in refreshUi_limitEnabled_switchChecked()158 verify(mPolicyEditor).setPolicyLimitBytes(mNetworkTemplate, 5 * GIB_IN_BYTES); in onDialogConfirm_noWarningThreshold_setsLimitTo5GB()163 when(mPolicyEditor.getPolicyWarningBytes(mNetworkTemplate)).thenReturn(5 * GIB_IN_BYTES); in onDialogConfirm_hasWarningThreshold_setsLimitToWithMultiplier()172 (long) (5 * GIB_IN_BYTES * DataLimitPreferenceController.LIMIT_BYTES_MULTIPLIER) in onDialogConfirm_hasWarningThreshold_setsLimitToWithMultiplier()175 (long) (5 * GIB_IN_BYTES * DataLimitPreferenceController.LIMIT_BYTES_MULTIPLIER) in onDialogConfirm_hasWarningThreshold_setsLimitToWithMultiplier()
57 long twoGB = 2 * UsageBytesThresholdPickerDialog.GIB_IN_BYTES; in dialogInit_validValue_showsCurrentValue()74 long twoGB = 2 * UsageBytesThresholdPickerDialog.GIB_IN_BYTES; in positiveButtonClick_noChangeInValue_dialogListenerNotCalled()88 long twoGB = 2 * UsageBytesThresholdPickerDialog.GIB_IN_BYTES; in positiveButtonClick_changeInValue_dialogListenerCalled()94 long threeGB = 3 * UsageBytesThresholdPickerDialog.GIB_IN_BYTES; in positiveButtonClick_changeInValue_dialogListenerCalled()
46 static final long GIB_IN_BYTES = MIB_IN_BYTES * 1024; field in UsageBytesThresholdPickerDialog48 static final long MAX_DATA_LIMIT_BYTES = 50000 * GIB_IN_BYTES;139 ? MIB_IN_BYTES : GIB_IN_BYTES)); in getCurrentThreshold()154 if (threshold > MB_GB_SUFFIX_THRESHOLD * GIB_IN_BYTES) { in updateCurrentView()155 bytesText = formatText(threshold / (float) GIB_IN_BYTES); in updateCurrentView()
45 private static final long GIB_IN_BYTES = 1024 * 1024 * 1024; field in DataLimitPreferenceController134 long limitBytes = Math.max(5 * GIB_IN_BYTES, minLimitBytes); in onConfirm()
61 public static final long GIB_IN_BYTES = MIB_IN_BYTES * 1024; field in BillingCycleSettings63 private static final long MAX_DATA_LIMIT_BYTES = 50000 * GIB_IN_BYTES;302 final boolean unitInGigaBytes = (bytes > 1.5f * GIB_IN_BYTES); in setupPicker()304 unitInGigaBytes ? GIB_IN_BYTES : MIB_IN_BYTES); in setupPicker()341 * (spinner.getSelectedItemPosition() == 0 ? MIB_IN_BYTES : GIB_IN_BYTES)); in onClick()449 limitBytes = Math.max(5 * GIB_IN_BYTES, minLimitBytes); in show()
82 private static final long LIMIT1 = BillingCycleSettings.GIB_IN_BYTES;