Increase the maximum allowed dex files for boot image profiles

Boot image profiles aggregate data from a lot of apps and could easily
exceed the previous 255 dex file limit. In general a boot profile may
contain number_of_bootclasspath_elems * number_of_apps_on_device dex
files.

To cope up with this, we increase the max allowed number of dex files to
2^16. The regular profiles will keep the same low limit (255) to save ram
and space.

A side effect of this change is that in-memory representation of boot
profiles during serialization increases substantially. However, we merge
boot profiles only during idle-maintenance mode and we can afford a higher
ceiling.

Test: profile test
Bug: 139884006
Change-Id: Icdfdac8f2e4c2935692beacc8037911b64461eee
3 files changed