/frameworks/base/cmds/bootanimation/ |
H A D | BootAnimation.cpp | 111 Asset* asset = assets.open(name, Asset::ACCESS_BUFFER); local 112 if (asset == NULL) 115 SkImageDecoder::DecodeMemory(asset->getBuffer(false), asset->getLength(), 117 asset->close(); 118 delete asset;
|
H A D | BootAnimation.h | 84 status_t initTexture(Texture* texture, AssetManager& asset, const char* name);
|
/frameworks/base/core/java/android/content/res/ |
H A D | AssetManager.java | 30 * 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 724 destroyAsset(long asset) argument 725 readAssetChar(long asset) argument 726 readAsset(long asset, byte[] b, int off, int len) argument 727 seekAsset(long asset, long offset, int whence) argument 728 getAssetLength(long asset) argument 729 getAssetRemainingLength(long asset) argument [all...] |
/frameworks/base/core/jni/android/graphics/ |
H A D | BitmapFactory.cpp | 514 Asset* asset = reinterpret_cast<Asset*>(native_asset); local 515 // since we know we'll be done with the asset when we return, we can 517 SkAutoTDelete<SkStreamRewindable> stream(new AssetStreamAdaptor(asset));
|
H A D | BitmapRegionDecoder.cpp | 153 Asset* asset = reinterpret_cast<Asset*>(native_asset); local 154 SkMemoryStream* stream = CopyAssetToStream(asset);
|
H A D | FontFamily.cpp | 102 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); local 103 if (NULL == asset) { 107 const void* buf = asset->getBuffer(false); 109 delete asset; 113 SkAutoTUnref<SkData> data(SkData::NewWithProc(buf, asset->getLength(), releaseAsset, asset));
|
H A D | Movie.cpp | 85 android::Asset* asset = reinterpret_cast<android::Asset*>(native_asset); local 86 if (asset == NULL) return NULL; 87 SkAutoTDelete<SkStreamRewindable> stream(new android::AssetStreamAdaptor(asset));
|
H A D | Utils.cpp | 23 AssetStreamAdaptor::AssetStreamAdaptor(Asset* asset) argument 24 : fAsset(asset) 59 // asset->seek returns new total offset 86 SkMemoryStream* android::CopyAssetToStream(Asset* asset) { argument 87 if (NULL == asset) { 91 const off64_t seekReturnVal = asset->seek(0, SEEK_SET); 93 SkDebugf("---- copyAsset: asset rewind failed\n"); 97 const off64_t size = asset->getLength(); 99 SkDebugf("---- copyAsset: asset->getLength() returned %d\n", size); 104 const off64_t len = asset [all...] |
/frameworks/base/graphics/java/android/graphics/ |
H A D | BitmapFactory.java | 608 final long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); 609 bm = nativeDecodeAsset(asset, outPadding, opts);
|
H A D | BitmapRegionDecoder.java | 271 long asset, boolean isShareable); 270 nativeNewInstance( long asset, boolean isShareable) argument
|
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, 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 D | ResourceTypes.h | 1552 status_t add(Asset* asset, const int32_t cookie=-1, bool copyData=false); 1553 status_t add(Asset* asset, Asset* idmapAsset, const int32_t cookie=-1, bool copyData=false);
|
/frameworks/base/libs/androidfw/ |
H A D | AssetManager.cpp | 21 #define LOG_TAG "asset" 219 // This asset path does not contain any resources. 476 * Open an asset. 513 * For each top-level asset path, search for the asset. 519 ALOGV("Looking for asset '%s' in '%s'\n", 531 * Open a non-asset file as if it were an asset. 547 * For each top-level asset path, search for the asset 1920 setResourceTableAsset(Asset* asset) argument 2049 setZipResourceTableAsset(const String8& path, Asset* asset) argument [all...] |
H A D | ResourceTypes.cpp | 3564 status_t ResTable::add(Asset* asset, const int32_t cookie, bool copyData) { argument 3565 const void* data = asset->getBuffer(true); 3567 ALOGW("Unable to get buffer of resource asset file"); 3571 return addInternal(data, static_cast<size_t>(asset->getLength()), NULL, 0, cookie, copyData); 3574 status_t ResTable::add(Asset* asset, Asset* idmapAsset, const int32_t cookie, bool copyData) { argument 3575 const void* data = asset->getBuffer(true); 3577 ALOGW("Unable to get buffer of resource asset file"); 3586 ALOGW("Unable to get buffer of idmap asset file"); 3592 return addInternal(data, static_cast<size_t>(asset->getLength()),
|
/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/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 | 223 * Creates a FileA3D object from an asset stored on disk 226 * @param mgr asset manager used to load asset 236 throw new RSRuntimeException("Unable to create a3d file from asset " + path); 298 long asset = ((AssetManager.AssetInputStream) is).getNativeAsset(); 299 fileId = rs.nFileA3DCreateFromAssetStream(asset); 301 throw new RSRuntimeException("Unsupported asset stream");
|
H A D | Font.java | 189 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");
|