Home
last modified time | relevance | path

Searched refs:fname (Results 1 – 14 of 14) 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/memory/libmeminfo/libsmapinfo/
Dprocessrecord.cpp52 std::string fname = StringPrintf("/proc/%d/cmdline", pid); in ProcessRecord() local
53 if (!::android::base::ReadFileToString(fname, &cmdline_)) { in ProcessRecord()
54 err << "Failed to read cmdline from: " << fname << "\n"; in ProcessRecord()
67 fname = StringPrintf("/proc/%d/comm", pid); in ProcessRecord()
68 if (!::android::base::ReadFileToString(fname, &cmdline_)) { in ProcessRecord()
69 err << "Failed to read comm from: " << fname << "\n"; in ProcessRecord()
82 std::string fname = StringPrintf("/proc/%d/oom_score_adj", pid); in ProcessRecord() local
84 if (!::android::base::ReadFileToString(fname, &oom_score)) { in ProcessRecord()
85 err << "Failed to read oom_score_adj file: " << fname << "\n"; in ProcessRecord()
89 err << "Failed to parse oomadj from: " << fname << "\n"; in ProcessRecord()
/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/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()
Dtask.h48 FlashTask(const std::string& slot, const std::string& pname, const std::string& fname,
Dfastboot.cpp1073 static bool load_buf(const char* fname, struct fastboot_buffer* buf) { in load_buf() argument
1074 unique_fd fd(TEMP_FAILURE_RETRY(open(fname, O_RDONLY | O_BINARY))); in load_buf()
1077 auto path = find_item_given_name(fname); in load_buf()
1488 void do_flash(const char* pname, const char* fname, const bool apply_vbmeta) { in do_flash() argument
1489 verbose("Do flash %s %s", pname, fname); in do_flash()
1492 if (!load_buf(fname, &buf)) { in do_flash()
1493 die("cannot load '%s': %s", fname, strerror(errno)); in do_flash()
2480 std::string fname; in Main() local
2482 fname = next_arg(&args); in Main()
2484 fname = find_item(pname); in Main()
[all …]
Dfastboot.h127 void do_flash(const char* pname, const char* fname, const bool apply_vbmeta);
/system/libvintf/
DAssembleVintf.cpp178 auto fname = ::android::base::Basename(path); in isConditionalConfig() local
179 return ::android::base::StartsWith(fname, gConfigPrefix) && in isConditionalConfig()
180 ::android::base::EndsWith(fname, gConfigSuffix); in isConditionalConfig()
196 auto fname = ::android::base::Basename(path); in generateCondition() local
197 std::string sub = fname.substr(gConfigPrefix.size(), in generateCondition()
198 fname.size() - gConfigPrefix.size() - gConfigSuffix.size()); in generateCondition()
211 err() << "'" << fname << "' (in " << path in generateCondition()
/system/netd/server/
DBandwidthController.cpp482 const std::string fname = "/proc/net/xt_quota/" + iface; in getInterfaceQuota() local
486 StatusOr<UniqueFile> file = sys.fopen(fname, "re"); in getInterfaceQuota()
533 const std::string fname = "/proc/net/xt_quota/" + quotaName; in updateQuota() local
540 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.cpp1473 const auto flash_part = [&](const std::string fname, const std::string part_name) { in TEST_P() argument
1474 FILE* to_flash = fopen((SEARCH_PATH + fname).c_str(), "rb"); in TEST_P()
1475 ASSERT_NE(to_flash, nullptr) << "'" << fname << "'" in TEST_P()
1479 ASSERT_GT(fsize, 0) << fname + " appears to be an empty image"; in TEST_P()