Home
last modified time | relevance | path

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

/system/core/base/
Dfile_test.cpp40 ASSERT_TRUE(android::base::WriteStringToFile("abc", tf.path)) in TEST()
54 ASSERT_FALSE(android::base::WriteStringToFile("foo", link.path, false)); in TEST()
56 ASSERT_TRUE(android::base::WriteStringToFile("foo", link.path, true)); in TEST()
72 ASSERT_TRUE(android::base::WriteStringToFile("abc", tf.path, 0660, in TEST()
225 ASSERT_TRUE(android::base::WriteStringToFile(std::string(size, 'x'), tf.path)); in TEST()
232 ASSERT_TRUE(android::base::WriteStringToFile(std::string(size, 'x'), tf.path)); in TEST()
239 ASSERT_TRUE(android::base::WriteStringToFile(std::string(size, 'x'), tf.path)); in TEST()
255 ASSERT_TRUE(android::base::WriteStringToFile("", tf.path)); in TEST()
Dfile.cpp104 bool WriteStringToFile(const std::string& content, const std::string& path, in WriteStringToFile() function
134 bool WriteStringToFile(const std::string& content, const std::string& path, in WriteStringToFile() function
/system/core/base/include/android-base/
Dfile.h34 bool WriteStringToFile(const std::string& content, const std::string& path,
39 bool WriteStringToFile(const std::string& content, const std::string& path,
/system/core/init/
Dreboot.cpp132 android::base::WriteStringToFile(OFF, "/sys/class/leds/lcd-backlight/brightness"); in TurnOffBacklight()
147 android::base::WriteStringToFile(OFF, fileName); in TurnOffBacklight()
219 android::base::WriteStringToFile("t", "/proc/sysrq-trigger"); in DumpUmountDebuggingInfo()
259 static void KillAllProcesses() { android::base::WriteStringToFile("i", "/proc/sysrq-trigger"); } in KillAllProcesses()
313 android::base::WriteStringToFile(StringPrintf("%s\n", reason.c_str()), LAST_REBOOT_REASON_FILE, in DoReboot()
Dservice.cpp53 using android::base::WriteStringToFile;
696 if (!WriteStringToFile(pid_str, file)) { in Start()
737 if (!WriteStringToFile(oom_str, oom_file)) { in Start()
/system/vold/
DBenchmark.cpp34 using android::base::WriteStringToFile;
95 if (!WriteStringToFile("3", "/proc/sys/vm/drop_caches")) { in benchmark()
DDisk.cpp41 using android::base::WriteStringToFile;
480 if (!WriteStringToFile(keyRaw, BuildKeyPath(partGuid))) { in partitionMixed()
DExt4Crypt.cpp449 if (!android::base::WriteStringToFile(modestring, mode_filename)) { in e4crypt_initialize_global_de()
472 if (!android::base::WriteStringToFile(device_key_ref, ref_filename)) { in e4crypt_initialize_global_de()
DKeyStorage.cpp156 if (!android::base::WriteStringToFile(payload, filename)) { in writeStringToFile()
/system/netd/server/
DInterfaceController.cpp36 using android::base::WriteStringToFile;
77 return WriteStringToFile(value, path) ? 0 : -1; in writeValueToPath()
294 return WriteStringToFile(value, path) ? 0 : -errno; in setParameter()
DRouteController.cpp45 using android::base::WriteStringToFile;
192 if (!WriteStringToFile(contents, RT_TABLES_PATH, RT_TABLES_MODE, AID_SYSTEM, AID_WIFI)) { in updateTableNamesFile()
/system/tpm/tpm_manager/client/
Dmain.cc142 bool WriteStringToFile(const std::string& data, const std::string& filename) { in WriteStringToFile() function
441 if (!WriteStringToFile(reply.data(), output_file)) { in HandleReadSpaceReply()
/system/extras/simpleperf/
Dgtest_main.cpp54 if (!android::base::WriteStringToFile(content, tmp_file.path)) { in ExtractTestDataFromElfSection()
Dread_elf_test.cpp145 ASSERT_TRUE(android::base::WriteStringToFile("wrong format for elf", tmp_file.path)); in TEST()
Dcpu_hotplug_test.cpp119 ret = android::base::WriteStringToFile(content, filename); in SetCpuOnline()
/system/core/liblog/tests/
Dliblog_benchmark.cpp959 !android::base::WriteStringToFile(dev_event_log_tags, in BM_lookupEventTagNum_logd_new()
967 !android::base::WriteStringToFile(data_event_log_tags, in BM_lookupEventTagNum_logd_new()
/system/core/adb/
Dadb_auth_host.cpp100 if (!android::base::WriteStringToFile(content, path)) { in write_public_keyfile()
/system/core/libbacktrace/
Dbacktrace_offline_test.cpp194 ASSERT_TRUE(android::base::WriteStringToFile(testdata, "offline_testdata")); in TEST()
/system/extras/perfprofd/
Dperfprofdcore.cc854 if (!android::base::WriteStringToFile("0", oomscore_path.str())) { in init()
/system/core/logcat/
Dlogcat.cpp1366 android::base::WriteStringToFile(setId, file_name, S_IRUSR | S_IWUSR, in __logcat()