Home
last modified time | relevance | path

Searched refs:BLOCK_SIZE (Results 1 – 9 of 9) sorted by relevance

/system/update_engine/payload_consumer/
Dcow_writer_file_descriptor_unittest.cc32 constexpr size_t BLOCK_SIZE = 4096; variable
33 constexpr size_t PARTITION_SIZE = BLOCK_SIZE * 10;
52 const CowOptions options{.block_size = BLOCK_SIZE, .compression = "gz"}; in GetCowWriter()
71 buffer.resize(BLOCK_SIZE); in TEST_F()
75 verity_data.resize(BLOCK_SIZE); in TEST_F()
97 ASSERT_EQ((ssize_t)BLOCK_SIZE * 4, cow_fd->Seek(BLOCK_SIZE * 4, SEEK_SET)); in TEST_F()
111 ASSERT_EQ((ssize_t)BLOCK_SIZE * 4, cow_fd->Seek(BLOCK_SIZE * 4, SEEK_SET)); in TEST_F()
Dfilesystem_verifier_action_unittest.cc57 static constexpr size_t BLOCK_SIZE = 4096; member in chromeos_update_engine::FilesystemVerifierActionTest
60 static constexpr size_t PARTITION_SIZE = BLOCK_SIZE * 1024;
61 static constexpr size_t HASH_TREE_START_OFFSET = 800 * BLOCK_SIZE;
72 HASH_TREE_START_OFFSET, BLOCK_SIZE, HASH_SIZE); in SetUp()
77 utils::DivRoundUp(fec_data_size / BLOCK_SIZE, FEC_RSM - FEC_ROOTS); in SetUp()
78 fec_size = fec_rounds * FEC_ROOTS * BLOCK_SIZE; in SetUp()
121 part.block_size = BLOCK_SIZE; in AddFakePartition()
133 std::vector<unsigned char> buffer(BLOCK_SIZE); in ZeroRange()
134 ASSERT_EQ((ssize_t)(start_block * BLOCK_SIZE), in ZeroRange()
135 fd->Seek(start_block * BLOCK_SIZE, SEEK_SET)); in ZeroRange()
[all …]
/system/core/fs_mgr/libsnapshot/
Dsnapshot_writer_test.cpp29 static constexpr size_t BLOCK_SIZE = 4096; member in android::snapshot::CompressedSnapshotWriterTest
34 android::snapshot::CowOptions options{.block_size = BLOCK_SIZE}; in TEST_F()
39 buffer.resize(BLOCK_SIZE); in TEST_F()
56 cow_reader->Seek(BLOCK_SIZE, SEEK_SET); in TEST_F()
58 ASSERT_EQ((size_t)(bytes_read), BLOCK_SIZE); in TEST_F()
/system/bt/btif/src/
Dbtif_debug_btsnoop.cc141 static constexpr size_t BLOCK_SIZE = 16384; variable
155 uint8_t block_src[BLOCK_SIZE]; in btsnoop_compress()
156 uint8_t block_dst[BLOCK_SIZE]; in btsnoop_compress()
159 (ringbuffer_size(rb_src) + BLOCK_SIZE - 1) / BLOCK_SIZE; in btsnoop_compress()
162 ringbuffer_peek(rb_src, i * BLOCK_SIZE, block_src, BLOCK_SIZE); in btsnoop_compress()
166 zs.avail_out = BLOCK_SIZE; in btsnoop_compress()
175 const size_t length = BLOCK_SIZE - zs.avail_out; in btsnoop_compress()
/system/extras/squashfs_utils/
Dmksquashfsimage.sh63 BLOCK_SIZE=131072
65 BLOCK_SIZE=$2
116 if [ -n "$BLOCK_SIZE" ]; then
117 OPT="$OPT -b $BLOCK_SIZE"
/system/nfc/src/adaptation/
Ddebug_nfcsnoop.cc48 static const size_t BLOCK_SIZE = 16384; variable
101 std::unique_ptr<uint8_t> block_src(new uint8_t[BLOCK_SIZE]); in nfcsnoop_compress()
102 std::unique_ptr<uint8_t> block_dst(new uint8_t[BLOCK_SIZE]); in nfcsnoop_compress()
105 (ringbuffer_size(rb_src) + BLOCK_SIZE - 1) / BLOCK_SIZE; in nfcsnoop_compress()
108 ringbuffer_peek(rb_src, i * BLOCK_SIZE, block_src.get(), BLOCK_SIZE); in nfcsnoop_compress()
112 zs.avail_out = BLOCK_SIZE; in nfcsnoop_compress()
120 const size_t length = BLOCK_SIZE - zs.avail_out; in nfcsnoop_compress()
/system/extras/verity/
Dbuild_verity_metadata.py28 BLOCK_SIZE = 4096 variable
29 METADATA_SIZE = BLOCK_SIZE * 8
67 BLOCK_SIZE,
68 BLOCK_SIZE,
/system/apex/apexer/
Dapexer.py46 BLOCK_SIZE = 4096 variable
216 size += RoundUp(os.path.getsize(dirpath), BLOCK_SIZE)
221 size += RoundUp(os.path.getsize(path), BLOCK_SIZE)
502 cmd.extend(['-b', str(BLOCK_SIZE)])
625 BLOCK_SIZE) + BLOCK_SIZE
730 cmd.append(str(BLOCK_SIZE))
/system/apex/tools/
Ddeapexer.py36 BLOCK_SIZE = 4096 variable
193 offset = int(tokens[7]) * BLOCK_SIZE
194 length = min(int(tokens[-1]) * BLOCK_SIZE, left_length)