Android Open Source - wiigee_android_test Log






From Project

Back to project page wiigee_android_test.

License

The source code is released under:

GNU Lesser General Public License

If you think the Android project wiigee_android_test listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package org.wiigee.util;
//from w  w w  .  jav  a2s  .  com
public class Log {

  public static final int OFF = -1;
  public static final int NORMAL = 0;
  public static final int DEBUG = 1;
  
  public static final int PRINT = 0;
  public static final int FILE = 1;
  
  public static int level = Log.NORMAL;
  public static int mode = Log.PRINT;
  
  public static void setLevel(int n) {
    level = n;
  }
  
  public static void write(String s) {
    write(Log.NORMAL, s, null);
  }
  
  public static void write(String s, Object o) {
    write(Log.NORMAL, s, o);
  }
  
  public static void write(int n, String s, Object o) {
    if(level>=n) {
      if(mode==Log.PRINT) {
        // console output enabled
        if(o!=null) {
          System.out.println(o.getClass()+": "+s);
        } else {
          System.out.println(s);
        }
      } else if(mode==Log.FILE) {
        // file output enabled
        // TODO
      }
    }
  }
  
}




Java Source Code List

asus4.wiigeeandroid.Logger.java
asus4.wiigeeandroid.MainActivity.java
org.wiigee.control.AndroidWiigee.java
org.wiigee.control.Wiigee.java
org.wiigee.device.AndroidDevice.java
org.wiigee.device.Device.java
org.wiigee.event.AccelerationEvent.java
org.wiigee.event.AccelerationListener.java
org.wiigee.event.ActionStartEvent.java
org.wiigee.event.ActionStopEvent.java
org.wiigee.event.ButtonListener.java
org.wiigee.event.ButtonPressedEvent.java
org.wiigee.event.ButtonReleasedEvent.java
org.wiigee.event.GestureEvent.java
org.wiigee.event.GestureListener.java
org.wiigee.event.MotionStartEvent.java
org.wiigee.event.MotionStopEvent.java
org.wiigee.filter.DirectionalEquivalenceFilter.java
org.wiigee.filter.Filter.java
org.wiigee.filter.HighPassFilter.java
org.wiigee.filter.IdleStateFilter.java
org.wiigee.filter.LowPassFilter.java
org.wiigee.filter.MotionDetectFilter.java
org.wiigee.logic.Classifier.java
org.wiigee.logic.GestureModel.java
org.wiigee.logic.Gesture.java
org.wiigee.logic.HMM.java
org.wiigee.logic.PreciseHMM.java
org.wiigee.logic.ProcessingUnit.java
org.wiigee.logic.Quantizer.java
org.wiigee.logic.TriggeredProcessingUnit.java
org.wiigee.util.FileIO.java
org.wiigee.util.Log.java