Home
last modified time | relevance | path

Searched refs:sensorInfo (Results 1 – 8 of 8) sorted by relevance

/hardware/interfaces/sensors/aidl/default/multihal/
DConvertUtils.cpp40 AidlSensorInfo convertSensorInfo(const V2_1SensorInfo& sensorInfo) { in convertSensorInfo() argument
42 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 …]
/hardware/interfaces/sensors/common/default/2.X/multihal/tests/fake_subhal/
DSensorsSubHal.cpp212 SensorInfo sensorInfo = sensor.second->getSensorInfo(); in getSensorsList() local
213 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() local
225 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()
/hardware/interfaces/sensors/aidl/default/multihal/include/
DISensorsCallbackWrapperAidl.h32 for (const auto& sensorInfo : sensorInfos) { in convertToAidlSensorInfos() local
33 aidlSensorInfos.push_back(convertSensorInfo(sensorInfo)); in convertToAidlSensorInfos()
DConvertUtils.h32 const ::android::hardware::sensors::V2_1::SensorInfo& sensorInfo);
/hardware/interfaces/sensors/common/vts/2_X/
DVtsHalSensorsV2_XTargetTest.h503 for (const SensorInfoType& sensorInfo : getSensorsList()) { in activateAllSensors() local
504 if (isValidType(sensorInfo.type)) { in activateAllSensors()
505 batch(sensorInfo.sensorHandle, sensorInfo.minDelay, 0 /* maxReportLatencyNs */); in activateAllSensors()
506 activate(sensorInfo.sensorHandle, enable); in activateAllSensors()
/hardware/interfaces/sensors/aidl/vts/
DVtsAidlHalSensorsTargetTest.cpp432 for (const SensorInfo& sensorInfo : getSensorsList()) { in activateAllSensors() local
433 if (isValidType(sensorInfo.type)) { in activateAllSensors()
434 checkIsOk(batch(sensorInfo.sensorHandle, sensorInfo.minDelayUs, in activateAllSensors()
436 checkIsOk(activate(sensorInfo.sensorHandle, enable)); in activateAllSensors()
/hardware/interfaces/sensors/common/default/2.X/multihal/
DHalProxy.cpp724 void HalProxy::setDirectChannelFlags(SensorInfo* sensorInfo, in setDirectChannelFlags() argument
727 (sensorInfo->flags & (V1_0::SensorFlagBits::MASK_DIRECT_REPORT | in setDirectChannelFlags()
734 sensorInfo->flags &= ~(V1_0::SensorFlagBits::MASK_DIRECT_REPORT | in setDirectChannelFlags()
/hardware/interfaces/sensors/common/default/2.X/multihal/include/
DHalProxy.h340 void setDirectChannelFlags(SensorInfo* sensorInfo, std::shared_ptr<ISubHalWrapperBase> subHal);