Home
last modified time | relevance | path

Searched refs:WriteStringToFd (Results 1 – 25 of 43) sorted by relevance

12

/system/tools/aidl/tests/
Daidl_test_client_file_descriptors.cpp46 void WriteStringToFd(const std::string& str, const unique_fd& fd) { in WriteStringToFd() function
78 WriteStringToFd("ReturnString", return_fd); in TEST_F()
92 WriteStringToFd("First", array[1]); in TEST_F()
93 WriteStringToFd("Second", repeated[1]); in TEST_F()
94 WriteStringToFd("Third", reversed[0]); in TEST_F()
112 WriteStringToFd("ReturnString", return_fd.release()); in TEST_F()
131 WriteStringToFd("First", input[1].release()); in TEST_F()
132 WriteStringToFd("Second", repeated[1].release()); in TEST_F()
133 WriteStringToFd("Third", reversed[0].release()); in TEST_F()
/system/core/init/
Dinit_test.cpp70 ASSERT_TRUE(android::base::WriteStringToFd(init_script, tf.fd)); in TestInitText()
108 ASSERT_TRUE(android::base::WriteStringToFd(init_script, tf.fd)); in TEST()
193 ASSERT_TRUE(android::base::WriteStringToFd("on boot\nexecute 2", first_import.fd)); in TEST()
197 ASSERT_TRUE(android::base::WriteStringToFd("on boot\nexecute 4", dir_a_import.fd)); in TEST()
201 ASSERT_TRUE(android::base::WriteStringToFd("on boot\nexecute 6", last_import.fd)); in TEST()
222 ASSERT_TRUE(android::base::WriteStringToFd(start_script, start.fd)); in TEST()
260 ASSERT_TRUE(android::base::WriteStringToFd(init_script, tf.fd)); in TEST()
Dpersistent_properties.cpp38 using android::base::WriteStringToFd;
184 if (!WriteStringToFd(serialized_string, fd)) { in WritePersistentPropertyFile()
/system/core/libsuspend/
Dautosuspend_wakeup_count.cpp45 using android::base::WriteStringToFd;
94 if (WriteStringToFd(wakeup_count, wakeup_count_fd)) { in suspend_thread_func()
96 success = WriteStringToFd(sleep_state, state_fd); in suspend_thread_func()
216 return WriteStringToFd(sleep_state, state_fd) ? 0 : -1; in force_suspend()
/system/hardware/interfaces/suspend/1.0/default/
DSystemSuspend.cpp33 using ::android::base::WriteStringToFd;
132 bool success = WriteStringToFd(kSleepState, mStateFd); in forceSuspend()
155 if (!WriteStringToFd(name, mWakeLockFd)) { in incSuspendCounter()
168 if (!WriteStringToFd(name, mWakeUnlockFd)) { in decSuspendCounter()
191 if (!WriteStringToFd(wakeupCount, mWakeupCountFd)) { in initAutosuspend()
195 bool success = WriteStringToFd(kSleepState, mStateFd); in initAutosuspend()
/system/libbase/
Dabi_compatibility.cpp48 bool WriteStringToFd(const std::string& content, int fd) { in WriteStringToFd() function
49 return WriteStringToFd(content, borrowed_fd(fd)); in WriteStringToFd()
Dmapped_file_test.cpp32 ASSERT_TRUE(android::base::WriteStringToFd("hello world", tf.fd)); in TEST()
Dfile_test.cpp119 ASSERT_TRUE(android::base::WriteStringToFd("abc", tf.fd)); in TEST()
134 ASSERT_TRUE(android::base::WriteStringToFd("abc", tf.fd)); in TEST()
149 ASSERT_TRUE(android::base::WriteStringToFd("abc", tf.fd)); in TEST()
179 TEST(file, WriteStringToFd) { in TEST() argument
182 ASSERT_TRUE(android::base::WriteStringToFd("abc", tf.fd)); in TEST()
Dfile.cpp247 bool WriteStringToFd(const std::string& content, borrowed_fd fd) { in WriteStringToFd() function
291 if (!WriteStringToFd(content, fd)) { in WriteStringToFile()
307 return WriteStringToFd(content, fd) || CleanUpAfterFailedWrite(path); in WriteStringToFile()
/system/core/libunwindstack/tests/
DMemoryFileTest.cpp39 ASSERT_TRUE(android::base::WriteStringToFd("0123456789abcdefghijklmnopqrstuvxyz", tf_->fd)); in WriteTestData()
74 ASSERT_TRUE(android::base::WriteStringToFd(large_string, tf_->fd)); in TEST_F()
90 ASSERT_TRUE(android::base::WriteStringToFd(data, tf_->fd)); in TEST_F()
111 ASSERT_TRUE(android::base::WriteStringToFd(data, tf_->fd)); in TEST_F()
132 ASSERT_TRUE(android::base::WriteStringToFd(data, tf_->fd)); in TEST_F()
147 ASSERT_TRUE(android::base::WriteStringToFd(data, tf_->fd)); in TEST_F()
/system/core/adb/
Dadb_io_test.cpp50 ASSERT_TRUE(android::base::WriteStringToFd(expected, tf.fd)) << strerror(errno); in POSIX_TEST()
64 ASSERT_TRUE(android::base::WriteStringToFd(expected, tf.fd)) << strerror(errno); in POSIX_TEST()
78 ASSERT_TRUE(android::base::WriteStringToFd(input, tf.fd)) << strerror(errno); in POSIX_TEST()
/system/memory/libmeminfo/
Dlibmeminfo_test.cpp242 ASSERT_TRUE(::android::base::WriteStringToFd(rollup, tf.fd)); in TEST()
282 ASSERT_TRUE(::android::base::WriteStringToFd(smaps, tf.fd)); in TEST()
323 ASSERT_TRUE(::android::base::WriteStringToFd(smaps, tf.fd)); in TEST()
585 ASSERT_TRUE(::android::base::WriteStringToFd(meminfo, tf.fd)); in TEST()
610 ASSERT_TRUE(::android::base::WriteStringToFd(empty_string, tf.fd)); in TEST()
697 ASSERT_TRUE(::android::base::WriteStringToFd(meminfo, tf.fd)); in TEST()
734 ASSERT_TRUE(::android::base::WriteStringToFd(vmallocinfo, tf.fd)); in TEST()
746 ASSERT_TRUE(::android::base::WriteStringToFd(vmallocinfo, tf.fd)); in TEST()
758 ASSERT_TRUE(::android::base::WriteStringToFd(vmallocinfo, tf.fd)); in TEST()
775 ASSERT_TRUE(::android::base::WriteStringToFd(vmallocinfo, tf.fd)); in TEST()
[all …]
Dlibmeminfo_benchmark.cpp162 ::android::base::WriteStringToFd(meminfo, tf.fd); in BM_ReadMemInfo_old()
218 android::base::WriteStringToFd(meminfo, tf.fd); in BM_ReadMemInfo_new()
331 ::android::base::WriteStringToFd(meminfo, tf.fd); in BM_MemInfoWithZram_old()
390 android::base::WriteStringToFd(meminfo, tf.fd); in BM_MemInfoWithZram_new()
/system/extras/libperfmgr/
DFileNode.cc63 if (fd_ == -1 || !android::base::WriteStringToFd(req_value, fd_)) { in Update()
107 if (!android::base::WriteStringToFd(buf, fd)) { in DumpToFd()
DPropertyNode.cc73 if (!android::base::WriteStringToFd(buf, fd)) { in DumpToFd()
/system/core/libutils/
DFileMap_fuzz.cpp34 android::base::WriteStringToFd(bytes, tf.fd); in LLVMFuzzerTestOneInput()
/system/libbase/include/android-base/
Dfile.h87 bool WriteStringToFd(const std::string& content, borrowed_fd fd);
/system/iorap/src/perfetto/
Drx_producer.h99 bool WriteStringToFd(int fd) const;
/system/core/debuggerd/client/
Ddebuggerd_client.cpp51 using android::base::WriteStringToFd;
109 if (!WriteStringToFd(data, fd)) { in dump_wchan_data()
/system/server_configurable_flags/libflags/
Dserver_configurable_flags.cc89 } else if (!WriteStringToFd(reset_flags, fd)) { in ResetAllFlags()
/system/core/llkd/
Dlibllkd.cpp513 return android::base::WriteStringToFd(string, fd); in llkWriteStringToFile()
518 auto ret = (fd < 0) ? false : android::base::WriteStringToFd(string, fd); in llkWriteStringToFileConfirm()
538 android::base::WriteStringToFd("d", sysrqTriggerFd); in llkPanicKernel()
540 android::base::WriteStringToFd("w", sysrqTriggerFd); in llkPanicKernel()
544 android::base::WriteStringToFd("t", sysrqTriggerFd); in llkPanicKernel()
546 android::base::WriteStringToFd("d", sysrqTriggerFd); in llkPanicKernel()
548 android::base::WriteStringToFd("w", sysrqTriggerFd); in llkPanicKernel()
564 android::base::WriteStringToFd("c", sysrqTriggerFd); in llkPanicKernel()
/system/core/libprocinfo/
Dprocess_map_test.cpp93 ASSERT_TRUE(android::base::WriteStringToFd(maps_data, tf.fd)); in VerifyReadMapFileAsyncSafe()
262 ASSERT_TRUE(android::base::WriteStringToFd( in TEST()
/system/core/adb/client/
Dmain.cpp200 if (!android::base::WriteStringToFd("OK\n", ack_reply_fd)) { in adb_server_main()
/system/connectivity/wificond/
Dserver.cpp31 using android::base::WriteStringToFd;
224 if (!WriteStringToFd(ss.str(), fd)) { in dump()
/system/core/logd/
DLogTags.cpp106 android::base::WriteStringToFd( in RebuildFileEventLogTags()
111 android::base::WriteStringToFd( in RebuildFileEventLogTags()
603 android::base::WriteStringToFd(ret, fd); in WriteDynamicEventLogTags()
627 android::base::WriteStringToFd(ret, fd); in WriteDebugEventLogTags()

12