Home
last modified time | relevance | path

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

12345

/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()
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DRuntimeDataSupplier.java39 import java.util.function.Consumer;
66 public void loadDocInfo(Uri uri, Consumer<DocumentInfo> updateView) { in loadDocInfo()
70 Consumer<Cursor> callback = new Consumer<Cursor>() { in loadDocInfo()
91 public void loadDirCount(DocumentInfo directory, Consumer<Integer> updateView) { in loadDirCount()
96 Consumer<Cursor> callback = new Consumer<Cursor>() { in loadDirCount()
110 public void getDocumentMetadata(Uri uri, Consumer<Bundle> callback) { in getDocumentMetadata()
164 private final Consumer<Cursor> mCallback;
167 Callbacks(Context context, Uri uri, Consumer<Cursor> callback) { in Callbacks()
/packages/apps/Car/Launcher/src/com/android/car/carlauncher/
DAppMetaData.java25 import java.util.function.Consumer;
40 private final Consumer<Context> mLaunchCallback;
41 private final Consumer<Context> mAlternateLaunchCallback;
59 Consumer<Context> launchCallback, in AppMetaData()
60 Consumer<Context> alternateLaunchCallback) { in AppMetaData()
81 Consumer<Context> getLaunchCallback() { in getLaunchCallback()
85 Consumer<Context> getAlternateLaunchCallback() { in getAlternateLaunchCallback()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DCdmaServiceCategoryProgramHandler.java33 import java.util.function.Consumer;
41 private ConcurrentLinkedQueue<Consumer<Bundle>> mScpCallback = new ConcurrentLinkedQueue<>();
74 String originatingAddress, Consumer<Bundle> callback) { in onCdmaScpMessage()
86 Consumer<Bundle> mCallback;
89 String originatingAddress, Consumer<Bundle> callback) { in CdmaScpMessage()
128 String originatingAddress, int phoneId, Consumer<Bundle> callback) { in handleServiceCategoryProgramData()
166 Consumer<Bundle> callback = mScpCallback.poll();
/packages/apps/Settings/tests/robotests/src/com/android/settings/applications/appinfo/
DDefaultAppShortcutPreferenceControllerBaseTest.java53 import java.util.function.Consumer;
90 TEST_PACKAGE_NAME), any(Executor.class), any(Consumer.class)); in constructor_callsIsApplicationQualifiedForRole()
154 final ArgumentCaptor<Consumer<Boolean>> callbackCaptor = ArgumentCaptor.forClass( in setRoleIsVisible()
155 Consumer.class); in setRoleIsVisible()
158 final Consumer<Boolean> callback = callbackCaptor.getValue(); in setRoleIsVisible()
163 final ArgumentCaptor<Consumer<Boolean>> callbackCaptor = ArgumentCaptor.forClass( in setApplicationIsQualifiedForRole()
164 Consumer.class); in setApplicationIsQualifiedForRole()
167 final Consumer<Boolean> callback = callbackCaptor.getValue(); in setApplicationIsQualifiedForRole()
/packages/modules/NetworkStack/common/networkstackclient/src/android/net/networkstack/
DNetworkStackClientBase.java33 import java.util.function.Consumer;
41 private final ArrayList<Consumer<INetworkStackConnector>> mPendingNetStackRequests =
109 protected void requestConnector(@NonNull Consumer<INetworkStackConnector> request) { in requestConnector()
132 final ArrayList<Consumer<INetworkStackConnector>> requests; in onNetworkStackConnected()
138 for (Consumer<INetworkStackConnector> consumer : requests) { in onNetworkStackConnected()
/packages/apps/Launcher3/src/com/android/launcher3/util/
DPendingAnimation.java23 import java.util.function.Consumer;
35 private final ArrayList<Consumer<OnEndListener>> mEndListeners = new ArrayList<>();
44 for (Consumer<OnEndListener> listeners : mEndListeners) { in finish()
50 public void addEndListener(Consumer<OnEndListener> listener) { in addEndListener()
DConfigMonitor.java29 import java.util.function.Consumer;
51 private Consumer<Context> mCallback;
53 public ConfigMonitor(Context context, Consumer<Context> callback) { in ConfigMonitor()
107 Consumer<Context> callback = mCallback; in notifyChange()
/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.java44 import java.util.function.Consumer;
56 public final Consumer<Collection<RootInfo>> shortcutsUpdater;
90 Consumer<Collection<RootInfo>> shortcutsUpdater) { in Injector()
103 Consumer<Collection<RootInfo>> shortcutsUpdater, in Injector()
/packages/apps/Dialer/java/com/android/dialer/precall/
DPreCallCoordinator.java24 import com.android.dialer.function.Consumer;
73 Consumer<OutputT> successListener, in listen()
74 Consumer<Throwable> failureListener); in listen()
/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/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/util/
DRemoteCallbackBinder.java24 import java.util.function.Consumer;
35 private final Consumer<IBinder> mOnDiedConsumer;
37 public RemoteCallbackBinder(IBinder binder, Consumer<IBinder> onBinderDied) { in RemoteCallbackBinder()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DCachedEventDispatcher.java23 import java.util.function.Consumer;
31 private Consumer<MotionEvent> mConsumer;
51 public void setConsumer(Consumer<MotionEvent> consumer) { in setConsumer()
/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.java37 import java.util.function.Consumer;
49 private final Consumer<Uri> mCallback;
59 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/apps/Launcher3/go/quickstep/src/com/android/quickstep/
DTaskSwipeCallback.java29 import java.util.function.Consumer;
36 private final Consumer<TaskHolder> mOnTaskSwipeCallback;
38 public TaskSwipeCallback(Consumer<TaskHolder> onTaskSwipeCallback) { in TaskSwipeCallback()
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DScaleHelper.java33 import java.util.function.Consumer;
44 private final Consumer<Float> mScaleCallback;
48 public ScaleHelper(Context context, Features features, Consumer<Float> scaleCallback) { in ScaleHelper()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/util/
DSwipeAnimationTargetSet.java28 import java.util.function.Consumer;
37 private final Consumer<SwipeAnimationTargetSet> mOnFinishListener;
46 Consumer<SwipeAnimationTargetSet> onFinishListener) { in SwipeAnimationTargetSet()
DRecentsAnimationListenerSet.java34 import java.util.function.Consumer;
50 private final Consumer<SwipeAnimationTargetSet> mOnFinishListener;
56 Consumer<SwipeAnimationTargetSet> onFinishListener) { in RecentsAnimationListenerSet()
/packages/apps/Launcher3/quickstep/recents_ui_overrides/src/com/android/quickstep/
DMultiStateCallback.java24 import java.util.function.Consumer;
35 private final SparseArray<Consumer<Boolean>> mStateChangeHandlers = new SparseArray<>();
115 public void addChangeHandler(int stateMask, Consumer<Boolean> handler) { in addChangeHandler()
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/
DPermissionControllerServiceImpl.java64 import java.util.function.Consumer;
211 @NonNull Consumer<Map<String, List<String>>> callback) { in onRevokeRuntimePermissions()
349 @NonNull UserHandle user, @NonNull Consumer<Boolean> callback) { in onRestoreDelayedRuntimePermissionsBackup()
366 @NonNull Consumer<List<RuntimePermissionPresentationInfo>> callback) { in onGetAppPermissions()
491 @NonNull Consumer<List<RuntimePermissionUsageInfo>> callback) { in onGetPermissionUsages()
504 @NonNull Consumer<Boolean> callback) { in onSetRuntimePermissionGrantStateByDeviceAdmin()

12345