Behavior change of the 'Erase all data (factory reset)' button.

- for base restriction: keep the old behavior, which is to gray out
  the button, and show toast when clicked

- for dpm restriction: enable the button. when clicked, show dialog
when clicked, show 'Blocked by your IT admin' dialog.

Test: atest FactoryResetEntryPreferenceControllerTest \
    ApplicationActionButtonsPreferenceControllerTest

Test: manual testing with the CtsVerfier app

Bug: 185248897
Change-Id: Ia171d95ca79e41740db048030aa52265974d7b70
6 files changed