Search in /system_ext for apex systemserver dexpreopt files
With https://r.android.com/3288083, the dexpreopt files of apex system
server jars will be installed in the same pratition as the parent apex.
This CL updates `GetSystemOdexFilenameForApex` to look for these files
in /system, followed by /system_ext
Since file existence is now checked and unit tests do not set up a mock
filesystem, an existing unit test has been updated to expect the
filepath to be in /system_ext
(There is also a long term discussion of moving them to system_other)
Test: Verified that "Could not check odex file" does not appear for
service-compos (a system_ext apex systemserver jar)
Test: m test-art-host-gtest
Bug: 369678122
Bug: 349083274
Change-Id: I2c0f3394a1c5ab4900bd96798ba7ea348d9c9b80
2 files changed