Searched refs:kBufSize (Results 1 – 11 of 11) sorted by relevance
/system/libziparchive/ |
D | zip_archive_stream_entry.cc | 39 static constexpr size_t kBufSize = 65535; variable 74 data_.resize(kBufSize); in Init() 85 CHECK_EQ(data_.capacity(), kBufSize); in Read() 182 out_.resize(kBufSize); in Init() 183 in_.resize(kBufSize); in Init() 207 CHECK_EQ(out_.capacity(), kBufSize); in Read()
|
D | zip_writer_test.cc | 257 constexpr size_t kBufSize = 10000000; in TEST_F() local 258 std::vector<uint8_t> buffer(kBufSize); in TEST_F() 260 for (size_t i = 0; i < kBufSize; i++) { in TEST_F() 279 EXPECT_EQ(kBufSize, data.uncompressed_length); in TEST_F() 281 std::vector<uint8_t> decompress(kBufSize); in TEST_F() 282 memset(decompress.data(), 0, kBufSize); in TEST_F() 285 EXPECT_EQ(0, memcmp(decompress.data(), buffer.data(), kBufSize)) in TEST_F()
|
D | zip_archive.cc | 1262 const size_t kBufSize = 32768; in inflateImpl() local 1263 std::vector<uint8_t> read_buf(kBufSize); in inflateImpl() 1264 std::vector<uint8_t> write_buf(kBufSize); in inflateImpl() 1278 zstream.avail_out = kBufSize; in inflateImpl() 1317 (remaining_bytes > kBufSize) ? kBufSize : static_cast<uint32_t>(remaining_bytes); in inflateImpl() 1340 if (zstream.avail_out == 0 || (zerr == Z_STREAM_END && zstream.avail_out != kBufSize)) { in inflateImpl() 1345 DCHECK_LE(write_size, kBufSize); in inflateImpl() 1349 total_output += kBufSize - zstream.avail_out; in inflateImpl() 1351 zstream.avail_out = kBufSize; in inflateImpl() 1385 static const uint32_t kBufSize = 32768; in CopyEntryToWriter() local [all …]
|
D | zip_writer.cc | 48 static const size_t kBufSize = 32768u; variable 93 buffer_(kBufSize) { in ZipWriter() 341 DCHECK_EQ(buffer_.size(), kBufSize); in PrepareDeflate() 413 DCHECK_EQ(buffer_.size(), kBufSize); in CompressBytes() 439 DCHECK_EQ(buffer_.size(), kBufSize); in FlushCompressedBytes()
|
/system/apex/apexd/ |
D | apex_shim.cpp | 48 static constexpr const int kBufSize = 1024; variable 68 char buf[kBufSize]; in CalculateSha512() 70 apex.read(buf, kBufSize); in CalculateSha512()
|
D | apexservice_test.cpp | 518 static constexpr size_t kBufSize = 1024 * kBlockSize; in ReadDevice() local 519 std::vector<uint8_t> buffer(kBufSize); in ReadDevice() 528 int n = read(fd.get(), buffer.data(), kBufSize); in ReadDevice() 1364 static constexpr size_t kBufSize = 4096; in TEST_F() local 1365 std::vector<uint8_t> buffer(kBufSize); in TEST_F() 1372 if (!ReadFully(fd.get(), buffer.data(), kBufSize)) { in TEST_F()
|
D | apexd.cpp | 383 static constexpr size_t kBufSize = 1024 * kBlockSize; in ReadVerityDevice() local 384 std::vector<uint8_t> buffer(kBufSize); in ReadVerityDevice() 394 size_t to_read = std::min(bytes_left, kBufSize); in ReadVerityDevice()
|
/system/keymaster/tests/ |
D | key_blob_test.cpp | 305 const int kBufSize = 10000; in TEST_F() local 306 UniquePtr<uint8_t[]> buf(new uint8_t[kBufSize]); in TEST_F() 307 for (size_t i = 0; i < kBufSize; ++i) in TEST_F() 312 for (size_t i = 0; i < kBufSize; ++i) { in TEST_F() 313 keymaster_key_blob_t blob = {buf.get() + i, kBufSize - i}; in TEST_F()
|
D | android_keymaster_messages_test.cpp | 912 const int kBufSize = 10000; in parse_garbage() local 913 UniquePtr<uint8_t[]> buf(new uint8_t[kBufSize]); in parse_garbage() 914 for (size_t i = 0; i < kBufSize; ++i) in parse_garbage() 919 const uint8_t* end = buf.get() + kBufSize; in parse_garbage() 920 for (size_t i = 0; i < kBufSize; ++i) { in parse_garbage()
|
/system/bt/gd/hal/ |
D | hci_hal_host.cc | 51 constexpr int kBufSize = 1024 + 4 + 1; // DeviceProperties::acl_data_packet_size_ + ACL header + H… variable 396 uint8_t buf[kBufSize] = {}; in incoming_packet_received() 450 …ASSERT_LOG(hci_acl_data_total_length <= kBufSize - kH4HeaderSize - kHciAclHeaderSize, "packet too … in incoming_packet_received() 512 memset(buf, 0, kBufSize); in incoming_packet_received()
|
/system/incremental_delivery/incfs/ |
D | MountRegistry.cpp | 263 static constexpr auto kBufSize = 128 * 1024; in forEachLine() local 264 char buffer[kBufSize]; in forEachLine()
|