Searched defs:file_contents (Results 1 - 7 of 7) sorted by relevance

/system/core/init/
H A Dutil_test.cpp34 auto file_contents = ReadFile("/proc/does-not-exist"); local
36 ASSERT_FALSE(file_contents);
37 EXPECT_EQ("open() failed: No such file or directory", file_contents.error_string());
46 auto file_contents = ReadFile(tf.path); local
47 ASSERT_FALSE(file_contents) << strerror(errno);
48 EXPECT_EQ("Skipping insecure file", file_contents.error_string());
57 auto file_contents = ReadFile(tf.path); local
58 ASSERT_FALSE(file_contents) << strerror(errno);
59 EXPECT_EQ("Skipping insecure file", file_contents.error_string());
65 auto file_contents local
72 auto file_contents = ReadFile("/proc/version"); local
102 auto file_contents = ReadFile(path); local
117 auto file_contents = ReadFile(tf.path); local
[all...]
H A Dpersistent_properties.cpp150 auto file_contents = ReadFile(persistent_property_filename); local
151 if (!file_contents) {
152 return Error() << "Unable to read persistent property file: " << file_contents.error();
154 return *file_contents;
160 auto file_contents = ReadPersistentPropertyFile(); local
161 if (!file_contents) return file_contents.error();
164 if (persistent_properties.ParseFromString(*file_contents)) return persistent_properties;
H A Dbuiltins.cpp815 auto file_contents = ReadFile(args[1]); local
816 if (!file_contents) {
817 return Error() << "Could not read input file '" << args[1] << "': " << file_contents.error();
819 if (auto result = WriteFile(args[2], *file_contents); !result) {
H A Dproperty_service.cpp651 auto file_contents = ReadFile(filename); local
652 if (!file_contents) {
654 << "': " << file_contents.error();
657 file_contents->push_back('\n');
659 LoadProperties(file_contents->data(), filter, filename);
782 auto file_contents = std::string(); local
783 if (!ReadFileToString(filename, &file_contents)) {
789 ParsePropertyInfoFile(file_contents, property_infos, &errors);
/system/core/property_service/libpropertyinfoserializer/
H A Dproperty_info_file.cpp96 void ParsePropertyInfoFile(const std::string& file_contents, argument
103 for (const auto& line : Split(file_contents, "\n")) {
/system/core/property_service/property_info_checker/
H A Dproperty_info_checker.cpp149 auto file_contents = std::string{}; local
150 if (!ReadFileToString(filename, &file_contents)) {
156 ParsePropertyInfoFile(file_contents, &property_info_entries, &errors);
/system/tools/aidl/
H A Dgenerate_cpp_unittest.cpp1283 ASTTest(string file_path, string file_contents) argument
1285 file_contents_(file_contents) {

Completed in 8766 milliseconds