/frameworks/rs/ |
H A D | rs.h | 29 RsFile rsaFileA3DCreateFromAsset(RsContext, void *asset);
|
H A D | rsApiFileA3D.cpp | 85 Asset *asset = static_cast<Asset *>(_asset); local 89 fa3d->load(asset);
|
H A D | rsFileA3D.cpp | 94 bool FileA3D::load(Asset *asset) { argument 96 mAsset = asset; 97 return load(asset->getBuffer(false), asset->getLength());
|
H A D | rsFileA3D.h | 63 bool load(Asset *asset);
|
/frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/ |
H A D | SetupWizardLayout.java | 241 * a suitable drawable from an asset and a horizontal repeating tile, use 255 * Set the illustration of the layout, which will be created asset and the horizontal tile as 256 * suitable. On phone layouts (not sw600dp), the asset will be scaled, maintaining aspect ratio. 258 * illustration area that the asset doesn't fill will be covered by the horizontalTile. 260 * @param asset Resource ID of the illustration asset. 263 public void setIllustration(int asset, int horizontalTile) { argument 267 final Drawable illustrationDrawable = getIllustration(asset, horizontalTile); 272 private void setIllustration(Drawable asset, Drawable horizontalTile) { argument 276 final Drawable illustrationDrawable = getIllustration(asset, horizontalTil 343 getIllustration(int asset, int horizontalTile) argument 351 getIllustration(Drawable asset, Drawable horizontalTile) argument [all...] |
/frameworks/native/include/android/ |
H A D | asset_manager.h | 42 * The asset hierarchy may be examined like a filesystem, using 51 * {@link AAssetDir} provides access to a chunk of the asset hierarchy as if 61 * {@link AAsset} provides access to a read-only asset. 82 * Open the named directory within the asset hierarchy. The directory can then 91 * Open an asset. 98 * Iterate over the files in an asset directory. A NULL string is returned 124 int AAsset_read(AAsset* asset, void* buf, size_t count); 127 * Seek to the specified offset within the asset data. 'whence' uses the 132 off_t AAsset_seek(AAsset* asset, off_t offset, int whence); 135 * Seek to the specified offset within the asset dat [all...] |
/frameworks/base/tools/aapt/ |
H A D | Command.cpp | 755 // 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 D | Resource.cpp | 1032 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 D | BitmapFactory_Delegate.java | 109 /*package*/ static Bitmap nativeDecodeAsset(long asset, Rect padding, Options opts) { argument
|
/frameworks/base/tools/split-select/ |
H A D | Main.cpp | 131 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/packages/StatementService/src/com/android/statementservice/retriever/ |
H A D | AbstractAssetMatcher.java | 22 * An asset matcher that can match asset with the given query. 27 * Returns true if this AssetMatcher matches the asset. 29 public abstract boolean matches(AbstractAsset asset); argument
|
H A D | AndroidAppAsset.java | 30 * Immutable value type that names an Android app asset. 77 StringBuilder asset = new StringBuilder(); 78 asset.append("AndroidAppAsset: "); 79 asset.append(toJson()); 80 return asset.toString(); 109 * Checks that the input is a valid Android app asset. 111 * @param asset a JSONObject that has "namespace", "package_name", and 113 * @throws AssociationServiceException if the asset is not well formatted. 115 public static AndroidAppAsset create(JSONObject asset) argument 117 String packageName = asset [all...] |
H A D | AndroidAppAssetMatcher.java | 35 public boolean matches(AbstractAsset asset) { argument 36 if (asset instanceof AndroidAppAsset) { 37 AndroidAppAsset androidAppAsset = (AndroidAppAsset) asset;
|
H A D | AssetFactory.java | 22 * Factory to create asset from JSON string. 31 * Checks that the input is a valid asset with purposes. 33 * @throws AssociationServiceException if the asset is not well formatted. 35 public static AbstractAsset create(JSONObject asset) argument 37 String namespace = asset.optString(Utils.NAMESPACE_FIELD, null); 44 return WebAsset.create(asset); 46 return AndroidAppAsset.create(asset);
|
H A D | DirectStatementRetriever.java | 33 * the asset. 131 private String computeAssociationJsonUrl(WebAsset asset) { argument 133 return new URL(asset.getScheme(), asset.getDomain(), asset.getPort(), 178 private Result retrieveFromWeb(WebAsset asset) argument 180 return retrieveStatementFromUrl(computeAssociationJsonUrl(asset), MAX_INCLUDE_LEVEL, asset); 183 private Result retrieveFromAndroid(AndroidAppAsset asset) throws AssociationServiceException { argument 188 List<String> certFps = mAndroidFetcher.getCertFingerprints(asset [all...] |
H A D | WebAsset.java | 26 * Immutable value type that names a web asset. 28 * <p>A web asset can be named by its protocol, domain, and port using this JSON string: 84 StringBuilder asset = new StringBuilder(); 85 asset.append("WebAsset: "); 86 asset.append(toJson()); 87 return asset.toString(); 111 // Only allow insecure include file if the asset scheme is http. 116 * Checks that the input is a valid web asset. 118 * @throws AssociationServiceException if the asset is not well formatted. 120 protected static WebAsset create(JSONObject asset) argument [all...] |
H A D | WebAssetMatcher.java | 31 public boolean matches(AbstractAsset asset) { argument 32 if (asset instanceof WebAsset) { 33 WebAsset webAsset = (WebAsset) asset;
|
/frameworks/base/rs/java/android/renderscript/ |
H A D | FileA3D.java | 224 * Creates a FileA3D object from an asset stored on disk 227 * @param mgr asset manager used to load asset 237 throw new RSRuntimeException("Unable to create a3d file from asset " + path); 299 long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); 300 fileId = rs.nFileA3DCreateFromAssetStream(asset); 302 throw new RSRuntimeException("Unsupported asset stream");
|
H A D | Font.java | 190 throw new RSRuntimeException("Unable to create font from asset " + path); 214 long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); 215 fontId = rs.nFontCreateFromAssetStream(name, pointSize, dpi, asset); 217 throw new RSRuntimeException("Unsupported asset stream created");
|
/frameworks/base/rs/jni/ |
H A D | android_renderscript_RenderScript.cpp | 1654 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/native/android/ |
H A D | asset_manager.cpp | 51 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/media/jni/ |
H A D | android_media_ExifInterface.cpp | 98 Asset* asset = reinterpret_cast<Asset*>(jasset); local 99 std::unique_ptr<AssetStreamAdaptor> stream(new AssetStreamAdaptor(asset)); 326 Asset* asset = reinterpret_cast<Asset*>(jasset); local 327 std::unique_ptr<AssetStreamAdaptor> stream(new AssetStreamAdaptor(asset));
|
/frameworks/base/graphics/java/android/graphics/ |
H A D | Movie.java | 56 final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); 57 return nativeDecodeAsset(asset); 63 private static native Movie nativeDecodeAsset(long asset); argument
|
/frameworks/base/include/androidfw/ |
H A D | AssetManager.h | 67 * 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 D | ResourceTypes.h | 1578 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
|