Home
last modified time | relevance | path

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

123

/system/core/libmodprobe/
Dlibmodprobe_test.cpp143 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/
Dlibgsi.cpp113 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/
DApiCheckerTest.cpp169 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()
DTypeCheckerTest.cpp94 ASSERT_TRUE(android::base::WriteStringToFile(kApi, api_file.path)); in TEST()
DInvalidSyspropTest.cpp221 ASSERT_TRUE(android::base::WriteStringToFile(test_case, file.path)); in TEST()
/system/core/fs_mgr/tests/
Dfs_mgr_test.cpp344 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/
DLocalUpdatableMapsTest.cpp53 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()
DMapsTest.cpp360 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/
Dapexutil_test.cpp33 using ::android::base::WriteStringToFile;
56 ASSERT_TRUE(WriteStringToFile(content, file_path)) in WriteFile()
/system/libbase/
Dfile_test.cpp49 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/
Dfile.h85 bool WriteStringToFile(const std::string& content, const std::string& path,
90 bool WriteStringToFile(const std::string& content, const std::string& path,
/system/core/libpackagelistparser/
Dpackagelistparser_test.cpp27 android::base::WriteStringToFile( in TEST()
94 android::base::WriteStringToFile( in TEST()
/system/core/init/
Dreboot.cpp79 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()
Dservice_utils.cpp42 using android::base::WriteStringToFile;
312 if (!WriteStringToFile(pid_str, file)) { in WritePidToFiles()
/system/libprocinfo/
Dprocess_test.cpp180 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/
DIdleMaint.cpp52 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()
DBenchmark.cpp36 using android::base::WriteStringToFile;
141 if (!WriteStringToFile("3", "/proc/sys/vm/drop_caches")) { in benchmarkInternal()
/system/memory/libmeminfo/libdmabufinfo/
Ddmabufinfo_test.cpp254 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/
DApiDumpMain.cpp84 if (!android::base::WriteStringToFile(res, argv[1])) { in main()
/system/core/libprocessgroup/
Dtask_profiles.cpp46 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/
Dapex_testbase.h63 ASSERT_TRUE(::android::base::WriteStringToFile(content, file_path)) in WriteFile()
/system/netd/server/
DFirewallControllerTest.cpp33 using android::base::WriteStringToFile;
335 EXPECT_TRUE(WriteStringToFile(test.content, tempFile, false)); in TEST_F()
/system/security/fsverity_init/
Dfsverity_init.cpp108 if (!android::base::WriteStringToFile("1", "/proc/sys/fs/verity/require_signatures")) { in main()
/system/extras/simpleperf/
Dutils_test.cpp81 ASSERT_TRUE(android::base::WriteStringToFile("line1\nline2", tmpfile.path)); in TEST()
Ddso_test.cpp39 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()

123