Searched defs:asset (Results 1 - 18 of 18) sorted by relevance

/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapFactory_Delegate.java108 /*package*/ static Bitmap nativeDecodeAsset(long asset, Rect padding, Options opts) { argument
/frameworks/base/core/jni/android/graphics/
H A DUtils.cpp22 AssetStreamAdaptor::AssetStreamAdaptor(Asset* asset, OwnAsset ownAsset, argument
24 : fAsset(asset)
26 asset->getBuffer(false) : NULL)
68 // asset->seek returns new total offset
95 SkMemoryStream* android::CopyAssetToStream(Asset* asset) { argument
96 if (NULL == asset) {
100 off64_t size = asset->seek(0, SEEK_SET);
102 SkDebugf("---- copyAsset: asset rewind failed\n");
106 size = asset->getLength();
108 SkDebugf("---- copyAsset: asset
[all...]
H A DFontFamily.cpp96 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); local
97 if (NULL == asset) {
101 SkStream* stream = new AssetStreamAdaptor(asset,
H A DMovie.cpp85 android::Asset* asset = reinterpret_cast<android::Asset*>(native_asset); local
86 if (asset == NULL) return NULL;
87 SkAutoTUnref<SkStreamRewindable> stream (new android::AssetStreamAdaptor(asset,
H A DBitmapRegionDecoder.cpp155 Asset* asset = reinterpret_cast<Asset*>(native_asset); local
156 SkAutoTUnref<SkMemoryStream> stream(CopyAssetToStream(asset));
H A DBitmapFactory.cpp529 Asset* asset = reinterpret_cast<Asset*>(native_asset); local
530 // since we know we'll be done with the asset when we return, we can
532 SkAutoTUnref<SkStreamRewindable> stream(new AssetStreamAdaptor(asset,
/frameworks/base/graphics/java/android/graphics/
H A DBitmapRegionDecoder.java271 long asset, boolean isShareable);
270 nativeNewInstance( long asset, boolean isShareable) argument
H A DMovie.java51 final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset();
52 return nativeDecodeAsset(asset);
58 private static native Movie nativeDecodeAsset(long asset); argument
/frameworks/base/native/android/
H A Dasset_manager.cpp51 AAsset(Asset* asset) : mAsset(asset) { } argument
108 Asset* asset = mgr->open(filename, amMode); local
109 if (asset == NULL) {
113 return new AAsset(asset);
171 int AAsset_read(AAsset* asset, void* buf, size_t count) argument
173 return asset->mAsset->read(buf, (size_t)count);
176 off_t AAsset_seek(AAsset* asset, off_t offset, int whence) argument
178 return asset->mAsset->seek(offset, whence);
181 off64_t AAsset_seek64(AAsset* asset, off64_ argument
186 AAsset_close(AAsset* asset) argument
192 AAsset_getBuffer(AAsset* asset) argument
197 AAsset_getLength(AAsset* asset) argument
202 AAsset_getLength64(AAsset* asset) argument
207 AAsset_getRemainingLength(AAsset* asset) argument
212 AAsset_getRemainingLength64(AAsset* asset) argument
217 AAsset_openFileDescriptor(AAsset* asset, off_t* outStart, off_t* outLength) argument
228 AAsset_openFileDescriptor64(AAsset* asset, off64_t* outStart, off64_t* outLength) argument
233 AAsset_isAllocated(AAsset* asset) argument
[all...]
/frameworks/base/tools/split-select/
H A DMain.cpp131 Asset* asset = assetManager.openNonAsset(cookie, "AndroidManifest.xml", Asset::ACCESS_BUFFER); local
132 if (asset == NULL) {
137 if (xml.setTo(asset->getBuffer(true), asset->getLength(), false) != NO_ERROR) {
138 delete asset;
201 delete asset;
/frameworks/rs/
H A DrsFileA3D.cpp94 bool FileA3D::load(Asset *asset) { argument
96 mAsset = asset;
97 return load(asset->getBuffer(false), asset->getLength());
450 Asset *asset = static_cast<Asset *>(_asset); local
454 fa3d->load(asset);
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp110 Asset* asset = assets.open(name, Asset::ACCESS_BUFFER); local
111 if (!asset)
114 SkImageDecoder::DecodeMemory(asset->getBuffer(false), asset->getLength(),
116 asset->close();
117 delete asset;
/frameworks/base/core/java/android/content/res/
H A DAssetManager.java30 * Provides access to an application's raw asset files; see {@link Resources}
37 /* modes used when opening an asset */
83 * appropriate asset manager with {@link Resources#getAssets}. Not for
94 if (localLOGV) Log.v(TAG, "New asset manager: " + this);
117 if (localLOGV) Log.v(TAG, "New asset manager: " + this);
121 * Return a global shared asset manager that provides access to only
131 * Close this asset manager.
276 * Open an asset using ACCESS_STREAMING mode. This provides access to
280 * @param fileName The name of the asset to open. This name can be
291 * Open an asset usin
549 AssetInputStream(long asset) argument
710 destroyAsset(long asset) argument
711 readAssetChar(long asset) argument
712 readAsset(long asset, byte[] b, int off, int len) argument
713 seekAsset(long asset, long offset, int whence) argument
714 getAssetLength(long asset) argument
715 getAssetRemainingLength(long asset) argument
[all...]
/frameworks/base/libs/androidfw/
H A DAssetManager.cpp21 #define LOG_TAG "asset"
213 // This asset path does not contain any resources.
466 * Open an asset.
503 * For each top-level asset path, search for the asset.
509 ALOGV("Looking for asset '%s' in '%s'\n",
521 * Open a non-asset file as if it were an asset.
537 * For each top-level asset path, search for the asset
1904 setResourceTableAsset(Asset* asset) argument
2031 setZipResourceTableAsset(const String8& path, Asset* asset) argument
[all...]
H A DResourceTypes.cpp3317 status_t ResTable::add(Asset* asset, const int32_t cookie, bool copyData) { argument
3318 const void* data = asset->getBuffer(true);
3320 ALOGW("Unable to get buffer of resource asset file");
3324 return addInternal(data, static_cast<size_t>(asset->getLength()), NULL, 0, cookie, copyData);
3327 status_t ResTable::add(Asset* asset, Asset* idmapAsset, const int32_t cookie, bool copyData) { argument
3328 const void* data = asset->getBuffer(true);
3330 ALOGW("Unable to get buffer of resource asset file");
3339 ALOGW("Unable to get buffer of idmap asset file");
3345 return addInternal(data, static_cast<size_t>(asset->getLength()),
/frameworks/base/tools/aapt/
H A DCommand.cpp631 // The dynamicRefTable can be null if there are no resources for this asset cookie.
635 Asset* asset = NULL; local
655 asset = assets.openNonAsset(assetsCookie, resname, Asset::ACCESS_BUFFER);
656 if (asset == NULL) {
661 if (tree.setTo(asset->getBuffer(true),
662 asset->getLength()) != NO_ERROR) {
669 delete asset;
670 asset = NULL;
681 asset = assets.openNonAsset(assetsCookie, resname, Asset::ACCESS_BUFFER);
682 if (asset
[all...]
H A DResource.cpp1004 Asset* asset = assets.openNonAsset(cookie, "AndroidManifest.xml", Asset::ACCESS_STREAMING); local
1005 if (asset == NULL) {
1011 if (tree.setTo(asset->getBuffer(true), asset->getLength()) != NO_ERROR) {
1018 delete asset;
/frameworks/base/rs/jni/
H A Dandroid_renderscript_RenderScript.cpp828 Asset* asset = reinterpret_cast<Asset*>(native_asset); local
829 ALOGV("______nFileA3D %p", asset);
831 jlong id = (jlong)(uintptr_t)rsaFileA3DCreateFromMemory((RsContext)con, asset->getBuffer(false), asset->getLength());
844 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); local
845 if (asset == NULL) {
849 jlong id = (jlong)(uintptr_t)rsaFileA3DCreateFromAsset((RsContext)con, asset);
912 Asset* asset = reinterpret_cast<Asset*>(native_asset); local
918 asset->getBuffer(false), asset
932 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); local
[all...]

Completed in 151 milliseconds