Home
last modified time | relevance | path

Searched refs:DataUnit (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/tests/net/java/com/android/server/connectivity/
DMultipathPolicyTrackerTest.java61 import android.util.DataUnit;
247 DataUnit.MEGABYTES.toBytes(2) /* usedBytesToday */, in testGetMultipathPreference_SubscriptionQuota()
248 DataUnit.MEGABYTES.toBytes(14) /* subscriptionQuota */, in testGetMultipathPreference_SubscriptionQuota()
249 DataUnit.MEGABYTES.toBytes(100) /* policyWarning */, in testGetMultipathPreference_SubscriptionQuota()
251 DataUnit.MEGABYTES.toBytes(12) /* defaultGlobalSetting */, in testGetMultipathPreference_SubscriptionQuota()
256 any(), anyInt(), eq(DataUnit.MEGABYTES.toBytes(12)), any(), any()); in testGetMultipathPreference_SubscriptionQuota()
262 DataUnit.MEGABYTES.toBytes(7) /* usedBytesToday */, in testGetMultipathPreference_UserWarningQuota()
265 DataUnit.MEGABYTES.toBytes(15 * 29 * 20) /* policyWarning */, in testGetMultipathPreference_UserWarningQuota()
267 DataUnit.MEGABYTES.toBytes(12) /* defaultGlobalSetting */, in testGetMultipathPreference_UserWarningQuota()
273 any(), anyInt(), eq(DataUnit.MEGABYTES.toBytes(8)), any(), any()); in testGetMultipathPreference_UserWarningQuota()
[all …]
/frameworks/base/core/tests/coretests/src/android/util/
DDataUnitTest.java26 assertEquals(12_000L, DataUnit.KILOBYTES.toBytes(12)); in testSi()
27 assertEquals(12_000_000L, DataUnit.MEGABYTES.toBytes(12)); in testSi()
28 assertEquals(12_000_000_000L, DataUnit.GIGABYTES.toBytes(12)); in testSi()
32 assertEquals(12_288L, DataUnit.KIBIBYTES.toBytes(12)); in testIec()
33 assertEquals(12_582_912L, DataUnit.MEBIBYTES.toBytes(12)); in testIec()
34 assertEquals(12_884_901_888L, DataUnit.GIBIBYTES.toBytes(12)); in testIec()
/frameworks/base/services/tests/servicestests/src/com/android/server/job/controllers/
DConnectivityControllerTest.java48 import android.util.DataUnit;
115 .setEstimatedNetworkBytes(DataUnit.MEBIBYTES.toBytes(1)) in testInsane()
132 .setEstimatedNetworkBytes(DataUnit.MEBIBYTES.toBytes(1)) in testCongestion()
159 .setEstimatedNetworkBytes(DataUnit.MEBIBYTES.toBytes(1)) in testRelaxed()
207 .setEstimatedNetworkBytes(DataUnit.MEBIBYTES.toBytes(1), 0) in testUpdates()
210 .setEstimatedNetworkBytes(DataUnit.MEBIBYTES.toBytes(1), 0) in testUpdates()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DNetworkPolicyManagerServiceTest.java126 import android.util.DataUnit;
1032 ZonedDateTime.parse("2015-11-01T00:00:00.00Z"), DataUnit.MEGABYTES.toBytes(1800)); in testNotificationWarningLimitSnooze()
1045 new NetworkStats.Entry(DataUnit.MEGABYTES.toBytes(360), 0L, 0L, 0L, 0)); in testNotificationWarningLimitSnooze()
1054 DataUnit.MEGABYTES.toBytes(1800 - 360)); in testNotificationWarningLimitSnooze()
1062 new NetworkStats.Entry(DataUnit.MEGABYTES.toBytes(1799), 0L, 0L, 0L, 0)); in testNotificationWarningLimitSnooze()
1071 DataUnit.MEGABYTES.toBytes(1800 - 1799)); in testNotificationWarningLimitSnooze()
1080 new NetworkStats.Entry(DataUnit.MEGABYTES.toBytes(1810), 0L, 0L, 0L, 0)); in testNotificationWarningLimitSnooze()
1137 ZonedDateTime.parse("2015-11-01T00:00:00.00Z"), DataUnit.MEGABYTES.toBytes(1800)); in testNotificationRapid()
1150 new NetworkStats.Entry(DataUnit.MEGABYTES.toBytes(360), 0L, 0L, 0L, 0)); in testNotificationRapid()
1162 new NetworkStats.Entry(DataUnit.MEGABYTES.toBytes(1440), 0L, 0L, 0L, 0)); in testNotificationRapid()
[all …]
/frameworks/base/core/proto/android/util/
Devent_log_tags.proto53 enum DataUnit { enum
63 optional DataUnit unit = 3;
/frameworks/base/core/java/android/util/
DDataUnit.java35 public enum DataUnit { enum
/frameworks/base/core/java/android/app/usage/
DNetworkStatsManager.java39 import android.util.DataUnit;
107 public static final long MIN_THRESHOLD_BYTES = DataUnit.MEBIBYTES.toBytes(2);
/frameworks/base/services/core/java/com/android/server/storage/
DDeviceStorageMonitorService.java43 import android.util.DataUnit;
84 private static final long DEFAULT_LOG_DELTA_BYTES = DataUnit.MEBIBYTES.toBytes(64);
90 private static final long BOOT_IMAGE_STORAGE_REQUIREMENT = DataUnit.MEBIBYTES.toBytes(250);
/frameworks/base/services/usage/java/com/android/server/usage/
DStorageStatsService.java52 import android.util.DataUnit;
77 private static final long DEFAULT_QUOTA = DataUnit.MEBIBYTES.toBytes(64);
/frameworks/base/core/java/android/os/storage/
DStorageManager.java58 import android.util.DataUnit;
1206 private static final long DEFAULT_THRESHOLD_MAX_BYTES = DataUnit.MEBIBYTES.toBytes(500);
1209 private static final long DEFAULT_CACHE_MAX_BYTES = DataUnit.GIBIBYTES.toBytes(5);
1211 private static final long DEFAULT_FULL_THRESHOLD_BYTES = DataUnit.MEBIBYTES.toBytes(1);
/frameworks/base/core/java/android/net/
DTrafficStats.java29 import android.util.DataUnit;
/frameworks/base/core/java/android/provider/
DDocumentsContract.java53 import android.util.DataUnit;
176 private static final int THUMBNAIL_BUFFER_SIZE = (int) DataUnit.KIBIBYTES.toBytes(128);
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java59 import android.util.DataUnit;
/frameworks/base/services/core/java/com/android/server/
DStorageManagerService.java105 import android.util.DataUnit;
3570 pw.print(DataUnit.MEBIBYTES.toBytes(pair.second)); in dump()
/frameworks/base/config/
Dpreloaded-classes3113 android.util.DataUnit
3114 android.util.DataUnit$1
3115 android.util.DataUnit$2
3116 android.util.DataUnit$3
3117 android.util.DataUnit$4
3118 android.util.DataUnit$5
3119 android.util.DataUnit$6
Dboot-image-profile.txt31948 HSPLandroid/util/DataUnit$1;-><init>(Ljava/lang/String;I)V
31949 HSPLandroid/util/DataUnit$2;-><init>(Ljava/lang/String;I)V
31950 HSPLandroid/util/DataUnit$3;-><init>(Ljava/lang/String;I)V
31951 HSPLandroid/util/DataUnit$4;-><init>(Ljava/lang/String;I)V
31952 HSPLandroid/util/DataUnit$4;->toBytes(J)J
31953 HSPLandroid/util/DataUnit$5;-><init>(Ljava/lang/String;I)V
31954 HSPLandroid/util/DataUnit$5;->toBytes(J)J
31955 HSPLandroid/util/DataUnit$6;-><init>(Ljava/lang/String;I)V
31956 HSPLandroid/util/DataUnit$6;->toBytes(J)J
58475 Landroid/util/DataUnit$1;
[all …]
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java201 import android.util.DataUnit;
372 private static final long QUOTA_UNLIMITED_DEFAULT = DataUnit.MEBIBYTES.toBytes(20);