Add a version of `GetOptimizationStatus` that accepts inputs in strings am: 309ec11305 am: 0556ca4b68

Original change: https://android-review.googlesource.com/c/platform/art/+/2113484

Change-Id: I2f4cf3efec68c91ae0818e004e68507dd25b5aff
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>