Searched defs:fname (Results 1 - 11 of 11) sorted by relevance

/system/extras/verity/
H A DUtils.java213 static X509Certificate loadPEMCertificate(String fname) throws Exception { argument
214 try (FileInputStream fis = new FileInputStream(fname)) {
281 static byte[] read(String fname) throws Exception { argument
283 File f = new File(fname);
294 static void write(byte[] data, String fname) throws Exception{ argument
295 FileOutputStream out = new FileOutputStream(fname);
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
H A Dutil.c64 file_matching(const char *fname) argument
71 fname_copy = grep_strdup(fname);
75 if (fnmatch(fpattern[i].pat, fname, 0) == 0 ||
/system/core/fastboot/
H A Dusb_linux.cpp88 char fname[64]; member in struct:usb_handle
367 strcpy(usb->fname, devname);
443 DBG("[ usb read %d fd = %d], fname=%s\n", xfer, handle_->desc, handle_->fname);
445 DBG("[ usb read %d ] = %d, fname=%s, Retry %d \n", xfer, n, handle_->fname, retry);
494 if (access(handle_->fname, F_OK)) return 0;
H A Dfastboot.cpp856 static bool load_buf(Transport* transport, const char* fname, struct fastboot_buffer* buf) { argument
857 unique_fd fd(TEMP_FAILURE_RETRY(open(fname, O_RDONLY | O_BINARY)));
1109 static void do_flash(Transport* transport, const char* pname, const char* fname) { argument
1112 if (!load_buf(transport, fname, &buf)) {
1113 die("cannot load '%s': %s", fname, strerror(errno));
1241 std::string fname; local
1246 fname = find_item_given_name("android-info.txt");
1247 if (fname.empty()) die("cannot find android-info.txt");
1250 void* data = load_file(fname.c_str(), &sz);
1278 fname
1765 std::string fname; local
[all...]
/system/core/trusty/storage/tests/
H A Dmain.cpp252 const char *fname = "test_create_delete_file"; local
255 rc = storage_delete_file(session_, fname, STORAGE_OP_COMPLETE);
260 rc = storage_delete_file(session_, fname, STORAGE_OP_COMPLETE);
264 rc = storage_open_file(session_, &handle, fname,
270 rc = storage_open_file(session_, &handle, fname,
279 rc = storage_open_file(session_, &handle, fname,
285 rc = storage_delete_file(session_, fname, STORAGE_OP_COMPLETE);
289 rc = storage_delete_file(session_, fname, STORAGE_OP_COMPLETE);
297 const char *fname = "delete_opened_test_file"; local
300 rc = storage_delete_file(session_, fname, STORAGE_OP_COMPLET
334 const char *fname = "test_open_no_create_file"; local
368 const char *fname = "test_open_create_file"; local
396 const char *fname = "ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz_01234.56789"; local
423 const char *fname = "test_write_read_sequential"; local
465 const char *fname = "test_open_truncate"; local
508 const char *fname = "test_open_same_file"; local
591 const char *fname = "test_read_eof"; local
637 const char *fname = "test_get_file_size"; local
680 const char *fname = "test_set_file_size"; local
796 const char *fname = "test_write_at_offset"; local
822 const char *fname = "test_write_sparse"; local
847 const char *fname = "test_persistent_32K_file"; local
867 const char *fname = "test_persistent_32K_file"; local
888 const char *fname = "test_persistent_32K_file"; local
899 const char *fname = "test_persistent_1M_file"; local
919 const char *fname = "test_persistent_1M_file"; local
940 const char *fname = "test_persistent_1M_file"; local
960 const char *fname = "test_persistent_1M_file"; local
980 const char *fname = "test_persistent_1M_file"; local
997 const char *fname = "test_persistent_1M_file"; local
1014 const char *fname = "test_persistent_1M_file"; local
1031 const char *fname = "test_persistent_1M_file"; local
1046 const char *fname = "test_persistent_1M_file"; local
1056 const char *fname = "test_write_read_long"; local
1126 const char *fname = "test_invalid_file_handle"; local
1241 const char *fname = "test_transact_discard_write"; local
1285 const char *fname = "test_transact_write_append"; local
1330 const char *fname = "test_transact_discard_write_read"; local
1449 const char *fname = "test_transact_discard_truncate"; local
1498 const char *fname = "test_transact_discard_set_size"; local
1553 const char *fname = "test_transact_discard_delete"; local
1600 const char *fname = "test_transact_discard_delete"; local
1643 const char *fname = "test_transact_discard_create_excl"; local
1671 const char *fname = "test_transact_commit_writes"; local
1749 const char *fname = "test_transact_commit_writes2"; local
1857 const char *fname = "test_transact_commit_set_size"; local
1948 const char *fname = "test_transact_commit_delete"; local
2006 const char *fname = "test_transact_commit_truncate"; local
2084 const char *fname = "test_transact_commit_create"; local
2335 const char *fname = "test_transact_delete_create"; local
2425 const char *fname = "test_transact_rewrite_existing_truncate"; local
2473 const char *fname = "test_transact_rewrite_existing_set_size"; local
2533 const char *fname = "test_transact_resume_writes"; local
2702 const char *fname = "test_transact_writeRead"; local
2774 const char *fname = "test_transact_write_write_commit_commit"; local
2854 const char *fname = "test_transact_write_write_commit_discard"; local
2932 const char *fname = "test_transact_write_write_discard_commit"; local
2990 const char *fname = "test_transact_write_write_discard_Discard"; local
[all...]
/system/bt/bta/gatt/
H A Dbta_gattc_cache.cc1031 char fname[255] = {0}; local
1032 bta_gattc_generate_cache_file_name(fname, sizeof(fname),
1035 FILE* fd = fopen(fname, "rb");
1037 LOG(ERROR) << __func__ << ": can't open GATT cache file " << fname
1048 LOG(ERROR) << __func__ << ": can't read GATT cache version from: " << fname; local
1053 LOG(ERROR) << __func__ << ": wrong GATT cache version: " << fname; local
1059 << ": can't read number of GATT attributes: " << fname; local
1066 LOG(ERROR) << __func__ << "s: can't read GATT attributes: " << fname; local
1095 char fname[25 local
1101 << ": can't open GATT cache file for writing: " << fname; local
1107 LOG(ERROR) << __func__ << ": can't write GATT cache version: " << fname; local
1114 << ": can't write GATT cache attribute count: " << fname; local
1120 LOG(ERROR) << __func__ << ": can't write GATT cache attributes: " << fname; local
1142 char fname[255] = {0}; local
[all...]
/system/core/fs_mgr/
H A Dfs_mgr_verity.cpp297 static int check_verity_restart(const char *fname) argument
305 fd = TEMP_FAILURE_RETRY(open(fname, O_RDONLY | O_CLOEXEC));
309 PERROR << "Failed to open " << fname; local
315 PERROR << "Failed to fstat " << fname; local
326 PERROR << "Failed to lseek " << (intmax_t)(s.st_size - size) << " " << fname;
331 PERROR << "Failed to read " << size << " bytes from " << fname; local
388 static int metadata_find(const char *fname, const char *stag, argument
399 if (!fname) {
403 fp = fopen(fname, "r+");
406 PERROR << "Failed to open " << fname; local
413 PERROR << "Failed to read magic from " << fname; local
422 PERROR << "Failed to write magic to " << fname; local
428 PERROR << "Failed to add metadata to " << fname; local
453 PERROR << "Failed to seek " << fname; local
459 PERROR << "Failed to write metadata to " << fname; local
474 write_verity_state(const char *fname, off64_t offset, int32_t mode) argument
483 PERROR << "Failed to open " << fname; local
503 read_verity_state(const char *fname, off64_t offset, int *mode) argument
512 PERROR << "Failed to open " << fname; local
[all...]
/system/libvintf/
H A DAssembleVintf.cpp173 std::string fname = ::android::base::Basename(path); local
174 if (fname.size() <= gConfigPrefix.size() + gConfigSuffix.size() ||
175 !std::equal(gConfigPrefix.begin(), gConfigPrefix.end(), fname.begin()) ||
176 !std::equal(gConfigSuffix.rbegin(), gConfigSuffix.rend(), fname.rbegin())) {
180 std::string sub = fname.substr(gConfigPrefix.size(),
181 fname.size() - gConfigPrefix.size() - gConfigSuffix.size());
194 std::cerr << "'" << fname << "' (in " << path
/system/netd/server/
H A DBandwidthController.cpp541 const std::string fname = "/proc/net/xt_quota/" + iface; local
545 StatusOr<UniqueFile> file = sys.fopen(fname, "re");
593 const std::string fname = "/proc/net/xt_quota/" + quotaName; local
600 StatusOr<UniqueFile> file = sys.fopen(fname, "we");
/system/core/toolbox/
H A Dnewfs_msdos.c260 const char *fname, *dtype, *bname; local
360 fname = *argv++;
361 if (!opt_create && !strchr(fname, '/')) {
362 snprintf(buf, sizeof(buf), "%s%s", _PATH_DEV, fname);
363 if (!(fname = strdup(buf)))
376 fd = open(fname, O_RDWR | O_CREAT | O_TRUNC, 0644);
378 errx(1, "failed to create %s", fname);
381 } else if ((fd = open(fname, opt_N ? O_RDONLY : O_RDWR)) == -1)
382 err(1, "%s", fname);
384 err(1, "%s", fname);
752 check_mounted(const char *fname, mode_t mode) argument
798 getdiskinfo(int fd, const char *fname, const char *dtype, __unused int oflag,struct bpb *bpb) argument
848 getdiskinfo(int fd, const char *fname, const char *dtype, __unused int oflag, struct bpb *bpb) argument
956 ckgeom(const char *fname, u_int val, const char *msg) argument
[all...]
/system/vold/
H A Dcryptfs.cpp518 char *fname = NULL; local
523 if (get_crypt_ftr_info(&fname, &starting_off)) {
527 if (fname[0] != '/') {
531 if ( (fd = open(fname, O_RDWR | O_CREAT|O_CLOEXEC, 0600)) < 0) {
532 SLOGE("Cannot open footer file %s for put\n", fname);
666 char *fname = NULL; local
669 if (get_crypt_ftr_info(&fname, &starting_off)) {
673 if (fname[0] != '/') {
677 if ( (fd = open(fname, O_RDWR|O_CLOEXEC)) < 0) {
678 SLOGE("Cannot open footer file %s for get\n", fname);
770 char *fname; local
862 char *fname; local
[all...]

Completed in 517 milliseconds