Home
last modified time | relevance | path

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

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DDataLimitPreferenceControllerTest.java56 private static final long GIB_IN_BYTES = 1024 * 1024 * 1024; field in DataLimitPreferenceControllerTest
118 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()
DUsageBytesThresholdPickerDialogTest.java57 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()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DUsageBytesThresholdPickerDialog.java46 static final long GIB_IN_BYTES = MIB_IN_BYTES * 1024; field in UsageBytesThresholdPickerDialog
48 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()
DDataLimitPreferenceController.java45 private static final long GIB_IN_BYTES = 1024 * 1024 * 1024; field in DataLimitPreferenceController
134 long limitBytes = Math.max(5 * GIB_IN_BYTES, minLimitBytes); in onConfirm()
/packages/apps/Settings/src/com/android/settings/datausage/
DBillingCycleSettings.java61 public static final long GIB_IN_BYTES = MIB_IN_BYTES * 1024; field in BillingCycleSettings
63 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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.java82 private static final long LIMIT1 = BillingCycleSettings.GIB_IN_BYTES;