Home
last modified time | relevance | path

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

/system/chre/core/
Dsensor.cc23 Mutex Sensor::mSamplingStatusMutex;
25 Sensor::Sensor(Sensor &&other) in Sensor() function in chre::Sensor
30 Sensor &Sensor::operator=(Sensor &&other) { in operator =()
50 Sensor::~Sensor() { in ~Sensor()
58 void Sensor::init() { in init()
69 void Sensor::populateSensorInfo(struct chreSensorInfo *info, in populateSensorInfo()
86 void Sensor::clearPendingFlushRequest() { in clearPendingFlushRequest()
91 void Sensor::cancelPendingFlushRequestTimer() { in cancelPendingFlushRequestTimer()
99 void Sensor::setLastEvent(ChreSensorData *event) { in setLastEvent()
110 bool Sensor::getSamplingStatus(struct chreSensorSamplingStatus *status) const { in getSamplingStatus()
[all …]
Dsensor_request_manager.cc31 bool isSensorRequestValid(const Sensor &sensor, in isSensorRequestValid()
62 Sensor *sensor = in updateLastEvent()
172 Sensor &sensor = mSensors[sensorHandle]; in setSensorRequest()
294 Sensor &sensor = mSensors[sensorHandle]; in removeAllRequests()
314 Sensor *SensorRequestManager::getSensor(uint32_t sensorHandle) { in getSensor()
315 Sensor *sensorPtr = nullptr; in getSensor()
355 Sensor &sensor = mSensors[sensorHandle]; in configureBiasEvents()
475 Sensor &sensor = mSensors[sensorHandle]; in handleSensorDataEvent()
501 Sensor *sensor = in handleSamplingStatusUpdate()
529 Sensor *sensor = in handleBiasEvent()
[all …]
/system/chre/platform/include/chre/platform/
Dplatform_sensor_manager.h60 DynamicVector<Sensor> getSensors();
85 bool configureSensor(Sensor &sensor, const SensorRequest &request);
109 bool configureBiasEvents(const Sensor &sensor, bool enable,
124 bool getThreeAxisBias(const Sensor &sensor,
140 bool flush(const Sensor &sensor, uint32_t *flushRequestId);
/system/chre/core/include/chre/core/
Dsensor.h38 class Sensor : public PlatformSensor {
47 Sensor() : mFlushRequestPending(false) {} in Sensor() function
49 Sensor(Sensor &&other);
50 Sensor &operator=(Sensor &&other);
52 ~Sensor();
Dsensor_request_manager.h139 Sensor *getSensor(uint32_t sensorHandle);
324 DynamicVector<Sensor> mSensors;
353 bool doMakeFlushRequest(Sensor &sensor);
363 bool removeAllRequests(Sensor &sensor);
376 bool removeRequest(Sensor &sensor, size_t removeIndex, bool *requestChanged);
388 bool addRequest(Sensor &sensor, const SensorRequest &request,
404 bool updateRequest(Sensor &sensor, size_t updateIndex,
490 bool configurePlatformSensor(Sensor &sensor,
/system/chre/java/test/cross_validation/src/com/google/android/chre/test/crossvalidator/
DChreCrossValidatorSensor.java19 import android.hardware.Sensor;
86 private Sensor mSensor;
265 if (mSensor.getType() == Sensor.REPORTING_MODE_CONTINUOUS) { in getAwaitDataTimeoutInMs()
273 public void onAccuracyChanged(Sensor sensor, int accuracy) {} in onAccuracyChanged()
326 map.put(Sensor.TYPE_ACCELEROMETER, new CrossValidatorSensorConfig(3, 0.01f)); in makeSensorTypeToInfoMap()
327 map.put(Sensor.TYPE_GYROSCOPE, new CrossValidatorSensorConfig(3, 0.01f)); in makeSensorTypeToInfoMap()
328 map.put(Sensor.TYPE_MAGNETIC_FIELD, new CrossValidatorSensorConfig(3, 0.05f)); in makeSensorTypeToInfoMap()
329 map.put(Sensor.TYPE_PRESSURE, new CrossValidatorSensorConfig(1, 0.01f)); in makeSensorTypeToInfoMap()
330 map.put(Sensor.TYPE_LIGHT, new CrossValidatorSensorConfig(1, 0.07f)); in makeSensorTypeToInfoMap()
331 map.put(Sensor.TYPE_PROXIMITY, new CrossValidatorSensorConfig(1, 0.01f)); in makeSensorTypeToInfoMap()
[all …]
DApSensorDatapoint.java18 import android.hardware.Sensor;
24 public Sensor sensor;
/system/chre/platform/shared/
Dplatform_sensor_manager.cc57 DynamicVector<Sensor> PlatformSensorManager::getSensors() { in getSensors()
58 DynamicVector<Sensor> sensors; in getSensors()
69 sensors.push_back(Sensor()); in getSensors()
83 bool PlatformSensorManager::configureSensor(Sensor &sensor, in configureSensor()
96 bool PlatformSensorManager::configureBiasEvents(const Sensor &sensor, in configureBiasEvents()
108 const Sensor &sensor, struct chreSensorThreeAxisData *bias) const { in getThreeAxisBias()
116 bool PlatformSensorManager::flush(const Sensor &sensor, in flush()
/system/chre/platform/slpi/see/include/chre/target_platform/
Dplatform_sensor_manager_base.h42 SeeHelper &getSeeHelperForSensor(const Sensor &sensor);
44 const SeeHelper &getSeeHelperForSensor(const Sensor &sensor) const { in getSeeHelperForSensor()
58 void getBigImageSensors(DynamicVector<Sensor> *sensors);
/system/chre/platform/slpi/see/
Dplatform_sensor_manager.cc87 bool isBigImageSensor(const Sensor &sensor) { in isBigImageSensor()
246 Sensor *sensor = getSensorRequestManager().getSensor(sensorHandle); in mergeUpdatedStatus()
324 const SeeAttributes &attr, DynamicVector<Sensor> *sensors) { in addSensor()
471 DynamicVector<Sensor> *sensors) { in findAndAddSensorsForType()
546 Sensor *sensor, uint32_t sensorHandle, in findAndAddSensorsForType()
607 const Sensor &sensor) { in getSeeHelperForSensor()
621 DynamicVector<Sensor> *sensors) { in getBigImageSensors()
654 DynamicVector<Sensor> PlatformSensorManager::getSensors() { in getSensors()
655 DynamicVector<Sensor> sensors; in getSensors()
710 bool PlatformSensorManager::configureSensor(Sensor &sensor, in configureSensor()
[all …]
/system/chre/apps/test/common/proto/
Dchre_cross_validation_sensor.proto38 * apSensorType values defined in Sensor class of
39 * android/frameworks/base/core/java/android/hardware/Sensor.java