/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/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 | 159 int sysMapFile(const char* fn, MemMapping* pMap) in sysMapFile() argument 163 if (fn && fn[0] == '@') { in sysMapFile() 165 FILE* mapf = fopen(fn+1, "r"); in sysMapFile() 167 LOGE("Unable to open '%s': %s\n", fn+1, strerror(errno)); in sysMapFile() 172 LOGE("Map of '%s' failed\n", fn); in sysMapFile() 180 int fd = open(fn, O_RDONLY); in sysMapFile() 182 LOGE("Unable to open '%s': %s\n", fn, strerror(errno)); in sysMapFile() 187 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 | 821 void (*callback)(const char *fn, void *), void *cookie, in mzExtractRecursive() argument
|
/bootable/recovery/ |
D | interlace-frames.py | 37 frames = [Image.open(fn).convert("RGB") for fn in inputs] 50 for fn, f in enumerate(frames): 51 out.putpixel((i, j*N+fn), f.getpixel((i, j)))
|
D | bootloader.cpp | 151 static void wait_for_device(const char* fn) { in wait_for_device() argument 157 ret = stat(fn, &buf); in wait_for_device() 159 printf("failed to stat \"%s\" try %d: %s\n", fn, tries, strerror(errno)); in wait_for_device() 165 printf("failed to stat \"%s\"\n", fn); in wait_for_device()
|
/bootable/recovery/edify/ |
D | expr.h | 69 Function fn; member 105 Expr* Build(Function fn, YYLTYPE loc, int count, ...); 122 Function fn; member 127 void RegisterFunction(const char* name, Function fn);
|
D | expr.cpp | 41 Value* v = expr->fn(expr->name, state, expr->argc, expr->argv); in Evaluate() 54 return expr->fn(expr->name, state, expr->argc, expr->argv); in EvaluateValue() 332 Expr* Build(Function fn, YYLTYPE loc, int count, ...) { in Build() argument 336 e->fn = fn; in Build() 358 void RegisterFunction(const char* name, Function fn) { in RegisterFunction() argument 364 fn_table[fn_entries].fn = fn; in RegisterFunction() 386 return nf->fn; in FindFunction()
|
D | parser.yy | 74 $$->fn = Literal; 95 $$->fn = FindFunction($1); 96 if ($$->fn == NULL) {
|
D | main.cpp | 169 n->name == NULL ? "(NULL)" : n->name, n->fn, n->start, n->end, in ExprDump()
|
/bootable/recovery/updater/ |
D | blockimg.cpp | 469 std::string fn(STASH_DIRECTORY_BASE); in GetStashFileName() local 470 fn += "/" + base + "/" + id + postfix; in GetStashFileName() 472 return fn; in GetStashFileName() 502 std::string fn = dirname + "/" + std::string(item->d_name); in EnumerateStash() local 503 callback(fn, data); in EnumerateStash() 507 static void UpdateFileSize(const std::string& fn, void* data) { in UpdateFileSize() argument 508 if (fn.empty() || !data) { in UpdateFileSize() 513 if (stat(fn.c_str(), &sb) == -1) { in UpdateFileSize() 514 fprintf(stderr, "stat \"%s\" failed: %s\n", fn.c_str(), strerror(errno)); in UpdateFileSize() 526 static void DeleteFile(const std::string& fn, void* /* data */) { in DeleteFile() argument [all …]
|