/system/core/libmodprobe/ |
D | libmodprobe_test.cpp | 143 ASSERT_TRUE(android::base::WriteStringToFile(modules_alias, dir_path + "/modules.alias", 0600, in TEST() 146 ASSERT_TRUE(android::base::WriteStringToFile(modules_dep, dir_path + "/modules.dep", 0600, in TEST() 148 ASSERT_TRUE(android::base::WriteStringToFile(modules_softdep, dir_path + "/modules.softdep", in TEST() 150 ASSERT_TRUE(android::base::WriteStringToFile(modules_options, dir_path + "/modules.options", in TEST() 152 ASSERT_TRUE(android::base::WriteStringToFile(modules_load, dir_path + "/modules.load", 0600, in TEST() 154 ASSERT_TRUE(android::base::WriteStringToFile(modules_blocklist, dir_path + "/modules.blocklist", in TEST() 212 ASSERT_TRUE(android::base::WriteStringToFile( in TEST()
|
/system/gsid/ |
D | libgsi.cpp | 113 return android::base::WriteStringToFile(kInstallStatusWipe, kDsuInstallStatusFile); in UninstallGsi() 117 return android::base::WriteStringToFile(kInstallStatusDisabled, kDsuInstallStatusFile); in DisableGsi() 121 return android::base::WriteStringToFile("1", kGsiBootedIndicatorFile); in MarkSystemAsGsi()
|
/system/tools/sysprop/tests/ |
D | ApiCheckerTest.cpp | 169 ASSERT_TRUE(android::base::WriteStringToFile(kLatestApi, latest_file.path)); in TEST() 178 ASSERT_TRUE(android::base::WriteStringToFile(kCurrentApi, current_file.path)); in TEST() 187 ASSERT_TRUE(android::base::WriteStringToFile(kInvalidCurrentApi, in TEST()
|
D | TypeCheckerTest.cpp | 94 ASSERT_TRUE(android::base::WriteStringToFile(kApi, api_file.path)); in TEST()
|
D | InvalidSyspropTest.cpp | 221 ASSERT_TRUE(android::base::WriteStringToFile(test_case, file.path)); in TEST()
|
/system/core/fs_mgr/tests/ |
D | fs_mgr_test.cpp | 344 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST() 421 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST() 498 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST() 568 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST() 592 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST() 633 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST() 659 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST() 689 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST() 735 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST() 758 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST() [all …]
|
/system/unwinding/libunwindstack/tests/ |
D | LocalUpdatableMapsTest.cpp | 53 ASSERT_TRUE(android::base::WriteStringToFile(GetDefaultMapString(), tf.path)); in SetUp() 81 ASSERT_TRUE(android::base::WriteStringToFile(GetDefaultMapString(), tf.path)); in TEST_F() 108 android::base::WriteStringToFile("3000-4000 rwxp 00000 00:00 0\n" in TEST_F() 146 android::base::WriteStringToFile("3000-4000 r-xp 00000 00:00 0 /fake/lib.so\n" in TEST_F() 184 android::base::WriteStringToFile("1000-2000 r-xp 00000 00:00 0\n" in TEST_F() 231 android::base::WriteStringToFile("1000-2000 r-xp 00000 00:00 0\n" in TEST_F() 277 android::base::WriteStringToFile("3000-4000 rwxp 00000 00:00 0\n" in TEST_F() 299 android::base::WriteStringToFile("3000-4000 r-xp 00000 00:00 0 /fake/lib.so\n" in TEST_F() 337 android::base::WriteStringToFile("3000-4000 r-xp 00000 00:00 0 /fake/lib.so\n" in TEST_F()
|
D | MapsTest.cpp | 360 android::base::WriteStringToFile("7b29b000-7b29e000 r-xp a0000000 00:00 0 /fake.so\n" in TEST() 402 android::base::WriteStringToFile("7b29b000-7b29e000 r-xp a0000000 00:00 0\n" in TEST() 497 ASSERT_TRUE(android::base::WriteStringToFile(file_data, tf.path, 0660, getuid(), getgid())); in TEST() 525 ASSERT_TRUE(android::base::WriteStringToFile( in TEST() 547 ASSERT_TRUE(android::base::WriteStringToFile(file_data, tf.path, 0660, getuid(), getgid())); in TEST()
|
/system/apex/libs/libapexutil/ |
D | apexutil_test.cpp | 33 using ::android::base::WriteStringToFile; 56 ASSERT_TRUE(WriteStringToFile(content, file_path)) in WriteFile()
|
/system/libbase/ |
D | file_test.cpp | 49 ASSERT_TRUE(android::base::WriteStringToFile("abc", tf.path)) in TEST() 63 ASSERT_FALSE(android::base::WriteStringToFile("foo", link.path, false)); in TEST() 65 ASSERT_TRUE(android::base::WriteStringToFile("foo", link.path, true)); in TEST() 81 ASSERT_TRUE(android::base::WriteStringToFile("abc", tf.path, 0660, in TEST() 351 ASSERT_TRUE(android::base::WriteStringToFile(std::string(size, 'x'), tf.path)); in TEST() 358 ASSERT_TRUE(android::base::WriteStringToFile(std::string(size, 'x'), tf.path)); in TEST() 365 ASSERT_TRUE(android::base::WriteStringToFile(std::string(size, 'x'), tf.path)); in TEST() 381 ASSERT_TRUE(android::base::WriteStringToFile("", tf.path)); in TEST()
|
/system/libbase/include/android-base/ |
D | file.h | 85 bool WriteStringToFile(const std::string& content, const std::string& path, 90 bool WriteStringToFile(const std::string& content, const std::string& path,
|
/system/core/libpackagelistparser/ |
D | packagelistparser_test.cpp | 27 android::base::WriteStringToFile( in TEST() 94 android::base::WriteStringToFile( in TEST()
|
/system/core/init/ |
D | reboot.cpp | 79 using android::base::WriteStringToFile; 275 WriteStringToFile("l", PROC_SYSRQ); in DumpUmountDebuggingInfo() 276 WriteStringToFile("w", PROC_SYSRQ); in DumpUmountDebuggingInfo() 317 WriteStringToFile("i", PROC_SYSRQ); in KillAllProcesses() 371 WriteStringToFile("l", PROC_SYSRQ); in RebootMonitorThread() 376 WriteStringToFile("w", PROC_SYSRQ); in RebootMonitorThread() 381 WriteStringToFile("s", PROC_SYSRQ); in RebootMonitorThread() 383 WriteStringToFile("u", PROC_SYSRQ); in RebootMonitorThread() 389 WriteStringToFile("c", PROC_SYSRQ); in RebootMonitorThread() 490 if (!WriteStringToFile("1", ZRAM_RESET)) { in KillZramBackingDevice()
|
D | service_utils.cpp | 42 using android::base::WriteStringToFile; 312 if (!WriteStringToFile(pid_str, file)) { in WritePidToFiles()
|
/system/libprocinfo/ |
D | process_test.cpp | 180 ASSERT_TRUE(android::base::WriteStringToFile("invalid data", status_file)); in TEST() 186 ASSERT_TRUE(android::base::WriteStringToFile( in TEST() 194 ASSERT_TRUE(android::base::WriteStringToFile("2027 (sh) invalid data", stat_file)); in TEST()
|
/system/vold/ |
D | IdleMaint.cpp | 52 using android::base::WriteStringToFile; 250 if (!WriteStringToFile("1", path + "/gc_urgent")) { in startGc() 260 if (!WriteStringToFile("0", path + "/gc_urgent")) { in stopGc() 297 if (!WriteStringToFile("1", path)) { in runDevGcFstab() 309 if (!WriteStringToFile("0", path)) { in runDevGcFstab()
|
D | Benchmark.cpp | 36 using android::base::WriteStringToFile; 141 if (!WriteStringToFile("3", "/proc/sys/vm/drop_caches")) { in benchmarkInternal()
|
/system/memory/libmeminfo/libdmabufinfo/ |
D | dmabufinfo_test.cpp | 254 ASSERT_TRUE(android::base::WriteStringToFile(buffer_size, buffer_size_path)); in TEST_F() 258 ASSERT_TRUE(android::base::WriteStringToFile(exp_name, exp_name_path)); in TEST_F() 316 ASSERT_TRUE(android::base::WriteStringToFile(fdinfo, fdinfo_file_path)); in AddFdInfo() 324 ASSERT_TRUE(android::base::WriteStringToFile(android::base::StringPrintf("%u", size), in AddSysfsDmaBufStats() 328 ASSERT_TRUE(android::base::WriteStringToFile( in AddSysfsDmaBufStats() 332 ASSERT_TRUE(android::base::WriteStringToFile(exporter, exporter_path)); in AddSysfsDmaBufStats() 344 ASSERT_TRUE(android::base::WriteStringToFile(maps_content, maps_file_path)); in AddMapEntries()
|
/system/tools/sysprop/ |
D | ApiDumpMain.cpp | 84 if (!android::base::WriteStringToFile(res, argv[1])) { in main()
|
/system/core/libprocessgroup/ |
D | task_profiles.cpp | 46 using android::base::WriteStringToFile; 106 if (!WriteStringToFile(std::to_string(slack_), file)) { in ExecuteForTask() 139 if (!WriteStringToFile(value_, path)) { in ExecuteForTask() 275 if (!WriteStringToFile(value, filepath)) { in ExecuteForProcess() 292 if (!WriteStringToFile(value, filepath)) { in ExecuteForTask()
|
/system/linkerconfig/modules/tests/ |
D | apex_testbase.h | 63 ASSERT_TRUE(::android::base::WriteStringToFile(content, file_path)) in WriteFile()
|
/system/netd/server/ |
D | FirewallControllerTest.cpp | 33 using android::base::WriteStringToFile; 335 EXPECT_TRUE(WriteStringToFile(test.content, tempFile, false)); in TEST_F()
|
/system/security/fsverity_init/ |
D | fsverity_init.cpp | 108 if (!android::base::WriteStringToFile("1", "/proc/sys/fs/verity/require_signatures")) { in main()
|
/system/extras/simpleperf/ |
D | utils_test.cpp | 81 ASSERT_TRUE(android::base::WriteStringToFile("line1\nline2", tmpfile.path)); in TEST()
|
D | dso_test.cpp | 39 ASSERT_TRUE(android::base::WriteStringToFile(data, tmpfile.path)); in TEST() 44 ASSERT_TRUE(android::base::WriteStringToFile(build_id_list, build_id_list_file)); in TEST() 244 ASSERT_TRUE(android::base::WriteStringToFile(data, vmlinux_path)); in TEST()
|