Commit Graph

55815 Commits

Author SHA1 Message Date
yomna
5d8680e193 Fix redirect to Mobile security page
When the user first access the Mobile network security settings, they
should not open in Safety Center even if Safety Center is supported.
Until notifications are enabled for hardware security APIs, they should
open in Settings. This is because the Safety Center redirect will fail
if the Safety Source has not begun providing data to Safety Center. Also
update the relevant unit test.

Flag: EXEMPT bugfix
Bug: 373942609
Test: m & atest CellularSecurityNotificationsDividerControllerTest CellularSecurityNotificationsPreferenceControllerTest CellularSecurityEncryptionDividerControllerTest CellularSecurityPreferenceControllerTest
Change-Id: Ica87be4f1567541a6e3ccbe5dd5b674224aa1d8e
2024-11-22 03:05:17 +00:00
Cam Bickel
4072d43123 Cleanup flag "never_restrict_a11y_activity"
Full flag name: "never_restrict_accessibility_activity"

Bug: b/331990900
Test: atest RestrictedPreferenceHelperTest
Flag: EXEMPT flag cleanup
Change-Id: I365ed105043cb4835075b8b9016b41862f82021c
2024-11-21 23:22:27 +00:00
Xin Li
521a712349 Merge ab/AP4A.240925.013 into aosp-main-future
Bug: 370570306
Merged-In: I4e2a72a80f68579d60466e859370b6fd93a8cd23
Change-Id: Ifc87474ccff4172524295035e70916216b41a715
2024-11-21 15:10:02 -08:00
Priyanka Advani (xWF)
d5d59630b5 Merge "Revert "Use flag to control the hierarchy tree changes"" into main 2024-11-21 20:13:20 +00:00
Priyanka Advani (xWF)
2f996492ff Revert "Use flag to control the hierarchy tree changes"
This reverts commit 34ea3dc075.

Reason for revert: Droidmonitor created revert due to b/380258772. Will be verifying through ABTD before submission.

Change-Id: Ife4707fba00b52ade53eb6dc2f4bcd7a466afe0f
2024-11-21 18:57:44 +00:00
Denis Kuznetsov
472e415659 Control user switching UI visibility according to config
Bug: 375394047
Test: atest UserDetailsSettingsTest UserSettingsTest
Test: build platform with config overrides, check the result
Flag: EXEMPT Desktop-only change
Change-Id: Iaf1ac6c98a648066bf77b069039dcd59e243835f
2024-11-21 17:42:00 +00:00
Geoffrey Boullanger
842a337291 Clean-up after com.android.settings.flags.revamp_toggles rollout
Flag: EXEMPT refactoring / flag clean-up
Test: refactoring CL. Existing unit tests still pass.
Bug: 296835792

Change-Id: Ib57ee270c8b5d540cb19997fe1863dd6d782cbe4
2024-11-21 15:39:28 +00:00
Haijie Hong
170667e52a Merge "Add metrics for new bluetooth device details" into main 2024-11-21 11:50:43 +00:00
Treehugger Robot
0cf659c7b6 Merge "Remove selectability from pointer preferences." into main 2024-11-21 11:50:36 +00:00
Daniel Huang
c1e4b09f9a Merge "Use flag to control the hierarchy tree changes" into main 2024-11-21 10:55:35 +00:00
Jacky Wang
efcb4dfddf [Catalyst] Migrate AmbientDisplayAlwaysOnPreferenceController
As the preference is exported as external settings, for safety, do not
update the preference key with datastore key. As a workaround, manage a
mapping between preference hierarchy key and datastore key.

Bug: 372307567
Flag: com.android.settings.flags.catalyst_lockscreen_from_display_settings
Test: devtool
Change-Id: I56126485061859b41216cd23b8e1caf63823a1ec
2024-11-21 13:37:31 +08:00
Jacky Wang
b6132572ea [Catalyst] Migrate "Lock screen" entry point
Bug: 372307567
Flag: com.android.settings.flags.catalyst_lockscreen_from_display_settings
Test: manual
Change-Id: I0c269c550c678362f345c9b5438a133c7a76fe10
2024-11-21 10:24:38 +08:00
Pat Manning
5641752fb1 Remove selectability from pointer preferences.
Fix: 379840620
Fix: 374902522
Fix: 374902467
Fix: 374898232
Fix: 374894728
Fix: 374894804
Test: Manual. Talkback, switch access, voice access.
Flag: EXEMPT BugFix.
Change-Id: I550bd78893124b453d49f98d51dab2f49bee84f7
2024-11-20 16:30:57 +00:00
Haijie Hong
fb2668525b Fix talkback of ANC toggle
BUG: 380022983
Test: local tested
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: I1d0e763abda32d37af5d7c2d240c429fcc2d39cf
2024-11-20 14:06:36 +00:00
danielwbhuang
34ea3dc075 Use flag to control the hierarchy tree changes
This change includes these:
1. App languages
2.Regional preferences
2-1. Temperature
2-2. First day of week
2-3. Numbering system
3. Terms of address

Bug: 379962955
Flag: com.android.settings.flags.regional_preferences_api_enabled
Test: check hsv and atest TermsOfAddressCategoryControllerTest,
FirstDayOfWeekControllerTest, NumberingSystemControllerTest, TemperatureUnitControllerTest
Change-Id: I9ae376f24ac4d1cf9a186ad3d77b539ac4b83642

Change-Id: I1b2f508f618fba94e67b5f8b102620837a6dda1c
2024-11-20 18:31:00 +08:00
Yiyi Shen
d611829c6b Merge "[Audiosharing] Update dialog style and wording" into main 2024-11-20 10:14:13 +00:00
Yiyi Shen
22cba6ee40 Merge "[Audiosharing] Fix hysteresis mode" into main 2024-11-20 08:59:10 +00:00
Yiyi Shen
c527b40370 [Audiosharing] Update dialog style and wording
Test: manual
Bug: 379612304
Flag: com.android.settingslib.flags.enable_le_audio_sharing

Change-Id: Ibcde412670693b13d995cdd18193cb0b79a9b52d
2024-11-20 08:49:27 +00:00
Pat Manning
9ab4567c71 Merge "Add Settings page for three finger tap customization" into main 2024-11-20 08:21:07 +00:00
Yiyi Shen
46b1369b51 [Audiosharing] Fix hysteresis mode
Move add source logic from onReceiveStateChanged(BIS>0) to onSourceAdded

Test: atest
Bug: 355222285
Flag: com.android.settingslib.flags.audio_sharing_hysteresis_mode_fix
Change-Id: I13e201fe1daaa51b9ea6989061ab9ea2cb9568d3
2024-11-20 14:28:08 +08:00
Haijie Hong
c79f368dbf Add logging for LE Audio toggle enable/disable
BUG: 364201880
Test: local tested
Flag: EXEMPT minor change, only add logging
Change-Id: I05ea2d0cd85da9879e18ae730fb64beeb4d81dd4
2024-11-20 14:25:25 +08:00
Treehugger Robot
e46cab2a09 Merge "Migrate Remove Animations preference to Catalyst backend." into main 2024-11-20 02:34:22 +00:00
Jeongik Cha
74fea8cce2 Merge "Fix storage requirement for Linux terminal" into main am: cc7e4e5821 am: c15d15953b
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3364326

Change-Id: I5de747e44b196889676a099204f51f2bff8432e7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-19 23:41:39 +00:00
Jeongik Cha
c15d15953b Merge "Fix storage requirement for Linux terminal" into main am: cc7e4e5821
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3364326

Change-Id: Icee4ae8bc9e67b485caebc1e67e95e9643104d23
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-19 23:19:12 +00:00
Daniel Norman
9ef696d0e8 Migrate Remove Animations preference to Catalyst backend.
This preference (and its test) has no flagging, but its parent
page 'Color and motion' is flagged for Catalyst migration.

This preference looks identical before and after migration.

Fix: 373451690
Flag: com.android.settings.flags.catalyst_accessibility_color_and_motion
Test: atest RemoveAnimationsPreferenceTest
Test: Enable our flag, and top-level Catalyst flag;
      Toggle the setting in Settings > Accessibility;
      Observe expected changes to animation behavior;
Change-Id: I07dbe45a120780439393d7cfd46a749025b7ab0c
2024-11-19 23:10:37 +00:00
Pat Manning
00ec5248cb Add Settings page for three finger tap customization
Test: TouchpadThreeFingerTapFragmentTest
Test: TouchpadThreeFingerTapPreferenceControllerTest
Flag: com.android.hardware.input.touchpad_three_finger_tap_shortcut
Bug: 376249366
Change-Id: I63a9a1cbe5f5ed644c39e1a30aa724ea9e5088cb
2024-11-19 20:29:43 +00:00
Adam Bookatz
05b9d038de Merge "Don't let profiles open the UserSettings overflow" into main 2024-11-19 18:51:50 +00:00
Matthew DeVore
46da53099c clampPosition function for dragging display blocks
Uses the algorithm in the prototype and the design doc
(go/extend-cd-settings).

Bug: b/352650922
Test: atest TopologyClampTest.kt
Flag: com.android.settings.flags.display_topology_pane_in_display_list
Change-Id: I8d8d4427f5d5dc069b1529f8ca6ac2cee259ee8e
2024-11-19 15:04:02 +00:00
Treehugger Robot
c4004377fd Merge "[Catalyst] Update PreferenceLifecycleContext.notifyPreferenceChange" into main 2024-11-19 10:39:53 +00:00
Treehugger Robot
770df52e47 Merge "[Satellite] Add category UI for Satellite functions" into main 2024-11-19 10:29:30 +00:00
tomhsu
c9017355d9 [Satellite] Add category UI for Satellite functions
Flag: com.android.settings.flags.satellite_oem_settings_ux_migration
Fix: b/378408939
Test: atest pass
Test: make pass
Change-Id: Id0f2ba047f4ee71a9ae398aa828978097717ce1a
2024-11-19 09:22:49 +00:00
Haijie Hong
89ea1e5c9a Merge "Remove the extra space above Spatial audio toggle" into main 2024-11-19 09:03:04 +00:00
Jeongik Cha
294b41a883 Fix storage requirement for Linux terminal
getPrimaryStorageSize rounds up size by GB, not GiB

Bug: 366374130
Change-Id: Idf43c5cee41172d763b6c271042317d151d41a38
Test: build and run
2024-11-19 07:43:31 +00:00
David Liu
e2f6b9496e Merge "[Expressive design] SettingsMainSwitchPreference should not in the group" into main 2024-11-19 06:50:18 +00:00
Jacky Wang
83708d4499 [Catalyst] Update PreferenceLifecycleContext.notifyPreferenceChange
Change the signature from metadata to preference key, so that the API
could be used to notify other preferences on the same screen.

NO_IFTTT=Catalyst only

Bug: 332201912
Flag: com.android.settings.flags.catalyst
Test: atest
Change-Id: Ibdf5f9004471d5491a0be1e84365cbe9f136c373
2024-11-19 13:38:06 +08:00
shaoweishen
fb6f25ff28 [Keyboard Setting] Rename KeyboardSettingUtils
rename KeyboardSettingUtils to match more about usage.

Bug: 379594195
Test: atest SettingsRoboTests
Flag: NONE, rename file.
Change-Id: If978e7b56ecbdb0b571db5ff34553bbb20f976ee
2024-11-19 03:20:51 +00:00
Zoey Chen
75c4dcb39b Merge "[Settings] Refactor: Add LocalePickerBaseListPreferenceController" into main 2024-11-19 03:14:15 +00:00
Treehugger Robot
d930ec424f Merge "Updated interactors to use repos" into main 2024-11-19 02:12:47 +00:00
Jaewan Kim
b8b4e47d6b Merge "Hide Linux terminal if device doesn't meet minimum requirement" into main am: 5965a10f60 am: ea27253a31
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3350252

Change-Id: I7ab9bad6a2c396c024e99c4a5cec8db67cdbaa02
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-19 01:57:35 +00:00
Jaewan Kim
ea27253a31 Merge "Hide Linux terminal if device doesn't meet minimum requirement" into main am: 5965a10f60
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3350252

Change-Id: I2387ed8be5c63cd75c29a506d170fb916399cff2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-19 01:34:26 +00:00
Adam Bookatz
69c7f5dac5 Don't let profiles open the UserSettings overflow
Really, profiles aren't expected to open Settings at all. But if they
do somehow, the overflow shouldn't appear.

Bug: 352542820
Flag: EXEMPT bugfix
Test: Try to access the overflow of the work profile by launching its Settings in
adb shell am start --user 10 'com.android.settings/.Settings\$UserSettingsActivity'

Change-Id: I5e4c095cda3e19fa5c63c2c550a526f5da8ec5c1
2024-11-18 15:53:41 -08:00
David Liu
a1d5f2544a [Expressive design] SettingsMainSwitchPreference should not in the group
- SettingsMainSwitchPreference already have rounded corner itself.
- Don't need to have rounded background.

Bug: 377266201
Test: visual test
Flag: EXEMPT update library
Change-Id: I3e336257bcbdb83a8e397bb006a00a33b543aae0
2024-11-18 23:40:11 +00:00
Matthew DeVore
c4dd7a8288 Add flag for surfacing display topology prototype
This will force the topology pane to show in the displays list UI, and
make the displays list UI accessible from the connected devices
fragment, regardless of the number of actual devices connected.

Once the display topology pane is using real data, this will still be
useful to not skip the display list UI, which currently can only be
shown when there is more than one external display connected.

To turn off, use:
$ adb shell device_config put display_manager com.android.settings.flags.display_topology_pane_in_display_list false

Test: verify "External Display" is always shown in connected devices list
Test: verify displays list is shown when 0 or 1 external display is connected
Bug: b/352648432
Flag: com.android.settings.flags.display_topology_pane_in_display_list
Change-Id: Ic9205c69d9de09e6fb8ae33e17fbf00fe5574447
2024-11-18 12:36:56 -06:00
Zoey Chen
ab0213a7e3 [Settings] Refactor: Add LocalePickerBaseListPreferenceController
Bug: 377664066
Flag: EXEMPT refactor
Change-Id: I2b0c0e9e121d7ab09cb8f627afa34a4f58ec9f9b
2024-11-18 13:55:23 +00:00
Chaohui Wang
a2ccf8979d [expressive design] SimsSection
Bug: 349681531
Flag: EXEMPT bug fix
Test: visual
Change-Id: I2d38ad81ce93d47819fa82d46f1c11a9b8c9271d
2024-11-18 18:45:53 +08:00
Wenyu Zhang
bf47e4419d Merge "Skip user restriction check on desktop" into main 2024-11-18 06:30:14 +00:00
Treehugger Robot
d437a1f984 Merge "[Catalyst] Sync APM preference key value" into main 2024-11-18 06:29:04 +00:00
Treehugger Robot
17c02a69bb Merge "Make final confirmation of dialog only shows in-call state" into main 2024-11-18 06:19:47 +00:00
Weng Su
e24189df08 [Catalyst] Sync APM preference key value
Bug: 375925972
Flag: com.android.settings.flags.catalyst_network_provider_and_internet_screen
Test: Manual testing
atest -c AirplaneModePreferenceControllerTest \
         AirplaneModePreferenceControllerComponentTest

Change-Id: Ibd1e6af39afa768ef40d280ca97fb39ce38bd1c0
2024-11-18 13:14:02 +08:00
Haijie Hong
49045fb361 Remove the extra space above Spatial audio toggle
BUG: 343317785
Test: local tested
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: I56bd6438e9f6589f388c0355460e6c5ba9cb2823
2024-11-18 13:08:13 +08:00