Home
last modified time | relevance | path

Searched refs:WriteFile (Results 1 – 25 of 34) sorted by relevance

12

/system/core/trusty/test/driver/
Dtrusty_driver_test.py27 def WriteFile(file_path, s): function
37 WriteFile("/sys/bus/platform/drivers/trusty-irq/unbind", "trusty:irq")
38 WriteFile("/sys/bus/platform/drivers/trusty-irq/bind", "trusty:irq")
41 WriteFile("/sys/bus/platform/drivers/trusty-log/unbind", "trusty:log")
42 WriteFile("/sys/bus/platform/drivers/trusty-log/bind", "trusty:log")
46 WriteFile("/sys/bus/platform/drivers/trusty-virtio/unbind",
48 WriteFile("/sys/bus/platform/drivers/trusty-virtio/bind",
53 WriteFile("/sys/bus/platform/drivers/trusty/unbind", "trusty")
54 WriteFile("/sys/bus/platform/drivers/trusty/bind", "trusty")
78 WriteFile(test, args)
/system/linkerconfig/modules/tests/
Dapex_test.cc172 WriteFile("/apex/foo/bin/foo", ""); in TEST_F()
174 WriteFile("/apex/bar/lib64/bar.so", ""); in TEST_F()
176 WriteFile("/apex/baz/lib64/baz.so", ""); in TEST_F()
206 WriteFile("/apex/foo/etc/linker.config.pb", two_slash.SerializeAsString()); in TEST_F()
213 WriteFile("/apex/foo/etc/linker.config.pb", invalid_char.SerializeAsString()); in TEST_F()
220 WriteFile("/apex/foo/etc/linker.config.pb", end_with_lib.SerializeAsString()); in TEST_F()
228 WriteFile("/apex/foo/etc/linker.config.pb", lib_plus_char.SerializeAsString()); in TEST_F()
236 WriteFile("/apex/foo/etc/linker.config.pb", char_plus_lib.SerializeAsString()); in TEST_F()
244 WriteFile("/apex/foo/etc/linker.config.pb", lib_and_lib64.SerializeAsString()); in TEST_F()
252 WriteFile("/apex/apex-info-list.xml", R"(<apex-info-list> in TEST_F()
[all …]
Dapex_testbase.h49 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/
Dapexutil_test.cpp55 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/
Dutil_test.cpp44 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()
Dutil.h51 Result<void> WriteFile(const std::string& path, const std::string& content);
Dbuiltins.cpp226 if (auto result = WriteFile("/proc/sys/kernel/domainname", args[1]); !result.ok()) { in do_domainname()
322 if (auto result = WriteFile("/proc/sys/kernel/hostname", args[1]); !result.ok()) { in do_hostname()
871 if (auto result = WriteFile(args[1], args[2]); !result.ok()) { in do_write()
966 if (auto result = WriteFile(args[2], *file_contents); !result.ok()) { in do_copy()
980 auto result = WriteFile(args[2], line); in do_copy_per_line()
Dpersistent_properties_test.cpp146 ASSERT_RESULT_OK(WriteFile(tf.path, "ab")); in TEST()
Dinit_test.cpp493 ASSERT_RESULT_OK(WriteFile(std::string(dir.path) + "/a.rc", dir_a_script)); in TEST()
495 ASSERT_RESULT_OK(WriteFile(std::string(dir.path) + "/b.rc", "on boot\nexecute 5")); in TEST()
/system/update_engine/common/
Dhwid_override_unittest.cc49 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()
Dcpu_limiter.cc72 if (!utils::WriteFile( in SetCpuShares()
Dutils_unittest.cc45 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()
84 EXPECT_TRUE(utils::WriteFile(temp_file.c_str(), "", 0)); in TEST()
149 ASSERT_TRUE(utils::WriteFile(file.path().c_str(), in GetFileFormatTester()
Dtest_utils.cc103 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()
/system/core/fs_mgr/libfs_avb/tests/
Dutil_test.cpp227 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()
Dfs_avb_test_util.cpp155 static_cast<const size_t>(base::WriteFile( in GenerateImage()
/system/update_engine/payload_generator/
Dgenerate_delta_main.cc94 CHECK(utils::WriteFile( in CalculateHashForSigning()
97 CHECK(utils::WriteFile(out_metadata_hash_file.c_str(), in CalculateHashForSigning()
140 CHECK(utils::WriteFile(out_metadata_size_file.c_str(), in SignPayload()
269 utils::WriteFile( in ExtractProperties()
540 if (!utils::WriteFile(FLAGS_out_maximum_signature_size_file.c_str(), in Main()
807 CHECK(utils::WriteFile(FLAGS_out_metadata_size_file.c_str(), in Main()
Dpayload_properties_unittest.cc69 EXPECT_TRUE(utils::WriteFile(path, zeros.c_str(), zeros.size())); in SetUp()
Ddeflate_utils.cc62 utils::WriteFile(out_path.c_str(), data.data(), data.size())); in CopyExtentsToFile()
/system/update_engine/payload_consumer/
Ddelta_performer_integration_test.cc417 ASSERT_TRUE(utils::WriteFile( in GenerateDeltaFile()
424 base::WriteFile(base::FilePath(base::StringPrintf( in GenerateDeltaFile()
439 utils::WriteFile(base::StringPrintf("%s/ones", a_mnt.c_str()).c_str(), in GenerateDeltaFile()
446 ASSERT_TRUE(utils::WriteFile( in GenerateDeltaFile()
471 ASSERT_EQ(0, base::WriteFile(mnt_path.Append("emptyfile"), "", 0)); in GenerateDeltaFile()
480 base::WriteFile(mnt_path.Append("move-from-sparse"), in GenerateDeltaFile()
507 ASSERT_TRUE(utils::WriteFile( in GenerateDeltaFile()
529 ASSERT_TRUE(utils::WriteFile(state->old_kernel->path().c_str(), in GenerateDeltaFile()
532 ASSERT_TRUE(utils::WriteFile(state->new_kernel->path().c_str(), in GenerateDeltaFile()
535 ASSERT_TRUE(utils::WriteFile(state->result_kernel->path().c_str(), in GenerateDeltaFile()
Dpartition_update_generator_android_unittest.cc69 utils::WriteFile(path.c_str(), content.data(), content.size())); in SetUpBlockDevice()
Dextent_reader_unittest.cc56 ASSERT_TRUE(utils::WriteFile( in SetUp()
Dcached_file_descriptor_unittest.cc64 EXPECT_TRUE(utils::WriteFile( in SetUp()
Dfilesystem_verifier_action_unittest.cc90 ASSERT_TRUE(utils::WriteFile( in SetUp()
95 ASSERT_TRUE(utils::WriteFile( in SetUp()
/system/update_engine/lz4diff/
Dlz4diff_main.cc65 CHECK(utils::WriteFile( in ExecuteLz4diff()
/system/security/keystore/
Dkeystore_cli_v2.cpp749 void WriteFile(const std::string& filename, const std::vector<uint8_t>& content) { in WriteFile() function
752 if (base::WriteFile(path, reinterpret_cast<const char*>(content.data()), size) != size) { in WriteFile()
954 WriteFile(output_filename, std::get<std::vector<uint8_t>>(result)); in Encrypt()
966 WriteFile(output_filename, std::get<std::vector<uint8_t>>(result)); in Decrypt()

12