Add a parser to sequentially parse STK commands

Currently searchForTag and searchForNextTag of CommandParamsFactory are
used to parse STK commands. They provide only basic functionalities, so
not appropriate to validate mandatory/optional tags and their order.

This commit adds SequentialParser that provides two function for
mandatory and optional tag.

Bug: b/404099417
Test: atest FrameworksTelephonyTests
Flag: EXEMPT only adds a class and its tests, no uses
Change-Id: If7edb9fe4f2c24246a24667bc755d5f42d6ac37f
2 files changed