Searched refs:pos (Results 1 – 9 of 9) sorted by relevance
/bootable/recovery/applypatch/ |
D | imgpatch.cpp | 151 size_t pos = 12; in ApplyImagePatch() local 162 if (pos + 4 > patch->data.size()) { in ApplyImagePatch() 166 int type = Read4(&patch->data[pos]); in ApplyImagePatch() 167 pos += 4; in ApplyImagePatch() 170 const char* normal_header = &patch->data[pos]; in ApplyImagePatch() 171 pos += 24; in ApplyImagePatch() 172 if (pos > patch->data.size()) { in ApplyImagePatch() 190 const char* raw_header = &patch->data[pos]; in ApplyImagePatch() 191 pos += 4; in ApplyImagePatch() 192 if (pos > patch->data.size()) { in ApplyImagePatch() [all …]
|
D | imgdiff.cpp | 566 size_t pos = 0; in ReadZip() local 568 while (pos < zip_file->size()) { in ReadZip() 570 static_cast<off64_t>(pos) == temp_entries[nextentry].second.offset) { in ReadZip() 584 ImageChunk curr(CHUNK_DEFLATE, pos, zip_file, compressed_len); in ReadZip() 589 pos += compressed_len; in ReadZip() 597 raw_data_len = temp_entries[nextentry].second.offset - pos; in ReadZip() 599 raw_data_len = zip_file->size() - pos; in ReadZip() 601 chunks->emplace_back(CHUNK_NORMAL, pos, zip_file, raw_data_len); in ReadZip() 603 pos += raw_data_len; in ReadZip() 633 size_t pos = 0; in ReadImage() local [all …]
|
/bootable/recovery/otautil/ |
D | DirUtil.cpp | 79 size_t pos = cpath.rfind('/'); in dirCreateHierarchy() local 80 if (pos == std::string::npos) { in dirCreateHierarchy() 84 cpath.resize(pos + 1); in dirCreateHierarchy()
|
/bootable/recovery/ |
D | screen_ui.cpp | 205 int pos = static_cast<int>(p * width); in draw_foreground_locked() local 209 if (pos > 0) { in draw_foreground_locked() 210 gr_blit(progressBarFill, width - pos, 0, pos, height, progress_x + width - pos, in draw_foreground_locked() 213 if (pos < width - 1) { in draw_foreground_locked() 214 gr_blit(progressBarEmpty, 0, 0, width - pos, height, progress_x, progress_y); in draw_foreground_locked() 218 if (pos > 0) { in draw_foreground_locked() 219 gr_blit(progressBarFill, 0, 0, pos, height, progress_x, progress_y); in draw_foreground_locked() 221 if (pos < width - 1) { in draw_foreground_locked() 222 gr_blit(progressBarEmpty, pos, 0, width - pos, height, progress_x + pos, progress_y); in draw_foreground_locked()
|
D | install.cpp | 70 size_t pos = str.find('='); in parse_build_number() local 71 if (pos != std::string::npos) { in parse_build_number() 72 return android::base::Trim(str.substr(pos+1)); in parse_build_number()
|
/bootable/recovery/tests/component/ |
D | imgdiff_test.cpp | 48 size_t pos = 12; in verify_patch_header() local 50 ASSERT_LE(pos + 4, size); in verify_patch_header() 51 int type = get_unaligned<int32_t>(data + pos); in verify_patch_header() 52 pos += 4; in verify_patch_header() 54 pos += 24; in verify_patch_header() 55 ASSERT_LE(pos, size); in verify_patch_header() 58 ASSERT_LE(pos + 4, size); in verify_patch_header() 59 ssize_t data_len = get_unaligned<int32_t>(data + pos); in verify_patch_header() 61 pos += 4 + data_len; in verify_patch_header() 62 ASSERT_LE(pos, size); in verify_patch_header() [all …]
|
/bootable/recovery/uncrypt/ |
D | uncrypt.cpp | 310 off64_t pos = 0; in produce_block_map() local 312 while (pos < sb.st_size) { in produce_block_map() 314 int progress = static_cast<int>(100 * (double(pos) / double(sb.st_size))); in produce_block_map() 350 std::min(static_cast<off64_t>(sb.st_blksize), sb.st_size - pos)); in produce_block_map() 355 pos += to_read; in produce_block_map() 360 pos += sb.st_blksize; in produce_block_map()
|
/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()
|
/bootable/recovery/updater/ |
D | blockimg.cpp | 458 size_t pos = 0; in PrintHashForCorruptedSourceBlocks() local 469 pos = 4; in PrintHashForCorruptedSourceBlocks() 476 pos = 7; in PrintHashForCorruptedSourceBlocks() 480 if (params.tokens[pos] == "-") { in PrintHashForCorruptedSourceBlocks() 484 RangeSet src = RangeSet::Parse(params.tokens[pos++]); in PrintHashForCorruptedSourceBlocks() 489 if (pos == params.tokens.size()) { in PrintHashForCorruptedSourceBlocks() 496 locs = RangeSet::Parse(params.tokens[pos++]); in PrintHashForCorruptedSourceBlocks()
|