/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BitmapFactory_Delegate.java | 105 /*package*/ static Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts) { argument
|
/frameworks/base/core/jni/android/graphics/ |
H A D | Typeface.cpp | 90 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); local 91 if (NULL == asset) { 95 SkStream* stream = new AssetStreamAdaptor(asset,
|
H A D | Utils.cpp | 22 AssetStreamAdaptor::AssetStreamAdaptor(Asset* asset, OwnAsset ownAsset, argument 24 : fAsset(asset) 26 asset->getBuffer(false) : NULL) 69 // asset->seek returns new total offset 96 SkMemoryStream* android::CopyAssetToStream(Asset* asset) { argument 97 if (NULL == asset) { 101 off64_t size = asset->seek(0, SEEK_SET); 103 SkDebugf("---- copyAsset: asset rewind failed\n"); 107 size = asset->getLength(); 109 SkDebugf("---- copyAsset: asset [all...] |
H A D | BitmapRegionDecoder.cpp | 155 Asset* asset = reinterpret_cast<Asset*>(native_asset); local 156 SkAutoTUnref<SkMemoryStream> stream(CopyAssetToStream(asset));
|
H A D | Movie.cpp | 86 android::Asset* asset = reinterpret_cast<android::Asset*>(native_asset); local 87 if (asset == NULL) return NULL; 88 SkAutoTUnref<SkStreamRewindable> stream (new android::AssetStreamAdaptor(asset,
|
H A D | BitmapFactory.cpp | 573 Asset* asset = reinterpret_cast<Asset*>(native_asset); local 576 // if we could "ref/reopen" the asset, we may not need to copy it here 578 stream = CopyAssetToStream(asset); 583 // since we know we'll be done with the asset when we return, we can 585 stream = new AssetStreamAdaptor(asset,
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | BitmapRegionDecoder.java | 271 int asset, boolean isShareable); 270 nativeNewInstance( int asset, boolean isShareable) argument
|
H A D | Movie.java | 51 final int asset = ((AssetManager.AssetInputStream) is).getAssetInt(); 52 return nativeDecodeAsset(asset); 58 private static native Movie nativeDecodeAsset(int asset); argument
|
H A D | BitmapFactory.java | 593 final int asset = ((AssetManager.AssetInputStream) is).getAssetInt(); 594 bm = nativeDecodeAsset(asset, outPadding, opts); 696 private static native Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts); argument
|
/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 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/rs/ |
H A D | rsFileA3D.cpp | 92 bool FileA3D::load(Asset *asset) { argument 94 mAsset = asset; 95 return load(asset->getBuffer(false), asset->getLength()); 448 Asset *asset = static_cast<Asset *>(_asset); local 452 fa3d->load(asset);
|
/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 102 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/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. 279 * Open an asset using ACCESS_STREAMING mode. This provides access to 283 * @param fileName The name of the asset to open. This name can be 294 * Open an asset usin 543 AssetInputStream(int asset) argument 683 destroyAsset(int asset) argument 684 readAssetChar(int asset) argument 685 readAsset(int asset, byte[] b, int off, int len) argument 686 seekAsset(int asset, long offset, int whence) argument 687 getAssetLength(int asset) argument 688 getAssetRemainingLength(int asset) argument [all...] |
/frameworks/base/core/jni/ |
H A D | android_util_AssetManager.cpp | 18 #define LOG_TAG "asset" 322 jint asset) 324 Asset* a = (Asset*)asset; 329 jniThrowNullPointerException(env, "asset"); 337 jint asset) 339 Asset* a = (Asset*)asset; 342 jniThrowNullPointerException(env, "asset"); 352 jint asset, jbyteArray bArray, 355 Asset* a = (Asset*)asset; 358 jniThrowNullPointerException(env, "asset"); 321 android_content_AssetManager_destroyAsset(JNIEnv* env, jobject clazz, jint asset) argument 336 android_content_AssetManager_readAssetChar(JNIEnv* env, jobject clazz, jint asset) argument 351 android_content_AssetManager_readAsset(JNIEnv* env, jobject clazz, jint asset, jbyteArray bArray, jint off, jint len) argument 384 android_content_AssetManager_seekAsset(JNIEnv* env, jobject clazz, jint asset, jlong offset, jint whence) argument 399 android_content_AssetManager_getAssetLength(JNIEnv* env, jobject clazz, jint asset) argument 412 android_content_AssetManager_getAssetRemainingLength(JNIEnv* env, jobject clazz, jint asset) argument [all...] |
/frameworks/base/libs/androidfw/ |
H A D | AssetManager.cpp | 21 #define LOG_TAG "asset" 489 * Open an asset. 526 * For each top-level asset path, search for the asset. 532 ALOGV("Looking for asset '%s' in '%s'\n", 544 * Open a non-asset file as if it were an asset. 560 * For each top-level asset path, search for the asset. 566 ALOGV("Looking for non-asset ' 1851 setResourceTableAsset(Asset* asset) argument 1964 setZipResourceTableAsset(const String8& path, Asset* asset) argument [all...] |
H A D | ResourceTypes.cpp | 2890 status_t ResTable::add(Asset* asset, void* cookie, bool copyData, const void* idmap) argument 2892 const void* data = asset->getBuffer(true); 2894 ALOGW("Unable to get buffer of resource asset file"); 2897 size_t size = (size_t)asset->getLength(); 2898 return add(data, size, cookie, asset, copyData, reinterpret_cast<const Asset*>(idmap)); 2926 Asset* asset, bool copyData, const Asset* idmap) 2948 ALOGV("Adding resources to ResTable: data=%p, size=0x%x, cookie=%p, asset=%p, copy=%d " 2949 "idmap=%p\n", data, size, cookie, asset, copyData, idmap)); 2925 add(const void* data, size_t size, void* cookie, Asset* asset, bool copyData, const Asset* idmap) argument
|
/frameworks/base/tools/aapt/ |
H A D | Command.cpp | 492 Asset* asset = NULL; local 556 asset = assets.openNonAsset(resname, Asset::ACCESS_BUFFER); 557 if (asset == NULL) { 562 if (tree.setTo(asset->getBuffer(true), 563 asset->getLength()) != NO_ERROR) { 570 delete asset; 571 asset = NULL; 583 asset = assets.openNonAsset(resname, Asset::ACCESS_BUFFER); 584 if (asset == NULL) { 589 if (tree.setTo(asset [all...] |
/frameworks/base/graphics/jni/ |
H A D | android_renderscript_RenderScript.cpp | 857 Asset* asset = reinterpret_cast<Asset*>(native_asset); local 859 jint id = (jint)rsaFileA3DCreateFromMemory(con, asset->getBuffer(false), asset->getLength()); 872 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); local 873 if (asset == NULL) { 877 jint id = (jint)rsaFileA3DCreateFromAsset(con, asset); 940 Asset* asset = reinterpret_cast<Asset*>(native_asset); local 946 asset->getBuffer(false), asset->getLength()); 960 Asset* asset local [all...] |