Home
last modified time | relevance | path

Searched refs:HidTreeNode (Results 1 – 6 of 6) sorted by relevance

/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/
DHidTree.cpp24 HidTreeNode::HidTreeNode() : mNodeType(TYPE_UNINITIALIZED), mData(0), mFullUsage(0) { in HidTreeNode() function in HidUtil::HidTreeNode
27 HidTreeNode::HidTreeNode(std::shared_ptr<HidTreeNode> parent, in HidTreeNode() function in HidUtil::HidTreeNode
33 HidTreeNode::HidTreeNode(std::shared_ptr<HidTreeNode> parent, in HidTreeNode() function in HidUtil::HidTreeNode
39 void HidTreeNode::outputRecursive(std::ostream &os, int level) const { in outputRecursive()
49 std::shared_ptr<HidTreeNode> HidTreeNode::deepCopy( in deepCopy()
50 std::shared_ptr<HidTreeNode> parent) const { in deepCopy()
51 std::shared_ptr<HidTreeNode> copy(new HidTreeNode(parent, mData, mFullUsage, mNodeType)); in deepCopy()
58 void HidTreeNode::insertIndentation(std::ostream &os, int level) const { in insertIndentation()
63 std::shared_ptr<HidTreeNode> HidTreeNode::addChild(std::shared_ptr<HidTreeNode> child) { in addChild()
68 std::shared_ptr<HidTreeNode> HidTreeNode::getParent() const { in getParent()
[all …]
DHidTree.h28 class HidTreeNode {
29 friend std::ostream& operator<<(std::ostream& os, const HidTreeNode& n);
36 HidTreeNode();
37 HidTreeNode(std::shared_ptr<HidTreeNode> parent, uint32_t data, uint32_t fullUsage);
39 virtual ~HidTreeNode() = default;
42 virtual std::shared_ptr<HidTreeNode> deepCopy(
43 std::shared_ptr<HidTreeNode> parent = nullptr) const;
46 std::shared_ptr<HidTreeNode> addChild(std::shared_ptr<HidTreeNode> child);
49 std::vector<std::shared_ptr<HidTreeNode>>& getChildren();
50 const std::vector<std::shared_ptr<HidTreeNode>>& getChildren() const;
[all …]
DHidParser.h62 const std::shared_ptr<HidTreeNode> getTree() const { return mTree; } in getTree()
74 static void filterTree(std::shared_ptr<HidTreeNode> &node);
77 const std::shared_ptr<HidTreeNode> &node,
83 std::shared_ptr<HidTreeNode> mTree;
84 std::shared_ptr<HidTreeNode> mCurrent;
DHidParser.cpp27 mTree = std::make_shared<HidTreeNode>(); in reset()
78 std::make_shared<HidTreeNode>(mCurrent, collectionType, fullUsage)); in processMainTag()
119 std::shared_ptr<HidTreeNode> node(new HidReportNode(mCurrent, report)); in processMainTag()
143 void HidParser::filterTree(std::shared_ptr<HidTreeNode> &node) { in filterTree()
166 const std::shared_ptr<HidTreeNode> &node, in digest()
180 if (i->getNodeType() != HidTreeNode::TYPE_REPORT) { in digest()
213 if (child->getNodeType() == HidTreeNode::TYPE_NORMAL) { in digest()
DHidReport.h30 class HidTreeNode; variable
/hardware/libhardware/modules/sensors/dynamic_sensor/HidUtils/test/
DHidParserExample2.cpp58 std::shared_ptr<HidTreeNode> tree = hidParser.getTree()->deepCopy(); in main()