Home
last modified time | relevance | path

Searched refs:matches_ (Results 1 – 25 of 25) sorted by relevance

/external/chromium_org/components/omnibox/
Dautocomplete_result.cc125 matches_.reserve(kMaxMatches); in AutocompleteResult()
185 std::copy(matches.begin(), matches.end(), std::back_inserter(matches_)); in AppendMatches()
193 for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i) in SortAndCull()
197 &matches_); in SortAndCull()
208 for (AutocompleteResult::iterator it = matches_.begin(); in SortAndCull()
209 (it != matches_.end()) && !has_legal_default_match_without_completion; in SortAndCull()
218 size_t max_num_matches = std::min(kMaxMatches, matches_.size()); in SortAndCull()
220 std::sort(matches_.begin(), matches_.end(), comparing_object); in SortAndCull()
221 if (!matches_.empty() && in SortAndCull()
223 *matches_.begin(), has_legal_default_match_without_completion)) { in SortAndCull()
[all …]
Dsearch_provider.cc201 matches_.clear(); in Start()
259 matches_.push_back(match); in Start()
446 if (!matches_.empty() && in UpdateMatches()
456 (FindTopMatch() == matches_.end())) { in UpdateMatches()
477 if (!is_extension_keyword && (FindTopMatch() == matches_.end())) { in UpdateMatches()
492 DCHECK(is_extension_keyword || (FindTopMatch() != matches_.end())); in UpdateMatches()
495 "Omnibox.SearchProviderMatches", matches_.size(), 1, 6, 7); in UpdateMatches()
501 if ((first_match != matches_.end()) && in UpdateMatches()
826 for (ACMatches::iterator it = matches_.begin(); it != matches_.end(); in ConvertResultsToAutocompleteMatches()
913 matches_.clear(); in ConvertResultsToAutocompleteMatches()
[all …]
Dautocomplete_provider.h192 const ACMatches& matches() const { return matches_; } in matches()
239 ACMatches matches_; variable
Dkeyword_provider.cc207 matches_.clear(); in Start()
297 matches_.push_back(CreateAutocompleteMatch( in Start()
310 matches_.push_back(CreateAutocompleteMatch( in Start()
Dbase_search_provider.cc460 for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i) { in DeleteMatchFromMatches()
467 matches_.erase(i); in DeleteMatchFromMatches()
Dautocomplete_result.h189 ACMatches matches_; variable
/external/chromium_org/chrome/browser/autocomplete/
Dhistory_url_provider_unittest.cc217 ACMatches matches_; member in HistoryURLProviderTest
302 matches_ = autocomplete_->matches(); in RunTest()
306 for (ACMatches::iterator i = matches_.begin(); i != matches_.end(); ++i) in RunTest()
309 input.current_page_classification(), false, &matches_); in RunTest()
310 std::sort(matches_.begin(), matches_.end(), in RunTest()
313 ASSERT_EQ(num_results, matches_.size()) << "Input text: " << text in RunTest()
316 EXPECT_EQ(expected_urls[i].url, matches_[i].destination_url.spec()); in RunTest()
318 matches_[i].allowed_to_be_default_match); in RunTest()
352 EXPECT_LT(matches_.front().relevance, 1200); in TEST_F()
359 EXPECT_GE(matches_.front().relevance, 1410); in TEST_F()
[all …]
Dshortcuts_provider.cc71 matches_.clear(); in Start()
107 matches_.erase(std::remove_if(matches_.begin(), matches_.end(), in DeleteMatch()
109 matches_.end()); in DeleteMatch()
155 matches_.push_back(ShortcutToACMatch(it->second, relevance, input, in GetMatches()
157 matches_.back().ComputeStrippedDestinationURL(template_url_service); in GetMatches()
164 input.current_page_classification(), false, &matches_); in GetMatches()
166 std::partial_sort(matches_.begin(), in GetMatches()
167 matches_.begin() + in GetMatches()
168 std::min(AutocompleteProvider::kMaxMatches, matches_.size()), in GetMatches()
169 matches_.end(), &AutocompleteMatch::MoreRelevant); in GetMatches()
[all …]
Dbuiltin_provider.cc65 matches_.clear(); in Start()
130 (i != builtins_.end()) && (matches_.size() < kMaxMatches); ++i) { in Start()
144 for (size_t i = 0; i < matches_.size(); ++i) in Start()
145 matches_[i].relevance = kRelevance + matches_.size() - (i + 1); in Start()
147 (matches_.size() == 1)) { in Start()
151 matches_[0].relevance = 1250; in Start()
152 matches_[0].allowed_to_be_default_match = true; in Start()
168 matches_.push_back(match); in AddMatch()
Dbookmark_provider.cc70 matches_.clear(); in Start()
121 matches_.push_back(match); in DoAutocomplete()
126 std::min(matches_.size(), AutocompleteProvider::kMaxMatches); in DoAutocomplete()
127 std::partial_sort(matches_.begin(), matches_.begin() + num_matches, in DoAutocomplete()
128 matches_.end(), AutocompleteMatch::MoreRelevant); in DoAutocomplete()
129 matches_.resize(num_matches); in DoAutocomplete()
Dzero_suggest_provider.cc94 matches_.clear(); in Start()
344 matches_.clear(); in ConvertResultsToAutocompleteMatches()
367 matches_.push_back(current_url_match_); in ConvertResultsToAutocompleteMatches()
384 matches_.push_back(NavigationToMatch(nav)); in ConvertResultsToAutocompleteMatches()
395 matches_.push_back(current_url_match_); in ConvertResultsToAutocompleteMatches()
398 matches_.push_back(it->second); in ConvertResultsToAutocompleteMatches()
404 matches_.push_back(NavigationToMatch(*it)); in ConvertResultsToAutocompleteMatches()
467 results_from_cache_ = !matches_.empty(); in MaybeUseCachedSuggestions()
Dhistory_provider.cc59 for (ACMatches::iterator i(matches_.begin()); i != matches_.end(); ++i) { in DeleteMatchFromMatches()
71 matches_.erase(i); in DeleteMatchFromMatches()
Dhistory_url_provider.cc500 matches_.clear(); in Start()
527 matches_.push_back(what_you_typed_match); in Start()
570 matches_.clear(); in Start()
833 matches_.push_back(HistoryMatchToACMatch(params, 0, INLINE_AUTOCOMPLETE, in PromoteMatchesIfNecessary()
837 matches_.push_back(params.what_you_typed_match); in PromoteMatchesIfNecessary()
841 matches_.push_back(params.what_you_typed_match); in PromoteMatchesIfNecessary()
862 matches_.clear(); in QueryComplete()
866 int relevance = matches_.empty() ? in QueryComplete()
869 matches_[0].relevance; in QueryComplete()
881 if (!matches_.empty()) { in QueryComplete()
[all …]
Dshortcuts_provider_unittest.cc221 const ACMatchClassifications matches_; member in ClassifyTest
227 matches_(matches) { in ClassifyTest()
235 ShortcutsProvider::CreateWordMapForString(find_text), text_, matches_); in RunTest()
257 return matches_; in Leftovers()
261 std::set<ExpectedURLAndAllowedToBeDefault> matches_; member in ShortcutsProviderTest::SetShouldContain
344 matches_.insert(ExpectedURLAndAllowedToBeDefault( in SetShouldContain()
350 EXPECT_EQ(1U, matches_.erase(expected)); in operator ()()
Dkeyword_extensions_delegate_impl.h51 ACMatches* matches() { return &provider_->matches_; } in matches()
Dhistory_quick_provider.cc60 matches_.clear(); in Start()
217 matches_.push_back(QuickMatchToACMatch(history_match, max_match_score)); in DoAutocomplete()
Dhistory_quick_provider_unittest.cc122 std::set<std::string> LeftOvers() const { return matches_; } in LeftOvers()
125 std::set<std::string> matches_; member in HistoryQuickProviderTest::SetShouldContain
259 matches_.insert(iter->destination_url.spec()); in SetShouldContain()
264 EXPECT_EQ(1U, matches_.erase(expected)) in operator ()()
Dautocomplete_provider_unittest.cc91 matches_.clear(); in Start()
155 matches_.push_back(match); in AddResultsWithSearchTermsArgs()
Dsearch_provider_unittest.cc3243 provider_->matches_.push_back(match); in TEST_F()
3246 EXPECT_TRUE(provider_->matches_.empty()); in TEST_F()
3257 provider_->matches_.push_back(match); in TEST_F()
/external/chromium_org/components/url_matcher/
Dsubstring_set_matcher.cc243 matches_(other.matches_) {} in AhoCorasickNode()
250 matches_ = other.matches_; in operator =()
264 matches_.insert(id); in AddMatch()
269 matches_.insert(matches.begin(), matches.end()); in AddMatches()
Dsubstring_set_matcher.h104 const Matches& matches() const { return matches_; } in matches()
114 Matches matches_; variable
/external/chromium_org/components/query_parser/
Dsnippet.h58 const MatchPositions& matches() const { return matches_; } in matches()
68 MatchPositions matches_; variable
Dsnippet.cc260 matches_.push_back(std::make_pair(first, snippet.size())); in ComputeSnippet()
299 matches_.swap(other->matches_); in Swap()
/external/chromium_org/extensions/common/features/
Dsimple_feature.h139 URLPatternSet matches_; variable
Dsimple_feature.cc271 ParseURLPatterns(value, "matches", &matches_); in Parse()
409 !matches_.MatchesURL(url)) { in IsAvailableToContext()