summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYifan Hong2016-11-15 14:57:23 -0600
committerYifan Hong2017-01-18 18:04:39 -0600
commit676447acd00ebf93d1023f79fc02b5cbbb86dda2 (patch)
tree0801cad97f4c86d6e390f4c273bac10b0adecfcd /MatrixKernel.cpp
parent745e79f81c15db39e3278e226b35f0959342437a (diff)
downloadplatform-system-libvintf-676447acd00ebf93d1023f79fc02b5cbbb86dda2.tar.gz
platform-system-libvintf-676447acd00ebf93d1023f79fc02b5cbbb86dda2.tar.xz
platform-system-libvintf-676447acd00ebf93d1023f79fc02b5cbbb86dda2.zip
VendorManifest and CompatibilityMatrix from and to XML.
Usage: #include <vintf/VendorManifest.h> #include <vintf/parse_xml.h> VendorManifest vm; // ... std::string xml = gVendorManifestConverter(vm); VendorManifest vm2; bool success = gVendorManifestConverter(&vm2, xml); if (!success) ALOGW("%s", gVendorManifestConverter.lastError()); See Vendor Interface Object and Compatibility Matrix Design document and libvintf_test (test/main.cpp) for details. (Up to commit 4468534) Test: libvintf_test Bug: 32648352 Change-Id: I7e8ee8d2b9e61bf036e77a390712480cbbd452b4
Diffstat (limited to 'MatrixKernel.cpp')
-rw-r--r--MatrixKernel.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/MatrixKernel.cpp b/MatrixKernel.cpp
new file mode 100644
index 0000000..6ddc657
--- /dev/null
+++ b/MatrixKernel.cpp
@@ -0,0 +1,31 @@
1/*
2 * Copyright (C) 2017 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include "MatrixKernel.h"
18
19namespace android {
20namespace vintf {
21
22bool MatrixKernel::operator==(const MatrixKernel &other) const {
23 if (version != other.version)
24 return false;
25 if (configs != other.configs)
26 return false;
27 return true;
28}
29
30} // namespace vintf
31} // namespace android