Home
last modified time | relevance | path

Searched refs:isRegex (Results 1 – 10 of 10) sorted by relevance

/system/libvintf/
DMatrixInstance.cpp38 bool optional, bool isRegex) in MatrixInstance() argument
43 mIsRegex(isRegex) {} in MatrixInstance()
46 const VersionRange& range, bool optional, bool isRegex) in MatrixInstance() argument
51 mIsRegex(isRegex) {} in MatrixInstance()
80 if (!isRegex()) { in matchInstance()
92 return isRegex() ? mFqInstance.getInstance() : kEmptyString; in regexPattern()
97 return isRegex() ? kEmptyString : mFqInstance.getInstance(); in exactInstance()
100 bool MatrixInstance::isRegex() const { in isRegex() function in android::vintf::MatrixInstance
118 std::string instanceDescription = isRegex() ? regexPattern() : exactInstance(); in description()
DHalInterface.cpp32 const std::function<bool(const std::string&, const std::string&, bool isRegex)>& func) const { in forEachInstance()
55 bool HalInterface::insertInstance(const std::string& instanceOrPattern, bool isRegex) { in insertInstance() argument
56 if (isRegex) { in insertInstance()
63 bool HalInterface::removeInstance(const std::string& instanceOrPattern, bool isRegex) { in removeInstance() argument
64 if (isRegex) { in removeInstance()
DMatrixHal.cpp59 intf.forEachInstance([&](const auto& interface, const auto& instance, bool isRegex) { in forEachInstance() argument
64 optional, isRegex))) { in forEachInstance()
79 const std::string&, bool isRegex)>& func) const { in forEachInstance()
82 intf.forEachInstance([&](const auto& interface, const auto& instance, bool isRegex) { in forEachInstance() argument
83 return func(this->versionRanges, interface, instance, isRegex); in forEachInstance()
148 bool isRegex) { in insertInstance() argument
152 it->second.insertInstance(instance, isRegex); in insertInstance()
165 bool isRegex) { in removeInstance() argument
168 bool removed = it->second.removeInstance(instance, isRegex); in removeInstance()
DCompatibilityMatrix.cpp153 const std::string& instanceOrPattern, bool isRegex) { in splitInstance() argument
159 if (matrixInstance.isRegex() && isRegex) { in splitInstance()
161 } else if (!matrixInstance.isRegex() && !isRegex) { in splitInstance()
181 existingHal->removeInstance(interface, instanceOrPattern, isRegex); in splitInstance()
184 copy.insertInstance(interface, instanceOrPattern, isRegex); in splitInstance()
209 const std::string& instanceOrPattern, bool isRegex) { in addAllHalsAsOptional() argument
217 this->splitInstance(existingHal, interface, instanceOrPattern, isRegex); in addAllHalsAsOptional()
220 if (isRegex) { in addAllHalsAsOptional()
Dparse_string.cpp406 auto instance = matrixInstance.isRegex() ? matrixInstance.regexPattern() in expandInstances()
DVintfObject.cpp671 if (!oldMatrixInstance.isRegex()) { in IsInstanceDeprecated()
/system/libvintf/include/vintf/
DHalInterface.h39 bool isRegex)>& func) const;
43 bool insertInstance(const std::string& instanceOrPattern, bool isRegex);
46 bool removeInstance(const std::string& instanceOrPattern, bool isRegex);
DMatrixInstance.h41 bool isRegex);
43 bool optional, bool isRegex);
63 bool isRegex() const;
DMatrixHal.h63 const std::string& instanceOrPattern, bool isRegex)>& func) const;
74 void insertInstance(const std::string& interface, const std::string& instance, bool isRegex);
76 bool removeInstance(const std::string& interface, const std::string& instance, bool isRegex);
DCompatibilityMatrix.h135 const std::string& instance, bool isRegex);