/frameworks/base/core/java/android/hardware/ |
H A D | SensorEventListener2.java | 29 * @param sensor The {@link android.hardware.Sensor Sensor} on which flush was called. 33 public void onFlushCompleted(Sensor sensor);
|
H A D | SensorEventListener.java | 48 public void onAccuracyChanged(Sensor sensor, int accuracy);
|
H A D | SensorEvent.java | 20 * 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 D | TriggerEvent.java | 21 * 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 D | SystemSensorManager.java | 34 * 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 D | LegacySensorManager.java | 71 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 D | Sensor.java | 31 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 D | 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;
|
H A D | Sensor.h | 44 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 D | ISensorServer.h | 31 class Sensor; 39 virtual Vector<Sensor> getSensorList() = 0;
|
H A D | SensorEventQueue.h | 44 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 D | CorrectedGyroSensor.h | 23 #include <gui/Sensor.h> 37 Sensor mGyro; 45 virtual Sensor getSensor() const;
|
H A D | GravitySensor.h | 23 #include <gui/Sensor.h> 37 Sensor mAccelerometer; 45 virtual Sensor getSensor() const;
|
H A D | RotationVectorSensor.h | 23 #include <gui/Sensor.h> 45 virtual Sensor getSensor() const; 59 virtual Sensor getSensor() const;
|
H A D | LinearAccelerationSensor.h | 23 #include <gui/Sensor.h> 45 virtual Sensor getSensor() const;
|
H A D | OrientationSensor.h | 23 #include <gui/Sensor.h> 44 virtual Sensor getSensor() const;
|
H A D | SensorFusion.h | 27 #include <gui/Sensor.h> 43 Sensor mAcc; 44 Sensor mMag; 45 Sensor mGyro;
|
H A D | SensorInterface.h | 23 #include <gui/Sensor.h> 55 virtual Sensor getSensor() const = 0; 65 Sensor mSensor; 80 virtual Sensor getSensor() const;
|
H A D | LinearAccelerationSensor.cpp | 61 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 D | sensor.cpp | 27 #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 D | Sensor.cpp | 26 #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 D | 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/native/services/sensorservice/tests/ |
H A D | sensorservicetest.cpp | 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);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
H A D | MotionSensor.java | 22 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 D | Balls.java | 41 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),
|