Home
last modified time | relevance | path

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

1234

/cts/tests/tests/view/src/android/view/cts/
DMockScrollCaptureCallback.java29 import java.util.function.Consumer;
32 private Consumer<Rect> mSearchConsumer;
34 private Consumer<Rect> mImageOnComplete;
40 @NonNull Consumer<Rect> onReady) { in onScrollCaptureSearch()
55 @NonNull Consumer<Rect> onComplete) { in onScrollCaptureImageRequest()
DViewGroup_ScrollCaptureTest.java48 import java.util.function.Consumer;
58 private static class Receiver<T> implements Consumer<T> {
417 Consumer<ScrollCaptureTarget> targets) { in onScrollCaptureSearch()
432 Consumer<ScrollCaptureTarget> results) { in dispatchScrollCaptureSearch()
444 @NonNull Consumer<Rect> onReady) { in onScrollCaptureSearch()
455 Consumer<Rect> onComplete) { in onScrollCaptureImageRequest()
484 Consumer<ScrollCaptureTarget> targets) { in onScrollCaptureSearch()
/cts/tests/tests/background/src/android/app/cts/backgroundrestrictions/
DMyReceiver.java26 import java.util.function.Consumer;
30 private static final AtomicReference<Consumer<Intent>> sCallback
35 final Consumer<Intent>callback = sCallback.get(); in onReceive()
41 public static void setCallback(Consumer<Intent> callback) { in setCallback()
DBroadcastsTest.java44 import java.util.function.Consumer;
103 BiConsumer<IntentFilter, Consumer<Intent>> receiverInitializer, in testNonSupportedBroadcastsNotDelivered()
104 Consumer<Intent> intentInitializer, in testNonSupportedBroadcastsNotDelivered()
137 final Consumer<Intent> callbackHandler = (intent) -> { in testNonSupportedBroadcastsNotDelivered()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DNotificationListener.java26 import java.util.function.Consumer;
48 private List<Consumer<StatusBarNotification>> mListeners = new ArrayList<>();
50 public void addListener(Consumer<StatusBarNotification> listener) { in addListener()
60 for (Consumer<StatusBarNotification> listener : mListeners) { in onNotificationPosted()
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DNotificationListener.java27 import java.util.function.Consumer;
48 private List<Consumer<StatusBarNotification>> mListeners = new ArrayList<>();
50 public void addListener(Consumer<StatusBarNotification> listener) { in addListener()
60 for (Consumer<StatusBarNotification> listener : mListeners) { in onNotificationPosted()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DNotificationListener.java27 import java.util.function.Consumer;
48 private List<Consumer<StatusBarNotification>> mListeners = new ArrayList<>();
50 public void addListener(Consumer<StatusBarNotification> listener) { in addListener()
60 for (Consumer<StatusBarNotification> listener : mListeners) { in onNotificationPosted()
/cts/tests/inputmethod/src/android/view/inputmethod/cts/
DInlineSuggestionTest.java41 import java.util.function.Consumer;
81 Consumer<InlineContentView> mockConsumer = mock(Consumer.class); in testInflateInvalidSizeThrowsException()
93 Consumer<InlineContentView> consumer = view -> { in testInflateNoContentProviderAcceptNullView()
106 Consumer<InlineContentView> mockConsumer = mock(Consumer.class); in testInflateTwiceThrowsException()
/cts/tests/tests/media/src/android/media/cts/
DMediaButtonReceiverService.java25 import java.util.function.Consumer;
29 public static Consumer<KeyEvent> mCallback;
35 public synchronized static void setCallback(Consumer<KeyEvent> callback) { in setCallback()
DMediaButtonBroadcastReceiver.java26 import java.util.function.Consumer;
29 public static Consumer<KeyEvent> mCallback;
42 public synchronized static void setCallback(Consumer<KeyEvent> callback) { in setCallback()
/cts/tests/tests/voiceinteraction/testapp/src/android/voiceinteraction/testapp/
DDirectActionsActivity.java40 import java.util.function.Consumer;
87 @NonNull Consumer<List<DirectAction>> callback) { in onGetDirectActions()
106 CancellationSignal cancellationSignal, Consumer<Bundle> callback) { in onPerformDirectAction()
168 private static void reportActionPerformed(Consumer<Bundle> callback) { in reportActionPerformed()
176 private static void reportActionCancelled(Consumer<Bundle> callback) { in reportActionCancelled()
184 private static void reportActionExecuting(Consumer<Bundle> callback) { in reportActionExecuting()
192 private static void reportActionFailed(Consumer<Bundle> callback) { in reportActionFailed()
/cts/tests/signature/tests/src/android/signature/cts/tests/
DLineSpliteratorTestBase.java29 import java.util.function.Consumer;
42 protected static final Consumer<Integer> FAIL_CONSUMER = str -> {
49 protected static Consumer<Integer> createVerifier(final int i) { in createVerifier()
62 Function<Integer, Consumer<T>> verifierFn) { in doTestConverter()
/cts/tests/tests/hardware/src/android/hardware/input/cts/
DInputCtsActivity.java26 import java.util.function.Consumer;
32 private Consumer<Boolean> mPointerCaptureCallback;
88 public void setPointerCaptureCallback(Consumer<Boolean> callback) { in setPointerCaptureCallback()
/cts/hostsidetests/theme/app/src/android/theme/app/
DConditionCheck.java24 import java.util.function.Consumer;
37 private final Consumer<String> mOnFailure;
43 ConditionCheck(Context context, Runnable onSuccess, Consumer<String> onFailure) { in ConditionCheck()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DCondition.java26 import java.util.function.Consumer;
70 private Consumer<T> mOnFailure;
119 public Condition<T> setOnFailure(Consumer<T> onFailure) { in setOnFailure()
196 public static <T> T waitForResult(String message, Consumer<Condition<T>> setup) { in waitForResult()
/cts/tests/searchui/src/android/searchuiservice/cts/
DSearchUiManagerTest.java72 import java.util.function.Consumer;
215 Consumer<List<SearchTarget>> consumer in testQuery_mockCallback()
216 = (Consumer<List<SearchTarget>>) answer.getArgument(2); in testQuery_mockCallback()
219 }).when(mWatcher.verifier).onQuery(any(), any(), any(Consumer.class)); in testQuery_mockCallback()
232 ArgumentCaptor<Consumer<List<SearchTarget>>> callbackArg in testQuery_params()
233 = ArgumentCaptor.forClass(Consumer.class); in testQuery_params()
243 Consumer<List<SearchTarget>> expectedCallback = callbackArg.getValue(); in testQuery_params()
278 Consumer<List<SearchTarget>> {
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/utils/
DCtsTestUtils.java21 import java.util.function.Consumer;
42 public static <T> void runIfNotNull(T callee, Consumer<T> action) { in runIfNotNull()
/cts/tests/tests/telephony/current/src/android/telephony/cts/
DCellBroadcastServiceTest.java28 import java.util.function.Consumer;
48 String originatingAddress, Consumer<Bundle> callback) { in testConstructor()
/cts/tests/location/common/src/android/location/cts/common/
DGetCurrentLocationCapture.java10 import java.util.function.Consumer;
12 public class GetCurrentLocationCapture implements Consumer<Location>, AutoCloseable {
/cts/tests/translation/src/android/translation/cts/views/
DCustomTextView.java29 import java.util.function.Consumer;
45 Consumer<ViewTranslationRequest> requestsCollector) { in onCreateViewTranslationRequest()
DVirtualContainerView.java27 import java.util.function.Consumer;
44 Consumer<ViewTranslationRequest> requestsCollector) { in onCreateVirtualViewTranslationRequests()
/cts/tests/tests/syncmanager/src/android/content/syncmanager/cts/
DBroadcastRpc.java28 import java.util.function.Consumer;
45 public Payload.Response invoke(String targetPackage, Consumer<Builder> c) throws Exception { in invoke()
/cts/tests/translation/src/android/translation/cts/
DCtsTranslationService.java47 import java.util.function.Consumer;
110 int sessionId, @NonNull Consumer<Boolean> callback) { in onCreateTranslationSession()
124 @NonNull Consumer<TranslationResponse> callback) { in onTranslationRequest()
133 @NonNull Consumer<Set<TranslationCapability>> callback) { in onTranslationCapabilitiesRequest()
273 @NonNull Consumer<TranslationResponse> callback) { in handleOnTranslationRequest()
/cts/tests/tests/role/src/android/app/role/cts/
DRoleControllerManagerTest.kt43 import java.util.function.Consumer
100 roleName, packageName, context.mainExecutor, Consumer { future.complete(it) } in assertAppIsVisibleForRole()
126 roleName, context.mainExecutor, Consumer { future.complete(it) } in isRoleVisible()
/cts/tests/signature/lib/common/src/android/signature/cts/
DBufferedReaderLineSpliterator.java7 import java.util.function.Consumer;
66 public boolean tryAdvance(Consumer<? super T> action) { in tryAdvance()

1234