/device/google/contexthub/util/nanotool/ |
D | contexthub.cpp | 38 SensorType sensor_type; member 79 SensorType sensor_type; member 89 bool SensorTypeIsAliasOf(SensorType sensor_type, SensorType alias) { in SensorTypeIsAliasOf() argument 91 if (sensor_aliases_[i].sensor_type == sensor_type in SensorTypeIsAliasOf() 103 return sensor_names_[i].sensor_type; in SensorAbbrevNameToType() 114 std::string ContextHub::SensorTypeToAbbrevName(SensorType sensor_type) { in SensorTypeToAbbrevName() argument 116 if (sensor_names_[i].sensor_type == sensor_type) { in SensorTypeToAbbrevName() 122 if (sensor_aliases_[i].sensor_alias == sensor_type) { in SensorTypeToAbbrevName() 129 static_cast<int>(sensor_type)); in SensorTypeToAbbrevName() 192 req.config.sensor_type = static_cast<uint8_t>(spec.sensor_type); in EnableSensor() [all …]
|
D | apptohostevent.cpp | 50 bool AppToHostEvent::CheckAppId(SensorType sensor_type) const { in CheckAppId() 53 switch (sensor_type) { in CheckAppId() 94 bool AppToHostEvent::CheckEventHeader(SensorType sensor_type) const { in CheckEventHeader() 99 if (!CheckAppId(sensor_type)) { in CheckEventHeader() 106 bool AppToHostEvent::IsCalibrationEventForSensor(SensorType sensor_type) const { in IsCalibrationEventForSensor() 107 if (!CheckEventHeader(sensor_type)) { in IsCalibrationEventForSensor() 117 bool AppToHostEvent::IsTestEventForSensor(SensorType sensor_type) const { in IsTestEventForSensor() 118 if (!CheckEventHeader(sensor_type)) { in IsTestEventForSensor()
|
D | androidcontexthub.cpp | 96 static bool GetCalibrationBytes(const char *key, SensorType sensor_type, in GetCalibrationBytes() argument 105 switch (sensor_type) { in GetCalibrationBytes() 143 static_cast<int>(sensor_type)); in GetCalibrationBytes() 291 SensorType sensor_type; in LoadCalibration() local 293 std::tie(key, sensor_type) = kCalibrationKeys[i]; in LoadCalibration() 294 if (GetCalibrationBytes(key.c_str(), sensor_type, cal_data)) { in LoadCalibration() 295 success = SendCalibrationData(sensor_type, cal_data); in LoadCalibration() 304 bool AndroidContextHub::SetCalibration(SensorType sensor_type, int32_t data) { in SetCalibration() argument 306 static_cast<int>(sensor_type), in SetCalibration() 307 ContextHub::SensorTypeToAbbrevName(sensor_type).c_str(), data); in SetCalibration() [all …]
|
D | contexthub.h | 88 SensorType sensor_type = SensorType::Invalid_; member 108 static std::string SensorTypeToAbbrevName(SensorType sensor_type); 153 bool DisableSensor(SensorType sensor_type); 190 void PrintSensorEvents(SensorType sensor_type, int sample_limit); 248 bool SendCalibrationData(SensorType sensor_type, 272 virtual bool SetCalibration(SensorType sensor_type, int32_t data); 273 virtual bool SetCalibration(SensorType sensor_type, float data); 274 virtual bool SetCalibration(SensorType sensor_type, int32_t x, 276 virtual bool SetCalibration(SensorType sensor_type, int32_t x,
|
D | androidcontexthub.h | 49 bool SetCalibration(SensorType sensor_type, int32_t data) override; 50 bool SetCalibration(SensorType sensor_type, float data) override; 51 bool SetCalibration(SensorType sensor_type, int32_t x, int32_t y, int32_t z) 53 bool SetCalibration(SensorType sensor_type, int32_t x, int32_t y, 64 static const char *SensorTypeToCalibrationKey(SensorType sensor_type);
|
D | apptohostevent.h | 100 bool IsCalibrationEventForSensor(SensorType sensor_type) const; 101 bool IsTestEventForSensor(SensorType sensor_type) const; 106 bool CheckAppId(SensorType sensor_type) const; 107 bool CheckEventHeader(SensorType sensor_type) const;
|
D | nanotool.cpp | 189 args->sensors[i].sensor_type).c_str()); in ValidateArgs() 198 && (args->sensors[i].sensor_type == SensorType::Barometer in ValidateArgs() 199 || args->sensors[i].sensor_type == in ValidateArgs() 204 args->sensors[i].sensor_type).c_str()); in ValidateArgs() 267 spec.sensor_type = ContextHub::SensorAbbrevNameToType(param); in ParseSensorArg() 268 if (spec.sensor_type == SensorType::Invalid_) { in ParseSensorArg()
|
D | sensorevent.cpp | 37 SensorType sensor_type = static_cast<SensorType>( in FromBytes() local 41 switch (sensor_type) { in FromBytes() 92 static_cast<int>(sensor_type)); in FromBytes()
|
D | nanomessage.h | 188 uint8_t sensor_type; member
|
D | nanomessage.cpp | 228 config.sensor_type, in ToString()
|
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/ |
D | invensense_icm40600.c | 2265 int sensor_type = (int)cookie; local 2266 struct ICM40600Sensor *sensor = &T(sensors[sensor_type]); 2268 …DEBUG_PRINT("%s: on=%d, state=%" PRI_STATE "\n", mSensorInfo[sensor_type].sensorName, on, getState… 2276 sensorPower(_task, sensor_type, on); 2279 T(pending_config[sensor_type]) = true; 2289 int sensor_type = (int)cookie; local 2290 struct ICM40600Sensor *sensor = &T(sensors[sensor_type]); 2293 mSensorInfo[sensor_type].sensorName, rate, latency, getStateName(GET_STATE())); 2302 T(pending_config[sensor_type]) = true;
|
/device/google/bonito/sdm710/original-kernel-headers/media/ |
D | msm_camera.h | 1919 enum sensor_type_t sensor_type[MSM_MAX_CAMERA_SENSORS]; member 1958 enum sensor_type_t sensor_type; member
|
/device/google/crosshatch/sdm845/kernel-headers/media/ |
D | msm_camera.h | 1512 enum sensor_type_t sensor_type[MSM_MAX_CAMERA_SENSORS]; member 1546 enum sensor_type_t sensor_type; member
|
/device/google/crosshatch/sdm845/original-kernel-headers/media/ |
D | msm_camera.h | 1919 enum sensor_type_t sensor_type[MSM_MAX_CAMERA_SENSORS]; member 1958 enum sensor_type_t sensor_type; member
|
/device/google/bonito/sdm710/kernel-headers/media/ |
D | msm_camera.h | 1512 enum sensor_type_t sensor_type[MSM_MAX_CAMERA_SENSORS]; member 1546 enum sensor_type_t sensor_type; member
|