/system/tools/aidl/tests/ |
D | aidl_test_client_file_descriptors.cpp | 46 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/ |
D | init_test.cpp | 70 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()
|
D | persistent_properties.cpp | 38 using android::base::WriteStringToFd; 184 if (!WriteStringToFd(serialized_string, fd)) { in WritePersistentPropertyFile()
|
/system/core/libsuspend/ |
D | autosuspend_wakeup_count.cpp | 45 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/ |
D | SystemSuspend.cpp | 33 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/ |
D | abi_compatibility.cpp | 48 bool WriteStringToFd(const std::string& content, int fd) { in WriteStringToFd() function 49 return WriteStringToFd(content, borrowed_fd(fd)); in WriteStringToFd()
|
D | mapped_file_test.cpp | 32 ASSERT_TRUE(android::base::WriteStringToFd("hello world", tf.fd)); in TEST()
|
D | file_test.cpp | 119 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()
|
D | file.cpp | 247 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/ |
D | MemoryFileTest.cpp | 39 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/ |
D | adb_io_test.cpp | 50 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/ |
D | libmeminfo_test.cpp | 242 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 …]
|
D | libmeminfo_benchmark.cpp | 162 ::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/ |
D | FileNode.cc | 63 if (fd_ == -1 || !android::base::WriteStringToFd(req_value, fd_)) { in Update() 107 if (!android::base::WriteStringToFd(buf, fd)) { in DumpToFd()
|
D | PropertyNode.cc | 73 if (!android::base::WriteStringToFd(buf, fd)) { in DumpToFd()
|
/system/core/libutils/ |
D | FileMap_fuzz.cpp | 34 android::base::WriteStringToFd(bytes, tf.fd); in LLVMFuzzerTestOneInput()
|
/system/libbase/include/android-base/ |
D | file.h | 87 bool WriteStringToFd(const std::string& content, borrowed_fd fd);
|
/system/iorap/src/perfetto/ |
D | rx_producer.h | 99 bool WriteStringToFd(int fd) const;
|
/system/core/debuggerd/client/ |
D | debuggerd_client.cpp | 51 using android::base::WriteStringToFd; 109 if (!WriteStringToFd(data, fd)) { in dump_wchan_data()
|
/system/server_configurable_flags/libflags/ |
D | server_configurable_flags.cc | 89 } else if (!WriteStringToFd(reset_flags, fd)) { in ResetAllFlags()
|
/system/core/llkd/ |
D | libllkd.cpp | 513 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/ |
D | process_map_test.cpp | 93 ASSERT_TRUE(android::base::WriteStringToFd(maps_data, tf.fd)); in VerifyReadMapFileAsyncSafe() 262 ASSERT_TRUE(android::base::WriteStringToFd( in TEST()
|
/system/core/adb/client/ |
D | main.cpp | 200 if (!android::base::WriteStringToFd("OK\n", ack_reply_fd)) { in adb_server_main()
|
/system/connectivity/wificond/ |
D | server.cpp | 31 using android::base::WriteStringToFd; 224 if (!WriteStringToFd(ss.str(), fd)) { in dump()
|
/system/core/logd/ |
D | LogTags.cpp | 106 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()
|