Home
last modified time | relevance | path

Searched refs:sensor (Results 1 – 25 of 156) sorted by relevance

1234567

/device/google/contexthub/firmware/os/core/
DhostIntf.c535 static void resetBuffer(struct ActiveSensor *sensor) in resetBuffer() argument
537 sensor->discard = true; in resetBuffer()
538 sensor->buffer.length = 0; in resetBuffer()
539 memset(&sensor->buffer.firstSample, 0x00, sizeof(struct SensorFirstSample)); in resetBuffer()
549 struct ActiveSensor *sensor = NULL; in getActiveSensorByType() local
553 sensor = mActiveSensorTable + mSensorList[sensorType - 1]; in getActiveSensorByType()
555 return sensor; in getActiveSensorByType()
562 struct ActiveSensor *sensor; in hostIntfPacketDequeue() local
567 sensor = getActiveSensorByType(buffer->sensType); in hostIntfPacketDequeue()
568 if (sensor) { in hostIntfPacketDequeue()
[all …]
/device/google/trout/hal/sensors/2.1/
DSensorsSubHal.cpp44 using ::sensor::hal::configuration::V1_0::Sensor;
45 using ::sensor::hal::configuration::V1_0::SensorHalConfiguration;
58 auto sensorConfig = ::sensor::hal::configuration::V1_0::read(sensor_config_file.c_str()); in readSensorsConfigFromXml()
74 for (auto sensor : sensor_list) { in getSensorConfiguration() local
75 if ((name.compare(sensor.getName()) == 0) && (type == (SensorType)sensor.getType())) { in getSensorConfiguration()
76 return sensor.getConfiguration(); in getSensorConfiguration()
83 static bool isSensorSupported(iio_device_data* sensor) { in isSensorSupported() argument
92 if (!sensor) return false; in isSensorSupported()
96 [&sensor](const auto& candidate) -> bool { return candidate.name == sensor->name; }); in isSensorSupported()
99 sensor->type = iter->type; in isSensorSupported()
[all …]
/device/google/contexthub/util/nanoapp_cmd/
Dnanoapp_cmd.c97 static int setType(struct ConfigCmd *cmd, char *sensor) in setType() argument
99 if (strcmp(sensor, "accel") == 0) { in setType()
101 } else if (strcmp(sensor, "gyro") == 0) { in setType()
103 } else if (strcmp(sensor, "mag") == 0) { in setType()
105 } else if (strcmp(sensor, "uncal_accel") == 0) { in setType()
107 } else if (strcmp(sensor, "uncal_gyro") == 0) { in setType()
109 } else if (strcmp(sensor, "uncal_mag") == 0) { in setType()
111 } else if (strcmp(sensor, "als") == 0) { in setType()
113 } else if (strcmp(sensor, "prox") == 0) { in setType()
115 } else if (strcmp(sensor, "baro") == 0) { in setType()
[all …]
/device/generic/goldfish/sensors/
Dmultihal_sensors.cpp152 const SensorInfo* sensor = getSensorInfoByHandle(sensorHandle); in activate() local
153 LOG_ALWAYS_FATAL_IF(!sensor); in activate()
154 if (isOnChangeSensor(sensor->flags)) { in activate()
155 doPostSensorEventLocked(*sensor, in activate()
156 activationOnChangeSensorEvent(sensorHandle, *sensor)); in activate()
180 const SensorInfo& sensor) const { in activationOnChangeSensorEvent()
184 switch (sensor.type) { in activationOnChangeSensorEvent()
231 __func__, __LINE__, static_cast<unsigned>(sensor.type)); in activationOnChangeSensorEvent()
236 event.sensorType = sensor.type; in activationOnChangeSensorEvent()
251 const SensorInfo* sensor = getSensorInfoByHandle(sensorHandle); in batch() local
[all …]
/device/google/contexthub/util/nanotool/
Dcontexthub.cpp362 bool ContextHub::CalibrateSingleSensor(const SensorSpec& sensor) { in CalibrateSingleSensor() argument
366 req.config.sensor_type = static_cast<uint8_t>(sensor.sensor_type); in CalibrateSingleSensor()
370 LOGI("Issuing calibration request to sensor %d (%s)", sensor.sensor_type, in CalibrateSingleSensor()
371 ContextHub::SensorTypeToAbbrevName(sensor.sensor_type).c_str()); in CalibrateSingleSensor()
374 LOGE("Failed to calibrate sensor %d", sensor.sensor_type); in CalibrateSingleSensor()
379 auto cal_event_handler = [this, &sensor, &success](const AppToHostEvent &event) -> bool { in CalibrateSingleSensor()
380 if (event.IsCalibrationEventForSensor(sensor.sensor_type)) { in CalibrateSingleSensor()
381 success = HandleCalibrationResult(sensor, event); in CalibrateSingleSensor()
396 bool ContextHub::TestSingleSensor(const SensorSpec& sensor) { in TestSingleSensor() argument
400 req.config.sensor_type = static_cast<uint8_t>(sensor.sensor_type); in TestSingleSensor()
[all …]
/device/google/trout/hal/sensors/2.1/config/api/
Dcurrent.txt2 package sensor.hal.configuration.V1_0 {
14 method public sensor.hal.configuration.V1_0.Location getLocation();
15 method public sensor.hal.configuration.V1_0.Orientation getOrientation();
16 method public void setLocation(sensor.hal.configuration.V1_0.Location);
17 method public void setOrientation(sensor.hal.configuration.V1_0.Orientation);
32 method public java.util.List<sensor.hal.configuration.V1_0.Modules.Module> getModule();
39 method public sensor.hal.configuration.V1_0.Sensors getSensors();
42 method public void setSensors(sensor.hal.configuration.V1_0.Sensors);
48 method public sensor.hal.configuration.V1_0.AxisType getX();
49 method public sensor.hal.configuration.V1_0.AxisType getY();
[all …]
/device/google/contexthub/sensorhal/
Dhubconnection.cpp101 static bool isWakeEvent(int32_t sensor) in isWakeEvent() argument
103 switch (sensor) { in isWakeEvent()
554 …t_t *HubConnection::initEv(sensors_event_t *ev, uint64_t timestamp, uint32_t type, uint32_t sensor) in initEv() argument
560 ev->sensor = sensor; in initEv()
565 ssize_t HubConnection::decrementIfWakeEventLocked(int32_t sensor) in decrementIfWakeEventLocked() argument
567 if (isWakeEvent(sensor)) { in decrementIfWakeEventLocked()
572 __FUNCTION__, sensor, mWakeEventCount); in decrementIfWakeEventLocked()
578 void HubConnection::protectIfWakeEventLocked(int32_t sensor) in protectIfWakeEventLocked() argument
580 if (isWakeEvent(sensor)) { in protectIfWakeEventLocked()
599 void HubConnection::processSample(uint64_t timestamp, uint32_t type, uint32_t sensor, struct OneAxi… in processSample() argument
[all …]
Dsensors.cpp216 if (event->sensor != SENSORS_HANDLE_BASE - 1) { in inject_sensor_data()
266 sensor_t sensor = kSensorList[i]; in setDelay() local
267 if (sensor.handle != handle) { in setDelay()
271 if ((sensor.flags & REPORTING_MODE_MASK) == SENSOR_FLAG_CONTINUOUS_MODE) { in setDelay()
272 if ((delayNs/1000) < sensor.minDelay) { in setDelay()
273 delayNsClamped = sensor.minDelay * 1000; in setDelay()
274 } else if ((delayNs/1000) > sensor.maxDelay) { in setDelay()
275 delayNsClamped = sensor.maxDelay * 1000; in setDelay()
292 sensor_t sensor = kSensorList[i]; in batch() local
293 if (sensor.handle != handle) { in batch()
[all …]
/device/google/cuttlefish/shared/sensors/
Ddevice_vendor.mk21 …e/data/etc/android.hardware.sensor.ambient_temperature.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissio…
22 …native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/an…
23 …native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/an…
24 …ative/data/etc/android.hardware.sensor.hinge_angle.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/a…
25 …s/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/andr…
26 …native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/an…
27 …ve/data/etc/android.hardware.sensor.relative_humidity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permission…
/device/linaro/hikey/
Ddevice-common.mk166 …tive/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/…
167 …e/data/etc/android.hardware.sensor.ambient_temperature.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissio…
168 …native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/an…
169 …/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/and…
170 …native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/an…
171 …ative/data/etc/android.hardware.sensor.hifi_sensors.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/…
172 …s/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/andr…
173 …ve/data/etc/android.hardware.sensor.relative_humidity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permission…
174 …ative/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/a…
175 …ative/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/…
[all …]
/device/google/caimito-sepolicy/ripcurrentpro/
Dfile_contexts32 /dev/lwis-sensor-boitata u:object_r:lwis_device:…
33 /dev/lwis-sensor-boitata-nautilus u:object_r:lwis_device:…
34 /dev/lwis-sensor-dokkaebi u:object_r:lwis_device:…
35 /dev/lwis-sensor-dokkaebi-nautilus u:object_r:lwis_device:…
36 /dev/lwis-sensor-kraken u:object_r:lwis_device:…
37 /dev/lwis-sensor-nagual u:object_r:lwis_device:…
38 /dev/lwis-sensor-oksoko u:object_r:lwis_device:…
39 /dev/lwis-sensor-oksoko-nautilus u:object_r:lwis_device:…
40 /dev/lwis-sensor-sandworm u:object_r:lwis_device:…
41 /dev/lwis-sensor-taotie-front u:object_r:lwis_device:…
[all …]
/device/google/caimito-sepolicy/ripcurrent24/
Dfile_contexts32 /dev/lwis-sensor-boitata u:object_r:lwis_device:…
33 /dev/lwis-sensor-boitata-nautilus u:object_r:lwis_device:…
34 /dev/lwis-sensor-dokkaebi u:object_r:lwis_device:…
35 /dev/lwis-sensor-dokkaebi-nautilus u:object_r:lwis_device:…
36 /dev/lwis-sensor-kraken u:object_r:lwis_device:…
37 /dev/lwis-sensor-nagual u:object_r:lwis_device:…
38 /dev/lwis-sensor-oksoko u:object_r:lwis_device:…
39 /dev/lwis-sensor-oksoko-nautilus u:object_r:lwis_device:…
40 /dev/lwis-sensor-sandworm u:object_r:lwis_device:…
41 /dev/lwis-sensor-taotie-front u:object_r:lwis_device:…
[all …]
/device/amlogic/yukawa/
Ddevice-common.mk306 …tive/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/…
307 …e/data/etc/android.hardware.sensor.ambient_temperature.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissio…
308 …native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/an…
309 …/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/and…
310 …native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/an…
311 …ative/data/etc/android.hardware.sensor.hifi_sensors.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/…
312 …s/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/andr…
313 …ve/data/etc/android.hardware.sensor.relative_humidity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permission…
314 …ative/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/a…
315 …ative/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/…
[all …]
/device/google/coral/
Dthermal-engine-coral-retail_mode.conf4 sensor sdm-therm
14 sensor sdm-therm
24 sensor sdm-therm
44 sensor HOT-SKIN-VIRTUAL
54 sensor sdm-therm
63 sensor sdm-therm
72 sensor sdm-therm
81 sensor sdm-therm
90 sensor sdm-therm
Dthermal-engine-flame-retail_mode.conf4 sensor sdm-therm
14 sensor sdm-therm
24 sensor sdm-therm
44 sensor HOT-SKIN-VIRTUAL
54 sensor sdm-therm
63 sensor sdm-therm
72 sensor sdm-therm
81 sensor sdm-therm
90 sensor sdm-therm
Dthermal-engine-coral-normal_mode.conf4 sensor sdm-therm
14 sensor sdm-therm
24 sensor sdm-therm
44 sensor HOT-SKIN-VIRTUAL
54 sensor sdm-therm
63 sensor sdm-therm
72 sensor sdm-therm
81 sensor sdm-therm
90 sensor sdm-therm
Dthermal-engine-flame-normal_mode.conf4 sensor sdm-therm
14 sensor sdm-therm
24 sensor sdm-therm
44 sensor HOT-SKIN-VIRTUAL
54 sensor sdm-therm
63 sensor sdm-therm
72 sensor sdm-therm
81 sensor sdm-therm
90 sensor sdm-therm
/device/generic/goldfish/data/etc/
Dconfig.ini.foldable35 hw.sensor.hinge = yes
37 hw.sensor.hinge.areas = 884-0-1-2208
38 hw.sensor.hinge.count = 1
40 hw.sensor.hinge.defaults = 180
41 hw.sensor.hinge.ranges = 0-180
43 hw.sensor.hinge.sub_type = 1
45 hw.sensor.hinge.type = 1
47 hw.sensor.hinge_angles_posture_definitions = 0-30, 30-150, 150-180
49 hw.sensor.posture_list = 1,2,3
/device/generic/car/common/
Dcar.mk81 …tive/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/…
82 …native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/an…
83 …ata/etc/android.hardware.sensor.accelerometer_limited_axes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permi…
84 …/data/etc/android.hardware.sensor.gyroscope_limited_axes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permiss…
85 …/android.hardware.sensor.accelerometer_limited_axes_uncalibrated.xml:$(TARGET_COPY_OUT_VENDOR)/etc…
86 …tc/android.hardware.sensor.gyroscope_limited_axes_uncalibrated.xml:$(TARGET_COPY_OUT_VENDOR)/etc/p…
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/
Dinvensense_icm40600.c925 const struct ICM40600Sensor *sensor = (const struct ICM40600Sensor *)data; local
927 if (!sensor->configed)
1017 struct ICM40600Sensor *sensor = &T(sensors[ACC]); local
1028 sensor->offset[i] = 2047;
1030 sensor->offset[i] = -2048;
1032 sensor->offset[i] = values->hw[i];
1042 sensor->offset[0], sensor->offset[1], sensor->offset[2]);
1050 struct ICM40600Sensor *sensor = &T(sensors[GYR]); local
1059 sensor->offset[i] = 2047;
1061 sensor->offset[i] = -2048;
[all …]
/device/generic/car/emulator/
Dcar_emulator_vendor.mk101 …tive/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/…
102 …native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/an…
103 …ata/etc/android.hardware.sensor.accelerometer_limited_axes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permi…
104 …/data/etc/android.hardware.sensor.gyroscope_limited_axes.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permiss…
105 …/android.hardware.sensor.accelerometer_limited_axes_uncalibrated.xml:$(TARGET_COPY_OUT_VENDOR)/etc…
106 …tc/android.hardware.sensor.gyroscope_limited_axes_uncalibrated.xml:$(TARGET_COPY_OUT_VENDOR)/etc/p…
/device/google/contexthub/firmware/os/drivers/st_lsm6dsm/
DREADME42 …0, 0, 1, 0, 0, 0, 1 /* Magnetometer axis orientation [MUST be set if a magn sensor is enabled] */
58 /* Magnetometer sensor (only one per time can be used) */
59 - LSM6DSM_I2C_MASTER_LIS3MDL /* Enable STM LIS3MDL magn sensor */
60 - LSM6DSM_I2C_MASTER_LSM303AGR /* Enable STM LSM303AGR magn sensor */
61 - LSM6DSM_I2C_MASTER_AK09916 /* Enable AKM AK09916 magn sensor */
63 /* Barometer sensor (only one per time can be used) */
64 - LSM6DSM_I2C_MASTER_LPS22HB /* Enable STM LPS22HB pressure sensor */
75 configuration (LSM6DSM_ACCEL_GYRO_ROT_MATRIX), magnetometer sensor different one (LSM6DSM_MAGN_ROT_…
97 > Magnetometer sensor connected through I2C master interface (LIS3MDL, LSM303AGR, AK09916);
99 > Pressure sensor connected through I2C master interface (LPS22HB);
/device/google/gs101/
Ddevice.mk422 …tive/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/…
423 …/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/and…
424 …e/data/etc/android.hardware.sensor.dynamic.head_tracker.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissi…
425 …native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/an…
426 …s/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/andr…
427 …ative/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/a…
428 …ative/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/…
431 …tive/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/…
432 …native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/an…
433 …/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/and…
[all …]
/device/google/gs-common/sensors/sepolicy/
Dhal_sensors_default.te2 # USF sensor HAL SELinux type enforcements.
5 # Allow reading of sensor registry persist files.
11 # Allow creation and writing of sensor registry data files.
16 # Allow creation and writing of sensor debug data files.
32 # Allow sensor HAL to reset AOC.
35 # Allow sensor HAL to read AoC dumpstate.
44 # Allow access to sensor service for sensor_listener.
50 # Allow sensor HAL to access to display sysfs.
/device/google/sunfish/
Dthermal-engine-sunfish.conf4 sensor skin-therm-adc
14 sensor skin-therm-adc
34 sensor HOT-SKIN-VIRTUAL
44 sensor skin-therm-adc
53 sensor skin-therm-adc
62 sensor skin-therm-adc

1234567