Class ShadowNativeAllocationRegistry

java.lang.Object
org.robolectric.shadows.ShadowNativeAllocationRegistry

@Implements(value=libcore.util.NativeAllocationRegistry.class, minSdk=26, isInAndroidSdk=false, shadowPicker=Picker.class) public class ShadowNativeAllocationRegistry extends Object
Shadow for NativeAllocationRegistry that is backed by native code
  • Field Details

    • realNativeAllocationRegistry

      @RealObject protected libcore.util.NativeAllocationRegistry realNativeAllocationRegistry
  • Constructor Details

    • ShadowNativeAllocationRegistry

      public ShadowNativeAllocationRegistry()
  • Method Details

    • registerNativeAllocation

      @Implementation protected Runnable registerNativeAllocation(Object referent, long nativePtr)
    • applyFreeFunction

      @Implementation protected static void applyFreeFunction(long freeFunction, long nativePtr)