Lines Matching refs:asset

36  * Provides access to an application's raw asset files; see {@link Resources}
43 /* modes used when opening an asset */
89 * appropriate asset manager with {@link Resources#getAssets}. Not for
100 if (localLOGV) Log.v(TAG, "New asset manager: " + this);
123 if (localLOGV) Log.v(TAG, "New asset manager: " + this);
127 * Return a global shared asset manager that provides access to only
137 * Close this asset manager.
310 * Open an asset using ACCESS_STREAMING mode. This provides access to
314 * @param fileName The name of the asset to open. This name can be
325 * Open an asset using an explicit access mode, returning an InputStream to
330 * @param fileName The name of the asset to open. This name can be
347 long asset = openAsset(fileName, accessMode);
348 if (asset != 0) {
349 AssetInputStream res = new AssetInputStream(asset);
376 * @return String[] Array of strings, one for each asset. These file
388 * Open a non-asset file as an asset using ACCESS_STREAMING mode. This
401 * Open a non-asset file as an asset using a specific access mode. This
415 * Open a non-asset in a specified package. Not for use by applications.
418 * @param fileName Name of the asset to retrieve.
427 * Open a non-asset in a specified package. Not for use by applications.
430 * @param fileName Name of the asset to retrieve.
439 long asset = openNonAssetNative(cookie, fileName, accessMode);
440 if (asset != 0) {
441 AssetInputStream res = new AssetInputStream(asset);
495 * Retrieve a non-asset as a compiled XML file. Not for use by
507 * Retrieve a non-asset as a compiled XML file. Not for use by
511 * @param fileName Name of the asset to retrieve.
583 private AssetInputStream(long asset)
585 mAsset = asset;
586 mLength = getAssetLength(asset);
641 * Add an additional set of assets to the asset manager. This can be
643 * the cookie of the added asset, or 0 on failure.
651 * Add an application assets to the asset manager and loading it as shared library.
653 * the cookie of the added asset, or 0 on failure.
695 * Add multiple sets of assets to the asset manager at once. See
697 * cookies for each added asset with 0 indicating failure, or null if
715 * Determine whether the state in this asset manager is up-to-date with
723 * Get the locales that this asset manager contains data for.
780 private native final void destroyAsset(long asset);
781 private native final int readAssetChar(long asset);
782 private native final int readAsset(long asset, byte[] b, int off, int len);
783 private native final long seekAsset(long asset, long offset, int whence);
784 private native final long getAssetLength(long asset);
785 private native final long getAssetRemainingLength(long asset);