Searched refs:maxBytes (Results 1 – 5 of 5) sorted by relevance
/system/timezone/apex/tests/src/java/android/tzdata/mts/ |
D | TimeZoneVersionTest.java | 80 private static byte[] readBytes(File file, int maxBytes) throws IOException { in readBytes() argument 81 if (maxBytes <= 0) { in readBytes() 82 throw new IllegalArgumentException("maxBytes ==" + maxBytes); in readBytes() 86 byte[] max = new byte[maxBytes]; in readBytes() 87 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 | 414 int BandwidthController::setInterfaceSharedQuota(const std::string& iface, int64_t maxBytes) { in setInterfaceSharedQuota() argument 420 if (!maxBytes) { in setInterfaceSharedQuota() 428 if (maxBytes == -1) { in setInterfaceSharedQuota() 445 chain, maxBytes, cost)); in setInterfaceSharedQuota() 455 mSharedQuotaBytes = maxBytes; in setInterfaceSharedQuota() 459 if (maxBytes != mSharedQuotaBytes) { in setInterfaceSharedQuota() 460 res |= updateQuota(cost, maxBytes); in setInterfaceSharedQuota() 466 mSharedQuotaBytes = maxBytes; in setInterfaceSharedQuota() 520 int BandwidthController::setInterfaceQuota(const std::string& iface, int64_t maxBytes) { in setInterfaceQuota() argument 525 if (!maxBytes) { in setInterfaceQuota() [all …]
|
D | TetherController.h | 111 int setTetherOffloadInterfaceQuota(int ifIndex, int64_t maxBytes);
|
D | TetherController.cpp | 1144 int TetherController::setTetherOffloadInterfaceQuota(int ifIndex, int64_t maxBytes) { in setTetherOffloadInterfaceQuota() argument 1149 if (maxBytes < QUOTA_UNLIMITED) { in setTetherOffloadInterfaceQuota() 1155 const auto res = setBpfLimit(static_cast<uint32_t>(ifIndex), static_cast<uint64_t>(maxBytes)); in setTetherOffloadInterfaceQuota() 1157 ALOGE("Fail to set quota %" PRId64 " for interface index %d: %s", maxBytes, ifIndex, in setTetherOffloadInterfaceQuota()
|