Home
last modified time | relevance | path

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

/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()
DNetworkPolicyManagerService.java73 import static android.net.TrafficStats.MB_IN_BYTES;
2069 return dataWarningConfig * MB_IN_BYTES; in getPlatformDefaultWarningBytes()
3160 .setDataLimit(512 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
3162 .setDataUsage(100 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
3170 .setDataLimit(512 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
3172 .setDataUsage(100 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
3182 .setDataUsage(15 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
3192 .setDataUsage(300 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
3202 .setDataUsage(50 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
DNetworkStatsService.java46 import static android.net.TrafficStats.MB_IN_BYTES;
301 private long mPersistThreshold = 2 * MB_IN_BYTES;
898 mPersistThreshold = MathUtils.constrain(thresholdBytes, 128 * KB_IN_BYTES, 2 * MB_IN_BYTES); in advisePersistThreshold()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageController.java22 import static android.net.TrafficStats.MB_IN_BYTES;
99 return MB_IN_BYTES in getDefaultWarningLevel()
/frameworks/base/core/java/android/net/
DTrafficStats.java66 public static final long MB_IN_BYTES = KB_IN_BYTES * 1024; field in TrafficStats
69 public static final long GB_IN_BYTES = MB_IN_BYTES * 1024;
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsObserversTest.java28 import static android.net.TrafficStats.MB_IN_BYTES;
93 private static final long THRESHOLD_BYTES = 2 * MB_IN_BYTES;
94 private static final long BASE_BYTES = 7 * MB_IN_BYTES;
DNetworkStatsServiceTest.java47 import static android.net.TrafficStats.MB_IN_BYTES;
1247 when(mSettings.getGlobalAlertBytes(anyLong())).thenReturn(MB_IN_BYTES); in expectSettings()
1248 when(mSettings.getDevPersistBytes(anyLong())).thenReturn(MB_IN_BYTES); in expectSettings()
1249 when(mSettings.getXtPersistBytes(anyLong())).thenReturn(MB_IN_BYTES); in expectSettings()
1250 when(mSettings.getUidPersistBytes(anyLong())).thenReturn(MB_IN_BYTES); in expectSettings()
1251 when(mSettings.getUidTagPersistBytes(anyLong())).thenReturn(MB_IN_BYTES); in expectSettings()
/frameworks/base/tests/net/java/android/net/
DNetworkStatsHistoryTest.java28 import static android.net.TrafficStats.MB_IN_BYTES;
430 assertEquals(40 * MB_IN_BYTES, performVarLong(40 * MB_IN_BYTES)); in testVarLong()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java42 import static android.net.TrafficStats.MB_IN_BYTES;
1014 sTemplateWifi, CYCLE_DAY, TIMEZONE_UTC, 1 * MB_IN_BYTES, 2 * MB_IN_BYTES, false));
1018 (2 * MB_IN_BYTES) - 512);
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt48600 Landroid/net/TrafficStats;->MB_IN_BYTES:J