Home
last modified time | relevance | path

Searched refs:asset (Results 1 – 25 of 39) 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/java/android/content/res/
DAssetManager.java315 int asset = openAsset(fileName, accessMode); in open() local
316 if (asset != 0) { in open()
317 AssetInputStream res = new AssetInputStream(asset); in open()
407 int asset = openNonAssetNative(cookie, fileName, accessMode); in openNonAsset() local
408 if (asset != 0) { in openNonAsset()
409 AssetInputStream res = new AssetInputStream(asset); in openNonAsset()
542 private AssetInputStream(int asset) in AssetInputStream() argument
544 mAsset = asset; in AssetInputStream()
545 mLength = getAssetLength(asset); in AssetInputStream()
677 private native final void destroyAsset(int asset); in destroyAsset() argument
[all …]
/frameworks/base/core/jni/android/graphics/
DTypeface.cpp58 AssetStream(Asset* asset, bool hasMemoryBase) : fAsset(asset) in AssetStream() argument
128 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); in Typeface_createFromAsset() local
129 if (NULL == asset) { in Typeface_createFromAsset()
133 SkStream* stream = new AssetStream(asset, true); in Typeface_createFromAsset()
DBitmapFactory.cpp464 static SkStream* copyAssetToStream(Asset* asset) { in copyAssetToStream() argument
466 off64_t size = asset->seek(0, SEEK_SET); in copyAssetToStream()
472 size = asset->getLength(); in copyAssetToStream()
480 off64_t len = asset->read(data, size); in copyAssetToStream()
493 Asset* asset = reinterpret_cast<Asset*>(native_asset); in nativeDecodeAssetScaled() local
498 stream = copyAssetToStream(asset); in nativeDecodeAssetScaled()
505 stream = new AssetStreamAdaptor(asset); in nativeDecodeAssetScaled()
DBitmapRegionDecoder.cpp170 Asset* asset = reinterpret_cast<Asset*>(native_asset); in nativeNewInstanceFromAsset() local
171 assStream = new AssetStreamAdaptor(asset); in nativeNewInstanceFromAsset()
/frameworks/base/tools/aapt/
DCommand.cpp434 Asset* asset = NULL; in doDump() local
498 asset = assets.openNonAsset(resname, Asset::ACCESS_BUFFER); in doDump()
499 if (asset == NULL) { in doDump()
504 if (tree.setTo(asset->getBuffer(true), in doDump()
505 asset->getLength()) != NO_ERROR) { in doDump()
512 delete asset; in doDump()
513 asset = NULL; in doDump()
525 asset = assets.openNonAsset(resname, Asset::ACCESS_BUFFER); in doDump()
526 if (asset == NULL) { in doDump()
531 if (tree.setTo(asset->getBuffer(true), in doDump()
[all …]
/frameworks/rs/
DrsFileA3D.cpp91 bool FileA3D::load(Asset *asset) { in load() argument
93 mAsset = asset; in load()
94 return load(asset->getBuffer(false), asset->getLength()); in load()
444 Asset *asset = static_cast<Asset *>(_asset); in rsaFileA3DCreateFromAsset() local
448 fa3d->load(asset); in rsaFileA3DCreateFromAsset()
DrsFileA3D.h62 bool load(Asset *asset);
Drs.h30 RsFile rsaFileA3DCreateFromAsset(RsContext, void *asset);
/frameworks/base/graphics/java/android/graphics/
DBitmapFactory.java489 final int asset = ((AssetManager.AssetInputStream) is).getAssetInt(); in decodeStream() local
502 bm = nativeDecodeAsset(asset, outPadding, opts, true, scale); in decodeStream()
507 bm = nativeDecodeAsset(asset, outPadding, opts); in decodeStream()
655 private static native Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts); in nativeDecodeAsset() argument
656 private static native Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts, in nativeDecodeAsset() argument
DBitmapRegionDecoder.java273 int asset, boolean isShareable); in nativeNewInstance() argument
/frameworks/base/cmds/bootanimation/
DBootAnimation.cpp102 Asset* asset = assets.open(name, Asset::ACCESS_BUFFER); in initTexture() local
103 if (!asset) in initTexture()
106 SkImageDecoder::DecodeMemory(asset->getBuffer(false), asset->getLength(), in initTexture()
108 asset->close(); in initTexture()
109 delete asset; in initTexture()
DBootAnimation.h81 status_t initTexture(Texture* texture, AssetManager& asset, const char* name);
/frameworks/base/graphics/java/android/renderscript/
DFileA3D.java299 int asset = ((AssetManager.AssetInputStream) is).getAssetInt(); in createFromResource() local
300 fileId = rs.nFileA3DCreateFromAssetStream(asset); in createFromResource()
DFont.java215 int asset = ((AssetManager.AssetInputStream) is).getAssetInt(); in createFromResource() local
216 fontId = rs.nFontCreateFromAssetStream(name, pointSize, dpi, asset); in createFromResource()
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
DBitmapFactory_Delegate.java147 /*package*/ static Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts) { in nativeDecodeAsset() argument
153 /*package*/ static Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts, in nativeDecodeAsset() argument
/frameworks/base/docs/html/guide/practices/ui_guidelines/
Dicon_design_menu.jd80 asset. Final asset sizes have not changed.
96 positioned inside the asset to create consistent visual weight with other
100 asset. You should size the icons <em>smaller than the actual bounds of the
101 asset</em>, to create a consistent visual weight. If your icon is square or
108 <li>The red box is the bounding box for the full asset.</li>
110 The icon box is sized smaller than the full asset box to allow for
175 icon asset.</p>
Dicon_design_tab.jd143 scaled and positioned inside the final asset.</p>
146 asset. You should size the icons <em>smaller than the actual bounds of the
147 asset</em>.</p>
153 <li>The red box is the bounding box for the full asset.</li>
155 The icon box is sized smaller than the full asset box to allow for
218 icon asset.</p>
/frameworks/base/include/androidfw/
DAssetManager.h284 Asset* setResourceTableAsset(Asset* asset);
328 Asset* setZipResourceTableAsset(const String8& path, Asset* asset);
/frameworks/base/core/jni/
Dandroid_util_AssetManager.cpp329 jint asset) in android_content_AssetManager_destroyAsset() argument
331 Asset* a = (Asset*)asset; in android_content_AssetManager_destroyAsset()
344 jint asset) in android_content_AssetManager_readAssetChar() argument
346 Asset* a = (Asset*)asset; in android_content_AssetManager_readAssetChar()
359 jint asset, jbyteArray bArray, in android_content_AssetManager_readAsset() argument
362 Asset* a = (Asset*)asset; in android_content_AssetManager_readAsset()
392 jint asset, in android_content_AssetManager_seekAsset() argument
395 Asset* a = (Asset*)asset; in android_content_AssetManager_seekAsset()
407 jint asset) in android_content_AssetManager_getAssetLength() argument
409 Asset* a = (Asset*)asset; in android_content_AssetManager_getAssetLength()
[all …]
/frameworks/base/graphics/jni/
Dandroid_renderscript_RenderScript.cpp786 Asset* asset = reinterpret_cast<Asset*>(native_asset); in nFileA3DCreateFromAssetStream() local
788 jint id = (jint)rsaFileA3DCreateFromMemory(con, asset->getBuffer(false), asset->getLength()); in nFileA3DCreateFromAssetStream()
801 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); in nFileA3DCreateFromAsset() local
802 if (asset == NULL) { in nFileA3DCreateFromAsset()
806 jint id = (jint)rsaFileA3DCreateFromAsset(con, asset); in nFileA3DCreateFromAsset()
869 Asset* asset = reinterpret_cast<Asset*>(native_asset); in nFontCreateFromAssetStream() local
875 asset->getBuffer(false), asset->getLength()); in nFontCreateFromAssetStream()
889 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); in nFontCreateFromAsset() local
890 if (asset == NULL) { in nFontCreateFromAsset()
897 asset->getBuffer(false), asset->getLength()); in nFontCreateFromAsset()
[all …]
/frameworks/support/renderscript/v8/rs_support/
Drs.h30 RsFile rsaFileA3DCreateFromAsset(RsContext, void *asset);
/frameworks/base/docs/html/design/style/
Diconography.jd54 <p>Full asset, <strong>48x48 dp</strong></p>
151 <p>Full asset, <strong>32x32 dp</strong></p>
232 <p>Full asset, <strong>16x16 dp</strong></p>
311 <p>Full asset, <strong>24x24 dp</strong></p>
/frameworks/base/libs/androidfw/
DAssetManager.cpp1836 Asset* AssetManager::SharedZip::setResourceTableAsset(Asset* asset) in setResourceTableAsset() argument
1841 mResourceTableAsset = asset; in setResourceTableAsset()
1844 asset->getBuffer(true); in setResourceTableAsset()
1845 return asset; in setResourceTableAsset()
1848 delete asset; in setResourceTableAsset()
1950 Asset* asset) in setZipResourceTableAsset() argument
1955 return zip->setResourceTableAsset(asset); in setZipResourceTableAsset()

12