Home | History | Annotate | Download | only in res

Lines Matching defs:asset

29  * Provides access to an application's raw asset files; see {@link Resources}
36 /* 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.
278 * Open an asset using ACCESS_STREAMING mode. This provides access to
282 * @param fileName The name of the asset to open. This name can be
293 * Open an asset using an explicit access mode, returning an InputStream to
298 * @param fileName The name of the asset to open. This name can be
315 int asset = openAsset(fileName, accessMode);
316 if (asset != 0) {
317 AssetInputStream res = new AssetInputStream(asset);
322 throw new FileNotFoundException("Asset file: " + fileName);
336 throw new FileNotFoundException("Asset file: " + fileName);
344 * @return String[] Array of strings, one for each asset. These file
356 * Open a non-asset file as an asset using ACCESS_STREAMING mode. This
369 * Open a non-asset file as an asset using a specific access mode. This
383 * Open a non-asset in a specified package. Not for use by applications.
386 * @param fileName Name of the asset to retrieve.
395 * Open a non-asset in a specified package. Not for use by applications.
398 * @param fileName Name of the asset to retrieve.
407 int asset = openNonAssetNative(cookie, fileName, accessMode);
408 if (asset != 0) {
409 AssetInputStream res = new AssetInputStream(asset);
414 throw new FileNotFoundException("Asset absolute file: " + fileName);
434 throw new FileNotFoundException("Asset absolute file: " + fileName);
463 * Retrieve a non-asset as a compiled XML file. Not for use by
475 * Retrieve a non-asset as a compiled XML file. Not for use by
479 * @param fileName Name of the asset to retrieve.
494 throw new FileNotFoundException("Asset XML file: " + fileName);
542 private AssetInputStream(int asset)
544 mAsset = asset;
545 mLength = getAssetLength(asset);
600 * Add an additional set of assets to the asset manager. This can be
602 * the cookie of the added asset, or 0 on failure.
608 * Add multiple sets of assets to the asset manager at once. See
610 * cookies for each added asset with 0 indicating failure, or null if
628 * Determine whether the state in this asset manager is up-to-date with
636 * Change the locale being used by this asset manager. Not for use by
643 * Get the locales that this asset manager contains data for.
677 private native final void destroyAsset(int asset);
678 private native final int readAssetChar(int asset);
679 private native final int readAsset(int asset, byte[] b, int off, int len);
680 private native final long seekAsset(int asset, long offset, int whence);
681 private native final long getAssetLength(int asset);
682 private native final long getAssetRemainingLength(int asset);