/device/google/contexthub/firmware/os/drivers/st_lsm6dsm/ |
D | st_lsm6dsm.c | 607 struct LSM6DSMSensor sensors[NUM_SENSORS]; member 1192 if (minRate < T(sensors[ACCEL]).rate) in lsm6dsm_getAccelHwMinOdr() 1193 minRate = T(sensors[ACCEL]).rate; in lsm6dsm_getAccelHwMinOdr() 1204 if (minRate < T(sensors[GYRO].rate)) in lsm6dsm_getAccelHwMinOdr() 1205 minRate = T(sensors[GYRO].rate); in lsm6dsm_getAccelHwMinOdr() 1211 if (minRate < T(sensors[MAGN].rate)) in lsm6dsm_getAccelHwMinOdr() 1212 minRate = T(sensors[MAGN].rate); in lsm6dsm_getAccelHwMinOdr() 1218 if (minRate < T(sensors[PRESS].rate)) in lsm6dsm_getAccelHwMinOdr() 1219 minRate = T(sensors[PRESS].rate); in lsm6dsm_getAccelHwMinOdr() 1223 if (minRate < T(sensors[TEMP].rate)) in lsm6dsm_getAccelHwMinOdr() [all …]
|
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/ |
D | bosch_bmi160.c | 429 struct BMI160Sensor sensors[NUM_OF_SENSOR]; member 880 if (mTask.sensors[STEPCNT].powered && mTask.step_cnt_changed) { 889 sensorSignalInternalEvt(mTask.sensors[ACC].handle, 896 sensorSignalInternalEvt(mTask.sensors[GYR].handle, 904 sensorSignalInternalEvt(mTask.sensors[MAG].handle, 912 sensorSignalInternalEvt(mTask.sensors[STEP].handle, 919 sensorSignalInternalEvt(mTask.sensors[DTAP].handle, 926 sensorSignalInternalEvt(mTask.sensors[NOMO].handle, 933 sensorSignalInternalEvt(mTask.sensors[ANYMO].handle, 940 sensorSignalInternalEvt(mTask.sensors[FLAT].handle, [all …]
|
/device/google/contexthub/util/nanotool/ |
D | nanotool.cpp | 55 std::vector<SensorSpec> sensors; member 162 if (!args->sensors.size() in ValidateArgs() 182 for (unsigned int i = 0; i < args->sensors.size(); i++) { in ValidateArgs() 183 if (args->sensors[i].special_rate == SensorSpecialRate::None in ValidateArgs() 184 && args->sensors[i].rate_hz < 0) { in ValidateArgs() 188 args->sensors[i].sensor_type).c_str()); in ValidateArgs() 195 for (unsigned int i = 0; i < args->sensors.size(); i++) { in ValidateArgs() 196 if (!args->sensors[i].have_cal_ref in ValidateArgs() 197 && (args->sensors[i].sensor_type == SensorType::Barometer in ValidateArgs() 198 || args->sensors[i].sensor_type == in ValidateArgs() [all …]
|
D | contexthub.h | 133 bool CalibrateSensors(const std::vector<SensorSpec>& sensors); 138 bool TestSensors(const std::vector<SensorSpec>& sensors); 144 bool EnableSensors(const std::vector<SensorSpec>& sensors); 152 bool DisableSensors(const std::vector<SensorSpec>& sensors); 189 void PrintSensorEvents(const std::vector<SensorSpec>& sensors, 212 bool ForEachSensor(const std::vector<SensorSpec>& sensors,
|
D | contexthub.cpp | 167 bool ContextHub::CalibrateSensors(const std::vector<SensorSpec>& sensors) { in CalibrateSensors() argument 168 bool success = ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in CalibrateSensors() 178 bool ContextHub::TestSensors(const std::vector<SensorSpec>& sensors) { in TestSensors() argument 179 bool success = ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in TestSensors() 214 bool ContextHub::EnableSensors(const std::vector<SensorSpec>& sensors) { in EnableSensors() argument 215 return ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in EnableSensors() 241 bool ContextHub::DisableSensors(const std::vector<SensorSpec>& sensors) { in DisableSensors() argument 242 return ForEachSensor(sensors, [this](const SensorSpec &spec) -> bool { in DisableSensors() 341 void ContextHub::PrintSensorEvents(const std::vector<SensorSpec>& sensors, int limit) { in PrintSensorEvents() argument 343 auto event_printer = [&sensors, &limit, continuous](const SensorEvent& event) -> bool { in PrintSensorEvents() [all …]
|
/device/google/contexthub/firmware/os/drivers/orientation/ |
D | orientation.c | 116 struct FusionSensor sensors[NUM_OF_FUSION_SENSOR]; member 353 if (mTask.sensors[GAME].active) { in updateOutput() 355 if (!addSample(&mTask.sensors[GAME], in updateOutput() 364 if (mTask.sensors[GRAVITY].active) { in updateOutput() 369 if (!addSample(&mTask.sensors[GRAVITY], in updateOutput() 379 && mTask.sensors[LINEAR].active) { in updateOutput() 390 if (!addSample(&mTask.sensors[LINEAR], in updateOutput() 403 if (mTask.sensors[ORIENT].active) { in updateOutput() 414 if (!addSample(&mTask.sensors[ORIENT], in updateOutput() 423 if (mTask.sensors[GEOMAG].active) { in updateOutput() [all …]
|
/device/google/atv/ |
D | config.ini | 15 hw.sensors.proximity=no 16 hw.sensors.magnetic_field=no 17 hw.sensors.orientation=no 18 hw.sensors.temperature=no
|
/device/generic/goldfish/sensors/ |
D | Android.mk | 27 LOCAL_MODULE := sensors.vbox_x86 29 LOCAL_MODULE := sensors.goldfish 41 LOCAL_MODULE := sensors.ranchu
|
D | sensors_qemu.c | 138 sensors_event_t sensors[MAX_NUM_SENSORS]; member 220 *event = d->sensors[i]; in sensor_device_pick_pending_event_locked() 222 if (d->sensors[i].type == SENSOR_TYPE_META_DATA) { in sensor_device_pick_pending_event_locked() 228 d->sensors[i].type = SENSOR_TYPE_META_DATA + 1; in sensor_device_pick_pending_event_locked() 270 sensors_event_t* events = dev->sensors; in sensor_device_poll_event_locked() 439 dev->sensors[i].timestamp = t; in sensor_device_poll_event_locked() 536 uint32_t sensors = enabled ? mask : 0; in sensor_device_activate() local 541 uint32_t new_sensors = (active & ~mask) | (sensors & mask); in sensor_device_activate() 582 dev->sensors[handle].version = META_DATA_VERSION; in sensor_device_default_flush() 583 dev->sensors[handle].type = SENSOR_TYPE_META_DATA; in sensor_device_default_flush() [all …]
|
/device/google/contexthub/firmware/os/drivers/st_lps22hb/ |
D | lps22hb.c | 143 struct lps22hbSensor sensors[NUM_OF_SENSOR]; member 279 sensorSignalInternalEvt(mTask.sensors[BARO].handle, in baroPower() 289 …return sensorSignalInternalEvt(mTask.sensors[BARO].handle, SENSOR_INTERNAL_EVT_FW_STATE_CHG, 1, 0); in baroFwUpload() 301 return sensorSignalInternalEvt(mTask.sensors[BARO].handle, in baroSetRate() 329 sensorSignalInternalEvt(mTask.sensors[TEMP].handle, in tempPower() 339 …return sensorSignalInternalEvt(mTask.sensors[TEMP].handle, SENSOR_INTERNAL_EVT_FW_STATE_CHG, 1, 0); in tempFwUpload() 351 return sensorSignalInternalEvt(mTask.sensors[TEMP].handle, in tempSetRate() 400 sensorRegisterInitComplete(mTask.sensors[i].handle); in handleCommDoneEvt() 408 sensorRegisterInitComplete(mTask.sensors[i].handle); in handleCommDoneEvt() 412 sensorSignalInternalEvt(mTask.sensors[BARO].handle, in handleCommDoneEvt() [all …]
|
/device/google/contexthub/sensorhal/ |
D | Android.mk | 48 LOCAL_MODULE := sensors.angler 51 LOCAL_MODULE := sensors.bullhead 53 LOCAL_MODULE := sensors.$(TARGET_DEVICE) 72 sensors.cpp \
|
/device/google/dragon/sensor_hub/ |
D | Android.mk | 25 LOCAL_MODULE := sensors.$(TARGET_BOOTLOADER_BOARD_NAME) 34 sensors.cpp \
|
/device/google/contexthub/ |
D | CleanSpec.mk | 49 $(call add-clean-step, rm -f $(PRODUCT_OUT)/system/lib/hw/sensors.*.so) 50 $(call add-clean-step, rm -f $(PRODUCT_OUT)/system/lib64/hw/sensors.*.so)
|
/device/google/marlin/ |
D | CleanSpec.mk | 47 $(call add-clean-step, find $(OUT_DIR)/target/product/marlin/ -name \*sensors.marlin* -exec rm -rf … 49 $(call add-clean-step, find $(OUT_DIR)/target/product/sailfish/ -name \*sensors.sailfish* -exec rm …
|
D | device-sailfish.mk | 50 sensors.sailfish \
|
D | device-marlin.mk | 50 sensors.marlin \
|
D | thermal-engine-marlin.conf | 62 sensors tsens_tz_sensor15 tsens_tz_sensor0
|
/device/generic/car/common/product/ |
D | emulator.mk | 45 sensors.goldfish \ 46 sensors.ranchu \
|
/device/huawei/angler/sepolicy/ |
D | property_contexts | 3 sensors.contexthub. u:object_r:contexthub_prop:s0
|
/device/lge/bullhead/sepolicy/ |
D | property_contexts | 6 sensors.contexthub. u:object_r:contexthub_prop:s0
|
D | system_server.te | 27 # hubconnection to get and set sensors.contexthub.* properties
|
/device/google/marlin/sepolicy/ |
D | property_contexts | 3 sensors. u:object_r:sensors_prop:s0
|
/device/google/contexthub/firmware/ |
D | Android.mk | 38 os/core/sensors.c \
|
/device/generic/mini-emulator-arm64/ |
D | mini_emulator_common.mk | 24 sensors.goldfish \
|
/device/generic/mini-emulator-armv7-a-neon/ |
D | mini_emulator_common.mk | 24 sensors.goldfish \
|