Commit Graph

1309 Commits

Author SHA1 Message Date
Haijie Hong
02bd645834 Reimplement device details UI without ComposePreference
Replace ComposePreference with androidx.preference.Preference.

ANC toggle will still use Compose until SegmentedButtonPreference is ready.

BUG: 402036473
Test: local tested
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: I5114af8f2d679d695b3c5ef4d7be2874245c435e
2025-03-11 14:51:30 +08:00
Treehugger Robot
c794912537 Merge "[Expressive design] Apply colors to homepage icons" into main 2025-03-03 02:21:05 -08:00
Jason Chiu
9c16e94552 [Expressive design] Apply colors to homepage icons
Bug: 396944193
Test: visual, robotest
Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled
Change-Id: I6ec24bdf8cb9a6f8454bd837daffe743b3b01526
2025-03-03 00:45:08 -08:00
Xiaomiao Zhang
0dabc23adb Implement Web content filters entry point in Supervision Settings dashboard.
Test: atest SupervisionWebContentFiltersScreenTest
Bug: 395134536
Flag:android.app.supervision.flags.enable_web_content_filters_screen
Change-Id: I5471d8b2956e94b0120ae13bec6187065a5e738a
2025-02-28 16:46:10 -08:00
Riley Jones
e8a5eae1dd Merge "Left & right buttons for display size & text preview" into main 2025-02-27 11:13:55 -08:00
Riley Jones
998929d688 Left & right buttons for display size & text preview
Test: manually open page and verify buttons work. Make sure to check the buttons during setup wizard.
Bug: 386906497
Flag: EXEMPT xml-dependent change
Change-Id: I488d74591d698ad918fd864cf39b2f3133abd463
2025-02-25 20:21:29 +00:00
Haijie Hong
5e79d18636 Merge "Add Nearby share entrypoint in DevicePicker" into main 2025-02-23 23:30:32 -08:00
Haijie Hong
a9e67c0327 Add Nearby share entrypoint in DevicePicker
Bug: 381799866
Test: local build
Flag: com.android.settings.flags.enable_nearby_share_entrypoint
Change-Id: Ied79b9eebe7eaf669e45922787c5b01e504822d8
2025-02-21 17:24:10 +08:00
Riley Jones
e6b7908366 Merge "Revert "Left & Right buttons for Display size & text preview"" into main 2025-02-20 12:38:24 -08:00
Daniel Norman
b1691756e2 Revert "Left & Right buttons for Display size & text preview"
This reverts commit 30e63f6178.

Reason for revert: Can cause crash for some users?

Change-Id: I4b4e71157b668bbf4320a610ad14ddd10f2eade3
2025-02-20 11:26:35 -08:00
mxyyiyi
9ba79d8b02 [Expressive Battery] Migrate tips card in battery usage to banner message
- Update card preference: Update icon hint color by banner attention level
- Remove redundant color token: Use the existing Material yellow as a warning color

Bug: 349652542
Test: atest BatteryTipsControllerTest
Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled
Change-Id: I35730eb4716e9dbd712c22db63490e8bc06fc482
2025-02-19 10:33:13 +08:00
Shaowei Shen
f9cf2b0aa9 Merge "[Physical Keyboard] update mouse key images color" into main 2025-02-17 19:22:27 -08:00
Garvita Jain
ba7233ad09 Merge "[Expressive Design] Migrate Storage settings pages" into main 2025-02-17 03:32:52 -08:00
Daniel Norman
afb62eba9c Merge "Left & Right buttons for Display size & text preview" into main 2025-02-13 12:53:05 -08:00
Garvita Jain
ff5b7ae421 [Expressive Design] Migrate Storage settings pages
This change includes -
* Using SettingsLib.CardPreferenceWidget in storage dashboard
* Using material theme color for progress bar

Test: manual
BUG: 349670985
Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled
Change-Id: Ib86ec9d1713316dd3dd3067c2cce87c89e15d9e0
2025-02-13 10:17:35 +00:00
Zoey Chen
ceaa16575a Merge "[Settings] Apply new style to dialog" into main 2025-02-12 17:28:45 -08:00
Zoey Chen
09841d6bb4 [Settings] Apply new style to dialog
Bug: 394542699
Test: manual
Test: atest SettingsRoboTests:com.android.settings.localepicker.LocaleListEditorTest
Flag: EXEMPT refactor
Change-Id: Idfed52722d1113e432742342fd8a56958e84406e
2025-02-12 12:59:54 +00:00
Riley Jones
30e63f6178 Left & Right buttons for Display size & text preview
Test: manually open page and verify buttons work
Bug: 386906497
Flag: EXEMPT small internal change dependant on xml
Change-Id: I49ecf2940be897725a0864cf898655837a3e2399
2025-02-11 23:45:08 +00:00
shaoweishen
449531c696 [Physical Keyboard] update mouse key images color
replace drawable color with tokenzied color

Bug:389665773
Flag: com.android.settings.keyboard.keyboard_and_touchpad_a11y_new_page_enabled
Test: atest
packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/

Change-Id: Ib24add0a12ab21d5e6c4b88e5f2ba4bb584f0c3f
2025-02-09 18:56:07 -08:00
Edgar Wang
c2776b9945 Merge "Update background color of Settings search" into main 2025-02-06 01:30:18 -08:00
Shawn Lin
d747235a4c [Biometric Onboarding & Edu] Update face settings page
- Added a feature provider for face settings page in FaceFeatureProvider
  for customization
- When face is deleted, disabled the settings buttons instead of hiding
  them.
- Updated new UX style for add/remove face button.

Bug: 370940762
Test: atest FaceSettingsEnrollButtonPreferenceControllerTest
            FaceSettingsFooterPreferenceControllerTest
Test: manual - 1. Enroll face
               2. Go Face Settings page and remove face
	       3. Enroll face again
Flag: com.android.settings.flags.biometrics_onboarding_education

Change-Id: I490e647523eeff2dd1a58aab07f638e3e5e0ffb8
2025-02-05 00:57:40 -08:00
Matthew DeVore
1fb8fb0b4f Show border highlight when dragging display
In the process of adding highlight we use an extra feature of
LayerDrawable to add insets so that we can add padding without changing
the actual dimensions or position of the DisplayBlock Views.

To make it easier to keep the values consistent and to aid in conversion
between px and dp, use dimen values to store padding and highlight
metrics.

Bug: b/352650922
Flag: com.android.settings.flags.display_topology_pane_in_display_list
Test: atest DisplayTopologyPreferenceTest.kt
Change-Id: I51ff2ce4a086e84a0c529346f8ede90430090b11
2025-01-23 23:26:53 -06:00
Yvonne Jiang
b3c8c71fb3 Initial skeleton of new "Supervision" settings screen with top-level entry point.
Intake bug: b/379312924

Test: atest SupervisionDashboardScreenTest
Test: atest SupervisionMainSwitchPreferenceTest
Test: manually on real device
Bug: 383568136
Change-Id: I6bb8aa432c1b4527cec0f4c2593fd1494975503d
Flag: android.app.supervision.flags.enable_supervision_settings_screen
2025-01-21 10:54:57 -08:00
Edgar Wang
3384913c65 Update background color of Settings search
Bug: 371849249
Test: visual
Flag: EXEMPT resource update
Change-Id: I6070273fa564c6b41d2b850c005967e455f155e9
2025-01-17 07:52:07 +00:00
Zoey Chen
cc0c66a7ee Merge "[Settings] Create new controller for app language: suggested locale" into main 2025-01-16 00:29:41 -08:00
Zoey Chen
1daa1bb380 [Settings] Create new controller for app language: suggested locale
Bug: 388199937
Test: manual
Flag: EXEMPT refactor
Change-Id: I45ddbfb460365e3ff4858de0c0411c7a46d49302
2025-01-16 06:58:44 +00:00
Harry Cutts
509fd17515 Touchpad: replace references to "trackpad" with "touchpad"
When we first added the touchpad settings we hadn't settled on whether
to refer to them as "touchpads" or "trackpads" yet. We've since settled
on "touchpad", but that's left us with some Settings code referring to
one and some to the other. Let's standardize on "touchpad" since that's
consistent with user-facing strings and the rest of the input codebase.

This CL doesn't change string identifiers, as I believe that would cause
them to get different Translation Console IDs and thus be retranslated.

Bug: 245989146
Test: m
Test: check strings and icons are still displayed correctly in the
      touchpad settings and tutorial, and that settings toggles and the
      tutorial still work
Test: atest SettingsRoboTests
Flag: EXEMPT refactor
Change-Id: I930e9fc85e09e03da3513e5f8443077fa8ea91b0
2025-01-08 11:52:45 +00:00
Treehugger Robot
54bb776d5a Merge "Touchpad: remove individual gesture settings" into main 2025-01-06 09:05:06 -08:00
Harry Cutts
d4a469b4ca Touchpad: remove individual gesture settings
These were never plumbed in, never mind launched, and are sometimes
causing confusion in design discussions when people have the feature
flag turned on. Let's remove them.

Bug: 245989146
Test: check System > Touchpad > Touchpad gestures option is removed even
      when the flag's enabled
Flag: EXEMPT removing code controlled by a legacy sysprop-based flag
Change-Id: I22ca19faf6fed430bb3f0733867716a02514ac8d
2024-12-31 11:47:51 +00:00
Shawn Lin
4bfbb8782a [Biometric Onboarding & Edu] Support check enrolled fingerprint
- Add a new PreferenceItem for check enrolled fingerprint
- Create a new DialogFragment for the check enrolled
  fingerprint with functions:
  - request an authentication to FingerprintManager
  - highlight the item when a authentication successes
  - show error text when authentication fails
  - close the authentication

Bug: 370940762
Test: atest FingerprintSettingsFragmentTest
Flag: com.android.settings.flags.biometrics_onboarding_education

Change-Id: I90637e4ec20ea46e6f530ffd7ba79df9c31eda6b
2024-12-30 10:20:23 +00:00
Shawn Lin
1ef5e68927 Merge "Revert "[Biometric Onboarding & Edu] Update Set up Fingerprint/F..."" into main 2024-12-23 23:10:08 -08:00
Shawn Lin
b75b3a373f Revert "[Biometric Onboarding & Edu] Update Set up Fingerprint/F..."
Revert submission 30754151-boe_fp_unlock

Reason for revert: prevent from leakage

Reverted changes: /q/submissionid:30754151-boe_fp_unlock

Change-Id: Ida3d127cc8cd71366c4375e90d6058e510f590c9
2024-12-22 23:44:11 -08:00
Vladimir Komsiyski
18fe317f1d Merge "VDM Settings" into main 2024-12-20 23:46:44 -08:00
Dongzhuo Zhang
a88bee12d6 Merge "Update cloud_off icon color to match with the theme color." into main 2024-12-19 13:17:13 -08:00
Dongzhuo Zhang
2fdea0aa59 Update cloud_off icon color to match with the theme color.
Test: atest CtsSettingsTestCases
Bug: 382359013
Flag: com.android.settings.flags.enable_contacts_default_account_in_settings

Change-Id: I9d0e7d70798b230dada5711b392c76bbf94a07f4
2024-12-19 11:41:45 -08:00
Vladimir Komsiyski
af3e3026ff VDM Settings
Demo: go/vdm-settings-demo

Bug: 371713473
Bug: 338974320
Test: atest
Flag: android.companion.virtualdevice.flags.vdm_settings
Change-Id: I4a818b1b31ad59ee3de22105b969aec4c7f4d529
2024-12-19 04:57:19 -08:00
Pat Manning
b50acbfeea Update pointer fill option backgrounds for color contrast and touch
target size.

Fix: 374885995
Fix: 374886964
Test: Manual.
Flag: EXEMPT Bugfix.
Change-Id: Ibf09bfae4a93868ac3605748854ccaaa10847eb6
2024-12-18 14:56:45 +00:00
shaoweishen
06fe204a69 [Physical Keybaord] Add keyboard touchpad/Mouse page - part2
screenshot: https://screenshot.googleplex.com/A4yihXmkTTo2nM3.png

Add seperate controllers in page and guard with flag.
Original controller will be disabled if flag is off.

This is part of feature for keyboard setting update.
document: go/new-a11y-touchpad-mouse-page

Bug: 377602364
Test: atest SettingsRoboTests
Flag: com.android.settings.keyboard.keyboard_and_touchpad_a11y_new_page_enabled
Change-Id: I20bf7c65a7f9adc734c7382f23a92d1eb41822f1
2024-12-12 23:28:50 -08:00
Shawn Lin
97072e434d Merge "[Biometric Onboarding & Edu] Update Set up Fingerprint/Face Unlock page" into main 2024-12-09 10:37:03 +00:00
Marcelo Arteiro
bedda9d1f2 Merge "Migrate materialColor* attributes into colors" into main 2024-12-09 08:36:04 +00:00
Shawn Lin
087ac777a8 [Biometric Onboarding & Edu] Update Set up Fingerprint/Face Unlock page
Update icons, strings and layouts for new UX design

Bug: 370940762
Test: manual:
      Pre condition - no fingerprint/face enrolled
      For FP: Go Settings>Security & privacy>Device unlock>Fingerprint unlock
      For Face: Go Settings>Security & privacy>Device unlock>Face unlock
Test: atest FaceEnrollIntroductionTest
Flag: com.android.settings.flags.biometrics_onboarding_education
Change-Id: Iaee6792d1a27be8fa4b443f783a47a3715b6d3a1
2024-12-09 07:52:08 +00:00
Marcelo Arteiro
8577c10535 Migrate materialColor* attributes into colors
The new color were already introduces in a previous CL ag/30322786

This CL is about replacing the attribute usage by the new color resources, which should work the same but cannot be overwritten, or styled, guaranteeing consistency across the OS.

The old attributes will be removed in CL: ag/29910036

Bug: 374273611
Test: presubmit
Flag: EXEMPT Un-flaggable refactor of private color resources
Change-Id: I05b5261054bcb6de40e4e40d633025495f3dd01f
2024-12-06 16:55:33 +00:00
tomhsu
c2d25241a1 Remove replicated page of Satellite SOS.
Flag: EXEMPT bug fix.
Bug: b/370509415
Test: make pass
Change-Id: Iff96dd09f8c0876a32064853629f64b0db173099
2024-12-06 03:06:52 +00:00
Lorenzo Lucena Maguire
18d0d26395 Create Double Tap Power Illustrations based on target action
Creates illustration for when double tap power gesture is set to open
wallet and preference controller to alternate illustration based on gesture
target action

Android Settings Feature Request: b/380287172

Test: atest DoubleTapPowerIllustrationPreferenceControllerTest
Test: manually verified illustration corresponds to selected target
action
Bug: 381789181
FLAG: android.service.quickaccesswallet.launch_wallet_option_on_power_double_tap

Change-Id: Id73a38e09bd72856d46d74f04c0c0d2b3f989929
2024-12-03 23:44:22 +00:00
tomhsu
37ed715145 Completed basic UI of Satellite SOS
Flag: com.android.settings.flags.satellite_oem_settings_ux_migration
Bug: b/378408877
Test: Manual test
Change-Id: Iadef197b3da1008abedb88864f17087502ab7d36
2024-12-02 05:28:43 +00:00
Matthew DeVore
6f28e1a3c7 Topology pane in extended displays list
Show an empty topology pane in the extended displays list. Even show
when no external display is connected.

This will be tweaked in a follow-up CL to include the built-in display
in the pane and the displays list.

This fixes an issue where the displays list is not shown when *no*
external displays are connected, which was not the intent of the flag.
The previous flag CL ag/30358161 only respected the flag when 1 external
display was connected.

Based on mocks at go/al-mm-figma

Bug: b/352650922
Test: reboot with zero displays attached and verify display list and pane are shown
Test: on al-13 device, make the activity fullscreen and verify the margins on left and right of pane are larger
Flag: com.android.settings.flags.display_topology_pane_in_display_list
Change-Id: If39fefe943a26c817fa6f636f21eb8aaa080adde
2024-11-25 12:06:04 -06:00
Roy Chou
04715ae017 Merge "feat(brightness suw): adjust brightness toggles UI and remove autobrightness standalone page" into main 2024-11-13 08:22:07 +00:00
David Liu
7e625884e3 [Expressive design] preference group - fix preference highlight
Support preference highlight feature

Bug: 376137920
Test: atest HighlightablePreferenceGroupAdapterTest
Flag: EXEMPT resource only update
Change-Id: I017f292778c984c0a8a207b837144fb9e344e9a8
2024-11-06 05:35:28 +00:00
Roy Chou
c2d0b25753 feat(brightness suw): adjust brightness toggles UI and remove autobrightness standalone page
Based on the UX alignment in doc and figma, we remove the autobrightness
detailed page to make the consistency with other Vision settings, and
update the brightness preference icons and summaries.

Bug: 377289685
Flag: com.android.settings.accessibility.add_brightness_settings_in_suw
Test: manually
Change-Id: If4038de07dec7eeb38d3c057affba737849e23c9
2024-11-04 16:22:46 +00:00
Haijie Hong
d260f67aac Merge "Update backgroundcolor of advanced bt header image" into main 2024-10-24 03:31:25 +00:00