/cts/tests/tests/view/src/android/view/cts/ |
D | MockScrollCaptureCallback.java | 29 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()
|
D | ViewGroup_ScrollCaptureTest.java | 48 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/ |
D | MyReceiver.java | 26 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()
|
D | BroadcastsTest.java | 44 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/ |
D | NotificationListener.java | 26 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/ |
D | NotificationListener.java | 27 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/ |
D | NotificationListener.java | 27 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/ |
D | InlineSuggestionTest.java | 41 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/ |
D | MediaButtonReceiverService.java | 25 import java.util.function.Consumer; 29 public static Consumer<KeyEvent> mCallback; 35 public synchronized static void setCallback(Consumer<KeyEvent> callback) { in setCallback()
|
D | MediaButtonBroadcastReceiver.java | 26 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/ |
D | DirectActionsActivity.java | 40 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/ |
D | LineSpliteratorTestBase.java | 29 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/ |
D | InputCtsActivity.java | 26 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/ |
D | ConditionCheck.java | 24 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/ |
D | Condition.java | 26 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/ |
D | SearchUiManagerTest.java | 72 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/ |
D | CtsTestUtils.java | 21 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/ |
D | CellBroadcastServiceTest.java | 28 import java.util.function.Consumer; 48 String originatingAddress, Consumer<Bundle> callback) { in testConstructor()
|
/cts/tests/location/common/src/android/location/cts/common/ |
D | GetCurrentLocationCapture.java | 10 import java.util.function.Consumer; 12 public class GetCurrentLocationCapture implements Consumer<Location>, AutoCloseable {
|
/cts/tests/translation/src/android/translation/cts/views/ |
D | CustomTextView.java | 29 import java.util.function.Consumer; 45 Consumer<ViewTranslationRequest> requestsCollector) { in onCreateViewTranslationRequest()
|
D | VirtualContainerView.java | 27 import java.util.function.Consumer; 44 Consumer<ViewTranslationRequest> requestsCollector) { in onCreateVirtualViewTranslationRequests()
|
/cts/tests/tests/syncmanager/src/android/content/syncmanager/cts/ |
D | BroadcastRpc.java | 28 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/ |
D | CtsTranslationService.java | 47 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/ |
D | RoleControllerManagerTest.kt | 43 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/ |
D | BufferedReaderLineSpliterator.java | 7 import java.util.function.Consumer; 66 public boolean tryAdvance(Consumer<? super T> action) { in tryAdvance()
|