Lines Matching refs:asset
51 explicit AAsset(Asset* asset) : mAsset(asset) { } in AAsset()
108 Asset* asset = mgr->open(filename, amMode); in AAssetManager_open() local
109 if (asset == NULL) { in AAssetManager_open()
113 return new AAsset(asset); in AAssetManager_open()
171 int AAsset_read(AAsset* asset, void* buf, size_t count) in AAsset_read() argument
173 return asset->mAsset->read(buf, (size_t)count); in AAsset_read()
176 off_t AAsset_seek(AAsset* asset, off_t offset, int whence) in AAsset_seek() argument
178 return asset->mAsset->seek(offset, whence); in AAsset_seek()
181 off64_t AAsset_seek64(AAsset* asset, off64_t offset, int whence) in AAsset_seek64() argument
183 return asset->mAsset->seek(offset, whence); in AAsset_seek64()
186 void AAsset_close(AAsset* asset) in AAsset_close() argument
188 asset->mAsset->close(); in AAsset_close()
189 delete asset; in AAsset_close()
192 const void* AAsset_getBuffer(AAsset* asset) in AAsset_getBuffer() argument
194 return asset->mAsset->getBuffer(false); in AAsset_getBuffer()
197 off_t AAsset_getLength(AAsset* asset) in AAsset_getLength() argument
199 return asset->mAsset->getLength(); in AAsset_getLength()
202 off64_t AAsset_getLength64(AAsset* asset) in AAsset_getLength64() argument
204 return asset->mAsset->getLength(); in AAsset_getLength64()
207 off_t AAsset_getRemainingLength(AAsset* asset) in AAsset_getRemainingLength() argument
209 return asset->mAsset->getRemainingLength(); in AAsset_getRemainingLength()
212 off64_t AAsset_getRemainingLength64(AAsset* asset) in AAsset_getRemainingLength64() argument
214 return asset->mAsset->getRemainingLength(); in AAsset_getRemainingLength64()
217 int AAsset_openFileDescriptor(AAsset* asset, off_t* outStart, off_t* outLength) in AAsset_openFileDescriptor() argument
221 int ret = asset->mAsset->openFileDescriptor(&outStart64, &outLength64); in AAsset_openFileDescriptor()
228 int AAsset_openFileDescriptor64(AAsset* asset, off64_t* outStart, off64_t* outLength) in AAsset_openFileDescriptor64() argument
230 return asset->mAsset->openFileDescriptor(outStart, outLength); in AAsset_openFileDescriptor64()
233 int AAsset_isAllocated(AAsset* asset) in AAsset_isAllocated() argument
235 return asset->mAsset->isAllocated() ? 1 : 0; in AAsset_isAllocated()