Home
last modified time | relevance | path

Searched refs:WriteStringToFile (Results 1 – 25 of 26) sorted by relevance

12

/bootable/recovery/tests/unit/
Dsysutil_test.cpp39 ASSERT_TRUE(android::base::WriteStringToFile(android::base::Join(content, '\n'), temp_file.path)); in TEST()
59 ASSERT_TRUE(android::base::WriteStringToFile(android::base::Join(content, '\n'), temp_file.path)); in TEST()
74 ASSERT_TRUE(android::base::WriteStringToFile(android::base::Join(content, '\n'), temp_file.path)); in TEST()
82 ASSERT_TRUE(android::base::WriteStringToFile(android::base::Join(content, '\n'), temp_file.path)); in TEST()
87 ASSERT_TRUE(android::base::WriteStringToFile(android::base::Join(content, '\n'), temp_file.path)); in TEST()
95 ASSERT_TRUE(android::base::WriteStringToFile(content, temp_file1.path)); in TEST()
111 ASSERT_TRUE(android::base::WriteStringToFile(content, package.path)); in TEST()
119 ASSERT_TRUE(android::base::WriteStringToFile(block_map_content, block_map_file.path)); in TEST()
127 ASSERT_TRUE(android::base::WriteStringToFile(block_map_content, block_map_file.path)); in TEST()
135 ASSERT_TRUE(android::base::WriteStringToFile(block_map_content, block_map_file.path)); in TEST()
[all …]
Dfuse_provider_test.cpp41 android::base::WriteStringToFile(android::base::Join(lines, '\n'), temp_file.path); in TEST()
58 ASSERT_TRUE(android::base::WriteStringToFile(content, fake_block_device.path)); in TEST()
67 android::base::WriteStringToFile(android::base::Join(lines, '\n'), temp_file.path); in TEST()
86 ASSERT_TRUE(android::base::WriteStringToFile(content, temp_file.path)); in TEST()
92 ASSERT_TRUE(android::base::WriteStringToFile(android::base::Join(lines, '\n'), block_map.path)); in TEST()
Dupdate_verifier_test.cpp109 ASSERT_TRUE(android::base::WriteStringToFile(content, care_map_txt_)); in TEST_F()
135 ASSERT_TRUE(android::base::WriteStringToFile(proto, care_map_pb_)); in TEST_F()
156 ASSERT_TRUE(android::base::WriteStringToFile(proto, care_map_pb_)); in TEST_F()
177 ASSERT_TRUE(android::base::WriteStringToFile(proto, care_map_pb_)); in TEST_F()
196 ASSERT_TRUE(android::base::WriteStringToFile(proto, care_map_pb_)); in TEST_F()
217 ASSERT_TRUE(android::base::WriteStringToFile(proto, care_map_pb_)); in TEST_F()
Dparse_install_logs_test.cpp36 ASSERT_TRUE(android::base::WriteStringToFile("/cache/recovery/ota.zip\n0\n", last_install.path)); in TEST()
40 ASSERT_TRUE(android::base::WriteStringToFile("/sideload/package.zip\n0\n", last_install.path)); in TEST()
Dupdater_test.cpp306 ASSERT_TRUE(android::base::WriteStringToFile(buffer, temp_file1.path)); in TEST_F()
314 ASSERT_TRUE(android::base::WriteStringToFile(content, temp_file2.path)); in TEST_F()
422 ASSERT_TRUE(android::base::WriteStringToFile(data, image_file_)); in TEST_F()
471 ASSERT_TRUE(android::base::WriteStringToFile(data, image_file_)); in TEST_F()
692 ASSERT_TRUE(android::base::WriteStringToFile(source, image_file_)); in TEST_F()
711 ASSERT_TRUE(android::base::WriteStringToFile(source, image_file_)); in TEST_F()
728 ASSERT_TRUE(android::base::WriteStringToFile(source, image_file_)); in TEST_F()
762 ASSERT_TRUE(android::base::WriteStringToFile(src_content, image_file_)); in TEST_F()
903 ASSERT_TRUE(android::base::WriteStringToFile(block1 + block2 + block3, image_file_)); in TEST_F()
929 ASSERT_TRUE(android::base::WriteStringToFile(block1 + block2 + block3, image_file_)); in TEST_F()
[all …]
Dfuse_sideload_test.cpp72 ASSERT_TRUE(android::base::WriteStringToFile(content, temp_file.path)); in TEST()
Dapplypatch_modes_test.cpp64 ASSERT_TRUE(android::base::WriteStringToFile("", patched_file_.path)); in SetUp()
Duncrypt_test.cpp192 ASSERT_TRUE(android::base::WriteStringToFile(std::string(345, 'a'), wipe_package.path)); in TEST_F()
Dscreen_ui_test.cpp532 ASSERT_TRUE(android::base::WriteStringToFile(image_data, tempfiles.back())); in TEST_F()
536 ASSERT_TRUE(android::base::WriteStringToFile(image_data, tempfiles.back())); in TEST_F()
Dapplypatch_test.cpp184 ASSERT_TRUE(android::base::WriteStringToFile(zeros, temporary_files_.back())); in AddFilesToDir()
/bootable/recovery/tests/unit/host/
Dimgdiff_test.cpp120 ASSERT_TRUE(android::base::WriteStringToFile(src, src_file.path)); in TEST()
124 ASSERT_TRUE(android::base::WriteStringToFile(tgt, tgt_file.path)); in TEST()
354 ASSERT_TRUE(android::base::WriteStringToFile(src, src_file.path)); in TEST()
362 ASSERT_TRUE(android::base::WriteStringToFile(tgt, tgt_file.path)); in TEST()
395 ASSERT_TRUE(android::base::WriteStringToFile(src, src_file.path)); in TEST()
405 ASSERT_TRUE(android::base::WriteStringToFile(tgt, tgt_file.path)); in TEST()
430 ASSERT_TRUE(android::base::WriteStringToFile(src, src_file.path)); in TEST()
440 ASSERT_TRUE(android::base::WriteStringToFile(tgt, tgt_file.path)); in TEST()
457 ASSERT_TRUE(android::base::WriteStringToFile(src, src_file.path)); in TEST()
466 ASSERT_TRUE(android::base::WriteStringToFile(tgt, tgt_file.path)); in TEST()
[all …]
/bootable/recovery/recovery_ui/
Dui.cpp131 if (!android::base::WriteStringToFile(std::to_string(brightness_normal_value_), in InitScreensaver()
412 if (android::base::WriteStringToFile(std::to_string(brightness_normal_value_), in SetScreensaverState()
422 if (android::base::WriteStringToFile(std::to_string(brightness_dimmed_value_), in SetScreensaverState()
432 if (android::base::WriteStringToFile("0", brightness_file_)) { in SetScreensaverState()
/bootable/recovery/updater/
Dupdater_runtime.cpp145 bool UpdaterRuntime::WriteStringToFile(const std::string_view content, in WriteStringToFile() function in UpdaterRuntime
147 return android::base::WriteStringToFile(std::string(content), std::string(filename)); in WriteStringToFile()
Dsimulator_runtime.cpp99 bool SimulatorRuntime::WriteStringToFile(const std::string_view content, in WriteStringToFile() function in SimulatorRuntime
Dinstall.cpp692 if (!updater_runtime->WriteStringToFile(value, filename)) { in WriteValueFn()
/bootable/recovery/edify/include/edify/
Dupdater_runtime_interface.h58 virtual bool WriteStringToFile(const std::string_view content,
/bootable/recovery/updater/include/updater/
Dupdater_runtime.h49 bool WriteStringToFile(const std::string_view content,
Dsimulator_runtime.h46 bool WriteStringToFile(const std::string_view content,
/bootable/recovery/recovery_utils/
Dlogging.cpp256 android::base::WriteStringToFile(buffer, destination); in save_kernel_log()
311 if (!android::base::WriteStringToFile(log.data, log.name, log.sb.st_mode, log.sb.st_uid, in RestoreLogFilesAfterFormat()
/bootable/recovery/
Drecovery-persist.cpp110 return android::base::WriteStringToFile(buffer, destination.c_str()); in logsave()
Drecovery.cpp137 } else if (!android::base::WriteStringToFile(locale, LOCALE_FILE)) { in FinishRecovery()
585 if (!android::base::WriteStringToFile(log_content, install_file)) { in log_failure_code()
/bootable/recovery/uncrypt/
Duncrypt.cpp508 if (!android::base::WriteStringToFile(android::base::StringPrintf( in log_uncrypt_error_code()
539 if (!android::base::WriteStringToFile(uncrypt_message, UNCRYPT_STATUS)) { in uncrypt_wrapper()
547 if (!android::base::WriteStringToFile(uncrypt_message, UNCRYPT_STATUS)) { in uncrypt_wrapper()
/bootable/recovery/applypatch/
Dapplypatch.cpp176 if (!android::base::WriteStringToFile("3\n", drop_cache)) { in WriteBufferToPartition()
Dimgdiff.cpp1238 if (!android::base::WriteStringToFile(split_info_string, split_info_file)) { in GeneratePatches()
/bootable/recovery/install/
Dinstall.cpp623 if (!android::base::WriteStringToFile(log_content, install_file)) { in InstallPackage()

12