Home
last modified time | relevance | path

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

123

/frameworks/native/libs/gui/
DSensor.cpp35 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 …]
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()
/frameworks/base/core/java/android/hardware/
DSystemSensorManager.java41 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 …]
DLegacySensorManager.java71 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 …]
DSensorManager.java86 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 …]
DSensor.java31 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/
Dsensor.cpp34 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/
DmissingSinces.txt31 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/
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 LightFlattenable<Sensor>
55 Sensor();
56 Sensor(struct sensor_t const* hwSensor, int halVersion = 0);
57 ~Sensor();
DSensorEventQueue.h44 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/
DSensorService.h73 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;
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()
DSensorFusion.cpp31 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()
DSensorInterface.h55 virtual Sensor getSensor() const = 0;
65 Sensor mSensor;
80 virtual Sensor getSensor() const;
/frameworks/base/docs/html/guide/topics/sensors/
Dsensors_position.jd9 <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 …]
Dsensors_overview.jd17 <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/
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/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/
DMotionSensor.java22 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/
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/rs/java/tests/Balls/src/com/example/android/rs/balls/
DBalls.java41 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/
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()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DMotionSensorWTime.java22 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()

123