1138012b54
This changes the API for generatePackageInfoFromApex in PackageParser in response to review suggestions made in ag/6701090. The method is renamed to generatePackageInfo with a PackageParser.Package parameter (as well as an ApexInfo and flags). The implementation is combined with the main generatePackageInfo method. Callers are changed to perform the parsing themselves, including the collection of certificates if necessary. Note: the method signature and implementation had already changed since ag/6701090, so the suggestions from that CL may not apply directly. Bug: 129261524 Test: atest PackageParserTest Test: atest CtsStagedInstallHostTestCases Change-Id: Iee213e025583c2201ff9d65c447e4278b925a2f0 Merged-In: I495539679812110f89d5e3d93f2622ba2dab36c0 (cherry picked from commit c2c7a22333b828cd3a630fe9efb1b18b0e6af289)