Home
last modified time | relevance | path

Searched refs:type_strings (Results 1 – 2 of 2) sorted by relevance

/system/core/property_service/libpropertyinfoserializer/
Dproperty_info_file.cpp33 bool IsTypeValid(const std::vector<std::string>& type_strings) { in IsTypeValid() argument
34 if (type_strings.empty()) { in IsTypeValid()
39 if (type_strings[0] == "enum") { in IsTypeValid()
40 return type_strings.size() > 1; in IsTypeValid()
44 if (type_strings.size() != 1) { in IsTypeValid()
52 if (type_strings[0] == type) { in IsTypeValid()
78 auto type_strings = std::vector<std::string>{}; in ParsePropertyInfoLine()
81 type_strings.emplace_back(type); in ParsePropertyInfoLine()
85 if (!type_strings.empty() && !IsTypeValid(type_strings)) { in ParsePropertyInfoLine()
86 *error = "Type '" + Join(type_strings, " ") + "' is not valid"; in ParsePropertyInfoLine()
[all …]
/system/core/init/
Dproperty_type.cpp37 auto type_strings = Split(type_string, " "); in CheckType() local
38 if (type_strings.empty()) { in CheckType()
41 auto type = type_strings[0]; in CheckType()
76 for (auto it = std::next(type_strings.begin()); it != type_strings.end(); ++it) { in CheckType()