Home
last modified time | relevance | path

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

/frameworks/base/cmds/incidentd/tests/
DFdBuffer_test.cpp129 c2pPipe.readFd().reset(); in TEST_F()
138 status_t status = buffer.read(c2pPipe.readFd().get(), QUICK_TIMEOUT_MS); in TEST_F()
156 c2pPipe.readFd().reset(); in TEST_F()
158 ASSERT_TRUE(DoDataStream(p2cPipe.readFd(), c2pPipe.writeFd())); in TEST_F()
159 p2cPipe.readFd().reset(); in TEST_F()
164 p2cPipe.readFd().reset(); in TEST_F()
169 std::move(c2pPipe.readFd()), READ_TIMEOUT)); in TEST_F()
186 c2pPipe.readFd().reset(); in TEST_F()
189 ASSERT_TRUE(ReadFdToString(p2cPipe.readFd(), &data)); in TEST_F()
192 p2cPipe.readFd().reset(); in TEST_F()
[all …]
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/voiceinteraction/
DHotwordAudioStreamCopierTest.java94 ParcelFileDescriptor readFd = in testDefaultCopyBufferLength() local
97 verifyCopyBufferLength(DEFAULT_COPY_BUFFER_LENGTH_BYTES, readFd, writeFd); in testDefaultCopyBufferLength()
137 ParcelFileDescriptor readFd = in testCustomCopyBufferLength() local
140 verifyCopyBufferLength(copyBufferLengths[i], readFd, writeFd); in testCustomCopyBufferLength()
168 ParcelFileDescriptor readFd = in testInvalidCopyBufferLength_NonPositive() local
171 verifyCopyBufferLength(DEFAULT_COPY_BUFFER_LENGTH_BYTES, readFd, writeFd); in testInvalidCopyBufferLength_NonPositive()
197 ParcelFileDescriptor readFd = in testInvalidCopyBufferLength_ExceedsMaximum() local
200 verifyCopyBufferLength(DEFAULT_COPY_BUFFER_LENGTH_BYTES, readFd, writeFd); in testInvalidCopyBufferLength_ExceedsMaximum()
226 ParcelFileDescriptor readFd = in testInvalidCopyBufferLength_NotAnInt() local
229 verifyCopyBufferLength(DEFAULT_COPY_BUFFER_LENGTH_BYTES, readFd, writeFd); in testInvalidCopyBufferLength_NotAnInt()
[all …]
/frameworks/base/cmds/incidentd/src/
Dincidentd_util.cpp87 unique_fd& Fpipe::readFd() { return mRead; } in readFd() function in android::os::incidentd::Fpipe
94 in = input->readFd().release(); in fork_execute_cmd()
100 fcntl(output->readFd().get(), F_SETFD, FD_CLOEXEC); in fork_execute_cmd()
DSection.cpp126 std::move(c2pPipe.readFd()), in Execute()
208 fd.get(), std::move(p2cPipe.writeFd()), std::move(c2pPipe.readFd()), this->timeoutMs, in Execute()
291 err = buffer.read(data->pipe.readFd().get(), this->timeoutMs); in Execute()
380 status_t readStatus = buffer.read(ihPipe.readFd().get(), this->timeoutMs); in Execute()
503 status_t readStatus = buffer.read(dumpPipe.readFd(), this->timeoutMs); in Execute()
504 dumpPipe.readFd().reset(); in Execute()
803 dumpPipe.readFd().reset(); in BlockingCall()
821 err = buffer.readFully(dumpPipe.readFd().get()); in BlockingCall()
826 dumpPipe.readFd().reset(); in BlockingCall()
852 dumpPipe.readFd().reset(); in BlockingCall()
Dincidentd_util.h72 unique_fd& readFd();
DBroadcaster.cpp401 int readFd = fds[0]; in send_to_dropbox() local
410 Status status = dropbox->addFile(String16("incident"), readFd, 0); in send_to_dropbox()
DReporter.cpp207 pid_t pid = fork_execute_cmd((char* const*)GZIP, mZipPipe.readFd().release(), mFd, &status); in initGzipIfNecessary()
DWorkDirectory.cpp437 zipPid = fork_execute_cmd((char* const*)GZIP, zipPipe.readFd().release(), writeFd, &status); in startFilteringData()
/frameworks/base/core/java/com/android/internal/os/
DTransferPipe.java253 ParcelFileDescriptor readFd = getReadFd(); in run() local
254 if (readFd == null) { in run()
258 fis = new FileInputStream(readFd.getFileDescriptor()); in run()
/frameworks/native/libs/binder/tests/
DbinderRpcTestCommon.h232 binder::unique_fd readFd, writeFd; in mockFileDescriptor() local
233 LOG_ALWAYS_FATAL_IF(!binder::Pipe(&readFd, &writeFd), "%s", strerror(errno)); in mockFileDescriptor()
242 return readFd; in mockFileDescriptor()
DbinderThroughputTest.cpp125 Pipe(int readFd, int writeFd) : m_readFd{readFd}, m_writeFd{writeFd} {} in Pipe() argument
Dschd-dbg.cpp154 Pipe(int readFd, int writeFd) : m_readFd{readFd}, m_writeFd{writeFd} { in Pipe() argument
DbinderRpcTest.cpp291 auto readFd = std::to_string(readEnd.get()); in createRpcTestSocketServerProcessEtc() local
293 readFd.c_str(), NULL); in createRpcTestSocketServerProcessEtc()
295 servicePath.c_str(), writeFd.c_str(), readFd.c_str(), status); in createRpcTestSocketServerProcessEtc()
/frameworks/base/core/jni/
Dandroid_hardware_camera2_CameraMetadata.cpp463 int writeFd, readFd; in CameraMetadata_dump() local
474 readFd = sv[1]; in CameraMetadata_dump()
496 close(readFd); in CameraMetadata_dump()
515 while ((res = TEMP_FAILURE_RETRY(read(readFd, &out[0], /*count*/1))) > 0) { in CameraMetadata_dump()
533 close(readFd); in CameraMetadata_dump()
/frameworks/native/libs/binder/ndk/include_cpp/android/
Dbinder_parcel_utils.h350 int readFd;
351 binder_status_t status = AParcel_readParcelFileDescriptor(parcel, &readFd);
353 fd->set(readFd);
375 int readFd;
376 binder_status_t status = AParcel_readParcelFileDescriptor(parcel, &readFd);
378 if (readFd < 0) {
381 fd->set(readFd);
/frameworks/av/media/codec2/hal/client/
DGraphicsTracker.cpp524 int readFd = mReadPipeFd.get(); in drainDequeueableLocked() local
525 if (readFd < 0) { in drainDequeueableLocked()
529 int ret = ::read(readFd, buf, dec); in drainDequeueableLocked()
/frameworks/base/telephony/java/android/telephony/
DTelephonyManager.java5103 ParcelFileDescriptor readFd; in uploadCallComposerPicture() local
5107 readFd = pipe[0]; in uploadCallComposerPicture()
5118 contentType, readFd, new ResultReceiver(null) { in uploadCallComposerPicture() local