Searched refs:asset (Results 26 - 38 of 38) sorted by relevance

12

/frameworks/base/core/jni/android/graphics/
H A DBitmapRegionDecoder.cpp109 Asset* asset = reinterpret_cast<Asset*>(native_asset); local
110 SkMemoryStream* stream = CopyAssetToStream(asset);
H A DBitmapFactory.cpp611 Asset* asset = reinterpret_cast<Asset*>(native_asset); local
612 // since we know we'll be done with the asset when we return, we can
614 std::unique_ptr<AssetStreamAdaptor> stream(new AssetStreamAdaptor(asset));
/frameworks/base/graphics/java/android/graphics/
H A DBitmapFactory.java619 final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset();
620 bm = nativeDecodeAsset(asset, outPadding, opts);
/frameworks/base/include/androidfw/
H A DAssetManager.h67 * The asset hierarchy may be examined like a filesystem, using
83 //CACHE_SCAN, // scan full(!) asset hierarchy at init() time
95 * added asset path will be examined first when searching for assets,
101 * newly-added asset source.
114 * Iterate over the asset paths in this manager. (Previously
123 * Return an asset path in the manager. 'which' must be between 0 and
148 * Open an asset.
159 * Open a non-asset file as an asset.
161 * This is for opening files that are included in an asset packag
[all...]
H A DResourceTypes.h1578 status_t add(Asset* asset, const int32_t cookie=-1, bool copyData=false);
1579 status_t add(Asset* asset, Asset* idmapAsset, const int32_t cookie=-1, bool copyData=false,
1903 // Pre-filtered list of configurations (per asset path) that match the parameters set on this
/frameworks/base/tools/aapt/
H A DCommand.cpp755 // The dynamicRefTable can be null if there are no resources for this asset cookie.
759 Asset* asset = NULL; local
779 asset = assets.openNonAsset(assetsCookie, resname, Asset::ACCESS_BUFFER);
780 if (asset == NULL) {
785 if (tree.setTo(asset->getBuffer(true),
786 asset->getLength()) != NO_ERROR) {
793 delete asset;
794 asset = NULL;
805 asset = assets.openNonAsset(assetsCookie, resname, Asset::ACCESS_BUFFER);
806 if (asset
[all...]
H A DResource.cpp1032 Asset* asset = assets.openNonAsset(cookie, "AndroidManifest.xml", Asset::ACCESS_STREAMING); local
1033 if (asset == NULL) {
1039 if (tree.setTo(asset->getBuffer(true), asset->getLength()) != NO_ERROR) {
1046 delete asset;
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapFactory_Delegate.java109 /*package*/ static Bitmap nativeDecodeAsset(long asset, Rect padding, Options opts) { argument
/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp107 Asset* asset = assets.open(name, Asset::ACCESS_BUFFER); local
108 if (asset == NULL)
111 SkImageDecoder::DecodeMemory(asset->getBuffer(false), asset->getLength(),
113 asset->close();
114 delete asset;
/frameworks/base/libs/androidfw/
H A DAssetManager.cpp21 #define LOG_TAG "asset"
458 * Open an asset.
495 * For each top-level asset path, search for the asset.
501 ALOGV("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 ALOGV("Looking for non-asset '
1899 setResourceTableAsset(Asset* asset) argument
2028 setZipResourceTableAsset(const String8& path, Asset* asset) argument
[all...]
H A DResourceTypes.cpp3299 // If the package group comes from a system asset. Used in
3677 status_t ResTable::add(Asset* asset, const int32_t cookie, bool copyData) { argument
3678 const void* data = asset->getBuffer(true);
3680 ALOGW("Unable to get buffer of resource asset file");
3684 return addInternal(data, static_cast<size_t>(asset->getLength()), NULL, false, 0, cookie,
3689 Asset* asset, Asset* idmapAsset, const int32_t cookie, bool copyData,
3691 const void* data = asset->getBuffer(true);
3693 ALOGW("Unable to get buffer of resource asset file");
3702 ALOGW("Unable to get buffer of idmap asset file");
3708 return addInternal(data, static_cast<size_t>(asset
3688 add( Asset* asset, Asset* idmapAsset, const int32_t cookie, bool copyData, bool appAsLib, bool isSystemAsset) argument
[all...]
/frameworks/base/rs/jni/
H A Dandroid_renderscript_RenderScript.cpp1654 Asset* asset = reinterpret_cast<Asset*>(native_asset); local
1655 ALOGV("______nFileA3D %p", asset);
1657 jlong id = (jlong)(uintptr_t)rsaFileA3DCreateFromMemory((RsContext)con, asset->getBuffer(false), asset->getLength());
1670 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); local
1671 if (asset == nullptr) {
1675 jlong id = (jlong)(uintptr_t)rsaFileA3DCreateFromAsset((RsContext)con, asset);
1738 Asset* asset = reinterpret_cast<Asset*>(native_asset); local
1744 asset->getBuffer(false), asset
1758 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); local
[all...]
/frameworks/base/media/java/android/media/
H A DExifInterface.java1456 long asset = mAssetInputStream.getNativeAsset();
1457 if (handleRawResult(nativeGetRawAttributesFromAsset(asset))) {
2781 long asset, int thumbnailOffset, int thumbnailLength);
2782 private static native HashMap nativeGetRawAttributesFromAsset(long asset); argument
2780 nativeGetThumbnailFromAsset( long asset, int thumbnailOffset, int thumbnailLength) argument

Completed in 473 milliseconds

12