/bootable/recovery/ |
D | recovery-refresh.cpp | 56 const char *filename, in logbasename() argument 59 if (strstr(LAST_KMSG_FILE, filename) || in logbasename() 60 strstr(LAST_LOG_FILE, filename)) { in logbasename() 70 const char *filename, in logrotate() argument 75 return __android_log_pmsg_file_write(logId, prio, filename, buf, len); in logrotate() 78 std::string name(filename); in logrotate() 84 return __android_log_pmsg_file_write(logId, prio, filename, buf, len); in logrotate()
|
D | interlace-frames.py | 94 filename = '%s%02d.png' % (output, k) 95 out2.save(filename) 96 print('Frame %d written to %s.' % (k, filename))
|
D | screen_ui.h | 54 void ShowFile(const char* filename); 160 void LoadBitmap(const char* filename, GRSurface** surface); 161 void LoadLocalizedBitmap(const char* filename, GRSurface** surface);
|
D | screen_ui.cpp | 417 void ScreenRecoveryUI::LoadBitmap(const char* filename, GRSurface** surface) { in LoadBitmap() argument 418 int result = res_create_display_surface(filename, surface); in LoadBitmap() 420 LOGE("couldn't load bitmap %s (error %d)\n", filename, result); in LoadBitmap() 424 void ScreenRecoveryUI::LoadLocalizedBitmap(const char* filename, GRSurface** surface) { in LoadLocalizedBitmap() argument 425 int result = res_create_localized_alpha_surface(filename, locale, surface); in LoadLocalizedBitmap() 427 LOGE("couldn't load bitmap %s (error %d)\n", filename, result); in LoadLocalizedBitmap() 727 void ScreenRecoveryUI::ShowFile(const char* filename) { in ShowFile() argument 728 FILE* fp = fopen_path(filename, "re"); in ShowFile() 730 Print(" Unable to open %s: %s\n", filename, strerror(errno)); in ShowFile()
|
D | recovery-persist.cpp | 120 const char *filename, in logsave() argument 125 destination += filename; in logsave()
|
D | recovery.cpp | 220 static void redirect_stdio(const char* filename) { in redirect_stdio() argument 227 freopen(filename, "a", stdout); setbuf(stdout, NULL); in redirect_stdio() 228 freopen(filename, "a", stderr); setbuf(stderr, NULL); in redirect_stdio() 239 freopen(filename, "a", stdout); setbuf(stdout, NULL); in redirect_stdio() 240 freopen(filename, "a", stderr); setbuf(stderr, NULL); in redirect_stdio() 252 FILE* log_fp = fopen(filename, "a"); in redirect_stdio() 254 LOGE("fopen \"%s\" failed: %s\n", filename, strerror(errno)); in redirect_stdio() 262 check_and_fclose(log_fp, filename); in redirect_stdio() 284 check_and_fclose(log_fp, filename); in redirect_stdio() 415 static ssize_t __pmsg_write(const char *filename, const char *buf, size_t len) { in __pmsg_write() argument [all …]
|
D | wear_ui.h | 33 void ShowFile(const char* filename) override;
|
D | verifier.h | 69 bool load_keys(const char* filename, std::vector<Certificate>& certs);
|
D | wear_ui.cpp | 357 void WearRecoveryUI::ShowFile(const char* filename) { in ShowFile() argument 358 FILE* fp = fopen_path(filename, "re"); in ShowFile() 360 Print(" Unable to open %s: %s\n", filename, strerror(errno)); in ShowFile()
|
D | ui.h | 71 virtual void ShowFile(const char* filename) = 0;
|
D | verifier.cpp | 484 bool load_keys(const char* filename, std::vector<Certificate>& certs) { in load_keys() argument 485 std::unique_ptr<FILE, decltype(&fclose)> f(fopen(filename, "r"), fclose); in load_keys() 487 LOGE("opening %s: %s\n", filename, strerror(errno)); in load_keys()
|
/bootable/recovery/tools/ota/ |
D | add-property-tag.c | 67 const char *filename = "/system/build.prop"; in main() local 75 case 'f': filename = optarg; break; in main() 94 FILE *input = fopen(filename, "r"); in main() 96 fprintf(stderr, "can't read %s: %s\n", filename, strerror(errno)); in main() 101 snprintf(tmpname, sizeof(tmpname), "%s.tmp", filename); in main() 128 fprintf(stderr, "property %s not found in %s\n", propname, filename); in main() 133 if (rename(tmpname, filename)) { in main() 135 tmpname, filename, strerror(errno)); in main()
|
/bootable/recovery/applypatch/ |
D | applypatch.cpp | 40 static int LoadPartitionContents(const char* filename, FileContents* file); 58 int LoadFileContents(const char* filename, FileContents* file) { in LoadFileContents() argument 61 if (strncmp(filename, "MTD:", 4) == 0 || in LoadFileContents() 62 strncmp(filename, "EMMC:", 5) == 0) { in LoadFileContents() 63 return LoadPartitionContents(filename, file); in LoadFileContents() 66 if (stat(filename, &file->st) != 0) { in LoadFileContents() 67 printf("failed to stat \"%s\": %s\n", filename, strerror(errno)); in LoadFileContents() 72 FILE* f = ota_fopen(filename, "rb"); in LoadFileContents() 74 printf("failed to open \"%s\": %s\n", filename, strerror(errno)); in LoadFileContents() 80 printf("short read of \"%s\" (%zu bytes of %zd)\n", filename, bytes_read, data.size()); in LoadFileContents() [all …]
|
D | imgdiff.cpp | 155 char* filename; // used for zip entries member 167 char* filename; member 186 unsigned char* ReadZip(const char* filename, in ReadZip() argument 190 if (stat(filename, &st) != 0) { in ReadZip() 191 printf("failed to stat \"%s\": %s\n", filename, strerror(errno)); in ReadZip() 197 FILE* f = fopen(filename, "rb"); in ReadZip() 199 printf("failed to read \"%s\" %s\n", filename, strerror(errno)); in ReadZip() 241 char* filename = reinterpret_cast<char*>(malloc(nlen+1)); in ReadZip() local 242 memcpy(filename, cd+46, nlen); in ReadZip() 243 filename[nlen] = '\0'; in ReadZip() [all …]
|
D | applypatch.h | 44 size_t FreeSpaceForFile(const char* filename); 58 int applypatch_check(const char* filename, 62 int LoadFileContents(const char* filename, FileContents* file); 63 int SaveFileContents(const char* filename, const FileContents* file);
|
/bootable/recovery/updater/ |
D | install.cpp | 809 const char* filename, in ApplyParsedPerms() argument 816 if (lsetfilecon(filename, parsed.selabel) != 0) { in ApplyParsedPerms() 818 filename, parsed.selabel, strerror(errno)); in ApplyParsedPerms() 829 if (chown(filename, parsed.uid, -1) < 0) { in ApplyParsedPerms() 831 filename, parsed.uid, strerror(errno)); in ApplyParsedPerms() 837 if (chown(filename, -1, parsed.gid) < 0) { in ApplyParsedPerms() 839 filename, parsed.gid, strerror(errno)); in ApplyParsedPerms() 845 if (chmod(filename, parsed.mode) < 0) { in ApplyParsedPerms() 847 filename, parsed.mode, strerror(errno)); in ApplyParsedPerms() 853 if (chmod(filename, parsed.dmode) < 0) { in ApplyParsedPerms() [all …]
|
D | blockimg.cpp | 1791 std::unique_ptr<Value, decltype(&FreeValue)> filename(arg_filename, FreeValue); in CheckFirstBlockFn() local 1793 if (filename->type != VAL_STRING) { in CheckFirstBlockFn() 1842 std::unique_ptr<Value, decltype(&FreeValue)> filename(arg_filename, FreeValue); in BlockImageRecoverFn() local 1845 if (filename->type != VAL_STRING) { in BlockImageRecoverFn() 1855 fprintf(stderr, "%s image corrupted, attempting to recover...\n", filename->data); in BlockImageRecoverFn() 1858 fec::io fh(filename->data, O_RDWR); in BlockImageRecoverFn() 1861 ErrorAbort(state, kLibfecFailure, "fec_open \"%s\" failed: %s", filename->data, in BlockImageRecoverFn() 1892 filename->data, j, strerror(errno)); in BlockImageRecoverFn() 1908 fprintf(stderr, "...%s image recovered successfully.\n", filename->data); in BlockImageRecoverFn()
|
/bootable/recovery/tests/unit/ |
D | recovery_test.cpp | 34 static ssize_t __pmsg_fn(log_id_t logId, char prio, const char *filename, in __pmsg_fn() argument 38 EXPECT_EQ(0, NULL == strstr(myFilename,filename)); in __pmsg_fn()
|
/bootable/recovery/otafault/ |
D | ota_io.h | 37 FILE* ota_fopen(const char* filename, const char* mode);
|
/bootable/recovery/minadbd/ |
D | README.txt | 7 receives a single blob of data, writes it to a fixed filename, and
|
/bootable/recovery/tools/recovery_l10n/src/com/android/recovery_l10n/ |
D | Main.java | 186 private void saveBitmap(Bitmap b, String filename) { 188 FileOutputStream fos = openFileOutput(filename, 0);
|