Home
last modified time | relevance | path

Searched refs:HidParser (Results 1 – 13 of 13) sorted by relevance

/hardware/libhardware/modules/sensors/dynamic_sensor/
DHidRawSensor.h29 using HidUtil::HidParser;
30 using ReportPacket = HidParser::ReportPacket;
31 using ReportItem = HidParser::ReportItem;
38 const std::vector<HidParser::ReportPacket> &report);
101 static const HidParser::ReportItem* find
102 (const std::vector<HidParser::ReportPacket> &packets,
107 const HidParser::ReportItem &report,
116 FeatureValue *featureValue, const std::vector<HidParser::ReportPacket> &packets);
122 bool findSensorControlUsage(const std::vector<HidParser::ReportPacket> &packets);
129 bool processTriAxisUsage(const std::vector<HidParser::ReportPacket> &packets,
[all …]
DHidRawSensor.cpp36 SP(HidDevice) device, uint32_t usage, const std::vector<HidParser::ReportPacket> &packets) in HidRawSensor()
102 const HidParser::ReportItem *pReportAccuracy = find(packets, in HidRawSensor()
104 HidParser::REPORT_TYPE_INPUT, in HidRawSensor()
140 const HidParser::ReportPacket *pPacket = nullptr; in HidRawSensor()
146 if (packet.type == HidParser::REPORT_TYPE_INPUT && std::any_of( in HidRawSensor()
148 [&usages] (const HidParser::ReportItem &d) { in HidRawSensor()
223 bool HidRawSensor::processQuaternionUsage(const std::vector<HidParser::ReportPacket> &packets) { in processQuaternionUsage()
224 const HidParser::ReportItem *pReportQuaternion in processQuaternionUsage()
227 HidParser::REPORT_TYPE_INPUT); in processQuaternionUsage()
233 const HidParser::ReportItem &quat = *pReportQuaternion; in processQuaternionUsage()
[all …]
DHidRawDevice.h30 using HidUtil::HidParser;
54 const HidParser::ReportPacket *getReportPacket(unsigned int type, unsigned int id);
64 std::unordered_map<ReportTypeIdPair, const HidParser::ReportPacket *, UnsignedIntPairHash>
67 HidParser::DigestVector mDigestVector;
DHidRawDevice.cpp167 HidParser parser; in generateDigest()
191 const HidParser::ReportPacket *packet = getReportPacket(HidParser::REPORT_TYPE_FEATURE, id); in getFeature()
230 const HidParser::ReportPacket *packet = getReportPacket(HidParser::REPORT_TYPE_FEATURE, id); in setFeature()
264 const HidParser::ReportPacket *packet = getReportPacket(HidParser::REPORT_TYPE_OUTPUT, id); in sendReport()
326 const HidParser::ReportPacket *HidRawDevice::getReportPacket(unsigned int type, unsigned int id) { in getReportPacket()
DHidRawSensorDaemon.h33 using HidUtil::HidParser;
DHidRawSensorDevice.cpp67 if (packet.type == HidParser::REPORT_TYPE_INPUT) { // only used for input mapping in HidRawSensorDevice()
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/
DHidParser.cpp24 void HidParser::reset() { in reset()
31 bool HidParser::parse(const std::vector<HidItem> &token) { in parse()
62 bool HidParser::processMainTag(const HidItem &i) { in processMainTag()
132 bool HidParser::parse(const unsigned char *begin, size_t size) { in parse()
137 void HidParser::filterTree() { in filterTree()
143 void HidParser::filterTree(std::shared_ptr<HidTreeNode> &node) { in filterTree()
158 HidParser::DigestVector HidParser::generateDigest( in generateDigest()
165 void HidParser::digest(HidParser::DigestVector *digestVector, in digest()
221 std::vector<HidParser::ReportPacket> HidParser::convertGroupToPacket( in convertGroupToPacket()
222 const HidParser::ReportSetGroup &group) { in convertGroupToPacket()
[all …]
DHidParser.h30 class HidParser {
88 struct HidParser::ReportItem {
166 struct HidParser::ReportPacket {
175 std::ostream& operator<<(std::ostream &os, const HidParser::DigestVector &digest2);
DAndroid.bp36 "HidParser.cpp",
51 // Example of HidParser
67 // Another example of HidParser
DHidReport.h29 class HidParser; variable
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/test/
DHidParserExample.cpp21 using HidUtil::HidParser;
24 HidParser hidParser; in doParse()
46 HidParser hidParser; in doParseAndFilter()
69 HidParser hidParser; in doDigest()
95 HidParser::DigestVector digestVector = hidParser.generateDigest(interestedUsage); in doDigest()
DHidParserExample2.cpp45 HidParser hidParser; in main()
70 HidParser::DigestVector digestVector = hidParser.generateDigest(interested); in main()
/hardware/libhardware/modules/sensors/dynamic_sensor/test/
DHidRawSensorTest.cpp117 HidParser hidParser; in test()