Home
last modified time | relevance | path

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

/system/core/libziparchive/
Dzip_archive_stream_entry.cc38 static constexpr size_t kBufSize = 65535; variable
73 data_.resize(kBufSize); in Init()
174 out_.resize(kBufSize); in Init()
175 in_.resize(kBufSize); in Init()
Dzip_writer_test.cc256 constexpr size_t kBufSize = 10000000; in TEST_F() local
257 std::vector<uint8_t> buffer(kBufSize); in TEST_F()
259 for (size_t i = 0; i < kBufSize; i++) { in TEST_F()
278 EXPECT_EQ(kBufSize, data.uncompressed_length); in TEST_F()
280 std::vector<uint8_t> decompress(kBufSize); in TEST_F()
281 memset(decompress.data(), 0, kBufSize); in TEST_F()
283 EXPECT_EQ(0, memcmp(decompress.data(), buffer.data(), kBufSize)) in TEST_F()
Dzip_archive.cc960 const size_t kBufSize = 32768; in Inflate() local
961 std::vector<uint8_t> read_buf(kBufSize); in Inflate()
962 std::vector<uint8_t> write_buf(kBufSize); in Inflate()
976 zstream.avail_out = kBufSize; in Inflate()
1006 const size_t read_size = (remaining_bytes > kBufSize) ? kBufSize : remaining_bytes; in Inflate()
1029 if (zstream.avail_out == 0 || (zerr == Z_STREAM_END && zstream.avail_out != kBufSize)) { in Inflate()
1038 zstream.avail_out = kBufSize; in Inflate()
1074 static const uint32_t kBufSize = 32768; in CopyEntryToWriter() local
1075 std::vector<uint8_t> buf(kBufSize); in CopyEntryToWriter()
1085 const size_t block_size = (remaining > kBufSize) ? kBufSize : remaining; in CopyEntryToWriter()
Dzip_writer.cc48 static const size_t kBufSize = 32768u; variable
93 buffer_(kBufSize) { in ZipWriter()
/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/apex/apexd/
Dapex_shim.cpp44 static constexpr const int kBufSize = 1024; variable
60 char buf[kBufSize]; in CalculateSha512()
62 apex.read(buf, kBufSize); in CalculateSha512()
Dapexd.cpp363 static constexpr size_t kBufSize = 1024 * kBlockSize; in readVerityDevice() local
364 std::vector<uint8_t> buffer(kBufSize); in readVerityDevice()
373 size_t to_read = std::min(bytes_left, kBufSize); in readVerityDevice()