Package org.robolectric.shadows
Class ShadowArscAssetManager10
- java.lang.Object
-
- org.robolectric.shadows.ShadowAssetManager
-
- org.robolectric.shadows.ShadowAssetManager.ArscBase
-
- org.robolectric.shadows.ShadowArscAssetManager10
-
@Implements(value=android.content.res.AssetManager.class, minSdk=29, shadowPicker=Picker.class) public class ShadowArscAssetManager10 extends ShadowAssetManager.ArscBase
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowAssetManager
ShadowAssetManager.ArscBase, ShadowAssetManager.Picker
-
-
Constructor Summary
Constructors Constructor Description ShadowArscAssetManager10()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void__constructor__(boolean sentinel)Used for the creation of system assets.protected static voidcreateSystemAssetsInZygoteLocked()protected static java.lang.StringgetAssetAllocations()protected static intgetGlobalAssetCount()protected static intgetGlobalAssetManagerCount()protected static voidnativeApplyStyle(long ptr, long theme_ptr, int def_style_attr, int def_style_resid, long xml_parser_ptr, int[] java_attrs, long out_values_ptr, long out_indices_ptr)protected static voidnativeAssetDestroy(long asset_ptr)protected static longnativeAssetGetLength(long asset_ptr)protected static longnativeAssetGetRemainingLength(long asset_ptr)protected static intnativeAssetRead(long asset_ptr, byte[] java_buffer, int offset, int len)protected static intnativeAssetReadChar(long asset_ptr)protected static longnativeAssetSeek(long asset_ptr, long offset, int whence)protected static longnativeCreate()protected static java.lang.String[]nativeCreateIdmapsForStaticOverlaysTargetingAndroid()protected static voidnativeDestroy(long ptr)protected static android.util.SparseArray<java.lang.String>nativeGetAssignedPackageIdentifiers(long ptr)protected static java.lang.String[]nativeGetLocales(long ptr, boolean exclude_system)protected static intnativeGetResourceArray(long ptr, int resid, int[] out_data)protected static intnativeGetResourceArraySize(long ptr, int resid)protected static intnativeGetResourceBagValue(long ptr, int resid, int bag_entry_id, android.util.TypedValue typed_value)protected static java.lang.StringnativeGetResourceEntryName(long ptr, int resid)protected static intnativeGetResourceIdentifier(long ptr, java.lang.String name, java.lang.String def_type, java.lang.String def_package)protected static int[]nativeGetResourceIntArray(long ptr, int resid)protected static java.lang.StringnativeGetResourceName(long ptr, int resid)protected static java.lang.StringnativeGetResourcePackageName(long ptr, int resid)protected static java.lang.String[]nativeGetResourceStringArray(long ptr, int resid)protected static int[]nativeGetResourceStringArrayInfo(long ptr, int resid)protected static java.lang.StringnativeGetResourceTypeName(long ptr, int resid)protected static intnativeGetResourceValue(long ptr, int resid, short density, android.util.TypedValue typed_value, boolean resolve_references)protected static android.content.res.Configuration[]nativeGetSizeConfigurations(long ptr)protected static int[]nativeGetStyleAttributes(long ptr, int resid)protected static java.lang.String[]nativeList(long ptr, java.lang.String path)protected static longnativeOpenAsset(long ptr, java.lang.String asset_path, int access_mode)protected static android.os.ParcelFileDescriptornativeOpenAssetFd(long ptr, java.lang.String asset_path, long[] out_offsets)protected static longnativeOpenNonAsset(long ptr, int jcookie, java.lang.String asset_path, int access_mode)protected static android.os.ParcelFileDescriptornativeOpenNonAssetFd(long ptr, int jcookie, java.lang.String asset_path, long[] out_offsets)protected static longnativeOpenXmlAsset(long ptr, int jcookie, java.lang.String asset_path)protected static booleannativeResolveAttrs(long ptr, long theme_ptr, int def_style_attr, int def_style_resid, int[] java_values, int[] java_attrs, int[] out_java_values, int[] out_java_indices)protected static booleannativeRetrieveAttributes(long ptr, long xml_parser_ptr, int[] java_attrs, int[] out_java_values, int[] out_java_indices)protected static voidnativeSetApkAssets(long ptr, android.content.res.ApkAssets[] apk_assets_array, boolean invalidate_caches)protected static voidnativeSetConfiguration(long ptr, int mcc, int mnc, java.lang.String locale, int orientation, int touchscreen, int density, int keyboard, int keyboard_hidden, int navigation, int screen_width, int screen_height, int smallest_screen_width_dp, int screen_width_dp, int screen_height_dp, int screen_layout, int ui_mode, int color_mode, int major_version)protected static voidnativeThemeApplyStyle(long ptr, long theme_ptr, int resid, boolean force)protected static voidnativeThemeClear(long themePtr)protected static voidnativeThemeCopy(long dst_theme_ptr, long src_theme_ptr)protected static voidnativeThemeCopy(long dst_asset_manager_ptr, long dst_theme_ptr, long src_asset_manager_ptr, long src_theme_ptr)protected static longnativeThemeCreate(long ptr)protected static voidnativeThemeDestroy(long theme_ptr)protected static voidnativeThemeDump(long ptr, long theme_ptr, int priority, java.lang.String tag, java.lang.String prefix)protected static intnativeThemeGetAttributeValue(long ptr, long theme_ptr, int resid, android.util.TypedValue typed_value, boolean resolve_references)protected static intnativeThemeGetChangingConfigurations(long theme_ptr)protected static voidnativeVerifySystemIdmaps()static voidreset()-
Methods inherited from class org.robolectric.shadows.ShadowAssetManager.ArscBase
getCompileTimeResTable
-
Methods inherited from class org.robolectric.shadows.ShadowAssetManager
useLegacy
-
-
-
-
Method Detail
-
createSystemAssetsInZygoteLocked
@Implementation protected static void createSystemAssetsInZygoteLocked()
-
reset
@Resetter public static void reset()
-
nativeVerifySystemIdmaps
@Implementation(minSdk=28) protected static void nativeVerifySystemIdmaps()
-
nativeCreateIdmapsForStaticOverlaysTargetingAndroid
@Implementation(minSdk=29) protected static java.lang.String[] nativeCreateIdmapsForStaticOverlaysTargetingAndroid()
-
__constructor__
@Implementation(minSdk=28) protected void __constructor__(boolean sentinel)
Used for the creation of system assets.
-
getGlobalAssetCount
@Implementation(minSdk=28) protected static int getGlobalAssetCount()
-
getAssetAllocations
@Implementation(minSdk=28) protected static java.lang.String getAssetAllocations()
-
getGlobalAssetManagerCount
@Implementation(minSdk=28) protected static int getGlobalAssetManagerCount()
-
nativeCreate
@Implementation(minSdk=28) protected static long nativeCreate()
-
nativeDestroy
@Implementation(minSdk=28) protected static void nativeDestroy(long ptr)
-
nativeSetApkAssets
@Implementation(minSdk=28) protected static void nativeSetApkAssets(long ptr, android.content.res.ApkAssets[] apk_assets_array, boolean invalidate_caches)
-
nativeSetConfiguration
@Implementation(minSdk=28) protected static void nativeSetConfiguration(long ptr, int mcc, int mnc, java.lang.String locale, int orientation, int touchscreen, int density, int keyboard, int keyboard_hidden, int navigation, int screen_width, int screen_height, int smallest_screen_width_dp, int screen_width_dp, int screen_height_dp, int screen_layout, int ui_mode, int color_mode, int major_version)
-
nativeGetAssignedPackageIdentifiers
@Implementation(minSdk=28) protected static android.util.SparseArray<java.lang.String> nativeGetAssignedPackageIdentifiers(long ptr)
-
nativeList
@Implementation(minSdk=28) protected static java.lang.String[] nativeList(long ptr, java.lang.String path) throws java.io.IOException- Throws:
java.io.IOException
-
nativeOpenAsset
@Implementation(minSdk=28) protected static long nativeOpenAsset(long ptr, java.lang.String asset_path, int access_mode) throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
nativeOpenAssetFd
@Implementation(minSdk=28) protected static android.os.ParcelFileDescriptor nativeOpenAssetFd(long ptr, java.lang.String asset_path, long[] out_offsets) throws java.io.IOException- Throws:
java.io.IOException
-
nativeOpenNonAsset
@Implementation(minSdk=28) protected static long nativeOpenNonAsset(long ptr, int jcookie, java.lang.String asset_path, int access_mode) throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
nativeOpenNonAssetFd
@Implementation(minSdk=28) protected static android.os.ParcelFileDescriptor nativeOpenNonAssetFd(long ptr, int jcookie, java.lang.String asset_path, long[] out_offsets) throws java.io.IOException- Throws:
java.io.IOException
-
nativeOpenXmlAsset
@Implementation(minSdk=28) protected static long nativeOpenXmlAsset(long ptr, int jcookie, java.lang.String asset_path) throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
nativeGetResourceValue
@Implementation(minSdk=28) protected static int nativeGetResourceValue(long ptr, @AnyRes int resid, short density, android.util.TypedValue typed_value, boolean resolve_references)
-
nativeGetResourceBagValue
@Implementation(minSdk=28) protected static int nativeGetResourceBagValue(long ptr, @AnyRes int resid, int bag_entry_id, android.util.TypedValue typed_value)
-
nativeGetStyleAttributes
@Implementation(minSdk=28) @AttrRes protected static int[] nativeGetStyleAttributes(long ptr, @StyleRes int resid)
-
nativeGetResourceStringArray
@Implementation(minSdk=28) protected static java.lang.String[] nativeGetResourceStringArray(long ptr, @ArrayRes int resid)
-
nativeGetResourceStringArrayInfo
@Implementation(minSdk=28) protected static int[] nativeGetResourceStringArrayInfo(long ptr, @ArrayRes int resid)
-
nativeGetResourceIntArray
@Implementation(minSdk=28) protected static int[] nativeGetResourceIntArray(long ptr, @ArrayRes int resid)
-
nativeGetResourceArraySize
@Implementation(minSdk=28) protected static int nativeGetResourceArraySize(long ptr, @ArrayRes int resid)
-
nativeGetResourceArray
@Implementation(minSdk=28) protected static int nativeGetResourceArray(long ptr, @ArrayRes int resid, int[] out_data)
-
nativeGetResourceIdentifier
@Implementation(minSdk=28) @AnyRes protected static int nativeGetResourceIdentifier(long ptr, java.lang.String name, java.lang.String def_type, java.lang.String def_package)
-
nativeGetResourceName
@Implementation(minSdk=28) protected static java.lang.String nativeGetResourceName(long ptr, @AnyRes int resid)
-
nativeGetResourcePackageName
@Implementation(minSdk=28) protected static java.lang.String nativeGetResourcePackageName(long ptr, @AnyRes int resid)
-
nativeGetResourceTypeName
@Implementation(minSdk=28) protected static java.lang.String nativeGetResourceTypeName(long ptr, @AnyRes int resid)
-
nativeGetResourceEntryName
@Implementation(minSdk=28) protected static java.lang.String nativeGetResourceEntryName(long ptr, @AnyRes int resid)
-
nativeGetLocales
@Implementation(minSdk=28) protected static java.lang.String[] nativeGetLocales(long ptr, boolean exclude_system)
-
nativeGetSizeConfigurations
@Implementation(minSdk=28) protected static android.content.res.Configuration[] nativeGetSizeConfigurations(long ptr)
-
nativeApplyStyle
@Implementation(minSdk=28) protected static void nativeApplyStyle(long ptr, long theme_ptr, @AttrRes int def_style_attr, @StyleRes int def_style_resid, long xml_parser_ptr, int[] java_attrs, long out_values_ptr, long out_indices_ptr)
-
nativeResolveAttrs
@Implementation(minSdk=28) protected static boolean nativeResolveAttrs(long ptr, long theme_ptr, @AttrRes int def_style_attr, @StyleRes int def_style_resid, int[] java_values, int[] java_attrs, int[] out_java_values, int[] out_java_indices)
-
nativeRetrieveAttributes
@Implementation(minSdk=28) protected static boolean nativeRetrieveAttributes(long ptr, long xml_parser_ptr, int[] java_attrs, int[] out_java_values, int[] out_java_indices)
-
nativeThemeCreate
@Implementation(minSdk=28) protected static long nativeThemeCreate(long ptr)
-
nativeThemeDestroy
@Implementation(minSdk=28) protected static void nativeThemeDestroy(long theme_ptr)
-
nativeThemeApplyStyle
@Implementation(minSdk=28) protected static void nativeThemeApplyStyle(long ptr, long theme_ptr, @StyleRes int resid, boolean force)
-
nativeThemeCopy
@Implementation(minSdk=28, maxSdk=28) protected static void nativeThemeCopy(long dst_theme_ptr, long src_theme_ptr)
-
nativeThemeCopy
@Implementation(minSdk=29) protected static void nativeThemeCopy(long dst_asset_manager_ptr, long dst_theme_ptr, long src_asset_manager_ptr, long src_theme_ptr)
-
nativeThemeClear
@Implementation(minSdk=28) protected static void nativeThemeClear(long themePtr)
-
nativeThemeGetAttributeValue
@Implementation(minSdk=28) protected static int nativeThemeGetAttributeValue(long ptr, long theme_ptr, @AttrRes int resid, android.util.TypedValue typed_value, boolean resolve_references)
-
nativeThemeDump
@Implementation(minSdk=28) protected static void nativeThemeDump(long ptr, long theme_ptr, int priority, java.lang.String tag, java.lang.String prefix)
-
nativeThemeGetChangingConfigurations
@Implementation(minSdk=28) protected static int nativeThemeGetChangingConfigurations(long theme_ptr)
-
nativeAssetDestroy
@Implementation(minSdk=28) protected static void nativeAssetDestroy(long asset_ptr)
-
nativeAssetReadChar
@Implementation(minSdk=28) protected static int nativeAssetReadChar(long asset_ptr)
-
nativeAssetRead
@Implementation(minSdk=28) protected static int nativeAssetRead(long asset_ptr, byte[] java_buffer, int offset, int len) throws java.io.IOException- Throws:
java.io.IOException
-
nativeAssetSeek
@Implementation(minSdk=28) protected static long nativeAssetSeek(long asset_ptr, long offset, int whence)
-
nativeAssetGetLength
@Implementation(minSdk=28) protected static long nativeAssetGetLength(long asset_ptr)
-
nativeAssetGetRemainingLength
@Implementation(minSdk=28) protected static long nativeAssetGetRemainingLength(long asset_ptr)
-
-