Searched defs:delegate (Results 226 - 250 of 1356) sorted by relevance

1234567891011>>

/external/guava/guava/src/com/google/common/collect/
H A DForwardingSet.java33 * <b>indiscriminately</b> to the methods of the delegate. For example,
54 @Override protected abstract Set<E> delegate(); method in class:ForwardingSet
57 return object == this || delegate().equals(object);
61 return delegate().hashCode();
H A DForwardingSetMultimap.java39 @Override protected abstract SetMultimap<K, V> delegate(); method in class:ForwardingSetMultimap
42 return delegate().entries();
46 return delegate().get(key);
50 return delegate().removeAll(key);
54 return delegate().replaceValues(key, values);
H A DForwardingSortedSetMultimap.java42 @Override protected abstract SortedSetMultimap<K, V> delegate(); method in class:ForwardingSortedSetMultimap
45 return delegate().get(key);
49 return delegate().removeAll(key);
54 return delegate().replaceValues(key, values);
58 return delegate().valueComparator();
H A DMutableClassToInstanceMap.java55 private MutableClassToInstanceMap(Map<Class<? extends B>, B> delegate) { argument
56 super(delegate, VALUE_CAN_BE_CAST_TO_KEY);
H A DWellBehavedMap.java35 private final Map<K, V> delegate; field in class:WellBehavedMap
38 private WellBehavedMap(Map<K, V> delegate) { argument
39 this.delegate = delegate;
48 static <K, V> WellBehavedMap<K, V> wrap(Map<K, V> delegate) { argument
49 return new WellBehavedMap<K, V>(delegate);
52 @Override protected Map<K, V> delegate() { method in class:WellBehavedMap
53 return delegate;
62 delegate.keySet(), new KeyToEntryConverter<K, V>(this));
/external/guava/guava/src/com/google/common/util/concurrent/
H A DAbstractCheckedFuture.java38 * Constructs an {@code AbstractCheckedFuture} that wraps a delegate.
40 protected AbstractCheckedFuture(ListenableFuture<V> delegate) { argument
41 super(delegate);
H A DForwardingCheckedFuture.java46 return delegate().checkedGet();
51 return delegate().checkedGet(timeout, unit);
55 protected abstract CheckedFuture<V, X> delegate(); method in class:ForwardingCheckedFuture
60 * can pass in an already constructed {@link CheckedFuture} as the delegate.
67 private final CheckedFuture<V, X> delegate; field in class:ForwardingCheckedFuture.SimpleForwardingCheckedFuture
69 protected SimpleForwardingCheckedFuture(CheckedFuture<V, X> delegate) { argument
70 this.delegate = Preconditions.checkNotNull(delegate);
74 protected final CheckedFuture<V, X> delegate() { method in class:ForwardingCheckedFuture.SimpleForwardingCheckedFuture
75 return delegate;
[all...]
H A DForwardingFuture.java44 @Override protected abstract Future<V> delegate(); method in class:ForwardingFuture
48 return delegate().cancel(mayInterruptIfRunning);
53 return delegate().isCancelled();
58 return delegate().isDone();
63 return delegate().get();
69 return delegate().get(timeout, unit);
78 * can pass in an already constructed {@link Future} as the delegate.
84 private final Future<V> delegate; field in class:ForwardingFuture.SimpleForwardingFuture
86 protected SimpleForwardingFuture(Future<V> delegate) { argument
87 this.delegate
91 protected final Future<V> delegate() { method in class:ForwardingFuture.SimpleForwardingFuture
[all...]
H A DForwardingListenableFuture.java43 protected abstract ListenableFuture<V> delegate(); method in class:ForwardingListenableFuture
47 delegate().addListener(listener, exec);
57 * as the delegate.
63 private final ListenableFuture<V> delegate; field in class:ForwardingListenableFuture.SimpleForwardingListenableFuture
65 protected SimpleForwardingListenableFuture(ListenableFuture<V> delegate) { argument
66 this.delegate = Preconditions.checkNotNull(delegate);
70 protected final ListenableFuture<V> delegate() { method in class:ForwardingListenableFuture.SimpleForwardingListenableFuture
71 return delegate;
H A DForwardingService.java35 @Override protected abstract Service delegate(); method in class:ForwardingService
38 return delegate().start();
42 return delegate().state();
46 return delegate().stop();
50 return delegate().startAndWait();
54 return delegate().stopAndWait();
58 return delegate().isRunning();
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/
H A DForwardingImmutableCollection.java32 transient final Collection<E> delegate; field in class:ForwardingImmutableCollection
34 ForwardingImmutableCollection(Collection<E> delegate) { argument
35 this.delegate = delegate;
39 return Iterators.unmodifiableIterator(delegate.iterator());
43 return object != null && delegate.contains(object);
47 return delegate.containsAll(targets);
51 return delegate.size();
55 return delegate.isEmpty();
59 return delegate
[all...]
/external/guava/guava-testlib/src/com/google/common/testing/
H A DEquivalenceTester.java65 private final RelationshipTester<T> delegate; field in class:EquivalenceTester
70 this.delegate = new RelationshipTester<T>(new RelationshipAssertion<T>() {
101 delegate.addRelatedGroup(group);
110 delegate.test();
/external/guava/guava-tests/test/com/google/common/collect/
H A DForwardingConcurrentMapTest.java33 final ConcurrentMap<String, Integer> delegate field in class:ForwardingConcurrentMapTest.TestMap
35 @Override protected ConcurrentMap<String, Integer> delegate() { method in class:ForwardingConcurrentMapTest.TestMap
36 return delegate;
/external/guava/guava-tests/test/com/google/common/util/concurrent/
H A DForwardingListenableFutureTest.java28 private SettableFuture<String> delegate; field in class:ForwardingListenableFutureTest
37 delegate = SettableFuture.create();
40 protected ListenableFuture<String> delegate() {
41 return delegate;
55 delegate.set("foo");
60 delegate.cancel(true); // parameter is ignored
65 delegate.setException(new Exception("failed"));
/external/mockito/src/org/mockito/
H A DAdditionalAnswers.java111 * An answer that directly forwards the calls to the delegate.
132 * The mock that delegates simply delegates all methods to the delegate.
133 * The delegate is used all the time as methods are delegated onto it.
139 * An example with a final class that we want to delegate to:
151 * The mock will call the delegate if you use regular when().then() stubbing style.
165 * @param delegate The delegate to forward calls to.
170 public static <T> Answer<T> delegatesTo(Object delegate) { argument
171 return (Answer<T>) new ForwardsInvocations(delegate);
/external/mockito/src/org/mockito/internal/handler/
H A DNullResultGuardian.java17 * Protects the results from delegate MockHandler. Makes sure the results are valid.
22 private final InternalMockHandler delegate; field in class:NullResultGuardian
24 public NullResultGuardian(InternalMockHandler delegate) { argument
25 this.delegate = delegate;
29 Object result = delegate.handle(invocation);
42 return delegate.getMockSettings();
46 return delegate.voidMethodStubbable(mock);
50 delegate.setAnswersForStubbing(answers);
54 return delegate
[all...]
/external/mockito/src/org/mockito/internal/stubbing/defaultanswers/
H A DReturnsMocks.java18 private Answer<Object> delegate = new ReturnsMoreEmptyValues(); field in class:ReturnsMocks
21 Object ret = delegate.answer(invocation);
H A DReturnsMoreEmptyValues.java51 private Answer<Object> delegate = new ReturnsEmptyValues(); field in class:ReturnsMoreEmptyValues
57 Object ret = delegate.answer(invocation);
H A DReturnsSmartNulls.java40 private final Answer<Object> delegate = new ReturnsMoreEmptyValues(); field in class:ReturnsSmartNulls
43 Object defaultReturnValue = delegate.answer(invocation);
/external/mockito/src/org/mockito/internal/verification/
H A DVerificationWithTimeoutImpl.java13 VerificationMode delegate; field in class:VerificationWithTimeoutImpl
17 public VerificationWithTimeoutImpl(int treshhold, int millis, VerificationMode delegate) { argument
20 this.delegate = delegate;
28 delegate.verify(data);
50 return delegate;
/external/chromium_org/ash/
H A Dash_touch_exploration_manager_chromeos.cc53 AccessibilityDelegate* delegate = local
55 if (!delegate->IsSpokenFeedbackEnabled())
57 delegate->SilenceSpokenFeedback();
84 AccessibilityDelegate* delegate = local
86 bool enabled = delegate->IsSpokenFeedbackEnabled();
/external/chromium_org/ash/keyboard_overlay/
H A Dkeyboard_overlay_view.cc37 WebDialogDelegate* delegate,
39 : views::WebDialogView(context, delegate, handler) {
77 KeyboardOverlayDelegate* delegate = new KeyboardOverlayDelegate(
80 new KeyboardOverlayView(context, delegate, handler);
81 delegate->Show(view);
35 KeyboardOverlayView( content::BrowserContext* context, WebDialogDelegate* delegate, WebContentsHandler* handler) argument
/external/chromium_org/ash/system/chromeos/supervised/
H A Dtray_supervised_user.cc52 SystemTrayDelegate* delegate = Shell::GetInstance()->system_tray_delegate(); local
53 if (!delegate->IsUserSupervised())
71 SystemTrayDelegate* delegate = Shell::GetInstance()->system_tray_delegate(); local
73 bool is_user_supervised = delegate->IsUserSupervised();
79 CreateOrUpdateNotification(delegate->GetSupervisedUserMessage());
/external/chromium_org/ash/test/
H A Dshell_test_api.cc69 void ShellTestApi::SetShelfDelegate(ShelfDelegate* delegate) { argument
70 shell_->shelf_delegate_.reset(delegate);
/external/chromium_org/ash/wm/
H A Doverlay_event_filter.cc37 // Pass key events only when they are sent to a child of the delegate's
58 void OverlayEventFilter::Activate(Delegate* delegate) { argument
61 delegate_ = delegate;
64 void OverlayEventFilter::Deactivate(Delegate* delegate) { argument
65 if (delegate_ == delegate)

Completed in 480 milliseconds

1234567891011>>