Home
last modified time | relevance | path

Searched refs:GIB_IN_BYTES (Results 1 – 7 of 7) 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
133 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;
291 if (bytes > 1.5f * GIB_IN_BYTES) { in setupPicker()
292 final String bytesText = formatText(bytes / (float) GIB_IN_BYTES); in setupPicker()
329 * (spinner.getSelectedItemPosition() == 0 ? MIB_IN_BYTES : GIB_IN_BYTES)); in onClick()
436 limitBytes = Math.max(5 * GIB_IN_BYTES, minLimitBytes); in show()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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;
291 if (bytes > 1.5f * GIB_IN_BYTES) { in setupPicker()
292 final String bytesText = formatText(bytes / (float) GIB_IN_BYTES); in setupPicker()
329 * (spinner.getSelectedItemPosition() == 0 ? MIB_IN_BYTES : GIB_IN_BYTES)); in onClick()
436 limitBytes = Math.max(5 * GIB_IN_BYTES, minLimitBytes); in show()
/packages/apps/Settings/tests/robotests/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceControllerTest.java76 private static final long LIMIT1 = BillingCycleSettings.GIB_IN_BYTES;