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 ofandroid.os.AutofillManager
.
-
-
Constructor Summary
Constructors Constructor Description ShadowAutofillManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ComponentName
getAutofillServiceComponentName()
Returns the overridden value set bysetAutofillServiceComponentName(ComponentName)
.protected FillEventHistory
getFillEventHistory()
protected boolean
isAutofillSupported()
Returns the overridden value set bysetAutofillSupported(boolean)
.protected boolean
isEnabled()
Returns the overridden value set bysetEnabled(boolean)
.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.
-
-
-
Method Detail
-
getFillEventHistory
@Implementation protected FillEventHistory getFillEventHistory()
-
getAutofillServiceComponentName
@Nullable @Implementation(minSdk=28) protected ComponentName getAutofillServiceComponentName()
Returns the overridden value set bysetAutofillServiceComponentName(ComponentName)
.
-
isAutofillSupported
@Implementation protected boolean isAutofillSupported()
Returns the overridden value set bysetAutofillSupported(boolean)
.
-
isEnabled
@Implementation protected boolean isEnabled()
Returns the overridden value set bysetEnabled(boolean)
.
-
setAutofillServiceComponentName
public void setAutofillServiceComponentName(@Nullable ComponentName componentName)
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()
.
-
-