Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 13 of 13) sorted by relevance

/bootable/recovery/tools/ota/
Dcheck-lost+found.c77 char fn[PATH_MAX]; in main() local
78 snprintf(fn, sizeof(fn), "%s/%s", kPartitions[i], "dirty"); in main()
79 fd = open(fn, O_WRONLY|O_CREAT, 0444); in main()
81 TEMP_FAILURE_RETRY(write(fd, fn, sizeof(fn))); // write, you know, some data in main()
83 unlink(fn); in main()
99 char fn[PATH_MAX]; in main() local
100 snprintf(fn, sizeof(fn), "%s/%s", kPartitions[i], "lost+found"); in main()
101 DIR *dir = opendir(fn); in main()
103 fprintf(out, "Can't open %s: %s\n", fn, strerror(errno)); in main()
113 fprintf(out, "OMGZ FOUND %d FILES IN %s\n", count, fn); in main()
[all …]
/bootable/recovery/
Dinterlace-frames.py28 frames = [Image.open(fn).convert("RGB") for fn in sys.argv[1:-1]]
41 for fn, f in enumerate(frames):
42 out.putpixel((i, j*N+fn), f.getpixel((i, j)))
Dbootloader.cpp146 static void wait_for_device(const char* fn) { in wait_for_device() argument
152 ret = stat(fn, &buf); in wait_for_device()
154 printf("stat %s try %d: %s\n", fn, tries, strerror(errno)); in wait_for_device()
159 printf("failed to stat %s\n", fn); in wait_for_device()
/bootable/recovery/applypatch/
Dimgdiff_test.sh81 local fn=$1
84 unzip -p $START_OTA_PACKAGE $fn > $tmpdir/source
85 unzip -p $END_OTA_PACKAGE $fn > $tmpdir/target
88 …echo "patch for $fn is $(size $tmpdir/patch) [of $(size $tmpdir/target)] ($(size $tmpdir/patch.bs)…
89 …echo "$fn $(size $tmpdir/patch) of $(size $tmpdir/target) bsdiff $(size $tmpdir/patch.bs)" >> /tmp…
96 || fail "applypatch of $fn failed"
/bootable/recovery/minzip/
DSysUtil.c163 int sysMapFile(const char* fn, MemMapping* pMap) in sysMapFile() argument
167 if (fn && fn[0] == '@') { in sysMapFile()
169 FILE* mapf = fopen(fn+1, "r"); in sysMapFile()
171 LOGV("Unable to open '%s': %s\n", fn+1, strerror(errno)); in sysMapFile()
176 LOGW("Map of '%s' failed\n", fn); in sysMapFile()
183 int fd = open(fn, O_RDONLY, 0); in sysMapFile()
185 LOGE("Unable to open '%s': %s\n", fn, strerror(errno)); in sysMapFile()
190 LOGE("Map of '%s' failed\n", fn); in sysMapFile()
DSysUtil.h39 int sysMapFile(const char* fn, MemMapping* pMap);
DZip.h165 void (*callback)(const char *fn, void*), void *cookie,
DZip.c830 void (*callback)(const char *fn, void *), void *cookie, in mzExtractRecursive() argument
/bootable/recovery/updater/
Dblockimg.c403 char* fn; in GetStashFileName() local
420 fn = malloc(len); in GetStashFileName()
422 if (fn == NULL) { in GetStashFileName()
427 res = snprintf(fn, len, STASH_DIRECTORY_BASE "/%s/%s%s", base, id, postfix); in GetStashFileName()
431 free(fn); in GetStashFileName()
435 return fn; in GetStashFileName()
446 char* fn; in EnumerateStash() local
471 fn = malloc(len); in EnumerateStash()
473 if (fn == NULL) { in EnumerateStash()
478 res = snprintf(fn, len, "%s/%s", dirname, item->d_name); in EnumerateStash()
[all …]
/bootable/recovery/edify/
Dexpr.h61 Function fn; member
97 Expr* Build(Function fn, YYLTYPE loc, int count, ...);
114 Function fn; member
119 void RegisterFunction(const char* name, Function fn);
Dparser.y74 $$->fn = Literal;
95 $$->fn = FindFunction($1);
96 if ($$->fn == NULL) {
Dexpr.c36 Value* v = expr->fn(expr->name, state, expr->argc, expr->argv); in Evaluate()
49 return expr->fn(expr->name, state, expr->argc, expr->argv); in EvaluateValue()
325 Expr* Build(Function fn, YYLTYPE loc, int count, ...) { in Build() argument
329 e->fn = fn; in Build()
351 void RegisterFunction(const char* name, Function fn) { in RegisterFunction() argument
357 fn_table[fn_entries].fn = fn; in RegisterFunction()
379 return nf->fn; in FindFunction()
Dmain.c164 n->name == NULL ? "(NULL)" : n->name, n->fn, n->start, n->end, in ExprDump()