/external/chromium_org/chrome/browser/autocomplete/ |
D | history_url_provider_unittest.cc | 330 EXPECT_LT(matches_.front().relevance, 1200); in TEST_F() 337 EXPECT_GE(matches_.front().relevance, 1410); in TEST_F() 564 int pandora_relevance = matches_[0].relevance; in TEST_F() 572 EXPECT_EQ(pandora_relevance, matches_[0].relevance); in TEST_F() 620 EXPECT_LE(1200, matches_[0].relevance); in TEST_F() 621 EXPECT_LT(matches_[0].relevance, 1210); in TEST_F() 627 int relevance; in TEST_F() member 640 if (test_cases[i].relevance == 0) { in TEST_F() 653 EXPECT_LE(test_cases[i].relevance, matches_[0].relevance); in TEST_F() 654 EXPECT_LT(matches_[0].relevance, test_cases[i].relevance + 10); in TEST_F() [all …]
|
D | autocomplete_result_unittest.cc | 36 match.relevance = last_match ? last_match->relevance - 100 : 1300; in AddMatch() 55 int relevance; member 117 match->relevance = data.relevance; in PopulateAutocompleteMatch() 143 EXPECT_EQ(expected_match.relevance, match.relevance) << i; in AssertResultMatches() 187 match.relevance = 1; in TEST_F() 283 EXPECT_EQ(1300, result.match_at(0)->relevance); in TEST_F() 285 EXPECT_EQ(1200, result.match_at(1)->relevance); in TEST_F() 287 EXPECT_EQ(1100, result.match_at(2)->relevance); in TEST_F() 289 EXPECT_EQ(1000, result.match_at(3)->relevance); in TEST_F() 328 EXPECT_EQ(1300, result.match_at(0)->relevance); in TEST_F() [all …]
|
D | zero_suggest_provider.cc | 253 int relevance = kDefaultZeroSuggestRelevance; in FillResults() local 256 if (relevances != NULL && !relevances->GetInteger(index, &relevance)) in FillResults() 265 *this, url, title, false, relevance, relevances != NULL)); in FillResults() 270 base::string16(), std::string(), std::string(), false, relevance, in FillResults() 281 AddMatchToMap(results[i].relevance(), AutocompleteMatchType::SEARCH_SUGGEST, in AddSuggestResultsToMap() 286 void ZeroSuggestProvider::AddMatchToMap(int relevance, in AddMatchToMap() argument 296 this, AutocompleteInput(), query_string, relevance, type, false, in AddMatchToMap() 317 if (!i.second && (match.relevance > i.first->second.relevance)) in AddMatchToMap() 323 AutocompleteMatch match(this, navigation.relevance(), false, in NavigationToMatch() 414 int relevance = 600; in ConvertResultsToAutocompleteMatches() local [all …]
|
D | autocomplete_match.cc | 43 relevance(0), in AutocompleteMatch() 55 int relevance, in AutocompleteMatch() argument 59 relevance(relevance), in AutocompleteMatch() 72 relevance(match.relevance), in AutocompleteMatch() 107 relevance = match.relevance; in operator =() 175 return (elem1.relevance == elem2.relevance) ? in MoreRelevant() 176 (elem1.contents < elem2.contents) : (elem1.relevance > elem2.relevance); in MoreRelevant()
|
D | bookmark_provider.cc | 107 if (match.relevance > 0) in DoAutocomplete() 241 match.relevance = std::min(kMaxBookmarkScore, in TitleMatchToACMatch() 246 if (match.relevance >= kMaxBookmarkScore) in TitleMatchToACMatch() 253 match.relevance += in TitleMatchToACMatch() 255 match.relevance = std::min(kMaxBookmarkScore, match.relevance); in TitleMatchToACMatch()
|
D | search_provider.cc | 242 int relevance, in Result() argument 245 relevance_(relevance), in Result() 263 int relevance, in SuggestResult() argument 266 : Result(from_keyword_provider, relevance, relevance_from_server), in SuggestResult() 300 int relevance, in NavigationResult() argument 302 : Result(from_keyword_provider, relevance, relevance_from_server), in NavigationResult() 332 return a.relevance() > b.relevance(); in operator ()() 403 int relevance, in CreateSearchSuggestion() argument 414 AutocompleteMatch match(autocomplete_provider, relevance, false, type); in CreateSearchSuggestion() 545 (sug_it != suggest_results->end()) ? sug_it->relevance() : -1; in RemoveStaleResults() [all …]
|
D | search_provider.h | 89 int relevance, 199 int relevance, 205 int relevance() const { return relevance_; } in relevance() function 206 void set_relevance(int relevance) { relevance_ = relevance; } in set_relevance() argument 249 int relevance, 304 int relevance,
|
D | shortcuts_provider.cc | 174 int relevance = CalculateScore(term_string, it->second, max_relevance); in GetMatches() local 175 if (relevance) { in GetMatches() 177 it->second, relevance, term_string, fixed_up_term_string, in GetMatches() 202 max_relevance = std::min(max_relevance, it->relevance); in GetMatches() 203 it->relevance = max_relevance; in GetMatches() 211 int relevance, in ShortcutToACMatch() argument 218 match.relevance = relevance; in ShortcutToACMatch()
|
D | search_provider_unittest.cc | 502 EXPECT_GT(term1_match.relevance, wyt_match.relevance); in TEST_F() 642 EXPECT_GT(wyt_match.relevance, term_match.relevance); in TEST_F() 708 EXPECT_GT(wyt_match.relevance, term_match.relevance); in TEST_F() 716 EXPECT_GT(term_match.relevance, wyt_match.relevance); in TEST_F() 733 EXPECT_GT(term_match.relevance, wyt_match.relevance); in TEST_F() 750 EXPECT_GT(term_match.relevance, wyt_match.relevance); in TEST_F() 771 EXPECT_GT(term_match_b.relevance, term_match_a.relevance); in TEST_F() 772 EXPECT_GT(term_match_a.relevance, wyt_match.relevance); in TEST_F() 795 EXPECT_GT(term_match_a.relevance, wyt_match.relevance); in TEST_F() 796 EXPECT_GT(wyt_match.relevance, term_match_b.relevance); in TEST_F() [all …]
|
D | history_quick_provider_unittest.cc | 274 int best_score = ac_matches_.begin()->relevance + 1; in RunTest() 283 EXPECT_LT(actual->relevance, best_score) in RunTest() 286 best_score = actual->relevance; in RunTest() 483 EXPECT_LT(ac_matches_[0].relevance, in TEST_F() 490 EXPECT_GE(ac_matches_[0].relevance, in TEST_F() 501 EXPECT_LT(ac_matches_[0].relevance, in TEST_F() 508 EXPECT_LT(ac_matches_[0].relevance, in TEST_F() 515 EXPECT_GE(ac_matches_[0].relevance, in TEST_F() 523 EXPECT_GE(ac_matches_[0].relevance, in TEST_F() 533 EXPECT_LT(ac_matches_[0].relevance, in TEST_F()
|
D | autocomplete_result.cc | 51 match.relevance : (match.relevance * demotion_it->second); in GetDemotedRelevance() 363 matches_.front().relevance : new_matches[0].relevance) - 1; in MergeMatchesByProvider() 374 match.relevance = std::min(max_relevance, match.relevance); in MergeMatchesByProvider()
|
D | history_url_provider.cc | 504 what_you_typed_match.relevance = CalculateRelevance(WHAT_YOU_TYPED, 0); in DoAutocomplete() 580 int relevance = -1; in DoAutocomplete() local 583 relevance = std::max(relevance, it->relevance); in DoAutocomplete() 605 relevance = (relevance > 0) ? (relevance - 1) : in DoAutocomplete() 608 NORMAL, relevance); in DoAutocomplete() 686 what_you_typed.relevance = CalculateRelevance(WHAT_YOU_TYPED, 0); in RunAutocompletePasses() 819 match->relevance = CalculateRelevance(type, 0); in FixupExactSuggestion() 1045 int relevance) { in HistoryMatchToACMatch() argument 1047 AutocompleteMatch match(this, relevance, in HistoryMatchToACMatch()
|
D | extension_app_provider.cc | 93 match.relevance = CalculateRelevance( in CreateAutocompleteMatch() 223 int relevance = 575 + static_cast<int>(type_count_boost) + in CalculateRelevance() local 225 DCHECK_LE(relevance, kMaxRelevance); in CalculateRelevance() 226 return relevance; in CalculateRelevance()
|
D | autocomplete_match_unittest.cc | 30 m1.relevance = cases[i].r1; in TEST() 31 m2.relevance = cases[i].r2; in TEST()
|
/external/chromium/chrome/browser/autocomplete/ |
D | autocomplete_match.cc | 13 relevance(0), in AutocompleteMatch() 25 int relevance, in AutocompleteMatch() argument 29 relevance(relevance), in AutocompleteMatch() 87 if (elem1.relevance == elem2.relevance) in MoreRelevant() 90 return elem1.relevance > elem2.relevance; in MoreRelevant()
|
D | history_contents_provider.cc | 32 MatchReference(const history::URLResult* result, int relevance) in MatchReference() 34 relevance(relevance) { in MatchReference() 38 int relevance; // Score of relevance computed by CalculateRelevance. member 43 if (a.relevance != b.relevance) in CompareMatchRelevance() 44 return a.relevance > b.relevance; in CompareMatchRelevance() 199 result_refs[i].relevance)); in ConvertResults()
|
D | autocomplete_result_unittest.cc | 23 int relevance; member 60 match->relevance = data.relevance; in PopulateAutocompleteMatch() 85 EXPECT_EQ(expected_match.relevance, match.relevance) << i; in AssertResultMatches()
|
D | extension_app_provider.cc | 75 match.relevance = CalculateRelevance(input.type(), in Start() 169 int relevance = 575 + static_cast<int>(type_count_boost) + in CalculateRelevance() local 171 DCHECK_LE(relevance, kMaxRelevance); in CalculateRelevance() 172 return relevance; in CalculateRelevance()
|
D | search_provider.cc | 639 int relevance = CalculateRelevanceForHistory(i->time, term_looks_like_url, in AddHistoryResultsToMap() local 641 if (i != results.begin() && relevance >= last_relevance) in AddHistoryResultsToMap() 642 relevance = last_relevance - 1; in AddHistoryResultsToMap() 643 last_relevance = relevance; in AddHistoryResultsToMap() 646 relevance, in AddHistoryResultsToMap() 752 int relevance, in AddMatchToMap() argument 758 AutocompleteMatch match(this, relevance, false, type); in AddMatchToMap() 848 if (!i.second && (match.relevance > i.first->second.relevance)) in AddMatchToMap() 854 int relevance, in NavigationToMatch() argument 858 AutocompleteMatch match(this, relevance, false, in NavigationToMatch()
|
D | search_provider_unittest.cc | 261 EXPECT_GT(term1_match.relevance, what_you_typed_match.relevance); in TEST_F() 391 EXPECT_GT(instant_match.relevance, what_you_typed_match.relevance); in TEST_F() 493 EXPECT_GT(what_you_typed_match.relevance, term_match.relevance); in TEST_F()
|
D | keyword_provider.cc | 238 matches_.back().relevance = matches_[0].relevance - (i + 1); in Start() 388 int relevance) { in CreateAutocompleteMatch() argument 400 if (relevance < 0) { in CreateAutocompleteMatch() 401 relevance = in CreateAutocompleteMatch() 409 AutocompleteMatch result(this, relevance, false, in CreateAutocompleteMatch()
|
D | autocomplete_match.h | 87 int relevance, 140 int relevance; member
|
/external/chromium_org/chrome/browser/ui/app_list/search/ |
D | chrome_search_result.h | 52 double relevance() { return relevance_; } in relevance() function 56 void set_relevance(double relevance) { relevance_ = relevance; } in set_relevance() argument
|
D | mixer_unittest.cc | 23 TestSearchResult(const std::string& id, double relevance) { in TestSearchResult() argument 26 set_relevance(relevance); in TestSearchResult() 36 new TestSearchResult(id(), relevance())).Pass(); in Duplicate() 58 const double relevance = 1.0 - i / 10.0; in Start() local 60 new TestSearchResult(id, relevance)).Pass()); in Start()
|
/external/clang/test/SemaObjC/ |
D | default-synthesize-1.m | 92 @property(assign,readonly) float relevance; property 105 -(float)relevance { method 111 -(id)initWithNode:(id )node relevance:(float)relevance isTitleMatch:(char)isTitleMatch { 112 relevance = 0.0;
|