/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
SearchableCorpusFactory.java | 30 * Creates corpora. 53 ArrayList<Corpus> corpora = new ArrayList<Corpus>(); local 54 addSpecialCorpora(corpora, sources); 55 addSingleSourceCorpora(corpora, sources); 56 return corpora; 72 * Adds any corpora that are not simple single source corpora. 74 * @param corpora List to add corpora to. 77 protected void addSpecialCorpora(ArrayList<Corpus> corpora, Sources sources) [all...] |
SearchableCorpora.java | 32 * Maintains the list of all corpora. 34 public class SearchableCorpora implements Corpora { 47 // Maps corpus names to corpora 51 // Enabled corpora 81 ArrayList<Corpus> corpora = new ArrayList<Corpus>(mEnabledCorpora.size()); local 84 corpora.add(corpus); 87 return corpora; 113 Collection<Corpus> corpora = mCorpusFactory.createCorpora(mSources); local 115 mCorporaByName = new HashMap<String,Corpus>(corpora.size()); 116 mCorporaBySource = new HashMap<Source,Corpus>(corpora.size()) [all...] |
EventLogLogger.java | 73 String corpora = getCorpusLogNames(queriedCorpora); local 75 EventLogTags.writeQsbClick(id, suggestions, corpora, numChars, 127 private String getCorpusLogNames(Collection<Corpus> corpora) { 128 if (corpora == null) return ""; 130 for (Corpus corpus : corpora) {
|
SuggestionsProviderImpl.java | 81 private List<Corpus> filterCorpora(String query, List<Corpus> corpora) { 83 if (corpora.size() <= 1) return corpora; 84 ArrayList<Corpus> corporaToQuery = new ArrayList<Corpus>(corpora.size()); 85 for (Corpus corpus : corpora) { 112 Log.i(TAG, "chars:" + query.length() + ",corpora:" + corporaToQuery); 146 private int countDefaultCorpora(List<Corpus> corpora) { 148 for (Corpus corpus : corpora) {
|
DefaultCorpusRanker.java | 34 * corpora. 43 private final Corpora mCorpora; 45 // Cached list of ranked corpora. 51 * @param corpora Corpora to rank. 54 public DefaultCorpusRanker(Corpora corpora, ShortcutRepository shortcuts) { 55 mCorpora = corpora; 110 // Default corpora always come before non-default
|
Config.java | 103 String[] corpora = mContext.getResources().getStringArray(res); local 104 for (String corpus : corpora) { 162 // Get the list of default corpora from a resource, which allows vendor overlays. 316 // Get the list of default corpora from a resource, which allows vendor overlays. 321 // Get the list of default corpora from a resource, which allows vendor overlays.
|
CorpusSelectionDialog.java | 104 Corpora corpora = getQsbApplication().getCorpora(); local 106 new CorporaAdapter(getContext(), corpora, R.layout.corpus_grid_item);
|
Suggestions.java | 60 * in the array, if not all corpora have published yet. 76 // (we want to keep the ordering of corpora in mCorpusResults). 83 + "\" expected corpora: " + mExpectedCorpora); 103 * Gets the number of corpora that are expected to report. 118 * Gets the set of corpora that have reported results to this suggestions set. 120 * @return A collection of corpora. 123 HashSet<Corpus> corpora = new HashSet<Corpus>(); local 126 corpora.add(result.getCorpus()); 129 return corpora; 161 * Marks the suggestions set as complete, regardless of whether all corpora hav [all...] |
QsbApplication.java | 56 private Corpora mCorpora; 194 * Gets all corpora. 198 public Corpora getCorpora() { 206 protected Corpora createCorpora(Sources sources) { 207 SearchableCorpora corpora = new SearchableCorpora(getContext(), getSettings(), sources, local 209 corpora.update(); 210 return corpora; 214 * Updates the corpora, if they are loaded.
|
ShortcutRepositoryImplLog.java | 76 private final Corpora mCorpora; 88 Corpora sources, ShortcutRefresher refresher, Handler uiThread, 99 ShortcutRepositoryImplLog(Context context, Config config, Corpora corpora, 103 mCorpora = corpora; 516 Map<String,Integer> corpora = new HashMap<String,Integer>(cursor.getCount()); local 520 corpora.put(name, clicks); 522 return corpora; [all...] |
SearchActivity.java | 294 private Corpora getCorpora() { 632 List<Corpus> corpora = new ArrayList<Corpus>(); local 634 if (searchCorpus != null) corpora.add(searchCorpus); 635 consumer.consume(corpora);
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
RankAwarePromoterTest.java | 132 ArrayList<Corpus> corpora = new ArrayList<Corpus>(); local 136 corpora.add(mockCorpus); 138 return corpora;
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/preferences/ |
PreferenceControllerFactory.java | 18 import com.android.quicksearchbox.Corpora; 51 Corpora corpora = QsbApplication.get(mContext).getCorpora(); local 52 addController(new SearchableItemsController(mSettings, corpora, getContext()), p);
|
SearchableItemsController.java | 18 import com.android.quicksearchbox.Corpora; 42 private final Corpora mCorpora; 48 public SearchableItemsController(SearchSettings searchSettings, Corpora corpora, 51 mCorpora = corpora; 68 private Corpora getCorpora() {
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
CorporaAdapter.java | 19 import com.android.quicksearchbox.Corpora; 47 private final Corpora mCorpora; 57 public CorporaAdapter(Context context, Corpora corpora, int corpusViewRes) { 59 mCorpora = corpora;
|