Android Open Source - Sensoria I Sensor Data






From Project

Back to project page Sensoria.

License

The source code is released under:

MIT License

If you think the Android project Sensoria 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.grocs.sensors.common;
/*ww  w .j ava2s  .co  m*/
import android.hardware.Sensor;

/**
 * SensorData interface, wrapper around the Android Sensor class,
 * adding some extra descriptive information
 */
public interface ISensorData {

    /**
     * get original Android Sensor
     * @return
     */
    public Sensor getSensor();

    /**
     * get current values
     * @return array of values, size of array depends on the type of sensor
     */
    public float[] getValues();

    /**
     * get global description
     * @return description
     */
    public ISensorDescription getDescription();

    /**
     * isDefault
     * @return true if the sensor is the default sensor for its type.
     */
    public boolean isDefault();

}




Java Source Code List

com.grocs.sensors.common.FloatConvertor.java
com.grocs.sensors.common.ISensorData.java
com.grocs.sensors.common.ISensorDescription.java
com.grocs.sensors.common.SensorCollector.java
com.grocs.sensors.common.SensorConstants.java
com.grocs.sensors.common.SensorDataComparator.java
com.grocs.sensors.common.SensorDataManagerListener.java
com.grocs.sensors.common.SensorDataManager.java
com.grocs.sensors.common.SensorData.java
com.grocs.sensors.common.SensorDescriptions.java
com.grocs.sensors.common.SensorFilter.java
com.grocs.sensors.common.SensorUtils.java
com.grocs.sensors.common.TestFloatConvertor.java
com.grocs.sensors.ui.ActivityDetail.java
com.grocs.sensors.ui.Activity.java
com.grocs.sensors.ui.EntryAdapter.java
com.grocs.sensors.ui.FloatFormatter.java
com.grocs.sensors.ui.SensorEntryComparator.java
com.grocs.sensors.ui.SensorEntry.java
com.grocs.sensors.ui.SensorPreferenceActivity.java
com.grocs.sensors.ui.TestFloatFormatter.java