dex2oat: default to speed-profile if we have a profile.

And move the check for /system/etc/boot-image.prof from
AndroidRuntime.cpp to the deprecated GenerateImage() in
art/runtime/gc/space/image_space.cc . If it's not found,
just report the error and compile with the "speed" filter.

Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Test: aosp_taimen-userdebug boots.
Bug: 119800099
Bug: 148928928
Change-Id: I536ed7e6d7ebaa562cba3448a37c5d873bc0a682
4 files changed