/frameworks/base/native/include/android/ |
H A D | asset_manager.h | 44 * 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 * Close the asset, freeing all associated resources. 99 void AAsset_close(AAsset* asset); 106 const void* AAsset_getBuffer(AAsset* asset); 109 * Report the total size of the asset dat [all...] |
/frameworks/base/native/android/ |
H A D | asset_manager.cpp | 51 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 void AAsset_close(AAsset* asset) argument 187 AAsset_getBuffer(AAsset* asset) argument 192 AAsset_getLength(AAsset* asset) argument 197 AAsset_getRemainingLength(AAsset* asset) argument 202 AAsset_openFileDescriptor(AAsset* asset, off_t* outStart, off_t* outLength) argument 207 AAsset_isAllocated(AAsset* asset) argument [all...] |
/frameworks/base/core/java/android/content/res/ |
H A D | AssetManager.java | 30 * Provides access to an application's raw asset files; see {@link Resources} 37 /* modes used when opening an asset */ 84 * appropriate asset manager with {@link Resources#getAssets}. Not for 95 if (localLOGV) Log.v(TAG, "New asset manager: " + this); 118 if (localLOGV) Log.v(TAG, "New asset manager: " + this); 122 * Return a global shared asset manager that provides access to only 132 * Close this asset manager. 277 * Open an asset using ACCESS_STREAMING mode. This provides access to 281 * @param fileName The name of the asset to open. This name can be 292 * Open an asset usin 541 AssetInputStream(int asset) argument 675 destroyAsset(int asset) argument 676 readAssetChar(int asset) argument 677 readAsset(int asset, byte[] b, int off, int len) argument 678 seekAsset(int asset, long offset, int whence) argument 679 getAssetLength(int asset) argument 680 getAssetRemainingLength(int asset) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | Typeface.cpp | 58 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 return SkTypeface::CreateFromStream(new AssetStream(asset, true));
|
H A D | BitmapFactory.cpp | 367 /* make a deep copy of the asset, and return it as a stream, or NULL if there 370 static SkStream* copyAssetToStream(Asset* asset) { argument 371 // if we could "ref/reopen" the asset, we may not need to copy it here 372 off_t size = asset->seek(0, SEEK_SET); 374 SkDebugf("---- copyAsset: asset rewind failed\n"); 378 size = asset->getLength(); 380 SkDebugf("---- copyAsset: asset->getLength() returned %d\n", size); 386 off_t len = asset->read(data, size); 388 SkDebugf("---- copyAsset: asset->read(%d) returned %d\n", size, len); 400 Asset* asset local [all...] |
H A D | BitmapRegionDecoder.cpp | 175 Asset* asset = reinterpret_cast<Asset*>(native_asset); local 176 assStream = new AssetStreamAdaptor(asset);
|
/frameworks/base/tools/aapt/ |
H A D | Command.cpp | 402 Asset* asset = NULL; local 442 asset = assets.openNonAsset(resname, Asset::ACCESS_BUFFER); 443 if (asset == NULL) { 448 if (tree.setTo(asset->getBuffer(true), 449 asset->getLength()) != NO_ERROR) { 456 delete asset; 457 asset = NULL; 469 asset = assets.openNonAsset(resname, Asset::ACCESS_BUFFER); 470 if (asset == NULL) { 475 if (tree.setTo(asset [all...] |
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.h | 81 status_t initTexture(Texture* texture, AssetManager& asset, const char* name);
|
H A D | BootAnimation.cpp | 90 Asset* asset = assets.open(name, Asset::ACCESS_BUFFER); local 91 if (!asset) 94 SkImageDecoder::DecodeMemory(asset->getBuffer(false), asset->getLength(), 96 asset->close(); 97 delete asset;
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | BitmapRegionDecoder.java | 262 int asset, boolean isShareable); 261 nativeNewInstance( int asset, boolean isShareable) argument
|
H A D | BitmapFactory.java | 599 private static native Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts); argument
|
/frameworks/base/include/utils/ |
H A D | AssetManager.h | 66 * 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 D | ResourceTypes.h | 1739 status_t add(Asset* asset, void* cookie, 1996 Asset* asset, bool copyData);
|
/frameworks/base/core/jni/ |
H A D | android_util_AssetManager.cpp | 18 #define LOG_TAG "asset" 343 jint asset) 345 Asset* a = (Asset*)asset; 350 jniThrowException(env, "java/lang/NullPointerException", "asset"); 358 jint asset) 360 Asset* a = (Asset*)asset; 363 jniThrowException(env, "java/lang/NullPointerException", "asset"); 373 jint asset, jbyteArray bArray, 376 Asset* a = (Asset*)asset; 379 jniThrowException(env, "java/lang/NullPointerException", "asset"); 342 android_content_AssetManager_destroyAsset(JNIEnv* env, jobject clazz, jint asset) argument 357 android_content_AssetManager_readAssetChar(JNIEnv* env, jobject clazz, jint asset) argument 372 android_content_AssetManager_readAsset(JNIEnv* env, jobject clazz, jint asset, jbyteArray bArray, jint off, jint len) argument 405 android_content_AssetManager_seekAsset(JNIEnv* env, jobject clazz, jint asset, jlong offset, jint whence) argument 420 android_content_AssetManager_getAssetLength(JNIEnv* env, jobject clazz, jint asset) argument 433 android_content_AssetManager_getAssetRemainingLength(JNIEnv* env, jobject clazz, jint asset) argument [all...] |
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BitmapFactory_Delegate.java | 143 /*package*/ static Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts) { argument
|
/frameworks/base/libs/utils/ |
H A D | AssetManager.cpp | 21 #define LOG_TAG "asset" 242 * Open an asset. 279 * For each top-level asset path, search for the asset. 285 LOGV("Looking for asset '%s' in '%s'\n", 297 * Open a non-asset file as if it were an asset. 313 * For each top-level asset path, search for the asset. 319 LOGV("Looking for non-asset ' 1583 setResourceTableAsset(Asset* asset) argument 1696 setZipResourceTableAsset(const String8& path, Asset* asset) argument [all...] |
H A D | ResourceTypes.cpp | 1669 status_t ResTable::add(Asset* asset, void* cookie, bool copyData) argument 1671 const void* data = asset->getBuffer(true); 1673 LOGW("Unable to get buffer of resource asset file"); 1676 size_t size = (size_t)asset->getLength(); 1677 return add(data, size, cookie, asset, copyData); 1705 Asset* asset, bool copyData) 1716 LOGV("Adding resources to ResTable: data=%p, size=0x%x, cookie=%p, asset=%p, copy=%d\n", 1717 data, size, cookie, asset, copyData)); 1704 add(const void* data, size_t size, void* cookie, Asset* asset, bool copyData) argument
|
/frameworks/base/graphics/java/android/renderscript/ |
H A D | Allocation.java | 340 int asset = ((AssetManager.AssetInputStream) is).getAssetInt(); 342 asset);
|
/frameworks/base/graphics/jni/ |
H A D | android_renderscript_RenderScript.cpp | 529 Asset* asset = reinterpret_cast<Asset*>(native_asset); local 531 SkImageDecoder::DecodeMemory(asset->getBuffer(false), asset->getLength(),
|