/frameworks/base/native/android/ |
D | asset_manager.cpp | 51 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/base/native/include/android/ |
D | asset_manager.h | 86 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/ |
D | AssetManager.java | 315 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/ |
D | Typeface.cpp | 58 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()
|
D | BitmapFactory.cpp | 331 static SkStream* copyAssetToStream(Asset* asset) { in copyAssetToStream() argument 333 off64_t size = asset->seek(0, SEEK_SET); in copyAssetToStream() 339 size = asset->getLength(); in copyAssetToStream() 347 off64_t len = asset->read(data, size); in copyAssetToStream() 361 Asset* asset = reinterpret_cast<Asset*>(native_asset); in nativeDecodeAsset() local 366 stream = copyAssetToStream(asset); in nativeDecodeAsset() 373 stream = new AssetStreamAdaptor(asset); in nativeDecodeAsset()
|
D | BitmapRegionDecoder.cpp | 169 Asset* asset = reinterpret_cast<Asset*>(native_asset); in nativeNewInstanceFromAsset() local 170 assStream = new AssetStreamAdaptor(asset); in nativeNewInstanceFromAsset()
|
/frameworks/base/tools/aapt/ |
D | Command.cpp | 431 Asset* asset = NULL; in doDump() local 490 asset = assets.openNonAsset(resname, Asset::ACCESS_BUFFER); in doDump() 491 if (asset == NULL) { in doDump() 496 if (tree.setTo(asset->getBuffer(true), in doDump() 497 asset->getLength()) != NO_ERROR) { in doDump() 504 delete asset; in doDump() 505 asset = NULL; in doDump() 517 asset = assets.openNonAsset(resname, Asset::ACCESS_BUFFER); in doDump() 518 if (asset == NULL) { in doDump() 523 if (tree.setTo(asset->getBuffer(true), in doDump() [all …]
|
/frameworks/base/libs/rs/ |
D | rsFileA3D.cpp | 85 bool FileA3D::load(Asset *asset) { in load() argument 86 mAsset = asset; in load() 87 return load(asset->getBuffer(false), asset->getLength()); in load() 425 Asset *asset = static_cast<Asset *>(_asset); in rsaFileA3DCreateFromAsset() local 429 fa3d->load(asset); in rsaFileA3DCreateFromAsset()
|
D | rsFileA3D.h | 63 bool load(Asset *asset);
|
D | RenderScript.h | 34 RsFile rsaFileA3DCreateFromAsset(RsContext, void *asset);
|
/frameworks/base/cmds/bootanimation/ |
D | BootAnimation.cpp | 95 Asset* asset = assets.open(name, Asset::ACCESS_BUFFER); in initTexture() local 96 if (!asset) in initTexture() 99 SkImageDecoder::DecodeMemory(asset->getBuffer(false), asset->getLength(), in initTexture() 101 asset->close(); in initTexture() 102 delete asset; in initTexture()
|
D | BootAnimation.h | 81 status_t initTexture(Texture* texture, AssetManager& asset, const char* name);
|
/frameworks/base/graphics/java/android/renderscript/ |
D | FileA3D.java | 284 int asset = ((AssetManager.AssetInputStream) is).getAssetInt(); in createFromResource() local 285 fileId = rs.nFileA3DCreateFromAssetStream(asset); in createFromResource()
|
D | Font.java | 189 int asset = ((AssetManager.AssetInputStream) is).getAssetInt(); in createFromResource() local 190 fontId = rs.nFontCreateFromAssetStream(name, pointSize, dpi, asset); in createFromResource()
|
/frameworks/base/docs/html/guide/practices/ui_guidelines/ |
D | icon_design_menu.jd | 73 asset. Final asset sizes have not changed. 89 positioned inside the asset to create consistent visual weight with other 93 asset. You should size the icons <em>smaller than the actual bounds of the 94 asset</em>, to create a consistent visual weight. If your icon is square or 101 <li>The red box is the bounding box for the full asset.</li> 103 The icon box is sized smaller than the full asset box to allow for 168 icon asset.</p>
|
D | icon_design_tab.jd | 136 scaled and positioned inside the final asset.</p> 139 asset. You should size the icons <em>smaller than the actual bounds of the 140 asset</em>.</p> 146 <li>The red box is the bounding box for the full asset.</li> 148 The icon box is sized smaller than the full asset box to allow for 211 icon asset.</p>
|
D | icon_design_status_bar.jd | 249 scaled and positioned inside the final asset.</p> 252 asset. You should size the icons <em>smaller than the actual bounds of the 253 asset</em>. <strong>Status bar icons may vary in width, but only 260 <li>The red box is the bounding box for the full asset.</li> 262 The icon box is sized smaller vertically than the full asset box to allow for 321 icon asset.</p>
|
D | icon_design.jd | 217 organizes asset files per resolution. For example:</p> 282 sizes for final asset creation.</p> 303 metadata is removed and that your image asset file sizes are optimized.</p> 310 <p>Corresponding icon asset files for each density <strong>must use the same
|
D | icon_design_launcher_archive.jd | 151 positioned inside the asset to create consistent visual weight with other 155 asset. You should size the icons <em>smaller than the actual bounds of the 156 asset</em> to create a consistent visual weight and to allow for shadows. If 163 <li>The red box is the bounding box for the full asset.</li> 165 The icon box is sized smaller than the full asset box so that there is space to 230 icon asset.</p>
|
/frameworks/base/graphics/jni/ |
D | android_renderscript_RenderScript.cpp | 708 Asset* asset = reinterpret_cast<Asset*>(native_asset); in nFileA3DCreateFromAssetStream() local 710 jint id = (jint)rsaFileA3DCreateFromMemory(con, asset->getBuffer(false), asset->getLength()); in nFileA3DCreateFromAssetStream() 723 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); in nFileA3DCreateFromAsset() local 724 if (asset == NULL) { in nFileA3DCreateFromAsset() 728 jint id = (jint)rsaFileA3DCreateFromAsset(con, asset); in nFileA3DCreateFromAsset() 791 Asset* asset = reinterpret_cast<Asset*>(native_asset); in nFontCreateFromAssetStream() local 797 asset->getBuffer(false), asset->getLength()); in nFontCreateFromAssetStream() 811 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); in nFontCreateFromAsset() local 812 if (asset == NULL) { in nFontCreateFromAsset() 819 asset->getBuffer(false), asset->getLength()); in nFontCreateFromAsset() [all …]
|
/frameworks/base/include/utils/ |
D | AssetManager.h | 283 Asset* setResourceTableAsset(Asset* asset); 327 Asset* setZipResourceTableAsset(const String8& path, Asset* asset);
|
/frameworks/base/core/jni/ |
D | android_util_AssetManager.cpp | 329 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/java/android/graphics/ |
D | BitmapRegionDecoder.java | 262 int asset, boolean isShareable); in nativeNewInstance() argument
|
/frameworks/base/libs/utils/ |
D | AssetManager.cpp | 1818 Asset* AssetManager::SharedZip::setResourceTableAsset(Asset* asset) in setResourceTableAsset() argument 1823 mResourceTableAsset = asset; in setResourceTableAsset() 1826 asset->getBuffer(true); in setResourceTableAsset() 1827 return asset; in setResourceTableAsset() 1830 delete asset; in setResourceTableAsset() 1932 Asset* asset) in setZipResourceTableAsset() argument 1937 return zip->setResourceTableAsset(asset); in setZipResourceTableAsset()
|
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/ |
D | BitmapFactory_Delegate.java | 144 /*package*/ static Bitmap nativeDecodeAsset(int asset, Rect padding, Options opts) { in nativeDecodeAsset() argument
|