Searched refs:file_contents (Results 1 – 9 of 9) sorted by relevance
/aosp14/system/core/init/ |
H A D | util_test.cpp | 36 ASSERT_FALSE(file_contents.ok()); in TEST() 58 ASSERT_FALSE(file_contents.ok()); in TEST() 67 ASSERT_FALSE(file_contents.ok()); in TEST() 74 ASSERT_TRUE(file_contents.ok()); in TEST() 76 EXPECT_EQ('\n', file_contents->at(file_contents->length() - 1)); in TEST() 77 (*file_contents)[5] = 0; in TEST() 104 ASSERT_RESULT_OK(file_contents); in TEST() 105 EXPECT_EQ(s, *file_contents); in TEST() 120 ASSERT_RESULT_OK(file_contents); in TEST() 123 file_contents = ReadFile(tf.path); in TEST() [all …]
|
H A D | persistent_properties.cpp | 151 auto file_contents = ReadFile(persistent_property_filename); in ReadPersistentPropertyFile() local 152 if (!file_contents.ok()) { in ReadPersistentPropertyFile() 153 return Error() << "Unable to read persistent property file: " << file_contents.error(); in ReadPersistentPropertyFile() 155 return *file_contents; in ReadPersistentPropertyFile() 158 Result<PersistentProperties> ParsePersistentPropertyFile(const std::string& file_contents) { in ParsePersistentPropertyFile() argument 160 if (!persistent_properties.ParseFromString(file_contents)) { in ParsePersistentPropertyFile() 175 auto file_contents = ReadPersistentPropertyFile(); in LoadPersistentPropertyFile() local 176 if (!file_contents.ok()) return file_contents.error(); in LoadPersistentPropertyFile() 178 auto persistent_properties = ParsePersistentPropertyFile(*file_contents); in LoadPersistentPropertyFile()
|
H A D | builtins.cpp | 288 auto file_contents = ReadFile(args[1]); in do_load_exports() local 289 if (!file_contents.ok()) { in do_load_exports() 291 << "': " << file_contents.error(); in do_load_exports() 294 auto lines = Split(*file_contents, "\n"); in do_load_exports() 982 auto file_contents = ReadFile(args[1]); in do_copy() local 983 if (!file_contents.ok()) { in do_copy() 984 … return Error() << "Could not read input file '" << args[1] << "': " << file_contents.error(); in do_copy() 986 if (auto result = WriteFile(args[2], *file_contents); !result.ok()) { in do_copy() 994 std::string file_contents; in do_copy_per_line() local 995 if (!android::base::ReadFileToString(args[1], &file_contents, true)) { in do_copy_per_line() [all …]
|
H A D | host_init_verifier.cpp | 203 auto file_contents = std::string(); in HandlePropertyContexts() local 204 if (!ReadFileToString(filename, &file_contents)) { in HandlePropertyContexts() 210 ParsePropertyInfoFile(file_contents, true, property_infos, &errors); in HandlePropertyContexts()
|
H A D | property_service.cpp | 805 auto file_contents = ReadFile(filename); in load_properties_from_file() local 806 if (!file_contents.ok()) { in load_properties_from_file() 808 << "': " << file_contents.error(); in load_properties_from_file() 810 file_contents->push_back('\n'); in load_properties_from_file() 812 LoadProperties(file_contents->data(), filter, filename, properties); in load_properties_from_file() 1221 auto file_contents = std::string(); in LoadPropertyInfoFromFile() local 1222 if (!ReadFileToString(filename, &file_contents)) { in LoadPropertyInfoFromFile() 1229 ParsePropertyInfoFile(file_contents, require_prefix_or_exact, property_infos, &errors); in LoadPropertyInfoFromFile()
|
/aosp14/system/core/property_service/property_info_checker/ |
H A D | property_info_checker.cpp | 149 auto file_contents = std::string{}; in main() 150 if (!ReadFileToString(filename, &file_contents)) { in main() 156 ParsePropertyInfoFile(file_contents, true, &property_info_entries, &errors); in main()
|
/aosp14/system/core/property_service/libpropertyinfoserializer/ |
H A D | property_info_file.cpp | 106 void ParsePropertyInfoFile(const std::string& file_contents, bool require_prefix_or_exact, in ParsePropertyInfoFile() argument 113 for (const auto& line : Split(file_contents, "\n")) { in ParsePropertyInfoFile()
|
/aosp14/frameworks/base/cmds/idmap2/libidmap2/ |
H A D | FabricatedOverlay.cpp | 312 std::string file_contents; in ToBinaryStream() local 314 if (!ReadFdToString(fd, &file_contents)) { in ToBinaryStream() 317 stream.write(file_contents.data(), file_contents.length()); in ToBinaryStream()
|
/aosp14/system/core/property_service/libpropertyinfoserializer/include/property_info_serializer/ |
H A D | property_info_serializer.h | 43 void ParsePropertyInfoFile(const std::string& file_contents, bool require_prefix_or_exact,
|