Home
last modified time | relevance | path

Searched refs:doDup (Results 1 – 4 of 4) sorted by relevance

/packages/services/Car/cpp/evs/manager/aidl/utils/include/
DUtils.h49 const hidlevs::V1_0::BufferDesc& hidlBuffer, bool doDup);
52 const hidlevs::V1_1::BufferDesc& hidlBuffer, bool doDup);
55 bool doDup = true);
58 bool doDup = true);
61 bool doDup = true);
64 bool doDup = true);
106 const aidlgfx::common::HardwareBuffer& aidlDesc, bool doDup = true);
132 const ::aidl::android::hardware::common::NativeHandle& handle, bool doDup);
135 const aidlgfx::common::HardwareBuffer& buffer, bool doDup);
137 static aidlevs::BufferDesc dupBufferDesc(const aidlevs::BufferDesc& src, bool doDup);
/packages/services/Car/cpp/evs/manager/aidl/utils/src/
DUtils.cpp88 bool doDup) { in makeHwBufferFromHidlBuffer() argument
105 .handle = doDup ? ::android::dupToAidl(h) : ::android::makeToAidl(h), in makeHwBufferFromHidlBuffer()
127 bool doDup) { in makeHwBufferFromHidlBuffer() argument
136 .handle = doDup ? std::move(::android::dupToAidl(h)) in makeHwBufferFromHidlBuffer()
143 BufferDesc Utils::makeFromHidl(const hidlevs::V1_0::BufferDesc& hidlBuffer, bool doDup) { in makeFromHidl() argument
145 .buffer = Utils::makeHwBufferFromHidlBuffer(hidlBuffer, doDup), in makeFromHidl()
155 BufferDesc Utils::makeFromHidl(const hidlevs::V1_1::BufferDesc& hidlBuffer, bool doDup) { in makeFromHidl() argument
157 .buffer = Utils::makeHwBufferFromHidlBuffer(hidlBuffer, doDup), in makeFromHidl()
181 HIDLHardwareBuffer Utils::makeToHidl(const HardwareBuffer& aidlBuffer, bool doDup) { in makeToHidl() argument
184 .nativeHandle = doDup ? ::android::dupFromAidl(aidlBuffer.handle) in makeToHidl()
[all …]
/packages/services/Car/service/jni/evs/
DStreamHandler.cpp39 NativeHandle dupNativeHandle(const NativeHandle& handle, bool doDup) { in dupNativeHandle() argument
43 if (!doDup) { in dupNativeHandle()
57 HardwareBuffer dupHardwareBuffer(const HardwareBuffer& buffer, bool doDup) { in dupHardwareBuffer() argument
60 .handle = dupNativeHandle(buffer.handle, doDup), in dupHardwareBuffer()
66 BufferDesc dupBufferDesc(const BufferDesc& src, bool doDup) { in dupBufferDesc() argument
68 .buffer = dupHardwareBuffer(src.buffer, doDup), in dupBufferDesc()
/packages/services/Car/cpp/evs/manager/aidl/tests/unit/src/
DMockEvsHal.cpp71 NativeHandle copyNativeHandle(const NativeHandle& handle, bool doDup) { in copyNativeHandle() argument
75 if (!doDup) { in copyNativeHandle()
89 HardwareBuffer copyHardwareBuffer(const HardwareBuffer& buffer, bool doDup) { in copyHardwareBuffer() argument
92 .handle = copyNativeHandle(buffer.handle, doDup), in copyHardwareBuffer()
98 BufferDesc copyBufferDesc(const BufferDesc& src, bool doDup) { in copyBufferDesc() argument
100 .buffer = copyHardwareBuffer(src.buffer, doDup), in copyBufferDesc()