Home
last modified time | relevance | path

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

/system/libvintf/
DMatrixInstance.cpp37 bool isRegex) in MatrixInstance() argument
41 mIsRegex(isRegex) {} in MatrixInstance()
44 bool optional, bool isRegex) in MatrixInstance() argument
45 : mFqInstance(fqInstance), mRange(range), mOptional(optional), mIsRegex(isRegex) {} in MatrixInstance()
70 if (!isRegex()) { in matchInstance()
82 return isRegex() ? mFqInstance.getInstance() : kEmptyString; in regexPattern()
87 return isRegex() ? kEmptyString : mFqInstance.getInstance(); in exactInstance()
90 bool MatrixInstance::isRegex() const { in isRegex() function in android::vintf::MatrixInstance
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 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.cpp136 const std::string& instanceOrPattern, bool isRegex) { in splitInstance() argument
142 if (matrixInstance.isRegex() && isRegex) { in splitInstance()
144 } else if (!matrixInstance.isRegex() && !isRegex) { in splitInstance()
164 existingHal->removeInstance(interface, instanceOrPattern, isRegex); in splitInstance()
167 copy.insertInstance(interface, instanceOrPattern, isRegex); in splitInstance()
192 const std::string& instanceOrPattern, bool isRegex) { in addAllHalsAsOptional() argument
195 this->splitInstance(existingHal, interface, instanceOrPattern, isRegex); in addAllHalsAsOptional()
198 if (isRegex) { in addAllHalsAsOptional()
Dmain.cpp207 matrixInstance.isRegex() ? matrixInstance.regexPattern() in insert()
Dparse_string.cpp407 matrixInstance.isRegex() ? matrixInstance.regexPattern() in expandInstances()
DVintfObject.cpp685 if (!oldMatrixInstance.isRegex()) { in IsInstanceDeprecated()
/system/libvintf/include/vintf/
DMatrixInstance.h39 MatrixInstance(FqInstance&& fqInstance, VersionRange&& range, bool optional, bool isRegex);
41 bool isRegex);
60 bool isRegex() const;
DHalInterface.h39 bool isRegex)>& func) const;
43 bool insertInstance(const std::string& instanceOrPattern, bool isRegex);
46 bool removeInstance(const std::string& instanceOrPattern, bool isRegex);
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.h131 const std::string& instance, bool isRegex);