Searched defs:relevance (Results 1 - 20 of 20) sorted by relevance

/external/chromium_org/ui/app_list/search/
H A Dtokenized_string_match.h21 // calculates a relevance score between [0, 1] and marks the matched portions
22 // of text. A relevance of zero means the two are completely different to each
23 // other. The higher the relevance score, the better the two strings are
32 // Calculates the relevance and hits. Returns true if the two strings are
33 // somewhat matched, i.e. relevance score is not zero.
39 double relevance() const { return relevance_; } function in class:app_list::TokenizedStringMatch
H A Dtokenized_string_match.cc40 // A relevance score that represents no match.
80 double relevance() const { return current_relevance_; } function in class:app_list::__anon16543::PrefixMatcher
86 State() : relevance(kNoMatchScore) {}
87 State(double relevance, argument
92 : relevance(relevance),
99 double relevance; member in struct:app_list::__anon16543::PrefixMatcher::State
114 // calculate relevance and matching ranges. And the current stats is
168 current_relevance_ = last_match.relevance;
203 relevance_ = matcher.relevance();
[all...]
/external/chromium_org/chrome/browser/autocomplete/
H A Dshortcuts_provider.cc152 // Don't return shortcuts with zero relevance.
153 int relevance = CalculateScore(term_string, it->second, max_relevance); local
154 if (relevance) {
155 matches_.push_back(ShortcutToACMatch(it->second, relevance, input,
177 max_relevance = std::min(max_relevance, it->relevance);
178 it->relevance = max_relevance;
186 int relevance,
192 match.relevance = relevance;
184 ShortcutToACMatch( const history::ShortcutsDatabase::Shortcut& shortcut, int relevance, const AutocompleteInput& input, const base::string16& fixed_up_input_text) argument
H A Dzero_suggest_provider.cc67 // The maximum relevance of the top match from this provider.
153 // url match relevance.
286 AutocompleteMatch match(this, navigation.relevance(), false,
368 int relevance = 600; local
383 relevance, true, current_query_string16, languages); local
385 --relevance;
414 // The placeholder suggestion for the current URL has high relevance so
417 match.relevance = GetVerbatimRelevance();
H A Dautocomplete_provider_unittest.cc49 TestProvider(int relevance, const base::string16& prefix, argument
55 relevance_(relevance),
259 // don't rely on kResultsPerProvided and default relevance ordering
382 match.relevance = 1000; // Arbitrary non-zero value.
498 // Make sure the default match gets set to the highest relevance match. The
499 // highest relevance matches should come from the second provider.
H A Dhistory_url_provider_unittest.cc352 EXPECT_LT(matches_.front().relevance, 1200);
359 EXPECT_GE(matches_.front().relevance, 1410);
587 int pandora_relevance = matches_[0].relevance;
595 EXPECT_EQ(pandora_relevance, matches_[0].relevance);
644 EXPECT_LE(1200, matches_[0].relevance);
645 EXPECT_LT(matches_[0].relevance, 1210);
651 int relevance; member in struct:TestCase
664 if (test_cases[i].relevance == 0) {
674 // Actual relevance should be at least what test_cases expects and
676 EXPECT_LE(test_cases[i].relevance, matches
685 int relevance; member in struct:TestCase
[all...]
H A Dhistory_url_provider.cc115 // Calculates a new relevance score applying half-life time decaying to |count|
124 // Back off if above relevance cap.
146 // Returns a new relevance score for the given |match| based on the
147 // |old_relevance| score and |scoring_params|. The new relevance score is
161 int relevance = CalculateRelevanceUsingScoreBuckets( local
168 relevance = CalculateRelevanceUsingScoreBuckets(
169 scoring_params.visited_count_buckets, time_since_last_visit, relevance,
173 DCHECK_LE(relevance, old_relevance);
174 return relevance;
520 what_you_typed_match.relevance
866 int relevance = matches_.empty() ? local
1131 HistoryMatchToACMatch( const HistoryURLProviderParams& params, size_t match_number, MatchType match_type, int relevance) argument
[all...]
/external/chromium_org/chrome/browser/ui/app_list/search/
H A Dmixer_unittest.cc23 TestSearchResult(const std::string& id, double relevance) argument
27 set_relevance(relevance);
36 new TestSearchResult(id(), relevance())).Pass();
71 const double relevance = 1.0 - i / 10.0; variable
72 Add(scoped_ptr<SearchResult>(new TestSearchResult(id, relevance)).Pass());
/external/chromium_org/components/omnibox/
H A Dautocomplete_match.h90 int relevance,
266 // The relevance of this match. See table in autocomplete.h for scores
269 // supply matches with appropriate relevance.
273 int relevance; member in struct:AutocompleteMatch
H A Dautocomplete_result_unittest.cc56 match.relevance =
57 matches->empty() ? 1300 : (matches->back().relevance - 100);
77 int relevance; member in struct:AutocompleteResultTest::TestData
138 match->relevance = data.relevance;
165 EXPECT_EQ(expected_match.relevance, match.relevance) << i;
211 match.relevance = 1;
231 // Tests that if the new results have a lower max relevance score than last,
232 // any copied results have their relevance shifte
[all...]
H A Dkeyword_provider.cc367 int relevance) {
378 if (relevance < 0) {
379 relevance =
387 AutocompleteMatch match(this, relevance, false,
361 CreateAutocompleteMatch( const TemplateURL* template_url, const AutocompleteInput& input, size_t prefix_length, const base::string16& remaining_input, bool allowed_to_be_default_match, int relevance) argument
H A Dsearch_suggestion_parser.h33 // simply containing relevance-ranked search and navigation suggestions.
42 int relevance,
56 int relevance() const { return relevance_; } function in class:SearchSuggestionParser::Result
57 void set_relevance(int relevance) { relevance_ = relevance; } argument
73 // Returns the default relevance value for this result (which may
90 // The relevance score.
94 // Whether this result's relevance score was fully or partly calculated
124 int relevance,
192 int relevance,
[all...]
H A Dautocomplete_match.cc41 relevance(0),
52 int relevance,
56 relevance(relevance),
68 relevance(match.relevance),
105 relevance = match.relevance;
164 // For equal-relevance matches, we sort alphabetically, so that providers
167 return (elem1.relevance
51 AutocompleteMatch(AutocompleteProvider* provider, int relevance, bool deletable, Type type) argument
[all...]
H A Dsearch_suggestion_parser.cc45 int relevance,
51 relevance_(relevance),
71 int relevance,
76 relevance,
177 int relevance,
181 : Result(from_keyword_provider, relevance, relevance_from_server, type,
351 // Reset suggested relevance information.
397 int relevance = default_result_relevance; local
409 // Apply valid suggested relevance scores; discard invalid lists.
410 if (relevances != NULL && !relevances->GetInteger(index, &relevance))
44 Result(bool from_keyword_provider, int relevance, bool relevance_from_server, AutocompleteMatchType::Type type, const std::string& deletion_url) argument
60 SuggestResult( const base::string16& suggestion, AutocompleteMatchType::Type type, const base::string16& match_contents, const base::string16& match_contents_prefix, const base::string16& annotation, const base::string16& answer_contents, const base::string16& answer_type, const std::string& suggest_query_params, const std::string& deletion_url, bool from_keyword_provider, int relevance, bool relevance_from_server, bool should_prefetch, const base::string16& input_text) argument
170 NavigationResult( const AutocompleteSchemeClassifier& scheme_classifier, const GURL& url, AutocompleteMatchType::Type type, const base::string16& description, const std::string& deletion_url, bool from_keyword_provider, int relevance, bool relevance_from_server, const base::string16& input_text, const std::string& languages) argument
475 suggest_query_params, deletion_url, is_keyword_result, relevance, local
[all...]
H A Dsearch_provider.cc111 // Sort in descending relevance order.
112 return a.relevance() > b.relevance();
397 // Apply calculated relevance scores to suggestions if valid relevances were
458 // relevance if necessary, so at least one match is allowed to be default.
966 (first_match->relevance > CalculateRelevanceForVerbatim()) &&
977 // In the absence of suggested relevance scores, use only the single
978 // highest-scoring result. (The results are already sorted by relevance.)
1053 int relevance = CalculateRelevanceForHistory( local
1069 is_keyword, relevance, fals
[all...]
/external/chromium_org/ui/app_list/
H A Dsearch_result.h98 double relevance() const { return relevance_; } function in class:app_list::SearchResult
134 void set_relevance(double relevance) { relevance_ = relevance; } argument
/external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/omnibox/
H A DAutocompleteController.java215 private static OmniboxSuggestion buildOmniboxSuggestion(int nativeType, int relevance, argument
219 return new OmniboxSuggestion(nativeType, relevance, transition, text, description,
H A DOmniboxSuggestion.java92 public OmniboxSuggestion(int nativeType, int relevance, int transition, argument
97 mRelevance = relevance;
178 * @return The relevance score of this suggestion.
186 return mType + " relevance=" + mRelevance + " \"" + mDisplayText + "\" -> " + mUrl;
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
H A Dorg.eclipse.jdt.core_3.6.2.v_A76_R36x.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...
H A Dorg.eclipse.jface.text_3.6.1.r361_v20100825-0800.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF.RSA META ...

Completed in 264 milliseconds