/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | MultipathPolicyTrackerTest.java | 58 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/ |
D | DataUnitTest.java | 26 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/mockingservicestests/src/com/android/server/job/controllers/ |
D | ConnectivityControllerTest.java | 57 import android.util.DataUnit; 137 .setEstimatedNetworkBytes(DataUnit.MEBIBYTES.toBytes(1)) in testInsane() 154 .setEstimatedNetworkBytes(DataUnit.MEBIBYTES.toBytes(1)) in testCongestion() 181 .setEstimatedNetworkBytes(DataUnit.MEBIBYTES.toBytes(1)) in testRelaxed() 229 .setEstimatedNetworkBytes(DataUnit.MEBIBYTES.toBytes(1), 0) in testUpdates() 232 .setEstimatedNetworkBytes(DataUnit.MEBIBYTES.toBytes(1), 0) in testUpdates() 301 .setEstimatedNetworkBytes(DataUnit.MEBIBYTES.toBytes(1), 0) in testRequestStandbyExceptionLocked() 304 .setEstimatedNetworkBytes(DataUnit.MEBIBYTES.toBytes(1), 0) in testRequestStandbyExceptionLocked() 338 .setEstimatedNetworkBytes(DataUnit.MEBIBYTES.toBytes(1), 0) in testWouldBeReadyWithConnectivityLocked() 360 .setEstimatedNetworkBytes(DataUnit.MEBIBYTES.toBytes(1), 0) in testEvaluateStateLocked_HeartbeatsOn() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/net/ |
D | NetworkPolicyManagerServiceTest.java | 132 import android.util.DataUnit; 1049 ZonedDateTime.parse("2015-11-01T00:00:00.00Z"), DataUnit.MEGABYTES.toBytes(1800)); 1062 new NetworkStats.Entry(DataUnit.MEGABYTES.toBytes(360), 0L, 0L, 0L, 0)); 1071 DataUnit.MEGABYTES.toBytes(1800 - 360)); 1079 new NetworkStats.Entry(DataUnit.MEGABYTES.toBytes(1799), 0L, 0L, 0L, 0)); 1088 DataUnit.MEGABYTES.toBytes(1800 - 1799)); 1097 new NetworkStats.Entry(DataUnit.MEGABYTES.toBytes(1799), 0L, 0L, 0L, 0)); 1107 DataUnit.MEGABYTES.toBytes(1800 - 1799)); 1116 new NetworkStats.Entry(DataUnit.MEGABYTES.toBytes(1810), 0L, 0L, 0L, 0)); 1173 ZonedDateTime.parse("2015-11-01T00:00:00.00Z"), DataUnit.MEGABYTES.toBytes(1800)); [all …]
|
/frameworks/base/core/proto/android/util/ |
D | event_log_tags.proto | 53 enum DataUnit { enum 63 optional DataUnit unit = 3;
|
/frameworks/base/core/java/android/util/ |
D | DataUnit.java | 35 public enum DataUnit { enum
|
/frameworks/base/services/core/java/com/android/server/storage/ |
D | DeviceStorageMonitorService.java | 42 import android.util.DataUnit; 83 private static final long DEFAULT_LOG_DELTA_BYTES = DataUnit.MEBIBYTES.toBytes(64); 89 private static final long BOOT_IMAGE_STORAGE_REQUIREMENT = DataUnit.MEBIBYTES.toBytes(250);
|
/frameworks/base/core/java/android/app/usage/ |
D | NetworkStatsManager.java | 40 import android.util.DataUnit; 108 public static final long MIN_THRESHOLD_BYTES = DataUnit.MEBIBYTES.toBytes(2);
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | StorageStatsService.java | 53 import android.util.DataUnit; 78 private static final long DEFAULT_QUOTA = DataUnit.MEBIBYTES.toBytes(64);
|
/frameworks/base/core/java/android/os/storage/ |
D | StorageManager.java | 82 import android.util.DataUnit; 1305 private static final long DEFAULT_THRESHOLD_MAX_BYTES = DataUnit.MEBIBYTES.toBytes(500); 1308 private static final long DEFAULT_CACHE_MAX_BYTES = DataUnit.GIBIBYTES.toBytes(5); 1310 private static final long DEFAULT_FULL_THRESHOLD_BYTES = DataUnit.MEBIBYTES.toBytes(1);
|
/frameworks/base/core/java/android/net/ |
D | TrafficStats.java | 31 import android.util.DataUnit;
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | MultipathPolicyTracker.java | 59 import android.util.DataUnit;
|
/frameworks/base/services/core/java/com/android/server/ |
D | StorageManagerService.java | 119 import android.util.DataUnit; 3835 pw.print(DataUnit.MEBIBYTES.toBytes(pair.second)); in dump()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkPolicyManagerService.java | 202 import android.util.DataUnit; 372 private static final long QUOTA_UNLIMITED_DEFAULT = DataUnit.MEBIBYTES.toBytes(20);
|
/frameworks/base/config/ |
D | preloaded-classes | 3619 android.util.DataUnit$1 3620 android.util.DataUnit$2 3621 android.util.DataUnit$3 3622 android.util.DataUnit$4 3623 android.util.DataUnit$5 3624 android.util.DataUnit$6 3625 android.util.DataUnit
|
D | boot-image-profile.txt | 15400 HSPLandroid/util/DataUnit$1;-><init>(Ljava/lang/String;I)V 15401 HSPLandroid/util/DataUnit$2;-><init>(Ljava/lang/String;I)V 15402 HSPLandroid/util/DataUnit$3;-><init>(Ljava/lang/String;I)V 15403 HSPLandroid/util/DataUnit$4;-><init>(Ljava/lang/String;I)V 15404 HSPLandroid/util/DataUnit$5;-><init>(Ljava/lang/String;I)V 15405 HSPLandroid/util/DataUnit$5;->toBytes(J)J 15406 HSPLandroid/util/DataUnit$6;-><init>(Ljava/lang/String;I)V 15407 HSPLandroid/util/DataUnit$6;->toBytes(J)J 36273 Landroid/util/DataUnit$1; 36274 Landroid/util/DataUnit$2; [all …]
|
D | hiddenapi-greylist-max-o.txt | 76750 Landroid/util/DataUnit; 76751 Landroid/util/DataUnit;-><init>()V 76752 Landroid/util/DataUnit;->GIBIBYTES:Landroid/util/DataUnit; 76753 Landroid/util/DataUnit;->GIGABYTES:Landroid/util/DataUnit; 76754 Landroid/util/DataUnit;->KIBIBYTES:Landroid/util/DataUnit; 76755 Landroid/util/DataUnit;->KILOBYTES:Landroid/util/DataUnit; 76756 Landroid/util/DataUnit;->MEBIBYTES:Landroid/util/DataUnit; 76757 Landroid/util/DataUnit;->MEGABYTES:Landroid/util/DataUnit; 76758 Landroid/util/DataUnit;->toBytes(J)J 76759 Landroid/util/DataUnit;->valueOf(Ljava/lang/String;)Landroid/util/DataUnit; [all …]
|