Home
last modified time | relevance | path

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

12

/system/gsid/
Dlibgsi.cpp115 return android::base::WriteStringToFile(kInstallStatusWipe, kGsiInstallStatusFile); in UninstallGsi()
119 return android::base::WriteStringToFile(kInstallStatusDisabled, kGsiInstallStatusFile); in DisableGsi()
123 return android::base::WriteStringToFile("1", kGsiBootedIndicatorFile); in MarkSystemAsGsi()
/system/core/base/
Dfile_test.cpp42 ASSERT_TRUE(android::base::WriteStringToFile("abc", tf.path)) in TEST()
56 ASSERT_FALSE(android::base::WriteStringToFile("foo", link.path, false)); in TEST()
58 ASSERT_TRUE(android::base::WriteStringToFile("foo", link.path, true)); in TEST()
74 ASSERT_TRUE(android::base::WriteStringToFile("abc", tf.path, 0660, in TEST()
261 ASSERT_TRUE(android::base::WriteStringToFile(std::string(size, 'x'), tf.path)); in TEST()
268 ASSERT_TRUE(android::base::WriteStringToFile(std::string(size, 'x'), tf.path)); in TEST()
275 ASSERT_TRUE(android::base::WriteStringToFile(std::string(size, 'x'), tf.path)); in TEST()
291 ASSERT_TRUE(android::base::WriteStringToFile("", tf.path)); in TEST()
Dfile.cpp232 bool WriteStringToFile(const std::string& content, const std::string& path, in WriteStringToFile() function
261 bool WriteStringToFile(const std::string& content, const std::string& path, in WriteStringToFile() function
/system/core/fs_mgr/tests/
Dfs_mgr_test.cpp227 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST()
323 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST()
402 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST()
482 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST()
506 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST()
547 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST()
573 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST()
603 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST()
649 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST()
672 ASSERT_TRUE(android::base::WriteStringToFile(fstab_contents, tf.path)); in TEST()
[all …]
/system/core/base/include/android-base/
Dfile.h84 bool WriteStringToFile(const std::string& content, const std::string& path,
89 bool WriteStringToFile(const std::string& content, const std::string& path,
/system/vold/
DCheckEncryption.cpp48 using android::base::WriteStringToFile;
83 if (!WriteStringToFile(towrite, needle)) { in check_file()
DIdleMaint.cpp47 using android::base::WriteStringToFile;
239 if (!WriteStringToFile("1", path + "/gc_urgent")) { in startGc()
249 if (!WriteStringToFile("0", path + "/gc_urgent")) { in stopGc()
289 if (!WriteStringToFile("1", path)) { in runDevGcFstab()
301 if (!WriteStringToFile("0", path)) { in runDevGcFstab()
DBenchmark.cpp36 using android::base::WriteStringToFile;
141 if (!WriteStringToFile("3", "/proc/sys/vm/drop_caches")) { in benchmarkInternal()
DCheckpoint.cpp68 if (!android::base::WriteStringToFile(state, bow_device + "/bow/state")) { in setBowState()
125 if (!android::base::WriteStringToFile(content, kMetadataCPFile)) in cp_startCheckpoint()
212 if (!android::base::WriteStringToFile(newContent, kMetadataCPFile)) in abort_metadata_file()
711 if (!android::base::WriteStringToFile(newContent, kMetadataCPFile)) in cp_markBootAttempt()
/system/core/init/
Dreboot.cpp210 android::base::WriteStringToFile("l", "/proc/sysrq-trigger"); in DumpUmountDebuggingInfo()
211 android::base::WriteStringToFile("w", "/proc/sysrq-trigger"); in DumpUmountDebuggingInfo()
251 static void KillAllProcesses() { android::base::WriteStringToFile("i", "/proc/sysrq-trigger"); } in KillAllProcesses()
314 if (!android::base::WriteStringToFile("1", ZRAM_RESET)) { in KillZramBackingDevice()
Dueventd_test.cpp51 android::base::WriteStringToFile("<empty>", file); in WriteFromMultipleThreads()
/system/tools/sysprop/tests/
DInvalidSyspropTest.cpp189 ASSERT_TRUE(android::base::WriteStringToFile(test_case, file.path)); in TEST()
DCppGenTest.cpp495 android::base::WriteStringToFile(kTestSyspropFile, temp_sysprop_path)); in TEST()
/system/extras/simpleperf/
Ddso_test.cpp36 ASSERT_TRUE(android::base::WriteStringToFile(data, tmpfile.path)); in TEST()
41 ASSERT_TRUE(android::base::WriteStringToFile(build_id_list, build_id_list_file)); in TEST()
Denvironment.cpp349 return android::base::WriteStringToFile("-1", "/proc/sys/kernel/perf_event_paranoid"); in CheckPerfEventLimit()
461 return android::base::WriteStringToFile(std::to_string(value), path); in WriteUintToProcFile()
512 if (IsRoot() && android::base::WriteStringToFile("1", kptr_restrict_file)) { in CheckKernelSymbolAddresses()
662 if (!android::base::WriteStringToFile(GetTracepointEvents(), tracepoint_file)) { in RunCmdInApp()
Dcmd_api.cpp55 if (!android::base::WriteStringToFile(GetTracepointEvents(), in Run()
/system/netd/server/
DFirewallControllerTest.cpp33 using android::base::WriteStringToFile;
338 EXPECT_TRUE(WriteStringToFile(test.content, tempFile, false)); in TEST_F()
DInterfaceController.cpp47 using android::base::WriteStringToFile;
117 return WriteStringToFile(value, path) ? 0 : -EREMOTEIO; in writeValueToPath()
411 return WriteStringToFile(value, path) ? 0 : -errno; in setParameter()
/system/core/libprocessgroup/
Dprocessgroup.cpp52 using android::base::WriteStringToFile;
424 if (!WriteStringToFile(std::to_string(initialPid), uid_pid_procs_file)) { in createProcessGroup()
444 if (!WriteStringToFile(std::to_string(value), path)) { in SetProcessGroupValue()
Dtask_profiles.cpp42 using android::base::WriteStringToFile;
94 if (!WriteStringToFile(std::to_string(slack_), file)) { in ExecuteForTask()
127 if (!WriteStringToFile(value_, path)) { in ExecuteForTask()
/system/core/libunwindstack/tests/
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/tools/sysprop/
DCppGen.cpp446 if (!android::base::WriteStringToFile(result, path)) { in GenerateCppFiles()
456 if (!android::base::WriteStringToFile(source_result, source_path)) { in GenerateCppFiles()
/system/extras/libperfmgr/tools/
DConfigVerifier.cc55 if (!android::base::WriteStringToFile(value, node->GetPath())) { in VerifyNodes()
/system/core/adb/client/
Dmain.cpp207 if (!android::base::WriteStringToFile(path, *server_executable_path)) { in adb_server_main()
/system/vold/model/
DDisk.cpp47 using android::base::WriteStringToFile;
516 if (!WriteStringToFile(keyRaw, BuildKeyPath(partGuid))) { in partitionMixed()

12