Base isDexOptNeeded result on OatFileAssistant::IsUpToDate.

So that it is consistent with when ART will try to run dex2oat.

Bug: 28826195

(cherry picked from commit 10267549f5ea8acc07ea6163a87c9b4b8ea62be4)

Change-Id: I5c891dc1a5a42ff7e0a4d3e66e9ecca37da743f2
1 file changed