/system/linkerconfig/modules/tests/ |
D | apex_test.cc | 147 WriteFile("/apex/foo/bin/foo", ""); in TEST_F() 149 WriteFile("/apex/bar/lib64/bar.so", ""); in TEST_F() 151 WriteFile("/apex/baz/lib64/baz.so", ""); in TEST_F() 181 WriteFile("/apex/foo/etc/linker.config.pb", two_slash.SerializeAsString()); in TEST_F() 188 WriteFile("/apex/foo/etc/linker.config.pb", invalid_char.SerializeAsString()); in TEST_F() 195 WriteFile("/apex/foo/etc/linker.config.pb", end_with_lib.SerializeAsString()); in TEST_F() 203 WriteFile("/apex/foo/etc/linker.config.pb", lib_plus_char.SerializeAsString()); in TEST_F() 211 WriteFile("/apex/foo/etc/linker.config.pb", char_plus_lib.SerializeAsString()); in TEST_F() 219 WriteFile("/apex/foo/etc/linker.config.pb", lib_and_lib64.SerializeAsString()); in TEST_F()
|
D | apex_testbase.h | 49 WriteFile("/apex/" + apex_name + "/apex_manifest.pb", in PrepareApex() 60 void WriteFile(const std::string& file, const std::string& content) { in WriteFile() function 86 WriteFile("/apex/apex-info-list.xml", content); in CreateApexInfoList() 91 WriteFile("/system/etc/public.libraries.txt", content); in CreatePublicLibrariesTxt()
|
/system/apex/libs/libapexutil/ |
D | apexutil_test.cpp | 55 void WriteFile(std::string file_path, std::string content) { in WriteFile() function 80 WriteFile(foo_path + "/apex_manifest.pb", foo_manifest.SerializeAsString()); in TEST() 84 WriteFile(foo_path + "@1/apex_manifest.pb", foo_manifest.SerializeAsString()); in TEST() 90 WriteFile(bar_path + "/apex_manifest.pb", bar_manifest.SerializeAsString()); in TEST() 95 WriteFile(td.path + "/com.android.qux.apex"s, ""); in TEST()
|
/system/core/init/ |
D | util_test.cpp | 44 EXPECT_RESULT_OK(WriteFile(tf.path, s)); in TEST() 55 EXPECT_RESULT_OK(WriteFile(tf.path, s)); in TEST() 90 EXPECT_RESULT_OK(WriteFile(tf.path, contents)); in TEST() 102 EXPECT_RESULT_OK(WriteFile(path, s)); in TEST() 118 EXPECT_RESULT_OK(WriteFile(tf.path, "1hello1")); in TEST() 122 EXPECT_RESULT_OK(WriteFile(tf.path, "2ll2")); in TEST()
|
D | init_test.cpp | 211 ASSERT_RESULT_OK(WriteFile(std::string(dir.path) + "/a.rc", dir_a_script)); in TEST() 213 ASSERT_RESULT_OK(WriteFile(std::string(dir.path) + "/b.rc", "on boot\nexecute 5")); in TEST()
|
D | util.h | 51 Result<void> WriteFile(const std::string& path, const std::string& content);
|
D | persistent_properties_test.cpp | 143 ASSERT_RESULT_OK(WriteFile(tf.path, "ab")); in TEST()
|
D | builtins.cpp | 232 if (auto result = WriteFile("/proc/sys/kernel/domainname", args[1]); !result.ok()) { in do_domainname() 328 if (auto result = WriteFile("/proc/sys/kernel/hostname", args[1]); !result.ok()) { in do_hostname() 907 if (auto result = WriteFile(args[1], args[2]); !result.ok()) { in do_write() 1002 if (auto result = WriteFile(args[2], *file_contents); !result.ok()) { in do_copy() 1016 auto result = WriteFile(args[2], line); in do_copy_per_line()
|
/system/update_engine/common/ |
D | hwid_override_unittest.cc | 49 ASSERT_EQ(base::WriteFile(tempdir_.GetPath().Append("etc/lsb-release"), in TEST_F() 58 ASSERT_EQ(base::WriteFile(tempdir_.GetPath().Append("etc/lsb-release"), in TEST_F()
|
D | cpu_limiter.cc | 72 if (!utils::WriteFile( in SetCpuShares()
|
D | test_utils.cc | 103 return utils::WriteFile(path.c_str(), data.data(), data.size()); in WriteFileVector() 107 return utils::WriteFile(path.c_str(), data.data(), data.size()); in WriteFileString()
|
D | utils_unittest.cc | 45 EXPECT_FALSE(utils::WriteFile("/this/doesn't/exist", "hello", 5)); in TEST() 50 EXPECT_TRUE(utils::WriteFile(file.path().c_str(), "hello", 5)); in TEST() 88 EXPECT_TRUE(utils::WriteFile(temp_file.c_str(), "", 0)); in TEST() 153 ASSERT_TRUE(utils::WriteFile(file.path().c_str(), in GetFileFormatTester()
|
/system/core/fs_mgr/libfs_avb/tests/ |
D | util_test.cpp | 227 ASSERT_TRUE(base::WriteFile(file_path_1, "1", 1)); in TEST() 229 ASSERT_TRUE(base::WriteFile(file_path_2, "22", 2)); in TEST() 231 ASSERT_TRUE(base::WriteFile(file_path_3, "333", 3)); in TEST() 258 ASSERT_TRUE(base::WriteFile(file_path_1, "1", 1)); in TEST() 260 ASSERT_TRUE(base::WriteFile(file_path_2, "22", 2)); in TEST()
|
/system/update_engine/cros/ |
D | p2p_manager_unittest.cc | 164 EXPECT_EQ(0, base::WriteFile(path, nullptr, 0)); in TEST_F() 169 EXPECT_EQ(0, base::WriteFile(path, nullptr, 0)); in TEST_F() 238 EXPECT_EQ(0, base::WriteFile(path, nullptr, 0)); in TEST_F() 243 EXPECT_EQ(0, base::WriteFile(path, nullptr, 0)); in TEST_F()
|
D | hardware_chromeos.cc | 230 if (!utils::WriteFile(kRollbackSaveMarkerFile, nullptr, 0)) { in SchedulePowerwash() 241 bool result = utils::WriteFile( in SchedulePowerwash()
|
D | omaha_response_handler_action.cc | 238 utils::WriteFile(deadline_file_.c_str(), nullptr, 0); in PerformAction() 240 utils::WriteFile(deadline_file_.c_str(), in PerformAction()
|
D | download_action_chromeos_unittest.cc | 49 using base::WriteFile; 648 WriteFile( in TEST_F() 682 WriteFile( in TEST_F()
|
/system/update_engine/payload_generator/ |
D | generate_delta_main.cc | 91 CHECK(utils::WriteFile( in CalculateHashForSigning() 94 CHECK(utils::WriteFile(out_metadata_hash_file.c_str(), in CalculateHashForSigning() 137 CHECK(utils::WriteFile(out_metadata_size_file.c_str(), in SignPayload() 266 utils::WriteFile( in ExtractProperties() 469 if (!utils::WriteFile(FLAGS_out_maximum_signature_size_file.c_str(), in Main() 717 CHECK(utils::WriteFile(FLAGS_out_metadata_size_file.c_str(), in Main()
|
D | payload_properties_unittest.cc | 69 EXPECT_TRUE(utils::WriteFile(path, zeros.c_str(), zeros.size())); in SetUp()
|
/system/update_engine/payload_consumer/ |
D | delta_performer_integration_test.cc | 425 EXPECT_TRUE(utils::WriteFile( in GenerateDeltaFile() 432 base::WriteFile(base::FilePath(base::StringPrintf( in GenerateDeltaFile() 447 utils::WriteFile(base::StringPrintf("%s/ones", a_mnt.c_str()).c_str(), in GenerateDeltaFile() 454 EXPECT_TRUE(utils::WriteFile( in GenerateDeltaFile() 479 EXPECT_EQ(0, base::WriteFile(mnt_path.Append("emptyfile"), "", 0)); in GenerateDeltaFile() 488 base::WriteFile(mnt_path.Append("move-from-sparse"), in GenerateDeltaFile() 515 EXPECT_TRUE(utils::WriteFile( in GenerateDeltaFile() 537 EXPECT_TRUE(utils::WriteFile(state->old_kernel->path().c_str(), in GenerateDeltaFile() 540 EXPECT_TRUE(utils::WriteFile(state->new_kernel->path().c_str(), in GenerateDeltaFile() 543 EXPECT_TRUE(utils::WriteFile(state->result_kernel->path().c_str(), in GenerateDeltaFile()
|
D | partition_update_generator_android_unittest.cc | 69 utils::WriteFile(path.c_str(), content.data(), content.size())); in SetUpBlockDevice()
|
D | extent_reader_unittest.cc | 56 ASSERT_TRUE(utils::WriteFile( in SetUp()
|
D | cached_file_descriptor_unittest.cc | 64 EXPECT_TRUE(utils::WriteFile( in SetUp()
|
/system/security/keystore/ |
D | keystore_cli_v2.cpp | 737 void WriteFile(const std::string& filename, const std::vector<uint8_t>& content) { in WriteFile() function 740 if (base::WriteFile(path, reinterpret_cast<const char*>(content.data()), size) != size) { in WriteFile() 942 WriteFile(output_filename, std::get<std::vector<uint8_t>>(result)); in Encrypt() 954 WriteFile(output_filename, std::get<std::vector<uint8_t>>(result)); in Decrypt()
|
/system/bt/osi/test/ |
D | config_test.cc | 258 EXPECT_EQ(base::WriteFile(file_path, checksum.data(), checksum.size()), in TEST_F()
|