/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
SourceResult.java | 22 public interface SourceResult extends SuggestionCursor {
|
CorpusResult.java | 23 public interface CorpusResult extends SuggestionCursor {
|
SuggestionPosition.java | 21 * A pointer to a suggestion in a {@link SuggestionCursor}. 26 private final SuggestionCursor mCursor; 30 public SuggestionPosition(SuggestionCursor cursor) { 34 public SuggestionPosition(SuggestionCursor cursor, int suggestionPos) { 39 public SuggestionCursor getCursor() {
|
SuggestionCursorProvider.java | 21 * Interface for objects that can produce a SuggestionCursor given a query. 23 public interface SuggestionCursorProvider<C extends SuggestionCursor> {
|
ShortcutRepository.java | 43 void removeFromHistory(SuggestionCursor suggestions, int position); 59 void reportClick(SuggestionCursor suggestions, int position); 85 void updateShortcut(Source source, String shortcutId, SuggestionCursor refreshed);
|
AbstractSuggestionCursorWrapper.java | 19 * A SuggestionCursor that delegates all calls to other suggestions. 22 implements SuggestionCursor {
|
SuggestionCursorWrapper.java | 24 * A suggestion cursor that delegates all methods to another SuggestionCursor. 28 private final SuggestionCursor mCursor; 30 public SuggestionCursorWrapper(String userQuery, SuggestionCursor cursor) { 76 protected SuggestionCursor current() {
|
Logger.java | 48 * @param suggestionCursor all the suggestions shown in the UI. 50 * {@code suggestionCursor}, ordered by rank. 53 void logSuggestionClick(long suggestionId, SuggestionCursor suggestionCursor, 72 * @param suggestionCursor all the suggestions shown in the UI when the user left 75 void logExit(SuggestionCursor suggestionCursor, int numChars);
|
ShortcutRefresher.java | 35 SuggestionCursor refreshed);
|
ShortcutCursor.java | 27 * A SuggestionCursor that allows shortcuts to be updated by overlaying 36 private final SuggestionCursor mShortcuts; 39 private final HashSet<SuggestionCursor> mRefreshed; 47 private ShortcutCursor(String query, SuggestionCursor shortcuts, Handler uiThread, 54 mRefreshed = new HashSet<SuggestionCursor>(); 64 ShortcutCursor(SuggestionCursor suggestions) { 68 public ShortcutCursor(SuggestionCursor suggestions, boolean allowWebSearchShortcuts, 98 final String shortcutId, final SuggestionCursor refreshed) { 111 * Updates this SuggestionCursor with a refreshed result from another. 115 private void refresh(Source source, String shortcutId, SuggestionCursor refreshed) [all...] |
SingleSourceCorpusResult.java | 29 public SingleSourceCorpusResult(Corpus corpus, String userQuery, SuggestionCursor cursor,
|
SuggestionCursor.java | 27 public interface SuggestionCursor extends Suggestion, QuietlyCloseable {
|
QueryTask.java | 30 public class QueryTask<C extends SuggestionCursor> implements NamedTask { 77 public static <C extends SuggestionCursor> void startQueries(String query, 89 public static <C extends SuggestionCursor> void startQuery(String query,
|
SingleCorpusPromoter.java | 44 SuggestionCursor shortcuts = suggestions.getShortcuts(); 51 private void promoteUntilFull(SuggestionCursor c, int maxSize, ListSuggestionCursor promoted) {
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
GoogleSource.java | 20 import com.android.quicksearchbox.SuggestionCursor; 27 SuggestionCursor refreshShortcut(String shortcutId, String extraData);
|
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
BlendingPromoterTest.java | 58 SuggestionCursor promoted = limit(cursor(mS11, mS12, mS21, mS22), 0, 0); 59 SuggestionCursor expected = cursor(); 64 SuggestionCursor promoted = limit(cursor(mS11, mS12, mS21, mS22), 1, 1); 65 SuggestionCursor expected = cursor(mS11, mS21); 70 SuggestionCursor promoted = limit(cursor(mS11, mS12, mS21, mS22), 2, 2); 71 SuggestionCursor expected = cursor(mS11, mS12, mS21, mS22); 76 SuggestionCursor promoted = limit(cursor(mS11, mS12, mS21, mS22), 3, 3); 77 SuggestionCursor expected = cursor(mS11, mS12, mS21, mS22); 82 SuggestionCursor promoted = limit(cursor(mS11, mS12), 0, 0); 83 SuggestionCursor expected = cursor() [all...] |
MockLogger.java | 35 SuggestionCursor suggestionCursor, Collection<Corpus> queriedCorpora, 45 public void logExit(SuggestionCursor suggestionCursor, int numChars) {
|
SuggestionCursorUtil.java | 34 public static void assertNoSuggestions(SuggestionCursor suggestions) { 38 public static void assertNoSuggestions(String message, SuggestionCursor suggestions) { 44 SuggestionCursor expected, SuggestionCursor observed) { 49 SuggestionCursor expected, int positionExpected, 50 SuggestionCursor observed, int positionObserved) { 58 public static void assertSameSuggestions(SuggestionCursor expected, SuggestionCursor observed) { 63 String message, SuggestionCursor expected, SuggestionCursor observed) [all...] |
ResultPromoterTest.java | 49 private SuggestionCursor mShortcuts; 72 SuggestionCursor promoted = promoteShortcuts(mShortcuts); 73 SuggestionCursor expected = cursor(mS11, mS12, mS21, mS22); 78 SuggestionCursor promoted = promoteSuggestions(mCorpusResults); 79 SuggestionCursor expected = concat(mCorpusResult1, mCorpusResult2); 89 private ListSuggestionCursor promoteShortcuts(SuggestionCursor shortcuts) { 108 private SuggestionCursor cursor(Suggestion... suggestions) {
|
WebPromoterTest.java | 49 private SuggestionCursor mShortcuts; 77 SuggestionCursor promoted = promote(mSuggestions, 0, 1); 78 SuggestionCursor expected = slice(mCorpusResultWeb, 0, 1); 85 SuggestionCursor promoted = promote(mSuggestions, 1, 1); 86 SuggestionCursor expected = cursor(mWeb1); 93 SuggestionCursor promoted = promote(mSuggestions, 1, 2); 94 SuggestionCursor expected = concat(cursor(mWeb1), slice(mCorpusResultWeb, 0, 1)); 108 private SuggestionCursor cursor(Suggestion... suggestions) { 112 private void assertOnlyWebSuggestions(SuggestionCursor expected) {
|
MockShortcutRepository.java | 39 public void removeFromHistory(SuggestionCursor suggestions, int position) { 62 public void updateShortcut(Source source, String shortcutId, SuggestionCursor refreshed) { 73 public void reportClick(SuggestionCursor suggestions, int position) {
|
SourceShortcutRefresherTest.java | 42 private SuggestionCursor mRefreshedCursor; 100 SuggestionCursor expected = 107 SuggestionCursor refreshed) { 120 public SuggestionCursor refreshShortcut(String shortcutId, String extraData) { 126 SuggestionCursor suggestions = getSuggestions(mQuery, 1, true);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/ |
SuggestionViewFactory.java | 20 import com.android.quicksearchbox.SuggestionCursor; 56 View getView(SuggestionCursor suggestion, String userQuery, View convertView, ViewGroup parent);
|
SuggestionsAdapter.java | 19 import com.android.quicksearchbox.SuggestionCursor; 79 SuggestionCursor getCurrentPromotedSuggestions();
|
ClusteredSuggestionsAdapter.java | 22 import com.android.quicksearchbox.SuggestionCursor; 93 private ArrayList<SuggestionCursor> mCorpusGroups; 97 SuggestionCursor promoted = getCurrentPromotedSuggestions(); 109 mCorpusGroups = new ArrayList<SuggestionCursor>(); 154 SuggestionCursor c = getGroup(groupPosition); 163 SuggestionCursor groupCursor = getGroup(getGroupPosition(childId)); 180 SuggestionCursor cursor = getGroup(groupPosition); 188 SuggestionCursor group = getGroup(groupPosition); 193 public SuggestionCursor getGroup(int groupPosition) { 204 SuggestionCursor promoted = getCurrentPromotedSuggestions() [all...] |