/frameworks/native/libs/gui/ |
D | Sensor.cpp | 35 Sensor::Sensor() in Sensor() function in android::Sensor 43 Sensor::Sensor(struct sensor_t const* hwSensor, int halVersion) in Sensor() function in android::Sensor 250 Sensor::~Sensor() in ~Sensor() 254 const String8& Sensor::getName() const { in getName() 258 const String8& Sensor::getVendor() const { in getVendor() 262 int32_t Sensor::getHandle() const { in getHandle() 266 int32_t Sensor::getType() const { in getType() 270 float Sensor::getMinValue() const { in getMinValue() 274 float Sensor::getMaxValue() const { in getMaxValue() 278 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()
|
/frameworks/base/core/java/android/hardware/ |
D | SystemSensorManager.java | 41 private static native int nativeGetNextSensor(Sensor sensor, int next); in nativeGetNextSensor() 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; in SystemSensorManager() 72 Sensor sensor = new Sensor(); in SystemSensorManager() 88 protected List<Sensor> getFullSensorList() { in getFullSensorList() 95 protected boolean registerListenerImpl(SensorEventListener listener, Sensor sensor, in registerListenerImpl() 102 if (sensor.getReportingMode() == Sensor.REPORTING_MODE_ONE_SHOT) { in registerListenerImpl() 134 protected void unregisterListenerImpl(SensorEventListener listener, Sensor sensor) { in unregisterListenerImpl() 136 if (sensor != null && sensor.getReportingMode() == Sensor.REPORTING_MODE_ONE_SHOT) { in unregisterListenerImpl() [all …]
|
D | LegacySensorManager.java | 71 final List<Sensor> fullList = mSensorManager.getFullSensorList(); in getSensors() 72 for (Sensor i : fullList) { in getSensors() 74 case Sensor.TYPE_ACCELEROMETER: in getSensors() 77 case Sensor.TYPE_MAGNETIC_FIELD: in getSensors() 80 case Sensor.TYPE_ORIENTATION: in getSensors() 95 Sensor.TYPE_ACCELEROMETER, listener, sensors, rate) || result; in registerListener() 97 Sensor.TYPE_MAGNETIC_FIELD, listener, sensors, rate) || result; in registerListener() 99 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result; in registerListener() 101 Sensor.TYPE_ORIENTATION, listener, sensors, rate) || result; in registerListener() 103 Sensor.TYPE_TEMPERATURE, listener, sensors, rate) || result; in registerListener() [all …]
|
D | SensorManager.java | 86 private final SparseArray<List<Sensor>> mSensorListByType = 87 new SparseArray<List<Sensor>>(); 375 protected abstract List<Sensor> getFullSensorList(); in getFullSensorList() 407 public List<Sensor> getSensorList(int type) { in getSensorList() 409 List<Sensor> list; in getSensorList() 410 final List<Sensor> fullList = getFullSensorList(); in getSensorList() 414 if (type == Sensor.TYPE_ALL) { in getSensorList() 417 list = new ArrayList<Sensor>(); in getSensorList() 418 for (Sensor i : fullList) { in getSensorList() 445 public Sensor getDefaultSensor(int type) { in getDefaultSensor() [all …]
|
D | Sensor.java | 31 public final class Sensor { class 610 static int getMaxLengthValuesArray(Sensor sensor, int sdkLevel) { in getMaxLengthValuesArray() 613 if (sensor.mType == Sensor.TYPE_ROTATION_VECTOR && in getMaxLengthValuesArray() 649 Sensor() { in Sensor() method in Sensor
|
/frameworks/base/native/android/ |
D | sensor.cpp | 34 using android::Sensor; 49 Sensor const* const* l; in ASensorManager_getSensorList() 64 Sensor const* const* sensorList; in ASensorManager_getDefaultSensorEx() 102 static_cast<Sensor const*>(sensor)); in ASensorEventQueue_enableSensor() 108 static_cast<Sensor const*>(sensor)); in ASensorEventQueue_disableSensor() 115 static_cast<Sensor const*>(sensor), us2ns(usec)); in ASensorEventQueue_setEventRate() 150 return static_cast<Sensor const*>(sensor)->getName().string(); in ASensor_getName() 155 return static_cast<Sensor const*>(sensor)->getVendor().string(); in ASensor_getVendor() 160 return static_cast<Sensor const*>(sensor)->getType(); in ASensor_getType() 165 return static_cast<Sensor const*>(sensor)->getResolution(); in ASensor_getResolution() [all …]
|
/frameworks/base/docs/html/sdk/api_diff/20/ |
D | missingSinces.txt | 31 NO DOC BLOCK: android.hardware.Sensor Method getStringType() 63 NO DOC BLOCK: android.hardware.Sensor Field STRING_TYPE_ACCELEROMETER 64 NO DOC BLOCK: android.hardware.Sensor Field STRING_TYPE_AMBIENT_TEMPERATURE 65 NO DOC BLOCK: android.hardware.Sensor Field STRING_TYPE_GAME_ROTATION_VECTOR 66 NO DOC BLOCK: android.hardware.Sensor Field STRING_TYPE_GEOMAGNETIC_ROTATION_VECTOR 67 NO DOC BLOCK: android.hardware.Sensor Field STRING_TYPE_GRAVITY 68 NO DOC BLOCK: android.hardware.Sensor Field STRING_TYPE_GYROSCOPE 69 NO DOC BLOCK: android.hardware.Sensor Field STRING_TYPE_GYROSCOPE_UNCALIBRATED 70 NO DOC BLOCK: android.hardware.Sensor Field STRING_TYPE_HEART_RATE 71 NO DOC BLOCK: android.hardware.Sensor Field STRING_TYPE_LIGHT [all …]
|
/frameworks/native/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 LightFlattenable<Sensor> 55 Sensor(); 56 Sensor(struct sensor_t const* hwSensor, int halVersion = 0); 57 ~Sensor();
|
D | SensorEventQueue.h | 44 class Sensor; variable 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/ |
D | SensorService.h | 73 virtual Vector<Sensor> getSensorList(); 215 Sensor getSensorFromHandle(int handle) const; 219 Sensor registerSensor(SensorInterface* sensor); 220 Sensor registerVirtualSensor(SensorInterface* sensor); 227 static bool canAccessSensor(const Sensor& sensor); 228 static bool verifyCanAccessSensor(const Sensor& sensor, const char* operation); 258 Vector<Sensor> mSensorList; 259 Vector<Sensor> mUserSensorListDebug; 260 Vector<Sensor> mUserSensorList;
|
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 | SensorFusion.cpp | 31 Sensor uncalibratedGyro; in ANDROID_SINGLETON_STATIC_INSTANCE() 36 mAcc = Sensor(list + i); in ANDROID_SINGLETON_STATIC_INSTANCE() 39 mMag = Sensor(list + i); in ANDROID_SINGLETON_STATIC_INSTANCE() 42 mGyro = Sensor(list + i); in ANDROID_SINGLETON_STATIC_INSTANCE() 45 uncalibratedGyro = Sensor(list + i); in ANDROID_SINGLETON_STATIC_INSTANCE()
|
D | SensorInterface.h | 55 virtual Sensor getSensor() const = 0; 65 Sensor mSensor; 80 virtual Sensor getSensor() const;
|
/frameworks/base/docs/html/guide/topics/sensors/ |
D | sensors_position.jd | 9 <li><a href="#sensors-pos-gamerot">Using the Game Rotation Vector Sensor</a></li> 10 <li><a href="#sensors-pos-geomrot">Using the Geomagnetic Rotation Vector Sensor</a></li> 11 <li><a href="#sensors-pos-orient">Using the Orientation Sensor</a></li> 12 <li><a href="#sensors-pos-mag">Using the Geomagnetic Field Sensor</a></li> 13 <li><a href="#sensors-pos-prox">Using the Proximity Sensor</a></li> 17 <li>{@link android.hardware.Sensor}</li> 74 href="{@docRoot}guide/topics/sensors/sensors_overview.html#sensors-coords">Sensor Coordinate 82 <th scope="col" style="white-space:nowrap">Sensor</th> 83 <th scope="col" style="white-space:nowrap">Sensor event data</th> 88 <td rowspan="3">{@link android.hardware.Sensor#TYPE_GAME_ROTATION_VECTOR}</td> [all …]
|
D | sensors_overview.jd | 17 <li><a href="#sensors-identify">Identifying Sensors and Sensor Capabilities</a></li> 18 <li><a href="#sensors-monitor">Monitoring Sensor Events</a></li> 19 <li><a href="#sensors-configs">Handling Different Sensor Configurations</a></li> 20 <li><a href="#sensors-coords">Sensor Coordinate System</a></li> 25 <li>{@link android.hardware.Sensor}</li> 116 <strong>Table 1.</strong> Sensor types supported by the Android platform.</p> 119 <th scope="col" style="white-space:nowrap">Sensor</th> 125 <td>{@link android.hardware.Sensor#TYPE_ACCELEROMETER}</td> 132 <td>{@link android.hardware.Sensor#TYPE_AMBIENT_TEMPERATURE}</td> 137 <td>{@link android.hardware.Sensor#TYPE_GRAVITY}</td> [all …]
|
/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/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/ |
D | MotionSensor.java | 22 import android.hardware.Sensor; 37 private Sensor mSensor = null; 56 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); in onPrepare() 68 public final void onAccuracyChanged(Sensor sensor, int accuracy) { in onAccuracyChanged()
|
/frameworks/native/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/rs/java/tests/Balls/src/com/example/android/rs/balls/ |
D | Balls.java | 41 import android.hardware.Sensor; 62 if (event.sensor.getType() == Sensor.TYPE_ACCELEROMETER) { in onSensorChanged() 70 public void onAccuracyChanged(Sensor sensor, int accuracy) { in onAccuracyChanged() 88 mSensorManager.getDefaultSensor(Sensor.TYPE_ACCELEROMETER), in onResume()
|
/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()
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/ |
D | MotionSensorWTime.java | 22 import android.hardware.Sensor; 39 private Sensor mSensor = null; 62 mSensor = mSensorManager.getDefaultSensor(Sensor.TYPE_LINEAR_ACCELERATION); in onPrepare() 74 public final void onAccuracyChanged(Sensor sensor, int accuracy) { in onAccuracyChanged()
|