Home
last modified time | relevance | path

Searched refs:filename (Results 1 – 21 of 21) sorted by relevance

/bootable/recovery/
Drecovery-refresh.cpp56 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()
Dinterlace-frames.py94 filename = '%s%02d.png' % (output, k)
95 out2.save(filename)
96 print('Frame %d written to %s.' % (k, filename))
Dscreen_ui.h54 void ShowFile(const char* filename);
160 void LoadBitmap(const char* filename, GRSurface** surface);
161 void LoadLocalizedBitmap(const char* filename, GRSurface** surface);
Dscreen_ui.cpp417 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()
Drecovery-persist.cpp120 const char *filename, in logsave() argument
125 destination += filename; in logsave()
Drecovery.cpp220 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 …]
Dwear_ui.h33 void ShowFile(const char* filename) override;
Dverifier.h69 bool load_keys(const char* filename, std::vector<Certificate>& certs);
Dwear_ui.cpp357 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()
Dui.h71 virtual void ShowFile(const char* filename) = 0;
Dverifier.cpp484 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/
Dadd-property-tag.c67 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/
Dapplypatch.cpp40 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 …]
Dimgdiff.cpp155 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 …]
Dapplypatch.h44 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/
Dinstall.cpp809 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 …]
Dblockimg.cpp1791 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/
Drecovery_test.cpp34 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/
Dota_io.h37 FILE* ota_fopen(const char* filename, const char* mode);
/bootable/recovery/minadbd/
DREADME.txt7 receives a single blob of data, writes it to a fixed filename, and
/bootable/recovery/tools/recovery_l10n/src/com/android/recovery_l10n/
DMain.java186 private void saveBitmap(Bitmap b, String filename) {
188 FileOutputStream fos = openFileOutput(filename, 0);