Package org.robolectric.shadows
Class ShadowAppIntegrityManager
java.lang.Object
org.robolectric.shadows.ShadowAppIntegrityManager
@Implements(value=android.content.integrity.AppIntegrityManager.class,
minSdk=30,
isInAndroidSdk=false)
public class ShadowAppIntegrityManager
extends Object
Shadow of
AppIntegrityManager-
Constructor Summary
ConstructorsConstructorDescriptionDefault shadow constructor that resets therecordedRuleSet. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringOverrides the implementation of thegetCurrentRuleSetProvidermethod to return the gmscore package name for all the requests when a rule set exists.protected StringOverrides the implementation of thegetCurrentRuleSetVersionmethod to return the version stored in the recorded rule set.protected voidupdateRuleSet(android.content.integrity.RuleSet updateRequest, IntentSender statusReceiver) Overrides the implementation of theupdateRuleSetmethod so that a copy of the pushed rule set is kept within the shadow class.
-
Constructor Details
-
ShadowAppIntegrityManager
public ShadowAppIntegrityManager()Default shadow constructor that resets therecordedRuleSet.
-
-
Method Details
-
updateRuleSet
@Implementation protected void updateRuleSet(android.content.integrity.RuleSet updateRequest, IntentSender statusReceiver) Overrides the implementation of theupdateRuleSetmethod so that a copy of the pushed rule set is kept within the shadow class. -
getCurrentRuleSetVersion
Overrides the implementation of thegetCurrentRuleSetVersionmethod to return the version stored in the recorded rule set. The method returns "None" if there is no such rule set available. -
getCurrentRuleSetProvider
Overrides the implementation of thegetCurrentRuleSetProvidermethod to return the gmscore package name for all the requests when a rule set exists.
-