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

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

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