/frameworks/base/core/java/com/android/internal/content/ |
D | PackageHelper.java | 19 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/ |
D | NetworkStatsRecorder.java | 21 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()
|
D | NetworkStatsObservers.java | 19 import static android.net.TrafficStats.MB_IN_BYTES; 55 private static final long MIN_THRESHOLD_BYTES = 2 * MB_IN_BYTES;
|
D | NetworkPolicyManagerService.java | 68 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()
|
D | NetworkStatsService.java | 42 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/ |
D | TrafficStats.java | 58 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/ |
D | DataUsageController.java | 22 import static android.net.TrafficStats.MB_IN_BYTES; 85 return MB_IN_BYTES in getDefaultWarningLevel()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | NetworkPolicyManagerServiceTest.java | 30 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/ |
D | NetworkStatsServiceTest.java | 41 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()
|
D | NetworkStatsObserversTest.java | 27 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/ |
D | NetworkStatsHistoryTest.java | 28 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/ |
D | PackageHelperTests.java | 39 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/ |
D | StorageVolume.java | 238 return (int) (mMtpReserveSize / TrafficStats.MB_IN_BYTES); in getMtpReserveSpace()
|
D | StorageManager.java | 20 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/ |
D | DeviceStorageMonitorService.java | 83 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/ |
D | StorageStatsService.java | 76 private static final long DEFAULT_QUOTA = 64 * TrafficStats.MB_IN_BYTES;
|