Commit Graph

143729 Commits

Author SHA1 Message Date
Chaohui Wang
3dc4d36a75 Merge "Disable the phone number when no subscription" into main 2024-10-11 02:53:50 +00:00
David Liu
ec151702a9 Merge "[Homepage Revamp] hide the scroll bar of homepage" into main 2024-10-11 01:30:08 +00:00
Bill Yi
867c10e0f3 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ibd35aee126206c49bac0695d3d6a4d1035837a14
2024-10-10 17:31:40 -07:00
Treehugger Robot
5a1383886e Merge "mouse: Add preference toggle for Mouse swap primary button" into main 2024-10-10 23:25:35 +00:00
Riley Jones
a75ba56192 Merge "Provides an ordered array of shortcut types so Settings presents shortcuts in the desired order" into main 2024-10-10 23:00:13 +00:00
Treehugger Robot
4bcad87e0d Merge "Pass the actual quantity/count to the MessageFormat and let it decide" into main 2024-10-10 22:43:31 +00:00
Treehugger Robot
bb5896b08d Merge "Mouse: Add preference toggle for mouse reverse vertical scrolling" into main 2024-10-10 20:32:27 +00:00
Riley Jones
ea06748ee2 Provides an ordered array of shortcut types so Settings presents shortcuts in the desired order
NO_IFTTT=corrects ui order
Flag: android.provider.a11y_standalone_gesture_enabled
Test: atest AccessibilityUtilTest
Bug: 371463731

Change-Id: Ia1864076faa281cf57c469a2d0d34f859858d859
2024-10-10 20:12:04 +00:00
Chaohui Wang
464c14649a Use getEnabledProfiles for ProfileSelectDialog
In EnableContentCaptureWithServiceSettingsPreferenceController.

Which follows current examples OnDeviceRecognitionPreferenceController
and ZenModePrioritySendersPreferenceController.

Fix: 368646940
Flag: EXEMPT bug fix
Test: manual - on "More security & privacy" page
Change-Id: I82cc9ba89ff8ef5e21e0ea7539681726b3c69e90
2024-10-10 16:51:09 +08:00
Yiyi Shen
ae24d51b1b Merge "[Audiosharing] Save user preferred primary headset to SettingsProvider" into main 2024-10-10 08:28:46 +00:00
Chaohui Wang
8aeca8e755 Disable the phone number when no subscription
To align with SIM status, if no sim in this slot, show "Not available"
and disable instead.

Fix: 333386151
Flag: EXEMPT bug fix
Test: manual - on about phone
Test: unit test
Change-Id: I5053863cc69ff468036df87a8c87447ab0c2aaed
2024-10-10 14:49:23 +08:00
Chaohui Wang
bab2edd0ef Fix SpaSearchLandingActivity.isValidCall()
SettingsIntelligence sometimes starts SearchResultTrampoline first,
in this case, SearchResultTrampoline checks if the call is valid, then
SearchResultTrampoline will start this SpaSearchLandingActivity, allow
this use case.

Fix: 370186204
Flag: EXEMPT bug fix
Test: manual - search roaming
Change-Id: Ib6b2c1d3b8754f478a637dda8e9df77a91b24d9e
2024-10-10 06:25:00 +00:00
Daniel Norman
e3c4db5884 Rename system caption "Text size" to "Caption size".
Change-Id: I8ee4b4c5d3393827240b1c9f757efb0dc85d40e8
Fix: 295665940
Test: strings only
Flag: EXEMPT resource only update
2024-10-10 02:33:20 +00:00
Wenyu Zhang
830654aa85 Use media switcher dialog to control routing during call
When input routing is enabled and in desktop devices, allow use media
switcher dialog to control routing during call.

Change-Id: Id2587a1d33783a02a84cdc5c850b0a9c7908f159
Bug: b/355684672, b/357123258
Test: atest MediaOutputPreferenceControllerTest
Flag: com.android.media.flags.enable_audio_input_device_routing_and_volume_control
2024-10-10 02:23:23 +00:00
Chun-Ku Lin
0a6d37b871 Pass the actual quantity/count to the MessageFormat and let it decide
Bug: 185400417
Test: manual (the autoclick location has changed to Settings > System >
Trackpad & mouse > Pointer & touch accessibility > Autoclick)
Flag: EXEMPT low risk localization fix

Change-Id: Iee63b87513550a6758db9dce376e88a12a51d9f8
2024-10-10 01:03:44 +00:00
Jimmy
449f4eeebc mouse: Add preference toggle for Mouse swap primary button
Bug: 359349392
Bug: 352598211
Test: Local DUT with aconfig flags enabled, verified settings
      appeared and swaps the mouse primary button

Flag: com.android.hardware.input.mouse_swap_primary_button

Change-Id: Ib762240c10e2cadcfa4a23cd78df81fcad8197dd
2024-10-09 19:30:15 +00:00
Jimmy
ff275c82aa Mouse: Add preference toggle for mouse reverse vertical scrolling
Bug: 359349392
Bug: 352598211
Test: Local DUT with aconfig flags enabled, verified settings appears
and is togglable. Verified toggle affects mouse scroll direction.

Flag: com.android.hardware.input.mouse_reverse_vertical_scrolling

Change-Id: I9620ac9bd33da7660c7a53f969426becc4f283cc
2024-10-09 19:29:10 +00:00
Yomna ~
8dde780a3f Merge "Handle IllegalStateExceptions in CellularSecurityPreferenceController" into main 2024-10-09 17:04:16 +00:00
Treehugger Robot
e875a191ba Merge "[Physical Keyboard] Add Repeat key toggle" into main 2024-10-09 15:47:13 +00:00
shaoweishen
cffb21b17f [Physical Keyboard] Add Repeat key toggle
Add repeat key toggle under Physical keybaord setting.

Bug: 345399212
Test: atest SettingsRoboTests
Flag: com.android.input.flags.keyboard_repeat_keys
Change-Id: Ib986301d108b1ad30d96d7309189e9507d38c25a
2024-10-09 14:38:55 +00:00
Shaowei Shen
7d94abc8e0 Merge "[Physical Keyboard][A11y Page] Add custom slider" into main 2024-10-09 14:35:30 +00:00
Jean Chen
ec13a519ea Merge "Makes Use Color correction and Color correction shortcut searchable." into main 2024-10-09 12:08:04 +00:00
Treehugger Robot
30526d9858 Merge "Also clear the foreground service usage time for BatteryDiffEntry should hide background usage time." into main 2024-10-09 09:48:10 +00:00
Yiyi Shen
96429c6589 [Audiosharing] Save user preferred primary headset to SettingsProvider
In hysteresis mode, we will receive plenty of onReceiveStateChanged, e.g. play and pause music, system sounds... The onReceiveStateChanged with BIS >= 1, as a replacement of onSourceAdded, will trigger auto pick logic for primary headset. In some cases, when user change primary headset in Call audio section on audio sharing page under the hysteresis mode, the system sound will later trigger a onReceiveStateChanged with BIS >= 1, then the auto pick logic (always pick the earliest connected headset) is possible to override the user change. Thus here we have to save the user preferred primary headset in SettingsProvider and skip the auto pick if user has made changes.

Test: atest
Bug: 355222285
Flag: com.android.settingslib.flags.audio_sharing_hysteresis_mode_fix
Change-Id: I5ccf743eb685509ffcc3c7a88051726c10fe2567
2024-10-09 16:57:07 +08:00
Aleksandr Lukin
cb7b10156b Merge "Remove Android %s from search results" into main 2024-10-09 08:45:10 +00:00
Yiyi Shen
c349422e55 Merge "[Audiosharing] Update audio sharing section title in call" into main 2024-10-09 07:38:45 +00:00
chenjean
0ac1ba5920 Makes Use Color correction and Color correction shortcut searchable.
Fix: 354079305
Flag: com.android.settings.accessibility.fix_a11y_settings_search
Test: atest ToggleDaltonizerPreferenceFragmentTest
Test: adb shell pm clear com.google.android.settings.intelligence;
      search Settings for 'use color correction' & 'color correction shortcut', observe 'use color correction' & 'color correction shortcut' present;
Change-Id: I0fd1885c1e82ac14290dfe40636e652a624e003a
2024-10-09 14:17:06 +08:00
Evan Chen
10175bf1ce Merge "Update AssociationInfo with deviceIcon field" into main 2024-10-09 05:42:30 +00:00
mxyyiyi
c3b20d3a31 Also clear the foreground service usage time for BatteryDiffEntry should hide background usage time.
- Usage time in background is the sum{bg + fgs} usage time

Bug: 371919020
Fix: 371919020
Test: atest DataProcessorTest
Flag: EXEMPT for simple fix
Change-Id: I058d8511eac7510e2df6d9ac1713824cd8dbf3ba
2024-10-09 13:31:18 +08:00
Jean Chen
685f66695f Merge changes Iad13fbe1,I6eed7598 into main
* changes:
  Makes Use Color inversion searchable.
  Create a method to allow child classes to define it's main switch toggle's pref key
2024-10-09 03:25:55 +00:00
Treehugger Robot
f4a3bd1487 Merge "Don't show default payment component in search if Wallet role is enabled" into main 2024-10-09 02:18:37 +00:00
Treehugger Robot
35b675f882 Merge "Makes Settings > Accessibility > Magnification prefs searchable." into main 2024-10-09 00:53:39 +00:00
yomna
f309500281 Handle IllegalStateExceptions in CellularSecurityPreferenceController
Bug: b/354833801, b/369941495, b/371447524, b/371689932
Flag: EXEMPT bug fix
Test: m
Change-Id: Ic21021016dcfe7fcc9cf2314117ab0e3cc84757e
2024-10-09 00:22:49 +00:00
Edgar Wang
b246d2e815 [Homepage Revamp] hide the scroll bar of homepage
Bug: 364612225
Test: visual
Flag: EXEMPT bugfix
Change-Id: I0d4c48ef6debfa82597db48a4320b0500f330b1b
2024-10-08 23:55:10 +00:00
chenjean
806b91414d Makes Use Color inversion searchable.
Fix: 354773587
Flag: com.android.settings.accessibility.fix_a11y_settings_search
Test: atest ToggleColorInversionPreferenceFragmentTest
Test: adb shell pm clear com.google.android.settings.intelligence;
      search Settings for 'use color inversion', observe 'use color inversion' present;
Change-Id: Iad13fbe163002af6e84a79fdeafb8517d53e2b09
2024-10-09 07:45:11 +08:00
Daniel Norman
3079b2d108 Makes Settings > Accessibility > Magnification prefs searchable.
All preferences are searchable except for "Keep on while switching apps"
which is only searchable if the user already has a magnification
shortcut enabled, to minimize user confusion from that generically-named
preference.

NO_IFTTT=adding IFTTT

Fix: 353772926
Test: atest ToggleScreenMagnificationPreferenceFragmentTest
Flag: com.android.settings.accessibility.fix_a11y_settings_search
Test: adb shell pm clear com.google.android.settings.intelligence;
      search Settings for the items in the bug
Change-Id: I01c7e5586ec0ea432cb2df80f156141683b97522
2024-10-08 23:42:18 +00:00
James Willcox
1133353e5d Don't show default payment component in search if Wallet role is enabled
Bug: 372254720
Test: atest PaymentSettingsTest
Flag: android.permission.flags.wallet_role_enabled
Change-Id: I4044d8fcd95db215d4a06b335b3cb96f8a5e3697
2024-10-08 23:29:06 +00:00
Alina Zaidi
1cc49800be Merge "[dev_option] Move DestopModeFlags out of android.windows.flags" into main 2024-10-08 20:24:09 +00:00
Treehugger Robot
f9d76f5cc4 Merge "Remove "Add supervised user" from search result if such user type is not allowed on the device" into main 2024-10-08 17:54:53 +00:00
Yuri Lin
c8fcd603eb Merge "Fix title on specific app's channel settings page" into main 2024-10-08 17:11:43 +00:00
Yuri Lin
bdf3f6471a Fix title on specific app's channel settings page
Fixes: 371518043
Test: manual
Flag: android.app.modes_ui
Change-Id: Ic4091ea54e1c3fd4aeaffa7ea50f2cfcc65f0ee1
2024-10-08 15:04:20 +00:00
alukin
9b62541d80 Remove Android %s from search results
Currently when "Android" is entered in Settings search,
"Android %s" appears in search results.

Removing it from the search results to fix the
issue.

Bug: 356111486
Bug: 359689134
Bug: 365040064
Test: manually verified
Test: atest StorageItemPreferenceControllerTest
Change-Id: I4f8c1fb9d94fb585ed4e84654d8a9b335cd5f748
2024-10-08 14:49:41 +00:00
Yiyi Shen
6261de509c Merge "[Audiosharing] Fix call audio device in call" into main 2024-10-08 12:51:08 +00:00
chenjean
012ba80c50 Create a method to allow child classes to define it's main switch toggle's pref key
We'd like to make the main switch toggle's preference searchable. Since we construct the preference programmatically, this would allow the preference to be automatically scrolled to when the user is brought to this page from a search result.

Bug: 372171003
Flag: EXEMPT refactor
Test: manual
Test: atest ToggleColorInversionPreferenceFragmentTest
      atest ToggleDaltonizerPreferenceFragmentTest
      atest ToggleFeaturePreferenceFragmentTest
Change-Id: I6eed7598ad296a758573318cf4bde5de30c7005c
2024-10-08 18:08:17 +08:00
shaoweishen
31d82a0288 [Physical Keyboard][A11y Page] Add custom slider
add slider for setting custom value under bounce key dialog.

demo video: b/346949547#comment26

Bug: 346949547
Test: atest SettingsRoboTests
Flag: com.android.settings.keyboard.keyboard_and_touchpad_a11y_new_page_enabled
Change-Id: I3b7f08ebe5ebc287e61713749c193c8b1cf71b99
2024-10-08 09:54:13 +00:00
Paul Duffin
899a6d8f75 Merge "Fully qualify @attr reference to android.R field" into main am: e61c03648d am: aea2622b91
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3296753

Change-Id: I1ce024dc4ecf70f6aedff0811abe38718140dd20
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-10-08 09:14:17 +00:00
Paul Duffin
aea2622b91 Merge "Fully qualify @attr reference to android.R field" into main am: e61c03648d
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3296753

Change-Id: Ic25c2d5d5e0c2ba9a9da492f2bb5be1f1b2bb458
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-10-08 09:00:55 +00:00
Paul Duffin
e61c03648d Merge "Fully qualify @attr reference to android.R field" into main 2024-10-08 08:31:47 +00:00
Haijie Hong
4f3d7c0056 Merge "make device setting be able to use both Intent and PendingIntent" into main 2024-10-08 07:48:54 +00:00
Yiyi Shen
ea5832e174 [Audiosharing] Update audio sharing section title in call
In call mode, change title "Active media devices" to "Call devices",
also allow device click to switch active.

Test: atest
Bug: 355222285
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: I8195934f19de534d07f5a655aac17d6966ae6f32
2024-10-08 15:44:10 +08:00