Home
last modified time | relevance | path

Searched refs:mat (Results 1 – 5 of 5) sorted by relevance

/system/libvintf/
DRuntimeInfo.cpp72 bool RuntimeInfo::checkCompatibility(const CompatibilityMatrix& mat, std::string* error, in checkCompatibility() argument
74 if (mat.mType != SchemaType::FRAMEWORK) { in checkCompatibility()
76 *error = "Should not check runtime info against " + to_string(mat.mType) in checkCompatibility()
81 if (kernelSepolicyVersion() < mat.framework.mSepolicy.kernelSepolicyVersion()) { in checkCompatibility()
85 " but required >= " + to_string(mat.framework.mSepolicy.kernelSepolicyVersion()); in checkCompatibility()
94 if (!mKernel.matchKernelRequirements(mat.framework.mKernels, error)) { in checkCompatibility()
100 const Version& matAvb = mat.framework.mAvbMetaVersion; in checkCompatibility()
DHalManifest.cpp181 std::vector<std::string> HalManifest::checkIncompatibleHals(const CompatibilityMatrix& mat) const { in checkIncompatibleHals()
183 for (const MatrixHal &matrixHal : mat.getHals()) { in checkIncompatibleHals()
217 std::set<std::string> HalManifest::checkUnusedHals(const CompatibilityMatrix& mat) const { in checkUnusedHals()
220 forEachInstance([&ret, &mat](const auto& manifestInstance) { in checkUnusedHals()
222 if (!mat.matchInstance(fqInstance.getPackage(), fqInstance.getVersion(), in checkUnusedHals()
289 bool HalManifest::checkCompatibility(const CompatibilityMatrix &mat, std::string *error) const { in checkCompatibility() argument
290 if (mType == mat.mType) { in checkCompatibility()
293 + to_string(mat.mType) + " compatibility matrix"; in checkCompatibility()
297 auto incompatibleHals = checkIncompatibleHals(mat); in checkCompatibility()
301 if (mat.level() != Level::UNSPECIFIED) in checkCompatibility()
[all …]
/system/libvintf/analyze_matrix/
Danalyze_matrix.cpp49 std::optional<std::set<std::string>> getInterfaces(const CompatibilityMatrix& mat) { in getInterfaces() argument
51 mat.forEachInstance([&set](const auto& matrixInstance) { in getInterfaces()
90 auto mat = readObject(FLAGS_input, gCompatibilityMatrixConverter); in main() local
91 if (!mat) { in main()
98 if (mat->level() == Level::UNSPECIFIED) { in main()
101 std::cout << mat->level() << std::endl; in main()
107 auto pvs = getInterfaces(*mat); in main()
/system/libvintf/include/vintf/
DHalManifest.h76 bool checkCompatibility(const CompatibilityMatrix &mat, std::string *error = nullptr) const;
162 std::vector<std::string> checkIncompatibleHals(const CompatibilityMatrix& mat) const;
171 std::set<std::string> checkUnusedHals(const CompatibilityMatrix& mat) const;
DRuntimeInfo.h76 bool checkCompatibility(const CompatibilityMatrix& mat, std::string* error = nullptr,