Beispiel #1
0
 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;
 }
Beispiel #2
0
 /**
  * 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;
 }
Beispiel #3
0
 /** Class constructor */
 public MD5(Context context) {
   if (native_lib_init_pending) _initNativeLibrary(context);
   this.Init();
 }