Searched refs:mAsset (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/native/android/ |
D | asset_manager.cpp | 49 Asset* mAsset; member 51 explicit AAsset(Asset* asset) : mAsset(asset) { } in AAsset() 52 ~AAsset() { delete mAsset; } in ~AAsset() 173 return asset->mAsset->read(buf, (size_t)count); in AAsset_read() 178 return asset->mAsset->seek(offset, whence); in AAsset_seek() 183 return asset->mAsset->seek(offset, whence); in AAsset_seek64() 188 asset->mAsset->close(); in AAsset_close() 194 return asset->mAsset->getBuffer(false); in AAsset_getBuffer() 199 return asset->mAsset->getLength(); in AAsset_getLength() 204 return asset->mAsset->getLength(); in AAsset_getLength64() [all …]
|
/frameworks/base/core/tests/benchmarks/src/android/content/res/ |
D | ResourcesBenchmark.java | 31 private AssetManager mAsset; field in ResourcesBenchmark 41 mAsset = new AssetManager(); in setUp() 42 mAsset.addAssetPath("/system/framework/framework-res.apk"); in setUp() 43 mRes = new Resources(mAsset, null, null); in setUp() 53 mAsset.close(); in tearDown()
|
/frameworks/base/core/java/android/content/res/ |
D | AssetManager.java | 608 return mAsset; in getNativeAsset() 612 mAsset = asset; in AssetInputStream() 616 return readAssetChar(mAsset); in read() 622 long len = getAssetRemainingLength(mAsset); in available() 627 if (mAsset != 0) { in close() 628 destroyAsset(mAsset); in close() 629 mAsset = 0; in close() 635 mMarkPos = seekAsset(mAsset, 0, 0); in mark() 638 seekAsset(mAsset, mMarkPos, -1); in reset() 641 return readAsset(mAsset, b, 0, b.length); in read() [all …]
|