TextInputWidget: Add setValidation function to change pattern used to validate text

See Ieaf4c194, follows up I693a8bc9

Bug: 70957
Change-Id: I7e3a2a1618a37696537ee60dd58ebc3788530a7a
Merge "TextInputWidget: Add setValidation function to change pattern used to validate text"