Home
last modified time | relevance | path

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

12345

/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/taimen/
Dthermal-engine.conf4 sensor bd_therm2
14 sensor bd_therm2
24 sensor bd_therm2
44 sensor HOT-SKIN-VIRTUAL2
54 sensor bd_therm2
63 sensor bd_therm2
72 sensor bd_therm2
81 sensor bd_therm2
90 sensor bd_therm2
99 sensor bd_therm
[all …]
Dthermal-engine-vr.conf4 sensor bd_therm2
12 sensor bd_therm2
22 sensor bd_therm
30 sensor bd_therm
/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/google/muskie/
Dthermal-engine.conf6 sensor back_therm
16 sensor back_therm
26 sensor back_therm
46 sensor HOT-SKIN-VIRTUAL
56 sensor back_therm
65 sensor back_therm
74 sensor back_therm
83 sensor back_therm
92 sensor back_therm
/device/generic/car/common/
Dcar.mk65 …tive/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/…
66 …native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/an…
67 …/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/and…
68 …native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/an…
69 …s/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/andr…
70 …native/data/etc/android.hardware.sensor.proximity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/an…
71 …e/data/etc/android.hardware.sensor.ambient_temperature.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissio…
72 …ve/data/etc/android.hardware.sensor.relative_humidity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permission…
73 …ative/data/etc/android.hardware.sensor.hinge_angle.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/a…
Dconfig.ini11 hw.sensor.hinge=yes
12 hw.sensor.hinge.count=2
13 Hw.sensor.hinge.type=0
14 hw.sensor.hinge.ranges=0-360, 0-180
15 hw.sensor.hinge.defaults=180, 180
/device/google/trout/hal/sensors/2.0/
DSensorsSubHal.cpp98 for (const auto& sensor : mSensors) { in getSensorsList() local
99 SensorInfo sensorInfo = sensor.second->getSensorInfo(); in getSensorsList()
110 for (auto& sensor : mSensors) { in setOperationMode() local
111 sensor.second->setOperationMode(mode); in setOperationMode()
118 auto sensor = mSensors.find(sensorHandle); in activate() local
119 if (sensor != mSensors.end()) { in activate()
120 sensor->second->activate(enabled); in activate()
128 auto sensor = mSensors.find(sensorHandle); in batch() local
129 if (sensor != mSensors.end()) { in batch()
130 sensor->second->batch(samplingPeriodNs); in batch()
[all …]
/device/google/coral/
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-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-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-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
/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/crosshatch/
Dthermal-engine-blueline-novr-evt.conf4 sensor quiet-therm-adc
14 sensor quiet-therm-adc
24 sensor quiet-therm-adc
44 sensor HOT-SKIN-VIRTUAL
54 sensor quiet-therm-adc
63 sensor quiet-therm-adc
72 sensor quiet-therm-adc
81 sensor quiet-therm-adc
Dthermal-engine-blueline-novr-prod.conf4 sensor fps-therm-adc
14 sensor fps-therm-adc
24 sensor fps-therm-adc
44 sensor HOT-SKIN-VIRTUAL
54 sensor fps-therm-adc
63 sensor fps-therm-adc
72 sensor fps-therm-adc
81 sensor fps-therm-adc
Dthermal-engine-crosshatch-novr-prod.conf4 sensor fps-therm-adc
14 sensor fps-therm-adc
24 sensor fps-therm-adc
44 sensor HOT-SKIN-VIRTUAL
54 sensor fps-therm-adc
63 sensor fps-therm-adc
72 sensor fps-therm-adc
81 sensor fps-therm-adc
Dthermal-engine-crosshatch-novr-evt.conf4 sensor quiet-therm-adc
14 sensor quiet-therm-adc
24 sensor quiet-therm-adc
44 sensor HOT-SKIN-VIRTUAL
54 sensor quiet-therm-adc
63 sensor quiet-therm-adc
72 sensor quiet-therm-adc
81 sensor quiet-therm-adc
/device/google/bonito/
Dthermal-engine-bonito.conf4 sensor mb-therm-adc
14 sensor mb-therm-adc
24 sensor mb-therm-adc
33 sensor mb-therm-adc
42 sensor mb-therm-adc
51 sensor mb-therm-adc
Dthermal-engine-sargo.conf4 sensor mb-therm-adc
14 sensor mb-therm-adc
24 sensor mb-therm-adc
33 sensor mb-therm-adc
42 sensor mb-therm-adc
51 sensor mb-therm-adc
/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
/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/linaro/hikey/
Ddevice-common.mk148 …tive/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/…
149 …e/data/etc/android.hardware.sensor.ambient_temperature.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissio…
150 …native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/an…
151 …/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/and…
152 …native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/an…
153 …ative/data/etc/android.hardware.sensor.hifi_sensors.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/…
154 …s/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/andr…
155 …ve/data/etc/android.hardware.sensor.relative_humidity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permission…
156 …ative/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/a…
157 …ative/data/etc/android.hardware.sensor.stepdetector.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/…
[all …]
Dinit.common.nanohub.rc2 mkdir /data/vendor/sensor
3 chown root system /data/vendor/sensor
4 chmod 0770 /data/vendor/sensor
/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);

12345