Searched refs:block (Results 1 - 25 of 48) sorted by last modified time

12

/system/update_engine/common/
H A Dterminator.h36 // Set to true if the terminator should block termination requests in an
37 // attempt to block exiting.
38 static void set_exit_blocked(bool block) { exit_blocked_ = block ? 1 : 0; } argument
/system/update_engine/payload_generator/
H A Dblock_mapping.cc63 for (size_t block = 0; block < num_blocks; block++) {
64 (*block_ids)[block] = AddDiskBlock(
65 fd, initial_byte_offset + block * block_size_);
66 ret = ret && (*block_ids)[block] != -1;
97 // No existing block was found at this point, so we create and fill in a new
128 // We increase the number of times we had to read this block from disk and
129 // we cache this block based on that. This caching method is optimized for
131 // but have few repeated blocks inside each partition, such as the block
[all...]
H A Dblock_mapping_unittest.cc66 // The BlockMapping just assigns the block ids in order, so it doesn't matter
67 // what are the contents of the first block.
81 // Check that the block_data is not stored on memory if we just used the block
89 brillo::Blob block(block_size_, 'a');
91 // Re-add the same block 5 times.
92 EXPECT_EQ(0, bm_.AddBlock(block));
98 // The block was loaded from disk only 4 times, and after that the counter
112 // A string including the block with all zeros and overlapping some of the
H A Ddelta_diff_utils.cc103 // Remove identical corresponding block ranges in |src_extents| and
107 // case the last block is only partly occupied with data. Returns the total
148 // If we removed the last block and this block is only partly used by file
305 for (uint64_t block = 0; block < num_blocks; block++) {
306 if (old_block_ids[block] == new_block_ids[block] &&
307 !old_visited_blocks->ContainsBlock(block)
[all...]
H A Dext2_filesystem.cc65 // If |blockcnt| is non-negative, |blocknr| points to the physical block
69 // |blocknr| points to a block in the first three cases. The last case is
130 0, // superblock block number
280 for (uint64_t block : inode_blocks) {
281 AppendBlockToExtents(&inode_file.extents, block);
294 for (blk64_t block = blk_start; block < blk_end; block++) {
295 if (!ext2fs_test_block_bitmap2(filsys_->block_map, block))
296 AppendBlockToExtents(&free_space.extents, block);
[all...]
H A Dextent_ranges.cc57 void ExtentRanges::AddBlock(uint64_t block) { argument
58 AddExtent(ExtentForRange(block, 1));
61 void ExtentRanges::SubtractBlock(uint64_t block) { argument
62 SubtractExtent(ExtentForRange(block, 1));
195 bool ExtentRanges::ContainsBlock(uint64_t block) const {
196 auto lower = extent_set_.lower_bound(ExtentForRange(block, 1));
197 // The block could be on the extent before the one in |lower|.
200 // Any extent starting at block+1 or later is not interesting, so this is the
202 auto upper = extent_set_.lower_bound(ExtentForRange(block + 1, 0));
204 if (iter->start_block() <= block
[all...]
H A Dextent_ranges.h50 void AddBlock(uint64_t block);
51 void SubtractBlock(uint64_t block);
63 // Returns whether the block |block| is in this ExtentRange.
64 bool ContainsBlock(uint64_t block) const;
H A Dextent_utils.cc38 void AppendBlockToExtents(vector<Extent>* extents, uint64_t block) { argument
44 if (next_block == block) {
49 // If unable to extend the last extent, append a new single-block extent.
51 new_extent.set_start_block(block);
H A Dextent_utils.h30 // |block| must either be the next block in the last extent or a block
31 // in the next extent. This function will not handle inserting block
33 void AppendBlockToExtents(std::vector<Extent>* extents, uint64_t block);
63 for (uint64_t block = extent.start_block();
64 block < (extent.start_block() + extent.num_blocks()); block++) {
65 ret.push_back(block);
90 // to be sorted by start block
[all...]
H A Dgraph_utils.cc52 uint64_t block) {
61 AppendBlockToExtents(&edge_it->second.extents, block);
67 // TODO(adlr): Be more efficient than adding each block individually.
71 for (uint64_t block = extent.start_block(),
73 block != block_end; ++block) {
74 AddReadBeforeDep(src, dst, block);
50 AddReadBeforeDep(Vertex* src, Vertex::Index dst, uint64_t block) argument
H A Dgraph_utils.h37 // already exists, the block/s is/are added to the existing edge.
40 uint64_t block);
H A Dinplace_generator.cc76 for (uint64_t block : blocks) {
77 AppendBlockToExtents(&new_extents, block);
82 // Helper class to compare two operations by start block of the first Extent in
204 // Creates all the edges for the graph. Writers of a block point to
205 // readers of the same block. This is because for an edge A->B, B
307 LOG(ERROR) << "temp block!";
384 // Each block that's supplying temp blocks and the corresponding blocks:
408 // Prevent using the block 0 as scratch space due to crbug.com/480751.
410 LOG(INFO) << "Removing block 0 from the selected scratch range in vertex "
691 for (uint64_t block
[all...]
H A Dinplace_generator_unittest.cc134 Block block; local
135 EXPECT_EQ(Vertex::kInvalidIndex, block.reader);
136 EXPECT_EQ(Vertex::kInvalidIndex, block.writer);
358 // Supplier of temp block:
585 // We can't produce MOVE operations with a source or destination in the block 0.
593 // Create a REPLACE_BZ for block 0, and a circular dependency among all other
595 // the only available block is 0.
597 aops.back().name = base::StringPrintf("<bz-block-0>");
619 // one extra block in the partition that can be used for the move operation.
/system/vold/
H A Dcryptfs.c548 SLOGE("Cannot open real block device %s\n", real_blkdev);
563 SLOGE("Cannot get size of block device %s\n", real_blkdev);
628 SLOGE("Cannot seek to real block device footer\n");
633 SLOGE("Cannot write real block device footer\n");
638 /* If the keys are kept on a raw block device, do not try to truncate it. */
781 SLOGE("Cannot seek to real block device footer\n");
786 SLOGE("Cannot read real block device footer\n");
791 SLOGE("Bad magic for real block device %s\n", fname);
796 SLOGE("Cannot understand major version %d real block device footer; expected %d\n",
1188 snprintf(crypto_blk_name, MAXPATHLEN, "/dev/block/d
2372 unsigned int block; local
2547 log_progress_f2fs(u64 block, bool completed) argument
2855 char block[CRYPT_INPLACE_BUFSIZE]; local
[all...]
/system/sepolicy/
H A Dfile_contexts57 /dev/block(/.*)? u:object_r:block_device:s0
58 /dev/block/dm-[0-9]+ u:object_r:dm_device:s0
59 /dev/block/loop[0-9]* u:object_r:loop_device:s0
60 /dev/block/vold/.+ u:object_r:vold_device:s0
61 /dev/block/ram[0-9]* u:object_r:ram_device:s0
62 /dev/block/zram[0-9]* u:object_r:ram_device:s0
372 /sys/devices/virtual/block/zram\d+(/.*)? u:object_r:sysfs_zram:s0
373 /sys/devices/virtual/block/zram\d+/uevent u:object_r:sysfs_zram_uevent:s0
/system/tools/aidl/
H A Dast_cpp_unittest.cpp177 StatementBlock block; local
178 block.AddStatement(unique_ptr<AstNode>(new Statement("foo")));
179 block.AddStatement(unique_ptr<AstNode>(new Statement("bar")));
180 CompareGeneratedCode(block, "{\nfoo;\nbar;\n}\n");
/system/keymaster/
H A Diso18033kdf.cpp48 for (size_t block = 0; block < num_blocks; block++) {
63 !Uint32ToBigEndianByteArray(block + start_counter_, counter.get()) ||
78 size_t block_start = digest_size_ * block;
H A Docb.c150 typedef __m128i block; typedef
159 static inline block swap_if_le(block b) {
160 block a = _mm_shuffle_epi32(b, _MM_SHUFFLE(0, 1, 2, 3));
166 static inline block gen_offset(uint64_t KtopStr[3], unsigned bot) {
167 block hi = _mm_load_si128((__m128i*)(KtopStr + 0)); /* hi = B A */
168 block lo = _mm_loadu_si128((__m128i*)(KtopStr + 1)); /* lo = C B */
178 static inline block double_block(block bl) {
188 typedef vector unsigned block; typedef
242 typedef int8x16_t block; /* Yay! Endian-neutral reads! */ typedef
275 typedef struct { uint64_t l, r; } block; typedef in typeref:struct:__anon1782
[all...]
/system/extras/tests/ext4/
H A Dandroid_emmc_perf_tests.sh32 CACHE="/dev/block/platform/omap/omap_hsmmc.0/by-name/cache"
38 CACHE="/dev/block/platform/sdhci-tegra.3/by-name/cache"
53 CACHE="/dev/block/platform/s3c-sdhci.0/by-name/userdata"
59 CACHE="/dev/block/platform/sdhci-tegra.3/by-name/CAC"
65 CACHE="/dev/block/platform/dw_mmc.0/by-name/cache"
71 CACHE="dev/block/platform/msm_sdcc.1/by-name/cache"
242 ORIG_READAHEAD=`adb shell cat /sys/block/$MMCDEV/queue/read_ahead_kb | tr -d "\r"`
243 adb shell "echo 4 > /sys/block/$MMCDEV/queue/read_ahead_kb"
248 adb shell "$PERF_LOC"/"$PERF" -r 6000 "/dev/block/$MMCDEV"
252 adb shell "echo $ORIG_READAHEAD > /sys/block/
[all...]
/system/extras/verity/
H A Dbuild_verity_metadata.py25 block = struct.pack("II256sI", MAGIC_NUMBER, VERSION, signature, table_len)
26 block += verity_table
27 block = block.ljust(METADATA_SIZE, '\x00')
28 return block
58 # build the metadata block
H A Dbuild_verity_tree.cpp54 const unsigned char *block, size_t len,
66 ret &= EVP_DigestUpdate(mdctx, block, len);
53 hash_block(const EVP_MD *md, const unsigned char *block, size_t len, const unsigned char *salt, size_t salt_len, unsigned char *out, size_t *out_size) argument
/system/extras/ext4_utils/
H A Dallocate.c119 reg->block, reg->block + reg->len - 1, reg->len)
139 fprintf(f, "%d", reg->block);
141 fprintf(f, "%d-%d", reg->block, reg->block + reg->len - 1);
149 u32 block, u32 len, int bg_num)
153 reg->block = block;
166 u32 block = bg->first_block + 2;
169 block
148 append_region(struct block_allocation *alloc, u32 block, u32 len, int bg_num) argument
203 u32 block = start; local
230 free_blocks(struct block_group_info *bg, u32 block, u32 num_blocks) argument
284 u32 block = bg->first_block; local
342 u32 block; local
489 get_block(struct block_allocation *alloc, u32 block) argument
502 get_oob_block(struct block_allocation *alloc, u32 block) argument
517 get_region(struct block_allocation *alloc, u32 *block, u32 *len) argument
675 struct ext4_xattr_header *block = xattr_list_find(inode); local
[all...]
H A Dallocate.h25 u32 block; member in struct:region
74 u32 get_block(struct block_allocation *alloc, u32 block);
75 u32 get_oob_block(struct block_allocation *alloc, u32 block);
77 void get_region(struct block_allocation *alloc, u32 *block, u32 *len);
93 u32 block, u32 len, int bg);
H A Dext2simg.c48 fprintf(stderr, "%s [ options ] <image or block device> <output image>\n", path);
50 fprintf(stderr, " -c include CRC block\n");
59 unsigned int block; local
66 critical_error("failed to allocate block bitmap");
79 critical_error_errno("failed to seek to block group bitmap %d", i);
83 critical_error_errno("failed to read block group bitmap %d", i);
85 critical_error("failed to read all of block group bitmap %d", i);
88 for (block = 0; block < last_block; block
[all...]
H A Dext4fixup.c39 /* The inode block count for a file/directory is in units of 512 byte blocks,
40 * _NOT_ the filesystem block size!
190 static int read_block(int fd, unsigned long long block_num, void *block) argument
198 critical_error_errno("failed to seek to block %lld\n", block_num);
201 len=read(fd, block, info.block_size);
203 critical_error_errno("failed to read block %lld\n", block_num);
209 static int write_block(int fd, unsigned long long block_num, void *block) argument
221 critical_error_errno("failed to seek to block %lld\n", block_num);
224 len=write(fd, block, info.block_size);
226 critical_error_errno("failed to write block
235 unsigned char block[MAX_EXT4_BLOCK_SIZE]; local
444 unsigned char block[MAX_EXT4_BLOCK_SIZE]; local
[all...]

Completed in 460 milliseconds

12