/bootable/recovery/tests/unit/ |
D | sysutil_test.cpp | 39 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 …]
|
D | fuse_provider_test.cpp | 41 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()
|
D | update_verifier_test.cpp | 109 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()
|
D | parse_install_logs_test.cpp | 36 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()
|
D | updater_test.cpp | 306 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 …]
|
D | fuse_sideload_test.cpp | 72 ASSERT_TRUE(android::base::WriteStringToFile(content, temp_file.path)); in TEST()
|
D | applypatch_modes_test.cpp | 64 ASSERT_TRUE(android::base::WriteStringToFile("", patched_file_.path)); in SetUp()
|
D | uncrypt_test.cpp | 192 ASSERT_TRUE(android::base::WriteStringToFile(std::string(345, 'a'), wipe_package.path)); in TEST_F()
|
D | screen_ui_test.cpp | 532 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()
|
D | applypatch_test.cpp | 184 ASSERT_TRUE(android::base::WriteStringToFile(zeros, temporary_files_.back())); in AddFilesToDir()
|
/bootable/recovery/tests/unit/host/ |
D | imgdiff_test.cpp | 120 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/ |
D | ui.cpp | 131 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/ |
D | updater_runtime.cpp | 145 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()
|
D | simulator_runtime.cpp | 99 bool SimulatorRuntime::WriteStringToFile(const std::string_view content, in WriteStringToFile() function in SimulatorRuntime
|
D | install.cpp | 692 if (!updater_runtime->WriteStringToFile(value, filename)) { in WriteValueFn()
|
/bootable/recovery/edify/include/edify/ |
D | updater_runtime_interface.h | 58 virtual bool WriteStringToFile(const std::string_view content,
|
/bootable/recovery/updater/include/updater/ |
D | updater_runtime.h | 49 bool WriteStringToFile(const std::string_view content,
|
D | simulator_runtime.h | 46 bool WriteStringToFile(const std::string_view content,
|
/bootable/recovery/recovery_utils/ |
D | logging.cpp | 256 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/ |
D | recovery-persist.cpp | 110 return android::base::WriteStringToFile(buffer, destination.c_str()); in logsave()
|
D | recovery.cpp | 137 } 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/ |
D | uncrypt.cpp | 508 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/ |
D | applypatch.cpp | 176 if (!android::base::WriteStringToFile("3\n", drop_cache)) { in WriteBufferToPartition()
|
D | imgdiff.cpp | 1238 if (!android::base::WriteStringToFile(split_info_string, split_info_file)) { in GeneratePatches()
|
/bootable/recovery/install/ |
D | install.cpp | 623 if (!android::base::WriteStringToFile(log_content, install_file)) { in InstallPackage()
|