Allow DexFile#getDexOptNeeded to check case when downgrading is required

The change in the API will allow comparison of compiler filter in case when
downgrade is required. Previously, it used to only consider cases of compiler
filter upgrades.

Test: adb shell cmd package bg-dexopt-job
Bug: 36598475
Change-Id: I07616b7441fd39f7e8477f1ec46e10d425a2d001
7 files changed