Commit Graph

55394 Commits

Author SHA1 Message Date
Dongzhuo Zhang
f7668f4d06 Merge "Add OnAccountsUpdateListener in ContactsStorageSettings to refresh the account when there's account change." into main 2024-11-15 21:37:25 +00:00
Chris Antol
0d585fc4ae Merge "Add Special App Access page for WRITE_SYSTEM_PREFERENCES permission" into main 2024-11-15 18:33:59 +00:00
Andreea Costinas
a3cdf47415 Merge "Relax WiFi cert installation restrictions in HSUM mode" into main 2024-11-15 09:08:46 +00:00
Zoey Chen
30a4a8c521 Merge "[Settings] Refactor: Add RegionAndNumberingSystemPickerFragmet" into main 2024-11-15 04:59:23 +00:00
Zoey Chen
cbc49e787d [Settings] Refactor: Add RegionAndNumberingSystemPickerFragmet
Bug: 377664066
Flag: EXEMPT refactor
Change-Id: Ib485d2763e0ce17473c8442ba4626802689c7b78
2024-11-15 03:07:54 +00:00
Chris Antol
22306eb982 Add Special App Access page for WRITE_SYSTEM_PREFERENCES permission
Bug: 374848822
Flag: com.android.settingslib.flags.write_system_preference_permission_enabled
Flag: com.android.settingslib.flags.settings_catalyst
Test: in-app test
Change-Id: I8116e40108175d2606b0c24655d457c1f04afc35
2024-11-15 01:36:04 +00:00
Menghan Li
2dbb5f0c66 Merge "fix(ColorCorrection): Palette preview text contrast Issue" into main 2024-11-15 01:16:35 +00:00
Matías Hernández
0cf61ba759 Merge "Hide the blurb for custom-manual types" into main 2024-11-14 23:32:00 +00:00
Matías Hernández
1f24f061b4 Hide the blurb for custom-manual types
Fixes: 377691826
Test: manual
Flag: android.app.modes_ui
Change-Id: I3c959f32c7ae1cc2c95fb4e9180e2f871ed3ee91
2024-11-14 20:26:40 +00:00
Treehugger Robot
93e24594c5 Merge "[Catalyst] Allow external SET for Use Battery Saver" into main 2024-11-14 18:05:29 +00:00
Treehugger Robot
f9ea2a52d3 Merge "Exclude implicit modes from the summary of the Modes entry in Settings" into main 2024-11-14 17:55:43 +00:00
Matías Hernández
0baf70a4b3 Exclude implicit modes from the summary of the Modes entry in Settings
They are called "Do Not Disturb (App)" which places alphabetically near the top (in English). This can often result in a summary like "DND, Bedtime, DND (App)", which looks silly.

Fixes: 379089451
Test: atest ZenModeSummaryHelperTest
Flag: android.app.modes_ui
Change-Id: Id41caee09cca874297ca12d2ac934aed3f9a43ab
2024-11-14 15:33:54 +00:00
Menghan Li
80f8b87e28 fix(ColorCorrection): Palette preview text contrast Issue
Root Cause: The palette preview's text color inherits dynamic colors from the BC pattern, leading to insufficient contrast against some backgrounds. This wasn't a problem in the original design, as the BC pattern was introduced later.

Solution: Set the palette preview text color to textColorPrimary to ensure the text remains legible against a wider range of background colors.

Bug: 378775277
Flag: EXEMPT bugfix
Test: atest PaletteListPreferenceTest

Change-Id: I8efb9f9d916d618b450df169292202e499d8ac0d
2024-11-14 13:03:17 +00:00
Treehugger Robot
f7478a6546 Merge "[Settings] Refactor: Add SystemLocalePickerFragment" into main 2024-11-14 09:26:27 +00:00
Sunny Shao
64c83d498f [Catalyst] Allow external SET for Use Battery Saver
NO_IFTTT=Catalyst only

Test: devtool
Bug: 377993674
Flag: com.android.settings.flags.catalyst_battery_saver_screen
Change-Id: I8f1aa27150ca9a6d581d3132b4dbd51bce78ee68
2024-11-14 16:16:52 +08:00
Zoey Chen
a15948b53e [Settings] Refactor: Add SystemLocalePickerFragment
Bug: 377664066
Flag: EXEMPT refactor
Change-Id: I79805c639197911d10f3632e50b5feced08c2fd6
2024-11-14 07:05:30 +00:00
Jason Chang
97539b3255 Merge "(1/n) Make the GlifHeader scrollable on FingerprintEnrollEnrolling( UDPFS) layout page." into main 2024-11-14 05:13:09 +00:00
Fan Wu
14ba0b6571 Merge "Revert "Revert "Migrate Battery percentage preference into catal..."" into main 2024-11-14 03:24:54 +00:00
Fan Wu
a794e01d45 Revert "Revert "Migrate Battery percentage preference into catal..."
Revert submission 30375632-revert-30294757-catalyst_battery_percentage-RPJNJOPEZI

Reason for revert: the failures is part of the robolectric issue b/378822459. Tested locally that the change is not breaking ClockworkSetupWizardRoboTests.

Reverted changes: /q/submissionid:30375632-revert-30294757-catalyst_battery_percentage-RPJNJOPEZI

Change-Id: I2210002924650cb54c55a41be25d97a3997c065e
2024-11-14 01:59:16 +00:00
Dongzhuo Zhang
ffe54b4fd6 Add OnAccountsUpdateListener in ContactsStorageSettings to refresh the account when there's account change.
Test: atest SettingsRoboTests:com.android.settings.applications.contacts.ContactsStorageSettingsTest
Bug: 368641291
Flag: com.android.settings.flags.enable_contacts_default_account_in_settings

Change-Id: Ic51ac292d4321ddeb16a4ea1ee44ba02dcc6e02b
2024-11-14 00:45:08 +00:00
Jacky Wang
9a8fe4107d [Catalyst] Update SettingsService
Bug: 373895596
Flag: com.android.settings.flags.catalyst_service
Test: Manual
Change-Id: I64d0b7bac3415894a8478fafe09b5f5d1a0ebb51
2024-11-14 03:52:41 +08:00
Guojing Yuan
b29b9b1b11 Merge "Remove the margin in Device Detail page" into main 2024-11-13 17:52:51 +00:00
Jason Chang
e4623cd2a3 (1/n) Make the GlifHeader scrollable on FingerprintEnrollEnrolling(
UDPFS) layout page.

1. To override GlifLayout's onInflateTemplate() then embedding a
ScrollView on GlifHeader.
2. Remove previous hiding the description text snippet
3. Handling UDFPS enroll lottie position problem.
4. Solve the ProgressBar overlapped with FooterBar problem.

Flag: com.android.settings.flags.enroll_layout_truncate_improvement

Bug: 359149850
Bug: 367164671
Bug: 362522976

Test: atest UdfpsEnrollEnrollingViewTest
Test: Build Forrest ROM then check the UI in different scenarios
Change-Id: Iee44cb5815286233f23266e3d86fd8335ab2087d
2024-11-13 16:26:32 +00:00
ELIYAZ MOMIN (xWF)
2bd5ef25bd Merge "Revert "Migrate Battery percentage preference into catalyst. Ref..."" into main 2024-11-13 15:16:23 +00:00
ELIYAZ MOMIN (xWF)
1bbe798c8f Revert "Migrate Battery percentage preference into catalyst. Ref..."
Revert submission 30294757-catalyst_battery_percentage

Reason for revert: <Potential culprit for b/378858348  - 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:30294757-catalyst_battery_percentage

Change-Id: I17a124619a1d6c7b6930a1c26c2b84c1a52ce8f7
2024-11-13 13:39:43 +00:00
Matías Hernández
68158ee324 Merge "Use full day names in the a11y version of schedules in mode list descriptions" into main 2024-11-13 12:16:07 +00:00
Yiyi Shen
ebcff7ee19 Merge "[Audiosharing] Fix hysteresis mode" into main 2024-11-13 09:19:50 +00:00
Roy Chou
04715ae017 Merge "feat(brightness suw): adjust brightness toggles UI and remove autobrightness standalone page" into main 2024-11-13 08:22:07 +00:00
Chaohui Wang
31d6287fef Merge "Clean up ApnSettings unused fields" into main 2024-11-13 07:17:01 +00:00
Yuchen Sun
48023a8d51 Merge "[Catalyst] Create datastore for AdaptiveConnectivityToggle." into main 2024-11-13 06:05:51 +00:00
Chelsea Hao
822def2d56 Merge "Enable audio sharing hysteresis mode fix when preview is on." into main 2024-11-13 05:32:26 +00:00
Chaohui Wang
a9b4073e0a Clean up ApnSettings unused fields
Bug: 374226933
Flag: EXEMPT clean up
Test: manual - on ApnSettings
Change-Id: If5e4aa6b8e10a138284f97eb840065895d4e5371
2024-11-13 13:17:03 +08:00
Treehugger Robot
7c8cd322c7 Merge "Migrate Battery percentage preference into catalyst. Refactor logic from BatteryPercentagePreferenceController to BatteryPercentageSwitchPreference" into main 2024-11-13 04:53:32 +00:00
Chaohui Wang
2ea7568542 Merge "Unify and merge two hasAllApns()" into main 2024-11-13 03:32:28 +00:00
Yuchen
88df8aa993 [Catalyst] Create datastore for AdaptiveConnectivityToggle.
Bug: 368355361
Flag: com.android.settings.flags.catalyst_adaptive_connectivity
Test: atest AdaptiveConnectivityTogglePreferenceTest AdaptiveConnectivityScreenTest
NO_IFTTT=no added logic

Change-Id: I8c1f78bb89c24903e2672d619605a0249924b05a
2024-11-13 02:26:49 +00:00
Fan Wu
c2f72f3cea Migrate Battery percentage preference into catalyst. Refactor logic from BatteryPercentagePreferenceController to BatteryPercentageSwitchPreference
Bug: 372774754
Test: atest and manual test
Flag: com.android.settings.flags.catalyst_power_usage_summary_screen
NO_IFTTT=already updated.

Change-Id: I9a259b966a832293e067c9f06c4c98479cb538a2
2024-11-13 01:28:02 +00:00
Treehugger Robot
70b962a8a5 Merge "Handle null audio attributes" into main 2024-11-12 23:15:13 +00:00
Julia Reynolds
987d14b8df Merge "reduce number of binder calls when loading page" into main 2024-11-12 22:00:26 +00:00
Julia Reynolds
d6c932cd7e Handle null audio attributes
Test: SoundPreferenceControllerTest
Fixes: 358540739
Flag: EXEMPT bugfix
Change-Id: I9a0e6066ccc2315b276564178c13ed59dd22162b
2024-11-12 20:27:23 +00:00
Guojing Yuan
ff0ea037bf Remove the margin in Device Detail page
Change-Id: I1add40d94bf1a433d303866353e08a3d790db1ae
Fix: 377517620
Test: manual
Flag: EXEMPT bugfix
2024-11-12 18:40:43 +00:00
Julia Reynolds
a37572a4e5 reduce number of binder calls when loading page
Test: ZenModeAllBypassingAppsPreferenceControllerTest
Test: ZenModeAppsLinkPreferenceControllerTest
Test: manual - load page and validate that it loads a few seconds faster
Flag: EXEMPT bug fix
Fixes: 368623163
Change-Id: I6d34a21f0948b117a96beefc405de4b623f49609
2024-11-12 18:29:41 +00:00
Jacky Wang
2bab900fa0 [Catalyst] Add Data Saver settings metadata
Bug: 368359883
Flag: com.android.settings.flags.catalyst
Test: manual
Change-Id: I7a4fe8cdd73a551a2b281e3a5a3a0f269b54ee5e
2024-11-13 02:10:48 +08:00
Jacky Wang
d2d5a1c2f9 [Catalyst] Migrate "Use Data Saver" settings
Bug: 368359883
Flag: com.android.settings.flags.catalyst
Test: manual
Change-Id: I2ee30cdd5edbfb13b5bf67e4c3b93b787c52a767
2024-11-13 02:05:01 +08:00
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
Andreea Costinas
25d8e56c53 Relax WiFi cert installation restrictions in HSUM mode
The Settings app runs under the current user, which previously lacked
the necessary permissions to install client certificates in HSUM mode.

This change allows any admin user to install these certificates.

Bug: b/370013519
Flag: EXEMPT bugfix
Test: manually installed and removed client certificate for WiFi
Change-Id: I57a7364c76a0adb7ed4112e48fb20070ab9d7bff
2024-11-12 10:40:26 +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