Commit Graph

18551 Commits

Author SHA1 Message Date
Julia Reynolds
cc8e87b0a5 Merge "Fix incorrect Settings assumption" into main 2024-10-28 18:32:00 +00:00
Matías Hernández
f201899e7c Merge "Add TtsSpan to schedule-time modes trigger segment so that full day names are read" into main 2024-10-28 16:26:40 +00:00
Julia Reynolds
451bd65471 Fix incorrect Settings assumption
Most apps will not have 4 bundle channels, even when
the flag is on

Test: BundleListPreferenceControllerTest
Fixes: 375674236
Flag: android.service.notification.notification_classification
Change-Id: Iab8e241881f9af71744b46fce356604cf9ed369c
2024-10-28 10:40:08 -04:00
Matías Hernández
1e8933123a Add TtsSpan to schedule-time modes trigger segment so that full day names are read
Bug: 370358575
Test: atest ZenModeTriggerUpdatePreferenceControllerTest + manual with Talkback
Flag: android.app.modes_ui
Change-Id: Ia9ed53c75176d887f26da90a713f1038cf26e01f
2024-10-28 12:01:10 +01:00
Treehugger Robot
75e2dc4b21 Merge "Avoid disabling the Wi-Fi hotspot switch causing Talkback confusion" into main 2024-10-28 05:38:51 +00:00
Haijie Hong
37ae076618 Merge "Fix coroutine scope expired and UI animation issue" into main 2024-10-28 05:20:31 +00:00
Haijie Hong
7764a3e5af Fix coroutine scope expired and UI animation issue
BUG: 375365790
BUG: 375146578
BUG: 375304695
BUG: 375544752
Test: atest BluetoothDeviceDetailsViewModelTest
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: Ib3bc6699f256288b6c4995b78cc25a16f1af0792
2024-10-28 03:16:26 +00:00
Weng Su
259d3a47c8 Avoid disabling the Wi-Fi hotspot switch causing Talkback confusion
- Use local variables to filter inappropriate callbacks when the switch is busy

Bug: 374234537
Flag: EXEMPT bugfix
Test: Manual testing
atest -c WifiTetherSwitchBarControllerTest

Change-Id: If5237230c73cae5a6230a6d3fdaa65a8511bdcd8
2024-10-28 03:31:32 +08:00
Dongzhuo Zhang
d9553708e6 Show SIM account preference in Contacts Storage Settings when default
account is set as SIM account.

Test: atest SettingsRoboTests:com.android.settings.applications.contacts.ContactsStorageSettingsTest
atest SettingsRoboTests:com.android.settings.applications.contacts.ContactsStoragePreferenceControllerTest
Bug: 368641291
Flag: com.android.settings.flags.enable_contacts_default_account_in_settings

Change-Id: I2f80e63a807f5a060c2ef6f05e3e413c6a689e1f
2024-10-25 22:07:28 +00:00
David Liu
c560b73be5 Merge "Migrate Data Saver" into main 2024-10-25 03:20:09 +00:00
Dongzhuo Zhang
b95032af46 Merge "Change to use android.provider.new_default_account_api_enabled flag to control the contacts storage settings launch. Bug: 368641291 Flag: android.provider.new_default_account_api_enabled" into main 2024-10-25 03:09:09 +00:00
Jason Chiu
c7acd88a83 Merge "Make TetherSettings extend RestrictedDashboardFragment" into main 2024-10-25 01:42:53 +00:00
David Liu
d7dec0bf7f Migrate Data Saver
Add the skeleton of the Data Saver

Bug: 368359883
Test: atest DataSaverScreenTest
Flag: com.android.settings.flags.catalyst_restrict_background_parent_entry
Change-Id: I008c1ff7a1ad4ff1eeb95be730680abe5666f26c
2024-10-24 22:27:56 +00:00
Matías Hernández
a9e8225ba4 Update summary of Modes entry in Settings
Instead of the number of automatic modes, simply list the first (up to 3) existing modes, according to the standard sort order, when none are active.

As a consequence, the summary is never empty now.

Fixes: 374179941
Test: atest ZenModeSummaryHelperTest + manual
Flag: android.app.modes_ui
Change-Id: I04f9d90a5e1e4ed13d66181b85d77fef8c6ff256
2024-10-24 16:18:50 +02:00
Jason Chiu
8547d7ad96 Make TetherSettings extend RestrictedDashboardFragment
RestrictedSettingsFragment is deprecated and no longer supported. To be
compatible with catalyst, change the super class to
RestrictedDashboardFragment.

Bug: 368359963
Test: atest TetherSettingsTest, manual test with the user restriction
Flag: EXEMPT N/A
Change-Id: If8c5af9d716c63fd33cb508394e7d13450c9d2e7
2024-10-24 09:15:41 +00:00
Treehugger Robot
010fbe033c Merge "Add WifiCallingScreen and corresponding TS flag" into main 2024-10-24 04:00:14 +00:00
Fan Wu
60521ee2f9 Add WifiCallingScreen and corresponding TS flag
Bug: 372732219
Test: atest
Flag: com.android.settings.flags.catalyst_wifi_calling_settings

Change-Id: I3d78b6745e1127a0a7e73ec20ae95e9c9db2c139
2024-10-24 10:44:24 +08:00
Fan Wu
62c2800b3f Fix test failure
Bug: 375011040
Test: atest
Flag: EXEMPT fix test
Change-Id: Id2ecf785655dfcca9f65fc3ee64ffae11fc78e88
2024-10-24 02:34:57 +00:00
David Liu
b42e77308c Merge "Migrate Adaptive Connectivity" into main 2024-10-23 17:47:48 +00:00
David Liu
b415befd53 Migrate Adaptive Connectivity
Add the skeleton of the Adaptive Connectivity

Bug: 368359961
Test: atest AdaptiveConnectivityScreenTest
Flag: com.android.settings.flags.catalyst_adaptive_connectivity
Change-Id: I45aa92635780230c8b89205cd13b7d968438e424
2024-10-23 14:52:48 +00:00
Treehugger Robot
d324df3997 Merge "Update WifiCallingSettingsForSub to inherit DashboardFragment. Controller logic will be refactored later" into main 2024-10-23 11:14:54 +00:00
Treehugger Robot
633e8dcd92 Merge "[Catalyst] Internet screen migration" into main 2024-10-23 10:23:46 +00:00
Fan Wu
059593f1b1 Update WifiCallingSettingsForSub to inherit DashboardFragment. Controller logic will be refactored later
Bug: 372732219
Test: atest
Flag: EXEMPT refactor
Change-Id: I8fc419acd0311cc5b11d78662fb6a13b2c61b169
2024-10-23 09:07:59 +00:00
Jason Chiu
2cf3e627ce [Catalyst] Internet screen migration
- Add a flag for the migration
- Add the skeleton of the screen

Test: atest NetworkProviderScreenTest
Bug: 372733639
Flag: com.android.settings.flags.catalyst_internet_settings
Change-Id: Ia007b06501ef16e85df3e2f58536e8488d27bb3f
2024-10-23 15:34:39 +08:00
Zaiyue Xue
bdaadc471b Reafactor DataProcessManager Callback Function Logic
Keep the current thread for period job flow; only call handler back to
the main thread in UI flow.

Bug: 374570240
Fix: 374570240
Test: manual
Flag: EXEMPT bug fix
Change-Id: Ie923dbbd858c0c7000fa16a6c639f56624b2ece5
2024-10-23 13:33:17 +08:00
Dongzhuo Zhang
b48d9f0e56 Change to use android.provider.new_default_account_api_enabled flag to control the contacts storage settings launch.
Bug: 368641291
Flag: android.provider.new_default_account_api_enabled

Change-Id: I5d415daab83f1836d55d340ed0172c51ecf21622
2024-10-22 22:47:22 +00:00
Jacky Wang
b05a1aa543 Remove backing fields for ColorAndMotionScreen
Bug: 373451690
Flag: EXEMPT refactor
Test: atest
Change-Id: I371bd221b6079c9816725e5253e110eef423fc5e
2024-10-22 17:42:38 +08:00
Dongzhuo Zhang
b34562ef91 Merge "Swtich to use DefaultAccount related API to get and set default account for handling contacts." into main 2024-10-21 22:53:32 +00:00
Treehugger Robot
a868c602f1 Merge "Redesign the update logic of Allow Background Usage Page." into main 2024-10-21 10:27:18 +00:00
Treehugger Robot
0dbc16d2e0 Merge "Make NetworkProviderSettings extend RestrictedDashboardFragment" into main 2024-10-21 10:21:02 +00:00
Jason Chiu
8189b40067 Make NetworkProviderSettings extend RestrictedDashboardFragment
RestrictedSettingsFragment is deprecated and no longer supported. To be
compatible with catalyst, change the super class to
RestrictedDashboardFragment.

Bug: 372733639
Test: atest NetworkProviderSettingsTest, manual tests with user restrictions
Flag: EXEMPT N/A
Change-Id: I02b08363dadd5739a1d348f099d439b9f82ffb18
2024-10-21 09:11:16 +00:00
mxyyiyi
1732fa8db0 Redesign the update logic of Allow Background Usage Page.
- Use one Controller to manage preferences related to battery Optimization Mode.
- Move optimization mode & preferences status update logic from Fragment to Controller.

Bug: 373544647
Test: atest AdvancedPowerUsageDetailTest  PowerBackgroundUsageDetailTest BatteryOptimizationModePreferenceControllerTest BackgroundUsageAllowabilityPreferenceControllerTest
Flag: EXEMPT for simple fix
Change-Id: I2b1fed837fb4904e4118ab51c1d0cda36c0f6198
2024-10-21 16:51:14 +08:00
Jacky Wang
533de1fb46 Merge "Enable catalyst test for BluetoothDashboardScreenTest" into main 2024-10-21 04:09:03 +00:00
Chaohui Wang
95dc9fc7d8 Merge "Redirect to new APN edit page" into main 2024-10-21 01:14:25 +00:00
Jacky Wang
8697bdfb25 Enable catalyst test for BluetoothDashboardScreenTest
Bug: 372774767
Flag: EXEMPT test
Test: atest
Change-Id: Ic9feb40a94da70d34800ee5f01be8e8bb067b431
2024-10-19 21:32:35 +08:00
Chun-Ku Lin
abdb92453f Merge "Create an empty color and motion screen with Catalyst Infra" into main 2024-10-18 20:26:09 +00:00
Chun-Ku Lin
688cc94413 Create an empty color and motion screen with Catalyst Infra
Bug: 373451690
Test: atest ColorAndMotionScreenTest
Flag: com.android.settings.flags.catalyst_accessibility_color_and_motion
Change-Id: I4bfa5ec4d15bd745d691f586e49318b1b0a9bf6c
2024-10-18 18:36:13 +00:00
Daniel Norman
29641287d8 Merge "Hides the Edit Shortcut top preference when empty." into main 2024-10-18 17:29:37 +00:00
Treehugger Robot
037aae979d Merge "Enable catalyst test for PowerUsageSummaryScreenTest" into main 2024-10-18 13:30:11 +00:00
Treehugger Robot
bd76128c25 Merge "[Catalyst] Location screen migration" into main 2024-10-18 12:10:50 +00:00
Jacky Wang
cc693e950f Enable catalyst test for PowerUsageSummaryScreenTest
Bug: 372774754
Flag: EXEMPT test
Test: atest
Change-Id: I5b35b0ff3416dde4781b7874f5bbc12f6b3f2475
2024-10-18 19:55:14 +08:00
Jason Chiu
99488fd104 [Catalyst] Location screen migration
- Add a flag for the migration
- Add the skeleton of the screen

Test: atest LocationScreenTest
Bug: 368360458
Flag: com.android.settings.flags.catalyst_location_settings
Change-Id: Id8b7d748210d1cacf99e3d61236706029b862289
2024-10-18 18:56:37 +08:00
Fan Wu
46c45023d2 Merge "Rename context variable and format code" into main 2024-10-18 10:33:41 +00:00
Jason Chiu
8b66033c96 Merge "[Catalyst] SIMs screen migration" into main 2024-10-18 10:19:47 +00:00
Treehugger Robot
4f63ee455c Merge "[Catalyst] Bluetooth screen migration" into main 2024-10-18 10:17:29 +00:00
Fan Wu
7ae49a51ea Rename context variable and format code
Bug: 372774754
Test: atest
Flag: EXEMPT minor fix
Change-Id: I6cb128afa54613b7c7dba97749f21976ef82a960
2024-10-18 09:15:55 +00:00
Jason Chiu
97f2c3dfb4 [Catalyst] Bluetooth screen migration
- Add a flag for the migration
- Add the skeleton of the screen

Test: atest BluetoothDashboardScreenTest
Bug: 372774767
Flag: com.android.settings.flags.catalyst_bluetooth_switchbar_screen
Change-Id: I48e446532d3e839ae55880095a496e3ac4790c81
2024-10-18 17:00:49 +08:00
Jason Chiu
af1e8f7353 [Catalyst] SIMs screen migration
- Add a flag for the migration
- Add the skeleton of the screen

Test: atest MobileNetworkListScreenTest
Bug: 368355368
Flag: com.android.settings.flags.catalyst_mobile_network_list
Change-Id: I9d5d57b78d8f2c7d2bc6fd02e402fcdaf5b97bdf
2024-10-18 16:22:08 +08:00
Jacky Wang
f788c33aa4 Merge "Add Battery skeleton page and corresponding TS flag" into main 2024-10-18 07:59:41 +00:00
Chaohui Wang
d0d3879fa4 Redirect to new APN edit page
Bug: 374226933
Flag: EXEMPT clean up
Test: am start -a android.intent.action.INSERT
          -d content://telephony/carriers --ei sub_id 2
Test: am start -a android.intent.action.EDIT
          -d content://telephony/carriers/208 --ei sub_id 2
Change-Id: I1c5e3a271e1dc85930d73b5b56b3e655821c858b
2024-10-18 15:45:17 +08:00