Home
last modified time | relevance | path

Searched refs:MB_IN_BYTES (Results 1 – 16 of 16) sorted by relevance

/frameworks/base/core/java/com/android/internal/content/
DPackageHelper.java19 import static android.net.TrafficStats.MB_IN_BYTES;
97 final int sizeMb = (int) ((sizeBytes + MB_IN_BYTES) / MB_IN_BYTES) + 1; in createSdDir()
122 final int sizeMb = (int) ((sizeBytes + MB_IN_BYTES) / MB_IN_BYTES) + 1; in resizeSdDir()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsRecorder.java21 import static android.net.TrafficStats.MB_IN_BYTES;
86 private long mPersistThresholdBytes = 2 * MB_IN_BYTES;
138 thresholdBytes, 1 * KB_IN_BYTES, 100 * MB_IN_BYTES); in setPersistThreshold()
DNetworkStatsObservers.java19 import static android.net.TrafficStats.MB_IN_BYTES;
55 private static final long MIN_THRESHOLD_BYTES = 2 * MB_IN_BYTES;
DNetworkPolicyManagerService.java68 import static android.net.TrafficStats.MB_IN_BYTES;
1720 return dataWarningConfig * MB_IN_BYTES; in getPlatformDefaultWarningBytes()
2755 .setDataLimit(512 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
2757 .setDataUsage(100 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
2765 .setDataLimit(512 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
2767 .setDataUsage(100 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
2777 .setDataUsage(15 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
2787 .setDataUsage(300 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
2797 .setDataUsage(50 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
DNetworkStatsService.java42 import static android.net.TrafficStats.MB_IN_BYTES;
269 private long mPersistThreshold = 2 * MB_IN_BYTES;
813 mPersistThreshold = MathUtils.constrain(thresholdBytes, 128 * KB_IN_BYTES, 2 * MB_IN_BYTES); in advisePersistThreshold()
/frameworks/base/core/java/android/net/
DTrafficStats.java58 public static final long MB_IN_BYTES = KB_IN_BYTES * 1024; field in TrafficStats
60 public static final long GB_IN_BYTES = MB_IN_BYTES * 1024;
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageController.java22 import static android.net.TrafficStats.MB_IN_BYTES;
85 return MB_IN_BYTES in getDefaultWarningLevel()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java30 import static android.net.TrafficStats.MB_IN_BYTES;
953 sTemplateWifi, CYCLE_DAY, TIMEZONE_UTC, 1 * MB_IN_BYTES, 2 * MB_IN_BYTES, false)); in testNetworkPolicyAppliedCycleLastMonth()
959 verifySetInterfaceQuota(TEST_IFACE, (2 * MB_IN_BYTES) - 512); in testNetworkPolicyAppliedCycleLastMonth()
988 * MB_IN_BYTES, 2 * MB_IN_BYTES, false)); in testOverWarningLimitNotification()
1011 verifySetInterfaceQuota(TEST_IFACE, 2 * MB_IN_BYTES); in testOverWarningLimitNotification()
1035 .addIfaceValues(TEST_IFACE, 5 * MB_IN_BYTES, 512L, 0L, 0L); in testOverWarningLimitNotification()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java41 import static android.net.TrafficStats.MB_IN_BYTES;
1071 when(mSettings.getGlobalAlertBytes(anyLong())).thenReturn(MB_IN_BYTES); in expectSettings()
1072 when(mSettings.getDevPersistBytes(anyLong())).thenReturn(MB_IN_BYTES); in expectSettings()
1073 when(mSettings.getXtPersistBytes(anyLong())).thenReturn(MB_IN_BYTES); in expectSettings()
1074 when(mSettings.getUidPersistBytes(anyLong())).thenReturn(MB_IN_BYTES); in expectSettings()
1075 when(mSettings.getUidTagPersistBytes(anyLong())).thenReturn(MB_IN_BYTES); in expectSettings()
DNetworkStatsObserversTest.java27 import static android.net.TrafficStats.MB_IN_BYTES;
98 private static final long THRESHOLD_BYTES = 2 * MB_IN_BYTES;
99 private static final long BASE_BYTES = 7 * MB_IN_BYTES;
/frameworks/base/tests/net/java/android/net/
DNetworkStatsHistoryTest.java28 import static android.net.TrafficStats.MB_IN_BYTES;
404 assertEquals(40 * MB_IN_BYTES, performVarLong(40 * MB_IN_BYTES)); in testVarLong()
/frameworks/base/core/tests/coretests/src/android/content/pm/
DPackageHelperTests.java39 import static android.net.TrafficStats.MB_IN_BYTES;
190 fullId2 = PackageHelper.createSdDir(1024 * MB_IN_BYTES, fullId, "none", in testMountAndPullSdCard()
/frameworks/base/core/java/android/os/storage/
DStorageVolume.java238 return (int) (mMtpReserveSize / TrafficStats.MB_IN_BYTES); in getMtpReserveSpace()
DStorageManager.java20 import static android.net.TrafficStats.MB_IN_BYTES;
1159 private static final long DEFAULT_THRESHOLD_MAX_BYTES = 500 * MB_IN_BYTES;
1164 private static final long DEFAULT_FULL_THRESHOLD_BYTES = MB_IN_BYTES;
/frameworks/base/services/core/java/com/android/server/storage/
DDeviceStorageMonitorService.java83 private static final long DEFAULT_LOG_DELTA_BYTES = 64 * TrafficStats.MB_IN_BYTES;
89 private static final long BOOT_IMAGE_STORAGE_REQUIREMENT = 250 * TrafficStats.MB_IN_BYTES;
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java76 private static final long DEFAULT_QUOTA = 64 * TrafficStats.MB_IN_BYTES;