Home
last modified time | relevance | path

Searched refs:future2 (Results 1 – 2 of 2) sorted by relevance

/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/infra/
H A DAndroidFutureTest.java110 AndroidFuture future2 = AndroidFuture.CREATOR.createFromParcel(parcel); in testWriteToParcel() local
111 assertThat(future2.get()).isEqualTo(5); in testWriteToParcel()
122 AndroidFuture future2 = AndroidFuture.CREATOR.createFromParcel(parcel); in testWriteToParcel_Exception() local
124 expectThrows(ExecutionException.class, future2::get); in testWriteToParcel_Exception()
140 AndroidFuture future2 = AndroidFuture.CREATOR.createFromParcel(parcel); in testWriteToParcel_Incomplete() local
141 future2.complete(5); in testWriteToParcel_Incomplete()
152 AndroidFuture future2 = AndroidFuture.CREATOR.createFromParcel(parcel); in testWriteToParcel_Incomplete_Exception() local
153 future2.completeExceptionally(new UnsupportedOperationException()); in testWriteToParcel_Incomplete_Exception()
/aosp14/frameworks/base/tests/AttestationVerificationTest/src/android/security/attestationverification/
H A DPeerDeviceSystemAttestationVerificationTest.kt85 val future2 = CompletableFuture<Int>() regex
90 future2.complete(result)
93 assertThat(future2.getSoon()).isEqualTo(RESULT_FAILURE)