Run dex2oat if the APK is compressed.

This CL updates OatFileAssistant. After this change, if the APK is
compressed and the current oat file doesn't contain dex code,
OatFileAssistant::GetDexOptNeeded will return true.

Bug: 267143543
Test: atest art_standalone_runtime_tests:OatFileAssistantTest
Test: -
  1. Install a compressed APK and a DM file that only contains a VDEX
     file.
  2. See dex2oat invoked.
Test: -
  1. Install an uncompressed APK and a DM file that only contains a
     VDEX file.
  2. See dex2oat not invoked.
Change-Id: If057858a614e493e00d58463af20e723f98e68b5
Merged-In: If057858a614e493e00d58463af20e723f98e68b5
(partially picked from commit c98ed72511453b8efc25e6d1047a04c1d8db374b)

Change-Id: I21e0a63a5fae56ba373aee9e6179a991b3e7b2ee
7 files changed