/system/media/audio_utils/include/audio_utils/ |
D | FdToString.h | 190 android::base::unique_fd readFd, writeFd; variable 191 if (!android::base::Pipe(&readFd, &writeFd)) return {}; 192 const auto flags = fcntl(readFd.get(), F_GETFL); 195 if (fcntl(readFd, F_SETFL, flags | O_NONBLOCK) < 0) return {}; 202 [fd = std::move(readFd), deadline,
|
/system/extras/alloc-stress/ |
D | alloc-stress.cpp | 46 Pipe(int readFd, int writeFd) : m_readFd{readFd}, m_writeFd{writeFd} { in Pipe() argument 96 static Pipe makePipeFromFds(int readFd, int writeFd) { return Pipe(readFd, writeFd); } in makePipeFromFds() argument
|
/system/core/libutils/ |
D | Looper_test.cpp | 752 const int readFd = pipeFd[0]; in createPipe() local 760 mFds.emplace(id, readFd); in createPipe() 762 auto removeCallback = [this, id, readFd](int fd, int events) { in createPipe() 763 EXPECT_EQ(readFd, fd) << "Received callback for incorrect fd."; in createPipe() 771 mLooper->addFd(readFd, 0, Looper::EVENT_INPUT, in createPipe()
|
/system/hardware/interfaces/suspend/1.0/default/ |
D | SystemSuspend.h | 74 std::string readFd(int fd);
|
D | SystemSuspendUnitTest.cpp | 70 using android::system::suspend::V1_0::readFd; 204 if (!isReadBlocked(wakeupCountFd)) readFd(wakeupCountFd); in TearDown() 205 if (!isReadBlocked(stateFd)) readFd(stateFd); in TearDown() 240 ASSERT_EQ(readFd(wakeupCountFd), wakeupCount) in checkLoop() 242 ASSERT_EQ(readFd(stateFd), "mem") in checkLoop() 1366 ASSERT_EQ(readFd(wakeupCountTestFd), wakeupCount) in checkLoop() 1368 ASSERT_EQ(readFd(stateTestFd), "mem") in checkLoop()
|
D | SystemSuspend.cpp | 76 string readFd(int fd) { in readFd() function 335 string wakeupCount = readFd(mWakeupCountFd); in initAutosuspendLocked()
|
/system/libhwbinder/vts/performance/ |
D | Benchmark_throughput.cpp | 51 Pipe(int readFd, int writeFd) in Pipe() argument 52 : m_readFd{readFd}, m_writeFd{writeFd} { in Pipe()
|
/system/incremental_delivery/incfs/tests/ |
D | incfs_test.cpp | 149 const android::base::unique_fd readFd( in testWriteBlockAndPageRead() local 151 ASSERT_TRUE(readFd >= 0); in testWriteBlockAndPageRead() 153 ASSERT_TRUE(android::base::ReadFully(readFd, buf, sizeof(buf))); in testWriteBlockAndPageRead() 471 const android::base::unique_fd readFd( in TEST_F() local 473 ASSERT_GE(readFd.get(), 0); in TEST_F() 477 EXPECT_EQ(-EPERM, IncFs_GetFilledRanges(readFd.get(), {buffer, std::size(buffer)}, &res)); in TEST_F()
|
/system/incremental_delivery/incfs/ |
D | incfs.cpp | 1202 static int waitForReads(IncFsFd readFd, int32_t timeoutMs, PublicPendingRead buffer[], in waitForReads() argument 1205 if (const auto res = waitForReadsImpl(readFd, timeoutMs, pendingReads.data(), bufferSize)) { in waitForReads() 1215 static int waitForReads(IncFsFd readFd, int32_t timeoutMs, PublicPendingRead buffer[], in waitForReads() argument 1218 return waitForReads<incfs_pending_read_info2>(readFd, timeoutMs, buffer, bufferSize); in waitForReads() 1220 return waitForReads<incfs_pending_read_info>(readFd, timeoutMs, buffer, bufferSize); in waitForReads()
|