Class ShadowAutofillManager


  • @Implements(value=android.view.autofill.AutofillManager.class,
                minSdk=26)
    public class ShadowAutofillManager
    extends java.lang.Object
    Robolectric implementation of android.os.AutofillManager.
    • Constructor Detail

      • ShadowAutofillManager

        public ShadowAutofillManager()
    • Method Detail

      • getFillEventHistory

        @Implementation
        protected android.service.autofill.FillEventHistory getFillEventHistory()
      • getAutofillServiceComponentName

        @Nullable
        @Implementation(minSdk=28)
        protected android.content.ComponentName getAutofillServiceComponentName()
        Returns the overridden value set by setAutofillServiceComponentName(ComponentName).
      • isAutofillSupported

        @Implementation
        protected boolean isAutofillSupported()
        Returns the overridden value set by setAutofillSupported(boolean).
      • isEnabled

        @Implementation
        protected boolean isEnabled()
        Returns the overridden value set by setEnabled(boolean).
      • setAutofillServiceComponentName

        public void setAutofillServiceComponentName​(@Nullable
                                                    android.content.ComponentName componentName)
        Overrides the component name of the autofill service enabled for the current user. See AutofillManager.getAutofillServiceComponentName().
      • setAutofillSupported

        public void setAutofillSupported​(boolean supported)
        Overrides the autofill supported state for the current device and current user. See AutofillManager.isAutofillSupported().
      • setEnabled

        public void setEnabled​(boolean enabled)
        Overrides the autofill enabled state for the current user. See AutofillManager.isEnabled().