simpleperf: split code doing different conversions in InjectCommand.

Bug: 208403304
Test: run simpleperf_unit_test
Change-Id: I3d926464e35d0af0ca217d3795c03dfb2154f6eb
1 file changed