Searched refs:asset (Results 1 - 24 of 24) sorted by relevance

/frameworks/native/include/android/
H A Dasset_manager.h44 * Open the named directory within the asset hierarchy. The directory can then
53 * Open an asset.
60 * Iterate over the files in an asset directory. A NULL string is returned
86 int AAsset_read(AAsset* asset, void* buf, size_t count);
89 * Seek to the specified offset within the asset data. 'whence' uses the
94 off_t AAsset_seek(AAsset* asset, off_t offset, int whence);
97 * Seek to the specified offset within the asset data. 'whence' uses the
105 off64_t AAsset_seek64(AAsset* asset, off64_t offset, int whence);
108 * Close the asset, freeing all associated resources.
110 void AAsset_close(AAsset* asset);
[all...]
/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/core/java/android/content/res/
H A DAssetManager.java29 * Provides access to an application's raw asset files; see {@link Resources}
36 /* 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.
278 * Open an asset using ACCESS_STREAMING mode. This provides access to
282 * @param fileName The name of the asset to open. This name can be
293 * Open an asset usin
542 AssetInputStream(int asset) argument
677 destroyAsset(int asset) argument
678 readAssetChar(int asset) argument
679 readAsset(int asset, byte[] b, int off, int len) argument
680 seekAsset(int asset, long offset, int whence) argument
681 getAssetLength(int asset) argument
682 getAssetRemainingLength(int asset) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DTypeface.cpp58 AssetStream(Asset* asset, bool hasMemoryBase) : fAsset(asset) argument
88 // asset->seek returns new total offset
128 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); local
129 if (NULL == asset) {
133 SkStream* stream = new AssetStream(asset, true);
H A DBitmapFactory.cpp461 /* make a deep copy of the asset, and return it as a stream, or NULL if there
464 static SkStream* copyAssetToStream(Asset* asset) { argument
465 // if we could "ref/reopen" the asset, we may not need to copy it here
466 off64_t size = asset->seek(0, SEEK_SET);
468 SkDebugf("---- copyAsset: asset rewind failed\n");
472 size = asset->getLength();
474 SkDebugf("---- copyAsset: asset->getLength() returned %d\n", size);
480 off64_t len = asset->read(data, size);
482 SkDebugf("---- copyAsset: asset->read(%d) returned %d\n", size, len);
493 Asset* asset local
[all...]
H A DBitmapRegionDecoder.cpp170 Asset* asset = reinterpret_cast<Asset*>(native_asset); local
171 assStream = new AssetStreamAdaptor(asset);
/frameworks/rs/
H A DrsFileA3D.h62 bool load(Asset *asset);
H A DrsFileA3D.cpp91 bool FileA3D::load(Asset *asset) { argument
93 mAsset = asset;
94 return load(asset->getBuffer(false), asset->getLength());
444 Asset *asset = static_cast<Asset *>(_asset); local
448 fa3d->load(asset);
H A Drs.h30 RsFile rsaFileA3DCreateFromAsset(RsContext, void *asset);
/frameworks/base/graphics/java/android/graphics/
H A DBitmapFactory.java489 final int asset = ((AssetManager.AssetInputStream) is).getAssetInt();
502 bm = nativeDecodeAsset(asset, outPadding, opts, true, scale);
507 bm = nativeDecodeAsset(asset, outPadding, opts);
655 private static native Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts); argument
656 private static native Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts, argument
H A DBitmapRegionDecoder.java273 int asset, boolean isShareable);
272 nativeNewInstance( int asset, boolean isShareable) argument
/frameworks/base/tools/aapt/
H A DCommand.cpp433 Asset* asset = NULL; local
497 asset = assets.openNonAsset(resname, Asset::ACCESS_BUFFER);
498 if (asset == NULL) {
503 if (tree.setTo(asset->getBuffer(true),
504 asset->getLength()) != NO_ERROR) {
511 delete asset;
512 asset = NULL;
524 asset = assets.openNonAsset(resname, Asset::ACCESS_BUFFER);
525 if (asset == NULL) {
530 if (tree.setTo(asset
[all...]
/frameworks/base/graphics/java/android/renderscript/
H A DFileA3D.java224 * Creates a FileA3D object from an asset stored on disk
227 * @param mgr asset manager used to load asset
237 throw new RSRuntimeException("Unable to create a3d file from asset " + path);
299 int asset = ((AssetManager.AssetInputStream) is).getAssetInt();
300 fileId = rs.nFileA3DCreateFromAssetStream(asset);
302 throw new RSRuntimeException("Unsupported asset stream");
H A DFont.java191 throw new RSRuntimeException("Unable to create font from asset " + path);
215 int asset = ((AssetManager.AssetInputStream) is).getAssetInt();
216 fontId = rs.nFontCreateFromAssetStream(name, pointSize, dpi, asset);
218 throw new RSRuntimeException("Unsupported asset stream created");
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapFactory_Delegate.java147 /*package*/ static Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts) { argument
153 /*package*/ static Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts, argument
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.h81 status_t initTexture(Texture* texture, AssetManager& asset, const char* name);
H A DBootAnimation.cpp102 Asset* asset = assets.open(name, Asset::ACCESS_BUFFER); local
103 if (!asset)
106 SkImageDecoder::DecodeMemory(asset->getBuffer(false), asset->getLength(),
108 asset->close();
109 delete asset;
/frameworks/support/renderscript/v8/rs_support/
H A Drs.h30 RsFile rsaFileA3DCreateFromAsset(RsContext, void *asset);
/frameworks/base/include/androidfw/
H A DAssetManager.h67 * The asset hierarchy may be examined like a filesystem, using
76 //CACHE_SCAN, // scan full(!) asset hierarchy at init() time
88 * added asset path will be examined first when searching for assets,
93 * newly-added asset source.
104 * Iterate over the asset paths in this manager. (Previously
113 * Return an asset path in the manager. 'which' must be between 0 and
138 * Open an asset.
149 * Open a non-asset file as an asset.
151 * This is for opening files that are included in an asset packag
[all...]
H A DResourceTypes.h1283 status_t add(Asset* asset, void* cookie,
1568 Asset* asset, bool copyData, const Asset* idmap);
/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp18 #define LOG_TAG "asset"
329 jint asset)
331 Asset* a = (Asset*)asset;
336 jniThrowNullPointerException(env, "asset");
344 jint asset)
346 Asset* a = (Asset*)asset;
349 jniThrowNullPointerException(env, "asset");
359 jint asset, jbyteArray bArray,
362 Asset* a = (Asset*)asset;
365 jniThrowNullPointerException(env, "asset");
328 android_content_AssetManager_destroyAsset(JNIEnv* env, jobject clazz, jint asset) argument
343 android_content_AssetManager_readAssetChar(JNIEnv* env, jobject clazz, jint asset) argument
358 android_content_AssetManager_readAsset(JNIEnv* env, jobject clazz, jint asset, jbyteArray bArray, jint off, jint len) argument
391 android_content_AssetManager_seekAsset(JNIEnv* env, jobject clazz, jint asset, jlong offset, jint whence) argument
406 android_content_AssetManager_getAssetLength(JNIEnv* env, jobject clazz, jint asset) argument
419 android_content_AssetManager_getAssetRemainingLength(JNIEnv* env, jobject clazz, jint asset) argument
[all...]
/frameworks/base/graphics/jni/
H A Dandroid_renderscript_RenderScript.cpp786 Asset* asset = reinterpret_cast<Asset*>(native_asset); local
788 jint id = (jint)rsaFileA3DCreateFromMemory(con, asset->getBuffer(false), asset->getLength());
801 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); local
802 if (asset == NULL) {
806 jint id = (jint)rsaFileA3DCreateFromAsset(con, asset);
869 Asset* asset = reinterpret_cast<Asset*>(native_asset); local
875 asset->getBuffer(false), asset->getLength());
889 Asset* asset local
[all...]
/frameworks/base/libs/androidfw/
H A DAssetManager.cpp21 #define LOG_TAG "asset"
476 * Open an asset.
513 * For each top-level asset path, search for the asset.
519 ALOGV("Looking for asset '%s' in '%s'\n",
531 * Open a non-asset file as if it were an asset.
547 * For each top-level asset path, search for the asset.
553 ALOGV("Looking for non-asset '
1836 setResourceTableAsset(Asset* asset) argument
1949 setZipResourceTableAsset(const String8& path, Asset* asset) argument
[all...]
H A DResourceTypes.cpp2749 status_t ResTable::add(Asset* asset, void* cookie, bool copyData, const void* idmap) argument
2751 const void* data = asset->getBuffer(true);
2753 ALOGW("Unable to get buffer of resource asset file");
2756 size_t size = (size_t)asset->getLength();
2757 return add(data, size, cookie, asset, copyData, reinterpret_cast<const Asset*>(idmap));
2785 Asset* asset, bool copyData, const Asset* idmap)
2807 ALOGV("Adding resources to ResTable: data=%p, size=0x%x, cookie=%p, asset=%p, copy=%d "
2808 "idmap=%p\n", data, size, cookie, asset, copyData, idmap));
2784 add(const void* data, size_t size, void* cookie, Asset* asset, bool copyData, const Asset* idmap) argument

Completed in 1264 milliseconds