Searched refs:asset (Results 1 - 25 of 27) sorted by last modified time

12

/frameworks/rs/
H A Drs.h29 RsFile rsaFileA3DCreateFromAsset(RsContext, void *asset);
H A DrsFileA3D.cpp94 bool FileA3D::load(Asset *asset) { argument
96 mAsset = asset;
97 return load(asset->getBuffer(false), asset->getLength());
450 Asset *asset = static_cast<Asset *>(_asset); local
454 fa3d->load(asset);
H A DrsFileA3D.h63 bool load(Asset *asset);
/frameworks/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/tools/aapt/
H A DCommand.cpp631 // The dynamicRefTable can be null if there are no resources for this asset cookie.
635 Asset* asset = NULL; local
655 asset = assets.openNonAsset(assetsCookie, resname, Asset::ACCESS_BUFFER);
656 if (asset == NULL) {
661 if (tree.setTo(asset->getBuffer(true),
662 asset->getLength()) != NO_ERROR) {
669 delete asset;
670 asset = NULL;
681 asset = assets.openNonAsset(assetsCookie, resname, Asset::ACCESS_BUFFER);
682 if (asset
[all...]
H A DResource.cpp1004 Asset* asset = assets.openNonAsset(cookie, "AndroidManifest.xml", Asset::ACCESS_STREAMING); local
1005 if (asset == NULL) {
1011 if (tree.setTo(asset->getBuffer(true), asset->getLength()) != NO_ERROR) {
1018 delete asset;
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DBitmapFactory_Delegate.java108 /*package*/ static Bitmap nativeDecodeAsset(long asset, Rect padding, Options opts) { argument
/frameworks/base/tools/split-select/
H A DMain.cpp131 Asset* asset = assetManager.openNonAsset(cookie, "AndroidManifest.xml", Asset::ACCESS_BUFFER); local
132 if (asset == NULL) {
137 if (xml.setTo(asset->getBuffer(true), asset->getLength(), false) != NO_ERROR) {
138 delete asset;
201 delete asset;
/frameworks/base/rs/java/android/renderscript/
H A DFileA3D.java220 * Creates a FileA3D object from an asset stored on disk
223 * @param mgr asset manager used to load asset
233 throw new RSRuntimeException("Unable to create a3d file from asset " + path);
295 long asset = ((AssetManager.AssetInputStream) is).getNativeAsset();
296 fileId = rs.nFileA3DCreateFromAssetStream(asset);
298 throw new RSRuntimeException("Unsupported asset stream");
H A DFont.java189 throw new RSRuntimeException("Unable to create font from asset " + path);
213 long asset = ((AssetManager.AssetInputStream) is).getNativeAsset();
214 fontId = rs.nFontCreateFromAssetStream(name, pointSize, dpi, asset);
216 throw new RSRuntimeException("Unsupported asset stream created");
/frameworks/base/rs/jni/
H A Dandroid_renderscript_RenderScript.cpp828 Asset* asset = reinterpret_cast<Asset*>(native_asset); local
829 ALOGV("______nFileA3D %p", asset);
831 jlong id = (jlong)(uintptr_t)rsaFileA3DCreateFromMemory((RsContext)con, asset->getBuffer(false), asset->getLength());
844 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); local
845 if (asset == NULL) {
849 jlong id = (jlong)(uintptr_t)rsaFileA3DCreateFromAsset((RsContext)con, asset);
912 Asset* asset = reinterpret_cast<Asset*>(native_asset); local
918 asset->getBuffer(false), asset
932 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); local
[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/graphics/java/android/graphics/
H A DBitmapFactory.java608 final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset();
609 bm = nativeDecodeAsset(asset, outPadding, opts);
H A DBitmapRegionDecoder.java271 long asset, boolean isShareable);
270 nativeNewInstance( long asset, boolean isShareable) argument
H A DMovie.java51 final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset();
52 return nativeDecodeAsset(asset);
58 private static native Movie nativeDecodeAsset(long asset); argument
/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,
100 * newly-added asset source.
112 * Iterate over the asset paths in this manager. (Previously
121 * Return an asset path in the manager. 'which' must be between 0 and
146 * Open an asset.
157 * Open a non-asset file as an asset.
159 * This is for opening files that are included in an asset packag
[all...]
H A DResourceTypes.h1520 status_t add(Asset* asset, const int32_t cookie=-1, bool copyData=false);
1521 status_t add(Asset* asset, Asset* idmapAsset, const int32_t cookie=-1, bool copyData=false);
/frameworks/base/libs/androidfw/
H A DAssetManager.cpp21 #define LOG_TAG "asset"
213 // This asset path does not contain any resources.
466 * Open an asset.
503 * For each top-level asset path, search for the asset.
509 ALOGV("Looking for asset '%s' in '%s'\n",
521 * Open a non-asset file as if it were an asset.
537 * For each top-level asset path, search for the asset
1904 setResourceTableAsset(Asset* asset) argument
2031 setZipResourceTableAsset(const String8& path, Asset* asset) argument
[all...]
H A DResourceTypes.cpp3317 status_t ResTable::add(Asset* asset, const int32_t cookie, bool copyData) { argument
3318 const void* data = asset->getBuffer(true);
3320 ALOGW("Unable to get buffer of resource asset file");
3324 return addInternal(data, static_cast<size_t>(asset->getLength()), NULL, 0, cookie, copyData);
3327 status_t ResTable::add(Asset* asset, Asset* idmapAsset, const int32_t cookie, bool copyData) { argument
3328 const void* data = asset->getBuffer(true);
3330 ALOGW("Unable to get buffer of resource asset file");
3339 ALOGW("Unable to get buffer of idmap asset file");
3345 return addInternal(data, static_cast<size_t>(asset->getLength()),
/frameworks/base/core/java/android/content/res/
H A DAssetManager.java30 * Provides access to an application's raw asset files; see {@link Resources}
37 /* 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.
276 * Open an asset using ACCESS_STREAMING mode. This provides access to
280 * @param fileName The name of the asset to open. This name can be
291 * Open an asset usin
549 AssetInputStream(long asset) argument
710 destroyAsset(long asset) argument
711 readAssetChar(long asset) argument
712 readAsset(long asset, byte[] b, int off, int len) argument
713 seekAsset(long asset, long offset, int whence) argument
714 getAssetLength(long asset) argument
715 getAssetRemainingLength(long asset) argument
[all...]
/frameworks/base/core/jni/android/graphics/
H A DBitmapFactory.cpp529 Asset* asset = reinterpret_cast<Asset*>(native_asset); local
530 // since we know we'll be done with the asset when we return, we can
532 SkAutoTUnref<SkStreamRewindable> stream(new AssetStreamAdaptor(asset,
H A DBitmapRegionDecoder.cpp155 Asset* asset = reinterpret_cast<Asset*>(native_asset); local
156 SkAutoTUnref<SkMemoryStream> stream(CopyAssetToStream(asset));
H A DFontFamily.cpp96 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); local
97 if (NULL == asset) {
101 SkStream* stream = new AssetStreamAdaptor(asset,
H A DMovie.cpp85 android::Asset* asset = reinterpret_cast<android::Asset*>(native_asset); local
86 if (asset == NULL) return NULL;
87 SkAutoTUnref<SkStreamRewindable> stream (new android::AssetStreamAdaptor(asset,
H A DUtils.cpp22 AssetStreamAdaptor::AssetStreamAdaptor(Asset* asset, OwnAsset ownAsset, argument
24 : fAsset(asset)
26 asset->getBuffer(false) : NULL)
68 // asset->seek returns new total offset
95 SkMemoryStream* android::CopyAssetToStream(Asset* asset) { argument
96 if (NULL == asset) {
100 off64_t size = asset->seek(0, SEEK_SET);
102 SkDebugf("---- copyAsset: asset rewind failed\n");
106 size = asset->getLength();
108 SkDebugf("---- copyAsset: asset
[all...]

Completed in 823 milliseconds

12