Searched refs:HidParser (Results 1 – 13 of 13) sorted by relevance
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
D | HidRawSensor.h | 29 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 …]
|
D | HidRawSensor.cpp | 36 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 …]
|
D | HidRawDevice.h | 30 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;
|
D | HidRawDevice.cpp | 167 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()
|
D | HidRawSensorDaemon.h | 33 using HidUtil::HidParser;
|
D | HidRawSensorDevice.cpp | 67 if (packet.type == HidParser::REPORT_TYPE_INPUT) { // only used for input mapping in HidRawSensorDevice()
|
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/ |
D | HidParser.cpp | 24 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 …]
|
D | HidParser.h | 30 class HidParser { 88 struct HidParser::ReportItem { 166 struct HidParser::ReportPacket { 175 std::ostream& operator<<(std::ostream &os, const HidParser::DigestVector &digest2);
|
D | Android.bp | 36 "HidParser.cpp", 51 // Example of HidParser 67 // Another example of HidParser
|
D | HidReport.h | 29 class HidParser; variable
|
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/test/ |
D | HidParserExample.cpp | 21 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()
|
D | HidParserExample2.cpp | 45 HidParser hidParser; in main() 70 HidParser::DigestVector digestVector = hidParser.generateDigest(interested); in main()
|
/hardware/libhardware/modules/sensors/dynamic_sensor/test/ |
D | HidRawSensorTest.cpp | 117 HidParser hidParser; in test()
|