Lines Matching defs:sensorType

201  * @return Returns the sensorType that corresponds to the reportId.
204 SensorType sensorType;
206 sensorType = static_cast<SensorType>(reportId);
208 sensorType = SensorType::Unknown;
210 return sensorType;
224 SensorType sensorType = getSensorTypeFromSensorId(
227 CHRE_ASSERT_LOG(sensorType != SensorType::Unknown,
230 return static_cast<uint8_t>(sensorType);
240 SensorType sensorType = getSensorTypeFromReportId(reportId);
241 return (sensorType == SensorType::AccelerometerTemperature
242 || sensorType == SensorType::GyroscopeTemperature);
263 * @param sensorType The sensorType of this sensor.
267 ChreSensorData *allocateLastEvent(SensorType sensorType, size_t *eventSize) {
272 if (sensorTypeIsOnChange(sensorType)) {
273 SensorSampleType sampleType = getSensorSampleTypeFromSensorType(sensorType);
296 static_cast<int>(sensorType));
321 SensorType sensorType = getSensorTypeFromSensorId(
323 sensor.minInterval = sensorTypeIsOneShot(sensorType) ?
328 sensor.lastEvent = allocateLastEvent(sensorType, &sensor.lastEventSize);
351 SensorType sensorType, chreSensorDataHeader *header,
362 header->sensorHandle = getSensorHandleFromSensorType(sensorType);
368 SensorType sensorType, chreSensorThreeAxisData *data,
370 populateSensorDataHeader(sensorType, &data->header, sensorIndex);
386 if (sensorType == SensorType::GeomagneticField
387 || sensorType == SensorType::UncalibratedGeomagneticField) {
397 SensorType sensorType, chreSensorFloatData *data,
399 populateSensorDataHeader(sensorType, &data->header, sensorIndex);
414 SensorType sensorType, chreSensorByteData *data,
416 populateSensorDataHeader(sensorType, &data->header, sensorIndex);
434 SensorType sensorType, chreSensorOccurrenceData *data,
436 populateSensorDataHeader(sensorType, &data->header, sensorIndex);
453 SensorType sensorType,
455 SensorSampleType sampleType = getSensorSampleTypeFromSensorType(sensorType);
464 populateThreeAxisEvent(bufferingIndMsg, sensorType, event, sensorIndex);
475 populateFloatEvent(bufferingIndMsg, sensorType, event, sensorIndex);
486 populateByteEvent(bufferingIndMsg, sensorType, event, sensorIndex);
498 bufferingIndMsg, sensorType, event, sensorIndex);
504 LOGW("Unhandled sensor data %" PRIu8, static_cast<uint8_t>(sensorType));
517 SensorType sensorType = getSensorTypeForSampleEventType(eventType);
518 if (sensorTypeIsOneShot(sensorType)) {
520 .removeAllRequests(sensorType);
528 * @param sensorType The SensorType of the sensor.
531 void updateLastEvent(SensorType sensorType, const void *eventData) {
539 header->readingCount, static_cast<int>(sensorType));
542 SensorType sensorType;
549 callbackData->sensorType = sensorType;
556 ->getSensorRequestManager().getSensor(cbData->sensorType);
570 LOGE("Failed to schedule a deferred callback for sensorType %d",
571 static_cast<int>(sensorType));
606 SensorType sensorType = getSensorTypeFromReportId(
608 if (sensorType == SensorType::Unknown) {
612 LOGW("Received sensorType %d event with 0 sample",
613 static_cast<int>(sensorType));
616 bufferingIndMsg, sensorType, sensorIndex);
622 if (sensorTypeIsOnChange(sensorType)) {
623 updateLastEvent(sensorType, eventData);
627 getSampleEventTypeForSensorType(sensorType), eventData,
698 SensorType sensorType = getSensorTypeFromSensorId(sensorId,
700 if (sensorType != SensorType::Unknown) {
701 sensorTypes[0] = sensorType;
710 * Obtains the merged SensorMode of the specified sensor ID, with sensorType's
714 * @param sensorType The SensorType whose sensor request is to be replaced by
719 SensorMode getMergedMode(uint8_t sensorId, SensorType sensorType,
733 (sensorTypes[i] == sensorType) ? request : sensor->getRequest());
1043 SensorType sensorType = getSensorTypeFromSensorId(
1046 if (sensorType != SensorType::Unknown) {
1053 if (sensorType != uncalibratedType) {
1179 * @param sensorType The SensorType of this request
1183 bool isRequestAllowed(SensorType sensorType, const SensorRequest& request) {
1187 ->getSensorRequestManager().getSensor(sensorType);
1195 sensor->sensorId, sensorType, request);
1198 LOGD("sensorType %d allowed %d: mergedMode %d, otherClientPresent %d",
1199 static_cast<size_t>(sensorType), allowed,
1254 * @param sensorType The sensor type of the request.
1258 bool makeRequest(SensorType sensorType, const SensorRequest& request) {
1262 .getSensor(sensorType);