Commit Graph

55072 Commits

Author SHA1 Message Date
shaoweishen
7aefcf71b6 [Physical Keyboard] Add slow keys dialog
demo: https://screenshot.googleplex.com/7CPpfHvAixe9Awr.png
Add dialog for Slow keys, which have same set up with Bounce keys.
Move dialog logic to InputSettingPreferenceController, to reuse it from
slow keys controller.

Bug: 346949547
Test: atest SettingsRoboTests
Flag: com.android.settings.keyboard.keyboard_and_touchpad_a11y_new_page_enabled

Change-Id: Ia4d74fcf3f20ed68cb252503e88d99ea79eae291
2024-10-16 09:31:06 +00:00
Chaohui Wang
9936dae2be Merge "Clean up getNetworkTypeFromRaf()" into main 2024-10-16 09:06:24 +00:00
Treehugger Robot
ff94f6026b Merge "Remove unneeded cast to SettingsActivity" into main 2024-10-16 09:02:46 +00:00
Fan Wu
d93efafd95 Remove unneeded cast to SettingsActivity
This is a prerequisite for using upcoming Catalyst integration test

Bug: 372774754
Test: atest
Flag: EXEMPT minor update
Change-Id: I4809df8d06f0c3d2de1c10d17e997ff80a8d4086
2024-10-16 08:02:03 +00:00
Jacky Wang
085a623171 Merge "Remove isCatalystEnabled check from SoundSettings" into main 2024-10-16 06:51:28 +00:00
Chaohui Wang
a088e4c6c5 Clean up getNetworkTypeFromRaf()
And also getRafFromNetworkType()

Use the version in android.telephony.RadioAccessFamily instead.

Bug: 373771849
Flag: EXEMPT refactor
Test: manual - on sims settings
Test: unit tests
Change-Id: I09a3d6a4cdfb9844a92ad8f0507b03b08ce91f27
2024-10-16 14:23:55 +08:00
Xinyi Mao
700f7e9ab2 Merge "Take as Unrestricted Mode in the UI if current Mode is Unknown." into main 2024-10-16 05:58:28 +00:00
Treehugger Robot
a876deec66 Merge "Fix name of COO." into main 2024-10-16 04:36:50 +00:00
Jacky Wang
42d2b08454 Remove isCatalystEnabled check from SoundSettings
Bug: 360015496
Flag: EXEMPT N/A
Test: atest SoundScreenTest
Change-Id: I3b392d009eaaf59ee77a1ea9951a7191fcc521d5
2024-10-16 12:22:42 +08:00
Yuchen
5951efefd7 Fix name of COO.
Test: visual
Bug: 370850767
Flag: EXEMPT bug fix
Change-Id: I41931b49e993806cc3de71c67f600faee2af241d
2024-10-16 03:21:12 +00:00
Treehugger Robot
c0b6e0bd4b Merge "[Catalyst] Vibration and haptics screen migration" into main 2024-10-16 00:43:14 +00:00
Treehugger Robot
07bcb127dd Merge "Clean up 24Q3 aconfig flag reset_mobile_network_settings" into main 2024-10-15 16:10:40 +00:00
Haijie Hong
068ac9d264 Merge "Fix multi-toggle flicker bug" into main 2024-10-15 14:50:12 +00:00
Jason Chiu
9c9c0a3d94 [Catalyst] Network and Intenet screen migration
- Add a flag for the migration
- Add the skeleton of the screen

Test: atest NetworkDashboardScreenTest
Bug: 368355361
Flag: com.android.settings.flags.catalyst_network_provider_and_internet_screen
Change-Id: I37622d318f2a52a7c60c9fa965b94fd135ce0b60
2024-10-15 18:32:31 +08:00
mxyyiyi
7bfa060c5f Take as Unrestricted Mode in the UI if current Mode is Unknown.
- Battery usage mode MODE_UNKNOWN is (1) apps in allowlist and (2) app's OP_RUN_ANY_IN_BACKGROUND = MODE_IGNORED.
For this case, mode should be displayed as Unrestricted on UI since it is in allowlist; and should be logged as unknown mode for the potential compatibility issues.

- After Backup & Restore, the MODE_UNKNOWN will be reset to Optimized(Default) Mode on target device.

Bug: 372831500
Test: manual
Test: atest BatteryOptimizeUtilsTest
Test: atest AppOptModeSharedPreferencesUtilsTest
Flag: EXEMPT for simple fix
Change-Id: Ic18e026f71a4a50ffa1711e2ca0782aeb8b33076
2024-10-15 15:53:29 +08:00
Haijie Hong
7a3baf7d2e Fix multi-toggle flicker bug
BUG: 343317785
Test: local tested
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: Ib5e700412c112ff6fa19b54f341fbd598c6b345c
2024-10-15 14:49:25 +08:00
Mill Chen
b923194def [Catalyst] Vibration and haptics screen migration
- Add a flag for vibration and haptics migration
- Add skeleton of vibration and haptics

Bug: 368360218
Test: atest VibrationIntensityScreenTest
Flag: com.android.settings.flags.catalyst_vibration_intensity_screen
Change-Id: I0117f570fe9bf92e61974984d00c0bd5be684fff
2024-10-15 04:44:09 +00:00
Dongzhuo Zhang
17476190b7 Merge "Add ContactsStorageSettingsActivity to handle the android.provider.action.SET_DEFAULT_ACCOUNT intent" into main 2024-10-15 04:26:06 +00:00
Yiling Chuang
fd699a753f Merge "Migrate Battery Saver" into main 2024-10-15 03:05:18 +00:00
Dongzhuo Zhang
538a01023a Add ContactsStorageSettingsActivity to handle the
android.provider.action.SET_DEFAULT_ACCOUNT intent

Test:Manually tested to trigger the contacts storage settings page using intent to start activity.
Bug: 368641291
Flag: com.android.settings.flags.enable_contacts_default_account_in_settings

Change-Id: I83db4c5751c6fec523298a82b82468180906075c
2024-10-15 02:59:21 +00:00
Andy Wickham
51a8a098a5 Merge "Move Contextual Search setting to AOSP." into main 2024-10-15 00:47:04 +00:00
Chris Antol
4b336e6b00 Merge "Revert^2 "[Catalyst] Add settings service"" into main 2024-10-14 22:24:36 +00:00
Chris Antol
42e146e9db Revert^2 "[Catalyst] Add settings service"
eafda3c490

Change-Id: I729410b1d9ea2f9c99739faafbb6b40394d7a9dc
2024-10-14 18:56:35 +00:00
Shaowei Shen
6656d59ddf Merge "[Physical Keyboard] Add main page for Repeat keys" into main 2024-10-14 15:32:38 +00:00
Chaitanya Cheemala (xWF)
4063536e20 Merge "Revert "[Catalyst] Add settings service"" into main 2024-10-14 15:08:45 +00:00
Chaitanya Cheemala (xWF)
eafda3c490 Revert "[Catalyst] Add settings service"
Revert submission 29815608-catalyst

Reason for revert: Likely culprit for b/373339105  - verifying through ABTD before revert submission. This is part of the standard investigation process, and does not mean your CL will be reverted.

Reverted changes: /q/submissionid:29815608-catalyst

Change-Id: If42ddb09c07da5672c3d55c2517b75647ea77ae5
2024-10-14 14:18:07 +00:00
Haijie Hong
86147371de Merge "Gray out toggle if isAllowChangingState is false" into main 2024-10-14 12:09:31 +00:00
Jacky Wang
b4b01a9890 Merge "[Catalyst] Add settings service" into main 2024-10-14 11:42:26 +00:00
Treehugger Robot
ec14feff81 Merge "Fix bug when bluetooth profile is not in more settings" into main 2024-10-14 11:26:33 +00:00
Jacky Wang
92354f8bed [Catalyst] Add settings service
Bug: 372981584
Flag: com.android.settings.flags.catalyst_service
Test: Manual
Change-Id: I0bb3752e65e879bd831b7d8c83ea160be32a893e
2024-10-14 18:03:05 +08:00
Geoffrey Boullanger
d7f7417a1e Merge "Updated toggles in Date and time settings page" into main 2024-10-14 09:47:00 +00:00
Haijie Hong
c9b450734a Gray out toggle if isAllowChangingState is false
BUG: 343317785
Test: local tested
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: I428b5093477ec9d1ba61cbbdb8430b9e28577d99
2024-10-14 17:43:00 +08:00
Sunny Shao
01ad71bc89 Migrate Battery Saver
Add the skeleton of the Battery Saver

Test: atest BatterySaverScreenTest
Bug: 368359126
Flag: com.android.settings.flags.catalyst_battery_saver_screen
Change-Id: I05a694c34468c01e4e032275567acbf37615c6f0
2024-10-14 17:34:10 +08:00
Haijie Hong
8cb8aaf36b Fix bug when bluetooth profile is not in more settings
BUG: 343317785
Test: local tested
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: I3f53c3b0b60997aa3a1685fe2512ff2f37b32d18
2024-10-14 17:19:57 +08:00
shaoweishen
cbe75928d9 [Physical Keyboard] Add main page for Repeat keys
Page markup: https://screenshot.googleplex.com/5xCd2wVVyXajdCB.png

Test: atest SettingsRoboTests
Bug: 345399212
Flag: com.android.input.flags.keyboard_repeat_keys
Change-Id: Ie60f4b6ea4de973644103c0aa0bcdfe9a1e758eb
2024-10-14 05:28:41 +00:00
Treehugger Robot
0a66344051 Merge "Connect to OWE Wi-Fi network when QR code has no password" into main 2024-10-14 03:52:39 +00:00
SongFerng Wang
be77468166 Merge "Update VPN app dialog message to include version code" into main 2024-10-14 03:37:58 +00:00
Treehugger Robot
eca66d0379 Merge "Update the forEach() into for-loop" into main 2024-10-14 03:05:14 +00:00
Chaohui Wang
e78f7543b8 Merge "Use getEnabledProfiles for ProfileSelectDialog" into main 2024-10-14 02:18:36 +00:00
Weng Su
efe8d52f77 Connect to OWE Wi-Fi network when QR code has no password
- Since there is no password for Wi-Fi security in OPEN and OWE, try to connect to one of them

Bug: 360377330
Flag: EXEMPT bugfix
Test: Manual testing
atest -c WifiDppQrCodeScannerFragmentTest

Change-Id: Ia0a59e099b724170ad993df8b4246b94e0da392c
2024-10-14 07:02:18 +08:00
Jacky Wang
6324c21d86 Merge changes from topic "catalyst" into main
* changes:
  [Catalyst] Use hybrid mode for sound screen
  [Catalyst] Use hybrid mode for display screen
  [Catalyst] Support hybrid mode
2024-10-13 14:28:16 +00:00
Candice Lo
5f5e7b7b73 Merge "Make Extra Dim main toggle and shortcut searchable" into main 2024-10-13 12:54:35 +00:00
YK Hung
cbca375f20 Update the forEach() into for-loop
Test: atest
Bug: na
Flag: EXEMPT for simple fix
Change-Id: I2cf116d4d9f0f6d36f624d89579a12b4a2e0aaf0
2024-10-13 09:59:29 +00:00
Jacky Wang
d38549d60b [Catalyst] Use hybrid mode for sound screen
Bug: 360015496
Flag: com.android.settings.flags.catalyst_sound_screen
Test: atest SoundScreenTest
Change-Id: Ifd685f8e3a546e8750a593201362540f60a3c031
2024-10-12 16:38:31 +08:00
Jacky Wang
92ce82809e [Catalyst] Use hybrid mode for display screen
Bug: 368359268
Flag: com.android.settings.flags.catalyst_display_settings_screen
Test: atest DisplayScreenTest
Change-Id: I5eed12ee5c596bee4c21c6e3aa9f3db0e0227bff
2024-10-12 16:38:31 +08:00
Jacky Wang
20558e21bd [Catalyst] Support hybrid mode
Bug: 332202168
Flag: com.android.settings.flags.catalyst
Test: Manual
Change-Id: Ib3607a91345bb0d94cd0d63cf7f9434c5603dd91
2024-10-12 16:38:31 +08:00
Chaohui Wang
fdc8eb3e00 Merge "Not log error when isPackageEnabled = false" into main 2024-10-12 01:21:39 +00:00
Wenyu Zhang
59dd884069 Merge "Use media switcher dialog to control routing during call" into main 2024-10-11 22:07:26 +00:00
Geoffrey Boullanger
b2dd2e3203 Updated toggles in Date and time settings page
Design doc: go/dd-android-settings-time-2024

Changes:
- toggling off "automatic time zone" now sets "use location" off and makes it unmodifiable
- removing "use locale default" for time format

Bug: 296835792
Test: on-device and atest
Flag: com.android.settings.flags.revamp_toggles
Change-Id: I31744f104fed06ee9980a6a0160501325175a02d
2024-10-11 17:24:47 +00:00
Candice
2e914a311f Make Extra Dim main toggle and shortcut searchable
Since the Extra Dim main toggle and shortcut preferences are created in
codes, we override `getRawDataToIndex` to return the corresponding index raw data.

Bug: 354778552
Test: atest ToggleReduceBrightColorsPreferenceTest
Test: Manually check the preferences are searchable in Settings search
Flag: com.android.settings.accessibility.fix_a11y_settings_search
Change-Id: I1642e96273cd16f35b23350af0ede3b1247ef067
2024-10-11 16:54:53 +00:00