- Remove the duplicated setting in the ContentDescription.
Bug: 191735947
Test: manual test
Test: make RunSettingsLibRoboTests -j ROBOTEST_FILTER=com.android.settingslib.widget
Change-Id: If28d0002dd1087173623b654c67bc7597d721a85
Test: ManagedDeviceActionDisabledByAdminControllerTest
Test: manually observed the policy transparency dialog
with launching the admin policies screen
Test: manually observed the policy transparency dialog
with launching the web help page
Fixes: 191727929
Change-Id: I03aaf2ddbaff3ea515404b257d1590c08ae3ab65
Actions:
1) Migrate and deprecate the widget AnimatedImagePreference
into SettingsLib IllustrationPreference. It would extend
to support the static (e.g., svg, png), animated (e.g., gif)
and lottie format image.
2) Create setImageUri() for IllustrationPreference.
3) Create setImageDrawable() for IllustrationPreference.
Bug: 190585192
Test: make RunSettingsLibRoboTests ROBOTEST_FILTER=com.android.settingslib.widget.IllustrationPreferenceTest
Change-Id: Iad5bc6af78cca4d57cb56eec104ef2384da7be9f
Before this change, only the spinner inside
SettingsSpinnerPreference is clickable. The preference
itself is not clickable.
After this change, whole preference area is clickable
and it will show dropdown view of the spinnner at
onPreferenceClick.
Bug: 187142293
Test: atest SettingsSpinnerPreferenceTest
manual visual
Inserts an USB flash drive and clicks SettingsSpinnerPreference
in Storage Settings.
Change-Id: Ib4de017e6f5930f7b29c8958f2fe7f7dbe347324
Padding between title and subtitle is 8dp should be 4dp.
Touch target on dismiss button is too small for a11y requirements. Use
a touch delegate on the card view to increase touchable size without
changing layout.
Bug: 190780536
Test: Manually confirmed new layout works
Test: Use adb shell input tap x y to touch dismiss button
Change-Id: I749ab2e7cba811d841804d73c13a2b792591dfa1
1) Adds UserManager#DISALLOW_BIOMETRIC. We actually need to
pass a restriction from settings to ActionDisabledByAdmin area,
otherwise the biometric-specific dialog would be shown outside of
biometric flows.
2) Adds an interface to ActionDisabledByAdminController to return a
optional OnClickListener for the positive dialog button
3) Returns an instance of the biometric controller when conditions
are met
4) Adds string interfaces to DeviceAdminStringProvider to retrieve
biometric-specific strings
Bug: 188847063
Bug: 191306258
Test: manual
Change-Id: Iaeffdeb1336d5db56d464104cdc7677b9021f609
ActionDisabledByAdming dialog was not showing the "Learn More" button
when restriction is enforced by the device owner for
disallow_factory_reset.
Test: atest ActionDisabledLearnMoreButtonLauncherTest
Bug: 185248897
Change-Id: I835d3aa040bd3e554acc8340d47831a4c89c45de
happens off of the target region.
- Disable the focusable and clickable features.
Fix: 189079003
Test: robotest and test the switch manually
Change-Id: I0fa19c132ddfd5a3e010bf8328c6b84c1087d78b
- Support the dynamic color.
The colors of the illustration's labels can be changed.
We create a mapping table of colors and labels.
According to this mapping table, preference can
apply the corresponding colors to the illustration.
- Support the middle ground view.
User can overlay a view on top of the illustration.
- Support the auto scale of illustration.
- Update the layout to prevent the animation cropping.
Fix: 189199177
Test: rebotest and see the UI.
Change-Id: Ib02cbc5bb99ab8014d7ee7ed630a6721968a49ab
For mobile, a old API: buildTemplateMobileAll doesn't includes the
merged wifi network, call the new API: buildTemplateCarrierMetered
to replace the old one.
PS: Not only usage functionality but also apply to network policy
control since the default policy is changing to use
new API: buildTemplateCarrier now.
Test: atest -c DataUsageControllerTest
Test: atest -c NetworkCycleDataForUidLoaderTest
Test: atest -c NetworkPolicyEditorTest
Test: Manual Test, modify the mobile usage warming and limit bytes and
check the data via adb shell dumpsys netpolicy
Bug: 176396812
Merged-In: I1c7da4a819e45009efe5ba2b80e1526ce6b04e27
Change-Id: I1c7da4a819e45009efe5ba2b80e1526ce6b04e27
When advanced bluetooth icon not in cache, return basic bluetooth
icon instead of advanved bluetooth icon.
Bug: 187898551
Test: make RunSettingsLibRoboTests
Change-Id: Iea2c7818e895e16e236931bc9d0e8bccae68b4e1
They're now using a Context and Object instead of Activity and
AlertDialog.Builder, as the CarSettings implemention doesn't use
the latter.
Bug: 184107103
Bug: 188836559
Test: atest RunSettingsLibRoboTests:com.android.settingslib.enterprise.FinancedDeviceActionDisabledByAdminControllerTest && \
atest RunSettingsLibRoboTests:com.android.settingslib.enterprise.ManagedDeviceActionDisabledByAdminControllerTest
Change-Id: Ifb08692f8b1973b8ffaeb98b29101b6a8f642922
Settings displays the component icon as a fallback option if the
metadata doesn't contain icon and icon_uri. Some injections that don't
need an icon have set a transpatrnt color to skip the fallback option.
However, the new Settings requires that an item without an icon should
align with the border. The transparent icon makes the item unaligned.
Therefore, we remove the hidden fallback option, and also filter out
the transparent color icon for backward compatibility.
Bug: 186801104
Test: robotest
Change-Id: I9221bba896e4785901ad617aa8ee58e6028ecc72
Add this new learn more text view so that
It would keep the implementation and styling centralized
in our widget library, ensuring consistency.
Test: Check the learn more link works well.
Fix: 188009297
Change-Id: If88cc4c4b03047c53e1fa8f7025583bdee592013
Add the title to the content description of Switch.
Fix: 182228819
Fix: 182227784
Test: robotest and manually test the UI
Change-Id: I3cad922e903df783ee7eaf727b82f16f3345ff30
Updates the style of the BannerMessagePreference in v31 and adds support
for the following new functionality (all optional):
- Use one of three attention level themes: high, medium, and low
(default: high)
- Add an icon (default: alert icon)
- Subtitle (default: hidden)
- Dismiss button (default: hidden)
Icon, subtitle, and theme can also be set via xml attrs.
Adds support for creating a BannerMessage without a title.
Test: make -j80 RunSettingsLibRoboTests
Test: Manually tested all configurations
Bug: 181764215
Change-Id: I73bfc5225d83057e423b6a9d77a6277a656d3b90
Test: Rebuilt lib and confirmed to set a content description for a footer
in Settings app. Then, talkback can say correct description.
Fix: 188009297
Change-Id: I7af451a553a13d5108ab279d149e4cdfdfcb620f
Change-Id: I06c5fbdfca25e287988ea8ef8eca56fcce10857a
This change add the API for Storage Settings to set
the spinner not clickablewhen there is only 1 volume.
Bug: 187801712
Test: manual
Click the spinner when there is only default volume.
Click the spinner when there is USB drive connected.
Change-Id: I1e6d46c9772b641678085d41d4905022e893acc4
To be re-used by settings applications for other form factors.
Bug: 184967544
Test: make RunSettingsLibRoboTests -j40
ROBOTEST_FILTER=com.android.settingslib.core.lifecycle
Change-Id: I749dbd3f24bf77453d3ecc5d4374d11656498850
For wifi, a old API: buildTemplateWifiWildcard will includes the merged
wifi which is included to mobile usage. It should not double count
again. Call new API: buildTemplateWifi with
NetworkId: NetworkTemplate.WIFI_NETWORKID_ALL
and null subscriberId to get non-merged wifi usage.
Test: atest -c DataUsageControllerTest
Test: Manual Test, wifi data usage count correctly.
Bug: 176396812
Change-Id: I047bc7dfe6a217c1a88faf3ed5c6783f33227c32