Home
last modified time | relevance | path

Searched refs:Sensor (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/base/libs/gui/
DSensor.cpp32 Sensor::Sensor() in Sensor() function in android::Sensor
39 Sensor::Sensor(struct sensor_t const* hwSensor) in Sensor() function in android::Sensor
52 Sensor::~Sensor() in ~Sensor()
56 const String8& Sensor::getName() const { in getName()
60 const String8& Sensor::getVendor() const { in getVendor()
64 int32_t Sensor::getHandle() const { in getHandle()
68 int32_t Sensor::getType() const { in getType()
72 float Sensor::getMinValue() const { in getMinValue()
76 float Sensor::getMaxValue() const { in getMaxValue()
80 float Sensor::getResolution() const { in getResolution()
[all …]
DISensorServer.cpp48 virtual Vector<Sensor> getSensorList() in getSensorList()
53 Sensor s; in getSensorList()
54 Vector<Sensor> v; in getSensorList()
83 Vector<Sensor> v(getSensorList()); in onTransact()
DSensorManager.cpp93 mSensorList = (Sensor const**)malloc(count * sizeof(Sensor*)); in assertStateLocked()
104 ssize_t SensorManager::getSensorList(Sensor const* const** list) const in getSensorList()
115 Sensor const* SensorManager::getDefaultSensor(int type) in getDefaultSensor()
DSensorEventQueue.cpp123 status_t SensorEventQueue::enableSensor(Sensor const* sensor) const { in enableSensor()
127 status_t SensorEventQueue::disableSensor(Sensor const* sensor) const { in disableSensor()
143 status_t SensorEventQueue::setEventRate(Sensor const* sensor, nsecs_t ns) const { in setEventRate()
/frameworks/base/native/android/
Dsensor.cpp34 using android::Sensor;
49 Sensor const* const* l; in ASensorManager_getSensorList()
89 static_cast<Sensor const*>(sensor)); in ASensorEventQueue_enableSensor()
95 static_cast<Sensor const*>(sensor)); in ASensorEventQueue_disableSensor()
102 static_cast<Sensor const*>(sensor), us2ns(usec)); in ASensorEventQueue_setEventRate()
134 return static_cast<Sensor const*>(sensor)->getName().string(); in ASensor_getName()
139 return static_cast<Sensor const*>(sensor)->getVendor().string(); in ASensor_getVendor()
144 return static_cast<Sensor const*>(sensor)->getType(); in ASensor_getType()
149 return static_cast<Sensor const*>(sensor)->getResolution(); in ASensor_getResolution()
154 return static_cast<Sensor const*>(sensor)->getMinDelay(); in ASensor_getMinDelay()
/frameworks/base/core/java/android/hardware/
DSensorManager.java367 private static ArrayList<Sensor> sFullSensorsList = new ArrayList<Sensor>();
368 private static SparseArray<List<Sensor>> sSensorListByType = new SparseArray<List<Sensor>>();
377 static SparseArray<Sensor> sHandleToSensor = new SparseArray<Sensor>();
515 final Sensor sensorObject = sHandleToSensor.get(sensor); in run()
541 private final ArrayList<Sensor> mSensorList = new ArrayList<Sensor>();
547 ListenerDelegate(SensorEventListener listener, Sensor sensor, Handler handler) { in ListenerDelegate()
561 case Sensor.TYPE_MAGNETIC_FIELD: in ListenerDelegate()
562 case Sensor.TYPE_ORIENTATION: in ListenerDelegate()
591 void addSensor(Sensor sensor) { in addSensor()
595 int removeSensor(Sensor sensor) { in removeSensor()
[all …]
DSensor.java29 public class Sensor { class
137 Sensor() { in Sensor() method in Sensor
/frameworks/base/include/gui/
DSensorManager.h41 class Sensor; variable
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;
DSensor.h44 class Sensor : public ASensor, public Flattenable
55 Sensor();
56 Sensor(struct sensor_t const* hwSensor);
57 virtual ~Sensor();
DSensorEventQueue.h44 class Sensor; variable
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;
DISensorServer.h31 class Sensor; variable
39 virtual Vector<Sensor> getSensorList() = 0;
/frameworks/base/core/java/android/webkit/
DDeviceOrientationService.java20 import android.hardware.Sensor;
145 List<Sensor> sensors = getSensorManager().getSensorList(Sensor.TYPE_ACCELEROMETER); in registerForAccelerometerSensor()
155 List<Sensor> sensors = getSensorManager().getSensorList(Sensor.TYPE_MAGNETIC_FIELD); in registerForMagneticFieldSensor()
197 case Sensor.TYPE_ACCELEROMETER: in onSensorChanged()
206 case Sensor.TYPE_MAGNETIC_FIELD: in onSensorChanged()
220 public void onAccuracyChanged(Sensor sensor, int accuracy) { in onAccuracyChanged()
DDeviceMotionService.java20 import android.hardware.Sensor;
138 List<Sensor> sensors = getSensorManager().getSensorList(Sensor.TYPE_ACCELEROMETER); in registerForAccelerometerSensor()
159 assert(event.sensor.getType() == Sensor.TYPE_ACCELEROMETER); in onSensorChanged()
173 public void onAccuracyChanged(Sensor sensor, int accuracy) { in onAccuracyChanged()
/frameworks/base/core/java/android/view/
DOrientationEventListener.java20 import android.hardware.Sensor;
38 private Sensor mSensor;
71 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER); in OrientationEventListener()
139 mOldListener.onSensorChanged(Sensor.TYPE_ACCELEROMETER, event.values); in onSensorChanged()
147 public void onAccuracyChanged(Sensor sensor, int accuracy) { in onAccuracyChanged()
/frameworks/base/services/sensorservice/tests/
Dsensorservicetest.cpp46 if (buffer[i].type == Sensor::TYPE_ACCELEROMETER) { in receiver()
66 Sensor const* const* list; in main()
73 Sensor const* accelerometer = mgr.getDefaultSensor(Sensor::TYPE_ACCELEROMETER); in main()
/frameworks/base/services/sensorservice/
DSensorInterface.h41 virtual Sensor getSensor() const = 0;
50 Sensor mSensor;
62 virtual Sensor getSensor() const;
DSensorFusion.h42 Sensor mAcc;
43 Sensor mMag;
44 Sensor mGyro;
DRotationVectorSensor.cpp63 Sensor RotationVectorSensor::getSensor() const { in getSensor()
74 Sensor sensor(&hwSensor); in getSensor()
112 Sensor GyroDriftSensor::getSensor() const { in getSensor()
123 Sensor sensor(&hwSensor); in getSensor()
DLinearAccelerationSensor.cpp61 Sensor LinearAccelerationSensor::getSensor() const { in getSensor()
62 Sensor gsensor(mGravitySensor.getSensor()); in getSensor()
73 Sensor sensor(&hwSensor); in getSensor()
DGravitySensor.cpp38 mAccelerometer = Sensor(list + i); in GravitySensor()
77 Sensor GravitySensor::getSensor() const { in getSensor()
88 Sensor sensor(&hwSensor); in getSensor()
DCorrectedGyroSensor.cpp38 mGyro = Sensor(list + i); in CorrectedGyroSensor()
69 Sensor CorrectedGyroSensor::getSensor() const { in getSensor()
80 Sensor sensor(&hwSensor); in getSensor()
DGravitySensor.h37 Sensor mAccelerometer;
45 virtual Sensor getSensor() const;
DCorrectedGyroSensor.h37 Sensor mGyro;
45 virtual Sensor getSensor() const;
DRotationVectorSensor.h45 virtual Sensor getSensor() const;
59 virtual Sensor getSensor() const;
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/
DSimpleModelView.java24 import android.hardware.Sensor;
41 private Sensor mRotationVectorSensor;
57 Sensor.TYPE_ROTATION_VECTOR); in SimpleModelView()
174 if (event.sensor.getType() == Sensor.TYPE_ROTATION_VECTOR) { in onSensorChanged()
188 public void onAccuracyChanged(Sensor sensor, int accuracy) { in onAccuracyChanged()

123