Home
last modified time | relevance | path

Searched refs:mAsset (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/native/android/
Dasset_manager.cpp49 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/
DResourcesBenchmark.java31 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/
DAssetManager.java614 return mAsset; in getNativeAsset()
618 mAsset = asset; in AssetInputStream()
622 return readAssetChar(mAsset); in read()
628 long len = getAssetRemainingLength(mAsset); in available()
633 if (mAsset != 0) { in close()
634 destroyAsset(mAsset); in close()
635 mAsset = 0; in close()
641 mMarkPos = seekAsset(mAsset, 0, 0); in mark()
644 seekAsset(mAsset, mMarkPos, -1); in reset()
647 return readAsset(mAsset, b, 0, b.length); in read()
[all …]