/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
D | RankAwarePromoter.java | 45 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 …]
|
D | Suggestions.java | 63 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 …]
|
D | SuggestionsProviderImpl.java | 101 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()
|
D | CorpusResult.java | 23 public interface CorpusResult extends SuggestionCursor { interface
|
D | MultiSourceCorpus.java | 137 public CorpusResult getSuggestions(String query, int queryLimit, boolean onlyCorpus) { in getSuggestions() 161 protected class Result extends ListSuggestionCursor implements CorpusResult {
|
D | SingleSourceCorpusResult.java | 23 public class SingleSourceCorpusResult extends SuggestionCursorWrapper implements CorpusResult {
|
D | Logger.java | 82 void logLatency(CorpusResult result); in logLatency()
|
D | Corpus.java | 33 public interface Corpus extends SuggestionCursorProvider<CorpusResult> {
|
D | SingleCorpusPromoter.java | 47 CorpusResult corpusResult = suggestions.getCorpusResult(mCorpus); in pickPromoted()
|
D | WebPromoter.java | 51 CorpusResult webResult = suggestions.getWebResult(); in pickPromoted()
|
D | SingleSourceCorpus.java | 60 public CorpusResult getSuggestions(String query, int queryLimit, boolean onlyCorpus) { in getSuggestions()
|
D | EventLogLogger.java | 94 public void logLatency(CorpusResult result) { in logLatency()
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
D | RankAwarePromoterTest.java | 50 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()
|
D | ResultPromoterTest.java | 45 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()
|
D | WebPromoterTest.java | 45 private CorpusResult mCorpusResult1; 46 private CorpusResult mCorpusResult2; 47 private CorpusResult mCorpusResultWeb; 50 private List<CorpusResult> mCorpusResults; 66 mCorpusResults = new ArrayList<CorpusResult>(); in setUp()
|
D | SingleCorpusPromoterTest.java | 59 ArrayList<CorpusResult> results = new ArrayList<CorpusResult>(); in makeSuggestions()
|
D | MockCorpus.java | 95 public CorpusResult getSuggestions(String query, int queryLimit, boolean onlyCorpus) { in getSuggestions() 118 private class Result extends SuggestionCursorWrapper implements CorpusResult {
|
D | MockLogger.java | 48 public void logLatency(CorpusResult result) { in logLatency()
|
D | MultiSourceCorpusTest.java | 59 CorpusResult observed = mCorpus.getSuggestions("foo", 50, false); in testGetSuggestions()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
D | DelayingSuggestionsAdapter.java | 19 import com.android.quicksearchbox.CorpusResult; 80 Iterable<CorpusResult> results = suggestions.getCorpusResults(); in shouldPublish() 81 for (CorpusResult result : results) { in shouldPublish()
|
D | ClusteredSuggestionsAdapter.java | 18 import com.android.quicksearchbox.CorpusResult; 113 for (CorpusResult result : suggestions.getCorpusResults()) { in buildCorpusGroups()
|
D | SearchActivityView.java | 21 import com.android.quicksearchbox.CorpusResult; 440 CorpusResult cursor = suggestions.getWebResult(); in webSuggestionsToCompletions()
|