Searched refs:Sensor (Results 1 - 25 of 49) sorted by relevance

12

/frameworks/base/core/java/android/hardware/
H A DSensorEventListener2.java29 * @param sensor The {@link android.hardware.Sensor Sensor} on which flush was called.
33 public void onFlushCompleted(Sensor sensor);
H A DSensorEventListener.java48 public void onAccuracyChanged(Sensor sensor, int accuracy);
H A DSensorEvent.java20 * This class represents a {@link android.hardware.Sensor Sensor} event and
52 * @see Sensor
60 * which {@link android.hardware.Sensor sensor} type is being monitored (see
64 * <h4>{@link android.hardware.Sensor#TYPE_ACCELEROMETER
65 * Sensor.TYPE_ACCELEROMETER}:</h4> All values are in SI units (m/s^2)
144 * <h4>{@link android.hardware.Sensor#TYPE_MAGNETIC_FIELD
145 * Sensor.TYPE_MAGNETIC_FIELD}:</h4>
149 * <h4>{@link android.hardware.Sensor#TYPE_GYROSCOPE Sensor
[all...]
H A DTriggerEvent.java21 * associated with a Trigger Sensor. When the sensor detects a trigger
23 * {@link Sensor#TYPE_SIGNIFICANT_MOTION}, the {@link TriggerEventListener}
29 * information regarding the Sensor itself.
33 * @see android.hardware.Sensor
39 * which {@link android.hardware.Sensor sensor} type is being monitored (see
42 * <h4> {@link Sensor#TYPE_SIGNIFICANT_MOTION} </h4>
52 public Sensor sensor;
H A DSystemSensorManager.java34 * Sensor manager implementation that communicates with the built-in
41 private static native int nativeGetNextSensor(Sensor sensor, int next);
45 private static final ArrayList<Sensor> sFullSensorsList = new ArrayList<Sensor>();
46 private static final SparseArray<Sensor> sHandleToSensor = new SparseArray<Sensor>();
69 final ArrayList<Sensor> fullList = sFullSensorsList;
72 Sensor sensor = new Sensor();
88 protected List<Sensor> getFullSensorLis
[all...]
H A DLegacySensorManager.java71 final List<Sensor> fullList = mSensorManager.getFullSensorList();
72 for (Sensor i : fullList) {
74 case Sensor.TYPE_ACCELEROMETER:
77 case Sensor.TYPE_MAGNETIC_FIELD:
80 case Sensor.TYPE_ORIENTATION:
95 Sensor.TYPE_ACCELEROMETER, listener, sensors, rate) || result;
97 Sensor.TYPE_MAGNETIC_FIELD, listener, sensors, rate) || result;
99 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result;
101 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result;
103 Sensor
[all...]
H A DSensor.java31 public final class Sensor { class
79 * {@link android.hardware.Sensor#TYPE_AMBIENT_TEMPERATURE
80 * Sensor.TYPE_AMBIENT_TEMPERATURE} instead.
245 // {@link SensorEvent} or {@link TriggerEvent} for the Sensor
271 static int getReportingMode(Sensor sensor) {
289 static int getMaxLengthValuesArray(Sensor sensor, int sdkLevel) {
293 if (type == Sensor.TYPE_ROTATION_VECTOR &&
325 Sensor() { method in class:Sensor
416 return "{Sensor name=\"" + mName + "\", vendor=\"" + mVendor + "\", version=" + mVersion
/frameworks/native/include/gui/
H A DSensorManager.h41 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;
H A DSensor.h44 class Sensor : public ASensor, public LightFlattenable<Sensor> class in namespace:android
55 Sensor();
56 Sensor(struct sensor_t const* hwSensor, int halVersion = 0);
57 ~Sensor();
H A DISensorServer.h31 class Sensor;
39 virtual Vector<Sensor> getSensorList() = 0;
H A DSensorEventQueue.h44 class Sensor;
69 status_t enableSensor(Sensor const* sensor) const;
70 status_t disableSensor(Sensor const* sensor) const;
71 status_t setEventRate(Sensor const* sensor, nsecs_t ns) const;
/frameworks/native/services/sensorservice/
H A DCorrectedGyroSensor.h23 #include <gui/Sensor.h>
37 Sensor mGyro;
45 virtual Sensor getSensor() const;
H A DGravitySensor.h23 #include <gui/Sensor.h>
37 Sensor mAccelerometer;
45 virtual Sensor getSensor() const;
H A DRotationVectorSensor.h23 #include <gui/Sensor.h>
45 virtual Sensor getSensor() const;
59 virtual Sensor getSensor() const;
H A DLinearAccelerationSensor.h23 #include <gui/Sensor.h>
45 virtual Sensor getSensor() const;
H A DOrientationSensor.h23 #include <gui/Sensor.h>
44 virtual Sensor getSensor() const;
H A DSensorFusion.h27 #include <gui/Sensor.h>
43 Sensor mAcc;
44 Sensor mMag;
45 Sensor mGyro;
H A DSensorInterface.h23 #include <gui/Sensor.h>
55 virtual Sensor getSensor() const = 0;
65 Sensor mSensor;
80 virtual Sensor getSensor() const;
H A DLinearAccelerationSensor.cpp61 Sensor LinearAccelerationSensor::getSensor() const {
62 Sensor gsensor(mGravitySensor.getSensor());
64 hwSensor.name = "Linear Acceleration Sensor";
73 Sensor sensor(&hwSensor);
/frameworks/base/native/android/
H A Dsensor.cpp27 #include <gui/Sensor.h>
34 using android::Sensor;
49 Sensor const* const* l;
89 static_cast<Sensor const*>(sensor));
95 static_cast<Sensor const*>(sensor));
102 static_cast<Sensor const*>(sensor), us2ns(usec));
134 return static_cast<Sensor const*>(sensor)->getName().string();
139 return static_cast<Sensor const*>(sensor)->getVendor().string();
144 return static_cast<Sensor const*>(sensor)->getType();
149 return static_cast<Sensor cons
[all...]
/frameworks/native/libs/gui/
H A DSensor.cpp26 #include <gui/Sensor.h>
32 Sensor::Sensor() function in class:android::Sensor
39 Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion) function in class:android::Sensor
62 Sensor::~Sensor()
66 const String8& Sensor::getName() const {
70 const String8& Sensor::getVendor() const {
74 int32_t Sensor
[all...]
H A DISensorServer.cpp28 #include <gui/Sensor.h>
48 virtual Vector<Sensor> getSensorList()
53 Sensor s;
54 Vector<Sensor> v;
83 Vector<Sensor> v(getSensorList());
/frameworks/native/services/sensorservice/tests/
H A Dsensorservicetest.cpp18 #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);
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
H A DMotionSensor.java22 import android.hardware.Sensor;
37 private Sensor mSensor = null;
56 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION);
68 public final void onAccuracyChanged(Sensor sensor, int accuracy) {
/frameworks/rs/java/tests/Balls/src/com/example/android/rs/balls/
H A DBalls.java41 import android.hardware.Sensor;
62 if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) {
70 public void onAccuracyChanged(Sensor sensor, int accuracy) {
88 mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER),

Completed in 267 milliseconds

12