Lines Matching refs:consumer
19 import com.android.quicksearchbox.util.Consumer;
33 * @param consumer Consumer that the result will be passed to.
34 * The value passed to the consumer will always be non-null.
35 * The consumer will be called on an unspecified thread, and will always
38 void hasHistory(Consumer<Boolean> consumer);
67 * @param consumer Consumer that the shortcuts cursor will be passed to.
68 * The shortcut cursor passed to the consumer may be null if there are no shortcuts.
69 * If non-null, and the consumer returns {@code true}, the consumer must ensure that
71 * The consumer will be called on an unspecified thread, and will always
76 Consumer<ShortcutCursor> consumer);
90 * @param consumer Consumer that the result will be passed to.
93 * The value passed to the consumer may be non-null.
94 * The consumer will be called on an unspecified thread, and will always
97 void getCorpusScores(Consumer<Map<String,Integer>> consumer);