• Home
  • Raw
  • Download

Lines Matching refs:component

1527     const std::string& component = components[i];  in VerifyImageLocation()  local
1528 DCHECK(!component.empty()); // Guaranteed by Split(). in VerifyImageLocation()
1529 std::vector<std::string> parts = android::base::Split(component, {kProfileSeparator}); in VerifyImageLocation()
1530 size_t wildcard_pos = component.find('*'); in VerifyImageLocation()
1535 component.c_str()); in VerifyImageLocation()
1541 component.c_str()); in VerifyImageLocation()
1547 component.c_str()); in VerifyImageLocation()
1554 component.c_str()); in VerifyImageLocation()
1561 if (wildcard_pos != component.size() - 1u) { in VerifyImageLocation()
1562 *error_msg = StringPrintf("Unsupported wildcard (*) position in %s", component.c_str()); in VerifyImageLocation()
1566 if (component.size() != 1u && component[wildcard_pos - 1u] != '/') { in VerifyImageLocation()
1568 component.c_str()); in VerifyImageLocation()
1572 *error_msg = StringPrintf("Primary component contains wildcard (*): %s", component.c_str()); in VerifyImageLocation()
1593 std::string component = named_components[i]; in MatchNamedComponents() local
1595 std::vector<std::string> parts = android::base::Split(component, {kProfileSeparator}); in MatchNamedComponents()
1598 component = std::move(parts[j]); in MatchNamedComponents()
1599 DCHECK(!component.empty()); // Checked by VerifyImageLocation() in MatchNamedComponents()
1605 size_t slash_pos = component.rfind('/'); in MatchNamedComponents()
1611 base_name = component.substr(slash_pos + 1u); in MatchNamedComponents()
1612 base_location = component; in MatchNamedComponents()
1614 base_name = component; in MatchNamedComponents()
1615 base_location = GetBcpComponentPath(0u) + component; in MatchNamedComponents()
1621 base_location = component.substr(0u, slash_pos + 1u) + base_name; in MatchNamedComponents()
1622 to_match = component; in MatchNamedComponents()
1628 to_match = path + component; in MatchNamedComponents()
1637 component.c_str()); in MatchNamedComponents()