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

/frameworks/base/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.cpp328 /* make a deep copy of the asset, and return it as a stream, or NULL if there
331 static SkStream* copyAssetToStream(Asset* asset) { argument
332 // if we could "ref/reopen" the asset, we may not need to copy it here
333 off64_t size = asset->seek(0, SEEK_SET);
335 SkDebugf("---- copyAsset: asset rewind failed\n");
339 size = asset->getLength();
341 SkDebugf("---- copyAsset: asset->getLength() returned %d\n", size);
347 off64_t len = asset->read(data, size);
349 SkDebugf("---- copyAsset: asset->read(%d) returned %d\n", size, len);
361 Asset* asset local
[all...]
H A DBitmapRegionDecoder.cpp169 Asset* asset = reinterpret_cast<Asset*>(native_asset); local
170 assStream = new AssetStreamAdaptor(asset);
/frameworks/base/libs/rs/
H A DrsFileA3D.h63 bool load(Asset *asset);
H A DrsFileA3D.cpp85 bool FileA3D::load(Asset *asset) { argument
86 mAsset = asset;
87 return load(asset->getBuffer(false), asset->getLength());
425 Asset *asset = static_cast<Asset *>(_asset); local
429 fa3d->load(asset);
H A DRenderScript.h34 RsFile rsaFileA3DCreateFromAsset(RsContext, void *asset);
/frameworks/base/tools/aapt/
H A DCommand.cpp431 Asset* asset = NULL; local
490 asset = assets.openNonAsset(resname, Asset::ACCESS_BUFFER);
491 if (asset == NULL) {
496 if (tree.setTo(asset->getBuffer(true),
497 asset->getLength()) != NO_ERROR) {
504 delete asset;
505 asset = NULL;
517 asset = assets.openNonAsset(resname, Asset::ACCESS_BUFFER);
518 if (asset == NULL) {
523 if (tree.setTo(asset
[all...]
/frameworks/base/graphics/java/android/renderscript/
H A DFileA3D.java212 * Creates a FileA3D object from an asset stored on disk
215 * @param mgr asset manager used to load asset
225 throw new RSRuntimeException("Unable to create a3d file from asset " + path);
284 int asset = ((AssetManager.AssetInputStream) is).getAssetInt();
285 fileId = rs.nFileA3DCreateFromAssetStream(asset);
287 throw new RSRuntimeException("Unsupported asset stream");
H A DFont.java168 throw new RSRuntimeException("Unable to create font from asset " + path);
189 int asset = ((AssetManager.AssetInputStream) is).getAssetInt();
190 fontId = rs.nFontCreateFromAssetStream(name, pointSize, dpi, asset);
192 throw new RSRuntimeException("Unsupported asset stream created");
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.h81 status_t initTexture(Texture* texture, AssetManager& asset, const char* name);
H A DBootAnimation.cpp96 Asset* asset = assets.open(name, Asset::ACCESS_BUFFER); local
97 if (!asset)
100 SkImageDecoder::DecodeMemory(asset->getBuffer(false), asset->getLength(),
102 asset->close();
103 delete asset;
/frameworks/base/graphics/java/android/graphics/
H A DBitmapRegionDecoder.java262 int asset, boolean isShareable);
261 nativeNewInstance( int asset, boolean isShareable) argument
H A DBitmapFactory.java625 private static native Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts); argument
/frameworks/base/include/utils/
H A DAssetManager.h66 * The asset hierarchy may be examined like a filesystem, using
75 //CACHE_SCAN, // scan full(!) asset hierarchy at init() time
87 * added asset path will be examined first when searching for assets,
92 * newly-added asset source.
103 * Iterate over the asset paths in this manager. (Previously
112 * Return an asset path in the manager. 'which' must be between 0 and
137 * Open an asset.
148 * Open a non-asset file as an asset.
150 * This is for opening files that are included in an asset packag
[all...]
H A DResourceTypes.h1817 status_t add(Asset* asset, void* cookie,
2096 Asset* asset, bool copyData, const Asset* idmap);
/frameworks/base/graphics/jni/
H A Dandroid_renderscript_RenderScript.cpp714 Asset* asset = reinterpret_cast<Asset*>(native_asset); local
716 jint id = (jint)rsaFileA3DCreateFromMemory(con, asset->getBuffer(false), asset->getLength());
729 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); local
730 if (asset == NULL) {
734 jint id = (jint)rsaFileA3DCreateFromAsset(con, asset);
797 Asset* asset = reinterpret_cast<Asset*>(native_asset); local
803 asset->getBuffer(false), asset->getLength());
817 Asset* asset local
[all...]
/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/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapFactory_Delegate.java144 /*package*/ static Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts) { argument
/frameworks/base/libs/utils/
H A DAssetManager.cpp21 #define LOG_TAG "asset"
458 * Open an asset.
495 * For each top-level asset path, search for the asset.
501 LOGV("Looking for asset '%s' in '%s'\n",
513 * Open a non-asset file as if it were an asset.
529 * For each top-level asset path, search for the asset.
535 LOGV("Looking for non-asset '
1818 setResourceTableAsset(Asset* asset) argument
1931 setZipResourceTableAsset(const String8& path, Asset* asset) argument
[all...]
H A DResourceTypes.cpp1812 status_t ResTable::add(Asset* asset, void* cookie, bool copyData, const void* idmap) argument
1814 const void* data = asset->getBuffer(true);
1816 LOGW("Unable to get buffer of resource asset file");
1819 size_t size = (size_t)asset->getLength();
1820 return add(data, size, cookie, asset, copyData, reinterpret_cast<const Asset*>(idmap));
1848 Asset* asset, bool copyData, const Asset* idmap)
1870 LOGV("Adding resources to ResTable: data=%p, size=0x%x, cookie=%p, asset=%p, copy=%d "
1871 "idmap=%p\n", data, size, cookie, asset, copyData, idmap));
1847 add(const void* data, size_t size, void* cookie, Asset* asset, bool copyData, const Asset* idmap) argument

Completed in 700 milliseconds