/system/gsid/ |
D | libgsi.cpp | 115 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/ |
D | file_test.cpp | 42 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()
|
D | file.cpp | 232 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/ |
D | fs_mgr_test.cpp | 227 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/ |
D | file.h | 84 bool WriteStringToFile(const std::string& content, const std::string& path, 89 bool WriteStringToFile(const std::string& content, const std::string& path,
|
/system/vold/ |
D | CheckEncryption.cpp | 48 using android::base::WriteStringToFile; 83 if (!WriteStringToFile(towrite, needle)) { in check_file()
|
D | IdleMaint.cpp | 47 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()
|
D | Benchmark.cpp | 36 using android::base::WriteStringToFile; 141 if (!WriteStringToFile("3", "/proc/sys/vm/drop_caches")) { in benchmarkInternal()
|
D | Checkpoint.cpp | 68 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/ |
D | reboot.cpp | 210 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()
|
D | ueventd_test.cpp | 51 android::base::WriteStringToFile("<empty>", file); in WriteFromMultipleThreads()
|
/system/tools/sysprop/tests/ |
D | InvalidSyspropTest.cpp | 189 ASSERT_TRUE(android::base::WriteStringToFile(test_case, file.path)); in TEST()
|
D | CppGenTest.cpp | 495 android::base::WriteStringToFile(kTestSyspropFile, temp_sysprop_path)); in TEST()
|
/system/extras/simpleperf/ |
D | dso_test.cpp | 36 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()
|
D | environment.cpp | 349 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()
|
D | cmd_api.cpp | 55 if (!android::base::WriteStringToFile(GetTracepointEvents(), in Run()
|
/system/netd/server/ |
D | FirewallControllerTest.cpp | 33 using android::base::WriteStringToFile; 338 EXPECT_TRUE(WriteStringToFile(test.content, tempFile, false)); in TEST_F()
|
D | InterfaceController.cpp | 47 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/ |
D | processgroup.cpp | 52 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()
|
D | task_profiles.cpp | 42 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/ |
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/tools/sysprop/ |
D | CppGen.cpp | 446 if (!android::base::WriteStringToFile(result, path)) { in GenerateCppFiles() 456 if (!android::base::WriteStringToFile(source_result, source_path)) { in GenerateCppFiles()
|
/system/extras/libperfmgr/tools/ |
D | ConfigVerifier.cc | 55 if (!android::base::WriteStringToFile(value, node->GetPath())) { in VerifyNodes()
|
/system/core/adb/client/ |
D | main.cpp | 207 if (!android::base::WriteStringToFile(path, *server_executable_path)) { in adb_server_main()
|
/system/vold/model/ |
D | Disk.cpp | 47 using android::base::WriteStringToFile; 516 if (!WriteStringToFile(keyRaw, BuildKeyPath(partGuid))) { in partitionMixed()
|