Searched refs:file_contents (Results 1 - 9 of 9) sorted by relevance
/system/core/init/ |
H A D | util_test.cpp | 34 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 D | persistent_properties.cpp | 150 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 D | property_service.cpp | 651 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);
|
H A D | builtins.cpp | 815 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) {
|
/system/core/property_service/libpropertyinfoserializer/ |
H A D | property_info_file.cpp | 96 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 D | property_info_checker.cpp | 149 auto file_contents = std::string{}; local 150 if (!ReadFileToString(filename, &file_contents)) { 156 ParsePropertyInfoFile(file_contents, &property_info_entries, &errors);
|
/system/core/property_service/libpropertyinfoserializer/include/property_info_serializer/ |
H A D | property_info_serializer.h | 44 void ParsePropertyInfoFile(const std::string& file_contents,
|
/system/tools/aidl/ |
H A D | generate_cpp_unittest.cpp | 1283 ASTTest(string file_path, string file_contents) argument 1285 file_contents_(file_contents) {
|
/system/core/libziparchive/ |
H A D | zip_archive_test.cc | 350 std::vector<uint8_t> file_contents(kAbUncompressedSize); 352 ASSERT_TRUE(android::base::ReadFully(tmp_output_file.fd, &file_contents[0], file_contents.size())); 353 ASSERT_EQ(file_contents, buffer); 356 const uint8_t* line = &file_contents[0] + (3 * i);
|
Completed in 3692 milliseconds