Home
last modified time | relevance | path

Searched refs:Level (Results 1 – 24 of 24) sorted by relevance

/system/libvintf/test/
Dvintf_object_tests.cpp571 ASSERT_EQ(Level{92}, vintfObject->getKernelLevel()); in TEST_F()
1010 return "compatibility_matrix." + std::to_string(static_cast<Level>(i)) + ".xml"; in getFileName()
1034 to_string(static_cast<Level>(level)) + "\"/>"); in expectTargetFcmVersion()
1254 void expectKernelFcmVersion(size_t targetFcm, Level kernelFcm) { in expectKernelFcmVersion()
1256 to_string(static_cast<Level>(targetFcm)) + "\">\n"; in expectKernelFcmVersion()
1257 if (kernelFcm != Level::UNSPECIFIED) { in expectKernelFcmVersion()
1327 expectKernelFcmVersion(Level{1}, Level{1}); in TEST_F()
1337 TEST_F(KernelTest, Level) { in TEST_F() argument
1338 expectKernelFcmVersion(1, Level{10}); in TEST_F()
1339 EXPECT_EQ(Level{10}, vintfObject->getKernelLevel()); in TEST_F()
[all …]
DLibVintfTest.cpp2069 EXPECT_EQ(Level::UNSPECIFIED, cm.level()); in TEST_F()
2074 EXPECT_EQ(Level::LEGACY, cm.level()); in TEST_F()
2088 EXPECT_EQ(Level::UNSPECIFIED, manifest.level()); in TEST_F()
2092 EXPECT_EQ(Level::LEGACY, manifest.level()); in TEST_F()
3938 EXPECT_EQ(Level{1}, ki.level()); in TEST_F()
3979 std::unique_ptr<CompatibilityMatrix> combine(Level deviceLevel, in combine()
4006 auto combined = combine(Level{1}, &matrices, &error); in TEST_F()
4048 auto combined = combine(Level{1}, &matrices, &error); in TEST_F()
4077 auto combined = combine(Level{1}, &matrices, &error); in TEST_F()
4103 auto combined = combine(Level{1}, &matrices, &error); in TEST_F()
[all …]
/system/libvintf/
DKernelInfo.cpp37 Level KernelInfo::level() const { in level()
73 const std::vector<MatrixKernel>& kernels, Level kernelLevel, std::string* error) const { in getMatchedKernelRequirements()
74 std::map<Level, std::vector<const MatrixKernel*>> kernelsForLevel; in getMatchedKernelRequirements()
88 if (kernelLevel == Level::UNSPECIFIED) { in getMatchedKernelRequirements()
93 if (matrixKernelLevel == Level::UNSPECIFIED) { in getMatchedKernelRequirements()
113 << (kernelLevel == Level::UNSPECIFIED ? "unspecified" : to_string(kernelLevel)) in getMatchedKernelRequirements()
139 if (kernelLevel == Level::UNSPECIFIED) { in getMatchedKernelRequirements()
143 if (matrixKernelLevel != Level::UNSPECIFIED && matrixKernelLevel >= Level::R) { in getMatchedKernelRequirements()
146 msg.mLevel = Level::R; in getMatchedKernelRequirements()
167 if (firstMatrixKernelLevel == Level::UNSPECIFIED || firstMatrixKernelLevel > kernelLevel) { in getMatchedKernelRequirements()
[all …]
Dutils.h60 inline Level convertFromApiLevel(size_t apiLevel) { in convertFromApiLevel()
62 return Level::LEGACY; in convertFromApiLevel()
64 return Level::O; in convertFromApiLevel()
66 return Level::O_MR1; in convertFromApiLevel()
68 return Level::UNSPECIFIED; in convertFromApiLevel()
DMatrixKernel.cpp30 void MatrixKernel::setSourceMatrixLevel(Level level) { in setSourceMatrixLevel()
34 Level MatrixKernel::getSourceMatrixLevel() const { in getSourceMatrixLevel()
DAssembleVintf.cpp354 if (manifest->level() == Level::UNSPECIFIED) return; in inferDeviceManifestKernelFcm()
356 if (manifest->level() < Level::R) return; in inferDeviceManifestKernelFcm()
362 if (manifest->kernel()->level() != Level::UNSPECIFIED) return; in inferDeviceManifestKernelFcm()
374 if (manifestToAdd.level() != Level::UNSPECIFIED) { in assembleHalManifest()
375 if (halManifest->level() == Level::UNSPECIFIED) { in assembleHalManifest()
485 if (manifest->level() != Level::UNSPECIFIED) { in setDeviceFcmVersion()
494 manifest->mLevel = Level::LEGACY; in setDeviceFcmVersion()
502 if (manifest->mLevel == Level::UNSPECIFIED) { in setDeviceFcmVersion()
524 Level getLowestFcmVersion(const CompatibilityMatrices& matrices) { in getLowestFcmVersion()
525 Level ret = Level::UNSPECIFIED; in getLowestFcmVersion()
[all …]
DVintfObject.cpp165 Level deviceLevel = Level::UNSPECIFIED; in getCombinedFrameworkMatrix()
172 if (deviceLevel == Level::UNSPECIFIED) { in getCombinedFrameworkMatrix()
179 if (deviceLevel == Level::UNSPECIFIED) { in getCombinedFrameworkMatrix()
183 Level fragmentLevel = fragment.level(); in getCombinedFrameworkMatrix()
184 if (fragmentLevel != Level::UNSPECIFIED && deviceLevel > fragmentLevel) { in getCombinedFrameworkMatrix()
190 if (deviceLevel == Level::UNSPECIFIED) { in getCombinedFrameworkMatrix()
519 Level level = Level::UNSPECIFIED; in getRuntimeInfo()
837 Level deviceLevel = deviceManifest->level(); in checkDeprecation()
838 if (deviceLevel == Level::UNSPECIFIED) { in checkDeprecation()
866 if (namedMatrix.level() == Level::UNSPECIFIED) continue; in checkDeprecation()
[all …]
DCompatibilityMatrix.cpp56 if (kernel.getSourceMatrixLevel() == Level::UNSPECIFIED) { in addKernel()
117 Level CompatibilityMatrix::level() const { in level()
273 if (kernel.getSourceMatrixLevel() == Level::UNSPECIFIED) { in addAllKernels()
338 Level deviceLevel, std::vector<CompatibilityMatrix>* matrices, std::string* error) { in combine()
351 if (e.level() == Level::UNSPECIFIED) { in combine()
468 Level CompatibilityMatrix::getSourceMatrixLevel(const MatrixKernel* matrixKernel) const { in getSourceMatrixLevel()
472 Level ret = matrixKernel->getSourceMatrixLevel(); in getSourceMatrixLevel()
473 if (ret != Level::UNSPECIFIED) return ret; in getSourceMatrixLevel()
DRuntimeInfo.cpp132 void RuntimeInfo::setKernelLevel(Level level) { in setKernelLevel()
136 Level RuntimeInfo::kernelLevel() const { in kernelLevel()
Dparse_string.cpp116 bool parse(const std::string& s, Level* l) { in parse()
118 *l = Level::UNSPECIFIED; in parse()
122 *l = Level::LEGACY; in parse()
129 *l = static_cast<Level>(value); in parse()
133 std::ostream& operator<<(std::ostream& os, Level l) { in operator <<()
134 if (l == Level::UNSPECIFIED) { in operator <<()
137 if (l == Level::LEGACY) { in operator <<()
Dcheck_vintf.cpp415 Level targetFcm = Level::UNSPECIFIED; in checkAllFiles()
422 if (hasFcmExt.value_or(false) || (targetFcm != Level::UNSPECIFIED && targetFcm >= Level::R)) { in checkAllFiles()
Dparse_xml.cpp656 if (kernel.getSourceMatrixLevel() != Level::UNSPECIFIED) { in mutateNode()
668 Level sourceMatrixLevel = Level::UNSPECIFIED; in buildObject()
670 !parseOptionalAttr(root, "level", Level::UNSPECIFIED, &sourceMatrixLevel, error) || in buildObject()
956 if (o.level() != Level::UNSPECIFIED) { in mutateNode()
965 parseOptionalAttr(root, "target-level", Level::UNSPECIFIED, &o->mLevel, error) && in buildObject()
995 if (m.mLevel != Level::UNSPECIFIED) { in mutateNode()
1054 if (!parseOptionalAttr(root, "target-level", Level::UNSPECIFIED, &object->mLevel, in buildObject()
1189 if (m.mLevel != Level::UNSPECIFIED) { in mutateNode()
1258 if (!parseOptionalAttr(root, "level", Level::UNSPECIFIED, &object->mLevel, error)) { in buildObject()
DHalManifest.cpp385 if (mat.level() != Level::UNSPECIFIED) in checkCompatibility()
387 if (level() != Level::UNSPECIFIED) in checkCompatibility()
472 Level HalManifest::level() const { in level()
632 if (!mergeField(&mLevel, &other->mLevel, Level::UNSPECIFIED)) { in addAll()
/system/libvintf/include/vintf/
DMatrixKernel.h66 void setSourceMatrixLevel(Level level);
67 Level getSourceMatrixLevel() const;
77 Level mSourceMatrixLevel = Level::UNSPECIFIED;
DKernelInfo.h41 Level level() const;
52 const std::vector<MatrixKernel>& kernels, Level kernelLevel,
77 Level mLevel = Level::UNSPECIFIED;
DCompatibilityMatrix.h52 Level level() const;
123 static std::unique_ptr<CompatibilityMatrix> combine(Level deviceLevel,
144 Level getSourceMatrixLevel(const MatrixKernel* matrixKernel) const;
158 Level mLevel = Level::UNSPECIFIED;
DRuntimeInfo.h103 void setKernelLevel(Level level);
104 Level kernelLevel() const;
DLevel.h32 enum Level : size_t { enum
DHalManifest.h105 Level level() const;
215 Level mLevel = Level::UNSPECIFIED;
Dparse_string.h38 std::ostream& operator<<(std::ostream& os, Level l);
71 bool parse(const std::string& s, Level* l);
DVintfObject.h192 Level getKernelLevel(std::string* error = nullptr);
/system/netd/libnetdutils/include/netdutils/
DLog.h123 void log(const std::string& entry) { record(Level::LOG, entry); } in log()
138 void info(const std::string& entry) { record(Level::INFO, entry); } in info()
153 void warn(const std::string& entry) { record(Level::WARN, entry); } in warn()
168 void error(const std::string& entry) { record(Level::ERROR, entry); } in error()
195 enum class Level { enum
202 void record(Level lvl, const std::string& entry);
/system/netd/libnetdutils/
DLog.cpp195 void Log::record(Log::Level lvl, const std::string& entry) { in record()
197 case Level::LOG: in record()
199 case Level::INFO: in record()
202 case Level::WARN: in record()
205 case Level::ERROR: in record()
/system/libvintf/analyze_matrix/
Danalyze_matrix.cpp91 if (mat->level() == Level::UNSPECIFIED) { in main()