Home
last modified time | relevance | path

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

/frameworks/base/media/native/midi/
Damidi.cpp48 unique_fd ufd; // The unique file descriptor associated with the port. member
251 unique_fd ufd; in AMIDI_openPort() local
253 ? device->server->openOutputPort(portToken, portNumber, &ufd) in AMIDI_openPort()
254 : device->server->openInputPort(portToken, portNumber, &ufd); in AMIDI_openPort()
264 port->ufd = std::move(ufd); in AMIDI_openPort()
321 struct pollfd checkFds[1] = { { mPort->ufd, POLLIN, 0 } }; in receive()
328 ssize_t readCount = read(mPort->ufd, readBuffer, sizeof(readBuffer)); in receive()
410 ssize_t numWritten = write(((AMIDI_Port*)inputPort)->ufd, writeBuffer, numTransferBytes); in AMidiInputPort_sendWithTimestamp()
433 ssize_t numWritten = write(((AMIDI_Port*)inputPort)->ufd, &opCode, numTransferBytes); in AMidiInputPort_sendFlush()
/frameworks/av/media/codec2/sfplugin/
DC2OMXNode.cpp110 for (android::base::unique_fd &ufd : uniqueFds) { in threadLoop()
111 (void)ufd.release(); in threadLoop()
/frameworks/native/cmds/installd/
Ddexopt.cpp106 unique_fd ufd(open(profile.c_str(), O_WRONLY | O_NOFOLLOW | O_CLOEXEC)); in clear_profile() local
107 if (ufd.get() < 0) { in clear_profile()
117 if (flock(ufd.get(), LOCK_EX | LOCK_NB) != 0) { in clear_profile()
139 bool truncated = ftruncate(ufd.get(), 0) == 0; in clear_profile()
143 if (flock(ufd.get(), LOCK_UN) != 0) { in clear_profile()
1425 unique_fd ufd = open_reference_profile(uid, pkgname, location, /*read_write*/false, in maybe_open_reference_profile() local
1430 return Dex2oatFileWrapper(ufd.release(), cleanup); in maybe_open_reference_profile()