Home
last modified time | relevance | path

Searched refs:MEGABYTES (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/tests/net/java/com/android/server/connectivity/
DMultipathPolicyTrackerTest.java261 DataUnit.MEGABYTES.toBytes(2) /* usedBytesToday */, in testGetMultipathPreference_SubscriptionQuota()
262 DataUnit.MEGABYTES.toBytes(14) /* subscriptionQuota */, in testGetMultipathPreference_SubscriptionQuota()
263 DataUnit.MEGABYTES.toBytes(100) /* policyWarning */, in testGetMultipathPreference_SubscriptionQuota()
265 DataUnit.MEGABYTES.toBytes(12) /* defaultGlobalSetting */, in testGetMultipathPreference_SubscriptionQuota()
270 any(), anyInt(), eq(DataUnit.MEGABYTES.toBytes(12)), any(), any()); in testGetMultipathPreference_SubscriptionQuota()
276 DataUnit.MEGABYTES.toBytes(7) /* usedBytesToday */, in testGetMultipathPreference_UserWarningQuota()
279 DataUnit.MEGABYTES.toBytes(15 * 29 * 20) /* policyWarning */, in testGetMultipathPreference_UserWarningQuota()
281 DataUnit.MEGABYTES.toBytes(12) /* defaultGlobalSetting */, in testGetMultipathPreference_UserWarningQuota()
287 any(), anyInt(), eq(DataUnit.MEGABYTES.toBytes(8)), any(), any()); in testGetMultipathPreference_UserWarningQuota()
293 DataUnit.MEGABYTES.toBytes(7) /* usedBytesToday */, in testGetMultipathPreference_SnoozedWarningQuota()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java1128 ZonedDateTime.parse("2015-11-01T00:00:00.00Z"), DataUnit.MEGABYTES.toBytes(1800));
1141 new NetworkStats.Entry(DataUnit.MEGABYTES.toBytes(360), 0L, 0L, 0L, 0));
1150 DataUnit.MEGABYTES.toBytes(1800 - 360));
1158 new NetworkStats.Entry(DataUnit.MEGABYTES.toBytes(1799), 0L, 0L, 0L, 0));
1167 DataUnit.MEGABYTES.toBytes(1800 - 1799));
1176 new NetworkStats.Entry(DataUnit.MEGABYTES.toBytes(1799), 0L, 0L, 0L, 0));
1186 DataUnit.MEGABYTES.toBytes(1800 - 1799));
1195 new NetworkStats.Entry(DataUnit.MEGABYTES.toBytes(1810), 0L, 0L, 0L, 0));
1252 ZonedDateTime.parse("2015-11-01T00:00:00.00Z"), DataUnit.MEGABYTES.toBytes(1800));
1265 new NetworkStats.Entry(DataUnit.MEGABYTES.toBytes(360), 0L, 0L, 0L, 0));
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DDataUnitTest.java27 assertEquals(12_000_000L, DataUnit.MEGABYTES.toBytes(12)); in testSi()
/frameworks/base/core/java/android/util/
DDataUnit.java37 MEGABYTES { @Override public long toBytes(long v) { return v * 1_000_000; } }, in toBytes() enumConstant