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
android.os.AutofillManager
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected ComponentName
Returns the overridden value set bysetAutofillServiceComponentName(ComponentName)
.protected FillEventHistory
protected boolean
Returns the overridden value set bysetAutofillSupported(boolean)
.protected boolean
Returns the overridden value set bysetEnabled(boolean)
.static void
reset()
void
setAutofillServiceComponentName
(ComponentName componentName) Overrides the component name of the autofill service enabled for the current user.void
setAutofillSupported
(boolean supported) Overrides the autofill supported state for the current device and current user.void
setEnabled
(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()
.
-