List of usage examples for android.hardware SensorEventListener interface-usage
From source file com.example.android.jumpingjack.MainActivity.java
/**
* The main activity for the Jumping Jack application. This activity registers itself to receive
* sensor values. Since on wearable devices a full screen activity is very short-lived, we set the
* FLAG_KEEP_SCREEN_ON to give user adequate time for taking actions but since we don't want to
* keep screen on for an extended period of time, there is a SCREEN_ON_TIMEOUT_MS that is enforced
* if no interaction is discovered.
From source file alaindc.crowdroid.SensorsIntentService.java
public class SensorsIntentService extends IntentService implements SensorEventListener { private SensorManager mSensorManager; private GetAmplitudeTask amplitudeTask; private AlarmManager alarmMgr;
From source file com.sunildhaker.watch.heart.WearActivity.java
public class WearActivity extends Activity implements SensorEventListener { private static final String TAG = WearActivity.class.getName(); private TextView rate; private TextView accuracy;
From source file com.example.android.wearable.jumpingjack.MainActivity.java
/**
* The main activity for the Jumping Jack application. This activity registers itself to receive
* sensor values. Since on wearable devices a full screen activity is very short-lived, we set the
* FLAG_KEEP_SCREEN_ON to give user adequate time for taking actions but since we don't want to
* keep screen on for an extended period of time, there is a SCREEN_ON_TIMEOUT_MS that is enforced
* if no interaction is discovered.
From source file com.kircherelectronics.fusedgyroscopeexplorer.sensor.GravitySensor.java
/**
* Gravity Sensor is a subject in an Observer Pattern for classes that need to
* be provided with acceleration measurements. Acceleration Sensor implements
* Sensor.TYPE_GRAVITY and provides methods for managing SensorEvents and
* rotations. Unlike Sensor.TYPE_ACCELERATION, Sensor.TYPE_GRAVITY uses a sensor
* fusion to help sequester the gravity and linear acceleration components of
From source file org.namelessrom.devicecontrol.modules.device.sensors.BaseSensor.java
public abstract class BaseSensor extends FrameLayout implements SensorEventListener { private SensorManager mSensorManager; private LayoutInflater mInflater; private ImageView mIcon; private TextView mTitle;
From source file root.gast.playground.sensor.SensorDisplayFragment.java
/**
* Displays the details of a sensor.
*
* @author Greg Milette <<a href="mailto:gregorym@gmail.com">gregorym@gmail.com</a>>
* @author Adam Stroud <<a href="mailto:adam.stroud@gmail.com">adam.stroud@gmail.com</a>>
*/
From source file io.github.data4all.service.OrientationListener.java
/**
* A service for listening for orientation changes. Whenever the sensor changes
* the accelerometer and magnetic field values are checked out.
*
* @author Steeve
* @author sbollen
From source file ch.bfh.sensordataprocessor.sensor.SensorDisplayFragment.java
/** * Displays the details of a sensor. */ public class SensorDisplayFragment extends Fragment implements SensorEventListener { private static final String TAG = "SensorDisplayFragment"; private static final String THETA = "\u0398";
From source file jp.co.recruit_lifestyle.android.widget.BeerSwipeRefreshLayout.java
/** * @author amyu_san */ public class BeerSwipeRefreshLayout extends ViewGroup implements SensorEventListener { private static final int INVALID_POINTER = -1;