Class ShadowDisplayHashManager

java.lang.Object
org.robolectric.shadows.ShadowDisplayHashManager

@Implements(value=android.view.displayhash.DisplayHashManager.class, isInAndroidSdk=false, minSdk=31) public class ShadowDisplayHashManager extends Object
  • Constructor Details

    • ShadowDisplayHashManager

      public ShadowDisplayHashManager()
  • Method Details

    • setVerifyDisplayHashResult

      public static void setVerifyDisplayHashResult(VerifiedDisplayHash verifyDisplayHashResult)
      Sets the VerifiedDisplayHash that's going to be returned by following {DisplayHashManager#verifyDisplayHash} calls.
    • setSupportedHashAlgorithms

      public static void setSupportedHashAlgorithms(Collection<String> supportedHashAlgorithms)
      Sets the return value of #getSupportedHashAlgorithms.

      If null is provided, getSupportedHashAlgorithms will throw a RuntimeException.

    • getSupportedHashAlgorithms

      @Implementation(minSdk=31) protected Set<String> getSupportedHashAlgorithms()
    • verifyDisplayHash

      @Implementation(minSdk=31) protected VerifiedDisplayHash verifyDisplayHash(DisplayHash displayHash)