Home
last modified time | relevance | path

Searched refs:Buffer (Results 1 – 25 of 84) sorted by relevance

1234

/hardware/interfaces/automotive/can/1.0/default/libnl++/
DAttributes.cpp23 Attributes::Attributes(Buffer<nlattr> buffer) : Buffer<nlattr>(buffer) {} in Attributes()
31 for (auto attr : static_cast<Buffer<nlattr>>(*this)) { in index()
45 Attributes Attributes::parse(Buffer<nlattr> buf) { in parse()
50 std::string Attributes::parse(Buffer<nlattr> buf) { in parse()
60 static T parseUnsigned(Buffer<nlattr> buf) { in parseUnsigned()
65 uint8_t Attributes::parse(Buffer<nlattr> buf) { in parse()
70 uint16_t Attributes::parse(Buffer<nlattr> buf) { in parse()
75 uint32_t Attributes::parse(Buffer<nlattr> buf) { in parse()
80 uint64_t Attributes::parse(Buffer<nlattr> buf) { in parse()
DMessageMutator.cpp30 MessageMutator::operator Buffer<nlmsghdr>() const { in operator Buffer<nlmsghdr>()
34 uint64_t MessageMutator::read(Buffer<nlattr> attr) const { in read()
38 void MessageMutator::write(Buffer<nlattr> attr, uint64_t val) const { in write()
/hardware/interfaces/neuralnetworks/aidl/utils/src/
DBuffer.cpp35 nn::GeneralResult<std::shared_ptr<const Buffer>> Buffer::create( in create()
44 return std::make_shared<const Buffer>(PrivateConstructorTag{}, std::move(buffer), token); in create()
47 Buffer::Buffer(PrivateConstructorTag /*tag*/, std::shared_ptr<aidl_hal::IBuffer> buffer, in Buffer() function in aidl::android::hardware::neuralnetworks::utils::Buffer
54 nn::Request::MemoryDomainToken Buffer::getToken() const { in getToken()
58 nn::GeneralResult<void> Buffer::copyTo(const nn::SharedMemory& dst) const { in copyTo()
67 nn::GeneralResult<void> Buffer::copyFrom(const nn::SharedMemory& src, in copyFrom()
/hardware/interfaces/automotive/can/1.0/default/libnl++/include/libnl++/
DBuffer.h46 class Buffer {
51 Buffer() : mData(nullptr), mBufferEnd(nullptr) {} in Buffer() function
59 Buffer(const T* data, size_t bufLen) : mData(data), mBufferEnd(pointerAdd(data, bufLen)) {} in Buffer() function
90 const Buffer<D> data(size_t offset = 0) const {
95 std::optional<uintptr_t> getOffset(Buffer<B> inner) const { in getOffset()
111 iterator(const Buffer<T>& buf) : mCurrent(buf) {} in iterator()
128 const Buffer<T>& operator*() const { return mCurrent; }
133 Buffer<T> mCurrent;
149 raw_view(const Buffer<T>& buffer) : mBuffer(buffer) {} in raw_view()
157 const Buffer<T> mBuffer;
[all …]
DMessageMutator.h38 operator Buffer<nlmsghdr>() const;
46 uint64_t read(Buffer<nlattr> attr) const;
54 void write(Buffer<nlattr> attr, uint64_t val) const;
57 const Buffer<nlmsghdr> mConstBuffer;
DAttributes.h38 class Attributes : private Buffer<nlattr> {
50 Attributes(Buffer<nlattr> buffer);
114 std::optional<Buffer<nlattr>> getBuffer(nlattrtype_t attrtype) const { in getBuffer()
149 using Index = std::map<nlattrtype_t, Buffer<nlattr>>;
182 static T parse(Buffer<nlattr> buf);
DSocket.h95 bool send(const Buffer<nlmsghdr>& msg, const sockaddr_nl& sa);
106 std::optional<Buffer<nlmsghdr>> receive(size_t maxSize = defaultReceiveSize);
119 std::pair<std::optional<Buffer<nlmsghdr>>, sockaddr_nl> receiveFrom(
209 const Buffer<nlmsghdr>& operator*() const;
214 Buffer<nlmsghdr>::iterator mCurrent;
230 std::optional<Buffer<nlmsghdr>> receive(const std::set<nlmsgtype_t>& msgtypes, size_t maxSize);
/hardware/interfaces/neuralnetworks/1.3/utils/src/
DBuffer.cpp41 nn::GeneralResult<std::shared_ptr<const Buffer>> Buffer::create( in create()
50 return std::make_shared<const Buffer>(PrivateConstructorTag{}, std::move(buffer), token); in create()
53 Buffer::Buffer(PrivateConstructorTag /*tag*/, sp<V1_3::IBuffer> buffer, in Buffer() function in android::hardware::neuralnetworks::V1_3::utils::Buffer
60 nn::Request::MemoryDomainToken Buffer::getToken() const { in getToken()
64 nn::GeneralResult<void> Buffer::copyTo(const nn::SharedMemory& dst) const { in copyTo()
74 nn::GeneralResult<void> Buffer::copyFrom(const nn::SharedMemory& src, in copyFrom()
/hardware/interfaces/media/bufferpool/2.0/
Dtypes.hal38 struct Buffer {
44 * Buffer ownership status for the specified client.
45 * Buffer transfer status for the specified buffer transafer transaction.
52 /** Buffer is acquired by the specified client. */
54 /** Buffer is sent by the specified client. */
56 /** Buffer transfer is acked by the receiver client. */
58 /** Buffer transfer is timed out by receiver client. */
60 /** Buffer transfer is not acked by the receiver. */
62 /** Buffer fetch request from the client. */
64 /** Buffer transaction succeeded. */
[all …]
/hardware/interfaces/media/bufferpool/1.0/
Dtypes.hal38 struct Buffer {
44 * Buffer ownership status for the specified client.
45 * Buffer transfer status for the specified buffer transafer transaction.
52 /** Buffer is acquired by the specified client. */
54 /** Buffer is sent by the specified client. */
56 /** Buffer transfer is acked by the receiver client. */
58 /** Buffer transfer is timed out by receiver client. */
60 /** Buffer transfer is not acked by the receiver. */
62 /** Buffer fetch request from the client. */
64 /** Buffer transaction succeeded. */
[all …]
/hardware/qcom/sdm845/display/gralloc/
Dgr_buf_mgr.h69 struct Buffer { struct
78 Buffer() = delete; argument
79 explicit Buffer(const private_handle_t *h, int ih_main = -1, int ih_meta = -1)
85 Error FreeBuffer(std::shared_ptr<Buffer> buf); argument
88 std::shared_ptr<Buffer> GetBufferFromHandleLocked(const private_handle_t *hnd);
91 std::unordered_map<const private_handle_t *, std::shared_ptr<Buffer>> handles_map_ = {};
/hardware/interfaces/neuralnetworks/aidl/utils/test/
DBufferTest.cpp63 const auto result = Buffer::create(kInvalidBuffer, kToken); in TEST()
75 const auto result = Buffer::create(mockBuffer, kInvalidToken); in TEST()
85 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST()
97 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST()
110 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST()
124 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST()
140 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST()
154 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST()
167 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST()
183 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST()
[all …]
/hardware/interfaces/neuralnetworks/1.3/utils/test/
DBufferTest.cpp61 const auto result = Buffer::create(kInvalidBuffer, kToken); in TEST()
73 const auto result = Buffer::create(mockBuffer, kInvalidToken); in TEST()
83 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST()
95 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST()
108 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST()
122 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST()
138 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST()
152 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST()
165 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST()
179 const auto buffer = Buffer::create(mockBuffer, kToken).value(); in TEST()
[all …]
/hardware/google/camera/common/lib_depth_generator/
Ddepth_types.h54 struct Buffer { struct
71 std::vector<Buffer> color_buffer; argument
73 std::vector<std::vector<Buffer>> ir_buffer;
75 Buffer depth_buffer;
/hardware/qcom/sm8150/display/gralloc/
Dgr_buf_mgr.h77 struct Buffer { struct
86 Buffer() = delete; argument
87 explicit Buffer(const private_handle_t *h, int ih_main = -1, int ih_meta = -1)
95 Error FreeBuffer(std::shared_ptr<Buffer> buf); argument
98 std::shared_ptr<Buffer> GetBufferFromHandleLocked(const private_handle_t *hnd);
101 std::unordered_map<const private_handle_t *, std::shared_ptr<Buffer>> handles_map_ = {};
/hardware/qcom/sm7250/display/gralloc/
Dgr_buf_mgr.h78 struct Buffer { struct
87 Buffer() = delete; argument
88 explicit Buffer(const private_handle_t *h, int ih_main = -1, int ih_meta = -1)
96 Error FreeBuffer(std::shared_ptr<Buffer> buf); argument
99 std::shared_ptr<Buffer> GetBufferFromHandleLocked(const private_handle_t *hnd);
102 std::unordered_map<const private_handle_t *, std::shared_ptr<Buffer>> handles_map_ = {};
/hardware/qcom/display/msm8996/libgralloc1/
Dgr_buf_mgr.h96 struct Buffer { struct
105 Buffer() = delete; argument
106 explicit Buffer(const private_handle_t* h, int ih_main = -1, int ih_meta = -1):
115 gralloc1_error_t FreeBuffer(std::shared_ptr<Buffer> buf); argument
118 std::shared_ptr<Buffer> GetBufferFromHandleLocked(const private_handle_t *hnd);
128 std::unordered_map<const private_handle_t*, std::shared_ptr<Buffer>> handles_map_ = {};
/hardware/qcom/display/msm8909/gralloc/
Dgr_buf_mgr.h96 struct Buffer { struct
105 Buffer() = delete; argument
106 explicit Buffer(const private_handle_t* h, int ih_main = -1, int ih_meta = -1):
115 gralloc1_error_t FreeBuffer(std::shared_ptr<Buffer> buf); argument
118 std::shared_ptr<Buffer> GetBufferFromHandleLocked(const private_handle_t *hnd);
127 std::unordered_map<const private_handle_t*, std::shared_ptr<Buffer>> handles_map_ = {};
/hardware/qcom/display/msm8998/libgralloc1/
Dgr_buf_mgr.h96 struct Buffer { struct
105 Buffer() = delete; argument
106 explicit Buffer(const private_handle_t* h, int ih_main = -1, int ih_meta = -1):
115 gralloc1_error_t FreeBuffer(std::shared_ptr<Buffer> buf); argument
118 std::shared_ptr<Buffer> GetBufferFromHandleLocked(const private_handle_t *hnd);
128 std::unordered_map<const private_handle_t*, std::shared_ptr<Buffer>> handles_map_ = {};
/hardware/qcom/display/msm8909w_3100/libgralloc1/
Dgr_buf_mgr.h96 struct Buffer { struct
105 Buffer() = delete; argument
106 explicit Buffer(const private_handle_t* h, int ih_main = -1, int ih_meta = -1):
115 gralloc1_error_t FreeBuffer(std::shared_ptr<Buffer> buf); argument
118 std::shared_ptr<Buffer> GetBufferFromHandleLocked(const private_handle_t *hnd);
127 std::unordered_map<const private_handle_t*, std::shared_ptr<Buffer>> handles_map_ = {};
/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/
DBuffer.h33 class Buffer final : public nn::IBuffer {
37 static nn::GeneralResult<std::shared_ptr<const Buffer>> create(
40 Buffer(PrivateConstructorTag tag, std::shared_ptr<aidl_hal::IBuffer> buffer,
/hardware/interfaces/neuralnetworks/1.3/utils/include/nnapi/hal/1.3/
DBuffer.h33 class Buffer final : public nn::IBuffer {
37 static nn::GeneralResult<std::shared_ptr<const Buffer>> create(
40 Buffer(PrivateConstructorTag tag, sp<V1_3::IBuffer> buffer,
/hardware/interfaces/neuralnetworks/utils/adapter/src/
DBuffer.cpp58 Buffer::Buffer(nn::SharedBuffer buffer) : kBuffer(std::move(buffer)) { in Buffer() function in android::hardware::neuralnetworks::adapter::Buffer
62 Return<V1_3::ErrorStatus> Buffer::copyTo(const hidl_memory& dst) { in copyTo()
72 Return<V1_3::ErrorStatus> Buffer::copyFrom(const hidl_memory& src, in copyFrom()
/hardware/interfaces/graphics/allocator/2.0/utils/gralloc1-adapter/
DGralloc1On0Adapter.h196 class Buffer {
198 Buffer(buffer_handle_t handle, gralloc1_backing_store_t store,
276 gralloc1_error_t (Buffer::*member)(Args...) const, Args... args) { in callBufferFunction()
296 &Buffer::getConsumerUsage, &usage); in getConsumerUsageHook()
307 &Buffer::getProducerUsage, &usage); in getProducerUsageHook()
325 gralloc1_error_t retain(const std::shared_ptr<Buffer>& buffer);
334 gralloc1_error_t release(const std::shared_ptr<Buffer>& buffer);
350 gralloc1_error_t lock(const std::shared_ptr<Buffer>& buffer,
355 gralloc1_error_t lockFlex(const std::shared_ptr<Buffer>& buffer,
363 const std::shared_ptr<Buffer>&, gralloc1_producer_usage_t,
[all …]
/hardware/interfaces/automotive/can/1.0/default/libnl++/protocols/route/
Dstructs.h28 void mapToStream(std::stringstream& ss, const Buffer<nlattr> attr);
31 void ifla_cacheinfoToStream(std::stringstream& ss, const Buffer<nlattr> attr);
35 void statsToStream(std::stringstream& ss, const Buffer<nlattr> attr) { in statsToStream()

1234