@Implements(value=android.content.res.AssetManager.class, maxSdk=27, shadowPicker=ShadowAssetManager.Picker.class) public class ShadowArscAssetManager extends ShadowAssetManager.ArscBase
ShadowAssetManager.ArscBase, ShadowAssetManager.Picker
Modifier and Type | Field and Description |
---|---|
protected android.content.res.AssetManager |
realObject |
Constructor and Description |
---|
ShadowArscAssetManager() |
Modifier and Type | Method and Description |
---|---|
int |
addAssetPath(java.lang.String path) |
protected int |
addAssetPathNative(java.lang.String path) |
protected int |
addAssetPathNative(java.lang.String path,
boolean appAsLib) |
protected static void |
applyStyle(int themeToken,
int defStyleAttr,
int defStyleRes,
int xmlParserToken,
int[] attrs,
int[] outValues,
int[] outIndices) |
protected static void |
applyStyle(long themeToken,
int defStyleAttr,
int defStyleRes,
long xmlParserToken,
int[] attrs,
int[] outValues,
int[] outIndices) |
protected static void |
applyStyle(long themeToken,
int defStyleAttr,
int defStyleRes,
long xmlParserToken,
int[] inAttrs,
int length,
long outValuesAddress,
long outIndicesAddress) |
static void |
applyThemeStyle(int themePtr,
int styleRes,
boolean force) |
static void |
applyThemeStyle(long themePtr,
int styleRes,
boolean force) |
static void |
copyTheme(int destPtr,
int sourcePtr) |
static void |
copyTheme(long destPtr,
long sourcePtr) |
protected void |
deleteTheme(int theme) |
protected void |
deleteTheme(long theme) |
protected void |
destroyAsset(int asset) |
protected void |
destroyAsset(long asset) |
protected static void |
dumpTheme(long theme,
int priority,
java.lang.String tag,
java.lang.String prefix) |
int[] |
getArrayIntResource(int arrayResId) |
protected int |
getArraySize(int id) |
protected int[] |
getArrayStringInfo(int arrayResId) |
protected java.lang.String[] |
getArrayStringResource(int arrayResId) |
protected long |
getAssetLength(int asset) |
protected long |
getAssetLength(long asset) |
protected long |
getAssetRemainingLength(int asset) |
protected long |
getAssetRemainingLength(long assetHandle) |
protected android.util.SparseArray<java.lang.String> |
getAssignedPackageIdentifiers() |
protected java.lang.Number |
getNativeStringBlock(int block) |
static java.lang.String |
getResourceBagValue(int ident,
int bagEntryId,
ResTable resTable) |
static java.util.Map<java.lang.String,java.lang.Integer> |
getResourceBagValues(int ident,
ResTable res) |
protected java.lang.String |
getResourceEntryName(int resid) |
int |
getResourceIdentifier(java.lang.String name,
java.lang.String defType,
java.lang.String defPackage) |
protected java.lang.String |
getResourceName(int resid) |
protected java.lang.String |
getResourcePackageName(int resid) |
protected java.lang.String |
getResourceTypeName(int resid) |
protected int |
getStringBlockCount() |
protected void |
init() |
protected void |
init(boolean isSystem) |
protected java.lang.String[] |
list(java.lang.String path) |
protected int |
loadResourceBagValue(int ident,
int bagEntryId,
android.util.TypedValue outValue,
boolean resolve)
Returns true if the resource was found, filling in mRetStringBlock and mRetData.
|
protected int |
loadResourceValue(int ident,
short density,
android.util.TypedValue outValue,
boolean resolve) |
protected static int |
loadThemeAttributeValue(int themeHandle,
int ident,
android.util.TypedValue outValue,
boolean resolve) |
protected static int |
loadThemeAttributeValue(long themeHandle,
int ident,
android.util.TypedValue outValue,
boolean resolve) |
protected java.lang.Number |
newTheme() |
protected java.lang.Number |
openAsset(java.lang.String fileName,
int mode) |
protected android.os.ParcelFileDescriptor |
openAssetFd(java.lang.String fileName,
long[] outOffsets) |
protected android.os.ParcelFileDescriptor |
openNonAssetFdNative(int cookie,
java.lang.String fileName,
long[] outOffsets) |
protected java.lang.Number |
openNonAssetNative(int cookie,
java.lang.String fileName,
int accessMode) |
protected java.lang.Number |
openXmlAssetNative(int cookie,
java.lang.String fileName) |
protected int |
readAsset(int asset,
byte[] b,
int off,
int len) |
protected int |
readAsset(long asset,
byte[] bArray,
int off,
int len) |
protected int |
readAssetChar(int asset) |
protected int |
readAssetChar(long asset) |
static void |
reset() |
protected static boolean |
resolveAttrs(long themeToken,
int defStyleAttr,
int defStyleRes,
int[] inValues,
int[] attrs,
int[] outValues,
int[] outIndices) |
protected int |
retrieveArray(int id,
int[] outValues) |
protected boolean |
retrieveAttributes(int xmlParserToken,
int[] attrs,
int[] outValues,
int[] outIndices) |
protected boolean |
retrieveAttributes(long xmlParserToken,
int[] attrs,
int[] outValues,
int[] outIndices) |
protected long |
seekAsset(int asset,
long offset,
int whence) |
protected long |
seekAsset(long asset,
long offset,
int whence) |
void |
setConfiguration(int mcc,
int mnc,
java.lang.String locale,
int orientation,
int touchscreen,
int density,
int keyboard,
int keyboardHidden,
int navigation,
int screenWidth,
int screenHeight,
int smallestScreenWidthDp,
int screenWidthDp,
int screenHeightDp,
int screenLayout,
int uiMode,
int sdkVersion) |
void |
setConfiguration(int mcc,
int mnc,
java.lang.String locale,
int orientation,
int touchscreen,
int density,
int keyboard,
int keyboardHidden,
int navigation,
int screenWidth,
int screenHeight,
int smallestScreenWidthDp,
int screenWidthDp,
int screenHeightDp,
int screenLayout,
int uiMode,
int colorMode,
int sdkVersion) |
getCompileTimeResTable
useLegacy
@RealObject protected android.content.res.AssetManager realObject
@Resetter public static void reset()
@Implementation protected final java.lang.String[] list(java.lang.String path) throws java.io.IOException
java.io.IOException
@HiddenApi @Implementation(maxSdk=25) public final void setConfiguration(int mcc, int mnc, java.lang.String locale, int orientation, int touchscreen, int density, int keyboard, int keyboardHidden, int navigation, int screenWidth, int screenHeight, int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, int screenLayout, int uiMode, int sdkVersion)
@HiddenApi @Implementation(minSdk=26) public void setConfiguration(int mcc, int mnc, java.lang.String locale, int orientation, int touchscreen, int density, int keyboard, int keyboardHidden, int navigation, int screenWidth, int screenHeight, int smallestScreenWidthDp, int screenWidthDp, int screenHeightDp, int screenLayout, int uiMode, int colorMode, int sdkVersion)
@HiddenApi @Implementation protected static void dumpTheme(long theme, int priority, java.lang.String tag, java.lang.String prefix)
@Implementation protected java.lang.String getResourceName(int resid)
@Implementation protected java.lang.String getResourcePackageName(int resid)
@Implementation protected java.lang.String getResourceTypeName(int resid)
@Implementation protected java.lang.String getResourceEntryName(int resid)
@HiddenApi @Implementation(maxSdk=17) public int addAssetPath(java.lang.String path)
@HiddenApi @Implementation(minSdk=18, maxSdk=23) protected final int addAssetPathNative(java.lang.String path)
@HiddenApi @Implementation(minSdk=24) protected int addAssetPathNative(java.lang.String path, boolean appAsLib)
@HiddenApi @Implementation public int getResourceIdentifier(java.lang.String name, java.lang.String defType, java.lang.String defPackage)
@HiddenApi @Implementation protected final java.lang.Number openAsset(java.lang.String fileName, int mode) throws java.io.FileNotFoundException
java.io.FileNotFoundException
@HiddenApi @Implementation protected android.os.ParcelFileDescriptor openAssetFd(java.lang.String fileName, long[] outOffsets) throws java.io.IOException
java.io.IOException
@HiddenApi @Implementation protected final java.lang.Number openNonAssetNative(int cookie, java.lang.String fileName, int accessMode) throws java.io.FileNotFoundException
java.io.FileNotFoundException
@HiddenApi @Implementation protected android.os.ParcelFileDescriptor openNonAssetFdNative(int cookie, java.lang.String fileName, long[] outOffsets) throws java.io.IOException
java.io.IOException
@HiddenApi @Implementation(maxSdk=20) protected final void destroyAsset(int asset)
@HiddenApi @Implementation(minSdk=21) protected final void destroyAsset(long asset)
@HiddenApi @Implementation(maxSdk=20) protected final int readAssetChar(int asset)
@HiddenApi @Implementation(minSdk=21) protected final int readAssetChar(long asset)
@HiddenApi @Implementation(maxSdk=20) protected final int readAsset(int asset, byte[] b, int off, int len) throws java.io.IOException
java.io.IOException
@HiddenApi @Implementation(minSdk=21) protected final int readAsset(long asset, byte[] bArray, int off, int len) throws java.io.IOException
java.io.IOException
@HiddenApi @Implementation(maxSdk=20) protected final long seekAsset(int asset, long offset, int whence)
@HiddenApi @Implementation(minSdk=21) protected final long seekAsset(long asset, long offset, int whence)
@HiddenApi @Implementation(maxSdk=20) protected final long getAssetLength(int asset)
@HiddenApi @Implementation(minSdk=21) protected final long getAssetLength(long asset)
@HiddenApi @Implementation(maxSdk=20) protected final long getAssetRemainingLength(int asset)
@HiddenApi @Implementation(minSdk=21) protected final long getAssetRemainingLength(long assetHandle)
@HiddenApi @Implementation protected int loadResourceValue(int ident, short density, android.util.TypedValue outValue, boolean resolve)
public static java.util.Map<java.lang.String,java.lang.Integer> getResourceBagValues(int ident, ResTable res)
@Implementation @HiddenApi protected final int loadResourceBagValue(int ident, int bagEntryId, android.util.TypedValue outValue, boolean resolve)
Returns true if the resource was found, filling in mRetStringBlock and mRetData.
public static java.lang.String getResourceBagValue(int ident, int bagEntryId, ResTable resTable)
@HiddenApi @Implementation(maxSdk=20) protected static void applyStyle(int themeToken, int defStyleAttr, int defStyleRes, int xmlParserToken, int[] attrs, int[] outValues, int[] outIndices)
@HiddenApi @Implementation(minSdk=26, maxSdk=27) protected static void applyStyle(long themeToken, int defStyleAttr, int defStyleRes, long xmlParserToken, int[] inAttrs, int length, long outValuesAddress, long outIndicesAddress)
@HiddenApi @Implementation(minSdk=21, maxSdk=25) protected static void applyStyle(long themeToken, int defStyleAttr, int defStyleRes, long xmlParserToken, int[] attrs, int[] outValues, int[] outIndices)
@Implementation @HiddenApi protected static boolean resolveAttrs(long themeToken, int defStyleAttr, int defStyleRes, int[] inValues, int[] attrs, int[] outValues, int[] outIndices)
@HiddenApi @Implementation(maxSdk=20) protected final boolean retrieveAttributes(int xmlParserToken, int[] attrs, int[] outValues, int[] outIndices)
@HiddenApi @Implementation(minSdk=21) protected final boolean retrieveAttributes(long xmlParserToken, int[] attrs, int[] outValues, int[] outIndices)
@HiddenApi @Implementation protected int getArraySize(int id)
@Implementation @HiddenApi protected int retrieveArray(int id, int[] outValues)
@HiddenApi @Implementation protected java.lang.Number getNativeStringBlock(int block)
@Implementation protected final android.util.SparseArray<java.lang.String> getAssignedPackageIdentifiers()
@HiddenApi @Implementation protected final java.lang.Number newTheme()
@HiddenApi @Implementation(maxSdk=20) protected final void deleteTheme(int theme)
@HiddenApi @Implementation(minSdk=21) protected final void deleteTheme(long theme)
@HiddenApi @Implementation(maxSdk=20) public static void applyThemeStyle(int themePtr, int styleRes, boolean force)
@HiddenApi @Implementation(minSdk=21, maxSdk=27) public static void applyThemeStyle(long themePtr, int styleRes, boolean force)
@HiddenApi @Implementation(maxSdk=20) public static void copyTheme(int destPtr, int sourcePtr)
@HiddenApi @Implementation(minSdk=21, maxSdk=27) public static void copyTheme(long destPtr, long sourcePtr)
@HiddenApi @Implementation(maxSdk=20) protected static int loadThemeAttributeValue(int themeHandle, int ident, android.util.TypedValue outValue, boolean resolve)
@HiddenApi @Implementation(minSdk=21) protected static int loadThemeAttributeValue(long themeHandle, int ident, android.util.TypedValue outValue, boolean resolve)
@HiddenApi @Implementation protected final java.lang.Number openXmlAssetNative(int cookie, java.lang.String fileName) throws java.io.FileNotFoundException
java.io.FileNotFoundException
@HiddenApi @Implementation protected final java.lang.String[] getArrayStringResource(int arrayResId)
@HiddenApi @Implementation protected final int[] getArrayStringInfo(int arrayResId)
@HiddenApi @Implementation public int[] getArrayIntResource(int arrayResId)
@HiddenApi @Implementation(maxSdk=19) protected void init()
@HiddenApi @Implementation(minSdk=20) protected void init(boolean isSystem)
@HiddenApi @Implementation protected int getStringBlockCount()