summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYifan Hong2017-04-12 19:34:14 -0500
committerYifan Hong2017-04-13 20:02:41 -0500
commit03d2d4a8fa16418a2f54dc78a7e909f40a26ec1b (patch)
treec2c25c821b285b6c46bf8a510a48001efbe36b1d /parse_xml.cpp
parentba3bb68534dc56eb01cece15dd40a3936dd8bb72 (diff)
downloadplatform-system-libvintf-03d2d4a8fa16418a2f54dc78a7e909f40a26ec1b.tar.gz
platform-system-libvintf-03d2d4a8fa16418a2f54dc78a7e909f40a26ec1b.tar.xz
platform-system-libvintf-03d2d4a8fa16418a2f54dc78a7e909f40a26ec1b.zip
Include Vndk version to compatibility matrix XML.
Serialization code is missing before. Also added tests for converting device compatibility matrices. Test: libvintf_test Bug: 36400653 Change-Id: I57aabafdf71f7e9ce05f30e0b14c3d83dc1c183f
Diffstat (limited to 'parse_xml.cpp')
-rw-r--r--parse_xml.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/parse_xml.cpp b/parse_xml.cpp
index 1435c4e..19ef771 100644
--- a/parse_xml.cpp
+++ b/parse_xml.cpp
@@ -656,6 +656,8 @@ struct CompatibilityMatrixConverter : public XmlNodeConverter<CompatibilityMatri
656 if (m.mType == SchemaType::FRAMEWORK) { 656 if (m.mType == SchemaType::FRAMEWORK) {
657 appendChildren(root, matrixKernelConverter, m.framework.mKernels, d); 657 appendChildren(root, matrixKernelConverter, m.framework.mKernels, d);
658 appendChild(root, sepolicyConverter(m.framework.mSepolicy, d)); 658 appendChild(root, sepolicyConverter(m.framework.mSepolicy, d));
659 } else if (m.mType == SchemaType::DEVICE) {
660 appendChild(root, vndkConverter(m.device.mVndk, d));
659 } 661 }
660 } 662 }
661 bool buildObject(CompatibilityMatrix *object, NodeType *root) const override { 663 bool buildObject(CompatibilityMatrix *object, NodeType *root) const override {