[installd] Extend profile operations to take the profile name

Extend the installd profile interface to take the profile name as
argument. This shifts the responsibility for choosing the names of
profiles for primary apks completely to PackageManager. Each of the
application code paths will get an unique profile name.

All the profile operations will now work on a specific profile name rather
than assuming a default global name.

Test: installd_dexopt_test
Bug: 30934496
Change-Id: I5847d35fe4d3caa5a2b32293426a24683af42030
7 files changed