Home
last modified time | relevance | path

Searched refs:bufferWrapper (Results 1 – 6 of 6) sorted by relevance

/packages/modules/NeuralNetworks/driver/sample_aidl/
DSampleDriver.cpp193 auto bufferWrapper = in allocate() local
195 if (bufferWrapper == nullptr) { in allocate()
201 auto token = mBufferTracker->add(bufferWrapper); in allocate()
210 ndk::SharedRefBase::make<SampleBuffer>(std::move(bufferWrapper), std::move(token)); in allocate()
259 const std::shared_ptr<AidlManagedBuffer>& bufferWrapper) { in copyFromInternal() argument
260 CHECK(bufferWrapper != nullptr); in copyFromInternal()
270 const auto validationStatus = aidl_hal::utils::convert(bufferWrapper->validateCopyFrom( in copyFromInternal()
276 const auto dstPool = bufferWrapper->createRunTimePoolInfo(); in copyFromInternal()
325 auto bufferWrapper = driver.getBufferTracker()->get(static_cast<uint32_t>(*token)); in createRunTimePoolInfos() local
326 if (bufferWrapper == nullptr) { in createRunTimePoolInfos()
[all …]
/packages/modules/NeuralNetworks/driver/sample/
DCanonicalBuffer.cpp40 const std::shared_ptr<ManagedBuffer>& bufferWrapper) { in copyFromInternal() argument
41 CHECK(bufferWrapper != nullptr); in copyFromInternal()
48 bufferWrapper->validateCopyFrom(dimensions, srcPool->getSize()); in copyFromInternal()
52 const auto dstPool = bufferWrapper->createRunTimePoolInfo(); in copyFromInternal()
DSampleDriver.cpp288 auto bufferWrapper = in allocate() local
290 if (bufferWrapper == nullptr) { in allocate()
296 auto token = mHalBufferTracker->add(bufferWrapper); in allocate()
304 sp<SampleBuffer> sampleBuffer = new SampleBuffer(std::move(bufferWrapper), std::move(token)); in allocate()
347 const std::shared_ptr<HalManagedBuffer>& bufferWrapper) { in copyFromInternal() argument
348 CHECK(bufferWrapper != nullptr); in copyFromInternal()
355 convertToV1_3(bufferWrapper->validateCopyFrom(dimensions, srcPool->getSize())); in copyFromInternal()
359 const auto dstPool = bufferWrapper->createRunTimePoolInfo(); in copyFromInternal()
402 auto bufferWrapper = driver.getHalBufferTracker()->get(pool.token()); in createRunTimePoolInfos() local
403 if (bufferWrapper == nullptr) { in createRunTimePoolInfos()
[all …]
DCanonicalPreparedModel.cpp56 auto bufferWrapper = bufferTracker.get(*maybeToken); in createRunTimePoolInfos() local
57 if (bufferWrapper == nullptr) { in createRunTimePoolInfos()
61 bufferWrapper->validateRequest(i, request, &preparedModel); in createRunTimePoolInfos()
65 requestPoolInfos.push_back(bufferWrapper->createRunTimePoolInfo()); in createRunTimePoolInfos()
66 bufferWrappers.push_back(std::move(bufferWrapper)); in createRunTimePoolInfos()
DCanonicalDevice.cpp241 auto bufferWrapper = ManagedBuffer::create(size, std::move(roles), operand); in allocate() local
242 if (bufferWrapper == nullptr) { in allocate()
247 auto token = kBufferTracker->add(bufferWrapper); in allocate()
253 auto sampleBuffer = std::make_shared<const Buffer>(std::move(bufferWrapper), std::move(token)); in allocate()
/packages/modules/ExtServices/jni/
Dandroid_ext_services_displayhash_ImageHashManager.cpp78 BufferWrapper bufferWrapper(hardwareBuffer); in nativeGenerateHash() local
80 int32_t status = bufferWrapper.lock(&buf); in nativeGenerateHash()