Home
last modified time | relevance | path

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

/system/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.cc1199 const size_t kBufSize = 32768; in Inflate() local
1200 std::vector<uint8_t> read_buf(kBufSize); in Inflate()
1201 std::vector<uint8_t> write_buf(kBufSize); in Inflate()
1215 zstream.avail_out = kBufSize; in Inflate()
1247 (remaining_bytes > kBufSize) ? kBufSize : static_cast<uint32_t>(remaining_bytes); in Inflate()
1270 if (zstream.avail_out == 0 || (zerr == Z_STREAM_END && zstream.avail_out != kBufSize)) { in Inflate()
1275 DCHECK_LE(write_size, kBufSize); in Inflate()
1279 total_output += kBufSize - zstream.avail_out; in Inflate()
1281 zstream.avail_out = kBufSize; in Inflate()
1316 static const uint32_t kBufSize = 32768; in CopyEntryToWriter() local
[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
66 char buf[kBufSize]; in CalculateSha512()
68 apex.read(buf, kBufSize); in CalculateSha512()
Dapexservice_test.cpp526 static constexpr size_t kBufSize = 1024 * kBlockSize; in ReadDevice() local
527 std::vector<uint8_t> buffer(kBufSize); in ReadDevice()
536 int n = read(fd.get(), buffer.data(), kBufSize); in ReadDevice()
1328 static constexpr size_t kBufSize = 4096; in TEST_F() local
1329 std::vector<uint8_t> buffer(kBufSize); in TEST_F()
1336 if (!ReadFully(fd.get(), buffer.data(), kBufSize)) { in TEST_F()
Dapexd.cpp327 static constexpr size_t kBufSize = 1024 * kBlockSize; in readVerityDevice() local
328 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.cc47 constexpr int kBufSize = 1024 + 4 + 1; // DeviceProperties::acl_data_packet_size_ + ACL header + H… variable
231 uint8_t buf[kBufSize] = {}; in incoming_packet_received()
285 …ASSERT_LOG(hci_acl_data_total_length <= kBufSize - kH4HeaderSize - kHciAclHeaderSize, "packet too … in incoming_packet_received()
323 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()