/system/connectivity/shill/ |
H A D | file_reader.cc | 36 bool FileReader::Open(const FilePath& file_path) { argument 37 file_.reset(base::OpenFile(file_path, "rb"));
|
H A D | protobuf_lite_streams.cc | 32 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 D | connection_info_reader_unittest.cc | 73 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 D | socket_info_reader_unittest.cc | 89 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 D | unclean_shutdown_collector_test.cc | 74 void WriteStringToFile(const FilePath &file_path, argument 76 ASSERT_EQ(strlen(data), base::WriteFile(file_path, data, strlen(data)));
|
H A D | crash_reporter.cc | 72 static bool TouchFile(const FilePath &file_path) { argument 73 return base::WriteFile(file_path, "", 0) == 0;
|
H A D | kernel_collector_test.cc | 50 void WriteStringToFile(const FilePath &file_path, argument 52 ASSERT_EQ(strlen(data), base::WriteFile(file_path, data, strlen(data)));
|
H A D | user_collector_test.cc | 78 const FilePath &file_path) { 80 EXPECT_TRUE(base::ReadFileToString(file_path, &contents)); 77 ExpectFileEquals(const char *golden, const FilePath &file_path) argument
|
H A D | kernel_collector.cc | 87 void KernelCollector::OverridePreservedDumpPath(const FilePath &file_path) { argument 88 ramoops_dump_path_ = file_path;
|
/system/tools/aidl/ |
H A D | line_reader.cpp | 37 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 D | generate_cpp_unittest.cpp | 656 ASTTest(string file_path, string file_contents) argument 657 : file_path_(file_path),
|
H A D | generate_cpp.cpp | 749 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 D | file_fetcher.cc | 70 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 D | test_utils.cc | 316 ScopedLoopMounter::ScopedLoopMounter(const string& file_path, argument 324 new ScopedLoopbackDeviceBinder(file_path, true, &loop_dev));
|
/system/extras/puncture_fs/ |
H A D | puncture_fs.c | 78 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 D | buffet_config.cc | 219 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 D | manager.cc | 66 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 D | log_manager.cc | 108 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 D | logwrap.c | 294 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 D | perfprofdcore.cc | 626 std::string file_path = dest_dir + "/" + e->d_name; local 627 remove(file_path.c_str());
|