Home
last modified time | relevance | path

Searched refs:MemoryFd (Results 1 – 3 of 3) sorted by relevance

/aosp12/packages/modules/NeuralNetworks/runtime/
H A DMemory.h291 class MemoryFd : public RuntimeMemory {
298 static std::pair<int, std::unique_ptr<MemoryFd>> create(size_t size, int prot, int fd,
302 explicit MemoryFd(SharedMemory memory);
H A DMemory.cpp530 std::pair<int, std::unique_ptr<MemoryFd>> MemoryFd::create(size_t size, int prot, int fd, in create()
537 return {ANEURALNETWORKS_NO_ERROR, std::make_unique<MemoryFd>(std::move(memory).value())}; in create()
540 MemoryFd::MemoryFd(SharedMemory memory) : RuntimeMemory(std::move(memory)) {} in MemoryFd() function in android::nn::MemoryFd
H A DNeuralNetworks.cpp1026 std::unique_ptr<MemoryFd> m; in ANeuralNetworksMemory_createFromFd()
1027 std::tie(n, m) = MemoryFd::create(size, prot, fd, offset); in ANeuralNetworksMemory_createFromFd()