/device/google/contexthub/firmware/src/ |
D | hostIntf.c | 495 static void resetBuffer(struct ActiveSensor *sensor) in resetBuffer() argument 497 sensor->discard = true; in resetBuffer() 498 sensor->buffer.length = 0; in resetBuffer() 499 memset(&sensor->buffer.firstSample, 0x00, sizeof(struct SensorFirstSample)); in resetBuffer() 511 struct ActiveSensor *sensor; in hostIntfPacketDequeue() local 517 sensor = mActiveSensorTable + mSensorList[buffer->sensType - 1]; in hostIntfPacketDequeue() 518 …if (sensor->sensorHandle == 0 && !buffer->firstSample.biasPresent && !buffer->firstSample.numFlush… in hostIntfPacketDequeue() 519 if (sensor->interrupt == NANOHUB_INT_WAKEUP) in hostIntfPacketDequeue() 521 else if (sensor->interrupt == NANOHUB_INT_NONWAKEUP) in hostIntfPacketDequeue() 523 sensor->curSamples -= buffer->firstSample.numSamples; in hostIntfPacketDequeue() [all …]
|
/device/huawei/angler/ |
D | thermal-engine-angler.conf | 11 sensor msm_therm 20 sensor msm_therm 29 sensor msm_therm 38 sensor msm_therm 47 sensor emmc_therm 57 sensor pa_therm1 68 sensor gpu 77 sensor pop_mem 86 sensor cpu7 95 sensor cpu6 [all …]
|
D | device.mk | 127 …rameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.har… 128 …frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardwa… 129 …rameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.har… 130 …rameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.har… 131 …ameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.ha… 132 …meworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.ha… 133 …meworks/native/data/etc/android.hardware.sensor.hifi_sensors.xml:system/etc/permissions/android.ha…
|
/device/google/contexthub/util/nanoapp_cmd/ |
D | nanoapp_cmd.c | 68 static int setType(struct ConfigCmd *cmd, char *sensor) in setType() argument 70 if (strcmp(sensor, "accel") == 0) { in setType() 72 } else if (strcmp(sensor, "gyro") == 0) { in setType() 74 } else if (strcmp(sensor, "mag") == 0) { in setType() 76 } else if (strcmp(sensor, "uncal_gyro") == 0) { in setType() 78 } else if (strcmp(sensor, "uncal_mag") == 0) { in setType() 80 } else if (strcmp(sensor, "als") == 0) { in setType() 82 } else if (strcmp(sensor, "prox") == 0) { in setType() 84 } else if (strcmp(sensor, "baro") == 0) { in setType() 86 } else if (strcmp(sensor, "temp") == 0) { in setType() [all …]
|
/device/google/contexthub/sensorhal/ |
D | sensors.cpp | 74 sensor_t sensor = kSensorList[i]; in setDelay() local 75 if (sensor.handle != handle) { in setDelay() 79 if ((sensor.flags & REPORTING_MODE_MASK) == SENSOR_FLAG_CONTINUOUS_MODE) { in setDelay() 80 if ((delayNs/1000) < sensor.minDelay) { in setDelay() 81 delayNsClamped = sensor.minDelay * 1000; in setDelay() 82 } else if ((delayNs/1000) > sensor.maxDelay) { in setDelay() 83 delayNsClamped = sensor.maxDelay * 1000; in setDelay() 117 sensor_t sensor = kSensorList[i]; in batch() local 118 if (sensor.handle != handle) { in batch() 122 if ((sensor.flags & REPORTING_MODE_MASK) == SENSOR_FLAG_CONTINUOUS_MODE) { in batch() [all …]
|
D | hubconnection.cpp | 321 …t_t *HubConnection::initEv(sensors_event_t *ev, uint64_t timestamp, uint32_t type, uint32_t sensor) in initEv() argument 327 ev->sensor = sensor; in initEv() 332 void HubConnection::processSample(uint64_t timestamp, uint32_t type, uint32_t sensor, struct OneAxi… in processSample() argument 337 switch (sensor) { in processSample() 346 initEv(&nev[cnt++], timestamp, type, sensor)->pressure = sample->fdata; in processSample() 349 initEv(&nev[cnt++], timestamp, type, sensor)->temperature = sample->fdata; in processSample() 352 initEv(&nev[cnt++], timestamp, type, sensor)->distance = sample->fdata; in processSample() 355 initEv(&nev[cnt++], timestamp, type, sensor)->light = sample->fdata; in processSample() 361 initEv(&nev[cnt++], timestamp, type, sensor)->u64.step_counter = mLastStepCount; in processSample() 367 initEv(&nev[cnt++], timestamp, type, sensor)->data[0] = 1.0f; in processSample() [all …]
|
D | hubconnection.h | 208 … sensors_event_t *initEv(sensors_event_t *ev, uint64_t timestamp, uint32_t type, uint32_t sensor); 210 …void processSample(uint64_t timestamp, uint32_t type, uint32_t sensor, struct OneAxisSample *sampl… 211 …void processSample(uint64_t timestamp, uint32_t type, uint32_t sensor, struct RawThreeAxisSample *… 212 …void processSample(uint64_t timestamp, uint32_t type, uint32_t sensor, struct ThreeAxisSample *sam…
|
/device/google/contexthub/util/nanotool/ |
D | contexthub.cpp | 304 bool ContextHub::CalibrateSingleSensor(const SensorSpec& sensor) { in CalibrateSingleSensor() argument 308 req.config.sensor_type = static_cast<uint8_t>(sensor.sensor_type); in CalibrateSingleSensor() 312 LOGI("Issuing calibration request to sensor %d (%s)", sensor.sensor_type, in CalibrateSingleSensor() 313 ContextHub::SensorTypeToAbbrevName(sensor.sensor_type).c_str()); in CalibrateSingleSensor() 316 LOGE("Failed to calibrate sensor %d", sensor.sensor_type); in CalibrateSingleSensor() 321 auto calEventHandler = [this, &sensor, &success](const AppToHostEvent &event) -> bool { in CalibrateSingleSensor() 322 if (event.IsCalibrationEventForSensor(sensor.sensor_type)) { in CalibrateSingleSensor() 323 success = HandleCalibrationResult(sensor, event); in CalibrateSingleSensor() 349 bool ContextHub::HandleCalibrationResult(const SensorSpec& sensor, in HandleCalibrationResult() argument 354 sensor.sensor_type, in HandleCalibrationResult() [all …]
|
D | contexthub.h | 137 bool EnableSensor(const SensorSpec& sensor); 192 bool CalibrateSingleSensor(const SensorSpec& sensor); 205 bool HandleCalibrationResult(const SensorSpec& sensor,
|
/device/htc/flounder/sensor_hub/libsensors/ |
D | CwMcuSensor.cpp | 277 mPendingEvents[CW_ACCELERATION].sensor = ID_A; in CwMcuSensor() 282 mPendingEvents[CW_MAGNETIC].sensor = ID_M; in CwMcuSensor() 286 mPendingEvents[CW_GYRO].sensor = ID_GY; in CwMcuSensor() 291 mPendingEvents[CW_LIGHT].sensor = ID_L; in CwMcuSensor() 296 mPendingEvents[CW_PRESSURE].sensor = ID_PS; in CwMcuSensor() 301 mPendingEvents[CW_ORIENTATION].sensor = ID_O; in CwMcuSensor() 306 mPendingEvents[CW_ROTATIONVECTOR].sensor = ID_RV; in CwMcuSensor() 310 mPendingEvents[CW_LINEARACCELERATION].sensor = ID_LA; in CwMcuSensor() 314 mPendingEvents[CW_GRAVITY].sensor = ID_G; in CwMcuSensor() 318 mPendingEvents[CW_MAGNETIC_UNCALIBRATED].sensor = ID_CW_MAGNETIC_UNCALIBRATED; in CwMcuSensor() [all …]
|
/device/generic/armv7-a-neon/ |
D | mini_common.mk | 67 …rameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.har… 68 …rameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.har… 69 …frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardwa…
|
/device/moto/shamu/ |
D | device.mk | 74 …rameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.har… 75 …frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardwa… 76 …rameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.har… 77 …rameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.har… 78 …ameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.ha… 79 …meworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.ha… 235 persist.camera.sensor.debug=0 \
|
/device/htc/flounder/ |
D | device.mk | 91 …meworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.h… 92 …rameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.har… 93 …frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hard… 94 …rameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.har… 95 …frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardwa… 96 …ameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.ha… 97 …meworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.ha…
|
/device/lge/bullhead/ |
D | device.mk | 100 …rameworks/native/data/etc/android.hardware.sensor.proximity.xml:system/etc/permissions/android.har… 101 …frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardwa… 102 …rameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.har… 103 …rameworks/native/data/etc/android.hardware.sensor.barometer.xml:system/etc/permissions/android.har… 104 …ameworks/native/data/etc/android.hardware.sensor.stepcounter.xml:system/etc/permissions/android.ha… 105 …meworks/native/data/etc/android.hardware.sensor.stepdetector.xml:system/etc/permissions/android.ha… 106 …meworks/native/data/etc/android.hardware.sensor.hifi_sensors.xml:system/etc/permissions/android.ha…
|
/device/google/dragon/ |
D | device.mk | 90 …meworks/native/data/etc/android.hardware.sensor.accelerometer.xml:system/etc/permissions/android.h… 91 …frameworks/native/data/etc/android.hardware.sensor.compass.xml:system/etc/permissions/android.hard… 92 …rameworks/native/data/etc/android.hardware.sensor.gyroscope.xml:system/etc/permissions/android.har… 93 …frameworks/native/data/etc/android.hardware.sensor.light.xml:system/etc/permissions/android.hardwa…
|
/device/moto/shamu/sepolicy/ |
D | camera.te | 13 # Connect to sensor socket (/dev/sensor/sensor_ctl_socket)
|
D | thermald.te | 1 # Temperature sensor daemon (root process)
|
D | sensors.te | 1 # Integrated qualcomm sensor process
|
/device/google/dragon/sensor_hub/ |
D | cros_ec_sensors.cpp | 291 data->sensor = 0; in processEvent() 296 data->meta_data.sensor = event->sensor_id; in processEvent() 315 data->sensor = CROS_EC_MAX_PHYSICAL_SENSOR + event->activity; in processEvent() 339 data->sensor = event->sensor_id; in processEvent()
|
/device/google/dragon/sepolicy/ |
D | mediaserver.te | 3 # sensor manager based camera/video stabilization
|
D | cameraserver.te | 3 # sensor manager based camera/video stabilization
|
/device/lge/bullhead/sepolicy/ |
D | thermal-engine.te | 1 # Temperature sensor daemon (root process)
|
D | system_server.te | 16 # Needed by hubconnection for sensor hub
|
/device/google/contexthub/firmware/src/drivers/bosch_bmi160/ |
D | bosch_bmi160.c | 1702 static bool flushData(struct BMI160Sensor *sensor, uint32_t eventId) in flushData() argument 1706 if (sensor->data_evt) { in flushData() 1707 success = osEnqueueEvtOrFree(eventId, sensor->data_evt, dataEvtFree); in flushData() 1708 sensor->data_evt = NULL; in flushData() 2985 static void initSensorStruct(struct BMI160Sensor *sensor, enum SensorIndex idx) in initSensorStruct() argument 2987 sensor->idx = idx; in initSensorStruct() 2988 sensor->powered = false; in initSensorStruct() 2989 sensor->configed = false; in initSensorStruct() 2990 sensor->rate = 0; in initSensorStruct() 2991 sensor->offset[0] = 0; in initSensorStruct() [all …]
|
/device/huawei/angler/sepolicy/ |
D | system_server.te | 1 # Needed by hubconnection for sensor hub
|