The method this change moves needs to be accessed by permission
controller which doesn't have access to platform apis. The new module
SettingsLibUtils requires system api. Other methods in SettingsLib which
don't need platform apis could also be moved into this module.
Test: Use talkback on permission screens
Bug: 127602715
Change-Id: I017fd22712c3e6eb38a0aa1fb95d4331e9b56a2a
- Provide an abstract api named getScheduleInfoList.
- Implement a ScheduleInfo class.
Fixes: 148995400
Test: compilation
Change-Id: I236627daa478fb2d2d138a8832680b1ec2464b3b
In order to prevent DoS attack from icon size,
we're usinga system lib to help convert any loaded
drawable into a flattened bitmap with an appropriate size.
Test: Rebuild
Bug: 33646131
Change-Id: I92e76fb4e4c23c4995f63ebd2df8cbe0a349fbce
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
Create a new battery drawable that will load enough resources from
frameworks/base/core/res/res/ to allow for theming overlays. The current
things are overlayable:
- Perimeter path: the outer shape of the battery (including the
terminal)
- Fill mask: path defining the shape of the fill
- Bolt path: charging bolt path. draws with appropriate protection for
visibilty
- Powersave path: path of the plus sign that draws when in powersave
mode. also draws with protection
Test: visual; sysui demo mode
Bug: 123705805
Change-Id: I2bb15fd10e3fec63cb115a8f216794933b717404
Move the logic for a horizontal progress bar into its own library in
SettingsLib.
Bug: 123538370
Test: Code using this library still works.
Change-Id: I700c5e481bf32077e19e606d797e5b698b2cc33a
And remove dependency to settingslib.core.Lifecycle. This class use
androidx.Lifecycle instead.
Bug: 123311100
Test: robotests
Change-Id: I80bbbf4bc2759e574d8dabf1799b3bded216f2f3
- Per Q design, we will show a bar chart in Settings > Privacy page.
Permission team also needs this bar chart in their page.
- Create a new library named SettingsLibBarChartPreference
Test: visual, robotest
Change-Id: Iff5a1233357a6aa6a667c0059f542a1b444b59a2
Fixes: 117623686
- Rename lib name of ActionButtonsPreference and LayoutPreference.
- Remove Settings* prefix for directory name of LayoutPreference.
The LayoutPreference is in settingslib so it's pretty clear
it's a settings widget.
Test: Rebuild SettingsLib and robotest Settings
Change-Id: Ic5004c42ad08b0a7f31a2716e4af067da19b6fa2
Fixes: 120706174
This reverts commit 2c8d699c97.
Reason for revert: broke build when combined with ag/5781147
Bug: 120706174
Change-Id: I67d5a020c8c283344457643bb3ee6585b63f53c4
- Rename lib name of ActionButtonsPreference and LayoutPreference.
- Remove Settings* prefix for directory name of LayoutPreference.
The LayoutPreference is in settingslib so it's pretty clear
it's a settings widget.
Test: Rebuild SettingsLib and robotest Settings
Change-Id: Ief827067dec85bb5b3ce07d97723c0323aece294
Fixes: 120706174
- Create a library named EntityHeaderWidgets, it can contains
other entity header wdigets in the future.
- Create a controller of AppEntitiesHeader,
then user can initialize its view easily.
Test: visual, robotest
Change-Id: If11b3eba75334f66b72472b2139e0e7d93984dce
Fixes: 117621156
- Rename lib name of ActionButtonsPreference and LayoutPreference.
- Remove Settings* prefix for directory name of LayoutPreference.
The LayoutPreference is in settingslib so it's pretty clear
it's a settings widget.
Test: Rebuild
Change-Id: I8f4b8643ee4b2cb3756d1c3e82d91021916e08c2
Fixes: 120706174
Since this widget will be used by other app,
we move it into SettingsLib.
Test: robotest
Bug: 120005054
Change-Id: Ib54b33d676ca6f742f18fae398a36b217340373c
- Since LayoutPreference will be used by other apps,
we move it into SettingsLibs
Test: robotest
Bug: 120005054
Change-Id: Iec509cbd9f27d9f0172c7d035b0f7797d1528380
androidx dependencies should always be static, and Soong is
changing to match Make and not include resources from libraries
in libs.
Test: m checkbuild
Change-Id: I478856e7d4d380f5d2623885e04d3923716b68e9
Create a drop-down filter widget let other apps can use it.
UX goal is to use this widget on a bunch of page.
For example, Permissions, All apps, Sunshine, etc.
Change-Id: I0e939388d307deff9bad51e3ef415043814ec49e
Fixes: 112706966
Test: robotests
Also make the new lib only use system-apis.
This allows mainline module to use the new
RestrictedLockUtilsSettingLib.
Unfortunately the whole RestrictedLockUtils would have caused to much
new system-api. Hence it was split into RestrictedLockUtils and
RestrictedLockUtilsInternal. This caused a lot of trivial code changes.
Bug: 110953302
Test: Built
Change-Id: I693b3bf56f3be71f0790776e3aad5694717786ef
This is the first of a few sub-libraries that will get factored out of
the settings lib. These libs will be included by mainline modules which
are compiles against system-api.
Bug: 110953302
Test: Looked at UI
m -j RunRoboSettingsLibTests
Change-Id: I16347e565aca554d6a8653df35765c2194479e78