Searched defs:file_path (Results 1 - 20 of 20) sorted by relevance

/system/connectivity/shill/
H A Dfile_reader.cc36 bool FileReader::Open(const FilePath& file_path) { argument
37 file_.reset(base::OpenFile(file_path, "rb"));
H A Dprotobuf_lite_streams.cc32 const string& file_path) {
33 int fd = HANDLE_EINTR(open(file_path.c_str(), O_RDONLY));
36 << "Could not load protobuf file [" << file_path << "] "; local
31 protobuf_lite_file_input_stream( const string& file_path) argument
H A Dconnection_info_reader_unittest.cc73 const FilePath& dir_path, FilePath* file_path) {
74 ASSERT_TRUE(base::CreateTemporaryFileInDir(dir_path, file_path));
78 ASSERT_TRUE(base::AppendToFile(*file_path, line.data(), line.size()));
72 CreateConnectionInfoFile(const char** lines, size_t num_lines, const FilePath& dir_path, FilePath* file_path) argument
H A Dsocket_info_reader_unittest.cc89 const FilePath& dir_path, FilePath* file_path) {
90 ASSERT_TRUE(base::CreateTemporaryFileInDir(dir_path, file_path));
94 ASSERT_TRUE(base::AppendToFile(*file_path, line.data(), line.size()));
170 FilePath file_path("/non-existent-file");
173 EXPECT_FALSE(reader_.AppendSocketInfo(file_path, &info_list));
179 CreateSocketInfoFile(kIPv4SocketInfoLines, 1, temp_dir.path(), &file_path);
180 EXPECT_TRUE(reader_.AppendSocketInfo(file_path, &info_list));
217 temp_dir.path(), &file_path);
218 EXPECT_TRUE(reader_.AppendSocketInfo(file_path, &info_list));
224 temp_dir.path(), &file_path);
88 CreateSocketInfoFile(const char** lines, size_t num_lines, const FilePath& dir_path, FilePath* file_path) argument
[all...]
/system/core/crash_reporter/
H A Dunclean_shutdown_collector_test.cc74 void WriteStringToFile(const FilePath &file_path, argument
76 ASSERT_EQ(strlen(data), base::WriteFile(file_path, data, strlen(data)));
H A Dcrash_reporter.cc72 static bool TouchFile(const FilePath &file_path) { argument
73 return base::WriteFile(file_path, "", 0) == 0;
H A Dkernel_collector_test.cc50 void WriteStringToFile(const FilePath &file_path, argument
52 ASSERT_EQ(strlen(data), base::WriteFile(file_path, data, strlen(data)));
H A Duser_collector_test.cc78 const FilePath &file_path) {
80 EXPECT_TRUE(base::ReadFileToString(file_path, &contents));
77 ExpectFileEquals(const char *golden, const FilePath &file_path) argument
H A Dkernel_collector.cc87 void KernelCollector::OverridePreservedDumpPath(const FilePath &file_path) { argument
88 ramoops_dump_path_ = file_path;
/system/tools/aidl/
H A Dline_reader.cpp37 bool Init(const std::string& file_path) { argument
38 input_stream_.open(file_path, ifstream::in | ifstream::binary);
77 unique_ptr<LineReader> LineReader::ReadFromFile(const string& file_path) { argument
80 if (file_reader->Init(file_path)) {
H A Dgenerate_cpp_unittest.cpp656 ASTTest(string file_path, string file_contents) argument
657 : file_path_(file_path),
H A Dgenerate_cpp.cpp749 string file_path = interface.GetPackage(); local
750 for (char& c: file_path) {
755 if (!file_path.empty()) {
756 file_path += (use_os_sep) ? OS_PATH_SEPARATOR : '/';
758 file_path += ClassName(interface, class_type);
759 file_path += ".h";
761 return file_path;
/system/update_engine/common/
H A Dfile_fetcher.cc70 string file_path = url.substr(strlen("file://")); local
72 brillo::FileStream::Open(base::FilePath(file_path),
78 LOG(ERROR) << "Couldn't open " << file_path;
H A Dtest_utils.cc316 ScopedLoopMounter::ScopedLoopMounter(const string& file_path, argument
324 new ScopedLoopbackDeviceBinder(file_path, true, &loop_dev));
/system/extras/puncture_fs/
H A Dpuncture_fs.c78 char file_path[FILENAME_MAX]; local
83 sprintf(file_path, "%s/file_%lu", dir_path, id);
84 fd = open(file_path, O_WRONLY | O_CREAT | O_SYNC, 0777);
90 fprintf(stderr, "\nerrno: %d. Failed to create %s\n", errno, file_path);
98 errno, base_length, file_path);
108 errno, size - length, file_path);
115 fprintf(stderr, "\nFailed to close %s\n", file_path);
/system/weaved/buffet/
H A Dbuffet_config.cc219 bool BuffetConfig::LoadFile(const base::FilePath& file_path, argument
222 if (!file_io_->ReadFile(file_path, data)) {
226 file_path.value().c_str());
H A Dmanager.cc66 bool LoadFile(const base::FilePath& file_path, argument
69 if (!base::ReadFileToString(file_path, data)) {
73 file_path.value().c_str());
/system/webservd/webservd/
H A Dlog_manager.cc108 base::FilePath file_path = log_directory_.Append(file_name); variable
110 bool exists = base::PathExists(file_path);
116 bool got_size = base::GetFileSize(file_path, &file_size);
122 success = base::AppendToFile(file_path, entry.data(), entry.size());
125 success = (base::WriteFile(file_path, entry.data(), size) == size);
132 << file_path.value();
154 base::FilePath file_path = log_directory_.Append(file_name); local
155 if (base::Move(file_path, archive_file_path)) {
160 << file_path.value() << " to "
/system/core/logwrapper/
H A Dlogwrap.c294 int *chld_sts, int log_target, bool abbreviated, char *file_path,
332 if ((log_target & LOG_FILE) && !file_path) {
333 /* No file_path specified, clear the LOG_FILE bit */
338 fd = open(file_path, O_WRONLY | O_CREAT, 0664);
340 ERROR("Cannot log to file %s\n", file_path);
485 int log_target, bool abbreviated, char *file_path,
581 abbreviated, file_path, opts, opts_len);
293 parent(const char *tag, int parent_read, pid_t pid, int *chld_sts, int log_target, bool abbreviated, char *file_path, const struct AndroidForkExecvpOption* opts, size_t opts_len) argument
484 android_fork_execvp_ext(int argc, char* argv[], int *status, bool ignore_int_quit, int log_target, bool abbreviated, char *file_path, const struct AndroidForkExecvpOption* opts, size_t opts_len) argument
/system/extras/perfprofd/
H A Dperfprofdcore.cc626 std::string file_path = dest_dir + "/" + e->d_name; local
627 remove(file_path.c_str());

Completed in 305 milliseconds