/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() 142 src_ranges_location = RangeSet::Parse(tokens[pos++]); in ParseTargetInfoAndSourceInfo() 151 while (pos < tokens.size()) { in ParseTargetInfoAndSourceInfo() 154 std::vector<std::string> pairs = android::base::Split(tokens[pos++], ":"); in ParseTargetInfoAndSourceInfo() [all …]
|
D | updater_runtime_dynamic_partitions.cpp | 119 const std::string& arg(size_t pos) const { in arg() 120 CHECK_LE(pos + 1, tokens.size()); in arg() 121 return tokens[pos + 1]; in arg() 123 std::optional<uint64_t> uint_arg(size_t pos, const std::string& name) const { in uint_arg() 124 auto str = arg(pos); in uint_arg()
|
D | target_files.cpp | 61 auto pos = line.find('='); in ParsePropertyFile() local 62 if (pos == std::string::npos) continue; in ParsePropertyFile() 63 std::string key = line.substr(0, pos); in ParsePropertyFile() 64 std::string value = line.substr(pos + 1); in ParsePropertyFile()
|
D | blockimg.cpp | 558 size_t pos = 0; in PrintHashForCorruptedSourceBlocks() local 569 pos = 4; in PrintHashForCorruptedSourceBlocks() 576 pos = 7; in PrintHashForCorruptedSourceBlocks() 580 if (params.tokens[pos] == "-") { in PrintHashForCorruptedSourceBlocks() 584 RangeSet src = RangeSet::Parse(params.tokens[pos++]); in PrintHashForCorruptedSourceBlocks() 593 if (pos == params.tokens.size()) { in PrintHashForCorruptedSourceBlocks() 600 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 | 733 size_t pos = 0; in InitializeChunks() local 735 while (pos < file_content_.size()) { in InitializeChunks() 737 static_cast<off64_t>(pos) == temp_entries[nextentry].second.offset) { in InitializeChunks() 749 if (__builtin_add_overflow(pos, temp_entries[nextentry].second.compressed_length, &pos)) { in InitializeChunks() 761 raw_data_len = temp_entries[nextentry].second.offset - pos; in InitializeChunks() 763 raw_data_len = file_content_.size() - pos; in InitializeChunks() 765 chunks_.emplace_back(CHUNK_NORMAL, pos, &file_content_, raw_data_len); in InitializeChunks() 767 pos += raw_data_len; in InitializeChunks() 1278 size_t pos = 0; in Initialize() local 1279 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 | 470 int pos = static_cast<int>(p * width); in draw_foreground_locked() local 474 if (pos > 0) { in draw_foreground_locked() 475 DrawSurface(progress_bar_fill_.get(), width - pos, 0, pos, height, in draw_foreground_locked() 476 progress_x + width - pos, progress_y); in draw_foreground_locked() 478 if (pos < width - 1) { in draw_foreground_locked() 479 DrawSurface(progress_bar_empty_.get(), 0, 0, width - pos, height, progress_x, progress_y); in draw_foreground_locked() 483 if (pos > 0) { in draw_foreground_locked() 484 DrawSurface(progress_bar_fill_.get(), 0, 0, pos, height, progress_x, progress_y); in draw_foreground_locked() 486 if (pos < width - 1) { in draw_foreground_locked() 487 DrawSurface(progress_bar_empty_.get(), pos, 0, width - pos, height, progress_x + pos, in draw_foreground_locked()
|
/bootable/recovery/tests/unit/host/ |
D | imgdiff_test.cpp | 53 size_t pos = 12; in verify_patch_header() local 55 ASSERT_LE(pos + 4, size); in verify_patch_header() 56 int type = get_unaligned<int32_t>(data + pos); in verify_patch_header() 57 pos += 4; in verify_patch_header() 59 pos += 24; in verify_patch_header() 60 ASSERT_LE(pos, size); in verify_patch_header() 63 ASSERT_LE(pos + 4, size); in verify_patch_header() 64 ssize_t data_len = get_unaligned<int32_t>(data + pos); in verify_patch_header() 66 pos += 4 + data_len; in verify_patch_header() 67 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()
|