/bootable/recovery/applypatch/ |
D | utils.c | 42 unsigned char* p = pv; in Read2() local 43 return (int)(((unsigned int)p[1] << 8) | in Read2() 44 (unsigned int)p[0]); in Read2() 48 unsigned char* p = pv; in Read4() local 49 return (int)(((unsigned int)p[3] << 24) | in Read4() 50 ((unsigned int)p[2] << 16) | in Read4() 51 ((unsigned int)p[1] << 8) | in Read4() 52 (unsigned int)p[0]); in Read4() 56 unsigned char* p = pv; in Read8() local 57 return (long long)(((unsigned long long)p[7] << 56) | in Read8() [all …]
|
D | utils.h | 26 int Read2(void* p); 27 int Read4(void* p); 28 long long Read8(void* p);
|
D | main.c | 91 Value* p = (*patches)[i]; in ParsePatchArgs() local 92 if (p != NULL) { in ParsePatchArgs() 93 free(p->data); in ParsePatchArgs() 94 free(p); in ParsePatchArgs() 142 Value* p = patches[i]; in PatchMode() local 143 if (p != NULL) { in PatchMode() 144 free(p->data); in PatchMode() 145 free(p); in PatchMode()
|
D | imgdiff.c | 404 unsigned char* p = img+pos; in ReadImage() local 407 p[0] == 0x1f && p[1] == 0x8b && in ReadImage() 408 p[2] == 0x08 && // deflate compression in ReadImage() 409 p[3] == 0x00) { // no header flags in ReadImage() 421 curr->data = p; in ReadImage() 425 p += curr->len; in ReadImage() 440 curr->deflate_data = p; in ReadImage() 447 strm.next_in = p; in ReadImage() 475 p += curr->deflate_len; in ReadImage() 487 p += curr->len; in ReadImage() [all …]
|
D | applypatch.c | 214 char* p = (char*)file->data; in LoadPartitionContents() local 226 read = mtd_read_data(ctx, p, next); in LoadPartitionContents() 230 read = fread(p, 1, next, dev); in LoadPartitionContents() 240 SHA_update(&sha_ctx, p, read); in LoadPartitionContents() 266 p += read; in LoadPartitionContents() 478 size_t p; in WriteToPartition() local 479 for (p = 0; p < len; p += sizeof(buffer)) { in WriteToPartition() 480 size_t to_read = len - p; in WriteToPartition() 489 partition, p, strerror(errno)); in WriteToPartition() 494 partition, p, read_count, to_read, strerror(errno)); in WriteToPartition() [all …]
|
/bootable/recovery/minzip/ |
D | DirUtil.c | 115 char *p = cpath; in dirCreateHierarchy() local 116 while (*p != '\0') { in dirCreateHierarchy() 119 while (*p != '\0' && *p == '/') { in dirCreateHierarchy() 120 p++; in dirCreateHierarchy() 122 if (*p == '\0') { in dirCreateHierarchy() 130 while (*p != '/') { in dirCreateHierarchy() 131 p++; in dirCreateHierarchy() 133 *p = '\0'; in dirCreateHierarchy() 175 *p = '/'; in dirCreateHierarchy()
|
D | Zip.c | 786 char *p = helper->buf; in targetEntryPath() local 787 memcpy(p, helper->targetDir, helper->targetDirLen); in targetEntryPath() 788 p += helper->targetDirLen; in targetEntryPath() 789 if (p == helper->buf || p[-1] != '/') { in targetEntryPath() 791 *p++ = '/'; in targetEntryPath()
|
/bootable/recovery/ |
D | asn1_decoder.cpp | 26 uint8_t* p; member 46 ctx->p = buffer; in asn1_context_new() 59 return *ctx->p; in peek_byte() 66 int byte = *ctx->p; in get_byte() 67 ctx->p++; in get_byte() 76 ctx->p += num_skip; in skip_bytes() 119 asn1_context_t* app_ctx = asn1_context_new(ctx->p, length); in asn1_constructed_get() 149 return asn1_context_new(ctx->p, length); in asn1_sequence_get() 160 return asn1_context_new(ctx->p, length); in asn1_set_get() 178 *oid = ctx->p; in asn1_oid_get() [all …]
|
D | screen_ui.cpp | 153 float p = progressScopeStart + progress * progressScopeSize; in draw_progress_locked() local 154 int pos = (int) (p * width); in draw_progress_locked() 342 float p = 1.0 * elapsed / duration; in ProgressThreadLoop() local 343 if (p > 1.0) p = 1.0; in ProgressThreadLoop() 344 if (p > progress) { in ProgressThreadLoop() 345 progress = p; in ProgressThreadLoop() 431 for (char* p = lang; *p; ++p) { in SetLocale() local 432 if (*p == '_') { in SetLocale() 433 *p = '\0'; in SetLocale()
|
D | recovery.cpp | 446 saved_log_file* p = (saved_log_file*) malloc(sizeof(saved_log_file)); in erase_volume() local 448 p->name = strdup(path); in erase_volume() 449 if (stat(path, &(p->st)) == 0) { in erase_volume() 451 if (p->st.st_size > (1 << 19)) { in erase_volume() 452 p->st.st_size = 1 << 19; in erase_volume() 454 p->data = (unsigned char*) malloc(p->st.st_size); in erase_volume() 456 fread(p->data, 1, p->st.st_size, f); in erase_volume() 458 p->next = head; in erase_volume() 459 head = p; in erase_volume() 461 free(p); in erase_volume()
|
/bootable/recovery/mtdutils/ |
D | mtdutils.c | 97 MtdPartition *p = &g_mtd_state.partitions[i]; in mtd_scan_partitions() local 98 if (p->name != NULL) { in mtd_scan_partitions() 99 free(p->name); in mtd_scan_partitions() 100 p->name = NULL; in mtd_scan_partitions() 102 p->device_index = -1; in mtd_scan_partitions() 143 MtdPartition *p = &g_mtd_state.partitions[mtdnum]; in mtd_scan_partitions() local 144 p->device_index = mtdnum; in mtd_scan_partitions() 145 p->size = mtdsize; in mtd_scan_partitions() 146 p->erase_size = mtderasesize; in mtd_scan_partitions() 147 p->name = strdup(mtdname); in mtd_scan_partitions() [all …]
|
/bootable/recovery/fonts/ |
D | README | 5 https://code.google.com/p/googlefontdirectory/source/browse/ofl/inconsolata/
|
/bootable/recovery/minui/ |
D | graphics.cpp | 201 unsigned char* p = gr_draw->data + y1 * gr_draw->row_bytes + x1 * gr_draw->pixel_bytes; in gr_fill() local 205 unsigned char* px = p; in gr_fill() 212 p += gr_draw->row_bytes; in gr_fill() 217 unsigned char* px = p; in gr_fill() 227 p += gr_draw->row_bytes; in gr_fill()
|
/bootable/recovery/edify/ |
D | expr.c | 87 int p = 0; in ConcatFn() local 89 strcpy(result+p, strings[i]); in ConcatFn() 90 p += strlen(strings[i]); in ConcatFn() 92 result[p] = '\0'; in ConcatFn()
|
/bootable/recovery/updater/ |
D | install.c | 593 char* p; in make_parents() local 594 for (p = name + (strlen(name)-1); p > name; --p) { in make_parents() 595 if (*p != '/') continue; in make_parents() 596 *p = '\0'; in make_parents() 600 *p = '/'; in make_parents()
|
D | blockimg.c | 294 size_t p = 0; in ReadBlocks() local 308 if (read_all(fd, buffer + p, size) == -1) { in ReadBlocks() 312 p += size; in ReadBlocks() 320 size_t p = 0; in WriteBlocks() local 334 if (write_all(fd, buffer + p, size) == -1) { in WriteBlocks() 338 p += size; in WriteBlocks()
|