Move the validators out of the settings class
Currently the validators static initialiser gets triggered when the relevant settings class is accessed. Moving them out to the SettingsBackupAgent (which is the only place they're used) has two main advantages; 1) All apps accessing the Settings classes no longer trigger the static initialisers and so are faster. 2) Putting them in SettingsBackupAgent gets them off the bootclasspath of all apps and makes the framework jars smaller. Bug: 139449903 Test: atest SettingsProviderTest RunBackupFrameworksServicesRoboTests CtsBackupTestCases CtsBackupHostTestCases GtsBackupTestCases GtsBackupHostTestCases Change-Id: Ie740c1ea25a01c715964175094677af2e3328732
Loading
Please register or sign in to comment