Home
last modified time | relevance | path

Searched refs:maxBytes (Results 1 – 2 of 2) sorted by relevance

/system/timezone/distro/core/src/main/com/android/timezone/distro/
DFileUtils.java165 public static byte[] readBytes(File file, int maxBytes) throws IOException { in readBytes() argument
166 if (maxBytes <= 0) { in readBytes()
167 throw new IllegalArgumentException("maxBytes ==" + maxBytes); in readBytes()
171 byte[] max = new byte[maxBytes]; in readBytes()
172 int bytesRead = in.read(max, 0, maxBytes); in readBytes()
/system/netd/server/
DBandwidthController.cpp305 int BandwidthController::setInterfaceSharedQuota(const std::string& iface, int64_t maxBytes) { in setInterfaceSharedQuota() argument
311 if (!maxBytes) { in setInterfaceSharedQuota()
319 if (maxBytes == -1) { in setInterfaceSharedQuota()
336 chain, maxBytes, cost)); in setInterfaceSharedQuota()
346 mSharedQuotaBytes = maxBytes; in setInterfaceSharedQuota()
350 if (maxBytes != mSharedQuotaBytes) { in setInterfaceSharedQuota()
351 res |= updateQuota(cost, maxBytes); in setInterfaceSharedQuota()
357 mSharedQuotaBytes = maxBytes; in setInterfaceSharedQuota()
411 int BandwidthController::setInterfaceQuota(const std::string& iface, int64_t maxBytes) { in setInterfaceQuota() argument
417 if (!maxBytes) { in setInterfaceQuota()
[all …]