Home | History | Annotate | Download | only in smgr

Lines Matching refs:sensorType

48  * @param sensorType One of the CHRE_SENSOR_TYPE_* constants.
51 bool isCalibrationSupported(uint8_t sensorType) {
52 switch (sensorType) {
63 * @param sensorType One of the CHRE_SENSOR_TYPE_* constants.
66 uint8_t getSensorId(uint8_t sensorType) {
67 switch (sensorType) {
82 * @param sensorType One of the CHRE_SENSOR_TYPE_* constants.
86 void populateCalRequest(uint8_t sensorType, const ashCalInfo *calInfo,
92 calRequest->SensorId = getSensorId(sensorType);
97 if (sensorType == CHRE_SENSOR_TYPE_GEOMAGNETIC_FIELD) {
133 DLL_EXPORT bool ashSetCalibration(uint8_t sensorType,
136 if (!isCalibrationSupported(sensorType)) {
137 LOGE("Attempting to set calibration of sensor %" PRIu8, sensorType);
145 populateCalRequest(sensorType, calInfo, calRequest.get());