/system/update_engine/payload_generator/ |
D | inplace_generator.cc | 74 vector<Extent> CompressExtents(const vector<uint64_t>& blocks) { in CompressExtents() argument 76 for (uint64_t block : blocks) { in CompressExtents() 209 const vector<Block>& blocks) { in CreateEdges() argument 211 i < blocks.size(); i++) { in CreateEdges() 213 if (blocks[i].reader == Vertex::kInvalidIndex || in CreateEdges() 214 blocks[i].writer == Vertex::kInvalidIndex) in CreateEdges() 217 if (blocks[i].reader == blocks[i].writer) in CreateEdges() 221 (*graph)[blocks[i].writer].out_edges.find(blocks[i].reader); in CreateEdges() 222 if (edge_it == (*graph)[blocks[i].writer].out_edges.end()) { in CreateEdges() 224 (*graph)[blocks[i].writer].out_edges.insert( in CreateEdges() [all …]
|
D | inplace_generator_unittest.cc | 174 vector<Block> blocks(9); in TEST_F() local 186 blocks[3].reader = graph.size() - 1; in TEST_F() 187 blocks[5].reader = graph.size() - 1; in TEST_F() 188 blocks[7].reader = graph.size() - 1; in TEST_F() 196 blocks[1].writer = graph.size() - 1; in TEST_F() 197 blocks[2].writer = graph.size() - 1; in TEST_F() 198 blocks[4].writer = graph.size() - 1; in TEST_F() 209 blocks[1].reader = graph.size() - 1; in TEST_F() 210 blocks[2].reader = graph.size() - 1; in TEST_F() 211 blocks[4].reader = graph.size() - 1; in TEST_F() [all …]
|
D | inplace_generator.h | 101 const std::vector<Block>& blocks); 186 std::vector<Block>* blocks); 195 std::vector<Block>* blocks,
|
D | extent_ranges_unittest.cc | 38 uint64_t blocks = 0; in ExpectRangeEq() local 40 blocks += expected[i]; in ExpectRangeEq() 42 EXPECT_EQ(blocks, ranges.blocks()) << "line: " << line; in ExpectRangeEq() 253 EXPECT_EQ(40U, ranges.blocks()); in TEST()
|
D | delta_diff_utils_unittest.cc | 486 EXPECT_EQ(0U, old_visited_blocks_.blocks()); in TEST_F() 487 EXPECT_EQ(0U, new_visited_blocks_.blocks()); in TEST_F() 509 EXPECT_EQ(kDefaultBlockCount, old_visited_blocks_.blocks()); in TEST_F() 510 EXPECT_EQ(kDefaultBlockCount, new_visited_blocks_.blocks()); in TEST_F() 638 old_visited_blocks_.blocks())); in TEST_F() 644 new_visited_blocks_.blocks())); in TEST_F() 689 EXPECT_EQ(permutation.size(), old_visited_blocks_.blocks()); in TEST_F() 690 EXPECT_EQ(permutation.size(), new_visited_blocks_.blocks()); in TEST_F()
|
D | ext2_filesystem.cc | 64 set<uint64_t>* blocks = static_cast<set<uint64_t>*>(priv); in AddMetadataBlocks() local 73 blocks->insert(*blocknr); in AddMetadataBlocks() 312 file.extents = ranges.GetExtentsForBlockCount(ranges.blocks()); in GetFiles()
|
D | extent_ranges.h | 72 uint64_t blocks() const { return blocks_; } in blocks() function
|
/system/bt/embdrv/sbc/decoder/srce/ |
D | decoder-oina.c | 44 OI_UINT8 blocks, in OI_CODEC_SBC_DecoderConfigureRaw() argument 70 if (blocks > SBC_BLOCKS_16) { in OI_CODEC_SBC_DecoderConfigureRaw() 86 context->common.frameInfo.blocks = blocks; in OI_CODEC_SBC_DecoderConfigureRaw()
|
D | decoder-sbc.c | 369 OI_UINT8 blocks; in OI_CODEC_SBC_FrameCount() local 385 subbands = mode = blocks = frameData[1];; in OI_CODEC_SBC_FrameCount() 387 blocks = block_values[(blocks & (BIT5 | BIT4)) >> 4]; in OI_CODEC_SBC_FrameCount() 391 frameLen = blocks * frameData[2]; in OI_CODEC_SBC_FrameCount()
|
D | decoder-private.c | 107 frame->blocks = (d1 & (BIT5 | BIT4)) >> 4; in OI_SBC_ReadHeader() 108 frame->nrof_blocks = block_values[frame->blocks]; in OI_SBC_ReadHeader()
|
/system/extras/libfec/ |
D | fec_process.cpp | 63 size_t blocks = fec_div_round_up(count, FEC_BLOCKSIZE); in process() local 65 if ((size_t)threads > blocks) { in process() 66 threads = (int)blocks; in process() 69 size_t count_per_thread = fec_div_round_up(blocks, threads) * FEC_BLOCKSIZE; in process()
|
D | fec_verity.cpp | 232 uint32_t blocks = hashes[levels - i]; in verify_tree() local 233 debug("%u hash blocks on level %u", blocks, levels - i); in verify_tree() 236 v->hash_data_blocks = blocks; in verify_tree() 238 data_offset += blocks * FEC_BLOCKSIZE; in verify_tree() 265 uint32_t blocks = hashes[levels - i]; in verify_tree() local 267 for (uint32_t j = 0; j < blocks; ++j) { in verify_tree() 303 if (blocks == v->hash_data_blocks) { in verify_tree() 310 data_offset += blocks * FEC_BLOCKSIZE; in verify_tree()
|
D | fec_open.cpp | 157 f->ecc.blocks = fec_div_round_up(f->data_size, FEC_BLOCKSIZE); in parse_ecc_header() 158 f->ecc.rounds = fec_div_round_up(f->ecc.blocks, f->ecc.rsn); in parse_ecc_header() 491 data->blocks = f->ecc.blocks; in fec_ecc_get_metadata()
|
/system/extras/ext4_utils/ |
D | allocate.h | 87 int reserve_oob_blocks(struct block_allocation *alloc, int blocks); 88 int advance_blocks(struct block_allocation *alloc, int blocks); 89 int advance_oob_blocks(struct block_allocation *alloc, int blocks);
|
D | extent.c | 82 u64 blocks; in do_inode_allocate_extents() local 184 blocks = (u64)block_len * info.block_size / 512; in do_inode_allocate_extents() 189 inode->i_blocks_lo = blocks; in do_inode_allocate_extents() 190 inode->osd2.linux2.l_i_blocks_high = blocks >> 32; in do_inode_allocate_extents()
|
D | allocate.c | 596 int reserve_oob_blocks(struct block_allocation *alloc, int blocks) in reserve_oob_blocks() argument 598 struct region *oob = split_allocation(alloc, blocks); in reserve_oob_blocks() 614 static int advance_list_ptr(struct region_list *list, int blocks) in advance_list_ptr() argument 618 while (reg != NULL && blocks > 0) { in advance_list_ptr() 619 if (reg->len > list->partial_iter + blocks) { in advance_list_ptr() 620 list->partial_iter += blocks; in advance_list_ptr() 624 blocks -= (reg->len - list->partial_iter); in advance_list_ptr() 629 if (blocks > 0) in advance_list_ptr() 636 int advance_blocks(struct block_allocation *alloc, int blocks) in advance_blocks() argument 638 return advance_list_ptr(&alloc->list, blocks); in advance_blocks() [all …]
|
D | indirect.c | 434 u64 blocks; in inode_attach_resize() local 474 blocks = ((u64)block_len + 1) * info.block_size / 512; in inode_attach_resize() 479 inode->i_blocks_lo = blocks; in inode_attach_resize() 480 inode->osd2.linux2.l_i_blocks_high = blocks >> 32; in inode_attach_resize()
|
D | contents.c | 103 u32 blocks; in make_directory() local 111 blocks = DIV_ROUND_UP(dentry_size(entries, dentries), info.block_size); in make_directory() 112 len = blocks * info.block_size; in make_directory()
|
/system/core/libsparse/ |
D | sparse_read.c | 102 int fd, int64_t offset, unsigned int blocks, unsigned int block, in process_raw_chunk() argument 107 unsigned int len = blocks * s->block_size; in process_raw_chunk() 113 if (chunk_size / s->block_size != blocks) { in process_raw_chunk() 140 int fd, unsigned int blocks, unsigned int block, uint32_t *crc32) in process_fill_chunk() argument 144 int64_t len = (int64_t)blocks * s->block_size; in process_fill_chunk() 181 int fd __unused, unsigned int blocks, in process_skip_chunk() argument 189 int64_t len = (int64_t)blocks * s->block_size; in process_skip_chunk()
|
/system/core/init/ |
D | compare-bootcharts.py | 86 blocks = f.read().split('\n\n') 87 for b in blocks:
|
/system/extras/verity/ |
D | VerityVerifier.java | 242 int blocks = Integer.parseInt(fields[5]); in readHashTree() local 245 if (imageSize != (long) blocks * blockSize) { in readHashTree() 330 int blocks = hashBlocksLevel.get(level); in verifyHashTree() local 332 for (int i = 0; i < blocks; i++) { in verifyHashTree() 349 dataOffset += blocks * hashBlockSize; in verifyHashTree()
|
/system/extras/verity/fec/tests/ |
D | fec.py | 36 blocks = int(math.ceil(float(size) / blocksize)) 37 rounds = int(math.ceil(float(blocks) / (255 - roots)))
|
/system/bt/embdrv/sbc/decoder/include/ |
D | oi_codec_sbc.h | 132 OI_UINT8 blocks; member 294 OI_UINT8 blocks,
|
/system/update_engine/ |
D | update_metadata.proto | 75 // - DISCARD: Discard the destination dst_extents blocks on the physical medium. 87 // Data is packed into blocks on disk, always starting from the beginning 91 // representation of an ordered list of blocks. For example, a file stored 92 // in blocks 9, 10, 11, 2, 18, 12 (in that order) would be stored in 163 DISCARD = 7; // Discard the destination blocks, reading as undefined. 178 // Byte length of src, equal to the number of blocks in src_extents * 180 // external program the number of bytes to read from the blocks we pass it. 185 // Byte length of dst, equal to the number of blocks in dst_extents *
|
/system/update_engine/sample_images/ |
D | generate_images.sh | 58 sudo truncate --size=$(( block_size * 2 )) "${mntdir}"/sparse_empty-2blocks 69 sudo dd of="${mntdir}"/sparse-10000blocks bs=1 \
|