Home
last modified time | relevance | path

Searched refs:blocks (Results 1 – 25 of 89) 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/update_engine/payload_generator/
Dinplace_generator.cc76 vector<Extent> CompressExtents(const vector<uint64_t>& blocks) { in CompressExtents() argument
78 for (uint64_t block : blocks) { in CompressExtents()
206 void InplaceGenerator::CreateEdges(Graph* graph, const vector<Block>& blocks) { in CreateEdges() argument
207 for (vector<Block>::size_type i = 0; i < blocks.size(); i++) { in CreateEdges()
209 if (blocks[i].reader == Vertex::kInvalidIndex || in CreateEdges()
210 blocks[i].writer == Vertex::kInvalidIndex) in CreateEdges()
213 if (blocks[i].reader == blocks[i].writer) in CreateEdges()
217 (*graph)[blocks[i].writer].out_edges.find(blocks[i].reader); in CreateEdges()
218 if (edge_it == (*graph)[blocks[i].writer].out_edges.end()) { in CreateEdges()
220 (*graph)[blocks[i].writer].out_edges.insert( in CreateEdges()
[all …]
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()
Dinplace_generator.h100 static void CreateEdges(Graph* graph, const std::vector<Block>& blocks);
184 std::vector<Block>* blocks);
193 std::vector<Block>* blocks,
Dinplace_generator_unittest.cc187 vector<Block> blocks(9); in TEST_F() local
199 blocks[3].reader = graph.size() - 1; in TEST_F()
200 blocks[5].reader = graph.size() - 1; in TEST_F()
201 blocks[7].reader = graph.size() - 1; in TEST_F()
209 blocks[1].writer = graph.size() - 1; in TEST_F()
210 blocks[2].writer = graph.size() - 1; in TEST_F()
211 blocks[4].writer = graph.size() - 1; in TEST_F()
222 blocks[1].reader = graph.size() - 1; in TEST_F()
223 blocks[2].reader = graph.size() - 1; in TEST_F()
224 blocks[4].reader = graph.size() - 1; in TEST_F()
[all …]
Dextent_ranges_unittest.cc38 uint64_t blocks = 0; in ExpectRangeEq() local
40 blocks += expected[i]; in ExpectRangeEq()
42 EXPECT_EQ(blocks, ranges.blocks()) << "line: " << line; in ExpectRangeEq()
233 EXPECT_EQ(40U, ranges.blocks()); in TEST()
/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.c389 uint8_t blocks; in OI_CODEC_SBC_FrameCount() local
405 subbands = mode = blocks = frameData[1]; in OI_CODEC_SBC_FrameCount()
408 blocks = block_values[(blocks & (BIT5 | BIT4)) >> 4]; in OI_CODEC_SBC_FrameCount()
412 frameLen = blocks * frameData[2]; in OI_CODEC_SBC_FrameCount()
/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.cpp130 static void appendBlocks(int32_t start, int count, std::vector<int32_t>* blocks) { in appendBlocks() argument
132 blocks->push_back(start); in appendBlocks()
134 auto oldSize = blocks->size(); in appendBlocks()
135 blocks->resize(oldSize + count); in appendBlocks()
136 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/extras/verity/fec/tests/
Dfec.py36 blocks = int(math.ceil(float(size) / blocksize))
37 rounds = int(math.ceil(float(blocks) / (255 - roots)))
/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/core/fs_mgr/libsnapshot/
Dpartition_cow_creator_test.cpp234 void BlocksToExtents(const std::vector<uint64_t>& blocks, in BlocksToExtents() argument
236 for (uint64_t block : blocks) { in BlocksToExtents()
243 std::vector<uint64_t> blocks; in ExtentsToBlocks() local
246 blocks.push_back(extent.start_block() + offset); in ExtentsToBlocks()
249 return blocks; in ExtentsToBlocks()
/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/sepolicy/prebuilts/api/27.0/public/
Dupdate_verifier.te12 # Read all blocks in dm wrapped system partition.
/system/sepolicy/prebuilts/api/26.0/public/
Dupdate_verifier.te12 # Read all blocks in dm wrapped system partition.
/system/incremental_delivery/incfs/
Dincfs.cpp1079 static int writeBlocks(int fd, const incfs_fill_block blocks[], int blocksCount) { in writeBlocks() argument
1087 auto ptr = blocks; in writeBlocks()
1088 const auto end = blocks + blocksCount; in writeBlocks()
1099 if (ptr == blocks) { in writeBlocks()
1108 return ptr - blocks; in writeBlocks()
1111 IncFsErrorCode IncFs_WriteBlocks(const IncFsDataBlock blocks[], size_t blocksCount) { in IncFs_WriteBlocks() argument
1117 if (lastBlockFd != blocks[i].fileFd || incfsBlocksUsed == std::size(incfsBlocks)) { in IncFs_WriteBlocks()
1125 lastBlockFd = blocks[i].fileFd; in IncFs_WriteBlocks()
1129 .block_index = (uint32_t)blocks[i].pageIndex, in IncFs_WriteBlocks()
1130 .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