Home
last modified time | relevance | path

Searched refs:blocks (Results 1 – 25 of 88) sorted by relevance

1234

/system/chre/util/include/chre/util/
Dmemory_pool_impl.h33 blocks()[i].mNextFreeBlockIndex = i + 1; in MemoryPool()
45 mNextFreeBlockIndex = blocks()[blockIndex].mNextFreeBlockIndex; in allocate()
48 return new (&blocks()[blockIndex].mElement) in allocate()
55 uintptr_t baseAddress = reinterpret_cast<uintptr_t>(&blocks()[0].mElement); in deallocate()
58 blocks()[blockIndex].mElement.~ElementType(); in deallocate()
59 blocks()[blockIndex].mNextFreeBlockIndex = mNextFreeBlockIndex; in deallocate()
71 *MemoryPool<ElementType, kSize>::blocks() { in blocks() function
Dmemory_pool.h106 MemoryPoolBlock *blocks();
/system/tools/hidl/host_utils/
DFormatter.cpp200 for (const WrappedOutput::Block& subBlock : block.blocks) { in printBlock()
261 CHECK(content.empty() || blocks.empty()); in computeSize()
267 for (auto block = blocks.begin(); block != blocks.end(); ++block) { in computeSize()
268 if (block == blocks.begin()) { in computeSize()
280 CHECK(content.empty() || blocks.empty()); in print()
286 for (auto block = blocks.begin(); block != blocks.end(); ++block) { in print()
287 if (block == blocks.begin()) { in print()
302 std::vector<Block>& blockVec = mCurrentBlock->blocks; in operator <<()
305 if (!last.populated && last.blocks.empty()) { in operator <<()
317 std::vector<Block>& blockVec = mCurrentBlock->blocks; in printUnlessWrapped()
[all …]
/system/bt/embdrv/sbc/decoder/srce/
Ddecoder-oina.c40 uint8_t mode, uint8_t subbands, uint8_t blocks, uint8_t alloc, in OI_CODEC_SBC_DecoderConfigureRaw() argument
64 if (blocks > SBC_BLOCKS_16) { in OI_CODEC_SBC_DecoderConfigureRaw()
80 context->common.frameInfo.blocks = blocks; in OI_CODEC_SBC_DecoderConfigureRaw()
Ddecoder-sbc.c391 uint8_t blocks; in OI_CODEC_SBC_FrameCount() local
407 subbands = mode = blocks = frameData[1]; in OI_CODEC_SBC_FrameCount()
410 blocks = block_values[(blocks & (BIT5 | BIT4)) >> 4]; in OI_CODEC_SBC_FrameCount()
414 frameLen = blocks * frameData[2]; in OI_CODEC_SBC_FrameCount()
Ddecoder-private.c105 frame->blocks = (d1 & (BIT5 | BIT4)) >> 4; in OI_SBC_ReadHeader()
106 frame->nrof_blocks = block_values[frame->blocks]; in OI_SBC_ReadHeader()
/system/update_engine/payload_generator/
Dmapfile_filesystem.cc98 string blocks = in GetFiles() local
100 size_t dash = blocks.find('-', 0); in GetFiles()
102 if (dash == string::npos && base::StringToUint64(blocks, &block_start)) { in GetFiles()
105 base::StringToUint64(blocks.substr(0, dash), &block_start) && in GetFiles()
106 base::StringToUint64(blocks.substr(dash + 1), &block_end)) { in GetFiles()
Dextent_ranges_unittest.cc39 uint64_t blocks = 0; in ExpectRangeEq() local
41 blocks += expected[i]; in ExpectRangeEq()
43 EXPECT_EQ(blocks, ranges.blocks()) << "line: " << line; in ExpectRangeEq()
234 EXPECT_EQ(40U, ranges.blocks()); in TEST()
Ddelta_diff_utils_unittest.cc353 EXPECT_EQ(0U, old_visited_blocks_.blocks()); in TEST_F()
354 EXPECT_EQ(0U, new_visited_blocks_.blocks()); in TEST_F()
484 old_visited_blocks_.blocks())); in TEST_F()
489 new_visited_blocks_.blocks())); in TEST_F()
535 EXPECT_EQ(permutation.size(), old_visited_blocks_.blocks()); in TEST_F()
536 EXPECT_EQ(permutation.size(), new_visited_blocks_.blocks()); in TEST_F()
Dext2_filesystem.cc72 set<uint64_t>* blocks = static_cast<set<uint64_t>*>(priv); in AddMetadataBlocks() local
81 blocks->insert(*blocknr); in AddMetadataBlocks()
324 file.extents = ranges.GetExtentsForBlockCount(ranges.blocks()); in GetFiles()
/system/extras/boottime_tools/io_analysis/
Dcheck_verity.py109 io, verity, total, blocks = get_average_and_std_dev(l)
112 return io, verity, total, blocks
116 io, verity, total, blocks = self.dump_list ("total,", self.reads)
117 io_latency_per_1024KB = io[2] / blocks * (1024 / 4)
118 verity_latency_per_1024KB = verity[2] / blocks * (1024 / 4)
/system/core/init/
Dcompare-bootcharts.py86 blocks = f.read().split('\n\n')
87 for b in blocks:
/system/core/adb/client/
Dincremental_utils.cpp133 static void appendBlocks(int32_t start, int count, std::vector<int32_t>* blocks) { in appendBlocks() argument
135 blocks->push_back(start); in appendBlocks()
137 auto oldSize = blocks->size(); in appendBlocks()
138 blocks->resize(oldSize + count); in appendBlocks()
139 std::iota(blocks->begin() + oldSize, blocks->end(), start); in appendBlocks()
/system/extras/libfec/
Dfec_verity.cpp250 uint32_t blocks = hashes[levels - i]; in verify_tree() local
251 debug("%u hash blocks on level %u", blocks, levels - i); in verify_tree()
254 hash_data_blocks = blocks; in verify_tree()
256 data_offset += blocks * FEC_BLOCKSIZE; in verify_tree()
276 uint32_t blocks = hashes[levels - i]; in verify_tree() local
278 for (uint32_t j = 0; j < blocks; ++j) { in verify_tree()
316 if (blocks == hash_data_blocks) { in verify_tree()
323 data_offset += blocks * FEC_BLOCKSIZE; in verify_tree()
Dfec_process.cpp63 size_t blocks = fec_div_round_up(count, FEC_BLOCKSIZE); in process() local
65 size_t count_per_thread = fec_div_round_up(blocks, threads) * FEC_BLOCKSIZE; in process()
Davb_utils.cpp128 f->ecc.blocks = fec_div_round_up(f->data_size, FEC_BLOCKSIZE); in parse_avb_image()
129 f->ecc.rounds = fec_div_round_up(f->ecc.blocks, f->ecc.rsn); in parse_avb_image()
/system/core/libsparse/
Dsparse_read.cpp175 SparseFileSource* source, unsigned int blocks, unsigned int block, in process_raw_chunk() argument
178 int64_t len = blocks * s->block_size; in process_raw_chunk()
184 if (chunk_size / s->block_size != blocks) { in process_raw_chunk()
206 SparseFileSource* source, unsigned int blocks, unsigned int block, in process_fill_chunk() argument
210 int64_t len = (int64_t)blocks * s->block_size; in process_fill_chunk()
247 SparseFileSource* source __unused, unsigned int blocks, in process_skip_chunk() argument
254 int64_t len = (int64_t)blocks * s->block_size; in process_skip_chunk()
/system/keymaster/km_openssl/
Dckdf.cpp46 const uint32_t blocks = div_round_up(output->key_material_size, AES_BLOCK_SIZE); in DEFINE_OPENSSL_OBJECT_POINTER() local
72 for (uint32_t i = 1; i <= blocks; ++i) { in DEFINE_OPENSSL_OBJECT_POINTER()
/system/extras/verity/fec/tests/
Dfec.py36 blocks = int(math.ceil(float(size) / blocksize))
37 rounds = int(math.ceil(float(blocks) / (255 - roots)))
/system/incremental_delivery/libdataloader/include/
Ddataloader_inline.h121 inline int FilesystemConnector::writeBlocks(DataBlocks blocks) { in writeBlocks() argument
122 return DataLoader_FilesystemConnector_writeBlocks(this, blocks.data(), blocks.size()); in writeBlocks()
/system/core/fs_mgr/libsnapshot/
Dpartition_cow_creator_test.cpp251 void BlocksToExtents(const std::vector<uint64_t>& blocks, in BlocksToExtents() argument
253 for (uint64_t block : blocks) { in BlocksToExtents()
260 std::vector<uint64_t> blocks; in ExtentsToBlocks() local
263 blocks.push_back(extent.start_block() + offset); in ExtentsToBlocks()
266 return blocks; in ExtentsToBlocks()
/system/sepolicy/prebuilts/api/26.0/public/
Dupdate_verifier.te12 # Read all blocks in dm wrapped system partition.
/system/sepolicy/prebuilts/api/27.0/public/
Dupdate_verifier.te12 # Read all blocks in dm wrapped system partition.
/system/incremental_delivery/incfs/
Dincfs.cpp1082 static int writeBlocks(int fd, const incfs_fill_block blocks[], int blocksCount) { in writeBlocks() argument
1090 auto ptr = blocks; in writeBlocks()
1091 const auto end = blocks + blocksCount; in writeBlocks()
1102 if (ptr == blocks) { in writeBlocks()
1111 return ptr - blocks; in writeBlocks()
1114 IncFsErrorCode IncFs_WriteBlocks(const IncFsDataBlock blocks[], size_t blocksCount) { in IncFs_WriteBlocks() argument
1120 if (lastBlockFd != blocks[i].fileFd || incfsBlocksUsed == std::size(incfsBlocks)) { in IncFs_WriteBlocks()
1128 lastBlockFd = blocks[i].fileFd; in IncFs_WriteBlocks()
1132 .block_index = (uint32_t)blocks[i].pageIndex, in IncFs_WriteBlocks()
1133 .data_len = blocks[i].dataSize, in IncFs_WriteBlocks()
[all …]
/system/bt/embdrv/sbc/decoder/include/
Doi_codec_sbc.h167 uint8_t blocks; member
328 uint8_t mode, uint8_t subbands, uint8_t blocks, uint8_t alloc,

1234