Package org.robolectric.shadows
Class ShadowAutofillManager
java.lang.Object
org.robolectric.shadows.ShadowAutofillManager
@Implements(value=android.view.autofill.AutofillManager.class,
minSdk=26)
public class ShadowAutofillManager
extends Object
Robolectric implementation of
AutofillManager.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ComponentNameReturns the overridden value set bysetAutofillServiceComponentName(ComponentName).protected FillEventHistoryprotected booleanReturns the overridden value set bysetAutofillSupported(boolean).protected booleanReturns the overridden value set bysetEnabled(boolean).static voidreset()voidsetAutofillServiceComponentName(ComponentName componentName) Overrides the component name of the autofill service enabled for the current user.voidsetAutofillSupported(boolean supported) Overrides the autofill supported state for the current device and current user.voidsetEnabled(boolean enabled) Overrides the autofill enabled state for the current user.
-
Constructor Details
-
ShadowAutofillManager
public ShadowAutofillManager()
-
-
Method Details
-
reset
-
getFillEventHistory
-
getAutofillServiceComponentName
Returns the overridden value set bysetAutofillServiceComponentName(ComponentName). -
isAutofillSupported
Returns the overridden value set bysetAutofillSupported(boolean). -
isEnabled
Returns the overridden value set bysetEnabled(boolean). -
setAutofillServiceComponentName
Overrides the component name of the autofill service enabled for the current user. SeeAutofillManager.getAutofillServiceComponentName(). -
setAutofillSupported
public void setAutofillSupported(boolean supported) Overrides the autofill supported state for the current device and current user. SeeAutofillManager.isAutofillSupported(). -
setEnabled
public void setEnabled(boolean enabled) Overrides the autofill enabled state for the current user. SeeAutofillManager.isEnabled().
-