Extract common display density configuraiton code
We're currently importing the whole of SettingsLib into the Settings
Backup Agent just to access a single static method. This seems to
have contributed to a the regression which relates to b/139373401.
This CL separates the 3 related methods out into their own build
target so the amount of code included in SettingsBackupAgent is
much smaller.
A later CL will remove the original location after all usages
have been redirected to this new location
Bug: 139373401
Test: atest SettingsProviderTest SettingsLibRoboTests
Change-Id: I36fbc21daddcf068491b58db01b66f540ac26cf7
diff --git a/packages/SettingsProvider/Android.bp b/packages/SettingsProvider/Android.bp
index e54b847..0144dd4 100644
--- a/packages/SettingsProvider/Android.bp
+++ b/packages/SettingsProvider/Android.bp
@@ -11,7 +11,7 @@
],
static_libs: [
"junit",
- "SettingsLib",
+ "SettingsLibDisplayDensityUtils",
],
platform_apis: true,
certificate: "platform",
@@ -30,7 +30,7 @@
],
static_libs: [
"androidx.test.rules",
- "SettingsLib",
+ "SettingsLibDisplayDensityUtils",
],
libs: [
"android.test.base",