AndroidUtils.java 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /* ----------------------------------------------------------------------------
  2. * This file was automatically generated by SWIG (http://www.swig.org).
  3. * Version 2.0.4
  4. *
  5. * Do not make changes to this file unless you know what you are doing--modify
  6. * the SWIG interface file instead.
  7. * ----------------------------------------------------------------------------- */
  8. package org.doubango.utils;
  9. public class AndroidUtils {
  10. private long swigCPtr;
  11. protected boolean swigCMemOwn;
  12. public AndroidUtils(long cPtr, boolean cMemoryOwn) {
  13. swigCMemOwn = cMemoryOwn;
  14. swigCPtr = cPtr;
  15. }
  16. public static long getCPtr(AndroidUtils obj) {
  17. return (obj == null) ? 0 : obj.swigCPtr;
  18. }
  19. protected void finalize() {
  20. delete();
  21. }
  22. public synchronized void delete() {
  23. if (swigCPtr != 0) {
  24. if (swigCMemOwn) {
  25. swigCMemOwn = false;
  26. utilsJNI.delete_AndroidUtils(swigCPtr);
  27. }
  28. swigCPtr = 0;
  29. }
  30. }
  31. public AndroidUtils() {
  32. this(utilsJNI.new_AndroidUtils(), true);
  33. }
  34. public static java.math.BigInteger getCpuFamily() {
  35. return utilsJNI.AndroidUtils_getCpuFamily();
  36. }
  37. public static java.math.BigInteger getCpuFeatures() {
  38. return utilsJNI.AndroidUtils_getCpuFeatures();
  39. }
  40. }