Searched refs:MemoryFromDevice (Results 1 – 3 of 3) sorted by relevance
345 class MemoryFromDevice : public RuntimeMemory {352 static std::pair<int, std::unique_ptr<MemoryFromDevice>> create(SharedBuffer buffer);355 explicit MemoryFromDevice(SharedBuffer buffer);
600 std::pair<int, std::unique_ptr<MemoryFromDevice>> MemoryFromDevice::create(SharedBuffer buffer) { in create()605 return {ANEURALNETWORKS_NO_ERROR, std::make_unique<MemoryFromDevice>(std::move(buffer))}; in create()608 MemoryFromDevice::MemoryFromDevice(SharedBuffer buffer) : RuntimeMemory(std::move(buffer)) {} in MemoryFromDevice() function in android::nn::MemoryFromDevice
499 return MemoryFromDevice::create(std::move(result).value()); in allocate()