Hide CompatibiilityMatrix::findKernel and getSepolicy
as part of the effort to minimize public API for libvintf.
Bug: 34620633
Test: pass
Change-Id: I0218c317ceae48be45f7c54d29ebf0c702c23150
diff --git a/RuntimeInfo.cpp b/RuntimeInfo.cpp
index c987561..6b09a7c 100644
--- a/RuntimeInfo.cpp
+++ b/RuntimeInfo.cpp
@@ -242,15 +242,15 @@
bool RuntimeInfo::checkCompatibility(const CompatibilityMatrix &mat,
std::string *error) const {
- if (kernelSepolicyVersion() != mat.getSepolicy().kernelSepolicyVersion()) {
+ if (kernelSepolicyVersion() != mat.mSepolicy.kernelSepolicyVersion()) {
if (error != nullptr) {
*error = "kernelSepolicyVersion = " + to_string(kernelSepolicyVersion())
- + " but required " + to_string(mat.getSepolicy().kernelSepolicyVersion());
+ + " but required " + to_string(mat.mSepolicy.kernelSepolicyVersion());
}
return false;
}
- // TODO(b/35217573): check sepolicy version against mat.getSepolicy().sepolicyVersion() here.
+ // TODO(b/35217573): check sepolicy version against mat.mSepolicy.sepolicyVersion() here.
const MatrixKernel *matrixKernel = mat.findKernel(this->mKernelVersion);
if (matrixKernel == nullptr) {