Home
last modified time | relevance | path

Searched refs:MIB_IN_BYTES (Results 1 – 7 of 7) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/datausage/
DDataUsageSetThresholdBaseFragmentTest.java21 import static com.android.car.settings.datausage.DataUsageSetThresholdBaseFragment.MIB_IN_BYTES;
102 setUpFragment(/* useTemplate= */ false, /* initialBytes= */ MIB_IN_BYTES); in onActivityCreated_noTemplateSet_getsDefaultTemplate()
110 setUpFragment(/* useTemplate= */ true, /* initialBytes= */ MIB_IN_BYTES); in onActivityCreated_saveButtonSet()
120 setUpFragment(/* useTemplate= */ true, /* initialBytes= */ MIB_IN_BYTES); in onActivityCreated_titleSet()
129 setUpFragment(/* useTemplate= */ true, /* initialBytes= */ MIB_IN_BYTES); in onActivityCreated_belowGbThreshold_mbSet()
146 setUpFragment(/* useTemplate= */ true, /* initialBytes= */ MIB_IN_BYTES); in onActivityCreated_saveButtonClicked_goesBack()
148 doReturn(MIB_IN_BYTES).when(mFragment).getCurrentThreshold(); in onActivityCreated_saveButtonClicked_goesBack()
DDataWarningSetThresholdFragmentTest.java19 import static com.android.car.settings.datausage.DataWarningSetThresholdFragment.MIB_IN_BYTES;
82 mFragment.onSave(MIB_IN_BYTES); in onActivityCreated_saveButtonClicked_savesThreshold()
84 verify(mMockNetworkPolicyEditor).setPolicyWarningBytes(mMockNetworkTemplate, MIB_IN_BYTES); in onActivityCreated_saveButtonClicked_savesThreshold()
DDataLimitSetThresholdFragmentTest.java19 import static com.android.car.settings.datausage.DataUsageSetThresholdBaseFragment.MIB_IN_BYTES;
82 mFragment.onSave(MIB_IN_BYTES); in onActivityCreated_saveButtonClicked_savesLimit()
84 verify(mMockNetworkPolicyEditor).setPolicyLimitBytes(mMockNetworkTemplate, MIB_IN_BYTES); in onActivityCreated_saveButtonClicked_savesLimit()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageSetThresholdBaseFragment.java42 static final long MIB_IN_BYTES = 1024 * 1024; field in DataUsageSetThresholdBaseFragment
44 static final long GIB_IN_BYTES = MIB_IN_BYTES * 1024;
113 bytesText = formatText(currentWarningBytes / (float) MIB_IN_BYTES); in onAttach()
141 ? GIB_IN_BYTES : MIB_IN_BYTES)); in getCurrentThreshold()
DUsageBytesThresholdPickerDialog.java46 static final long MIB_IN_BYTES = 1024 * 1024; field in UsageBytesThresholdPickerDialog
48 static final long GIB_IN_BYTES = MIB_IN_BYTES * 1024;
147 ? MIB_IN_BYTES : GIB_IN_BYTES)); in getCurrentThreshold()
166 bytesText = formatText(threshold / (float) MIB_IN_BYTES); in updateCurrentView()
/packages/apps/Settings/tests/unit/src/com/android/settings/datausage/
DDataUsageSummaryPreferenceTest.java332 BillingCycleSettings.MIB_IN_BYTES, in testSetUsageAndRemainingInfo_withUsageInfo_dataUsageAndRemainingShown()
333 10 * BillingCycleSettings.MIB_IN_BYTES); in testSetUsageAndRemainingInfo_withUsageInfo_dataUsageAndRemainingShown()
351 11 * BillingCycleSettings.MIB_IN_BYTES, in testSetUsageInfo_withDataOverusage()
352 10 * BillingCycleSettings.MIB_IN_BYTES); in testSetUsageInfo_withDataOverusage()
368 BillingCycleSettings.MIB_IN_BYTES, -1L); in testSetUsageInfo_withUsageInfo_dataUsageShown()
384 BillingCycleSettings.MIB_IN_BYTES, in testSetUsageInfo_withOverflowStrings_dataRemainingNotShown()
385 10 * BillingCycleSettings.MIB_IN_BYTES); in testSetUsageInfo_withOverflowStrings_dataRemainingNotShown()
/packages/apps/Settings/src/com/android/settings/datausage/
DBillingCycleSettings.java67 public static final long MIB_IN_BYTES = 1024 * 1024; field in BillingCycleSettings
68 public static final long GIB_IN_BYTES = MIB_IN_BYTES * 1024;
326 DataUsageFormatter.Companion.getBytesDisplayUnit(getResources(), MIB_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()