Commit Graph

146625 Commits

Author SHA1 Message Date
petsjonkin
df5313a06d Fixing resolution announced by Talkback
Bug: b/386030131
Test: manual testing
Flag: EXEMPT bugfix
Change-Id: I83beab2cfdc25d163c657c89193c0d463f86dbb1
2025-02-28 19:27:59 +00:00
petsjonkin
20786fdc6f Talkback should not announce Selected when changing screen resolution
Bug: b/386029188
Test: manual testing
Flag: EXEMPT bugfix
Change-Id: I13a4ef58711a25549dc02c37a2a9911b1dfebf82
2025-02-26 22:40:16 +00:00
Pragya Bajoria
ea1cad3776 Merge "Rename DesktopMode API back" into main 2025-02-13 05:36:02 -08:00
Chelsea Hao
a219b4dabc Merge "Fix npe when broadcast code is null." into main 2025-02-13 02:09:35 -08:00
chelseahao
af4b7112f0 Fix npe when broadcast code is null.
Test: atest
Bug: b/381775542
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: Id342a4b3ce26927d5ae76c866da07763bf8fbfbe
2025-02-13 00:56:12 -08:00
Xinyi Mao
a000daad53 Merge changes from topic "improve_battery_usage" into main
* changes:
  [Expressive Battery] Implement the expressive style for anomaly hint chip
  [Expressive Battery] Refactor pref with anomaly hint.
2025-02-13 00:32:59 -08:00
Treehugger Robot
29a46cef81 Merge "Customize the color of seekbar" into main 2025-02-13 00:26:03 -08:00
Aleksander Morgado
bd56a0efd3 Merge changes from topic "hide-phone-number" into main
* changes:
  Phone number only available if telephony capable
  Phone number only available for admin users
  Added unit test for MobileNetworkPhoneNumberPreferenceController visibility
  Added unit tests for PhoneNumberPreferenceController visibility
2025-02-13 00:06:32 -08:00
Zoey Chen
23885c6351 Merge "[Settings] Add a flag to control show new System language picker UI or not" into main 2025-02-12 22:31:27 -08:00
mxyyiyi
4f9e8cb751 [Expressive Battery] Implement the expressive style for anomaly hint chip
For expressive style:
- Update the padding start & end of pref with anomaly hint
- Add the new background res to update anomaly hint style to outlined
- Reduce the vertical space between pref text and anomaly hint.

Bug: 349652542
Test: visual
Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled
Change-Id: Iec9240d2edba5042c5a1f740b662db75bea41d0e
2025-02-13 13:18:23 +08:00
mxyyiyi
a2bdafaf5e [Expressive Battery] Refactor pref with anomaly hint.
- WarningFramePreference & warning_frame_preference.xml is a battery customized layout which looks like a standard Preference layout with an optional app icon & warning chip.
- PowerGaugePreference extends the WarningFramePreference to display the app Preference with optional warning chip in Battery > Battery Usage.
- PowerUsageTimePreference extends the WarningFramePreference to display the usage time with optional warning chip in Battery > Battery Usage > App battery usage.

Bug: 349652542
Test: atest BatteryUsageBreakdownControllerTest PowerGaugePreferenceTest PowerUsageTimeControllerTest
Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled
Change-Id: I5d22703ccc487c54a2bbbc1d9737b92a2de54ba5
2025-02-13 13:16:10 +08:00
Treehugger Robot
793a6802ac Merge "Fix accessibility issues in Private DNS Settings" into main 2025-02-12 21:08:22 -08:00
Treehugger Robot
8efba3fee5 Merge "Do not disable LE audio offload as the developer option being disabled" into main 2025-02-12 20:25:04 -08:00
Weng Su
b3938a0244 Fix accessibility issues in Private DNS Settings
- Keep the Save button enabled at all times

- Show error in the Hostname view to remind the user
  - "The field is required" error
  - "The hostname you typed isn't valid" error

Bug: 386323822
Flag: EXEMPT bugfix
Test: Manual testing
atest -c PrivateDnsModeDialogPreferenceTest \
         PrivateDnsPreferenceControllerTest

Change-Id: I63973bd5001b838d7f27827e6a6d4ac96ac78ca9
2025-02-13 12:05:25 +08:00
SongFerng Wang
b8388cd90f Merge "Fix popping up the the VoLTE screen when it's disabled by the carrier." into main am: 9dc07f4e19 am: 4fec2b9e47
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3481415

Change-Id: I195bc0554e509f1cf3a391609a77f934f1cbdb80
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-12 19:42:39 -08:00
SongFerng Wang
4fec2b9e47 Merge "Fix popping up the the VoLTE screen when it's disabled by the carrier." into main am: 9dc07f4e19
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3481415

Change-Id: Ic6c9a18dcf9c51be64858caccada960f18f2a58a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-12 19:18:18 -08:00
SongFerng Wang
9dc07f4e19 Merge "Fix popping up the the VoLTE screen when it's disabled by the carrier." into main 2025-02-12 18:51:11 -08:00
Zoey Chen
997cd29458 [Settings] Add a flag to control show new System language picker UI or not
Bug: 394542699
Test: manual
Test: atest SettingsRoboTests:com.android.settings.localepicker.LocaleListEditorTest
Flag: EXEMPT refactor
Change-Id: I694e92cb7f61d208c36cb4b40aa3182cd838d5bb
2025-02-13 01:38:12 +00:00
Zoey Chen
ceaa16575a Merge "[Settings] Apply new style to dialog" into main 2025-02-12 17:28:45 -08:00
Alice Kuo
4251ebecca Do not disable LE audio offload as the developer option being disabled
The logic wrong to check the a2dp offload disable status to disable LE
audio offload together as the user turn off the developer option. Change
to use the support status, and reset the state to align the support
status.

Bug: 395725497
Fix: 395725497
Flag: EXEMPT, trivial bug fix
Test: Manual turn off developer option to check the status change
Test: atest SettingsRoboTests:com.android.settings.development.BluetoothLeAudioHwOffloadPreferenceControllerTest
Change-Id: I59d3e378495c90f007b46f05b74fdaf19d1520ce
2025-02-12 13:56:27 -08:00
Ben Lin
32f7568cd4 Rename DesktopMode API back
Also fix some indentation.

Bug: 395826065
Test: atest, Manual
Flag: EXEMPT bugfix
Change-Id: I50d30a8508d387e36981fb3bdd13b99480baedcf
2025-02-12 21:31:07 +00:00
Kanyinsola Fapohunda
22e56834fd Merge changes from topic "feedback_and_help" into main
* changes:
  Hide "Send feedback" button if no target exists.
  Move "Send feedback" button to the end of the list
2025-02-12 08:24:55 -08:00
Yuri Lin
c6675e5452 Merge "Update ZenModeAddBypassingApps to not binder call for every app" into main 2025-02-12 08:05:39 -08:00
Matthew DeVore
6baa6fee47 Merge "Split up DisplayTopology.kt into 1-per-class files" into main 2025-02-12 07:24:05 -08:00
Matthew DeVore
f6ad8e392e Merge "Detect when user wanted to drag vs. click" into main 2025-02-12 07:13: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
Kanyinsola Fapohunda
8c427e654e Hide "Send feedback" button if no target exists.
This change hides the "Send feedback" button  when a target for
the intent is not found. This will ensure the button is not
visible in cases when clicking it would have done nothing.

Bug: 283239837
Flag: com.android.settings.flags.datetime_feedback
Test: Test: atest TimeFeedbackPreferenceControllerTest.java
Change-Id: I8bb18c313925a7dc7ac07a1fb4c2f9e2d98352db
2025-02-12 03:42:29 -08:00
Ashley Newson
6fc2502a7b Merge "Add developer settings link to WebView DevTools" into main 2025-02-12 02:28:26 -08:00
Jacky Wang
6117349023 [Catalyst] Inline SettingsSlicesContract constants in SettingsContract
SettingsSlicesContract is only available on API >= 28.

Bug: 388061003
Flag: EXEMPT refactor
Test: N/A
Change-Id: I40c8a80edf241e76215122b19fed5b81737d2511
2025-02-12 16:40:56 +08:00
Treehugger Robot
04651464eb Merge "[Catalyst] Introduce the FooterPreferenceMetadata and FooterPreferenceBinding" into main 2025-02-12 00:30:41 -08:00
Jason Hsu
29557d6017 Merge "Show intro and footer string according to the device's supported status" into main 2025-02-11 23:44:01 -08:00
Sunny Shao
792e91743d [Catalyst] Introduce the FooterPreferenceMetadata and FooterPreferenceBinding
Test: manual test
Bug: 335132588
Flag: com.android.settings.flags.catalyst
Change-Id: Iff63b53ea335c96358a5278bd7e9a4d291c0b6d7
2025-02-12 07:17:07 +00:00
Treehugger Robot
eee74d05d5 Merge "Support invoker in FingerprintSettings" into main 2025-02-11 22:33:17 -08:00
Treehugger Robot
87a4a3dec8 Merge "[Catalyst] Create new flag for migrating Vibration & haptics page" into main 2025-02-11 18:31:38 -08:00
Yuri Lin
1500f3ecc0 Update ZenModeAddBypassingApps to not binder call for every app
This update already happened for ZenModeAllBypassingApps to use the new single binder call to get all packages bypassing DND. This change uses that method for bypassing apps as well as collecting the set of all apps with a nonzero number of channels.

Bug: 368623163
Bug: 394614704
Test: ZenModeAddBypassingAppsPreferenceControllerTest, manual to confirm correct behavior
Flag: android.app.nm_binder_perf_get_apps_with_channels
Change-Id: I72a1edcb07d18f5707591a5341d7a7338c23f42b
2025-02-11 17:20:46 -05:00
Bill Yi
74e862de8d Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-02-11 12:12:47 -08:00
Bill Yi
5084c4ac09 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-02-11 12:12:47 -08:00
Bill Yi
161ae41c34 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-02-11 12:12:47 -08:00
Treehugger Robot
bc93bb60aa Merge "We no longer need to monitor the shortcut changes on this screen" into main 2025-02-11 11:31:56 -08:00
Matías Hernández
76c89f32f7 Merge "Fix OWNERS for Settings > Notification Special Access" into main am: 9598b65442 am: 228322df95
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3489232

Change-Id: I65182c80aa7509968714fc7cc648c33277e73fea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-11 11:28:08 -08:00
Matías Hernández
0e5619882e Merge "Fix OWNERS for Settings > Modes/DND Special Access" into main am: 27f58a9de4 am: 17ed485adf
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3489233

Change-Id: Ie8c6a78dc3f645bae6b4dedc4aa508a82a8a089b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-11 11:26:47 -08:00
Matías Hernández
228322df95 Merge "Fix OWNERS for Settings > Notification Special Access" into main am: 9598b65442
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3489232

Change-Id: I38eed43b6fe5db2296a0f63a9c03bb3ce748619b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-11 10:53:45 -08:00
Matías Hernández
17ed485adf Merge "Fix OWNERS for Settings > Modes/DND Special Access" into main am: 27f58a9de4
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3489233

Change-Id: Ia8695faf3777e167ef33f6feaec6abf80a9c0b2a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-11 10:52:31 -08:00
Treehugger Robot
dbaa26f9bb Merge "Apply Expressive style "More” page-down button for Settings Face Enroll Introduction page" into main 2025-02-11 10:45:24 -08:00
Aleksander Morgado
731df0fa98 Phone number only available if telephony capable
The Phone Number field in either the about or network details pages
should not be shown if the device does not have telephony
capabilities.

Bug: 392808943
Flag: EXEMPT bugfix
Test: atest PhoneNumberPreferenceControllerTest
Test: atest MobileNetworkPhoneNumberPreferenceControllerTest

Change-Id: I04f682cc829d5dc7879e6cdacdaebc55a3b6fd2c
2025-02-11 18:43:40 +00:00
Aleksander Morgado
571103b891 Phone number only available for admin users
The phone number is hidden to non-admin users, following the same
reasoning that exists for other telephony-specific fields like the
baseband IMEI.

Bug: 392808943
Flag: EXEMPT bugfix
Test: atest PhoneNumberPreferenceControllerTest
Test: atest MobileNetworkPhoneNumberPreferenceControllerTest

Change-Id: I4e612219d0c7439930e91b3e1d6e368a0dfd073e
2025-02-11 18:30:42 +00:00
Treehugger Robot
e303458082 Merge changes from topic "catalyst" into main
* changes:
  [Catalyst] Move PreferenceRestrictionMixin
  [Catalyst] Move metrics class
2025-02-11 10:11:44 -08:00
Matías Hernández
9598b65442 Merge "Fix OWNERS for Settings > Notification Special Access" into main 2025-02-11 10:03:39 -08:00
Matías Hernández
27f58a9de4 Merge "Fix OWNERS for Settings > Modes/DND Special Access" into main 2025-02-11 10:03:34 -08:00
Jason Chang
8889927181 Apply Expressive style "More” page-down button for Settings
Face Enroll Introduction page

Flag: EXEMPT use SUW/Settings Expressive style API to check

Bug: 394223273

Test: build and manually check the UI and its behaviors
Change-Id: Iad9d6a53363fabad05b45a822f8ba6f1b83b9d7b
2025-02-11 17:41:04 +00:00