Class ShadowContextHubTransaction<T>
java.lang.Object
org.robolectric.shadows.ShadowContextHubTransaction<T>
@Implements(value=android.hardware.location.ContextHubTransaction.class,
minSdk=28,
isInAndroidSdk=false)
public class ShadowContextHubTransaction<T>
extends Object
Shadow for
ContextHubTransaction.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidreset()static voidsetShouldThrowTimeout(boolean shouldThrow) Sets whetherContextHubTransaction.waitForResponse(long, TimeUnit)should throw a TimeoutException.protected android.hardware.location.ContextHubTransaction.Response<T> waitForResponse(long timeout, TimeUnit unit)
-
Constructor Details
-
ShadowContextHubTransaction
public ShadowContextHubTransaction()
-
-
Method Details
-
setShouldThrowTimeout
public static void setShouldThrowTimeout(boolean shouldThrow) Sets whetherContextHubTransaction.waitForResponse(long, TimeUnit)should throw a TimeoutException. -
reset
-
waitForResponse
@Implementation protected android.hardware.location.ContextHubTransaction.Response<T> waitForResponse(long timeout, TimeUnit unit) throws InterruptedException, TimeoutException - Throws:
InterruptedExceptionTimeoutException
-