/system/core/libmodprobe/ |
D | libmodprobe_test.cpp | 131 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/ |
D | ApiCheckerTest.cpp | 183 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()
|
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/gsid/ |
D | libgsi.cpp | 117 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/ |
D | fs_mgr_test.cpp | 229 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/ |
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() 330 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() 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/ |
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/init/ |
D | reboot.cpp | 79 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()
|
D | service_utils.cpp | 42 using android::base::WriteStringToFile; 312 if (!WriteStringToFile(pid_str, file)) { in WritePidToFiles()
|
/system/vold/ |
D | IdleMaint.cpp | 47 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()
|
D | Benchmark.cpp | 36 using android::base::WriteStringToFile; 141 if (!WriteStringToFile("3", "/proc/sys/vm/drop_caches")) { in benchmarkInternal()
|
D | Checkpoint.cpp | 78 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/ |
D | packagelistparser_test.cpp | 27 android::base::WriteStringToFile( in TEST() 94 android::base::WriteStringToFile( in TEST()
|
/system/security/fsverity_init/ |
D | fsverity_init.cpp | 72 if (!android::base::WriteStringToFile("1", "/proc/sys/fs/verity/require_signatures")) { in main()
|
/system/tools/sysprop/ |
D | ApiDumpMain.cpp | 72 if (!android::base::WriteStringToFile(res, argv[1])) { in main()
|
/system/linkerconfig/modules/tests/ |
D | apex_testbase.h | 61 ASSERT_TRUE(::android::base::WriteStringToFile(content, file_path)) in WriteFile()
|
D | apex_test.cc | 32 using ::android::base::WriteStringToFile;
|
/system/netd/server/ |
D | FirewallControllerTest.cpp | 33 using android::base::WriteStringToFile; 335 EXPECT_TRUE(WriteStringToFile(test.content, tempFile, false)); in TEST_F()
|
/system/core/libprocessgroup/ |
D | processgroup.cpp | 52 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()
|
D | task_profiles.cpp | 42 using android::base::WriteStringToFile; 99 if (!WriteStringToFile(std::to_string(slack_), file)) { in ExecuteForTask() 132 if (!WriteStringToFile(value_, path)) { in ExecuteForTask()
|
/system/extras/simpleperf/ |
D | dso_test.cpp | 37 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()
|