Home
last modified time | relevance | path

Searched refs:f (Results 1 – 11 of 11) sorted by relevance

/bootable/recovery/applypatch/
Dutils.c22 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 …]
Dimgdiff.c195 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()
644 FILE* f = fopen(ptemp, "rb"); in MakePatch() local
645 if (f == NULL) { in MakePatch()
[all …]
Dutils.h24 void Write4(int value, FILE* f);
25 void Write8(long long value, FILE* f);
Dapplypatch.c72 FILE* f = fopen(filename, "rb"); in LoadFileContents() local
73 if (f == NULL) { in LoadFileContents()
80 ssize_t bytes_read = fread(file->data, 1, file->size, f); in LoadFileContents()
88 fclose(f); in LoadFileContents()
/bootable/recovery/
Dverifier.cpp40 FILE* f = fopen(path, "rb"); in verify_file() local
41 if (f == NULL) { in verify_file()
57 if (fseek(f, -FOOTER_SIZE, SEEK_END) != 0) { in verify_file()
59 fclose(f); in verify_file()
64 if (fread(footer, 1, FOOTER_SIZE, f) != FOOTER_SIZE) { in verify_file()
66 fclose(f); in verify_file()
71 fclose(f); in verify_file()
83 fclose(f); in verify_file()
93 if (fseek(f, -eocd_size, SEEK_END) != 0) { in verify_file()
95 fclose(f); in verify_file()
[all …]
Dbootloader.cpp166 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()
/bootable/recovery/tools/ota/
Dconvert-to-bmp.py67 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/edify/
Dmain.c184 FILE* f = fopen(argv[1], "r"); in main() local
185 if (f == NULL) { in main()
190 int size = fread(buffer, 1, 8191, f); in main()
191 fclose(f); in main()
DREADME102 concat(a;b;c, d, e;f) # evaluates to "cdf"
/bootable/recovery/updater/
Dinstall.c401 FILE* f = fopen(dest_path, "wb"); in PackageExtractFileFn() local
402 if (f == NULL) { in PackageExtractFileFn()
407 success = mzExtractZipEntryToFile(za, entry, fileno(f)); in PackageExtractFileFn()
408 fclose(f); in PackageExtractFileFn()
655 FILE* f = fopen(filename, "rb"); in FileGetPropFn() local
656 if (f == NULL) { in FileGetPropFn()
662 if (fread(buffer, 1, st.st_size, f) != st.st_size) { in FileGetPropFn()
665 fclose(f); in FileGetPropFn()
670 fclose(f); in FileGetPropFn()
773 FILE* f = fopen(filename, "rb"); in WriteRawImageFn() local
[all …]
/bootable/diskinstaller/
Dconfig.mk28 f=$(patsubst $(1)/%,$(2)/%,$(_f)); \
29 mkdir -p `dirname $$f`; \
30 echo "Copy: $$f" ; \
31 cp -fR $(_f) $$f; \