Searched refs:mappableFile (Results 1 – 6 of 6) sorted by relevance
38 android.hardware.common.MappableFile mappableFile;
35 MappableFile mappableFile;
72 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()
366 case Tag::mappableFile: { in unvalidatedConvert()367 const auto& mappableFile = memory.get<Tag::mappableFile>(); in unvalidatedConvert() local368 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 …]
670 case Memory::Tag::mappableFile: in getSize()671 return memory.get<Memory::Tag::mappableFile>().length; in getSize()