Home
last modified time | relevance | path

Searched refs:readFd (Results 1 – 9 of 9) sorted by relevance

/system/media/audio_utils/include/audio_utils/
DFdToString.h190 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/
Dalloc-stress.cpp46 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/
DLooper_test.cpp752 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/
DSystemSuspend.h74 std::string readFd(int fd);
DSystemSuspendUnitTest.cpp70 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()
DSystemSuspend.cpp76 string readFd(int fd) { in readFd() function
335 string wakeupCount = readFd(mWakeupCountFd); in initAutosuspendLocked()
/system/libhwbinder/vts/performance/
DBenchmark_throughput.cpp51 Pipe(int readFd, int writeFd) in Pipe() argument
52 : m_readFd{readFd}, m_writeFd{writeFd} { in Pipe()
/system/incremental_delivery/incfs/tests/
Dincfs_test.cpp149 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/
Dincfs.cpp1202 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()