Searched refs:sensorInfo (Results 1 – 8 of 8) sorted by relevance
40 AidlSensorInfo convertSensorInfo(const V2_1SensorInfo& sensorInfo) { in convertSensorInfo() argument42 aidlSensorInfo.sensorHandle = sensorInfo.sensorHandle; in convertSensorInfo()43 aidlSensorInfo.name = sensorInfo.name; in convertSensorInfo()44 aidlSensorInfo.vendor = sensorInfo.vendor; in convertSensorInfo()45 aidlSensorInfo.version = sensorInfo.version; in convertSensorInfo()46 aidlSensorInfo.type = (AidlSensorType)sensorInfo.type; in convertSensorInfo()47 aidlSensorInfo.typeAsString = sensorInfo.typeAsString; in convertSensorInfo()48 aidlSensorInfo.maxRange = sensorInfo.maxRange; in convertSensorInfo()49 aidlSensorInfo.resolution = sensorInfo.resolution; in convertSensorInfo()50 aidlSensorInfo.power = sensorInfo.power; in convertSensorInfo()[all …]
212 SensorInfo sensorInfo = sensor.second->getSensorInfo(); in getSensorsList() local213 sensorInfo.flags |= V1_0::SensorFlagBits::MASK_DIRECT_CHANNEL; in getSensorsList()214 sensorInfo.flags |= V1_0::SensorFlagBits::MASK_DIRECT_REPORT; in getSensorsList()215 sensors.push_back(sensorInfo); in getSensorsList()224 SensorInfo sensorInfo = sensor.second->getSensorInfo(); in getSensorsList() local225 sensorInfo.flags &= ~static_cast<uint32_t>(V1_0::SensorFlagBits::MASK_DIRECT_CHANNEL); in getSensorsList()226 sensorInfo.flags &= ~static_cast<uint32_t>(V1_0::SensorFlagBits::MASK_DIRECT_REPORT); in getSensorsList()227 sensors.push_back(sensorInfo); in getSensorsList()
32 for (const auto& sensorInfo : sensorInfos) { in convertToAidlSensorInfos() local33 aidlSensorInfos.push_back(convertSensorInfo(sensorInfo)); in convertToAidlSensorInfos()
32 const ::android::hardware::sensors::V2_1::SensorInfo& sensorInfo);
503 for (const SensorInfoType& sensorInfo : getSensorsList()) { in activateAllSensors() local504 if (isValidType(sensorInfo.type)) { in activateAllSensors()505 batch(sensorInfo.sensorHandle, sensorInfo.minDelay, 0 /* maxReportLatencyNs */); in activateAllSensors()506 activate(sensorInfo.sensorHandle, enable); in activateAllSensors()
432 for (const SensorInfo& sensorInfo : getSensorsList()) { in activateAllSensors() local433 if (isValidType(sensorInfo.type)) { in activateAllSensors()434 checkIsOk(batch(sensorInfo.sensorHandle, sensorInfo.minDelayUs, in activateAllSensors()436 checkIsOk(activate(sensorInfo.sensorHandle, enable)); in activateAllSensors()
724 void HalProxy::setDirectChannelFlags(SensorInfo* sensorInfo, in setDirectChannelFlags() argument727 (sensorInfo->flags & (V1_0::SensorFlagBits::MASK_DIRECT_REPORT | in setDirectChannelFlags()734 sensorInfo->flags &= ~(V1_0::SensorFlagBits::MASK_DIRECT_REPORT | in setDirectChannelFlags()
340 void setDirectChannelFlags(SensorInfo* sensorInfo, std::shared_ptr<ISubHalWrapperBase> subHal);