Home
last modified time | relevance | path

Searched refs:makeBuffer (Results 1 – 3 of 3) sorted by relevance

/hardware/interfaces/neuralnetworks/utils/common/src/
DResilientBuffer.cpp63 Factory makeBuffer) { in create() argument
64 if (makeBuffer == nullptr) { in create()
68 auto buffer = NN_TRY(makeBuffer()); in create()
70 return std::make_shared<const ResilientBuffer>(PrivateConstructorTag{}, std::move(makeBuffer), in create()
74 ResilientBuffer::ResilientBuffer(PrivateConstructorTag /*tag*/, Factory makeBuffer, in ResilientBuffer() argument
76 : kMakeBuffer(std::move(makeBuffer)), mBuffer(std::move(buffer)) { in ResilientBuffer()
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.h39 static nn::GeneralResult<std::shared_ptr<const ResilientBuffer>> create(Factory makeBuffer);
41 explicit ResilientBuffer(PrivateConstructorTag tag, Factory makeBuffer,