summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorWinson <chiuwinson@google.com>2020-01-24 11:50:11 -0800
committerWinson <chiuwinson@google.com>2020-02-19 00:29:03 -0800
commit01e38f40c217c3a3ae1cfb5369e7ef2aa356e75c (patch)
treec51ba533b3e5e4d0d88ebc1408ab23736b14ff96 /tools/aapt2/java/JavaClassGenerator_test.cpp
parent913b79a6ac48a579e9c0e2af46c794a8a80aea3d (diff)
Separate ParsingPackage into core and ParsedPackage into server
PackageParser exists in the core framework SDK, and so callers to it would not not expect a call into the system server. However, some planned features require parts of parsing to exist in the server so that package state/settings contained in the server can be applied to the package. To resolve this, separate ParsingPackage and ParsedPackage through a hard boundary, where ParsingPackageImpl is roughly equivalent to the previous PackageImpl, and the new PackageImpl is everything that should exist in the server and not core. This also copies over documentation and cleans up the data models significantly. The fields have been moved to @NonNull, and in preparation for true immutability, all Collection structures have moved to generic types and assigned Collections#empty_(). This begins moving away from @hide AppInfo fields, so internal use of flags/privateFlags is deprecated. It is now replaced by straight booleans. For simplicity's sake, existing flags have also been migrated. This is split for readability and will not compile without the followup commits. Bug: 135203078 Test: atest com.android.server.pm.parsing Test: atest PackageParserTest Test: atest PackageParserLegacyCoreTest Test: atest ScanTests Test: atest ParallelPackageParserTest Test: manual toggle and run AndroidPackageParsingTestBase Change-Id: Ib4fe51d729a56bfb0ea1316e577358ba0dfceccf
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions