simpleperf: Refactor binary_cache_builder.py.

Split methods into different classes to make the code
easier to change.

Bug: 268298594
Test: run test.py --only-host-test
Change-Id: I599bbc69a9f7a7508b65fc7e66f1ded1f215fe74
2 files changed