Home
last modified time | relevance | path

Searched refs:out_fd (Results 1 – 6 of 6) sorted by relevance

/frameworks/native/cmds/dumpstate/
DDumpstateInternal.cpp134 int DumpFileFromFdToFd(const std::string& title, const std::string& path_string, int fd, int out_fd, in DumpFileFromFdToFd() argument
138 dprintf(out_fd, "------ %s (%s", title.c_str(), path); in DumpFileFromFdToFd()
149 dprintf(out_fd, ": %s", stamp); in DumpFileFromFdToFd()
151 dprintf(out_fd, ") ------\n"); in DumpFileFromFdToFd()
152 fsync(out_fd); in DumpFileFromFdToFd()
155 if (out_fd != STDOUT_FILENO) { in DumpFileFromFdToFd()
157 dprintf(out_fd, "%s: skipped on dry run\n", path); in DumpFileFromFdToFd()
159 dprintf(out_fd, "\t(skipped on dry run)\n"); in DumpFileFromFdToFd()
161 fsync(out_fd); in DumpFileFromFdToFd()
170 dprintf(out_fd, "*** %s: poll failed: %s\n", path, strerror(errno)); in DumpFileFromFdToFd()
[all …]
DDumpstateUtil.cpp205 int DumpFileToFd(int out_fd, const std::string& title, const std::string& path) { in DumpFileToFd() argument
210 dprintf(out_fd, "*** Error dumping %s: %s\n", path.c_str(), strerror(err)); in DumpFileToFd()
212 dprintf(out_fd, "*** Error dumping %s (%s): %s\n", path.c_str(), title.c_str(), in DumpFileToFd()
215 fsync(out_fd); in DumpFileToFd()
218 return DumpFileFromFdToFd(title, path, fd.get(), out_fd, PropertiesHelper::IsDryRun()); in DumpFileToFd()
DDumpstateInternal.h59 int DumpFileFromFdToFd(const std::string& title, const std::string& path_string, int fd, int out_fd,
Ddumpstate.cpp211 bool CopyFile(int in_fd, int out_fd) { in CopyFile() argument
215 if (!android::base::WriteFully(out_fd, buf, byte_count)) { in CopyFile()
222 static bool CopyFileToFd(const std::string& input_file, int out_fd) { in CopyFileToFd() argument
223 MYLOGD("Going to copy file (%s) to %d\n", input_file.c_str(), out_fd); in CopyFileToFd()
227 if (out_fd != -1 && in_fd.get() != -1) { in CopyFileToFd()
228 if (CopyFile(in_fd.get(), out_fd)) { in CopyFileToFd()
/frameworks/ml/nn/tools/test_generator/
Dspec_visualizer.py237 with open(out_file, "w") as out_fd:
238 out_fd.write(Template(html_template).substitute(
/frameworks/native/cmds/installd/
Ddexopt.cpp1050 unique_fd out_fd(open_reference_profile(packageUid, in copy_system_profile() local
1059 if (out_fd.get() < 0) { in copy_system_profile()
1071 if (flock(out_fd.get(), LOCK_EX | LOCK_NB) != 0) { in copy_system_profile()
1085 bool truncated = ftruncate(out_fd.get(), 0) == 0; in copy_system_profile()
1098 write(out_fd.get(), buffer, bytes); in copy_system_profile()
1100 if (flock(out_fd.get(), LOCK_UN) != 0) { in copy_system_profile()