Home
last modified time | relevance | path

Searched refs:file_map (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/tools/aapt2/io/
DZipArchive.cpp45 android::FileMap file_map; in OpenAsData() local
46 bool result = file_map.create(nullptr, fd, zip_entry_.offset, in OpenAsData()
51 return util::make_unique<MmappedData>(std::move(file_map)); in OpenAsData()
/frameworks/base/libs/androidfw/
DApkAssets.cpp97 std::unique_ptr<FileMap> file_map = util::make_unique<FileMap>(); in CreateAssetFromFile() local
98 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()