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;
83 private long mPersistThresholdBytes = 2 * MB_IN_BYTES;
135 thresholdBytes, 1 * KB_IN_BYTES, 100 * MB_IN_BYTES); in setPersistThreshold()
DNetworkPolicyManagerService.java77 import static android.net.TrafficStats.MB_IN_BYTES;
2088 return dataWarningConfig * MB_IN_BYTES; in getPlatformDefaultWarningBytes()
3248 .setDataLimit(512 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
3250 .setDataUsage(100 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
3258 .setDataLimit(512 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
3260 .setDataUsage(100 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
3270 .setDataUsage(15 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
3280 .setDataUsage(300 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
3290 .setDataUsage(50 * TrafficStats.MB_IN_BYTES, in getSubscriptionPlans()
DNetworkStatsService.java50 import static android.net.TrafficStats.MB_IN_BYTES;
334 private long mPersistThreshold = 2 * MB_IN_BYTES;
1004 mPersistThreshold = MathUtils.constrain(thresholdBytes, 128 * KB_IN_BYTES, 2 * MB_IN_BYTES);
/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/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java48 import static android.net.TrafficStats.MB_IN_BYTES;
1170 provider.expectOnSetAlert(MB_IN_BYTES);
1211 provider.expectOnSetAlert(MB_IN_BYTES);
1418 when(mSettings.getGlobalAlertBytes(anyLong())).thenReturn(MB_IN_BYTES);
1419 when(mSettings.getDevPersistBytes(anyLong())).thenReturn(MB_IN_BYTES);
1420 when(mSettings.getXtPersistBytes(anyLong())).thenReturn(MB_IN_BYTES);
1421 when(mSettings.getUidPersistBytes(anyLong())).thenReturn(MB_IN_BYTES);
1422 when(mSettings.getUidTagPersistBytes(anyLong())).thenReturn(MB_IN_BYTES);
DNetworkStatsObserversTest.java28 import static android.net.TrafficStats.MB_IN_BYTES;
91 private static final long THRESHOLD_BYTES = 2 * MB_IN_BYTES;
92 private static final long BASE_BYTES = 7 * MB_IN_BYTES;
/frameworks/base/core/java/android/net/
DTrafficStats.java67 public static final long MB_IN_BYTES = KB_IN_BYTES * 1024; field in TrafficStats
70 public static final long GB_IN_BYTES = MB_IN_BYTES * 1024;
/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.java43 import static android.net.TrafficStats.MB_IN_BYTES;
1015 sTemplateWifi, CYCLE_DAY, TIMEZONE_UTC, 1 * MB_IN_BYTES, 2 * MB_IN_BYTES, false));
1019 (2 * MB_IN_BYTES) - 512);
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt45304 Landroid/net/TrafficStats;->MB_IN_BYTES:J