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
119 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.cpp86 intf.forEachInstance([&](const auto& interface, const auto& instance, bool isRegex) { in forEachInstance() argument
91 optional, isRegex))) { in forEachInstance()
106 const std::string&, bool isRegex)>& func) const { in forEachInstance()
109 intf.forEachInstance([&](const auto& interface, const auto& instance, bool isRegex) { in forEachInstance() argument
110 return func(this->versionRanges, interface, instance, isRegex); in forEachInstance()
175 bool isRegex) { in insertInstance() argument
179 it->second.insertInstance(instance, isRegex); in insertInstance()
192 bool isRegex) { in removeInstance() argument
195 bool removed = it->second.removeInstance(instance, isRegex); in removeInstance()
DCompatibilityMatrix.cpp152 const std::string& instanceOrPattern, bool isRegex) { in splitInstance() argument
158 if (matrixInstance.isRegex() && isRegex) { in splitInstance()
160 } else if (!matrixInstance.isRegex() && !isRegex) { in splitInstance()
180 existingHal->removeInstance(interface, instanceOrPattern, isRegex); in splitInstance()
183 copy.insertInstance(interface, instanceOrPattern, isRegex); in splitInstance()
208 const std::string& instanceOrPattern, bool isRegex) { in addAllHalsAsOptional() argument
216 this->splitInstance(existingHal, interface, instanceOrPattern, isRegex); in addAllHalsAsOptional()
219 if (isRegex) { in addAllHalsAsOptional()
Dparse_string.cpp392 auto instance = matrixInstance.isRegex() ? matrixInstance.regexPattern() in expandInstances()
DVintfObject.cpp692 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.h72 const std::string& instanceOrPattern, bool isRegex)>& func) const;
83 void insertInstance(const std::string& interface, const std::string& instance, bool isRegex);
85 bool removeInstance(const std::string& interface, const std::string& instance, bool isRegex);
DCompatibilityMatrix.h141 const std::string& instance, bool isRegex);