/frameworks/base/media/native/midi/ |
D | amidi.cpp | 48 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/ |
D | unique_fd.h | 106 /* implicit */ borrowed_fd(const unique_fd& ufd) : fd_(ufd.get()) {} // NOLINT in borrowed_fd()
|
/frameworks/native/libs/binder/include/binder/ |
D | unique_fd.h | 106 /* implicit */ borrowed_fd(const unique_fd& ufd) : fd_(ufd.get()) {} // NOLINT in borrowed_fd()
|
/frameworks/av/media/codec2/vndk/ |
D | C2Fence.cpp | 754 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/ |
D | C2FenceFactory.h | 151 static C2Fence CreatePipeFence(::android::base::unique_fd &&ufd);
|
D | C2IgbaBufferPriv.h | 39 ::android::base::unique_fd &&ufd,
|
/frameworks/av/media/codec2/vndk/platform/ |
D | C2IgbaBuffer.cpp | 169 ::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/ |
D | AssetsProvider.cpp | 200 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/ |
D | C2NodeImpl.cpp | 136 for (android::base::unique_fd &ufd : uniqueFds) { in threadLoop() 137 (void)ufd.release(); in threadLoop()
|
/frameworks/native/cmds/installd/ |
D | dexopt.cpp | 187 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/ |
D | installd_service_test.cpp | 554 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/ |
D | dumpstate_test.cpp | 1053 void RedirectOutputToFd(android::base::unique_fd& ufd) { in RedirectOutputToFd() argument 1054 ds_.open_socket_fn_ = [&](const char*) -> int { return ufd.release(); }; in RedirectOutputToFd()
|