Home | History | Annotate | Download | only in utils

Lines Matching defs:Asset

18 // Provide access to a read-only asset.
21 #define LOG_TAG "asset"
24 #include <utils/Asset.h>
47 static Asset* gHead = NULL;
48 static Asset* gTail = NULL;
50 int32_t Asset::getGlobalCount()
56 String8 Asset::getAssetAllocations()
60 Asset* cur = gHead;
76 Asset::Asset(void)
89 //LOGI("Creating Asset %p #%d\n", this, gCount);
92 Asset::~Asset(void)
109 //LOGI("Destroying Asset in %p #%d\n", this, gCount);
113 * Create a new Asset from a file on disk. There is a fair chance that
118 /*static*/ Asset* Asset::createFromFile(const char* fileName, AccessMode mode)
155 * Create a new Asset from a compressed file on disk. There is a fair chance
160 /*static*/ Asset* Asset::createFromCompressedFile(const char* fileName,
216 * Create a new Asset from part of an open file.
218 /*static*/ Asset* Asset::createFromFileSegment(int fd, off_t offset,
234 * Create a new Asset from compressed data in an open file.
236 /*static*/ Asset* Asset::createFromCompressedData(int fd, off_t offset,
255 * Create a new Asset from a memory mapping.
257 /*static*/ Asset* Asset::createFromUncompressedMap(FileMap* dataMap,
273 * Create a new Asset from compressed data in a memory mapping.
275 /*static*/ Asset* Asset::createFromCompressedMap(FileMap* dataMap,
298 off_t Asset::handleSeek(off_t offset, int whence, off_t curPosn, off_t maxPosn)
507 * Close the asset.
571 LOGV("Asset %p allocating buffer size %d (smaller than threshold)", this, (int)allocLen);
802 * Close the asset.
867 * Success - now that we have the full asset in RAM we