Class ShadowNativeAssetManager

java.lang.Object
org.robolectric.shadows.ShadowAssetManager
org.robolectric.shadows.ShadowNativeAssetManager

  • 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)