Android Open Source - InfoSecProj Accel Event






From Project

Back to project page InfoSecProj.

License

The source code is released under:

MIT License

If you think the Android project InfoSecProj 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 com.infosec.gesturedata;
// ww  w  . j  ava  2 s  . c  o  m
public class AccelEvent {

  
  static final float ALPHA = 0.20f;
  private float xAccel;
  private float yAccel;
  private float zAccel;
  private long time;
  
  public AccelEvent() { }
  
  public AccelEvent(float x, float y, float z) {
    this.xAccel = x;
    this.yAccel = y;
    this.zAccel = z;
    this.time = System.nanoTime();
  }
  
  public float getX() {
    return this.xAccel;
  }
  
  public float getY() {
    return this.yAccel;
  }
  
  public float getZ() {
    return this.zAccel;
  }
  
  public long getTime() {
    return this.time;
  }

  public void setX(float xAccel) {
    this.xAccel = xAccel;
  }
  
  public void setY(float yAccel) {
    this.yAccel = yAccel;
  }
  
  public void setZ(float zAccel) {
    this.zAccel = zAccel;
  }
  
  public void setTime(long time) {
    this.time = time;
  }
}




Java Source Code List

com.infosec.gesturedata.AccelEvent.java
com.infosec.gesturedata.GestureData.java
com.infosec.gesturedata.Point.java
com.infosec.gesturelock.HomeActivity.java
com.infosec.gesturelock.LockActivity.java
com.infosec.gesturelock.LockSuccessScreen.java
com.infosec.gesturelock.SetPasswordActivity.java
com.infosec.gesturelock.StartTestActivity.java
com.infosec.gesturelock.TutActivityFrag.java
com.infosec.gesturelock.TutActivity.java
com.infosec.gesturelock.util.SystemUiHiderBase.java
com.infosec.gesturelock.util.SystemUiHiderHoneycomb.java
com.infosec.gesturelock.util.SystemUiHider.java