Home
last modified time | relevance | path

Searched refs:kBufSize (Results 1 – 11 of 11) sorted by relevance

/system/core/libziparchive/
Dzip_archive_stream_entry.cc39 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()
Dzip_writer_test.cc257 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()
Dzip_archive.cc941 const size_t kBufSize = 32768; in Inflate() local
942 std::vector<uint8_t> read_buf(kBufSize); in Inflate()
943 std::vector<uint8_t> write_buf(kBufSize); in Inflate()
957 zstream.avail_out = kBufSize; in Inflate()
987 const uint32_t read_size = (remaining_bytes > kBufSize) ? kBufSize : remaining_bytes; in Inflate()
1010 if (zstream.avail_out == 0 || (zerr == Z_STREAM_END && zstream.avail_out != kBufSize)) { in Inflate()
1015 DCHECK_LE(write_size, kBufSize); in Inflate()
1020 zstream.avail_out = kBufSize; in Inflate()
1056 static const uint32_t kBufSize = 32768; in CopyEntryToWriter() local
1057 std::vector<uint8_t> buf(kBufSize); in CopyEntryToWriter()
[all …]
Dzip_writer.cc48 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/
Dapex_shim.cpp47 static constexpr const int kBufSize = 1024; variable
67 char buf[kBufSize]; in CalculateSha512()
69 apex.read(buf, kBufSize); in CalculateSha512()
Dapexservice_test.cpp535 static constexpr size_t kBufSize = 1024 * kBlockSize; in ReadDevice() local
536 std::vector<uint8_t> buffer(kBufSize); in ReadDevice()
544 int n = read(fd.get(), buffer.data(), kBufSize); in ReadDevice()
1337 static constexpr size_t kBufSize = 4096; in TEST_F() local
1338 std::vector<uint8_t> buffer(kBufSize); in TEST_F()
1345 if (!ReadFully(fd.get(), buffer.data(), kBufSize)) { in TEST_F()
Dapexd.cpp328 static constexpr size_t kBufSize = 1024 * kBlockSize; in readVerityDevice() local
329 std::vector<uint8_t> buffer(kBufSize); in readVerityDevice()
338 size_t to_read = std::min(bytes_left, kBufSize); in readVerityDevice()
/system/keymaster/tests/
Dkey_blob_test.cpp298 const int kBufSize = 10000; in TEST_F() local
299 UniquePtr<uint8_t[]> buf(new uint8_t[kBufSize]); in TEST_F()
300 for (size_t i = 0; i < kBufSize; ++i) in TEST_F()
305 for (size_t i = 0; i < kBufSize; ++i) { in TEST_F()
306 keymaster_key_blob_t blob = {buf.get() + i, kBufSize - i}; in TEST_F()
Dandroid_keymaster_messages_test.cpp677 const int kBufSize = 10000; in parse_garbage() local
678 UniquePtr<uint8_t[]> buf(new uint8_t[kBufSize]); in parse_garbage()
679 for (size_t i = 0; i < kBufSize; ++i) in parse_garbage()
684 const uint8_t* end = buf.get() + kBufSize; in parse_garbage()
685 for (size_t i = 0; i < kBufSize; ++i) { in parse_garbage()
/system/bt/gd/hal/
Dhci_hal_host_rootcanal.cc46 constexpr int kBufSize = 1024 + 4 + 1; // DeviceProperties::acl_data_packet_size_ + ACL header + H… variable
227 uint8_t buf[kBufSize] = {}; in incoming_packet_received()
276 …ASSERT_LOG(hci_acl_data_total_length <= kBufSize - kH4HeaderSize - kHciAclHeaderSize, "packet too … in incoming_packet_received()
314 memset(buf, 0, kBufSize); in incoming_packet_received()
/system/incremental_delivery/incfs/
DMountRegistry.cpp278 static constexpr auto kBufSize = 128 * 1024; in forEachLine() local
279 char buffer[kBufSize]; in forEachLine()