/frameworks/base/core/java/android/hardware/ |
SensorEventListener.java | 21 * sensor values have changed. 26 * Called when sensor values have changed. 28 * for details on possible sensor types. 42 * Called when the accuracy of a sensor has changed. 46 * @param accuracy The new accuracy of this sensor 48 public void onAccuracyChanged(Sensor sensor, int accuracy);
|
SensorEvent.java | 21 * This class represents a {@link android.hardware.Sensor Sensor} event and 22 * holds informations such as the sensor's type, the time-stamp, accuracy and of 23 * course the sensor's {@link SensorEvent#values data}. 54 * @see Sensor 62 * which {@link android.hardware.Sensor sensor} type is being monitored (see 66 * <h4>{@link android.hardware.Sensor#TYPE_ACCELEROMETER 67 * Sensor.TYPE_ACCELEROMETER}:</h4> All values are in SI units (m/s^2) 82 * A sensor of this type measures the acceleration applied to the devic 440 public Sensor sensor; field in class:SensorEvent [all...] |
Sensor.java | 21 * Class representing a sensor. Use {@link SensorManager#getSensorList} to get 29 public class Sensor { 32 * A constant describing an accelerometer sensor type. See 39 * A constant describing a magnetic field sensor type. See 46 * A constant describing an orientation sensor type. See 56 /** A constant describing a gyroscope sensor type */ 60 * A constant describing an light sensor type. See 66 /** A constant describing a pressure sensor type */ 70 * A constant describing a temperature sensor type 73 * {@link android.hardware.Sensor#TYPE_AMBIENT_TEMPERATUR [all...] |
SensorManager.java | 40 * SensorManager lets you access the device's {@link android.hardware.Sensor 56 * private final Sensor mAccelerometer; 60 * mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 73 * public void onAccuracyChanged(Sensor sensor, int accuracy) { 83 * @see Sensor 91 /* NOTE: sensor IDs must be a power of 2 */ 94 * A constant describing an orientation sensor. See 97 * @deprecated use {@link android.hardware.Sensor Sensor} instead 498 final int sensor = sensors_data_poll(sQueue, values, status, timestamp); local 658 Sensor sensor = new Sensor(); local 666 sHandleToSensor.append(sensor.getHandle(), sensor); local 847 Sensor sensor = getDefaultSensor(type); local 914 Sensor sensor = getDefaultSensor(type); local [all...] |
/frameworks/base/services/sensorservice/ |
SensorInterface.h | 23 #include <gui/Sensor.h> 41 virtual Sensor getSensor() const = 0; 50 Sensor mSensor; 53 HardwareSensor(const sensor_t& sensor); 62 virtual Sensor getSensor() const;
|
CorrectedGyroSensor.h | 23 #include <gui/Sensor.h> 37 Sensor mGyro; 45 virtual Sensor getSensor() const;
|
GravitySensor.h | 23 #include <gui/Sensor.h> 37 Sensor mAccelerometer; 45 virtual Sensor getSensor() const;
|
LinearAccelerationSensor.h | 23 #include <gui/Sensor.h> 45 virtual Sensor getSensor() const;
|
OrientationSensor.h | 23 #include <gui/Sensor.h> 44 virtual Sensor getSensor() const;
|
RotationVectorSensor.h | 23 #include <gui/Sensor.h> 45 virtual Sensor getSensor() const; 59 virtual Sensor getSensor() const;
|
SensorFusion.h | 27 #include <gui/Sensor.h> 42 Sensor mAcc; 43 Sensor mMag; 44 Sensor mGyro;
|
LinearAccelerationSensor.cpp | 46 outEvent->sensor = '_lin'; 61 Sensor LinearAccelerationSensor::getSensor() const { 62 Sensor gsensor(mGravitySensor.getSensor()); 64 hwSensor.name = "Linear Acceleration Sensor"; 73 Sensor sensor(&hwSensor); 74 return sensor;
|
/cts/tests/tests/hardware/src/android/hardware/cts/ |
SensorTest.java | 23 import android.hardware.Sensor; 31 @TestTargetClass(Sensor.class) 76 List<Sensor> sensors = mSensorManager.getSensorList(Sensor.TYPE_ALL); 78 Sensor sensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); local 81 // accelerometer sensor is optional 83 assertEquals(Sensor.TYPE_ACCELEROMETER, sensor.getType()) [all...] |
/frameworks/base/include/gui/ |
SensorManager.h | 41 class Sensor; 54 ssize_t getSensorList(Sensor const* const** list) const; 55 Sensor const* getDefaultSensor(int type); 67 mutable Sensor const** mSensorList; 68 mutable Vector<Sensor> mSensors;
|
ISensorServer.h | 31 class Sensor; 39 virtual Vector<Sensor> getSensorList() = 0;
|
Sensor.h | 30 #include <android/sensor.h> 44 class Sensor : public ASensor, public Flattenable 55 Sensor(); 56 Sensor(struct sensor_t const* hwSensor); 57 virtual ~Sensor();
|
SensorEventQueue.h | 44 class Sensor; 63 status_t enableSensor(Sensor const* sensor) const; 64 status_t disableSensor(Sensor const* sensor) const; 65 status_t setEventRate(Sensor const* sensor, nsecs_t ns) const;
|
/frameworks/base/libs/gui/ |
Sensor.cpp | 26 #include <gui/Sensor.h> 32 Sensor::Sensor() 39 Sensor::Sensor(struct sensor_t const* hwSensor) 52 Sensor::~Sensor() 56 const String8& Sensor::getName() const { 60 const String8& Sensor::getVendor() const { 64 int32_t Sensor::getHandle() const [all...] |
ISensorServer.cpp | 28 #include <gui/Sensor.h> 48 virtual Vector<Sensor> getSensorList() 53 Sensor s; 54 Vector<Sensor> v; 83 Vector<Sensor> v(getSensorList());
|
/frameworks/base/native/android/ |
sensor.cpp | 17 #define LOG_TAG "sensor" 21 #include <android/sensor.h> 27 #include <gui/Sensor.h> 34 using android::Sensor; 49 Sensor const* const* l; 86 int ASensorEventQueue_enableSensor(ASensorEventQueue* queue, ASensor const* sensor) 89 static_cast<Sensor const*>(sensor)); 92 int ASensorEventQueue_disableSensor(ASensorEventQueue* queue, ASensor const* sensor) 95 static_cast<Sensor const*>(sensor)) [all...] |
/frameworks/base/services/sensorservice/tests/ |
sensorservicetest.cpp | 17 #include <android/sensor.h> 18 #include <gui/Sensor.h> 46 if (buffer[i].type == Sensor::TYPE_ACCELEROMETER) { 66 Sensor const* const* list; 73 Sensor const* accelerometer = mgr.getDefaultSensor(Sensor::TYPE_ACCELEROMETER);
|
/packages/apps/Contacts/src/com/android/contacts/ |
ProximitySensorManager.java | 20 import android.hardware.Sensor; 28 * Manages the proximity sensor and notifies a listener when enabled. 32 * Listener of the state of the proximity sensor. 34 * This interface abstracts two possible states for the proximity sensor, near and far. 36 * The actual meaning of these states depends on the actual sensor. 39 /** Called when the proximity sensor transitions from the far to the near state. */ 41 /** Called when the proximity sensor transitions from the near to the far state. */ 53 * sensor. 58 * The listener to the state of the sensor. 60 * Contains most of the logic concerning tracking of the sensor [all...] |
/frameworks/base/core/java/android/webkit/ |
DeviceOrientationService.java | 20 import android.hardware.Sensor; 145 List<Sensor> sensors = getSensorManager().getSensorList(Sensor.TYPE_ACCELEROMETER); 155 List<Sensor> sensors = getSensorManager().getSensorList(Sensor.TYPE_MAGNETIC_FIELD); 196 switch (event.sensor.getType()) { 197 case Sensor.TYPE_ACCELEROMETER: 206 case Sensor.TYPE_MAGNETIC_FIELD: 220 public void onAccuracyChanged(Sensor sensor, int accuracy) [all...] |
/development/samples/RenderScript/Balls/src/com/example/android/rs/balls/ |
Balls.java | 41 import android.hardware.Sensor; 60 //android.util.Log.d("rs", "sensor: " + event.sensor + ", x: " + event.values[0] + ", y: " + event.values[1] + ", z: " + event.values[2]); 62 if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) { 70 public void onAccuracyChanged(Sensor sensor, int accuracy) { 88 mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),
|
/frameworks/base/core/java/android/view/ |
OrientationEventListener.java | 20 import android.hardware.Sensor; 38 private Sensor mSensor; 63 * @param rate at which sensor events are processed (see also 71 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 83 * Enables the OrientationEventListener so it will monitor the sensor and call 139 mOldListener.onSensorChanged(Sensor.TYPE_ACCELEROMETER, event.values); 147 public void onAccuracyChanged(Sensor sensor, int accuracy) { 153 * Returns true if sensor is enabled and false otherwise
|