public MD5(Context context, MD5State state) { if (state == null) { throw new IllegalArgumentException("state cannot be null"); } if (native_lib_init_pending) _initNativeLibrary(context); this.state = state; finals = null; }
/** * Attempts to initialize native library support. If 'disallow_lib_loading' is true, will indicate * that the native library should not be loaded now or in the future. If native library support * has been previously loaded or disabled, this method has no effect. * * @return true iff native library support has been loaded */ public static final synchronized boolean initNativeLibrary( Context context, boolean disallow_lib_loading) { if (disallow_lib_loading) { native_lib_init_pending = false; } else { _initNativeLibrary(context); } return native_lib_loaded; }
/** Class constructor */ public MD5(Context context) { if (native_lib_init_pending) _initNativeLibrary(context); this.Init(); }