/frameworks/base/libs/gui/ |
D | Sensor.cpp | 32 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 …]
|
D | ISensorServer.cpp | 48 virtual Vector<Sensor> getSensorList() in getSensorList() 53 Sensor s; in getSensorList() 54 Vector<Sensor> v; in getSensorList() 83 Vector<Sensor> v(getSensorList()); in onTransact()
|
D | SensorManager.cpp | 93 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()
|
D | SensorEventQueue.cpp | 123 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/ |
D | sensor.cpp | 34 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/ |
D | SensorManager.java | 367 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 …]
|
D | Sensor.java | 29 public class Sensor { class 137 Sensor() { in Sensor() method in Sensor
|
/frameworks/base/include/gui/ |
D | SensorManager.h | 41 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;
|
D | Sensor.h | 44 class Sensor : public ASensor, public Flattenable 55 Sensor(); 56 Sensor(struct sensor_t const* hwSensor); 57 virtual ~Sensor();
|
D | SensorEventQueue.h | 44 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;
|
D | ISensorServer.h | 31 class Sensor; variable 39 virtual Vector<Sensor> getSensorList() = 0;
|
/frameworks/base/core/java/android/webkit/ |
D | DeviceOrientationService.java | 20 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()
|
D | DeviceMotionService.java | 20 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/ |
D | OrientationEventListener.java | 20 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/ |
D | sensorservicetest.cpp | 46 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/ |
D | SensorInterface.h | 41 virtual Sensor getSensor() const = 0; 50 Sensor mSensor; 62 virtual Sensor getSensor() const;
|
D | SensorFusion.h | 42 Sensor mAcc; 43 Sensor mMag; 44 Sensor mGyro;
|
D | RotationVectorSensor.cpp | 63 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()
|
D | LinearAccelerationSensor.cpp | 61 Sensor LinearAccelerationSensor::getSensor() const { in getSensor() 62 Sensor gsensor(mGravitySensor.getSensor()); in getSensor() 73 Sensor sensor(&hwSensor); in getSensor()
|
D | GravitySensor.cpp | 38 mAccelerometer = Sensor(list + i); in GravitySensor() 77 Sensor GravitySensor::getSensor() const { in getSensor() 88 Sensor sensor(&hwSensor); in getSensor()
|
D | CorrectedGyroSensor.cpp | 38 mGyro = Sensor(list + i); in CorrectedGyroSensor() 69 Sensor CorrectedGyroSensor::getSensor() const { in getSensor() 80 Sensor sensor(&hwSensor); in getSensor()
|
D | GravitySensor.h | 37 Sensor mAccelerometer; 45 virtual Sensor getSensor() const;
|
D | CorrectedGyroSensor.h | 37 Sensor mGyro; 45 virtual Sensor getSensor() const;
|
D | RotationVectorSensor.h | 45 virtual Sensor getSensor() const; 59 virtual Sensor getSensor() const;
|
/frameworks/base/tests/RenderScriptTests/ModelViewer/src/com/android/modelviewer/ |
D | SimpleModelView.java | 24 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()
|