/system/extras/verity/ |
H A D | Utils.java | 213 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 D | util.c | 64 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 D | usb_linux.cpp | 88 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 D | fastboot.cpp | 849 static bool load_buf(Transport* transport, const char* fname, struct fastboot_buffer* buf) { argument 850 unique_fd fd(TEMP_FAILURE_RETRY(open(fname, O_RDONLY | O_BINARY))); 1103 static void do_flash(Transport* transport, const char* pname, const char* fname) { argument 1106 if (!load_buf(transport, fname, &buf)) { 1107 die("cannot load '%s': %s", fname, strerror(errno)); 1236 std::string fname; local 1241 fname = find_item_given_name("android-info.txt"); 1242 if (fname.empty()) die("cannot find android-info.txt"); 1245 void* data = load_file(fname.c_str(), &sz); 1273 fname 1758 std::string fname; local [all...] |
/system/core/trusty/storage/tests/ |
H A D | main.cpp | 253 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 D | fs_mgr_verity.cpp | 297 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 D | assemble_vintf.cpp | 78 std::string fname = ::android::base::Basename(path); local 79 if (fname.size() <= gConfigPrefix.size() + gConfigSuffix.size() || 80 !std::equal(gConfigPrefix.begin(), gConfigPrefix.end(), fname.begin()) || 81 !std::equal(gConfigSuffix.rbegin(), gConfigSuffix.rend(), fname.rbegin())) { 85 std::string sub = fname.substr(gConfigPrefix.size(), 86 fname.size() - gConfigPrefix.size() - gConfigSuffix.size()); 99 std::cerr << "'" << fname << "' (in " << path
|
/system/bt/bta/gatt/ |
H A D | bta_gattc_cache.cc | 1433 char fname[255] = {0}; local 1434 bta_gattc_generate_cache_file_name(fname, sizeof(fname), 1437 FILE* fd = fopen(fname, "rb"); 1440 __func__, fname, strerror(errno)); 1451 fname); 1456 APPL_TRACE_ERROR("%s: wrong GATT cache version: %s", __func__, fname); 1462 fname); 1467 APPL_TRACE_ERROR("%s: more than 0xFFFF GATT attributes: %s", __func__, fname); 1474 APPL_TRACE_ERROR("%s: can't read GATT attributes: %s", __func__, fname); 1503 char fname[255] = {0}; local 1551 char fname[255] = {0}; local [all...] |
/system/core/toolbox/ |
H A D | newfs_msdos.c | 260 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 D | BandwidthController.cpp | 471 const std::string fname = "/proc/net/xt_quota/" + iface; local 475 StatusOr<UniqueFile> file = sys.fopen(fname, "re"); 522 const std::string fname = "/proc/net/xt_quota/" + quotaName; local 529 StatusOr<UniqueFile> file = sys.fopen(fname, "we");
|
/system/vold/ |
H A D | cryptfs.cpp | 363 char *fname = NULL; local 368 if (get_crypt_ftr_info(&fname, &starting_off)) { 372 if (fname[0] != '/') { 376 if ( (fd = open(fname, O_RDWR | O_CREAT|O_CLOEXEC, 0600)) < 0) { 377 SLOGE("Cannot open footer file %s for put\n", fname); 511 char *fname = NULL; local 514 if (get_crypt_ftr_info(&fname, &starting_off)) { 518 if (fname[0] != '/') { 522 if ( (fd = open(fname, O_RDWR|O_CLOEXEC)) < 0) { 523 SLOGE("Cannot open footer file %s for get\n", fname); 604 char *fname; local 696 char *fname; local [all...] |