Home
last modified time | relevance | path

Searched refs:fname (Results 1 – 16 of 16) sorted by relevance

/system/core/trusty/storage/tests/
Dmain.cpp252 const char *fname = "test_create_delete_file"; in TEST_P() local
255 rc = storage_delete_file(session_, fname, STORAGE_OP_COMPLETE); in TEST_P()
260 rc = storage_delete_file(session_, fname, STORAGE_OP_COMPLETE); in TEST_P()
264 rc = storage_open_file(session_, &handle, fname, in TEST_P()
270 rc = storage_open_file(session_, &handle, fname, in TEST_P()
279 rc = storage_open_file(session_, &handle, fname, in TEST_P()
285 rc = storage_delete_file(session_, fname, STORAGE_OP_COMPLETE); in TEST_P()
289 rc = storage_delete_file(session_, fname, STORAGE_OP_COMPLETE); in TEST_P()
297 const char *fname = "delete_opened_test_file"; in TEST_P() local
300 rc = storage_delete_file(session_, fname, STORAGE_OP_COMPLETE); in TEST_P()
[all …]
/system/bt/bta/gatt/
Dbta_gattc_cache.cc712 char fname[255] = {0}; in bta_gattc_cache_load() local
713 bta_gattc_generate_cache_file_name(fname, sizeof(fname), p_srcb->server_bda); in bta_gattc_cache_load()
715 FILE* fd = fopen(fname, "rb"); in bta_gattc_cache_load()
717 LOG(ERROR) << __func__ << ": can't open GATT cache file " << fname in bta_gattc_cache_load()
727 LOG(ERROR) << __func__ << ": can't read GATT cache version from: " << fname; in bta_gattc_cache_load()
732 LOG(ERROR) << __func__ << ": wrong GATT cache version: " << fname; in bta_gattc_cache_load()
738 << ": can't read number of GATT attributes: " << fname; in bta_gattc_cache_load()
746 LOG(ERROR) << __func__ << "s: can't read GATT attributes: " << fname; in bta_gattc_cache_load()
772 char fname[255] = {0}; in bta_gattc_cache_write() local
773 bta_gattc_generate_cache_file_name(fname, sizeof(fname), server_bda); in bta_gattc_cache_write()
[all …]
/system/core/fastboot/fuzzy_fastboot/example/
Dvalidator.py24 script, command, fname = sys.argv
28 with open(fname, "rb") as fd:
/system/memory/libmemtrack/
Dmemtrack_test.cpp33 std::string fname = ::android::base::StringPrintf("/proc/%d/cmdline", pid); in getprocname() local
34 if (!::android::base::ReadFileToString(fname, name)) { in getprocname()
35 fprintf(stderr, "Failed to read cmdline from: %s\n", fname.c_str()); in getprocname()
/system/tools/hidl/c2hal/test/
Dbuild_all.py53 fname = header[:-2]
57 "-p", "android.hardware." + fname + "@1.0"]
/system/extras/verity/
DUtils.java213 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/vold/
Dcryptfs.cpp594 char* fname = NULL; in put_crypt_ftr_and_key() local
599 if (get_crypt_ftr_info(&fname, &starting_off)) { in put_crypt_ftr_and_key()
603 if (fname[0] != '/') { in put_crypt_ftr_and_key()
607 if ((fd = open(fname, O_RDWR | O_CREAT | O_CLOEXEC, 0600)) < 0) { in put_crypt_ftr_and_key()
608 SLOGE("Cannot open footer file %s for put\n", fname); in put_crypt_ftr_and_key()
734 char* fname = NULL; in get_crypt_ftr_and_key() local
737 if (get_crypt_ftr_info(&fname, &starting_off)) { in get_crypt_ftr_and_key()
741 if (fname[0] != '/') { in get_crypt_ftr_and_key()
745 if ((fd = open(fname, O_RDWR | O_CLOEXEC)) < 0) { in get_crypt_ftr_and_key()
746 SLOGE("Cannot open footer file %s for get\n", fname); in get_crypt_ftr_and_key()
[all …]
/system/core/fastboot/
Dusb_linux.cpp90 char fname[64]; member
379 strcpy(usb->fname, devname); in find_usb_device()
459 DBG("[ usb read %d fd = %d], fname=%s\n", xfer, handle_->desc, handle_->fname); in Read()
461 DBG("[ usb read %d ] = %d, fname=%s, Retry %d \n", xfer, n, handle_->fname, retry); in Read()
519 if (access(handle_->fname, F_OK)) return 0; in WaitForDisconnect()
Dfastboot.cpp922 static bool load_buf(const char* fname, struct fastboot_buffer* buf) { in load_buf() argument
923 unique_fd fd(TEMP_FAILURE_RETRY(open(fname, O_RDONLY | O_BINARY))); in load_buf()
1243 static void do_flash(const char* pname, const char* fname) { in do_flash() argument
1246 if (!load_buf(fname, &buf)) { in do_flash()
1247 die("cannot load '%s': %s", fname, strerror(errno)); in do_flash()
2042 std::string fname; in Main() local
2044 fname = next_arg(&args); in Main()
2046 fname = find_item(pname); in Main()
2048 if (fname.empty()) die("cannot determine image filename for '%s'", pname.c_str()); in Main()
2061 do_flash(partition.c_str(), fname.c_str()); in Main()
/system/memory/libmeminfo/tools/
Dprocrank.cpp57 std::string fname = ::android::base::StringPrintf("/proc/%d/oom_score_adj", pid); in ProcessRecord() local
59 std::unique_ptr<FILE, decltype(&fclose)>{fopen(fname.c_str(), "re"), fclose}; in ProcessRecord()
61 std::cerr << "Failed to open oom_score_adj file: " << fname << std::endl; in ProcessRecord()
66 std::cerr << "Failed to read oomadj from: " << fname << std::endl; in ProcessRecord()
70 fname = ::android::base::StringPrintf("/proc/%d/cmdline", pid); in ProcessRecord()
71 if (!::android::base::ReadFileToString(fname, &cmdline_)) { in ProcessRecord()
72 std::cerr << "Failed to read cmdline from: " << fname << std::endl; in ProcessRecord()
Dlibrank.cpp94 std::string fname = ::android::base::StringPrintf("/proc/%d/cmdline", pid); in ProcessRecord() local
96 if (!::android::base::ReadFileToString(fname, &cmdline)) { in ProcessRecord()
97 fprintf(stderr, "Failed to read cmdline from: %s\n", fname.c_str()); in ProcessRecord()
/system/libvintf/
DAssembleVintf.cpp177 auto fname = ::android::base::Basename(path); in isConditionalConfig() local
178 return ::android::base::StartsWith(fname, gConfigPrefix) && in isConditionalConfig()
179 ::android::base::EndsWith(fname, gConfigSuffix); in isConditionalConfig()
195 auto fname = ::android::base::Basename(path); in generateCondition() local
196 std::string sub = fname.substr(gConfigPrefix.size(), in generateCondition()
197 fname.size() - gConfigPrefix.size() - gConfigSuffix.size()); in generateCondition()
210 std::cerr << "'" << fname << "' (in " << path in generateCondition()
/system/netd/server/
DBandwidthController.cpp577 const std::string fname = "/proc/net/xt_quota/" + iface; in getInterfaceQuota() local
581 StatusOr<UniqueFile> file = sys.fopen(fname, "re"); in getInterfaceQuota()
628 const std::string fname = "/proc/net/xt_quota/" + quotaName; in updateQuota() local
635 StatusOr<UniqueFile> file = sys.fopen(fname, "we"); in updateQuota()
/system/core/fastboot/fuzzy_fastboot/
Dfixtures.cpp89 std::string fname(device_path.begin() + prefix.size(), device_path.end()); in UsbStillAvailible() local
91 android::base::StringPrintf("/sys/bus/usb/devices/%s/serial", fname.c_str()); in UsbStillAvailible()
Dmain.cpp1318 const auto flash_part = [&](const std::string fname, const std::string part_name) { in TEST_P() argument
1319 FILE* to_flash = fopen((SEARCH_PATH + fname).c_str(), "rb"); in TEST_P()
1320 ASSERT_NE(to_flash, nullptr) << "'" << fname << "'" in TEST_P()
1324 ASSERT_GT(fsize, 0) << fname + " appears to be an empty image"; in TEST_P()
/system/bpf/libbpf_android/
DLoader.cpp415 string fname = pathToFilename(string(elfPath), true); in createMaps() local
432 mapPinLoc = string(BPF_FS_PATH) + "map_" + fname + "_" + string(mapNames[i]); in createMaps()
540 string fname = pathToFilename(string(elfPath), true); in loadCodeSections() local
563 progPinLoc += fname; in loadCodeSections()