Lines Matching refs:asset

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 using an explicit access mode, returning an InputStream to
296 * @param fileName The name of the asset to open. This name can be
313 long asset = openAsset(fileName, accessMode);
314 if (asset != 0) {
315 AssetInputStream res = new AssetInputStream(asset);
342 * @return String[] Array of strings, one for each asset. These file
354 * Open a non-asset file as an asset using ACCESS_STREAMING mode. This
367 * Open a non-asset file as an asset using a specific access mode. This
381 * Open a non-asset in a specified package. Not for use by applications.
384 * @param fileName Name of the asset to retrieve.
393 * Open a non-asset in a specified package. Not for use by applications.
396 * @param fileName Name of the asset to retrieve.
405 long asset = openNonAssetNative(cookie, fileName, accessMode);
406 if (asset != 0) {
407 AssetInputStream res = new AssetInputStream(asset);
461 * Retrieve a non-asset as a compiled XML file. Not for use by
473 * Retrieve a non-asset as a compiled XML file. Not for use by
477 * @param fileName Name of the asset to retrieve.
549 private AssetInputStream(long asset)
551 mAsset = asset;
552 mLength = getAssetLength(asset);
607 * Add an additional set of assets to the asset manager. This can be
609 * the cookie of the added asset, or 0 on failure.
633 * Add multiple sets of assets to the asset manager at once. See
635 * cookies for each added asset with 0 indicating failure, or null if
653 * Determine whether the state in this asset manager is up-to-date with
661 * Change the locale being used by this asset manager. Not for use by
668 * Get the locales that this asset manager contains data for.
710 private native final void destroyAsset(long asset);
711 private native final int readAssetChar(long asset);
712 private native final int readAsset(long asset, byte[] b, int off, int len);
713 private native final long seekAsset(long asset, long offset, int whence);
714 private native final long getAssetLength(long asset);
715 private native final long getAssetRemainingLength(long asset);