Home
last modified time | relevance | path

Searched refs:Callable (Results 1 – 25 of 55) sorted by relevance

123

/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DMockScheduledExecutorService.java26 import java.util.concurrent.Callable;
92 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { in schedule()
134 public <T> Future<T> submit(Callable<T> task) { in submit()
159 public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) in invokeAll()
165 public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, in invokeAll()
171 public <T> T invokeAny(Collection<? extends Callable<T>> tasks) in invokeAny()
177 public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAny()
191 private final Callable<V> mCallable;
199 MockScheduledFuture(Callable<V> callable, long delay, TimeUnit timeUnit) { in MockScheduledFuture()
203 private MockScheduledFuture(Runnable runnable, Callable<V> callable, long delay) { in MockScheduledFuture()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTestExecutorService.java28 import java.util.concurrent.Callable;
43 private final Callable<T> mTask;
47 CompletedFuture(Callable<T> task) { in CompletedFuture()
52 CompletedFuture(Callable<T> task, long delayMs) { in CompletedFuture()
59 mTask = (Callable<T>) Executors.callable(task); in CompletedFuture()
146 public <T> Future<T> submit(Callable<T> task) { in submit()
162 public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) { in invokeAll()
167 public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, in invokeAll()
173 public <T> T invokeAny(Collection<? extends Callable<T>> tasks) { in invokeAny()
178 public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) { in invokeAny()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/apphibernation/
DHibernationStateDiskStoreTest.java42 import java.util.concurrent.Callable;
149 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) { in schedule()
191 public <T> Future<T> submit(Callable<T> task) { in submit()
206 public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks) in invokeAll()
212 public <T> List<Future<T>> invokeAll(Collection<? extends Callable<T>> tasks, long timeout, in invokeAll()
218 public <T> T invokeAny(Collection<? extends Callable<T>> tasks) in invokeAny()
224 public <T> T invokeAny(Collection<? extends Callable<T>> tasks, long timeout, TimeUnit unit) in invokeAny()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/ui/view/
DNotificationStatsLoggerTest.kt34 import java.util.concurrent.Callable in <lambda>()
69 val callable = Callable { locations } in <lambda>()
105 val callable = Callable { locations } in <lambda>()
111 val emptyCallable = Callable { emptyMap<String, Int>() } in <lambda>()
142 val callable = Callable { locations } in <lambda>()
148 val emptyCallable = Callable { emptyMap<String, Int>() } in <lambda>()
197 val callable = spy(Callable { locations }) in <lambda>()
203 val otherCallable = spy(Callable { locations }) in <lambda>()
217 val callable = Callable { locations } in <lambda>()
361 val callable = Callable { locations } in <lambda>()
[all …]
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/
DWakelockControllerTest.java37 import java.util.concurrent.Callable;
257 Callable<Boolean> isWakelockAcquiredCallable) in verifyWakelockAcquisitionAndReaquisition()
264 Callable<Boolean> isWakelockAcquiredCallable) in verifyWakelockReleaseAndRerelease()
271 Callable<Boolean> isWakelockAcquiredCallable) in verifyWakelockAcquisition()
278 Callable<Boolean> isWakelockAcquiredCallable) in verifyWakelockReacquisition()
284 private void verifyWakelockRelease(int wakelockId, Callable<Boolean> isWakelockAcquiredCallable) in verifyWakelockRelease()
291 Callable<Boolean> isWakelockAcquiredCallable) in verifyWakelockRerelease()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/ui/view/
DNotificationStatsLogger.kt20 import java.util.concurrent.Callable
33 locationsProvider: Callable<Map<String, Int>>,
/frameworks/libs/systemui/viewcapturelib/src/com/android/app/viewcapture/
DLooperExecutor.java21 import java.util.concurrent.Callable;
52 public <T> Future<T> submit(Callable<T> task) { in submit()
/frameworks/base/tests/testables/src/android/testing/
DPollingCheck.java20 import java.util.concurrent.Callable;
62 public static void check(CharSequence message, long timeout, Callable<Boolean> condition) in check()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/
DMffTestCase.java24 import java.util.concurrent.Callable;
43 FutureTask<MffContext> task = new FutureTask<MffContext>(new Callable<MffContext>() { in setUp()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/view/
DAppTransitionAnimationSpecsFuture.java25 import java.util.concurrent.Callable;
36 new Callable<List<AppTransitionAnimationSpecCompat>>() {
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/utils/
DThreadUtils.java27 import java.util.concurrent.Callable;
84 public static <T> ListenableFuture<T> postOnBackgroundThread(@NonNull Callable<T> callable) { in postOnBackgroundThread()
/frameworks/base/packages/SettingsLib/AvatarPicker/src/
DThreadUtils.java28 import java.util.concurrent.Callable;
86 public static <T> ListenableFuture<T> postOnBackgroundThread(@NonNull Callable<T> callable) { in postOnBackgroundThread()
/frameworks/base/services/core/java/com/android/server/timezonedetector/location/
DThreadingDomain.java24 import java.util.concurrent.Callable;
107 @NonNull Callable<V> callable, @DurationMillisLong long durationMillis) in postAndWait()
DHandlerThreadingDomain.java24 import java.util.concurrent.Callable;
65 <V> V postAndWait(@NonNull Callable<V> callable, @DurationMillisLong long durationMillis) in postAndWait()
/frameworks/base/core/tests/coretests/testdoubles/src/com/android/internal/util/
DFakeLatencyTracker.java38 import java.util.concurrent.Callable;
52 private final AtomicReference<Callable<Boolean>> mShouldClosePropertiesUpdatedCallable =
136 Callable<Boolean> shouldClosePropertiesUpdated = in onDeviceConfigPropertiesUpdated()
244 public void waitForPropertiesCondition(Callable<Boolean> shouldClosePropertiesUpdatedCallable) in waitForPropertiesCondition()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DSystemServiceTestsBase.java31 import java.util.concurrent.Callable;
76 <T> T awaitInWmLock(Callable<T> callable) { in awaitInWmLock()
DWindowManagerGlobalLockRule.java32 import java.util.concurrent.Callable;
80 <T> T waitForLocked(Callable<T> callable) { in waitForLocked()
/frameworks/base/services/tests/timetests/src/com/android/server/timezonedetector/location/
DTestThreadingDomain.java29 import java.util.concurrent.Callable;
83 <V> V postAndWait(Callable<V> callable, long durationMillis) { in postAndWait()
/frameworks/base/core/java/android/view/
DInputEventSender.java29 import java.util.concurrent.Callable;
153 final RunnableFuture<Boolean> task = new FutureTask<>(new Callable<Boolean>() { in sendInputEvent()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/remote/
DRemoteCallTest.java43 import java.util.concurrent.Callable;
252 private static <T> Future<T> runInWorkerThreadAsync(Callable<T> supplier) { in runInWorkerThreadAsync()
258 private static <T> T runInWorkerThread(Callable<T> supplier) throws Exception { in runInWorkerThread()
/frameworks/base/core/tests/coretests/src/android/graphics/
DPaintNativeInstanceTest.kt26 import java.util.concurrent.Callable in <lambda>()
121 class PaintTask(private val mPaint: Paint) : Callable<Bitmap> { in <lambda>()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DTestUtils.java37 import java.util.concurrent.Callable;
172 public static <T> T uncheck(Callable<T> callable) { in uncheck()
/frameworks/base/services/tests/timetests/src/com/android/server/timedetector/
DArrayMapWithHistoryTest.java34 import java.util.concurrent.Callable;
164 String description, Callable<?> callable) throws Exception { in assertThrowsArrayIndexOutOfBoundsException()
/frameworks/base/services/tests/InputMethodSystemServerTests/src/com/android/server/inputmethod/
DInputMethodBindingControllerTest.java49 import java.util.concurrent.Callable;
220 private static <V> V callOnMainSync(Callable<V> callable) { in callOnMainSync()
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DAnrHelperTest.java52 import java.util.concurrent.Callable;
101 doReturn(mEarlyDumpFuture).when(earlyDumpExecutorService).submit(any(Callable.class)); in setUp()

123