simpleperf: refactor app_profiler.py.
1. Split arguments of app_profiler.py into different groups to
make them clear.
2. Split different types of profiling into different classes.
3. Remove the code checking app's arch, because the new unwinder
supports all archs.
4. Force app_profiler.py to only support Android >= N, remove
code supporting old android versions.
5. Don't compile java code by default. Because there will be
no need to compile java code on Android >= P.
Also make some small changes to pass test.py.
Bug: http://b/73127000
Test: run pylint on changed python code.
Test: run test.py and simpleperf_unit_test.
Change-Id: Ied6c946d0f1293ba6e7682f38ba826bc274f160a
8 files changed