Home
last modified time | relevance | path

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

/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/current/android/hardware/neuralnetworks/
DMemory.aidl38 android.hardware.common.MappableFile mappableFile;
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/1/android/hardware/neuralnetworks/
DMemory.aidl38 android.hardware.common.MappableFile mappableFile;
/hardware/interfaces/neuralnetworks/aidl/android/hardware/neuralnetworks/
DMemory.aidl35 MappableFile mappableFile;
/hardware/interfaces/neuralnetworks/aidl/utils/src/
DUtils.cpp72 case Memory::Tag::mappableFile: { in clone()
73 const auto& memFd = memory.get<Memory::Tag::mappableFile>(); in clone()
80 return Memory::make<Memory::Tag::mappableFile>(std::move(handle)); in clone()
DConversions.cpp366 case Tag::mappableFile: { in unvalidatedConvert()
367 const auto& mappableFile = memory.get<Tag::mappableFile>(); in unvalidatedConvert() local
368 VERIFY_NON_NEGATIVE(mappableFile.length) << "Memory size must not be negative"; in unvalidatedConvert()
369 VERIFY_NON_NEGATIVE(mappableFile.offset) << "Memory offset must not be negative"; in unvalidatedConvert()
370 if (mappableFile.length > std::numeric_limits<size_t>::max()) { in unvalidatedConvert()
373 if (mappableFile.offset > std::numeric_limits<size_t>::max()) { in unvalidatedConvert()
377 const size_t size = static_cast<size_t>(mappableFile.length); in unvalidatedConvert()
378 const int prot = mappableFile.prot; in unvalidatedConvert()
379 const int fd = mappableFile.fd.get(); in unvalidatedConvert()
380 const size_t offset = static_cast<size_t>(mappableFile.offset); in unvalidatedConvert()
[all …]
/hardware/interfaces/neuralnetworks/aidl/vts/functional/
DMemoryDomainTests.cpp670 case Memory::Tag::mappableFile: in getSize()
671 return memory.get<Memory::Tag::mappableFile>().length; in getSize()