Searched refs:maxBytes (Results 1 – 4 of 4) sorted by relevance
/system/timezone/apex/tests/src/java/android/tzdata/mts/ |
D | TimeZoneVersionTest.java | 87 private static byte[] readBytes(File file, int maxBytes) throws IOException { in readBytes() argument 88 if (maxBytes <= 0) { in readBytes() 89 throw new IllegalArgumentException("maxBytes ==" + maxBytes); in readBytes() 93 byte[] max = new byte[maxBytes]; in readBytes() 94 int bytesRead = in.read(max, 0, maxBytes); in readBytes()
|
/system/timezone/distro/core/src/main/com/android/timezone/distro/ |
D | FileUtils.java | 165 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/ |
D | BandwidthController.cpp | 351 int BandwidthController::setInterfaceSharedQuota(const std::string& iface, int64_t maxBytes) { in setInterfaceSharedQuota() argument 357 if (!maxBytes) { in setInterfaceSharedQuota() 365 if (maxBytes == -1) { in setInterfaceSharedQuota() 382 chain, maxBytes, cost)); in setInterfaceSharedQuota() 392 mSharedQuotaBytes = maxBytes; in setInterfaceSharedQuota() 396 if (maxBytes != mSharedQuotaBytes) { in setInterfaceSharedQuota() 397 res |= updateQuota(cost, maxBytes); in setInterfaceSharedQuota() 403 mSharedQuotaBytes = maxBytes; in setInterfaceSharedQuota() 457 int BandwidthController::setInterfaceQuota(const std::string& iface, int64_t maxBytes) { in setInterfaceQuota() argument 462 if (!maxBytes) { in setInterfaceQuota() [all …]
|
/system/chre/platform/shared/ |
D | log_buffer.cc | 231 constexpr size_t maxBytes = kLogMaxSize - kLogDataOffset; in getLogDataLength() local 232 size_t numBytes = maxBytes + 1; in getLogDataLength() 234 for (size_t i = 0; i < maxBytes; i++) { in getLogDataLength()
|