Create a HandleInput class to handle user input

Currently, logic to ask for user input is handled by validate_simpleperf
directly. Since we will ask for user input multiple times, refactor this
logic into a standalone class that can be reused generically.

Test: atest validate_simpleperf_unit_test
Fixes: 382330822
Change-Id: Ia13c36f898f78f2f1dc1a845f2a88da8ef396305
3 files changed