Home
last modified time | relevance | path

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

123

/system/core/libmodprobe/
Dlibmodprobe_test.cpp131 ASSERT_TRUE(android::base::WriteStringToFile(modules_alias, dir_path + "/modules.alias", 0600, in TEST()
134 ASSERT_TRUE(android::base::WriteStringToFile(modules_dep, dir_path + "/modules.dep", 0600, in TEST()
136 ASSERT_TRUE(android::base::WriteStringToFile(modules_softdep, dir_path + "/modules.softdep", in TEST()
138 ASSERT_TRUE(android::base::WriteStringToFile(modules_options, dir_path + "/modules.options", in TEST()
140 ASSERT_TRUE(android::base::WriteStringToFile(modules_load, dir_path + "/modules.load", 0600, in TEST()
142 ASSERT_TRUE(android::base::WriteStringToFile(modules_blocklist, dir_path + "/modules.blocklist", in TEST()
/system/tools/sysprop/tests/
DApiCheckerTest.cpp183 ASSERT_TRUE(android::base::WriteStringToFile(kLatestApi, latest_file.path)); in TEST()
192 ASSERT_TRUE(android::base::WriteStringToFile(kCurrentApi, current_file.path)); in TEST()
201 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/gsid/
Dlibgsi.cpp117 return android::base::WriteStringToFile(kInstallStatusWipe, kDsuInstallStatusFile); in UninstallGsi()
121 return android::base::WriteStringToFile(kInstallStatusDisabled, kDsuInstallStatusFile); in DisableGsi()
125 return android::base::WriteStringToFile("1", kGsiBootedIndicatorFile); in MarkSystemAsGsi()
/system/core/fs_mgr/tests/
Dfs_mgr_test.cpp229 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST()
325 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST()
404 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST()
478 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST()
502 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST()
543 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST()
569 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST()
599 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST()
645 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST()
668 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST()
[all …]
/system/core/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()
330 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()
523 ASSERT_TRUE(android::base::WriteStringToFile( in TEST()
545 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/init/
Dreboot.cpp79 using android::base::WriteStringToFile;
276 WriteStringToFile("l", PROC_SYSRQ); in DumpUmountDebuggingInfo()
277 WriteStringToFile("w", PROC_SYSRQ); in DumpUmountDebuggingInfo()
318 WriteStringToFile("i", PROC_SYSRQ); in KillAllProcesses()
372 WriteStringToFile("l", PROC_SYSRQ); in RebootMonitorThread()
377 WriteStringToFile("w", PROC_SYSRQ); in RebootMonitorThread()
382 WriteStringToFile("s", PROC_SYSRQ); in RebootMonitorThread()
384 WriteStringToFile("u", PROC_SYSRQ); in RebootMonitorThread()
390 WriteStringToFile("c", PROC_SYSRQ); in RebootMonitorThread()
479 if (!WriteStringToFile("1", ZRAM_RESET)) { in KillZramBackingDevice()
Dservice_utils.cpp42 using android::base::WriteStringToFile;
312 if (!WriteStringToFile(pid_str, file)) { in WritePidToFiles()
/system/vold/
DIdleMaint.cpp47 using android::base::WriteStringToFile;
238 if (!WriteStringToFile("1", path + "/gc_urgent")) { in startGc()
248 if (!WriteStringToFile("0", path + "/gc_urgent")) { in stopGc()
288 if (!WriteStringToFile("1", path)) { in runDevGcFstab()
300 if (!WriteStringToFile("0", path)) { in runDevGcFstab()
DBenchmark.cpp36 using android::base::WriteStringToFile;
141 if (!WriteStringToFile("3", "/proc/sys/vm/drop_caches")) { in benchmarkInternal()
DCheckpoint.cpp78 if (!android::base::WriteStringToFile(state, bow_device + "/bow/state")) { in setBowState()
139 if (!android::base::WriteStringToFile(content, kMetadataCPFile)) in cp_startCheckpoint()
237 if (!android::base::WriteStringToFile(newContent, kMetadataCPFile)) in abort_metadata_file()
736 if (!android::base::WriteStringToFile(newContent, kMetadataCPFile)) in cp_markBootAttempt()
/system/core/libpackagelistparser/
Dpackagelistparser_test.cpp27 android::base::WriteStringToFile( in TEST()
94 android::base::WriteStringToFile( in TEST()
/system/security/fsverity_init/
Dfsverity_init.cpp72 if (!android::base::WriteStringToFile("1", "/proc/sys/fs/verity/require_signatures")) { in main()
/system/tools/sysprop/
DApiDumpMain.cpp72 if (!android::base::WriteStringToFile(res, argv[1])) { in main()
/system/linkerconfig/modules/tests/
Dapex_testbase.h61 ASSERT_TRUE(::android::base::WriteStringToFile(content, file_path)) in WriteFile()
Dapex_test.cc32 using ::android::base::WriteStringToFile;
/system/netd/server/
DFirewallControllerTest.cpp33 using android::base::WriteStringToFile;
335 EXPECT_TRUE(WriteStringToFile(test.content, tempFile, false)); in TEST_F()
/system/core/libprocessgroup/
Dprocessgroup.cpp52 using android::base::WriteStringToFile;
403 if (!WriteStringToFile(std::to_string(initialPid), uid_pid_procs_file)) { in createProcessGroup()
423 if (!WriteStringToFile(std::to_string(value), path)) { in SetProcessGroupValue()
Dtask_profiles.cpp42 using android::base::WriteStringToFile;
99 if (!WriteStringToFile(std::to_string(slack_), file)) { in ExecuteForTask()
132 if (!WriteStringToFile(value_, path)) { in ExecuteForTask()
/system/extras/simpleperf/
Ddso_test.cpp37 ASSERT_TRUE(android::base::WriteStringToFile(data, tmpfile.path)); in TEST()
42 ASSERT_TRUE(android::base::WriteStringToFile(build_id_list, build_id_list_file)); in TEST()

123