Commit Graph

144388 Commits

Author SHA1 Message Date
Jacky Wang
6a52eeabbc [Catalyst] Support main switch bar
MainSwitchBar is a view widget in activity layout stick to the top of
screen UI. There is no corresponding Preference in the preference
screen. For Catalyst support, introduce an invisible Preference object
to manipulate with MainSwitchBar, so that the binding mechanism is
still working on top of this abstraction.

Bug: 332201912
Flag: EXEMPT new class
Test: manual
Change-Id: If50932a443c1ed3ac04d3ea2e3273724d750297d
2024-11-13 02:05:01 +08:00
Wes Okuhara
76ca77b5f2 Merge "Settings: Fix queryShortcuts_shouldOnlyIncludeSystemApp test" into main 2024-11-12 18:00:38 +00:00
Zoey Chen
ab5dd02bd9 Merge "[Settings] Refactor: Add LocalePickerBaseListPreferenceController" into main 2024-11-12 10:27:33 +00:00
Yiyi Shen
cb32a15f1b [Audiosharing] Fix hysteresis mode
1. Move start broadcast logic from onPlaybackStarted to
   onBroadcastMetadataChanged
2. Move add source logic from onReceiveStateChanged(BIS>0) to
   onSourceAdded

Test: atest
Bug: 355222285
Bug: 377658982
Flag: com.android.settingslib.flags.audio_sharing_hysteresis_mode_fix
Change-Id: Ie0a2345e16caa2804fede930d174a67f2ec60259
2024-11-12 17:48:26 +08:00
Treehugger Robot
e94e4cdc91 Merge "[Catalyst] Support multiple restriction keys" into main 2024-11-12 09:30:52 +00:00
Chaohui Wang
4e4ee7430c Unify and merge two hasAllApns()
Also add unit tests.

Fix: 374226933
Flag: EXEMPT refactor
Test: manual - on ApnSettings
Test: atest ApnTypesTest
Change-Id: Ie82252ed13d81118292214b360ac49de9a81b7cc
2024-11-12 17:08:16 +08:00
Shaowei Shen
03e7eacc6e Merge "[Touchpad & Mouse] Update title based on conditions" into main 2024-11-12 05:57:00 +00:00
Zoey Chen
31dfbdabf1 [Settings] Refactor: Add LocalePickerBaseListPreferenceController
Bug: 377664066
Flag: EXEMPT refactor
Change-Id: I54d212ea520b67263f5b797175936c046a534519
2024-11-12 05:50:50 +00:00
chelseahao
103ce4efa2 Enable audio sharing hysteresis mode fix when preview is on.
Test: atest
Bug: 368401233
Flag: com.android.settingslib.flags.audio_sharing_developer_option
Change-Id: I3dad42011aadcfd1a2670d297c8e000d1b92324a
2024-11-12 05:49:34 +00:00
Xin Li
cfa19e11a6 Merge 24Q4 (ab/12406339) into aosp-main-future
Bug: 370570306
Merged-In: Ie90e7495dd4a134538bae6e3e08eea0d02134b14
Change-Id: I20517e9ee410e95f2cbeb1247c0c0288ed9f006f
2024-11-11 21:38:40 -08:00
Jacky Wang
865e9b29f5 [Catalyst] Support multiple restriction keys
NO_IFTTT=Catalyst only

Bug: 377600992
Flag: com.android.settings.flags.catalyst
Test: testdpc
Change-Id: If7212b5402f7e271b7fdbd2a43bed0e11ee6f15f
2024-11-12 13:19:16 +08:00
Jaewan Kim
a1abfdcaca Merge "Clear Linux terminal app when disabled" into main am: 005ee9761b am: c4d90bf739
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3332054

Change-Id: Ifc0064dd155a9b4d5faf55d496f6cba3ef097251
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-12 04:46:29 +00:00
Jaewan Kim
c4d90bf739 Merge "Clear Linux terminal app when disabled" into main am: 005ee9761b
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3332054

Change-Id: I4989ce036205f873d5bfb7ef876b7f573fbe0284
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-12 04:12:47 +00:00
Jaewan Kim
005ee9761b Merge "Clear Linux terminal app when disabled" into main 2024-11-12 03:49:41 +00:00
Jaewan Kim
ea0b5d5950 Clear Linux terminal app when disabled
Bug: 374032310
Test: Manual, T/H
Flag: Build.RELEASE_AVF_SUPPORT_CUSTOM_VM_WITH_PARAVIRTUALIZED_DEVICES
Change-Id: Id56f98cf90b0598111baa3096b1b81307ebb99a3
2024-11-12 01:19:17 +00:00
Bill Yi
dbf763064b Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-11-11 21:52:24 +00:00
Bill Yi
2ba1fe6e5f Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-11-11 21:52:24 +00:00
Bill Yi
ba15d2a90f Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-11-11 21:52:24 +00:00
Hao Dong
d97646984c Merge "Fix work apps interceptor biometric prompt icon." into main 2024-11-11 21:18:10 +00:00
Daniel Norman
453aa677e6 Merge "Enable HearingAids#AudioRouting page search if the device supports hearing aid" into main 2024-11-11 20:14:31 +00:00
Treehugger Robot
0e69ab1a0d Merge "Make Linux terminal option profile aware" into main am: 9089bca7d1 am: e3fe97469e
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3332053

Change-Id: I8ea7ac95529afd0033b654d6144b012efcddf9d6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-11 19:00:44 +00:00
Treehugger Robot
71932d2814 Merge "Introduce overlaid BatterySaverGoogleScreen" into main 2024-11-11 18:50:33 +00:00
Treehugger Robot
1781aa3e46 Merge "Refine some preference name" into main 2024-11-11 18:48:08 +00:00
Treehugger Robot
e3fe97469e Merge "Make Linux terminal option profile aware" into main am: 9089bca7d1
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3332053

Change-Id: I4d42ce3bc3f33ff25336805f1209a53dd6adade5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-11 18:38:31 +00:00
Treehugger Robot
9089bca7d1 Merge "Make Linux terminal option profile aware" into main 2024-11-11 17:57:37 +00:00
Candice
f959debbe5 Enable HearingAids#AudioRouting page search if the device supports hearing aid
Enable searching in the AccessibilityAudioRoutingFragment only if the
page is available and the device supports hearing aid.

Bug: 353853318
Test: atest AccessibiilityAudioRoutingFragmentTest
Test: Manually. Add screen recording of search results to the bug
Test: Manually set the support to hearing aids to false and verify that searches to the page contents are not available
Flag: com.android.settings.accessibility.fix_a11y_settings_search
Change-Id: I6786c51438d49ff9bb1d458d312ec09bd16098a4
2024-11-11 13:37:34 +00:00
Treehugger Robot
7e8222833b Merge "Remove all pending messages when fragment destroyed" into main am: f85bc08954 am: 07323c29b6
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3329595

Change-Id: I46c5134df5fbe920acc628f4e9456681ca21d2e3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-11 12:39:49 +00:00
Treehugger Robot
07323c29b6 Merge "Remove all pending messages when fragment destroyed" into main am: f85bc08954
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3329595

Change-Id: I41cf9371fc4560182def371649bd8cd3e7963406
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-11-11 12:16:48 +00:00
Treehugger Robot
f85bc08954 Merge "Remove all pending messages when fragment destroyed" into main 2024-11-11 11:50:09 +00:00
Haijie Hong
b33651389e Merge "Revert ANC and Spatial audio UI change" into main 2024-11-11 11:07:40 +00:00
Sunny Shao
a84dd63548 Introduce overlaid BatterySaverGoogleScreen
Test: atest BatterySaverScreenTest
Bug: 368359126
Flag: com.android.settings.flags.catalyst_battery_saver_screen
Change-Id: Iac80ea417564fd3c6a1859269109a77e08b0815f
2024-11-11 16:13:00 +08:00
Sunny Shao
5642811b6e Refine some preference name
Test: atest DisplayScreenTest
Bug: 368359268
Flag: com.android.settings.flags.catalyst_display_settings_screen
Change-Id: I73ed10a3a0bee2dc91a0a4247fb08842db70a2d4
2024-11-11 14:03:45 +08:00
Treehugger Robot
c0c9592660 Merge "Migrate Use Battery Saver" into main 2024-11-11 05:57:29 +00:00
Bill Yi
db46e64d82 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6bd6a7190fa33d65fc3181d3a93c74bb32d618c4
2024-11-10 21:49:47 -08:00
shaoweishen
3ec1567922 [Touchpad & Mouse] Update title based on conditions
Update preference and page title based on device condition.

Bug: 364536531
Flag: NONE, bug fix for string title.
Test: verify on device
Change-Id: Id5b01680314c45f1b86661c60f9e7acedca8b6eb
2024-11-11 05:49:03 +00:00
Bill Yi
7fa2505e07 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I140ab8538bd656e6cc165cbbfdd48bd15bece4a0
2024-11-10 21:47:27 -08:00
Bill Yi
73d023c54d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ia02d8127f2848b169ed68267c29994e5cbe4b1d7
2024-11-10 21:45:34 -08:00
Jaewan Kim
ed3abffcfc Make Linux terminal option profile aware
Bug: 374034911
Test: atest, plus following manual test \
  - Test tabbed UI with/without work profile \
  - Test that disabled by work profile launches alert dialog \
  - Test whether toggling an app only toggle the app for the user.
Flag: Build.RELEASE_AVF_SUPPORT_CUSTOM_VM_WITH_PARAVIRTUALIZED_DEVICES
Change-Id: I4bf0a2d521cf3e632f6c0320e0b5cc0154d5b68f
2024-11-11 14:31:19 +09:00
Haijie Hong
aaa040e085 Revert ANC and Spatial audio UI change
BUG: 378016708
Test: atest DeviceDetailsFragmentFormatterTest
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: I390ff06ab11b16134d0656c9576670b319c46c74
2024-11-11 12:41:33 +08:00
Daniel Norman
1c57667439 Merge "Fix Settings Search for OneHandedSettings" into main 2024-11-11 02:25:09 +00:00
Sunny Shao
23367e380a Migrate Use Battery Saver
Test: atest BatterySaverScreenTest BatterySaverMainSwitchPreferenceTest
Bug: 377993674
Flag: com.android.settings.flags.catalyst_battery_saver_screen
Change-Id: I0c788688ed07ddcb5b2c97b2856194fd57c318e0
2024-11-11 10:24:38 +08:00
Daniel Norman
5ddd74b917 Fix Settings Search for OneHandedSettings
- Marks top header preference as non-searchable
- Makes shortcut preference searchable

Fix: 353591062
Test: manually confirm above behaviors
Test: atest OneHandedSettingsTest
Flag: com.android.settings.accessibility.fix_a11y_settings_search
Change-Id: I3355f817358cec1d265b89d75229ffc2742efe1c
2024-11-11 00:39:08 +00:00
Bill Lin
26fc990bdd Merge "Gate screen off unlock UDFPS until power optimitized" into main 2024-11-10 14:09:50 +00:00
Jacky Wang
04cf5dea9a Merge "[Catalyst] Rebind preference immediately when restriction is changed" into main 2024-11-09 04:59:39 +00:00
Wes Okuhara
fd77ab6182 Settings: Fix queryShortcuts_shouldOnlyIncludeSystemApp test
Previously this test asserted that the ActivityInfo instances
were the same address. While this can assert general equality,
it is more robust to assert the ActivityInfo's properties-
mainly that the associated application is a system app.

Bug: b/314924127
Test: atest SettingsRoboTests:com.android.settings.shortcut.CreateShortcutPreferenceControllerTest
Flag: TEST_ONLY
Change-Id: I0d60fb848afdd40cecf3f3393421006ad1ff1086
2024-11-08 15:35:04 -08:00
Riley Jones
5a06b74ef1 Merge "Caption settings cleanup" into main 2024-11-08 21:06:11 +00:00
Riley Jones
7954ae5cc9 Merge "Caption preferences cleanup" into main 2024-11-08 20:08:30 +00:00
Riley Jones
b3eea625ec Caption settings cleanup
Bug: 353757664
Test: atest com.android.settings.accessibility
Test: Manually verify conditions described in bug
Flag: com.android.settings.accessibility.fix_a11y_settings_search
Change-Id: Iff25702843e5dd3e7ebcca1a13f190d48cf83e7a
2024-11-08 19:09:06 +00:00
Matías Hernández
3863c67a01 Use full day names in the a11y version of schedules in mode list descriptions
Bug: 370358575
Test: atest ZenModesListItemPreferenceTest
Flag: android.app.modes_ui
Change-Id: I5d22b878c1d685476cf71167e7163be65416da68
2024-11-08 17:24:01 +01:00
Jason Chiu
8c8fbb40b7 Merge "Block the content scheme intent in AccountTypePreferenceLoader" into main 2024-11-08 10:37:31 +00:00