Home
last modified time | relevance | path

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

123456

/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.0/
DSensorsSubHal.cpp42 using ::sensor::hal::configuration::V1_0::Sensor;
43 using ::sensor::hal::configuration::V1_0::SensorHalConfiguration;
56 auto sensorConfig = ::sensor::hal::configuration::V1_0::read(sensor_config_file.c_str()); in readSensorsConfigFromXml()
72 for (auto sensor : sensor_list) { in getSensorConfiguration() local
73 if ((name.compare(sensor.getName()) == 0) && (type == (SensorType)sensor.getType())) { in getSensorConfiguration()
74 return sensor.getConfiguration(); in getSensorConfiguration()
81 static bool isSensorSupported(iio_device_data* sensor) { in isSensorSupported() argument
90 if (!sensor) return false; in isSensorSupported()
94 [&sensor](const auto& candidate) -> bool { return candidate.name == sensor->name; }); in isSensorSupported()
97 sensor->type = iter->type; in isSensorSupported()
[all …]
/device/google/trout/hal/sensors/2.0/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/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/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-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-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
/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_2_1() 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/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-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-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-blueline-vr-evt.conf4 sensor quiet-therm-adc
13 sensor quiet-therm-adc
22 sensor quiet-therm-adc
Dthermal-engine-crosshatch-vr-evt.conf4 sensor quiet-therm-adc
13 sensor quiet-therm-adc
22 sensor quiet-therm-adc
Dthermal-engine-blueline-vr-prod.conf4 sensor fps-therm-adc
13 sensor fps-therm-adc
22 sensor fps-therm-adc
Dthermal-engine-crosshatch-vr-prod.conf4 sensor fps-therm-adc
13 sensor fps-therm-adc
22 sensor fps-therm-adc
/device/google/bonito/
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
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
/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/
Dinit.common.nanohub.rc2 mkdir /data/vendor/sensor
3 chown root system /data/vendor/sensor
4 chmod 0770 /data/vendor/sensor
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 …]

123456