Searched refs:file_map (Results 1 – 2 of 2) sorted by relevance
45 android::FileMap file_map; in OpenAsData() local46 bool result = file_map.create(nullptr, fd, zip_entry_.offset, in OpenAsData()51 return util::make_unique<MmappedData>(std::move(file_map)); in OpenAsData()
97 std::unique_ptr<FileMap> file_map = util::make_unique<FileMap>(); in CreateAssetFromFile() local98 if (!file_map->create(path.c_str(), fd, 0, static_cast<size_t>(file_len), true /*readOnly*/)) { in CreateAssetFromFile()102 return Asset::createFromUncompressedMap(std::move(file_map), Asset::AccessMode::ACCESS_RANDOM); in CreateAssetFromFile()