Commit Graph

146252 Commits

Author SHA1 Message Date
Chris Antol
8927e4371d Support GetMetadata for Preference Service
Bug: 379750656
Flag: com.android.settingslib.flags.settings_catalyst
Test: unit test
Change-Id: Ia9b438360b60ff509a259df0a079ec4d745fb595
2024-12-13 19:50:21 +00:00
Xin Li
413f38d475 Merge 24Q4 into AOSP main
Bug: 370570306
Merged-In: I2c1246a4b34c6b09a42c05153c0e3f015d475df1
Change-Id: Ia12a9e27e05358f61b70868a68300a08cf074253
2024-12-13 11:15:21 -08:00
Treehugger Robot
dc30635bfb Merge "feat(HCT): Perform custom migration logic for existing HCT users" into main 2024-12-13 09:22:08 -08:00
Treehugger Robot
87a3d98b9e Merge "[Catalyst] Introduce a AccessibilitySeekBarPreference contains tool tip window" into main 2024-12-13 08:47:52 -08:00
Graciela Wissen Putri
8cf4dabb7c Clean up app default flag
Flag: EXEMPT clean up flag
Bug: 375291719
Test: atest UserAspectRatioManagerTest
Change-Id: I00cd2677aaca14f01f1a04b736151c74b97e3179
2024-12-13 14:40:34 +00:00
Sunny Shao
9777bbe38f [Catalyst] Introduce a AccessibilitySeekBarPreference contains tool tip window
Test: atest PreviewSizeSeekBarControllerTest TextReadingPreviewControllerTest
Bug: 372776688
Flag: com.android.settings.flags.catalyst_text_reading_screen
Change-Id: Ie93d2f26b1521e931ce648f0140894b153259f81
2024-12-13 22:15:39 +08:00
Menghan Li
2e10dc109f fix(ReduceBrightColorsPreferenceController) Different feature configs
This change updates the tests for ReduceBrightColorsPreferenceController
to account for different combinations of feature flags and
configurations, specifically related to the "Even Dimmer" flag and the
availability of Reduce Bright Colors.

The updated tests ensure that the preference controller correctly
determines its availability based on these factors, improving test
coverage and reliability. This addresses inconsistencies between the
code and test cases, ensuring accurate behavior across various device
configurations.

Bug: 383076111
Test: atest ReduceBrightColorsPreferenceControllerTest
Flag: com.android.server.display.feature.flags.even_dimmer
Change-Id: Iec53b416ec69a74f1f353f684358f265b022456f
2024-12-13 13:30:38 +00:00
Azhara Assanova
e2248f1c4f [AAPM] Add advanced protection dialog according to API feedback
This change also updates ActionDisabledByAdminDialog because the
AdvancedProtectionManager#createSupportIntent method is now static.

Bug: 378968840
Bug: 352420507
Test: ActionDisabledByAdminDialogTest
Test: WepNetworksPreferenceControllerTest
Test: manual
Flag: android.security.aapm_api
Change-Id: I8443742aadead45091fee757cbdf715d28eee495
2024-12-13 13:25:38 +00:00
Treehugger Robot
978bb419c4 Merge "Skip authentication if device was unlocked recently" into main 2024-12-13 03:32:50 -08:00
songferngwang
2575e89c8a Waiting for the psim subscriptionInfo ready
When the pSIM is inserted for the first time, this subscriptionInfo arrives late.
It causes the sim onboarding is closed.
We add the timer to wait the psim's subscriptionInfo.

Bug: 377171470
Flag: EXEMPT bugfix
Test: insert the psim and showing the sim onboarding flow.
Change-Id: Ib50c28d1bb1372fb822b3cf10cfa3fb22c457b3b
2024-12-13 10:51:56 +00:00
Yiyi Shen
ad6cee41b0 Merge "Avoid AudioManager#getMode in isFilterMatched" into main 2024-12-13 02:38:57 -08:00
Weng Su
e5d19b38cb Skip authentication if device was unlocked recently
- Sync the same behavior from SystemUI to Settings

Bug: 365611488
Flag: EXEMPT bugfix
Test: Manual testing
atest -c WifiNetworkDetailsFragmentTest \
         WifiDetailPreferenceController2Test \
         WifiTetherSSIDPreferenceControllerTest \
         com.android.settings.wifi.dpp.WifiDppUtilsTest
atest -c com.android.settings.spa.wifi.dpp.WifiDppUtilsTest

Change-Id: Ie3e8374b1fdbbc61e9e5bbf0f5162b18ba1452f3
2024-12-13 18:10:44 +08:00
Treehugger Robot
27c4fa1f41 Merge "Use BluetoothLeBroadcastAssistant#getSourceMetadata to retrieve broadcast name." into main 2024-12-13 01:51:46 -08:00
Shaowei Shen
399ae565bd Merge "[Physical Keybaord] Add keyboard touchpad/Mouse page - part2" into main 2024-12-13 00:56:28 -08:00
Jacky Wang
18ba9d8835 [Catalyst] Specify read/write permissions for "Mobile data"
NO_IFTTT=Catalyst only

Bug: 368355368
Flag: com.android.settings.flags.catalyst_mobile_network_list
Test: devtool
Change-Id: Ie5d4b3b03f502d279de501ec84670f350ebb7f42
2024-12-13 16:09:58 +08:00
Jacky Wang
821d320051 [Catalyst] Update permission check API signature
NO_IFTTT=Catalyst only

Bug: 374115149
Flag: com.android.settings.flags.catalyst
Test: manual
Change-Id: Ib13a5fddd517e3e260815b753b55c008e24d70d8
2024-12-13 16:09:58 +08:00
Treehugger Robot
da9f71257d Merge "Update the OWNERs" into main am: 5655b46dee am: 7307f34866
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3412198

Change-Id: Ib755ba5255f0321be71c900581211c6594cf8639
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-13 00:03:51 -08:00
Treehugger Robot
7307f34866 Merge "Update the OWNERs" into main am: 5655b46dee
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3412198

Change-Id: I508a2b6d6aab099c9cc95a06c89c01545df6e197
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-12 23:38:24 -08: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
Treehugger Robot
5655b46dee Merge "Update the OWNERs" into main 2024-12-12 22:45:50 -08:00
Tom Hsu
c3b8b7a21d Update the OWNERs
Change-Id: Iee6e33e04d232b78bf2d2064687a2d434b4f78c0
Flag: EXEMPT only changing OWNERS
Fix: b/383913940 
Test: make pass
2024-12-12 22:33:46 -08:00
chenjean
fe361a526e feat(HCT): Perform custom migration logic for existing HCT users
This logic is triggered by two scenarios:
(A) During first bootup after OTA update to Android 16, if the
    user had HCT enabled.
  - Trigger: ACTION_PRE_BOOT_COMPLETED.
  - Migration: HCT is disabled and notification is shown.
(B) Restore backup from Android 15 (or earlier), if the backup
    had HCT enabled and new device does not.
  - Trigger: SettingsProvider's restore process.
  - Migration: HCT is not restored and notification is shown.

We store whether the user has seen this notification in a new secure
setting ACCESSIBILITY_HCT_SHOW_PROMPT. This setting is also backed up.

Bug: 369906140
Flag: com.android.graphics.hwui.flags.high_contrast_text_small_text_rect
Test: atest SettingsRoboTests:com.android.settings.accessibility.HighContrastTextMigrationReceiverTest
Test: flash an incremental update on a build with HCT enabled;
      observe HCT is disabled and a notification is sent.
Test: flash an incremental update on a build with HCT disabled;
      observe no change to HCT and no notification.

Change-Id: I4d294ffc0b2eabc59ee7988a579d678975a16380
2024-12-13 05:01:33 +00:00
Shaowei Shen
929b8eb51d Merge "[Physical Keyboard Setting] Update text to match with Markup" into main 2024-12-12 19:36:14 -08:00
Treehugger Robot
c9dc11c4c5 Merge "Update strings for the notifications on lock screen" into main 2024-12-12 12:31:02 -08:00
Treehugger Robot
822097facd Merge "Partial revert to restore lottie_bubbles.json" into main am: 7067c6781f am: e9ced5b8c7
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3362646

Change-Id: Ia8a8985e55d7e4ec647cdf9e89b8f5f74a501705
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-12 10:57:33 -08:00
Joshua McCloskey
b6aa1157d6 Removed duplicate title in SetupChooseLock
Test: Verified manully there is only 1 title
Flag: EXEMPT bugfix
Fixes: 380881213
Change-Id: Ib310ee5cd7ec1676d411463846fe6d7cd74cd222
2024-12-12 18:25:00 +00:00
Matthew DeVore
2ad409ac2c Merge "Allow tweaking minimum block size and max block ratio" into main 2024-12-12 10:14:21 -08:00
Treehugger Robot
e9ced5b8c7 Merge "Partial revert to restore lottie_bubbles.json" into main am: 7067c6781f
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3362646

Change-Id: I7e610f36ac0d009174adf37bfeb2f434939348f9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-12-12 09:43:28 -08:00
Treehugger Robot
7067c6781f Merge "Partial revert to restore lottie_bubbles.json" into main 2024-12-12 09:16:52 -08:00
Daniel Akinola
3c0dde887d Merge "Add Shade display position dev option" into main 2024-12-12 06:12:31 -08:00
dakinola
e657ae66da Add Shade display position dev option
Adding new developer option which update the policy for shade location when connected to an external display

Bug: 379278693
Test: manual testing
Flag: com.android.systemui.shade_window_goes_around
Change-Id: I1d9886f76983972dc12073326a89d928af7be475
2024-12-12 06:12:17 -08:00
shaoweishen
45eecec36f [Physical Keyboard Setting] Update text to match with Markup
Bug: 377602364
Test: atest SettingsRoboTests
Flag: com.android.settings.keyboard.keyboard_and_touchpad_a11y_new_page_enabled
Change-Id: Ibb362d2f61ecdf209543de6b41bb114e71f18040
2024-12-12 08:55:29 +00:00
Yiyi Shen
17018dd7e1 Avoid AudioManager#getMode in isFilterMatched
AudioManager#getMode is a slow binder call which should not be called on
UI thread. isFilterMatched will be frequently triggered on UI thread when updating the
Connected devices page.

Cache and update the audio mode when receive onModeChanged callback in
this change. For long term, we should better separate the UI/background
thread tasks in those classes. Also send request to Audio team to
improve the API latency.

Flag: EXEMPT small fix
Bug: 380993178
Test: atest
Change-Id: I054f3fa62f0fdf03b9a436a532ac1fb4738aaf58
2024-12-12 15:25:34 +08:00
David Liu
aad7bf5ea8 Fixed battery chart flickering
- Hide the hourly chart view by default to avoid the calculate the
  space.
- Remove the alpha animation in chart group which causes the flickering
  when open the battery page.

Bug: 378997970
Flag: EXEMPT bugfix
Test: atest BatteryChartPreferenceControllerTest
Change-Id: I1b7e5f74fe63ebcae9f9737b0797d870fd56b134
2024-12-12 14:39:50 +08:00
Daniel Huang
626017d196 Merge "Add measurement system" into main 2024-12-11 22:23:42 -08:00
danielwbhuang
fffe05404f Add measurement system
1. add UX
2. add main functionality

Bug: 375979373
Flag: com.android.settings.flags.regional_preferences_api_enabled
Test: manual, atest
Change-Id: Ie0c82551ff4e9ab0c70fa5d3c32c62d1d7e26b87
2024-12-12 12:31:57 +08:00
Yiyi Shen
0ca6d53458 Merge "Add accessibility label for device details gear icon" into main 2024-12-11 19:32:24 -08:00
chelseahao
18444f826f Use BluetoothLeBroadcastAssistant#getSourceMetadata to retrieve broadcast name.
Test: atest
Bug: 381944659
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: I6e4c83a0858717727066de708fbde88e4b03ed8e
2024-12-12 11:31:33 +08:00
Bill Yi
1a4de9370a Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-12-11 14:44:10 -08:00
Bill Yi
4c6dd6dc25 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-12-11 14:44:10 -08:00
Bill Yi
7e0e429f12 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-12-11 14:44:10 -08:00
Yining Liu
56afae3c93 Update strings for the notifications on lock screen
Update strings for the notifications on lock screen
for localization.

Bug: 367455695
Change-Id: Ibfba5728b583adf464e63edc0e0462b904eb2dab
Flag: com.android.server.notification.notification_lock_screen_settings
Test: Manual
2024-12-11 11:18:41 -08:00
Jason Chang
7bd52367bb Merge "Change resource id to the correct package name" into main 2024-12-11 09:16:37 -08:00
Hani Kazmi
2ccbf1dbe9 Merge "[AAPM] UX for disabling WEP" into main 2024-12-11 09:05:58 -08:00
Joshua Mccloskey
15ca2dddf7 Merge "Updated initial value for accessibility interactor" into main 2024-12-11 08:49:55 -08:00
Jacky Wang
dc80bddc1e [Catalyst] Partially revert ag/30664694
The preference is not yet migrated, we should not update fragment based
on current flag rollout plan.

Bug: 368355361
Bug: 368359963
Flag: com.android.settings.flags.catalyst_tether_settings
Test: manual
Change-Id: I89a5d2ee29e1c3428d40428b3d3d4ba3afcd4ece
2024-12-11 18:18:09 +08:00
Yiyi Shen
a5b06a2e72 Add accessibility label for device details gear icon
Flag: EXEMPT small fix
Bug: 379994439
Test: compile
Change-Id: Ie1fa3901e50a8094f73bd4d409eb13a3b501ee80
2024-12-11 16:14:01 +08:00
Jason Chang
a55788d3b9 Change resource id to the correct package name
Change resource id to the correct SUW package name.

Flag: EXEMPT bug-fixing

Bug: 383030121

Test: Build and manually then check the UI
Change-Id: I31c8c7e79a65edd7953080a9bd16b638a901d607
2024-12-11 08:10:17 +00:00
Yiyi Shen
810309413a Merge "[Audiosharing] Check profile readiness before adding source" into main 2024-12-11 08:04:04 +00:00
Qiang Chen
f00508c4b5 Add nonNull check for SubscriptionInfoEntity to avoid Settings NPE
This NPE can be found in MTBF stress testing

Bug: 290855314
Test: Manaul

Change-Id: I03aaa6618255638a485f32e1bab34c6fa71945e4
2024-12-11 13:24:33 +05:30