Home
last modified time | relevance | path

Searched refs:asset (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/base/native/android/
Dasset_manager.cpp51 AAsset(Asset* asset) : mAsset(asset) { } in AAsset()
108 Asset* asset = mgr->open(filename, amMode); in AAssetManager_open() local
109 if (asset == NULL) { in AAssetManager_open()
113 return new AAsset(asset); in AAssetManager_open()
171 int AAsset_read(AAsset* asset, void* buf, size_t count) in AAsset_read() argument
173 return asset->mAsset->read(buf, (size_t)count); in AAsset_read()
176 off_t AAsset_seek(AAsset* asset, off_t offset, int whence) in AAsset_seek() argument
178 return asset->mAsset->seek(offset, whence); in AAsset_seek()
181 off64_t AAsset_seek64(AAsset* asset, off64_t offset, int whence) in AAsset_seek64() argument
183 return asset->mAsset->seek(offset, whence); in AAsset_seek64()
[all …]
/frameworks/native/include/android/
Dasset_manager.h86 int AAsset_read(AAsset* asset, void* buf, size_t count);
94 off_t AAsset_seek(AAsset* asset, off_t offset, int whence);
105 off64_t AAsset_seek64(AAsset* asset, off64_t offset, int whence);
110 void AAsset_close(AAsset* asset);
117 const void* AAsset_getBuffer(AAsset* asset);
122 off_t AAsset_getLength(AAsset* asset);
128 off64_t AAsset_getLength64(AAsset* asset);
133 off_t AAsset_getRemainingLength(AAsset* asset);
140 off64_t AAsset_getRemainingLength64(AAsset* asset);
150 int AAsset_openFileDescriptor(AAsset* asset, off_t* outStart, off_t* outLength);
[all …]
/frameworks/base/core/jni/android/graphics/
DUtils.cpp22 AssetStreamAdaptor::AssetStreamAdaptor(Asset* asset, OwnAsset ownAsset, in AssetStreamAdaptor() argument
24 : fAsset(asset) in AssetStreamAdaptor()
26 asset->getBuffer(false) : NULL) in AssetStreamAdaptor()
95 SkMemoryStream* android::CopyAssetToStream(Asset* asset) { in CopyAssetToStream() argument
96 if (NULL == asset) { in CopyAssetToStream()
100 off64_t size = asset->seek(0, SEEK_SET); in CopyAssetToStream()
106 size = asset->getLength(); in CopyAssetToStream()
114 off64_t len = asset->read(data, size); in CopyAssetToStream()
DFontFamily.cpp96 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); in FontFamily_addFontFromAsset() local
97 if (NULL == asset) { in FontFamily_addFontFromAsset()
101 SkStream* stream = new AssetStreamAdaptor(asset, in FontFamily_addFontFromAsset()
DMovie.cpp85 android::Asset* asset = reinterpret_cast<android::Asset*>(native_asset); in movie_decodeAsset() local
86 if (asset == NULL) return NULL; in movie_decodeAsset()
87 SkAutoTUnref<SkStreamRewindable> stream (new android::AssetStreamAdaptor(asset, in movie_decodeAsset()
DBitmapRegionDecoder.cpp155 Asset* asset = reinterpret_cast<Asset*>(native_asset); in nativeNewInstanceFromAsset() local
156 SkAutoTUnref<SkMemoryStream> stream(CopyAssetToStream(asset)); in nativeNewInstanceFromAsset()
/frameworks/base/docs/html/training/wearables/data-layer/
Dassets.jd36 <p>Create the asset using one of the <code>create...()</code> methods in the
40 to create the asset.
51 <p>When you have an asset, attach it to a data item with the <code>putAsset()</code> method in
63 Asset asset = createAssetFromBitmap(bitmap);
65 request.putAsset("profileImage", asset);
72 Asset asset = createAssetFromBitmap(bitmap);
74 dataMap.getDataMap().putAsset("profileImage", asset)
83 When an asset is created, you probably want to read and extract
85 callback to detect an asset change and extract the Asset:
102 public Bitmap loadBitmapFromAsset(Asset asset) {
[all …]
/frameworks/base/core/java/android/content/res/
DAssetManager.java313 long asset = openAsset(fileName, accessMode); in open() local
314 if (asset != 0) { in open()
315 AssetInputStream res = new AssetInputStream(asset); in open()
405 long asset = openNonAssetNative(cookie, fileName, accessMode); in openNonAsset() local
406 if (asset != 0) { in openNonAsset()
407 AssetInputStream res = new AssetInputStream(asset); in openNonAsset()
549 private AssetInputStream(long asset) in AssetInputStream() argument
551 mAsset = asset; in AssetInputStream()
552 mLength = getAssetLength(asset); in AssetInputStream()
702 private native final void destroyAsset(long asset); in destroyAsset() argument
[all …]
/frameworks/base/graphics/java/android/graphics/
DMovie.java51 final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); in decodeStream() local
52 return nativeDecodeAsset(asset); in decodeStream()
58 private static native Movie nativeDecodeAsset(long asset); in nativeDecodeAsset() argument
DBitmapFactory.java608 final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); in decodeStream() local
609 bm = nativeDecodeAsset(asset, outPadding, opts); in decodeStream()
DBitmapRegionDecoder.java271 long asset, boolean isShareable); in nativeNewInstance() argument
/frameworks/rs/
DrsFileA3D.cpp94 bool FileA3D::load(Asset *asset) { in load() argument
96 mAsset = asset; in load()
97 return load(asset->getBuffer(false), asset->getLength()); in load()
450 Asset *asset = static_cast<Asset *>(_asset); in rsaFileA3DCreateFromAsset() local
454 fa3d->load(asset); in rsaFileA3DCreateFromAsset()
DrsFileA3D.h63 bool load(Asset *asset);
Drs.h29 RsFile rsaFileA3DCreateFromAsset(RsContext, void *asset);
/frameworks/base/tools/aapt/
DCommand.cpp636 Asset* asset = NULL; in doDump() local
656 asset = assets.openNonAsset(assetsCookie, resname, Asset::ACCESS_BUFFER); in doDump()
657 if (asset == NULL) { in doDump()
662 if (tree.setTo(asset->getBuffer(true), in doDump()
663 asset->getLength()) != NO_ERROR) { in doDump()
670 delete asset; in doDump()
671 asset = NULL; in doDump()
682 asset = assets.openNonAsset(assetsCookie, resname, Asset::ACCESS_BUFFER); in doDump()
683 if (asset == NULL) { in doDump()
689 if (tree.setTo(asset->getBuffer(true), in doDump()
[all …]
/frameworks/base/rs/java/android/renderscript/
DFileA3D.java295 long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); in createFromResource() local
296 fileId = rs.nFileA3DCreateFromAssetStream(asset); in createFromResource()
DFont.java213 long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); in createFromResource() local
214 fontId = rs.nFontCreateFromAssetStream(name, pointSize, dpi, asset); in createFromResource()
/frameworks/base/cmds/bootanimation/
DBootAnimation.cpp110 Asset* asset = assets.open(name, Asset::ACCESS_BUFFER); in initTexture() local
111 if (!asset) in initTexture()
114 SkImageDecoder::DecodeMemory(asset->getBuffer(false), asset->getLength(), in initTexture()
116 asset->close(); in initTexture()
117 delete asset; in initTexture()
DBootAnimation.h84 status_t initTexture(Texture* texture, AssetManager& asset, const char* name);
/frameworks/base/docs/html/design/style/
Diconography.jd31 48x48 dp. This means the baseline (MDPI) asset is 48x48 px, and the
32 high-density(HDPI) asset should be 1.5x the baseline at 72x72 px, and the x-high
33 density (XHDPI) asset should be 2x the baseline at 96x96 px, and so on.</p>
85 <p>Full asset, <strong>48x48 dp</strong></p>
182 <p>Full asset, <strong>32x32 dp</strong></p>
263 <p>Full asset, <strong>16x16 dp</strong></p>
342 <p>Full asset, <strong>24x24 dp</strong></p>
411 sizes for final asset creation.</p>
477 organizes asset files based on the target density. For example:</p>
548 metadata is removed and that your image asset file sizes are optimized.</p>
/frameworks/base/docs/html/guide/practices/ui_guidelines/
Dicon_design_menu.jd81 asset. Final asset sizes have not changed.
97 positioned inside the asset to create consistent visual weight with other
101 asset. You should size the icons <em>smaller than the actual bounds of the
102 asset</em>, to create a consistent visual weight. If your icon is square or
109 <li>The red box is the bounding box for the full asset.</li>
111 The icon box is sized smaller than the full asset box to allow for
176 icon asset.</p>
/frameworks/base/include/androidfw/
DAssetManager.h295 Asset* setResourceTableAsset(Asset* asset);
344 Asset* setZipResourceTableAsset(const String8& path, Asset* asset);
/frameworks/base/data/sounds/
DREADME.txt8 SOUND_EFFECT_FILES contains a hard-coded list of asset filenames, stored
/frameworks/base/rs/jni/
Dandroid_renderscript_RenderScript.cpp828 Asset* asset = reinterpret_cast<Asset*>(native_asset); in nFileA3DCreateFromAssetStream() local
829 ALOGV("______nFileA3D %p", asset); in nFileA3DCreateFromAssetStream()
831 …(jlong)(uintptr_t)rsaFileA3DCreateFromMemory((RsContext)con, asset->getBuffer(false), asset->getLe… in nFileA3DCreateFromAssetStream()
844 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); in nFileA3DCreateFromAsset() local
845 if (asset == NULL) { in nFileA3DCreateFromAsset()
849 jlong id = (jlong)(uintptr_t)rsaFileA3DCreateFromAsset((RsContext)con, asset); in nFileA3DCreateFromAsset()
912 Asset* asset = reinterpret_cast<Asset*>(native_asset); in nFontCreateFromAssetStream() local
918 asset->getBuffer(false), asset->getLength()); in nFontCreateFromAssetStream()
932 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); in nFontCreateFromAsset() local
933 if (asset == NULL) { in nFontCreateFromAsset()
[all …]
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBitmapFactory_Delegate.java108 /*package*/ static Bitmap nativeDecodeAsset(long asset, Rect padding, Options opts) { in nativeDecodeAsset() argument

12