Lines Matching refs:memory
198 std::shared_ptr<::android::nn::sl_wrapper::Memory> memory, in ShimBuffer() argument
203 mMemory(std::move(memory)), in ShimBuffer()
253 auto memory = convertFromHAL(mNnApi, src); in copyFrom() local
255 if (!memory) { in copyFrom()
268 Result result = memory->copyTo(*mMemory.get()); in copyFrom()
276 if (memory->getSize() != mMemory->getSize()) { in copyFrom()
287 auto memory = convertFromHAL(mNnApi, dst); in copyTo() local
289 if (!memory) { in copyTo()
294 Result result = mMemory->copyTo(*memory); in copyTo()
301 if (memory->getSize() != mMemory->getSize()) { in copyTo()
438 auto memory = in allocate() local
441 if (!memory->isValid()) { in allocate()
447 auto token = mBufferTracker->add(memory); in allocate()
455 std::move(memory), std::move(token)); in allocate()
620 std::move(modelAndMemory->models), std::move(modelAndMemory->memory), in prepareModelCommon()