/system/core/trusty/storage/tests/ |
D | main.cpp | 253 const char *fname = "test_create_delete_file"; in TEST_P() local 256 rc = storage_delete_file(session_, fname, STORAGE_OP_COMPLETE); in TEST_P() 261 rc = storage_delete_file(session_, fname, STORAGE_OP_COMPLETE); in TEST_P() 265 rc = storage_open_file(session_, &handle, fname, in TEST_P() 271 rc = storage_open_file(session_, &handle, fname, in TEST_P() 280 rc = storage_open_file(session_, &handle, fname, in TEST_P() 286 rc = storage_delete_file(session_, fname, STORAGE_OP_COMPLETE); in TEST_P() 290 rc = storage_delete_file(session_, fname, STORAGE_OP_COMPLETE); in TEST_P() 298 const char *fname = "delete_opened_test_file"; in TEST_P() local 301 rc = storage_delete_file(session_, fname, STORAGE_OP_COMPLETE); in TEST_P() [all …]
|
/system/core/fs_mgr/ |
D | fs_mgr_verity.cpp | 297 static int check_verity_restart(const char *fname) in check_verity_restart() argument 305 fd = TEMP_FAILURE_RETRY(open(fname, O_RDONLY | O_CLOEXEC)); in check_verity_restart() 309 PERROR << "Failed to open " << fname; in check_verity_restart() 315 PERROR << "Failed to fstat " << fname; in check_verity_restart() 326 PERROR << "Failed to lseek " << (intmax_t)(s.st_size - size) << " " << fname; in check_verity_restart() 331 PERROR << "Failed to read " << size << " bytes from " << fname; in check_verity_restart() 385 static int metadata_find(const char *fname, const char *stag, in metadata_find() argument 396 if (!fname) { in metadata_find() 400 fp = fopen(fname, "r+"); in metadata_find() 403 PERROR << "Failed to open " << fname; in metadata_find() [all …]
|
/system/core/toolbox/ |
D | newfs_msdos.c | 260 const char *fname, *dtype, *bname; in newfs_msdos_main() local 360 fname = *argv++; in newfs_msdos_main() 361 if (!opt_create && !strchr(fname, '/')) { in newfs_msdos_main() 362 snprintf(buf, sizeof(buf), "%s%s", _PATH_DEV, fname); in newfs_msdos_main() 363 if (!(fname = strdup(buf))) in newfs_msdos_main() 376 fd = open(fname, O_RDWR | O_CREAT | O_TRUNC, 0644); in newfs_msdos_main() 378 errx(1, "failed to create %s", fname); in newfs_msdos_main() 381 } else if ((fd = open(fname, opt_N ? O_RDONLY : O_RDWR)) == -1) in newfs_msdos_main() 382 err(1, "%s", fname); in newfs_msdos_main() 384 err(1, "%s", fname); in newfs_msdos_main() [all …]
|
/system/bt/bta/gatt/ |
D | bta_gattc_cache.cc | 1428 char fname[255] = {0}; in bta_gattc_cache_load() local 1429 bta_gattc_generate_cache_file_name(fname, sizeof(fname), in bta_gattc_cache_load() 1432 FILE* fd = fopen(fname, "rb"); in bta_gattc_cache_load() 1435 __func__, fname, strerror(errno)); in bta_gattc_cache_load() 1446 fname); in bta_gattc_cache_load() 1451 APPL_TRACE_ERROR("%s: wrong GATT cache version: %s", __func__, fname); in bta_gattc_cache_load() 1457 fname); in bta_gattc_cache_load() 1464 APPL_TRACE_ERROR("%s: can't read GATT attributes: %s", __func__, fname); in bta_gattc_cache_load() 1493 char fname[255] = {0}; in bta_gattc_cache_write() local 1494 bta_gattc_generate_cache_file_name(fname, sizeof(fname), server_bda); in bta_gattc_cache_write() [all …]
|
/system/tools/hidl/c2hal/test/ |
D | build_all.py | 53 fname = header[:-2] 57 "-p", "android.hardware." + fname + "@1.0"]
|
/system/extras/verity/ |
D | Utils.java | 213 static X509Certificate loadPEMCertificate(String fname) throws Exception { in loadPEMCertificate() argument 214 try (FileInputStream fis = new FileInputStream(fname)) { in loadPEMCertificate() 281 static byte[] read(String fname) throws Exception { in read() argument 283 File f = new File(fname); in read() 294 static void write(byte[] data, String fname) throws Exception{ in write() argument 295 FileOutputStream out = new FileOutputStream(fname); in write()
|
/system/core/fastboot/ |
D | usb_linux.cpp | 88 char fname[64]; member 367 strcpy(usb->fname, devname); in find_usb_device() 443 DBG("[ usb read %d fd = %d], fname=%s\n", xfer, handle_->desc, handle_->fname); in Read() 445 DBG("[ usb read %d ] = %d, fname=%s, Retry %d \n", xfer, n, handle_->fname, retry); in Read() 494 if (access(handle_->fname, F_OK)) return 0; in WaitForDisconnect()
|
D | fastboot.cpp | 832 static bool load_buf(Transport* transport, const char* fname, struct fastboot_buffer* buf) { in load_buf() argument 833 int fd = open(fname, O_RDONLY | O_BINARY); in load_buf() 1031 static void do_flash(Transport* transport, const char* pname, const char* fname) { in do_flash() argument 1034 if (!load_buf(transport, fname, &buf)) { in do_flash() 1035 die("cannot load '%s': %s", fname, strerror(errno)); in do_flash() 1164 std::string fname; in do_flashall() local 1169 fname = find_item("info", product); in do_flashall() 1170 if (fname.empty()) die("cannot find android-info.txt"); in do_flashall() 1173 void* data = load_file(fname.c_str(), &sz); in do_flashall() 1201 fname = find_item_given_name(images[i].img_name, product); in do_flashall() [all …]
|
/system/vold/ |
D | cryptfs.cpp | 362 char *fname = NULL; in put_crypt_ftr_and_key() local 367 if (get_crypt_ftr_info(&fname, &starting_off)) { in put_crypt_ftr_and_key() 371 if (fname[0] != '/') { in put_crypt_ftr_and_key() 375 if ( (fd = open(fname, O_RDWR | O_CREAT|O_CLOEXEC, 0600)) < 0) { in put_crypt_ftr_and_key() 376 SLOGE("Cannot open footer file %s for put\n", fname); in put_crypt_ftr_and_key() 510 char *fname = NULL; in get_crypt_ftr_and_key() local 513 if (get_crypt_ftr_info(&fname, &starting_off)) { in get_crypt_ftr_and_key() 517 if (fname[0] != '/') { in get_crypt_ftr_and_key() 521 if ( (fd = open(fname, O_RDWR|O_CLOEXEC)) < 0) { in get_crypt_ftr_and_key() 522 SLOGE("Cannot open footer file %s for get\n", fname); in get_crypt_ftr_and_key() [all …]
|
/system/netd/server/ |
D | BandwidthController.cpp | 666 char *fname; in getInterfaceQuota() local 672 asprintf(&fname, "/proc/net/xt_quota/%s", costName); in getInterfaceQuota() 673 fp = fopen(fname, "re"); in getInterfaceQuota() 674 free(fname); in getInterfaceQuota() 720 char *fname; in updateQuota() local 727 asprintf(&fname, "/proc/net/xt_quota/%s", quotaName); in updateQuota() 728 fp = fopen(fname, "we"); in updateQuota() 729 free(fname); in updateQuota()
|
/system/core/toolbox/upstream-netbsd/usr.bin/grep/ |
D | util.c | 64 file_matching(const char *fname) in file_matching() argument 71 fname_copy = grep_strdup(fname); in file_matching() 75 if (fnmatch(fpattern[i].pat, fname, 0) == 0 || in file_matching()
|
D | grep.h | 140 bool file_matching(const char *fname);
|