Home
last modified time | relevance | path

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

/hardware/interfaces/neuralnetworks/utils/common/src/
DResilientBuffer.cpp36 auto protect(const ResilientBuffer& resilientBuffer, const FnType& fn) in protect()
62 nn::GeneralResult<std::shared_ptr<const ResilientBuffer>> ResilientBuffer::create( in create()
70 return std::make_shared<const ResilientBuffer>(PrivateConstructorTag{}, std::move(makeBuffer), in create()
74 ResilientBuffer::ResilientBuffer(PrivateConstructorTag /*tag*/, Factory makeBuffer, in ResilientBuffer() function in android::hardware::neuralnetworks::utils::ResilientBuffer
81 nn::SharedBuffer ResilientBuffer::getBuffer() const { in getBuffer()
85 nn::GeneralResult<nn::SharedBuffer> ResilientBuffer::recover( in recover()
98 nn::Request::MemoryDomainToken ResilientBuffer::getToken() const { in getToken()
102 nn::GeneralResult<void> ResilientBuffer::copyTo(const nn::SharedMemory& dst) const { in copyTo()
107 nn::GeneralResult<void> ResilientBuffer::copyFrom(const nn::SharedMemory& src, in copyFrom()
DResilientDevice.cpp219 ResilientBuffer::Factory makeBuffer = [device = std::move(self), desc, preparedModels, in allocate()
223 return ResilientBuffer::create(std::move(makeBuffer)); in allocate()
/hardware/interfaces/neuralnetworks/utils/common/include/nnapi/hal/
DResilientBuffer.h33 class ResilientBuffer final : public nn::IBuffer {
39 static nn::GeneralResult<std::shared_ptr<const ResilientBuffer>> create(Factory makeBuffer);
41 explicit ResilientBuffer(PrivateConstructorTag tag, Factory makeBuffer,
/hardware/interfaces/neuralnetworks/utils/common/test/
DResilientBufferTest.cpp44 std::shared_ptr<const ResilientBuffer>>
51 auto buffer = ResilientBuffer::create(mockBufferFactory->AsStdFunction()).value(); in setup()
67 const auto invalidBufferFactory = ResilientBuffer::Factory{}; in TEST()
70 const auto result = ResilientBuffer::create(invalidBufferFactory); in TEST()
82 const auto result = ResilientBuffer::create(invalidBufferFactory); in TEST()