Add tests for getActionFromId and for calling
getIdFromAction for an action added via hook,
reduce duplication around creating the BlockActionInfo
by always registering the hook.
Change-Id: Ibd0bd452019939340ffa9f728fb4d6b60456453e
Call onGetAllBlockActions to add to the blocked actions array.
This allows extensions to define blockable actions.
Bug: T279562
Change-Id: Ia72fdabba1dcca0e2f71e4c09400453295f0e05c