Home
last modified time | relevance | path

Searched refs:CorpusResult (Results 1 – 22 of 22) sorted by relevance

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DRankAwarePromoter.java45 void promoteSuggestions(Iterable<CorpusResult> suggestions, int maxPromoted, in promoteSuggestions()
51 LinkedList<CorpusResult> highRankingSuggestions = new LinkedList<CorpusResult>(); in promoteSuggestions()
52 LinkedList<CorpusResult> lowRankingSuggestions = new LinkedList<CorpusResult>(); in promoteSuggestions()
72 private void promoteTopSuggestions(LinkedList<CorpusResult> highRankingSuggestions, in promoteTopSuggestions()
92 private void promoteEquallyFromEachCorpus(LinkedList<CorpusResult> suggestions, in promoteEquallyFromEachCorpus()
125 private void partitionSuggestionsByRank(Iterable<CorpusResult> suggestions, in partitionSuggestionsByRank()
126 LinkedList<CorpusResult> highRankingSuggestions, in partitionSuggestionsByRank()
127 LinkedList<CorpusResult> lowRankingSuggestions) { in partitionSuggestionsByRank()
129 for (CorpusResult result : suggestions) { in partitionSuggestionsByRank()
168 private int roundRobin(LinkedList<CorpusResult> results, int maxPromoted, int stripeSize, in roundRobin()
[all …]
DSuggestions.java63 private final CorpusResult[] mCorpusResults;
65 private CorpusResult mWebResult;
74 mCorpusResults = new CorpusResult[mExpectedCorpora.size()]; in Suggestions()
124 for (CorpusResult result : mCorpusResults) { in getIncludedCorpora()
191 public void addCorpusResults(List<CorpusResult> corpusResults) { in addCorpusResults()
193 for (CorpusResult corpusResult : corpusResults) { in addCorpusResults()
199 for (CorpusResult corpusResult : corpusResults) { in addCorpusResults()
265 for (CorpusResult result : mCorpusResults) { in close()
325 public Iterable<CorpusResult> getCorpusResults() { in getCorpusResults()
326 ArrayList<CorpusResult> results = new ArrayList<CorpusResult>(mCorpusResults.length); in getCorpusResults()
[all …]
DSuggestionsProviderImpl.java101 private void updateShouldQueryStrategy(CorpusResult cursor) { in updateShouldQueryStrategy()
128 Consumer<CorpusResult> receiver; in getSuggestions()
134 receiver = new NoOpConsumer<CorpusResult>(); in getSuggestions()
167 private class SuggestionCursorReceiver implements Consumer<CorpusResult> {
171 private final ArrayList<CorpusResult> mPendingResults;
188 mPendingResults = new ArrayList<CorpusResult>(); in SuggestionCursorReceiver()
191 public boolean consume(CorpusResult cursor) { in consume()
DCorpusResult.java23 public interface CorpusResult extends SuggestionCursor { interface
DMultiSourceCorpus.java137 public CorpusResult getSuggestions(String query, int queryLimit, boolean onlyCorpus) { in getSuggestions()
161 protected class Result extends ListSuggestionCursor implements CorpusResult {
DSingleSourceCorpusResult.java23 public class SingleSourceCorpusResult extends SuggestionCursorWrapper implements CorpusResult {
DLogger.java82 void logLatency(CorpusResult result); in logLatency()
DCorpus.java33 public interface Corpus extends SuggestionCursorProvider<CorpusResult> {
DSingleCorpusPromoter.java47 CorpusResult corpusResult = suggestions.getCorpusResult(mCorpus); in pickPromoted()
DWebPromoter.java51 CorpusResult webResult = suggestions.getWebResult(); in pickPromoted()
DSingleSourceCorpus.java60 public CorpusResult getSuggestions(String query, int queryLimit, boolean onlyCorpus) { in getSuggestions()
DEventLogLogger.java94 public void logLatency(CorpusResult result) { in logLatency()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DRankAwarePromoterTest.java50 List<CorpusResult> suggestions = getSuggestions(TEST_QUERY); in testPromotesExpectedSuggestions()
62 List<CorpusResult> suggestions = getSuggestions(TEST_QUERY); in testWhenPromotingAlreadyPromotedResults()
72 CorpusResult corpora2 = suggestions.get(2); in testWhenPromotingAlreadyPromotedResults()
112 List<CorpusResult> suggestions = getSuggestions(TEST_QUERY); in testPromotesRightNumberOfSuggestions()
123 private List<CorpusResult> getSuggestions(String query) { in getSuggestions()
124 ArrayList<CorpusResult> results = new ArrayList<CorpusResult>(); in getSuggestions()
DResultPromoterTest.java45 private CorpusResult mCorpusResult1;
46 private CorpusResult mCorpusResult2;
47 private CorpusResult mCorpusResultWeb;
50 private List<CorpusResult> mCorpusResults;
65 mCorpusResults = new ArrayList<CorpusResult>(); in setUp()
96 private ListSuggestionCursor promoteSuggestions(List<CorpusResult> suggestions) { in promoteSuggestions()
DWebPromoterTest.java45 private CorpusResult mCorpusResult1;
46 private CorpusResult mCorpusResult2;
47 private CorpusResult mCorpusResultWeb;
50 private List<CorpusResult> mCorpusResults;
66 mCorpusResults = new ArrayList<CorpusResult>(); in setUp()
DSingleCorpusPromoterTest.java59 ArrayList<CorpusResult> results = new ArrayList<CorpusResult>(); in makeSuggestions()
DMockCorpus.java95 public CorpusResult getSuggestions(String query, int queryLimit, boolean onlyCorpus) { in getSuggestions()
118 private class Result extends SuggestionCursorWrapper implements CorpusResult {
DMockLogger.java48 public void logLatency(CorpusResult result) { in logLatency()
DMultiSourceCorpusTest.java59 CorpusResult observed = mCorpus.getSuggestions("foo", 50, false); in testGetSuggestions()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
DDelayingSuggestionsAdapter.java19 import com.android.quicksearchbox.CorpusResult;
80 Iterable<CorpusResult> results = suggestions.getCorpusResults(); in shouldPublish()
81 for (CorpusResult result : results) { in shouldPublish()
DClusteredSuggestionsAdapter.java18 import com.android.quicksearchbox.CorpusResult;
113 for (CorpusResult result : suggestions.getCorpusResults()) { in buildCorpusGroups()
DSearchActivityView.java21 import com.android.quicksearchbox.CorpusResult;
440 CorpusResult cursor = suggestions.getWebResult(); in webSuggestionsToCompletions()