HomeSort by relevance Sort by last modified time
    Searched refs:Consumer (Results 1 - 25 of 59) sorted by null

1 2 3

  /external/clang/include/clang/Sema/
SemaConsumer.h 32 /// \brief Initialize the semantic consumer with the Sema instance
37 /// \brief Inform the semantic consumer that Sema is no longer available.
41 static bool classof(const ASTConsumer *Consumer) {
42 return Consumer->SemaConsumer;
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
CorpusRanker.java 19 import com.android.quicksearchbox.util.Consumer;
31 * @param consumer Consumer that will be given the list of ranked corpora.
32 * The consumer is called on an unspecified thread.
36 void getCorporaInAll(Consumer<List<Corpus>> consumer);
ShortcutRepository.java 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
    [all...]
QueryTask.java 19 import com.android.quicksearchbox.util.Consumer;
38 private final Consumer<C> mConsumer;
47 * @param handler Handler that {@link Consumer#consume} will
49 * @param consumer Consumer to notify when the suggestions have been returned.
53 Handler handler, Consumer<C> consumer, boolean onlyTask) {
58 mConsumer = consumer;
81 Consumer<C> consumer, boolean onlyOneProvider)
    [all...]
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
NoOpConsumer.java 19 import com.android.quicksearchbox.util.Consumer;
22 * A Consumer that does nothing with the objects it receives.
24 public class NoOpConsumer<A> implements Consumer<A> {
Consumer.java 24 public interface Consumer<A> {
NowOrLater.java 21 * be sent to a {@link Consumer} later.
38 * which case the callback may be made in context. The thread on which the consumer is called
41 void getLater(Consumer<? super C> consumer);
Consumers.java 22 * Consumer utilities.
28 public static <A extends QuietlyCloseable> void consumeCloseable(Consumer<A> consumer,
32 accepted = consumer.consume(value);
39 final Consumer<A> consumer, final A value) {
41 consumer.consume(value);
45 consumer.consume(value);
52 final Consumer<A> consumer, final A value)
    [all...]
NowOrLaterWrapper.java 29 public void getLater(final Consumer<? super B> consumer) {
30 mWrapped.getLater(new Consumer<A>(){
32 return consumer.consume(get(value));
46 * {@link #getLater(Consumer)} or {@link #getNow()}. The thread that it's called on will depend
Now.java 29 public void getLater(Consumer<? super C> consumer) {
30 consumer.consume(getNow());
SQLiteAsyncQuery.java 37 * Runs the query against the database and passes the result to the consumer.
39 public void run(SQLiteDatabase db, Consumer<A> consumer) {
41 consumer.consume(result);
CachedLater.java 42 private List<Consumer<? super A>> mWaitingConsumers;
56 List<Consumer<? super A>> waitingConsumers;
65 for (Consumer<? super A> consumer : waitingConsumers) {
66 if (DBG) Log.d(TAG, "Calling consumer: " + consumer);
67 consumer.consume(value);
75 * @param consumer A consumer that will be given the cached value.
76 * The consumer may be called synchronously, or asynchronously o
    [all...]
  /packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
ConsumerTrap.java 19 import com.android.quicksearchbox.util.Consumer;
22 * A consumer that saves the value that it is given.
26 public class ConsumerTrap<A> implements Consumer<A> {
MockShortcutRepository.java 19 import com.android.quicksearchbox.util.Consumer;
46 boolean allowWebSearchShortcuts, Consumer<ShortcutCursor> consumer) {
48 consumer.consume(cursor);
65 public void getCorpusScores(Consumer<Map<String, Integer>> consumer) {
66 consumer.consume(mCorpusScores);
69 public void hasHistory(Consumer<Boolean> consumer) {
70 consumer.consume(false)
    [all...]
IconLoaderTest.java 19 import com.android.quicksearchbox.util.Consumer;
50 AssertConsumer<Object> consumer = new AssertConsumer<Object>(); local
51 value.getLater(consumer);
52 consumer.assertNull();
60 AssertConsumer<Object> consumer = new AssertConsumer<Object>(); local
61 value.getLater(consumer);
62 consumer.assertNotNull();
66 protected static class AssertConsumer<C> implements Consumer<C> {
  /external/llvm/tools/llvm-diff/
DiffLog.h 23 class Consumer;
30 Consumer &consumer; member in class:llvm::LogBuilder
41 LogBuilder(Consumer &c, StringRef Format)
42 : consumer(c), Format(Format) {}
61 Consumer &consumer; member in class:llvm::DiffLogBuilder
64 DiffLogBuilder(Consumer &c) : consumer(c) {}
DiffConsumer.h 1 //===-- DiffConsumer.h - Difference Consumer --------------------*- C++ -*-===//
10 // This header defines the interface to the LLVM difference Consumer
31 class Consumer {
52 virtual ~Consumer() {}
55 class DiffConsumer : public Consumer {
DifferenceEngine.h 40 Engine.consumer.enterContext(L, R);
44 Engine.consumer.exitContext();
60 DifferenceEngine(LLVMContext &context, Consumer &consumer)
61 : context(context), consumer(consumer), globalValueOracle(0) {}
66 consumer.log(text);
69 return LogBuilder(consumer, text);
71 Consumer& getConsumer() const { return consumer; }
86 Consumer &consumer; member in class:llvm::DifferenceEngine
    [all...]
llvm-diff.cpp 81 DiffConsumer Consumer(LModule, RModule);
82 DifferenceEngine Engine(Context, Consumer);
97 return Consumer.hadDifferences();
  /external/clang/lib/Parse/
ParseAST.cpp 38 void clang::ParseAST(Preprocessor &PP, ASTConsumer *Consumer,
43 llvm::OwningPtr<Sema> S(new Sema(PP, Ctx, *Consumer,
64 ASTConsumer *Consumer = &S.getASTConsumer();
80 External->StartTranslationUnit(Consumer);
89 Consumer->HandleTopLevelDecl(ADecl.get());
93 Consumer->HandleTopLevelDecl(ADecl.get());
99 Consumer->HandleTopLevelDecl(DeclGroupRef(*I));
101 Consumer->HandleTranslationUnit(S.getASTContext());
110 Consumer->PrintStats();
  /external/chromium/chrome/browser/ui/cocoa/
about_ipc_dialog.h 23 class AboutIPCBridge : public IPC::Logging::Consumer {
28 // IPC::Logging::Consumer implementation.
  /external/chromium/chrome/common/extensions/docs/examples/apps/hello-python/oauth2/clients/
imap.py 32 def authenticate(self, url, consumer, token):
33 if consumer is not None and not isinstance(consumer, oauth2.Consumer):
34 raise ValueError("Invalid consumer.")
40 lambda x: oauth2.build_xoauth_string(url, consumer, token))
smtp.py 33 def authenticate(self, url, consumer, token):
34 if consumer is not None and not isinstance(consumer, oauth2.Consumer):
35 raise ValueError("Invalid consumer.")
41 base64.b64encode(oauth2.build_xoauth_string(url, consumer, token)))
  /external/webkit/Source/WebCore/svg/
SVGPreserveAspectRatio.h 69 template<class Consumer>
70 static bool parsePreserveAspectRatio(Consumer* consumer, const String& value, bool validate = true)
75 consumer->setPreserveAspectRatioBaseValue(parsePreserveAspectRatio(begin, end, validate, result));
  /packages/apps/QuickSearchBox/src/com/android/quicksearchbox/preferences/
ClearShortcutsController.java 19 import com.android.quicksearchbox.util.Consumer;
78 mShortcuts.hasHistory(Consumers.createAsyncConsumer(mHandler, new Consumer<Boolean>() {

Completed in 166 milliseconds

1 2 3