Home
last modified time | relevance | path

Searched refs:Consumer (Results 1 – 25 of 46) sorted by relevance

12

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/util/
DConsumers.java28 public static <A extends QuietlyCloseable> void consumeCloseable(Consumer<A> consumer, in consumeCloseable()
39 final Consumer<A> consumer, final A value) { in consumeAsync()
52 final Consumer<A> consumer, final A value) { in consumeCloseableAsync()
64 public static <A> Consumer<A> createAsyncConsumer( in createAsyncConsumer()
65 final Handler handler, final Consumer<A> consumer) { in createAsyncConsumer()
66 return new Consumer<A>() { in createAsyncConsumer()
74 public static <A extends QuietlyCloseable> Consumer<A> createAsyncCloseableConsumer(
75 final Handler handler, final Consumer<A> consumer) {
76 return new Consumer<A>() {
DCachedLater.java42 private List<Consumer<? super A>> mWaitingConsumers;
56 List<Consumer<? super A>> waitingConsumers; in store()
65 for (Consumer<? super A> consumer : waitingConsumers) { in store()
79 public void getLater(Consumer<? super A> consumer) { in getLater()
88 mWaitingConsumers = new ArrayList<Consumer<? super A>>(); in getLater()
DNoOpConsumer.java19 import com.android.quicksearchbox.util.Consumer;
24 public class NoOpConsumer<A> implements Consumer<A> {
DNowOrLaterWrapper.java29 public void getLater(final Consumer<? super B> consumer) { in getLater()
30 mWrapped.getLater(new Consumer<A>(){ in getLater()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DDocumentLoader.java37 import java.util.function.Consumer;
62 public void loadDocInfo(Uri uri, Consumer<DocumentInfo> updateView) { in loadDocInfo()
71 Consumer<Cursor> callback = new Consumer<Cursor>() { in loadDocInfo()
91 public void loadDirCount(DocumentInfo directory, Consumer<Integer> updateView) { in loadDirCount()
101 Consumer<Cursor> callback = new Consumer<Cursor>() { in loadDirCount()
145 private final Consumer<Cursor> mCallback;
148 Callbacks(Context context, Uri uri, Consumer<Cursor> callback) { in Callbacks()
DInspectorController.java43 import java.util.function.Consumer;
50 private final Consumer<DocumentInfo> mHeader;
54 private final Consumer<DocumentInfo> mDebugView;
67 ProvidersAccess providers, boolean showDebug, Consumer<DocumentInfo> header, in InspectorController()
69 Consumer<DocumentInfo> debugView, Lookup<String, Executor> executors, in InspectorController()
224 void loadDocInfo(Uri uri, Consumer<DocumentInfo> callback); in loadDocInfo()
232 void loadDirCount(DocumentInfo directory, Consumer<Integer> callback); in loadDirCount()
DHeaderView.java36 import java.util.function.Consumer;
41 public final class HeaderView extends RelativeLayout implements Consumer<DocumentInfo> {
107 Consumer<Bitmap> callback = new Consumer<Bitmap>() { in loadHeaderImage()
DDebugView.java24 import java.util.function.Consumer;
29 public class DebugView extends TableView implements Consumer<DocumentInfo> {
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
DQueryTask.java19 import com.android.quicksearchbox.util.Consumer;
38 private final Consumer<C> mConsumer;
51 Handler handler, Consumer<C> consumer) { in QueryTask()
80 Consumer<C> consumer) { in startQuery()
DSuggestionsProviderImpl.java23 import com.android.quicksearchbox.util.Consumer;
66 Consumer<SourceResult> receiver; in getSuggestions()
92 private class SuggestionCursorReceiver implements Consumer<SourceResult> {
/packages/apps/DocumentsUI/src/com/android/documentsui/
DInjector.java43 import java.util.function.Consumer;
55 public final Consumer<Collection<RootInfo>> shortcutsUpdater;
86 Consumer<Collection<RootInfo>> shortcutsUpdater) { in Injector()
99 Consumer<Collection<RootInfo>> shortcutsUpdater, in Injector()
DThumbnailLoader.java37 import java.util.function.Consumer;
62 private final Consumer<Bitmap> mCallback;
74 Consumer<Bitmap> callback, boolean addToCache) { in ThumbnailLoader()
/packages/apps/DocumentsUI/src/com/android/documentsui/prefs/
DPreferencesMonitor.java25 import java.util.function.Consumer;
39 private final Consumer<String> mChangeCallback;
44 Consumer<String> listener) { in PreferencesMonitor()
/packages/apps/DocumentsUI/src/com/android/documentsui/picker/
DLoadLastAccessedStackTask.java27 import java.util.function.Consumer;
43 private final Consumer<DocumentStack> mCallback;
50 Consumer<DocumentStack> callback) { in LoadLastAccessedStackTask()
DCreatePickedDocumentTask.java36 import java.util.function.Consumer;
48 private final Consumer<Uri> mCallback;
58 Consumer<Uri> callback) { in CreatePickedDocumentTask()
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
DGetRootDocumentTask.java29 import java.util.function.Consumer;
41 private final Consumer<DocumentInfo> mCallback;
49 Consumer<DocumentInfo> callback) { in GetRootDocumentTask()
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
DBackend.java42 import java.util.function.Consumer;
60 private Consumer<JobStatus> mJobStatusListener;
93 final Consumer<LocalPrinterCapabilities> capabilitiesConsumer) { in getCapabilities()
109 Consumer<JobStatus> listener) {
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/inspector/
DDocumentLoaderTest.java32 import java.util.function.Consumer;
154 private static class TestDocConsumer implements Consumer<DocumentInfo> {
171 private static class TestDirConsumer implements Consumer<Integer> {
/packages/services/BuiltInPrintService/src/com/android/bips/
DLocalPrintJob.java33 import java.util.function.Consumer;
58 private Consumer<LocalPrintJob> mCompleteConsumer;
82 void start(Consumer<LocalPrintJob> callback) { in start()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DIconHelper.java48 import java.util.function.Consumer;
203 Consumer<Bitmap> callback = new Consumer<Bitmap>() { in loadThumbnail()
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
DConsumerTrap.java19 import com.android.quicksearchbox.util.Consumer;
26 public class ConsumerTrap<A> implements Consumer<A> {
DIconLoaderTest.java19 import com.android.quicksearchbox.util.Consumer;
66 protected static class AssertConsumer<C> implements Consumer<C> {
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestConsumer.java21 import java.util.function.Consumer;
27 public class TestConsumer<T> extends TestPredicate<T> implements Consumer<T> {
DTestActionHandler.java27 import java.util.function.Consumer;
81 public void getRootDocument(RootInfo root, int timeout, Consumer<DocumentInfo> callback) { in getRootDocument()
/packages/services/Car/car-lib/src/com/android/car/internal/
DSingleMessageHandler.java24 import java.util.function.Consumer;
45 events.forEach(new Consumer<EventType>() { in handleMessage()

12