Commit Graph

146252 Commits

Author SHA1 Message Date
Riley Jones
178bdd4c60 Cleanup of AccessibilityUtil#hasValueInSettings
Settings should now be able to directly use the equivalent ShortcutUtils functions,
so the unnecessary code is being removed from AccessibilityUtil.
This does cause much behavior to depend on A11yManager instead of Settings.Secure,
so several tests need their conditions updated.

Test: atest com.android.settings.accessibility
Flag: EXEMPT internal refactoring
Bug: 367414968

Change-Id: I95f81f7d78b074def0fe2d1e01f60ceb7e142dac
2024-12-17 20:03:16 +00:00
Treehugger Robot
74b1086f23 Merge "[Settings] Update PIP with new Settings integration" into main 2024-12-17 09:50:29 -08:00
Perry Wu
046ad86d79 [Settings] Update PIP with new Settings integration
Updates PIP settings to be compatible with new Settings guidelines.

For context we have 2 settings pages PictureInPictureSettings.java
and PictureInPictureDetails.java, both of which inherit from standard
androidx components, so there should not be any other required
changes.

Bug: b/349659719
Flag: EXEMPT refactor
Test: manually enable update and check settings pages
Change-Id: Iafc3cda8cdb2fcdba466755bf537188ee2005dc2
2024-12-17 08:36:48 -08:00
Rupesh Bansal
74f0acd92b Changing eventFlags to eventFilter
This is to address the API council feedback

Bug: 379313664
Flag: EXEMPT minor change
Test: EXEMPT minor change
Change-Id: I9f9126b2e9eae3311f9d03d13d201d7518a27a09
2024-12-17 12:58:49 +00:00
Jacky Wang
23e5072732 Merge "Fix potential OOM caused by DataProcessManager" into main 2024-12-17 03:20:12 -08:00
Treehugger Robot
9156122b1d Merge "[Catalyst] Add the store and get API into BrightnessLevelPreference" into main 2024-12-17 02:18:43 -08:00
Angela Wang
fb1efa69ac Merge changes from topics "ha-aics", "ha-aics-mute", "ha-local-data" into main
* changes:
  [Ambient Volume] Ambient volume icon
  [Ambient Volume] Show value with remote data
  [Ambient Volume] Show value with local data
  [Ambient Volume] UI of volume sliders in Settings
2024-12-17 01:17:38 -08:00
Jacky Wang
356fe97185 Fix potential OOM caused by DataProcessManager
The AsyncTasks started in DataProcessManager are not cancelled when
fragment is closed. Introduce helper class LifecycleAwareAsyncTask to
cancel AsyncTask automatically when lifecycle is stopped.

Bug: 384473507
Flag: EXEMPT bug fix
Test: Unit test & open/close battery usage screen 1000 times
Change-Id: I060f559fa85cc5feb9a42cb8dcc0581782a91d09
2024-12-17 17:17:15 +08:00
Sunny Shao
9648e58eaa [Catalyst] Add the store and get API into BrightnessLevelPreference
NO_IFTTT=Catalyst migration

Test: atest DisplayScreenTest
Bug: 375895862
Flag: com.android.settings.flags.catalyst_display_settings_screen
Change-Id: Ifb4fcf6553b070959ae233ed32e806c4c13d7136
2024-12-17 16:46:02 +08:00
Yuchen Sun
d49cf23cf9 Merge changes from topic "AppDataUsage" into main
* changes:
  [Expressive design] Update AppDataUsage.
  [Expressive design] Rename ComposeMainSwitchPreference to ComposeGroupSectionPreference.
2024-12-17 00:05:34 -08:00
Haijie Hong
8cf4af9c90 Merge "Fix lcr icon direction in RTL layout" into main 2024-12-16 23:50:14 -08:00
Angela Wang
59c0fd9012 Reset descriptions for SeekBarPreference
The view maybe reuse and the content/state descriptions need to be clean
up, otherwise it'll be the old view's description.

Flag: EXEMPT bugfix
Bug: 382608695
Test: manual test with TalkBack on
Change-Id: I7bc522770e7cdc8c1ef7b05b410e69af7e2d4b4b
2024-12-17 06:47:01 +00:00
Angela Wang
fc79e74955 [Ambient Volume] Migrate to use AmbientVolumeUiController in SettingsLib
Moove the common ui logic code into settingslib for using in both
settings and systemui.

Flag: com.android.settingslib.flags.hearing_devices_ambient_volume_control
Bug: 357878944
Test: atest AmbientVolumePreferenceTest
Test: atest BluetoothDetailsAmbientVolumePreferenceControllerTest
Change-Id: I97d5ac2d1862fed7249af8b35f04fa36fc47d16d
2024-12-17 06:47:01 +00:00
Angela Wang
0724f2a811 [Ambient Volume] Ambient volume icon
1. Click on the icon on the header will mute/unmute the remote devices in the same set if the remote devices are both mutable.
2. Show different icon when the value of the volume slide bars changed.

Flag: com.android.settingslib.flags.hearing_devices_ambient_volume_control
Bug: 357878944
Test: atest AmbientVolumePreferenceTest
Test: atest BluetoothDetailsAmbientVolumePreferenceControllerTest
Change-Id: I829c5e08f1456c8ef9936d0314045dc8da37cd95
2024-12-17 06:46:59 +00:00
Haijie Hong
5790356990 Fix lcr icon direction in RTL layout
BUG: 382407010
Test: local tested
Flag: EXEMPT minor fix
Change-Id: I62afca941d428e9b5510d54d1b3ed60d6f09a99c
2024-12-17 14:27:36 +08:00
Yuchen Sun
a4ed8acd25 Merge "[Expressive design] Update ApnPreference." into main 2024-12-16 22:16:32 -08:00
chelseahao
b45f0656e5 Export AudioSharingReceiver so that it could be launched by sysui.
Test: atest
Bug: 384405138
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: I901bee334f631e29053535c332c86d4d2fdd6279
2024-12-17 12:32:49 +08:00
Yuchen
b7e0923414 [Expressive design] Update MainSwitch in SettingsActivity.
Bug: 349681531
Flag: EXEMPT migration
Test: visual
Change-Id: I0dc55e2ced5ba4ce808e0b29a9b3b60549972637
2024-12-17 03:17:38 +00:00
Wei-Hong Hsu
d7a54332f0 Merge "nfc: allow the nfc quick toggle title to be searchable" into main am: 5565b51402 am: c02f0aa033
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3414601

Change-Id: I76168ee64e771da57c7541c1ffdbe484c607b7cf
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-16 19:13:12 -08:00
Wei-Hong Hsu
c02f0aa033 Merge "nfc: allow the nfc quick toggle title to be searchable" into main am: 5565b51402
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3414601

Change-Id: I7bf83da36439231e011e5462161867d78c278043
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-16 18:50:24 -08:00
Wei-Hong Hsu
5565b51402 Merge "nfc: allow the nfc quick toggle title to be searchable" into main 2024-12-16 18:24:24 -08:00
Daniel Huang
7b0e140dc5 Merge "Create language and region settings page" into main 2024-12-16 18:17:07 -08:00
Menghan Li
fe13deda24 Merge "fix(ReduceBrightColorsPreferenceController) Different feature configs" into main 2024-12-16 18:06:20 -08:00
Bill Yi
a9a7176948 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I2a335b9e7ba8fbdabfe5c6960e65476f2f24b865
2024-12-16 17:29:27 -08:00
Bill Yi
c329e5ff3a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6bad7418575a8f2531d804ddd2a234be35856c98
2024-12-16 17:27:15 -08:00
Edgar Wang
a3677c7f6a Merge "Clean-up after com.android.settings.flags.revamp_toggles rollout" into main 2024-12-16 17:12:28 -08:00
Matthew DeVore
7b7f72d902 Merge "Show display topology in the pane" into main 2024-12-16 16:24:18 -08:00
Riley Jones
66dde6fea1 Merge "Cleaning up deprecated QS tooltip code" into main 2024-12-16 15:51:52 -08:00
Yining Liu
2ad1f26902 Expose Lock screen notifications settings page.
Expose the Lock screen notifications settings page for intents.

Bug: 367455695
Flag: com.android.server.notification.notification_lock_screen_settings
Test: atest
Change-Id: I439e214f5a9bfda40777ffb60ca0bbf2a15e196d
2024-12-16 23:27:36 +00:00
Treehugger Robot
87ce9dbbcf Merge "[Catalyst] Fix calling pid/uid in PreferenceService" into main 2024-12-16 11:55:38 -08:00
Matthew DeVore
807cf78a51 Show display topology in the pane
Populate the topology pane with the topology as returned from
DisplayManager.

This adds padding but not the proper rounded corners or highlighting for
the blocks. That will come later, probably after feature complete while
still in dogfood.

Test: add and remove overlays while external display fragment is shown - verify pane is refreshed
Test: add two overlay displays, verify two blocks appear in pane with system wallpaper
Test: with no freeform window displays, verify a "not enabled" message appears in pane with no display blocks
Test: DisplayTopologyPreferenceTest
Flag: com.android.settings.flags.display_topology_pane_in_display_list
Bug: b/352648432
Change-Id: Ibb35af53c24d6feb1d763e4b2bf2ec9fee2ae24d
2024-12-16 19:04:58 +00:00
Angela Wang
46537a6576 [Ambient Volume] Show value with remote data
Sync local data with remote data when UI need to refresh and set the
corresponding local value to remote when the control expanded/collapsed.

Flag: com.android.settingslib.flags.hearing_devices_ambient_volume_control
Bug: 357878944
Test: atest BluetoothDetailsAmbientVolumePreferenceControllerTest
Change-Id: If748e696eb62b199d4fd9abafa2300d301a8079c
2024-12-16 15:26:26 +00:00
Angela Wang
c2ca7dadd9 [Ambient Volume] Show value with local data
Flag: com.android.settingslib.flags.hearing_devices_ambient_volume_control
Bug: 357878944
Test: atest BluetoothDetailsAmbientVolumePreferenceControllerTest
Change-Id: I3dad0f5424b44fee6d049fd778c4f8f71db0b58e
2024-12-16 15:24:20 +00:00
Angela Wang
0595aed386 [Ambient Volume] UI of volume sliders in Settings
Collapse/expand the controls when clicking on the hearder with arrow.

Flag: com.android.settingslib.flags.hearing_devices_ambient_volume_control
Bug: 357878944
Test: atest AmbientVolumePreferenceTest
Test: atest BluetoothDetailsAmbientVolumePreferenceControllerTest
Test: atest BluetoothDetailsHearingDeviceControllerTest

Change-Id: I845a4397601e563ed027d7d2a0a13651e95de708
2024-12-16 15:24:19 +00:00
Xinyi Mao
9fd930dcea Merge "Fixed battery chart flickering" into main 2024-12-16 02:53:08 -08:00
Jacky Wang
de777df241 [Catalyst] Fix calling pid/uid in PreferenceService
Bug: 379750656
Bug: 374115149
Flag: com.android.settingslib.flags.settings_catalyst
Test: N/A
Change-Id: Ia33141549faa68f3a9fca4648a88687974fab2e8
2024-12-16 16:56:04 +08:00
Yuchen
c7635b1705 [Expressive design] Update AppDataUsage.
Migrate EntityHeader to IntroPReference.
Remove background of SpinnerPreference.

Bug: 349681531
Flag: EXEMPT migration
Test: atest AppDataUsageTest
Change-Id: Icb91c418a67489e3069f958356a9675f279ee5f8
2024-12-16 07:47:29 +00:00
Yuchen
3f2448cfd6 [Expressive design] Update ApnPreference.
Migrate to TwoTargetPreference.
screenshot: https://hsv.googleplex.com/4840366858567680

Bug: 349681531
Flag: EXEMPT migration
Test: visual
Change-Id: Ia88f9f5f7f5388a7e66189e0b7a0be641d05f140
2024-12-16 07:45:28 +00:00
SongFerng Wang
197291dd86 Merge "Waiting for the psim subscriptionInfo ready" into main 2024-12-15 22:26:28 -08:00
danielwbhuang
f70abd2680 Create language and region settings page
1. Use flag to control the UI migration
2. Create language_and_region_settings.xml for new UI migration.

Bug: 379962955
Flag: com.android.settings.flags.regional_preferences_api_enabled
Test: check hsv and atest LanguagePreferenceControllerTest
Change-Id: If8d2303a2a3061231e69d1a45ad432c061da3545
2024-12-16 14:07:33 +08:00
Wei-Hong Hsu
250f5cade5 nfc: allow the nfc quick toggle title to be searchable
allow the nfc quick toggle title to be searchable

Bug: 374853887
Test: search NFC in the settings search.
Change-Id: I1115b1705b91eb9f40acbef83ed92b9aee11dd3d
2024-12-16 05:52:31 +00:00
SongFerng Wang
30192ba936 Disable failed tests from CellInfoUtilTest
These tests are currently failing and breaking builds.

Bug: 383858953
Change-Id: Idcb2f1f122b4e03990e7242b938438e1d8bb5367
Test: NA
Flag: EXEMPT bugfix
2024-12-15 19:38:54 -08:00
Yuchen
224c16db50 [Expressive design] Rename ComposeMainSwitchPreference to ComposeGroupSectionPreference.
Bug: 349681531
Flag: EXEMPT migration
Test: visual
Change-Id: I5cf44a951894d56f0a7c5d2794442bfcdebb05d1
2024-12-16 02:42:58 +00:00
Xin Li
49d8ff965d [automerger skipped] Merge "Merge 24Q4 into AOSP main" into main am: b1c96fcf83 -s ours am: 9ee5de3b2f -s ours
am skip reason: Merged-In I2c1246a4b34c6b09a42c05153c0e3f015d475df1 with SHA-1 c47df6271a is already in history

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3412198

Change-Id: If673e7532a8679449edb1b727ce64f5463fd2baa
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-13 21:24:16 -08:00
Xin Li
c5bc2fafb4 [automerger skipped] Merge 24Q4 into AOSP main am: 413f38d475 -s ours am: f9ab1c41d6 -s ours
am skip reason: Merged-In I2c1246a4b34c6b09a42c05153c0e3f015d475df1 with SHA-1 c47df6271a is already in history

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3412198

Change-Id: Ia0ee2f27436eeb123b50c1c7e5cab13dee3432d0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-13 21:24:10 -08:00
Treehugger Robot
4bfd857a7e Merge changes from topic "catalyst" into main
* changes:
  [Catalyst] Specify read/write permissions for "Mobile data"
  [Catalyst] Update permission check API signature
2024-12-13 20:57:36 -08:00
Xin Li
9ee5de3b2f [automerger skipped] Merge "Merge 24Q4 into AOSP main" into main am: b1c96fcf83 -s ours
am skip reason: Merged-In I2c1246a4b34c6b09a42c05153c0e3f015d475df1 with SHA-1 c47df6271a is already in history

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3413682

Change-Id: Idc093e7db9c7ba2c8529651fe643c4b85c8d3481
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-13 19:42:09 -08:00
Xin Li
f9ab1c41d6 [automerger skipped] Merge 24Q4 into AOSP main am: 413f38d475 -s ours
am skip reason: Merged-In I2c1246a4b34c6b09a42c05153c0e3f015d475df1 with SHA-1 c47df6271a is already in history

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3413682

Change-Id: I136a103a327d16f63876d046fc14b2e52e197041
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-13 19:42:05 -08:00
Xin Li
b1c96fcf83 Merge "Merge 24Q4 into AOSP main" into main 2024-12-13 17:00:46 -08:00
Treehugger Robot
6a5298ffbf Merge "Support GetMetadata for Preference Service" into main 2024-12-13 13:07:25 -08:00