/frameworks/native/libs/binder/ |
D | RpcTransportUtils.h | 74 auto& iov = iovs[0]; in interruptableReadOrWrite() local 75 if (static_cast<size_t>(processSize) < iov.iov_len) { in interruptableReadOrWrite() 77 iov.iov_base = reinterpret_cast<char*>(iov.iov_base) + processSize; in interruptableReadOrWrite() 78 iov.iov_len -= processSize; in interruptableReadOrWrite() 83 processSize -= iov.iov_len; in interruptableReadOrWrite()
|
D | RpcTransportTls.cpp | 343 const iovec& iov = iovs[i]; in interruptableWriteFully() local 344 if (iov.iov_len == 0) { in interruptableWriteFully() 347 size += iov.iov_len; in interruptableWriteFully() 349 auto buffer = reinterpret_cast<const uint8_t*>(iov.iov_base); in interruptableWriteFully() 350 const uint8_t* end = buffer + iov.iov_len; in interruptableWriteFully() 389 const iovec& iov = iovs[i]; in interruptableReadFully() local 390 if (iov.iov_len == 0) { in interruptableReadFully() 393 size += iov.iov_len; in interruptableReadFully() 395 auto buffer = reinterpret_cast<uint8_t*>(iov.iov_base); in interruptableReadFully() 396 const uint8_t* end = buffer + iov.iov_len; in interruptableReadFully()
|
D | RpcTransportTipcAndroid.cpp | 114 auto& iov = iovs[i]; in interruptableReadFully() local 115 size_t numBytes = std::min(iov.iov_len, mReadBufferSize - mReadBufferPos); in interruptableReadFully() 116 memcpy(iov.iov_base, mReadBuffer.get() + mReadBufferPos, numBytes); in interruptableReadFully()
|
D | RpcServer.cpp | 216 iovec iov{&zero, sizeof(zero)}; in recvmsgSocketConnection() local 219 ssize_t num_bytes = binder::os::receiveMessageFromSocket(server.mServer, &iov, 1, &fds); in recvmsgSocketConnection() 393 iovec iov{&header, sizeof(header)}; in establishConnection() local 394 status = client->interruptableReadFully(server->mShutdownTrigger.get(), &iov, 1, in establishConnection() 408 iovec iov{sessionId.data(), sessionId.size()}; in establishConnection() local 409 status = client->interruptableReadFully(server->mShutdownTrigger.get(), &iov, 1, in establishConnection() 439 iovec iov{&response, sizeof(response)}; in establishConnection() local 440 status = client->interruptableWriteFully(server->mShutdownTrigger.get(), &iov, 1, in establishConnection()
|
D | RpcState.cpp | 433 iovec iov{&response, sizeof(response)}; in readNewSessionResponse() local 434 if (status_t status = rpcRec(connection, session, "new session response", &iov, 1, nullptr); in readNewSessionResponse() 447 iovec iov{&init, sizeof(init)}; in sendConnectionInit() local 448 return rpcSend(connection, session, "connection init", &iov, 1, std::nullopt); in sendConnectionInit() 454 iovec iov{&init, sizeof(init)}; in readConnectionInit() local 455 if (status_t status = rpcRec(connection, session, "connection init", &iov, 1, nullptr); in readConnectionInit() 655 iovec iov{&command, sizeof(command)}; in waitForReply() local 656 if (status_t status = rpcRec(connection, session, "command header (for reply)", &iov, 1, in waitForReply() 772 iovec iov{&command, sizeof(command)}; in getAndExecuteCommand() local 774 rpcRec(connection, session, "command header (for server)", &iov, 1, in getAndExecuteCommand() [all …]
|
D | RpcSession.cpp | 160 iovec iov{&zero, sizeof(zero)}; in setupUnixDomainSocketBootstrapClient() local 164 status_t status = mBootstrapTransport->interruptableWriteFully(mShutdownTrigger.get(), &iov, in setupUnixDomainSocketBootstrapClient()
|
/frameworks/native/libs/binder/trusty/ |
D | RpcTransportTipcTrusty.cpp | 66 .iov = iovs, in interruptableWriteFully() 155 .iov = iovs, in interruptableReadFully() 198 auto& iov = iovs[0]; in interruptableReadFully() local 199 if (processSize < iov.iov_len) { in interruptableReadFully() 201 iov.iov_base = reinterpret_cast<char*>(iov.iov_base) + processSize; in interruptableReadFully() 202 iov.iov_len -= processSize; in interruptableReadFully() 207 processSize -= iov.iov_len; in interruptableReadFully()
|
/frameworks/libs/binary_translation/kernel_api/ |
D | sys_ptrace_emulation.cc | 78 auto iov = reinterpret_cast<iovec*>(data); in PtraceForGuest() local 79 iov->iov_len = 0; in PtraceForGuest()
|
/frameworks/native/libs/nativewindow/ |
D | AHardwareBuffer.cpp | 365 struct iovec iov[1]; in AHardwareBuffer_sendHandleToUnixSocket() local 366 iov[0].iov_base = data.get(); in AHardwareBuffer_sendHandleToUnixSocket() 367 iov[0].iov_len = flattenedSize; in AHardwareBuffer_sendHandleToUnixSocket() 371 .msg_iov = &iov[0], in AHardwareBuffer_sendHandleToUnixSocket() 406 struct iovec iov[1]; in AHardwareBuffer_recvHandleFromUnixSocket() local 407 iov[0].iov_base = dataBuf.get(); in AHardwareBuffer_recvHandleFromUnixSocket() 408 iov[0].iov_len = kMessageBufferSize; in AHardwareBuffer_recvHandleFromUnixSocket() 411 .msg_iov = &iov[0], in AHardwareBuffer_recvHandleFromUnixSocket()
|
/frameworks/native/libs/binder/trusty/include_mock/ |
D | trusty_ipc.h | 40 iovec* iov; member
|
/frameworks/native/libs/binder/tests/ |
D | binderRpcTest.cpp | 231 iovec iov{&zero, sizeof(zero)}; in connectToUnixBootstrap() local 235 if (binder::os::sendMessageOnSocket(transportFd, &iov, 1, &fds) < 0) { in connectToUnixBootstrap() 1599 iovec iov{&buf, sizeof(buf)}; in recvmsgServerConnection() local 1601 if (binder::os::receiveMessageFromSocket(mFd, &iov, 1, &fds) < 0) { in recvmsgServerConnection()
|