odrefresh: Run with background threads/cpu_set in CompOS

odrefresh unconditionally sets the number of threads and cpu set
arguments of dex2oat to 'dalvik.vm.boot-dex2oat-threads' and
'dalvik.vm.boot-dex2oat-cpu-set', respectively (if set).

However, Compilation OS does not invoke odrefresh during boot, but
rather in idle and charging mode. Select the '.background-' variant
of the sysprops in that mode.

If the first prop is empty, fall back to the generic, non-prefixed
property.

Test: atest ComposHostTestCases
Change-Id: I19b558b40d8a92d3711c383e05debcf58882444b
1 file changed