Class 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 Detail

      • realNativeAllocationRegistry

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

      • ShadowNativeAllocationRegistry

        public ShadowNativeAllocationRegistry()
    • Method Detail

      • registerNativeAllocation

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

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