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

123

/frameworks/base/core/java/android/hardware/
H A DSensorEventListener2.java33 * @param sensor The {@link android.hardware.Sensor Sensor} on which flush was called.
36 public void onFlushCompleted(Sensor sensor);
H A DSensorEventListener.java50 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 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 DSensorManager.java31 * 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 DSystemSensorManager.java37 * 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 DSensorPowerCalculator.java18 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 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>
42 Sensor mAcc;
43 Sensor mMag;
44 Sensor mGyro;
H A DSensorInterface.h23 #include <gui/Sensor.h>
55 virtual Sensor getSensor() const = 0;
65 Sensor mSensor;
80 virtual Sensor getSensor() const;
/frameworks/base/native/android/
H A Dsensor.cpp27 #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 DSensorManager.h46 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 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;
40 virtual Vector<Sensor> getSensorList(const String16& opPackageName) = 0;
H A DSensorEventQueue.h45 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 DSensor.cpp31 #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 Dsensorservicetest.cpp19 #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 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),
/frameworks/base/services/core/java/com/android/server/policy/
H A DWakeGestureListener.java21 import android.hardware.Sensor;
40 private Sensor mSensor;
46 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_WAKE_GESTURE);

Completed in 1618 milliseconds

123