/frameworks/base/core/java/android/hardware/ |
H A D | SensorEventListener2.java | 33 * @param sensor The {@link android.hardware.Sensor Sensor} on which flush was called. 36 public void onFlushCompleted(Sensor sensor);
|
H A D | SensorEventListener.java | 50 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 | 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 | SensorManager.java | 31 * SensorManager lets you access the device's {@link android.hardware.Sensor 44 * Note: Don't use this mechanism with a Trigger Sensor, have a look 45 * at {@link TriggerEventListener}. {@link Sensor#TYPE_SIGNIFICANT_MOTION} 51 * private final Sensor mAccelerometer; 55 * mAccelerometer = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); 68 * public void onAccuracyChanged(Sensor sensor, int accuracy) { 78 * @see Sensor 88 private final SparseArray<List<Sensor>> mSensorListByType = 89 new SparseArray<List<Sensor>>(); 100 * @deprecated use {@link android.hardware.Sensor Senso [all...] |
H A D | SystemSensorManager.java | 37 * Sensor manager implementation that communicates with the built-in 46 Sensor sensor, int index); 54 private final ArrayList<Sensor> mFullSensorsList = new ArrayList<>(); 55 private final SparseArray<Sensor> mHandleToSensor = new SparseArray<>(); 84 Sensor sensor = new Sensor(); 95 protected List<Sensor> getFullSensorList() { 102 protected boolean registerListenerImpl(SensorEventListener listener, Sensor sensor, 109 if (sensor.getReportingMode() == Sensor.REPORTING_MODE_ONE_SHOT) { 144 protected void unregisterListenerImpl(SensorEventListener listener, Sensor senso [all...] |
/frameworks/base/core/java/com/android/internal/os/ |
H A D | SensorPowerCalculator.java | 18 import android.hardware.Sensor; 26 private final List<Sensor> mSensors; 30 mSensors = sensorManager.getSensorList(Sensor.TYPE_ALL); 37 // Process Sensor usage 38 final SparseArray<? extends BatteryStats.Uid.Sensor> sensorStats = u.getSensorStats(); 41 final BatteryStats.Uid.Sensor sensor = sensorStats.valueAt(ise); 46 case BatteryStats.Uid.Sensor.GPS: 53 final Sensor s = mSensors.get(i);
|
/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> 42 Sensor mAcc; 43 Sensor mMag; 44 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;
|
/frameworks/base/native/android/ |
H A D | sensor.cpp | 27 #include <gui/Sensor.h> 34 using android::Sensor; 58 Sensor const* const* l; 73 Sensor const* const* sensorList; 111 static_cast<Sensor const*>(sensor)); 117 static_cast<Sensor const*>(sensor)); 124 static_cast<Sensor const*>(sensor), us2ns(usec)); 159 return static_cast<Sensor const*>(sensor)->getName().string(); 164 return static_cast<Sensor const*>(sensor)->getVendor().string(); 169 return static_cast<Sensor cons [all...] |
/frameworks/native/include/gui/ |
H A D | SensorManager.h | 46 class Sensor; 57 ssize_t getSensorList(Sensor const* const** list) const; 58 Sensor const* getDefaultSensor(int type); 75 mutable Sensor const** mSensorList; 76 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; 40 virtual Vector<Sensor> getSensorList(const String16& opPackageName) = 0;
|
H A D | SensorEventQueue.h | 45 class Sensor; 70 status_t enableSensor(Sensor const* sensor) const; 71 status_t disableSensor(Sensor const* sensor) const; 72 status_t setEventRate(Sensor const* sensor, nsecs_t ns) const;
|
/frameworks/native/libs/gui/ |
H A D | Sensor.cpp | 31 #include <gui/Sensor.h> 38 Sensor::Sensor() function in class:android::Sensor 46 Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion) function in class:android::Sensor 74 ALOGE("Sensor maxDelay overflow error %s %" PRId64, mName.string(), 282 Sensor::~Sensor() 286 const String8& Sensor::getName() const { 290 const String8& Sensor [all...] |
/frameworks/native/services/sensorservice/tests/ |
H A D | sensorservicetest.cpp | 19 #include <gui/Sensor.h> 47 if (buffer[i].type == Sensor::TYPE_ACCELEROMETER) { 65 SensorManager mgr(String16("Sensor Service Test")); 67 Sensor const* const* list; 74 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),
|
/frameworks/base/services/core/java/com/android/server/policy/ |
H A D | WakeGestureListener.java | 21 import android.hardware.Sensor; 40 private Sensor mSensor; 46 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_WAKE_GESTURE);
|