Home
last modified time | relevance | path

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

/frameworks/native/libs/vr/libbufferhub/
Dion_buffer.cpp122 int IonBuffer::Import(const int* fd_array, int fd_count, const int* int_array, in Import() argument
130 fd_count, int_count, width, height, layer_count, stride, format, in Import()
133 if (fd_count < 0 || int_count < 0) { in Import()
138 native_handle_t* handle = native_handle_create(fd_count, int_count); in Import()
146 memcpy(handle->data, fd_array, sizeof(int) * fd_count); in Import()
147 memcpy(handle->data + fd_count, int_array, sizeof(int) * int_count); in Import()
165 const int fd_count = other->handle()->numFds; in Duplicate() local
168 if (fd_count < 0 || int_count < 0) in Duplicate()
171 native_handle_t* handle = native_handle_create(fd_count, int_count); in Duplicate()
178 for (int i = 0; i < fd_count; i++) in Duplicate()
[all …]
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
Dnative_handle_wrapper.h27 const int fd_count = handle->numFds; in NativeHandleWrapper() local
32 for (int i = 0; i < fd_count; i++) { in NativeHandleWrapper()
36 ints_.push_back(handle->data[fd_count + i]); in NativeHandleWrapper()
41 size_t fd_count() const { return fds_.size(); } in fd_count() function
Dbufferhub_rpc.h32 const int fd_count = buffer.handle()->numFds; in NativeBufferHandle() local
34 for (int i = 0; i < fd_count; i++) { in NativeBufferHandle()
38 opaque_ints_.push_back(buffer.handle()->data[fd_count + i]); in NativeBufferHandle()
Dion_buffer.h56 int Import(const int* fd_array, int fd_count, const int* int_array,
/frameworks/native/libs/vr/libpdx_uds/
Dipc_helper.cpp173 uint32_t fd_count{0}; member
195 preamble.fd_count = file_handles_.size(); in Send()
310 file_handles_.reserve(preamble.fd_count); in Receive()
321 size_t fd_count = payload_len / sizeof(int); in Receive() local
322 std::transform(fds, fds + fd_count, std::back_inserter(file_handles_), in Receive()
Dservice_endpoint.cpp529 info.fd_count = request.file_descriptors.size(); in ReceiveMessageForChannel()
575 info.fd_count = 0; in BuildCloseMessage()
/frameworks/native/libs/binder/
DParcel.cpp1318 const size_t fd_count = val.getFdCount(); in write() local
1320 if ((len > INT32_MAX) || (fd_count >= gMaxFds)) { in write()
1329 err = this->writeInt32(fd_count); in write()
1338 if (fd_count) { in write()
1339 fds = new (std::nothrow) int[fd_count]; in write()
1341 ALOGE("write: failed to allocate requested %zu fds", fd_count); in write()
1346 err = val.flatten(buf, len, fds, fd_count); in write()
1347 for (size_t i=0 ; i<fd_count && err==NO_ERROR ; i++) { in write()
1351 if (fd_count) { in write()
2350 const size_t fd_count = this->readInt32(); in read() local
[all …]
/frameworks/native/libs/vr/libpdx/private/pdx/
Dservice_endpoint.h30 size_t fd_count{0};
/frameworks/native/libs/vr/libpdx/fuzz/
Dmessage_fuzzer.cpp54 info.fd_count = fdp.ConsumeIntegral<size_t>(); in LLVMFuzzerTestOneInput()
Dhelpers.h101 info.fd_count = _fdp->ConsumeIntegral<size_t>(); in MessageReceive()
/frameworks/native/libs/vr/libpdx/
Dservice.cpp425 size_t Message::GetFileDescriptorCount() const { return info_.fd_count; } in GetFileDescriptorCount()
Dservice_tests.cpp128 info->fd_count = 0; in SetupMessageInfo()