/bootable/recovery/updater/ |
D | commands.cpp | 98 size_t pos = 0; in ParseTargetInfoAndSourceInfo() local 99 RangeSet tgt_ranges = RangeSet::Parse(tokens[pos++]); in ParseTargetInfoAndSourceInfo() 107 const std::string& token = tokens[pos++]; in ParseTargetInfoAndSourceInfo() 117 if (tokens[pos] == "-") { in ParseTargetInfoAndSourceInfo() 119 pos++; in ParseTargetInfoAndSourceInfo() 121 src_ranges = RangeSet::Parse(tokens[pos++]); in ParseTargetInfoAndSourceInfo() 127 if (pos >= tokens.size()) { in ParseTargetInfoAndSourceInfo() 143 src_ranges_location = RangeSet::Parse(tokens[pos++]); in ParseTargetInfoAndSourceInfo() 152 while (pos < tokens.size()) { in ParseTargetInfoAndSourceInfo() 155 std::vector<std::string> pairs = android::base::Split(tokens[pos++], ":"); in ParseTargetInfoAndSourceInfo() [all …]
|
D | dynamic_partitions.cpp | 157 const std::string& arg(size_t pos) const { in arg() 158 CHECK_LE(pos + 1, tokens.size()); in arg() 159 return tokens[pos + 1]; in arg() 161 std::optional<uint64_t> uint_arg(size_t pos, const std::string& name) const { in uint_arg() 162 auto str = arg(pos); in uint_arg()
|
D | blockimg.cpp | 553 size_t pos = 0; in PrintHashForCorruptedSourceBlocks() local 564 pos = 4; in PrintHashForCorruptedSourceBlocks() 571 pos = 7; in PrintHashForCorruptedSourceBlocks() 575 if (params.tokens[pos] == "-") { in PrintHashForCorruptedSourceBlocks() 579 RangeSet src = RangeSet::Parse(params.tokens[pos++]); in PrintHashForCorruptedSourceBlocks() 588 if (pos == params.tokens.size()) { in PrintHashForCorruptedSourceBlocks() 595 locs = RangeSet::Parse(params.tokens[pos++]); in PrintHashForCorruptedSourceBlocks()
|
/bootable/recovery/applypatch/ |
D | imgpatch.cpp | 158 size_t pos = 12; in ApplyImagePatch() local 161 if (pos + 4 > patch.data.size()) { in ApplyImagePatch() 165 int type = Read4(patch_header + pos); in ApplyImagePatch() 166 pos += 4; in ApplyImagePatch() 169 const char* normal_header = patch_header + pos; in ApplyImagePatch() 170 pos += 24; in ApplyImagePatch() 171 if (pos > patch.data.size()) { in ApplyImagePatch() 191 const char* raw_header = patch_header + pos; in ApplyImagePatch() 192 pos += 4; in ApplyImagePatch() 193 if (pos > patch.data.size()) { in ApplyImagePatch() [all …]
|
D | imgdiff.cpp | 728 size_t pos = 0; in InitializeChunks() local 730 while (pos < file_content_.size()) { in InitializeChunks() 732 static_cast<off64_t>(pos) == temp_entries[nextentry].second.offset) { in InitializeChunks() 740 pos += temp_entries[nextentry].second.compressed_length; in InitializeChunks() 748 raw_data_len = temp_entries[nextentry].second.offset - pos; in InitializeChunks() 750 raw_data_len = file_content_.size() - pos; in InitializeChunks() 752 chunks_.emplace_back(CHUNK_NORMAL, pos, &file_content_, raw_data_len); in InitializeChunks() 754 pos += raw_data_len; in InitializeChunks() 1252 size_t pos = 0; in Initialize() local 1253 while (pos < sz) { in Initialize() [all …]
|
/bootable/recovery/otautil/ |
D | dirutil.cpp | 61 size_t pos = path.rfind('/'); in mkdir_recursively() local 62 if (pos == std::string::npos) { in mkdir_recursively() 66 path.resize(pos + 1); in mkdir_recursively()
|
/bootable/recovery/uncrypt/ |
D | uncrypt.cpp | 332 off64_t pos = 0; in ProductBlockMap() local 334 while (pos < sb.st_size) { in ProductBlockMap() 336 int progress = static_cast<int>(100 * (double(pos) / double(sb.st_size))); in ProductBlockMap() 372 std::min(static_cast<off64_t>(sb.st_blksize), sb.st_size - pos)); in ProductBlockMap() 377 pos += to_read; in ProductBlockMap() 382 pos += sb.st_blksize; in ProductBlockMap()
|
/bootable/recovery/recovery_ui/ |
D | screen_ui.cpp | 467 int pos = static_cast<int>(p * width); in draw_foreground_locked() local 471 if (pos > 0) { in draw_foreground_locked() 472 DrawSurface(progress_bar_fill_.get(), width - pos, 0, pos, height, in draw_foreground_locked() 473 progress_x + width - pos, progress_y); in draw_foreground_locked() 475 if (pos < width - 1) { in draw_foreground_locked() 476 DrawSurface(progress_bar_empty_.get(), 0, 0, width - pos, height, progress_x, progress_y); in draw_foreground_locked() 480 if (pos > 0) { in draw_foreground_locked() 481 DrawSurface(progress_bar_fill_.get(), 0, 0, pos, height, progress_x, progress_y); in draw_foreground_locked() 483 if (pos < width - 1) { in draw_foreground_locked() 484 DrawSurface(progress_bar_empty_.get(), pos, 0, width - pos, height, progress_x + pos, in draw_foreground_locked()
|
/bootable/recovery/tests/component/ |
D | imgdiff_test.cpp | 54 size_t pos = 12; in verify_patch_header() local 56 ASSERT_LE(pos + 4, size); in verify_patch_header() 57 int type = get_unaligned<int32_t>(data + pos); in verify_patch_header() 58 pos += 4; in verify_patch_header() 60 pos += 24; in verify_patch_header() 61 ASSERT_LE(pos, size); in verify_patch_header() 64 ASSERT_LE(pos + 4, size); in verify_patch_header() 65 ssize_t data_len = get_unaligned<int32_t>(data + pos); in verify_patch_header() 67 pos += 4 + data_len; in verify_patch_header() 68 ASSERT_LE(pos, size); in verify_patch_header() [all …]
|
/bootable/recovery/tools/recovery_l10n/src/com/android/recovery_l10n/ |
D | Main.java | 137 int pos, long id) { in onCreate() 138 switch (pos) { in onCreate()
|