Searched defs:fname (Results 1 - 10 of 10) 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.cpp832 static bool load_buf(Transport* transport, const char* fname, struct fastboot_buffer* buf) { argument
833 int fd = open(fname, O_RDONLY | O_BINARY);
1031 static void do_flash(Transport* transport, const char* pname, const char* fname) { argument
1034 if (!load_buf(transport, fname, &buf)) {
1035 die("cannot load '%s': %s", fname, strerror(errno));
1164 std::string fname; local
1169 fname = find_item("info", product);
1170 if (fname.empty()) die("cannot find android-info.txt");
1173 void* data = load_file(fname.c_str(), &sz);
1201 fname
1715 std::string fname; local
[all...]
/system/core/trusty/storage/tests/
H A Dmain.cpp253 const char *fname = "test_create_delete_file"; local
256 rc = storage_delete_file(session_, fname, STORAGE_OP_COMPLETE);
261 rc = storage_delete_file(session_, fname, STORAGE_OP_COMPLETE);
265 rc = storage_open_file(session_, &handle, fname,
271 rc = storage_open_file(session_, &handle, fname,
280 rc = storage_open_file(session_, &handle, fname,
286 rc = storage_delete_file(session_, fname, STORAGE_OP_COMPLETE);
290 rc = storage_delete_file(session_, fname, STORAGE_OP_COMPLETE);
298 const char *fname = "delete_opened_test_file"; local
301 rc = storage_delete_file(session_, fname, STORAGE_OP_COMPLET
335 const char *fname = "test_open_no_create_file"; local
369 const char *fname = "test_open_create_file"; local
397 const char *fname = "ABCDEFGHIJKLMNOPQRSTUVWXYZ-abcdefghijklmnopqrstuvwxyz_01234.56789"; local
424 const char *fname = "test_write_read_sequential"; local
466 const char *fname = "test_open_truncate"; local
509 const char *fname = "test_open_same_file"; local
592 const char *fname = "test_read_eof"; local
638 const char *fname = "test_get_file_size"; local
681 const char *fname = "test_set_file_size"; local
797 const char *fname = "test_write_at_offset"; local
823 const char *fname = "test_write_sparse"; local
848 const char *fname = "test_persistent_32K_file"; local
868 const char *fname = "test_persistent_32K_file"; local
889 const char *fname = "test_persistent_32K_file"; local
900 const char *fname = "test_persistent_1M_file"; local
920 const char *fname = "test_persistent_1M_file"; local
941 const char *fname = "test_persistent_1M_file"; local
961 const char *fname = "test_persistent_1M_file"; local
981 const char *fname = "test_persistent_1M_file"; local
998 const char *fname = "test_persistent_1M_file"; local
1015 const char *fname = "test_persistent_1M_file"; local
1032 const char *fname = "test_persistent_1M_file"; local
1047 const char *fname = "test_persistent_1M_file"; local
1057 const char *fname = "test_write_read_long"; local
1127 const char *fname = "test_invalid_file_handle"; local
1242 const char *fname = "test_transact_discard_write"; local
1286 const char *fname = "test_transact_write_append"; local
1331 const char *fname = "test_transact_discard_write_read"; local
1450 const char *fname = "test_transact_discard_truncate"; local
1499 const char *fname = "test_transact_discard_set_size"; local
1554 const char *fname = "test_transact_discard_delete"; local
1601 const char *fname = "test_transact_discard_delete"; local
1644 const char *fname = "test_transact_discard_create_excl"; local
1672 const char *fname = "test_transact_commit_writes"; local
1750 const char *fname = "test_transact_commit_writes2"; local
1858 const char *fname = "test_transact_commit_set_size"; local
1949 const char *fname = "test_transact_commit_delete"; local
2007 const char *fname = "test_transact_commit_truncate"; local
2085 const char *fname = "test_transact_commit_create"; local
2336 const char *fname = "test_transact_delete_create"; local
2426 const char *fname = "test_transact_rewrite_existing_truncate"; local
2474 const char *fname = "test_transact_rewrite_existing_set_size"; local
2534 const char *fname = "test_transact_resume_writes"; local
2703 const char *fname = "test_transact_writeRead"; local
2775 const char *fname = "test_transact_write_write_commit_commit"; local
2855 const char *fname = "test_transact_write_write_commit_discard"; local
2933 const char *fname = "test_transact_write_write_discard_commit"; local
2991 const char *fname = "test_transact_write_write_discard_Discard"; 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
385 static int metadata_find(const char *fname, const char *stag, argument
396 if (!fname) {
400 fp = fopen(fname, "r+");
403 PERROR << "Failed to open " << fname; local
410 PERROR << "Failed to read magic from " << fname; local
419 PERROR << "Failed to write magic to " << fname; local
425 PERROR << "Failed to add metadata to " << fname; local
450 PERROR << "Failed to seek " << fname; local
456 PERROR << "Failed to write metadata to " << fname; local
471 write_verity_state(const char *fname, off64_t offset, int32_t mode) argument
480 PERROR << "Failed to open " << fname; local
500 read_verity_state(const char *fname, off64_t offset, int *mode) argument
509 PERROR << "Failed to open " << fname; local
[all...]
/system/bt/bta/gatt/
H A Dbta_gattc_cache.cc1428 char fname[255] = {0}; local
1429 bta_gattc_generate_cache_file_name(fname, sizeof(fname),
1432 FILE* fd = fopen(fname, "rb");
1435 __func__, fname, strerror(errno));
1446 fname);
1451 APPL_TRACE_ERROR("%s: wrong GATT cache version: %s", __func__, fname);
1457 fname);
1464 APPL_TRACE_ERROR("%s: can't read GATT attributes: %s", __func__, fname);
1493 char fname[25 local
1541 char fname[255] = {0}; local
[all...]
/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/netd/server/
H A DBandwidthController.cpp666 char *fname; local
672 asprintf(&fname, "/proc/net/xt_quota/%s", costName);
673 fp = fopen(fname, "re");
674 free(fname);
720 char *fname; local
727 asprintf(&fname, "/proc/net/xt_quota/%s", quotaName);
728 fp = fopen(fname, "we");
729 free(fname);
/system/vold/
H A Dcryptfs.cpp362 char *fname = NULL; local
367 if (get_crypt_ftr_info(&fname, &starting_off)) {
371 if (fname[0] != '/') {
375 if ( (fd = open(fname, O_RDWR | O_CREAT|O_CLOEXEC, 0600)) < 0) {
376 SLOGE("Cannot open footer file %s for put\n", fname);
510 char *fname = NULL; local
513 if (get_crypt_ftr_info(&fname, &starting_off)) {
517 if (fname[0] != '/') {
521 if ( (fd = open(fname, O_RDWR|O_CLOEXEC)) < 0) {
522 SLOGE("Cannot open footer file %s for get\n", fname);
603 char *fname; local
695 char *fname; local
[all...]

Completed in 461 milliseconds