Home
last modified time | relevance | path

Searched refs:MB_IN_BYTES (Results 1 – 9 of 9) 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;
2005 return dataWarningConfig * MB_IN_BYTES; in getPlatformDefaultWarningBytes()
3086 .setDataLimit(512 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
3088 .setDataUsage(100 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
3096 .setDataLimit(512 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
3098 .setDataUsage(100 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
3108 .setDataUsage(15 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
3118 .setDataUsage(300 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
3128 .setDataUsage(50 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
DNetworkStatsService.java45 import static android.net.TrafficStats.MB_IN_BYTES;
289 private long mPersistThreshold = 2 * MB_IN_BYTES;
875 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;
85 return MB_IN_BYTES in getDefaultWarningLevel()
/frameworks/base/core/java/android/net/
DTrafficStats.java64 public static final long MB_IN_BYTES = KB_IN_BYTES * 1024; field in TrafficStats
67 public static final long GB_IN_BYTES = MB_IN_BYTES * 1024;
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsObserversTest.java29 import static android.net.TrafficStats.MB_IN_BYTES;
100 private static final long THRESHOLD_BYTES = 2 * MB_IN_BYTES;
101 private static final long BASE_BYTES = 7 * MB_IN_BYTES;
DNetworkStatsServiceTest.java45 import static android.net.TrafficStats.MB_IN_BYTES;
1144 when(mSettings.getGlobalAlertBytes(anyLong())).thenReturn(MB_IN_BYTES); in expectSettings()
1145 when(mSettings.getDevPersistBytes(anyLong())).thenReturn(MB_IN_BYTES); in expectSettings()
1146 when(mSettings.getXtPersistBytes(anyLong())).thenReturn(MB_IN_BYTES); in expectSettings()
1147 when(mSettings.getUidPersistBytes(anyLong())).thenReturn(MB_IN_BYTES); in expectSettings()
1148 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;
429 assertEquals(40 * MB_IN_BYTES, performVarLong(40 * MB_IN_BYTES)); in testVarLong()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java35 import static android.net.TrafficStats.MB_IN_BYTES;
997 sTemplateWifi, CYCLE_DAY, TIMEZONE_UTC, 1 * MB_IN_BYTES, 2 * MB_IN_BYTES, false)); in testNetworkPolicyAppliedCycleLastMonth()
1001 (2 * MB_IN_BYTES) - 512); in testNetworkPolicyAppliedCycleLastMonth()