Commit Graph

55815 Commits

Author SHA1 Message Date
Xinyi Mao
9a18d2f170 Merge "Remove nested PreferenceCategory in Battery Usage page." into main 2024-11-18 04:56:11 +00:00
tomhsu
26c16784d4 Make final confirmation of dialog only shows in-call state
- Add a condition of in-call state to restrict dialog.

Flag: EXEMPT bug fix
Fix: b/374355096
Test: atest passed.
Test: Manual test passed.
Change-Id: I8d8505870973acbf57db8d3c5032619a31f9eb4d
2024-11-18 04:23:57 +00:00
Wenyu Zhang
a28c5e1ca5 Skip user restriction check on desktop
The Catalyst user restriction check crashes the Settings app on desktop
device. Skip the check for desktop device for now since this crash
blocks many development/testing work.

Change-Id: I27e3db48ce175381917681fe517d63bf6b4aede2
Bug: b/379130874, b/377600992
Test: verify locally on desktop device, presubmit
Flag: EXEMPT_bug fix
2024-11-18 03:21:28 +00:00
mxyyiyi
4c5f8481bd Remove nested PreferenceCategory in Battery Usage page.
https://screenshot.googleplex.com/83LwysPKMCRoRoG

Bug: 349652542
Test: atest BatteryUsageBreakdownControllerTest
Flag: EXEMPT for simple fix
Change-Id: If97b5e3de9757b814ad72aa47f6491d29106b8a3
2024-11-18 11:09:11 +08:00
Jacky Wang
eb37f169a3 Merge "[Catalyst] Support Getter API for settings service" into main 2024-11-17 05:53:58 +00:00
Jacky Wang
7448b324fa Merge changes from topic "catalyst-ScreenTimeout" into main
* changes:
  [Catalyst] Migrate "Screen attention"
  [Catalyst] Support RadioButtonPickerFragment
  [Catalyst] Add initial ScreenTimeoutScreen
  Refactor duplicate isAdaptiveSleepSupported
2024-11-16 06:17:52 +00:00
Jacky Wang
e635f1e0ed [Catalyst] Support Getter API for settings service
NO_IFTTT=Catalyst only

Bug: 373895596
Flag: com.android.settings.flags.catalyst_service
Test: devtool
Change-Id: I367f350d2192d1285bf355a9e45c2d9bec11fa44
2024-11-16 08:06:28 +08:00
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
Jacky Wang
dec8370d25 [Catalyst] Migrate "Screen attention"
Bug: 368359967
Flag: com.android.settings.flags.catalyst_screen_timeout
Test: devtool
Change-Id: I3c990e8cb6d1414395408b884616574cd6130f81
2024-11-16 03:42:57 +08:00
Jacky Wang
3a20528ae4 [Catalyst] Support RadioButtonPickerFragment
Bug: 368359967
Flag: com.android.settings.flags.catalyst_screen_timeout
Test: manual
Change-Id: Ibd3a1c52b152054bf01e37848785c5bda588df5f
2024-11-16 03:42:57 +08:00
Jacky Wang
e6ef4c2443 [Catalyst] Add initial ScreenTimeoutScreen
Bug: 368359967
Flag: com.android.settings.flags.catalyst_screen_timeout
Test: atest
Change-Id: I13d23e4e5164c3dd4a4a01b00b854642f748b020
2024-11-16 03:42:47 +08: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
Jacky Wang
8d3be11418 Refactor duplicate isAdaptiveSleepSupported
Bug: 368359967
Flag: EXEMPT refactor
Test: atest
Change-Id: I41d465f67fb50e83d9bd23af54597afb6bd467cf
2024-11-16 01:49:52 +08:00
Andreea Costinas
a3cdf47415 Merge "Relax WiFi cert installation restrictions in HSUM mode" into main 2024-11-15 09:08:46 +00:00
alisa.li
2eb14f53bb Update the cache of a2dp config before writing config.
The created config based on mBluetoothA2dpConfigStore is invalid, so we need to update the cache before writing config.

Bug: 3177357791
Test: manual
Change-Id: I47774f035509f0cb533209e4e31e7477d5b8e516
2024-11-15 07:26:45 +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
Jaewan Kim
a6334bc0a3 Hide Linux terminal if device doesn't meet minimum requirement
Bug: 366374130
Test: Manually, atest
Change-Id: Id0ef47099b3fab41175bfae3d0eaf61037ba82ff
2024-11-15 11:10:25 +09: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
Joshua McCloskey
eb13449593 Updated interactors to use repos
Test: Verified flows still work as expected
Flag: EXEMPT bugfix
Bug: 379113250
Change-Id: I548b98f9e9121e7c0b4e613559817895c33af989
2024-11-14 17:24:51 +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
Haijie Hong
fb9d83ad68 Add metrics for new bluetooth device details
BUG: 343317785
Test: atest DeviceDetailsFragmentFormatterTest
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: Ic74a885627a1426c338b093dcf949688fe9784d1
2024-11-14 15:34:55 +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