/bootable/recovery/tools/ota/ |
D | check-lost+found.c | 77 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/ |
D | interlace-frames.py | 28 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)))
|
D | bootloader.cpp | 146 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/ |
D | imgdiff_test.sh | 81 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/ |
D | SysUtil.c | 163 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()
|
D | SysUtil.h | 39 int sysMapFile(const char* fn, MemMapping* pMap);
|
D | Zip.h | 165 void (*callback)(const char *fn, void*), void *cookie,
|
D | Zip.c | 830 void (*callback)(const char *fn, void *), void *cookie, in mzExtractRecursive() argument
|
/bootable/recovery/updater/ |
D | blockimg.c | 403 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/ |
D | expr.h | 61 Function fn; member 97 Expr* Build(Function fn, YYLTYPE loc, int count, ...); 114 Function fn; member 119 void RegisterFunction(const char* name, Function fn);
|
D | parser.y | 74 $$->fn = Literal; 95 $$->fn = FindFunction($1); 96 if ($$->fn == NULL) {
|
D | expr.c | 36 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()
|
D | main.c | 164 n->name == NULL ? "(NULL)" : n->name, n->fn, n->start, n->end, in ExprDump()
|