Searched refs:requestedBytes (Results 1 – 2 of 2) sorted by relevance
/packages/modules/Connectivity/staticlibs/testutils/devicetests/com/android/testutils/async/ |
D | RateLimiter.java | 64 public static int limit(RateLimiter limiter1, RateLimiter limiter2, int requestedBytes) { in limit() argument 66 final int allowedCount = Math.min(limiter1.calculateLimit(now, requestedBytes), in limit() 67 limiter2.calculateLimit(now, requestedBytes)); in limit() 68 limiter1.recordBytes(now, requestedBytes, allowedCount); in limit() 69 limiter2.recordBytes(now, requestedBytes, allowedCount); in limit() 73 public int limit(int requestedBytes) { in limit() argument 75 final int allowedCount = calculateLimit(now, requestedBytes); in limit() 76 recordBytes(now, requestedBytes, allowedCount); in limit() 84 public boolean acceptAllOrNone(int requestedBytes) { in acceptAllOrNone() argument 86 final int allowedCount = calculateLimit(now, requestedBytes); in acceptAllOrNone() [all …]
|
/packages/apps/StorageManager/src/com/android/storagemanager/deletionhelper/ |
D | DeletionHelperSettings.java | 127 long requestedBytes = in onCreatePreferences() local 129 mBytesToFree = requestedBytes; in onCreatePreferences() 140 long requestedBytes = intent.getLongExtra(StorageManager.EXTRA_REQUESTED_BYTES, UNSET); in getGaugeString() local 141 if (requestedBytes > 0) { in getGaugeString() 152 Formatter.formatFileSize(context, requestedBytes)); in getGaugeString()
|