/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/concurrency/ |
D | SyncCallbackTestCase.java | 246 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 …]
|
D | ConcurrencyHelperTest.java | 37 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/ |
D | JobServiceLoggingCallbackTest.java | 37 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()
|
D | IResultSyncCallbackTestCase.java | 76 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()
|
D | IntFailureSyncCallbackTest.java | 45 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.onResult("YES!")); in testAssertSuccess() 60 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.onFailure(42)); in testAssertFailed()
|
D | OnResultSyncCallbackTestCase.java | 37 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.onResult(injectedResult)); in testOnResult()
|
D | FailableResultSyncCallbackTestCase.java | 69 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.injectResult(injectedResult)); in testInjectResult_checkFailure() 87 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.injectFailure(failure)); in testInjectFailure()
|
D | OnFailableResultSyncCallbackTestCase.java | 50 runAsync(INJECTION_TIMEOUT_MS, () -> mCallback.onFailure(injectedFailure)); in testOnFailure()
|
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/testing/ |
D | OutcomeReceiverForTestsTest.java | 72 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/ |
D | ConcurrencyHelper.java | 40 public Thread runAsync(long timeoutMs, Runnable r) { in runAsync() method in ConcurrencyHelper
|
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/avrcp/ |
D | AvrcpVolumeManager.java | 139 CompletableFuture.runAsync( in switchVolumeDevice()
|