/frameworks/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 * 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 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/base/core/jni/android/graphics/ |
H A D | Utils.cpp | 54 // asset->seek returns new total offset 81 SkMemoryStream* android::CopyAssetToStream(Asset* asset) { argument 82 if (NULL == asset) { 86 off64_t size = asset->seek(0, SEEK_SET); 88 SkDebugf("---- copyAsset: asset rewind failed\n"); 92 size = asset->getLength(); 94 SkDebugf("---- copyAsset: asset->getLength() returned %d\n", size); 100 off64_t len = asset->read(data, size); 102 SkDebugf("---- copyAsset: asset->read(%d) returned %d\n", size, len);
|
H A D | Typeface.cpp | 66 AssetStream(Asset* asset, bool hasMemoryBase) : fAsset(asset) argument 96 // asset->seek returns new total offset 136 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); local 137 if (NULL == asset) { 141 SkStream* stream = new AssetStream(asset, true);
|
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 | BitmapRegionDecoder.cpp | 156 Asset* asset = reinterpret_cast<Asset*>(native_asset); local 157 SkAutoTUnref<SkMemoryStream> stream(CopyAssetToStream(asset));
|
H A D | BitmapFactory.cpp | 532 Asset* asset = reinterpret_cast<Asset*>(native_asset); local 535 // if we could "ref/reopen" the asset, we may not need to copy it here 537 stream = CopyAssetToStream(asset); 542 // since we know we'll be done with the asset when we return, we can 544 stream = new AssetStreamAdaptor(asset);
|
/frameworks/base/graphics/java/android/graphics/ |
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 | 574 final int asset = ((AssetManager.AssetInputStream) is).getAssetInt(); 575 bm = nativeDecodeAsset(asset, outPadding, opts); 677 private static native Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts); argument
|
H A D | BitmapRegionDecoder.java | 271 int asset, boolean isShareable); 270 nativeNewInstance( int asset, boolean isShareable) argument
|
/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/rs/ |
H A D | rsFileA3D.h | 63 bool load(Asset *asset);
|
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);
|
H A D | rs.h | 29 RsFile rsaFileA3DCreateFromAsset(RsContext, void *asset);
|
/frameworks/base/graphics/java/android/renderscript/ |
H A D | FileA3D.java | 225 * Creates a FileA3D object from an asset stored on disk 228 * @param mgr asset manager used to load asset 238 throw new RSRuntimeException("Unable to create a3d file from asset " + path); 300 int asset = ((AssetManager.AssetInputStream) is).getAssetInt(); 301 fileId = rs.nFileA3DCreateFromAssetStream(asset); 303 throw new RSRuntimeException("Unsupported asset stream");
|
H A D | Font.java | 192 throw new RSRuntimeException("Unable to create font from asset " + path); 216 int asset = ((AssetManager.AssetInputStream) is).getAssetInt(); 217 fontId = rs.nFontCreateFromAssetStream(name, pointSize, dpi, asset); 219 throw new RSRuntimeException("Unsupported asset stream created");
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
H A D | BitmapFactory_Delegate.java | 154 /*package*/ static Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts) { argument 160 /*package*/ static Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts, argument
|
/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 | 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/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/include/androidfw/ |
H A D | AssetManager.h | 67 * 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 D | ResourceTypes.h | 1288 status_t add(Asset* asset, void* cookie, 1573 Asset* asset, bool copyData, const Asset* idmap);
|
/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/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...] |
/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...] |