Home
last modified time | relevance | path

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

1234

/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/goldfish/sensors/
Dmultihal_sensors.cpp138 const SensorInfo* sensor = getSensorInfoByHandle(sensorHandle); in activate() local
139 LOG_ALWAYS_FATAL_IF(!sensor); in activate()
140 if (!(sensor->flags & static_cast<uint32_t>(SensorFlagBits::ON_CHANGE_MODE))) { in activate()
171 const SensorInfo* sensor = getSensorInfoByHandle(sensorHandle); in batch() local
172 LOG_ALWAYS_FATAL_IF(!sensor); in batch()
174 if (samplingPeriodNs < sensor->minDelay) { in batch()
191 const SensorInfo* sensor = getSensorInfoByHandle(sensorHandle); in flush() local
192 LOG_ALWAYS_FATAL_IF(!sensor); in flush()
204 doPostSensorEventLocked(*sensor, event); in flush()
220 const SensorInfo* sensor = getSensorInfoByHandle(event.sensorHandle); in injectSensorData() 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/coral/
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-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/google/crosshatch/
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
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-vr-evt.conf4 sensor quiet-therm-adc
13 sensor quiet-therm-adc
22 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/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.mk151 …tive/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/…
152 …e/data/etc/android.hardware.sensor.ambient_temperature.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissio…
153 …native/data/etc/android.hardware.sensor.barometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/an…
154 …/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/and…
155 …native/data/etc/android.hardware.sensor.gyroscope.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/an…
156 …ative/data/etc/android.hardware.sensor.hifi_sensors.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/…
157 …s/native/data/etc/android.hardware.sensor.light.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/andr…
158 …ve/data/etc/android.hardware.sensor.relative_humidity.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permission…
159 …ative/data/etc/android.hardware.sensor.stepcounter.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/a…
160 …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);
/device/generic/armv7-a-neon/
Dmini_common.mk74 …rameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.har…
75 …rameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.har…
76 …frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardwa…
/device/google/cuttlefish/shared/tv/
Ddevice.mk29 …tive/data/etc/android.hardware.sensor.accelerometer.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/…
30 …/native/data/etc/android.hardware.sensor.compass.xml:$(TARGET_COPY_OUT_VENDOR)/etc/permissions/and…

1234