/bootable/recovery/applypatch/ |
D | utils.c | 22 void Write4(int value, FILE* f) { in Write4() argument 23 fputc(value & 0xff, f); in Write4() 24 fputc((value >> 8) & 0xff, f); in Write4() 25 fputc((value >> 16) & 0xff, f); in Write4() 26 fputc((value >> 24) & 0xff, f); in Write4() 30 void Write8(long long value, FILE* f) { in Write8() argument 31 fputc(value & 0xff, f); in Write8() 32 fputc((value >> 8) & 0xff, f); in Write8() 33 fputc((value >> 16) & 0xff, f); in Write8() 34 fputc((value >> 24) & 0xff, f); in Write8() [all …]
|
D | imgdiff.c | 195 FILE* f = fopen(filename, "rb"); in ReadZip() local 196 if (fread(img, 1, st.st_size, f) != st.st_size) { in ReadZip() 198 fclose(f); in ReadZip() 201 fclose(f); in ReadZip() 385 FILE* f = fopen(filename, "rb"); in ReadImage() local 386 if (fread(img, 1, st.st_size, f) != st.st_size) { in ReadImage() 388 fclose(f); in ReadImage() 391 fclose(f); in ReadImage() 653 FILE* f = fopen(ptemp, "rb"); in MakePatch() local 654 if (f == NULL) { in MakePatch() [all …]
|
D | utils.h | 24 void Write4(int value, FILE* f); 25 void Write8(long long value, FILE* f);
|
D | applypatch.c | 70 FILE* f = fopen(filename, "rb"); in LoadFileContents() local 71 if (f == NULL) { in LoadFileContents() 78 ssize_t bytes_read = fread(file->data, 1, file->size, f); in LoadFileContents() 86 fclose(f); in LoadFileContents()
|
/bootable/recovery/tools/ota/ |
D | convert-to-bmp.py | 67 f = open(outfile, "wb") variable 68 f.write(header) 69 f.write(info) 73 f.write(data[i+2]) # B 74 f.write(data[i+1]) # G 75 f.write(data[i+0]) # R 76 f.write(data[i+3]) # A 77 f.close()
|
/bootable/recovery/ |
D | verifier.cpp | 218 double f = so_far / (double)signed_len; in verify_file() local 219 if (f > frac + 0.02 || size == so_far) { in verify_file() 220 ui->SetProgress(f); in verify_file() 221 frac = f; in verify_file() 332 FILE* f = fopen(filename, "r"); in load_keys() local 333 if (f == NULL) { in load_keys() 348 if (fscanf(f, " %c", &start_char) != 1) goto exit; in load_keys() 357 if (fscanf(f, "%d {", &version) != 1) goto exit; in load_keys() 389 if (fscanf(f, " %i , 0x%x , { %u", in load_keys() 398 if (fscanf(f, " , %u", &(key->n[i])) != 1) goto exit; in load_keys() [all …]
|
D | bootloader.cpp | 166 FILE* f = fopen(v->blk_device, "rb"); in get_bootloader_message_block() local 167 if (f == NULL) { in get_bootloader_message_block() 172 int count = fread(&temp, sizeof(temp), 1, f); in get_bootloader_message_block() 177 if (fclose(f) != 0) { in get_bootloader_message_block() 188 FILE* f = fopen(v->blk_device, "wb"); in set_bootloader_message_block() local 189 if (f == NULL) { in set_bootloader_message_block() 193 int count = fwrite(in, sizeof(*in), 1, f); in set_bootloader_message_block() 198 if (fclose(f) != 0) { in set_bootloader_message_block()
|
D | interlace-frames.py | 41 for fn, f in enumerate(frames): 42 out.putpixel((i, j*N+fn), f.getpixel((i, j)))
|
D | recovery.cpp | 455 FILE* f = fopen(path, "rb"); in erase_volume() local 456 fread(p->data, 1, p->st.st_size, f); in erase_volume() 457 fclose(f); in erase_volume() 480 FILE* f = fopen_path(head->name, "wb"); in erase_volume() local 481 if (f) { in erase_volume() 482 fwrite(head->data, 1, head->st.st_size, f); in erase_volume() 483 fclose(f); in erase_volume()
|
/bootable/recovery/edify/ |
D | main.c | 181 FILE* f = fopen(argv[1], "r"); in main() local 182 if (f == NULL) { in main() 187 int size = fread(buffer, 1, 8191, f); in main() 188 fclose(f); in main()
|
D | README | 102 concat(a;b;c, d, e;f) # evaluates to "cdf"
|
/bootable/recovery/updater/ |
D | install.c | 537 FILE* f = fopen(dest_path, "wb"); in PackageExtractFileFn() local 538 if (f == NULL) { in PackageExtractFileFn() 543 success = mzExtractZipEntryToFile(za, entry, fileno(f)); in PackageExtractFileFn() 544 fclose(f); in PackageExtractFileFn() 970 FILE* f = fopen(filename, "rb"); in FileGetPropFn() local 971 if (f == NULL) { in FileGetPropFn() 977 if (fread(buffer, 1, st.st_size, f) != st.st_size) { in FileGetPropFn() 980 fclose(f); in FileGetPropFn() 985 fclose(f); in FileGetPropFn() 1086 FILE* f = fopen(filename, "rb"); in WriteRawImageFn() local [all …]
|
D | blockimg.c | 1490 CommandFunction f; member 1717 if (cmd->f != NULL && cmd->f(¶ms) == -1) { in PerformBlockImageUpdate()
|
/bootable/recovery/minui/ |
D | events.cpp | 205 void ev_iterate_available_keys(std::function<void(int)> f) { in ev_iterate_available_keys() argument 228 f(key_code); in ev_iterate_available_keys()
|
D | minui.h | 70 void ev_iterate_available_keys(std::function<void(int)> f);
|