Home
last modified time | relevance | path

Searched refs:sensor_type (Results 1 – 20 of 20) sorted by relevance

/device/google/contexthub/util/nanotool/
Dcontexthub.cpp38 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 …]
Dandroidcontexthub.cpp96 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 …]
Dapptohostevent.cpp50 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()
Dcontexthub.h88 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,
Dandroidcontexthub.h49 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);
Dapptohostevent.h100 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;
Dnanotool.cpp189 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()
Dsensorevent.cpp37 SensorType sensor_type = static_cast<SensorType>( in FromBytes() local
41 switch (sensor_type) { in FromBytes()
92 static_cast<int>(sensor_type)); in FromBytes()
Dnanomessage.h188 uint8_t sensor_type; member
Dnanomessage.cpp228 config.sensor_type, in ToString()
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/
Dinvensense_icm40600.c2265 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/crosshatch/sdm845/original-kernel-headers/media/
Dmsm_camera.h1919 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/
Dmsm_camera.h1512 enum sensor_type_t sensor_type[MSM_MAX_CAMERA_SENSORS]; member
1546 enum sensor_type_t sensor_type; member
/device/google/bonito/sdm710/original-kernel-headers/media/
Dmsm_camera.h1919 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/
Dmsm_camera.h1512 enum sensor_type_t sensor_type[MSM_MAX_CAMERA_SENSORS]; member
1546 enum sensor_type_t sensor_type; member
/device/google/marlin/camera/QCamera2/stack/common/
Dcam_intf.h469 cam_sensor_type_t sensor_type; member
/device/google/marlin/camera/QCamera2/stack/mm-camera-interface/include/
Dcam_intf.h469 cam_sensor_type_t sensor_type; member
/device/google/marlin/camera/QCamera2/HAL3/
DQCamera3HWI.cpp7230 (CAM_SENSOR_YUV == gCamCapability[cameraId]->sensor_type.sens_type) || in initStaticMetadata()
7231 (CAM_SENSOR_MONO == gCamCapability[cameraId]->sensor_type.sens_type) || in initStaticMetadata()
7977 if (CAM_SENSOR_YUV != gCamCapability[cameraId]->sensor_type.sens_type) { in initStaticMetadata()
7986 uint8_t aeLockAvailable = (gCamCapability[cameraId]->sensor_type.sens_type == CAM_SENSOR_RAW) ? in initStaticMetadata()
7994 uint8_t awbLockAvailable = (gCamCapability[cameraId]->sensor_type.sens_type == CAM_SENSOR_RAW) ? in initStaticMetadata()
8261 if (CAM_SENSOR_RAW == gCamCapability[cameraId]->sensor_type.sens_type) { in initStaticMetadata()
8892 if (CAM_SENSOR_RAW == gCamCapability[mCameraId]->sensor_type.sens_type) { in translateCapabilityToMetadata()
/device/google/marlin/camera/QCamera2/HAL/
DQCameraParameters.cpp5565 if(m_pCapability->sensor_type.sens_type != CAM_SENSOR_YUV) { in initDefaultParameters()
13426 (m_pCapability->sensor_type.sens_type == CAM_SENSOR_YUV)) { in updatePpFeatureMask()
13582 (m_pCapability->sensor_type.sens_type == CAM_SENSOR_YUV)) { in isUBWCEnabled()
DQCamera2HWI.cpp10257 return gCamCapability[mCameraId]->sensor_type.sens_type; in getSensorType()