Home
last modified time | relevance | path

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

12345678910>>...15

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/location/listeners/
DListenerMultiplexerTest.java45 import java.util.function.Consumer;
58 void onRegistrationAdded(Consumer<TestListenerRegistration> consumer, in onRegistrationAdded()
61 void onRegistrationReplaced(Consumer<TestListenerRegistration> consumer, in onRegistrationReplaced()
64 void onRegistrationRemoved(Consumer<TestListenerRegistration> consumer, in onRegistrationRemoved()
85 Consumer<TestListenerRegistration> consumer = mock(Consumer.class); in testAdd()
109 Consumer<TestListenerRegistration> oldConsumer = mock(Consumer.class); in testReplace()
110 Consumer<TestListenerRegistration> consumer = mock(Consumer.class); in testReplace()
132 Consumer<TestListenerRegistration> consumer = mock(Consumer.class); in testRemove()
153 Consumer<TestListenerRegistration> consumer1 = mock(Consumer.class); in testRemoveIf()
154 Consumer<TestListenerRegistration> consumer2 = mock(Consumer.class); in testRemoveIf()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/settings/
DCurrentUserTracker.java31 import java.util.function.Consumer;
36 private Consumer<Integer> mCallback = this::onUserSwitched;
69 private List<Consumer<Integer>> mCallbacks = new ArrayList<>();
94 private void addTracker(Consumer<Integer> callback) { in addTracker()
107 private void removeTracker(Consumer<Integer> callback) { in removeTracker()
120 List<Consumer<Integer>> callbacks = new ArrayList<>(mCallbacks); in notifyUserSwitched()
121 for (Consumer<Integer> consumer : callbacks) { in notifyUserSwitched()
/frameworks/base/services/people/java/com/android/server/people/prediction/
DAppTargetPredictor.java35 import java.util.function.Consumer;
46 @NonNull Consumer<List<AppTarget>> updatePredictionsMethod, in create()
57 private final Consumer<List<AppTarget>> mUpdatePredictionsMethod;
63 @NonNull Consumer<List<AppTarget>> updatePredictionsMethod, in AppTargetPredictor()
92 public void onSortAppTargets(List<AppTarget> targets, Consumer<List<AppTarget>> callback) { in onSortAppTargets()
105 public Consumer<List<AppTarget>> getUpdatePredictionsMethod() { in getUpdatePredictionsMethod()
124 void sortTargets(List<AppTarget> targets, Consumer<List<AppTarget>> callback) { in sortTargets()
/frameworks/base/core/tests/coretests/src/android/view/
DTestScrollCaptureCallback.java26 import java.util.function.Consumer;
29 private Consumer<Rect> mSearchConsumer;
31 private Consumer<Rect> mImageOnComplete;
37 @NonNull Consumer<Rect> onReady) { in onScrollCaptureSearch()
52 @NonNull Consumer<Rect> onComplete) { in onScrollCaptureImageRequest()
/frameworks/layoutlib/bridge/src/android/graphics/drawable/
DAnimatedVectorDrawable_Delegate.java38 import java.util.function.Consumer;
93 Consumer<Float> setter = group.getPropertySetter(propertyId); in nCreateGroupPropertyHolder()
111 Consumer<Integer> setter = path.getIntPropertySetter(propertyId); in nCreatePathColorPropertyHolder()
121 Consumer<Float> setter = path.getFloatPropertySetter(propertyId); in nCreatePathPropertyHolder()
227 final Consumer<T> mValueSetter;
230 private PropertySetter(@NonNull Consumer<T> valueSetter) { in PropertySetter()
265 private IntPropertySetter(Consumer<Integer> valueSetter) { in IntPropertySetter()
269 private static PropertySetter of(Consumer<Integer> valueSetter, int... values) { in of()
282 private FloatPropertySetter(Consumer<Float> valueSetter) { in FloatPropertySetter()
286 private static PropertySetter of(Consumer<Float> valueSetter, float... values) { in of()
/frameworks/base/core/java/android/permission/
DLegacyPermissionManager.java34 import java.util.function.Consumer;
133 @NonNull @CallbackExecutor Executor executor, @NonNull Consumer<Boolean> callback) { in grantDefaultPermissionsToLuiApp()
154 @NonNull @CallbackExecutor Executor executor, @NonNull Consumer<Boolean> callback) { in revokeDefaultPermissionsFromLuiApps()
175 @NonNull @CallbackExecutor Executor executor, @NonNull Consumer<Boolean> callback) { in grantDefaultPermissionsToEnabledImsServices()
196 @NonNull @CallbackExecutor Executor executor, @NonNull Consumer<Boolean> callback) { in grantDefaultPermissionsToEnabledTelephonyDataServices()
217 @NonNull @CallbackExecutor Executor executor, @NonNull Consumer<Boolean> callback) { in revokeDefaultPermissionsFromDisabledTelephonyDataServices()
238 @NonNull Consumer<Boolean> callback) { in grantDefaultPermissionsToEnabledCarrierApps()
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/controller/
DControlsController.kt27 import java.util.function.Consumer
55 dataCallback: Consumer<LoadData>, in loadForComponent()
56 cancelWrapper: Consumer<Runnable> in loadForComponent()
117 callback: Consumer<SeedResponse> in loadForComponent()
126 fun addSeedingFavoritesCallback(callback: Consumer<Boolean>): Boolean in loadForComponent()
/frameworks/libs/systemui/iconloaderlib/src/com/android/launcher3/icons/cache/
DHandlerRunnable.java21 import java.util.function.Consumer;
33 private final Consumer<T> mCallback;
40 Consumer<T> callback) { in HandlerRunnable()
45 Consumer<T> callback, Runnable endRunnable) { in HandlerRunnable()
/frameworks/base/services/core/java/com/android/server/wm/
DSimpleSurfaceAnimatable.java24 import java.util.function.Consumer;
46 private final Consumer<SurfaceControl.Transaction> mOnAnimationLeashLost;
47 private final Consumer<Runnable> mOnAnimationFinished;
157 private Consumer<SurfaceControl.Transaction> mOnAnimationLeashLost = null;
160 private Consumer<Runnable> mOnAnimationFinished = null;
204 @Nullable Consumer<SurfaceControl.Transaction> onAnimationLeashLost) { in setOnAnimationLeashLost()
286 @Nullable Consumer<Runnable> onAnimationFinish) { in setShouldDeferAnimationFinish()
/frameworks/base/core/java/android/view/
DCrossWindowBlurListeners.java32 import java.util.function.Consumer;
51 private final ArrayMap<Consumer<Boolean>, Executor> mListeners = new ArrayMap();
84 @NonNull Consumer<Boolean> listener) { in addListener()
97 public void removeListener(Consumer<Boolean> listener) { in removeListener()
127 private void notifyListener(Consumer<Boolean> listener, Executor executor, boolean enabled) { in notifyListener()
DScrollCaptureConnection.java38 import java.util.function.Consumer;
129 Consumer<Rect> listener = in requestImage()
246 protected final void maybeAccept(Consumer<T> targetConsumer) { in maybeAccept()
265 static <T> Consumer<T> create(CancellationSignal signal, Executor executor, in create()
266 Consumer<T> target) { in create()
282 private static final class ConsumerCallback<T> extends SafeCallback<Consumer<T>>
283 implements Consumer<T> {
284 ConsumerCallback(CancellationSignal signal, Executor executor, Consumer<T> target) { in ConsumerCallback()
DScrollCaptureCallback.java24 import java.util.function.Consumer;
85 void onScrollCaptureSearch(@NonNull CancellationSignal signal, @NonNull Consumer<Rect> onReady); in onScrollCaptureSearch()
135 @NonNull Consumer<Rect> onComplete); in onScrollCaptureImageRequest()
/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/
DExternalCaptureStateTracker.java22 import java.util.function.Consumer;
37 private final Consumer<Boolean> mListener;
50 ExternalCaptureStateTracker(Consumer<Boolean> listener) { in ExternalCaptureStateTracker()
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/
DNavigationBarOverlayController.java25 import java.util.function.Consumer;
51 public void init(Consumer<Boolean> visibilityChangeCallback, in init()
52 Consumer<Rect> excludeBackRegionCallback) {} in init()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/
DAnimationProperties.java26 import java.util.function.Consumer;
35 private Consumer<Property> mAnimationEndAction;
56 Consumer<Property> endAction = mAnimationEndAction;
74 public AnimationProperties setAnimationEndAction(Consumer<Property> listener) {
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/legacysplitscreen/
DLegacySplitScreen.java26 import java.util.function.Consumer;
61 void registerInSplitScreenListener(Consumer<Boolean> listener); in registerInSplitScreenListener()
64 void unregisterInSplitScreenListener(Consumer<Boolean> listener); in unregisterInSplitScreenListener()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/pip/
DPip.java25 import java.util.function.Consumer;
98 default void setPinnedStackAnimationListener(Consumer<Boolean> callback) { in setPinnedStackAnimationListener()
119 default void setPipExclusionBoundsChangeListener(Consumer<Rect> listener) { } in setPipExclusionBoundsChangeListener()
/frameworks/base/core/java/android/view/translation/
DTranslator.java46 import java.util.function.Consumer;
109 private Consumer<Translator> mCallback;
111 ServiceBinderReceiver(Translator translator, Consumer<Translator> callback) { in ServiceBinderReceiver()
178 @NonNull Consumer<Translator> callback) { in Translator()
281 @NonNull Consumer<TranslationResponse> callback) { in translate()
319 @NonNull Consumer<TranslationResponse> callback) { in translate()
381 @NonNull Consumer<TranslationResponse> callback) { in requestUiTranslate()
398 private final Consumer<TranslationResponse> mCallback;
401 TranslationResponseCallbackImpl(Consumer<TranslationResponse> callback, Executor executor) { in TranslationResponseCallbackImpl()
/frameworks/base/services/core/java/com/android/server/rollback/
DLocalIntentReceiver.java26 import java.util.function.Consumer;
30 final Consumer<Intent> mConsumer;
32 LocalIntentReceiver(Consumer<Intent> consumer) { in LocalIntentReceiver()
/frameworks/base/core/java/com/android/internal/util/
DFunctionalUtils.java25 import java.util.function.Consumer;
39 public static <T> Consumer<T> uncheckExceptions(ThrowingConsumer<T> action) { in uncheckExceptions()
74 public static <T> Consumer<T> ignoreRemoteException(RemoteExceptionIgnoringConsumer<T> action) { in ignoreRemoteException()
82 public static Runnable handleExceptions(ThrowingRunnable r, Consumer<Throwable> handler) { in handleExceptions()
141 public interface ThrowingConsumer<T> extends Consumer<T> {
161 public interface RemoteExceptionIgnoringConsumer<T> extends Consumer<T> {
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
DExecutorUtils.java22 import java.util.function.Consumer;
34 String log, Consumer<T> callback) { in executeRemoteCallWithTaskPermission()
44 String log, Consumer<T> callback, boolean blocking) { in executeRemoteCallWithTaskPermission()
/frameworks/base/core/java/com/android/internal/widget/
DObservableTextView.java26 import java.util.function.Consumer;
34 private Consumer<Integer> mOnVisibilityChangedListener;
63 public void setOnVisibilityChangedListener(Consumer<Integer> listener) { in setOnVisibilityChangedListener()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/
DTaskViewFactoryController.java27 import java.util.function.Consumer;
46 public void create(@UiContext Context context, Executor executor, Consumer<TaskView> onCreate) { in create()
56 Executor executor, Consumer<TaskView> onCreate) { in create()
/frameworks/base/services/core/java/com/android/server/wm/utils/
DRegionUtils.java26 import java.util.function.Consumer;
56 public static void forEachRect(Region region, Consumer<Rect> rectConsumer) { in forEachRect()
72 public static void forEachRectReverse(Region region, Consumer<Rect> rectConsumer) { in forEachRectReverse()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/bubbles/
DBubbles.java47 import java.util.function.Consumer;
104 void removeSuppressedSummaryIfNecessary(String groupKey, Consumer<String> callback, in removeSuppressedSummaryIfNecessary()
273 void isNotificationShadeExpand(Consumer<Boolean> callback); in isNotificationShadeExpand()
275 void getPendingOrActiveEntry(String key, Consumer<BubbleEntry> callback); in getPendingOrActiveEntry()
278 Consumer<List<BubbleEntry>> callback); in getShouldRestoredEntries()

12345678910>>...15