Home
last modified time | relevance | path

Searched refs:runAsync (Results 1 – 11 of 11) sorted by relevance

/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/concurrency/
DSyncCallbackTestCase.java246 Thread t = runAsync(INJECTION_TIMEOUT_MS, () -> call(callback)); in testAssertCalled()
320 runAsync(INJECTION_TIMEOUT_MS, () -> call(callback)); in testAssertCalled_multipleCalls()
326 runAsync(INJECTION_TIMEOUT_MS, () -> call(callback)); in testAssertCalled_multipleCalls()
351 runAsync(injectionTimeoutMs, () -> call(callback1)); in testAssertCalled_multipleCallsFromMultipleCallbacks_firstFinishFirst()
358 runAsync(injectionTimeoutMs, () -> call(callback2)); in testAssertCalled_multipleCallsFromMultipleCallbacks_firstFinishFirst()
365 runAsync(injectionTimeoutMs, () -> call(callback2)); in testAssertCalled_multipleCallsFromMultipleCallbacks_firstFinishFirst()
372 runAsync(injectionTimeoutMs, () -> call(callback1)); in testAssertCalled_multipleCallsFromMultipleCallbacks_firstFinishFirst()
402 runAsync(injectionTimeoutMs, () -> call(callback1)); in testAssertCalled_multipleCallsFromMultipleCallbacks_secondFinishFirst()
409 runAsync(injectionTimeoutMs, () -> call(callback2)); in testAssertCalled_multipleCallsFromMultipleCallbacks_secondFinishFirst()
416 runAsync(injectionTimeoutMs, () -> call(callback1)); in testAssertCalled_multipleCallsFromMultipleCallbacks_secondFinishFirst()
[all …]
DConcurrencyHelperTest.java37 assertThrows(NullPointerException.class, () -> mHelper.runAsync(SLEEP_TIMEOUT_MS, null)); in testRunASync_null()
49 mHelper.runAsync( in testRunASync()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/concurrency/
DJobServiceLoggingCallbackTest.java37 runAsync(INJECTION_TIMEOUT_MS, () -> callback.onLoggingMethodCalled()); in testCustomMethods()
46 private Thread runAsync(long timeoutMs, Runnable r) { in runAsync() method in JobServiceLoggingCallbackTest
47 return mConcurrencyHelper.runAsync(timeoutMs, r); in runAsync()
DIResultSyncCallbackTestCase.java76 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.injectResult(injectedResult)); in testInjectResult_assertResultReceived()
102 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.injectResult(injectedResult)); in testInjectNullResult_assertResultReceived()
118 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.injectResult(injectedResult)); in testInjectResult_assertCalled()
129 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.injectResult(injectedResult)); in testInjectNullResult_assertCalled()
DIntFailureSyncCallbackTest.java45 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.onResult("YES!")); in testAssertSuccess()
60 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.onFailure(42)); in testAssertFailed()
DOnResultSyncCallbackTestCase.java37 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.onResult(injectedResult)); in testOnResult()
DFailableResultSyncCallbackTestCase.java69 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.injectResult(injectedResult)); in testInjectResult_checkFailure()
87 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.injectFailure(failure)); in testInjectFailure()
DOnFailableResultSyncCallbackTestCase.java50 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.onFailure(injectedFailure)); in testOnFailure()
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/
DOutcomeReceiverForTestsTest.java72 runAsync(TIMEOUT_MS, () -> receiver.onResult(RESULT)); in testOnResult()
116 runAsync(TIMEOUT_MS, () -> receiver.onError(mError)); in testOnError()
125 runAsync(TIMEOUT_MS, () -> receiver.onError(mError)); in testOnError_wrongExceptionClass()
/packages/modules/AdServices/shared/libraries/side-less/java/com/android/adservices/shared/testing/concurrency/
DConcurrencyHelper.java40 public Thread runAsync(long timeoutMs, Runnable r) { in runAsync() method in ConcurrencyHelper
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcp/
DAvrcpVolumeManager.java139 CompletableFuture.runAsync( in switchVolumeDevice()