/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/ |
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...] |
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...] |
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
|
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> {
|
Now.java | 29 public void getLater(Consumer<? super C> consumer) { 30 consumer.consume(getNow());
|
/external/chromium_org/chrome/browser/chromeos/login/ |
authenticator.cc | 11 Authenticator::Authenticator(LoginStatusConsumer* consumer) 12 : consumer_(consumer), 18 void Authenticator::SetConsumer(LoginStatusConsumer* consumer) { 19 consumer_ = consumer;
|
/external/chromium_org/ios/ |
ios_base.gyp | 19 'consumer/base/supports_user_data.cc', 20 'consumer/base/util.mm', 21 'public/consumer/base/supports_user_data.h', 22 'public/consumer/base/util.h',
|
/external/chromium_org/chrome/browser/signin/ |
profile_oauth2_token_service_request.h | 19 // any thread with an object |consumer| that will be called back on the 21 // before |consumer| is called, |consumer| will never be called back. (Note 30 OAuth2TokenService::Consumer* consumer); 40 OAuth2TokenService::Consumer* consumer); 41 OAuth2TokenService::Consumer* const consumer_;
|
oauth2_token_service_test_util.h | 19 // A simple testing consumer. 20 class TestingOAuth2TokenServiceConsumer : public OAuth2TokenService::Consumer { 25 // OAuth2TokenService::Consumer overrides.
|
/external/oauth/core/src/main/java/net/oauth/ |
ConsumerProperties.java | 28 * A pool of OAuthConsumers that are constructed from Properties. Each consumer 30 * from Properties whose names are prefixed with the consumer's name. For 31 * example, a consumer's credentials come from properties named 72 /** Get the consumer with the given name. */ 74 OAuthConsumer consumer; local 76 consumer = pool.get(name); 78 if (consumer == null) { 79 consumer = newConsumer(name); 84 pool.put(name, consumer); 90 consumer = first 105 OAuthConsumer consumer = new OAuthConsumer(consumerProperties local [all...] |
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
QueryTask.java | 19 import com.android.quicksearchbox.util.Consumer; 38 private final Consumer<C> mConsumer; 46 * @param handler Handler that {@link Consumer#consume} will 48 * @param consumer Consumer to notify when the suggestions have been returned. 51 Handler handler, Consumer<C> consumer) { 56 mConsumer = consumer; 80 Consumer<C> consumer) { [all...] |
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/ |
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> {
|
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> {
|
/external/chromium/chrome/browser/geolocation/ |
access_token_store_browsertest.cc | 44 CancelableRequestConsumerBase* consumer, 49 (*store)->LoadAccessTokens(consumer, callback); 61 CancelableRequestConsumer consumer; local 66 store->LoadAccessTokens(&consumer, NewCallback( 68 EXPECT_TRUE(consumer.HasPendingRequests()); 70 consumer.GetClientData(store.get(), first_handle); 72 EXPECT_FALSE(consumer.HasPendingRequests()); 75 store->LoadAccessTokens(&consumer, NewCallback( 77 store->LoadAccessTokens(&consumer, NewCallback( 79 EXPECT_TRUE(consumer.HasPendingRequests()) [all...] |
/external/chromium_org/chrome/browser/common/ |
cancelable_request.cc | 13 CancelableRequestConsumerBase* consumer) { 25 consumer->OnRequestAdded(this, handle); 27 request->Init(this, handle, consumer); 55 item->second->consumer()->OnRequestRemoved(this, item->first); 61 CancelableRequestConsumerBase* consumer = NULL; local 70 consumer = i->second->consumer(); 73 // else the consumer might be gone). 79 // Notify the consumer that the request is gone 80 consumer->OnRequestRemoved(this, handle) [all...] |
/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) {}
|
DifferenceEngine.h | 39 Engine.consumer.enterContext(L, R); 43 Engine.consumer.exitContext(); 61 DifferenceEngine(Consumer &consumer) 62 : consumer(consumer), globalValueOracle(0) {} 67 consumer.log(text); 70 return LogBuilder(consumer, text); 72 Consumer& getConsumer() const { return consumer; } 86 Consumer &consumer; member in class:llvm::DifferenceEngine [all...] |
/external/chromium_org/chrome/browser/history/android/ |
android_history_provider_service.cc | 27 CancelableRequestConsumerBase* consumer, 30 AddRequest(request, consumer); 48 CancelableRequestConsumerBase* consumer, 51 AddRequest(request, consumer); 68 CancelableRequestConsumerBase* consumer, 71 AddRequest(request, consumer); 87 CancelableRequestConsumerBase* consumer, 90 AddRequest(request, consumer); 106 CancelableRequestConsumerBase* consumer, 109 AddRequest(request, consumer); [all...] |
/external/chromium/chrome/browser/password_manager/ |
password_store.cc | 68 const PasswordForm& form, PasswordStoreConsumer* consumer) { 69 return Schedule(&PasswordStore::GetLoginsImpl, consumer, form); 73 PasswordStoreConsumer* consumer) { 74 return Schedule(&PasswordStore::GetAutofillableLoginsImpl, consumer); 78 PasswordStoreConsumer* consumer) { 79 return Schedule(&PasswordStore::GetBlacklistLoginsImpl, consumer); 112 BackendFunc func, PasswordStoreConsumer* consumer) { 114 NewCallback(consumer, 116 AddRequest(request, consumer->cancelable_consumer()); 123 BackendFunc func, PasswordStoreConsumer* consumer, const ArgA& a) [all...] |
/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/chromium_org/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/chromium_org/components/autofill/core/browser/webdata/ |
web_data_service_unittest.cc | 211 // Simple consumer for Keywords data. Stores the result data and quits UI 258 AutofillWebDataServiceConsumer<std::vector<base::string16> > consumer; local 262 name1_, base::string16(), limit, &consumer); 264 // The message loop will exit when the consumer is called. 267 EXPECT_EQ(handle, consumer.handle()); 268 ASSERT_EQ(1U, consumer.result().size()); 269 EXPECT_EQ(value1_, consumer.result()[0]); 340 AutofillWebDataServiceConsumer<std::vector<AutofillProfile*> > consumer; local 341 WebDataService::Handle handle = wds_->GetAutofillProfiles(&consumer); 343 EXPECT_EQ(handle, consumer.handle()) 359 AutofillWebDataServiceConsumer<std::vector<AutofillProfile*> > consumer; local 400 AutofillWebDataServiceConsumer<std::vector<AutofillProfile*> > consumer; local 439 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > consumer; local 456 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > consumer; local 487 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > consumer; local [all...] |
/external/chromium/chrome/browser/webdata/ |
web_data_service_unittest.cc | 178 AutofillWebDataServiceConsumer<std::vector<string16> > consumer; local 182 name1_, string16(), limit, &consumer); 184 // The message loop will exit when the consumer is called. 187 EXPECT_EQ(handle, consumer.handle()); 188 ASSERT_EQ(1U, consumer.result().size()); 189 EXPECT_EQ(value1_, consumer.result()[0]); 272 AutofillWebDataServiceConsumer<std::vector<AutofillProfile*> > consumer; local 273 WebDataService::Handle handle = wds_->GetAutofillProfiles(&consumer); 275 EXPECT_EQ(handle, consumer.handle()); 276 ASSERT_EQ(1U, consumer.result().size()) 292 AutofillWebDataServiceConsumer<std::vector<AutofillProfile*> > consumer; local 337 AutofillWebDataServiceConsumer<std::vector<AutofillProfile*> > consumer; local 393 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > consumer; local 412 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > consumer; local 457 AutofillWebDataServiceConsumer<std::vector<CreditCard*> > consumer; local [all...] |