Searched refs:mMemory (Results 1 – 7 of 7) sorted by relevance
/packages/modules/NeuralNetworks/shim_and_sl/include/ |
D | SupportLibraryWrapper.h | 52 : mNnApi(nnapi), mMemory(memory), mSize(0) {} in Memory() 59 size, protect, fd, offset, &mMemory) == ANEURALNETWORKS_NO_ERROR; 66 buffer, &mMemory) == ANEURALNETWORKS_NO_ERROR; in Memory() 72 mValid = mNnApi->getFL5()->ANeuralNetworksMemory_createFromDesc(desc, &mMemory) == in Memory() 77 if (mMemory) { in ~Memory() 78 mNnApi->getFL5()->ANeuralNetworksMemory_free(mMemory); in ~Memory() 100 if (mMemory) { 101 mNnApi->getFL5()->ANeuralNetworksMemory_free(mMemory); 110 mMemory = other.mMemory; 115 other.mMemory = nullptr; [all …]
|
/packages/modules/NeuralNetworks/runtime/include/ |
D | NeuralNetworksWrapper.h | 189 : mNnApi(nnapi), mMemory(memory) {} in Memory() 197 size, protect, fd, offset, &mMemory)) == ANEURALNETWORKS_NO_ERROR; 206 mValid = NNAPI_CALL(ANeuralNetworksMemory_createFromAHardwareBuffer(buffer, &mMemory)) == 212 if (mMemory) { 213 NNAPI_CALL(ANeuralNetworksMemory_free(mMemory)); 229 if (mMemory) { 230 NNAPI_CALL(ANeuralNetworksMemory_free(mMemory)); 232 mMemory = other.mMemory; 234 other.mMemory = nullptr; 240 ANeuralNetworksMemory* get() const { return mMemory; } [all …]
|
/packages/modules/NeuralNetworks/runtime/test/ |
D | TestNeuralNetworksWrapper.h | 58 Memory(ANeuralNetworksMemory* memory) : mMemory(memory) {} in Memory() 61 mValid = ANeuralNetworksMemory_createFromFd(size, protect, fd, offset, &mMemory) == in Memory() 67 mValid = ANeuralNetworksMemory_createFromAHardwareBuffer(buffer, &mMemory) == in Memory() 72 virtual ~Memory() { ANeuralNetworksMemory_free(mMemory); } in ~Memory() 86 ANeuralNetworksMemory_free(mMemory); 87 mMemory = other.mMemory; 89 other.mMemory = nullptr; 95 ANeuralNetworksMemory* get() const { return mMemory; } in get() 99 ANeuralNetworksMemory* mMemory = nullptr;
|
D | SupportLibraryTestUtils.h | 36 : mFd(std::move(fd)), mMapped(std::move(mapped)), mMemory(std::move(memory)) {} in TestAshmem() 68 sl_wrapper::Memory* get() { return &mMemory; } in get() 78 sl_wrapper::Memory mMemory; variable
|
D | TestUtils.h | 39 : mFd(std::move(fd)), mMapped(std::move(mapped)), mMemory(std::move(memory)) {} in TestAshmem() 75 test_wrapper::Memory* get() { return &mMemory; } in get() 85 test_wrapper::Memory mMemory; variable
|
/packages/modules/NeuralNetworks/shim_and_sl/ |
D | ShimDevice.cpp | 203 mMemory(std::move(memory)), in ShimBuffer() 268 Result result = memory->copyTo(*mMemory.get()); in copyFrom() 276 if (memory->getSize() != mMemory->getSize()) { in copyFrom() 294 Result result = mMemory->copyTo(*memory); in copyTo() 301 if (memory->getSize() != mMemory->getSize()) { in copyTo() 315 std::shared_ptr<::android::nn::sl_wrapper::Memory> mMemory; member in aidl::android::hardware::neuralnetworks::ShimBuffer
|
/packages/modules/NeuralNetworks/common/ |
D | CpuExecutor.cpp | 296 const SharedMemory& getMemory() const { return mMemory; } in getMemory() 299 const SharedMemory mMemory; member in android::nn::RunTimePoolInfo::RunTimePoolInfoImpl 304 : mMemory(std::move(memory)), mMapping(std::move(mapping)) {} in RunTimePoolInfoImpl()
|