Home
last modified time | relevance | path

Searched refs:ufd (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/media/native/midi/
Damidi.cpp48 unique_fd ufd; // The unique file descriptor associated with the port. member
259 unique_fd ufd; in AMIDI_openPort() local
261 ? device->server->openOutputPort(portToken, portNumber, &ufd) in AMIDI_openPort()
262 : device->server->openInputPort(portToken, portNumber, &ufd); in AMIDI_openPort()
272 port->ufd = std::move(ufd); in AMIDI_openPort()
329 struct pollfd checkFds[1] = { { mPort->ufd, POLLIN, 0 } }; in receive()
336 ssize_t readCount = TEMP_FAILURE_RETRY(read(mPort->ufd, readBuffer, sizeof(readBuffer))); in receive()
422 ssize_t numWritten = TEMP_FAILURE_RETRY(write(((AMIDI_Port*)inputPort)->ufd, writeBuffer, in AMidiInputPort_sendWithTimestamp()
446 ssize_t numWritten = TEMP_FAILURE_RETRY(write(((AMIDI_Port*)inputPort)->ufd, &opCode, in AMidiInputPort_sendFlush()
/frameworks/native/include/binder/
Dunique_fd.h106 /* implicit */ borrowed_fd(const unique_fd& ufd) : fd_(ufd.get()) {} // NOLINT in borrowed_fd()
/frameworks/native/libs/binder/include/binder/
Dunique_fd.h106 /* implicit */ borrowed_fd(const unique_fd& ufd) : fd_(ufd.get()) {} // NOLINT in borrowed_fd()
/frameworks/av/media/codec2/vndk/
DC2Fence.cpp754 PipeFenceImpl(::android::base::unique_fd &&ufd) : mPipeFd{std::move(ufd)} { in PipeFenceImpl() argument
767 ::android::base::unique_fd ufd{fd}; in CreatePipeFence()
768 return CreatePipeFence(std::move(ufd)); in CreatePipeFence()
771 C2Fence _C2FenceFactory::CreatePipeFence(::android::base::unique_fd &&ufd) { in CreatePipeFence() argument
773 std::make_shared<_C2FenceFactory::PipeFenceImpl>(std::move(ufd)); in CreatePipeFence()
/frameworks/av/media/codec2/vndk/include/
DC2FenceFactory.h151 static C2Fence CreatePipeFence(::android::base::unique_fd &&ufd);
DC2IgbaBufferPriv.h39 ::android::base::unique_fd &&ufd,
/frameworks/av/media/codec2/vndk/platform/
DC2IgbaBuffer.cpp169 ::android::base::unique_fd &&ufd, in C2IgbaBlockPool() argument
175 if (ufd.get() < 0) { in C2IgbaBlockPool()
179 mWaitFence = _C2FenceFactory::CreatePipeFence(std::move(ufd)); in C2IgbaBlockPool()
/frameworks/base/libs/androidfw/
DAssetsProvider.cpp200 base::unique_fd ufd; in OpenInternal() local
205 ufd = base::unique_fd(dup(fd)); in OpenInternal()
206 if (!ufd.ok()) { in OpenInternal()
212 auto asset = Asset::createFromUncompressedMap(std::move(asset_map), mode, std::move(ufd)); in OpenInternal()
/frameworks/av/media/codec2/sfplugin/
DC2NodeImpl.cpp136 for (android::base::unique_fd &ufd : uniqueFds) { in threadLoop()
137 (void)ufd.release(); in threadLoop()
/frameworks/native/cmds/installd/
Ddexopt.cpp187 unique_fd ufd(open(profile.c_str(), O_WRONLY | O_NOFOLLOW | O_CLOEXEC)); in clear_profile() local
188 if (ufd.get() < 0) { in clear_profile()
198 if (flock(ufd.get(), LOCK_EX | LOCK_NB) != 0) { in clear_profile()
220 bool truncated = ftruncate(ufd.get(), 0) == 0; in clear_profile()
224 if (flock(ufd.get(), LOCK_UN) != 0) { in clear_profile()
467 unique_fd ufd = open_profile(uid, profile_path, O_RDONLY, in open_reference_profile_as_unique_file() local
471 return UniqueFile(ufd.release(), profile_path, [](const std::string& path) { in open_reference_profile_as_unique_file()
/frameworks/native/cmds/installd/tests/
Dinstalld_service_test.cpp554 unique_fd ufd(open(path.c_str(), open_mode)); in createFsveritySetupAuthToken() local
555 EXPECT_GE(ufd.get(), 0) << "open failed: " << strerror(errno); in createFsveritySetupAuthToken()
556 ParcelFileDescriptor rfd(std::move(ufd)); in createFsveritySetupAuthToken()
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_test.cpp1053 void RedirectOutputToFd(android::base::unique_fd& ufd) { in RedirectOutputToFd() argument
1054 ds_.open_socket_fn_ = [&](const char*) -> int { return ufd.release(); }; in RedirectOutputToFd()