Package org.robolectric.shadows
Class ShadowNativeAssetManager
java.lang.Object
org.robolectric.shadows.ShadowAssetManager
org.robolectric.shadows.ShadowNativeAssetManager
@Implements(value=android.content.res.AssetManager.class,
minSdk=35,
callNativeMethodsByDefault=true,
shadowPicker=Picker.class)
public class ShadowNativeAssetManager
extends ShadowAssetManager
-
Nested Class Summary
Nested classes/interfaces inherited from class org.robolectric.shadows.ShadowAssetManager
ShadowAssetManager.ArscBase, ShadowAssetManager.Picker
-
Field Summary
Fields inherited from class org.robolectric.shadows.ShadowAssetManager
ATTRIBUTE_TYPE_PRECIDENCE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
applyStyle
(long themePtr, int defStyleAttr, int defStyleRes, XmlBlock.Parser parser, int[] inAttrs, long outValuesAddress, long outIndicesAddress) Use a similar implementation as applyStyle$ravenwood as workaround for allocating pinned (non-movable) array objects.protected static int
nativeGetResourceValue
(long ptr, int resid, short density, TypedValue typed_value, boolean resolve_references)
-
Constructor Details
-
ShadowNativeAssetManager
public ShadowNativeAssetManager()
-
-
Method Details
-
applyStyle
@Implementation protected void applyStyle(long themePtr, int defStyleAttr, int defStyleRes, XmlBlock.Parser parser, int[] inAttrs, long outValuesAddress, long outIndicesAddress) Use a similar implementation as applyStyle$ravenwood as workaround for allocating pinned (non-movable) array objects. -
nativeGetResourceValue
@Implementation protected static int nativeGetResourceValue(long ptr, int resid, short density, TypedValue typed_value, boolean resolve_references)
-