Home
last modified time | relevance | path

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

/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 {
167 struct HidParser::ReportPacket {
176 std::ostream& operator<<(std::ostream &os, const HidParser::DigestVector &digest2);
DAndroid.bp45 "HidParser.cpp",
61 // Example of HidParser
77 // Another example of HidParser
DHidReport.h29 class HidParser; variable
/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);
110 static const HidParser::ReportItem* find
111 (const std::vector<HidParser::ReportPacket> &packets,
116 const HidParser::ReportItem &report,
125 FeatureValue *featureValue, const std::vector<HidParser::ReportPacket> &packets);
131 bool findSensorControlUsage(const std::vector<HidParser::ReportPacket> &packets);
146 bool processTriAxisUsage(const std::vector<HidParser::ReportPacket> &packets,
[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;
DHidRawSensor.cpp45 SP(HidDevice) device, uint32_t usage, const std::vector<HidParser::ReportPacket> &packets) in HidRawSensor()
111 const HidParser::ReportItem *pReportAccuracy = find(packets, in HidRawSensor()
113 HidParser::REPORT_TYPE_INPUT, in HidRawSensor()
149 const HidParser::ReportPacket *pPacket = nullptr; in HidRawSensor()
155 if (packet.type == HidParser::REPORT_TYPE_INPUT && std::any_of( in HidRawSensor()
157 [&usages] (const HidParser::ReportItem &d) { in HidRawSensor()
232 bool HidRawSensor::processQuaternionUsage(const std::vector<HidParser::ReportPacket> &packets) { in processQuaternionUsage()
233 const HidParser::ReportItem *pReportQuaternion in processQuaternionUsage()
236 HidParser::REPORT_TYPE_INPUT); in processQuaternionUsage()
242 const HidParser::ReportItem &quat = *pReportQuaternion; in processQuaternionUsage()
[all …]
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.cpp76 if (packet.type == HidParser::REPORT_TYPE_INPUT) { // only used for input mapping in HidRawSensorDevice()
/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()