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.cc1262 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 …]
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.cpp48 static constexpr const int kBufSize = 1024; variable
68 char buf[kBufSize]; in CalculateSha512()
70 apex.read(buf, kBufSize); in CalculateSha512()
Dapexservice_test.cpp518 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()
Dapexd.cpp383 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/
Dkey_blob_test.cpp305 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()
Dandroid_keymaster_messages_test.cpp912 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/
Dhci_hal_host.cc51 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/
DMountRegistry.cpp263 static constexpr auto kBufSize = 128 * 1024; in forEachLine() local
264 char buffer[kBufSize]; in forEachLine()