Home
last modified time | relevance | path

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

/frameworks/libs/binary_translation/tests/ndk_program_tests/
Dfile_test.cc713 const size_t kBufSize = 4; in TEST() local
714 char buf[kBufSize]; in TEST()
716 ASSERT_EQ(fread(buf, 1, kBufSize, f), kBufSize); in TEST()
717 for (size_t i = 0; i < kBufSize; i++) { in TEST()
720 memset(buf, 'b', kBufSize); in TEST()
721 ASSERT_EQ(fwrite(buf, 1, kBufSize, f), 0U); in TEST()
723 memset(buf, 'a', kBufSize); in TEST()
724 ASSERT_EQ(fwrite(buf, 1, kBufSize, f), kBufSize); in TEST()
726 ASSERT_EQ(ftell(f), static_cast<int>(2 * kBufSize)); in TEST()
727 ASSERT_EQ(fseek(f, kBufSize, SEEK_SET), 0); in TEST()
[all …]
/frameworks/base/tools/aapt/
DZipFile.cpp744 const size_t kBufSize = 32768; in compressFpToFp() local
755 inBuf = new unsigned char[kBufSize]; in compressFpToFp()
756 outBuf = new unsigned char[kBufSize]; in compressFpToFp()
772 zstream.avail_out = kBufSize; in compressFpToFp()
799 ALOGV("+++ reading %d bytes\n", (int)kBufSize); in compressFpToFp()
801 getSize = size > kBufSize ? kBufSize : size; in compressFpToFp()
806 getSize = fread(inBuf, 1, kBufSize, srcFp); in compressFpToFp()
812 if (getSize < kBufSize) { in compressFpToFp()
838 (zerr == Z_STREAM_END && zstream.avail_out != (uInt) kBufSize)) in compressFpToFp()
850 zstream.avail_out = kBufSize; in compressFpToFp()