Skip to content
Snippets Groups Projects
Commit a0545dd5 authored by Ashok Bhat's avatar Ashok Bhat Committed by David Butcher
Browse files

AArch64: Add AssetInputStream.getNativeAsset


This patch adds AssetInputStream.getNativeAsset. This function
returns asset pointer, which can then be passed to JNI functions.
Note that this function is hidden and not part of Android API.

This function will eventually replace getAssetInt,
once all the classes that use getAssetInt are changed
to use getNativeAsset instead.

Change-Id: I2a2b2e6864f1f57ae2b3a10c45559b3635266ed5
Signed-off-by: default avatarAshok Bhat <ashok.bhat@arm.com>
parent 337aa376
No related branches found
No related tags found
No related merge requests found
......@@ -540,6 +540,12 @@ public final class AssetManager {
public final int getAssetInt() {
return mAsset;
}
/**
* @hide
*/
public final long getNativeAsset() {
return mAsset;
}
private AssetInputStream(int asset)
{
mAsset = asset;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment