Searched refs:dstPool (Results 1 – 3 of 3) sorted by relevance
/packages/modules/NeuralNetworks/driver/sample/ |
D | CanonicalBuffer.cpp | 31 void copyRunTimePoolInfos(const RunTimePoolInfo& srcPool, const RunTimePoolInfo& dstPool) { in copyRunTimePoolInfos() argument 33 CHECK(dstPool.getBuffer() != nullptr); in copyRunTimePoolInfos() 34 CHECK(srcPool.getSize() == dstPool.getSize()); in copyRunTimePoolInfos() 35 std::copy(srcPool.getBuffer(), srcPool.getBuffer() + srcPool.getSize(), dstPool.getBuffer()); in copyRunTimePoolInfos() 36 dstPool.flush(); in copyRunTimePoolInfos() 52 const auto dstPool = bufferWrapper->createRunTimePoolInfo(); in copyFromInternal() local 53 copyRunTimePoolInfos(srcPool.value(), dstPool); in copyFromInternal() 71 const auto dstPool = RunTimePoolInfo::createFromMemory(dst); in copyTo() local 72 if (!dstPool.has_value()) { in copyTo() 77 const ErrorStatus validationStatus = kBuffer->validateCopyTo(dstPool->getSize()); in copyTo() [all …]
|
/packages/modules/NeuralNetworks/driver/sample_aidl/ |
D | SampleDriverAidl.cpp | 234 static void copyRunTimePoolInfos(const RunTimePoolInfo& srcPool, const RunTimePoolInfo& dstPool) { in copyRunTimePoolInfos() argument 236 CHECK(dstPool.getBuffer() != nullptr); in copyRunTimePoolInfos() 237 CHECK(srcPool.getSize() == dstPool.getSize()); in copyRunTimePoolInfos() 238 std::copy(srcPool.getBuffer(), srcPool.getBuffer() + srcPool.getSize(), dstPool.getBuffer()); in copyRunTimePoolInfos() 239 dstPool.flush(); in copyRunTimePoolInfos() 247 const auto dstPool = RunTimePoolInfo::createFromMemory(canonicalMemory.value()); in copyTo() local 248 if (!dstPool.has_value()) { in copyTo() 254 aidl_hal::utils::convert(kBuffer->validateCopyTo(dstPool->getSize())).value(); in copyTo() 260 copyRunTimePoolInfos(srcPool, dstPool.value()); in copyTo() 283 const auto dstPool = RunTimePoolInfo::createFromExistingBuffer(bufferWrapper->getPointer(), in copyFromInternal() local [all …]
|
/packages/modules/NeuralNetworks/driver/sample_hidl/ |
D | SampleDriver.cpp | 310 static void copyRunTimePoolInfos(const RunTimePoolInfo& srcPool, const RunTimePoolInfo& dstPool) { in copyRunTimePoolInfos() argument 312 CHECK(dstPool.getBuffer() != nullptr); in copyRunTimePoolInfos() 313 CHECK(srcPool.getSize() == dstPool.getSize()); in copyRunTimePoolInfos() 314 std::copy(srcPool.getBuffer(), srcPool.getBuffer() + srcPool.getSize(), dstPool.getBuffer()); in copyRunTimePoolInfos() 315 dstPool.flush(); in copyRunTimePoolInfos() 319 const auto dstPool = RunTimePoolInfo::createFromMemory(uncheckedConvert(dst)); in copyTo() local 320 if (!dstPool.has_value()) { in copyTo() 325 convertToV1_3(kBuffer->validateCopyTo(dstPool->getSize())); in copyTo() 330 copyRunTimePoolInfos(srcPool, dstPool.value()); in copyTo() 348 const auto dstPool = bufferWrapper->createRunTimePoolInfo(); in copyFromInternal() local [all …]
|