Commit Graph

147265 Commits

Author SHA1 Message Date
Jason Chang
b5857a7af9 Fix for checking SUW/Setting Expressive style API
Flag: EXEMPT use SUW/Settings Expressive style API to check

Bug: 394223273

Test: build and manually check the UI and its behaviors
Change-Id: Iecbe443a20c4a228a6bd14fd061b0a731fbbd95a
2025-02-20 09:29:21 +00:00
alinazaidi
cf33160dc5 Persist dev option reboot dialog on rotation.
Use a ViewModel to store reboot dialog fragment state on rotations.

Test: locally verified rotations on few dev options that use the reboot fragment
Test: atest
com.android.settings.development.RebootConfirmationDialogFragmentTest
--iterations 25 (Passed)
Bug: 356273849
Flag: EXEMPT bug fix

Change-Id: I154170ea5fa91bcbec32af43853c5f99f8e8253d
2025-02-20 01:25:12 -08:00
Jason Chang
90802728ae Fix the animation in the “How to set up Face Unlock” page can’t
be paused or hidden.

Handling the Lottie onClick event to pause/resume the animation.

Flag: EXEMPT bug-fix

Bug: 378585895

Test: local build and verify to pause / resume lottie animation.
Change-Id: I36ff303dcdb994fb5ad9d90957d9a3e8534c3634
2025-02-20 08:43:18 +00:00
Henrik Baard
37bf0fbe57 Change range of battery saver schedule seekbar
The minimum value which can be set as trigger for
Battery saver was changed from 10% -> 20% however the
settings UI was not aligned with this change.

ref: b0fe225 Update the battery saver scheduler minimum level

Update the UI to align with the minimum trigger
level.

Bug: 396444535
Test: manual, check minimum seekbar value after reboot.
Test: atest BatterySaverScheduleSeekBarControllerTest
Change-Id: I4baa766ff1cb78ce656ae340ce930094b9e124e0
2025-02-20 09:13:39 +01:00
Ze Li
6a29b1c779 [Battery refactor] Move stylus related functions to BluetoothUtils as util functions.
Test: com.android.settings.bluetooth.BluetoothDeviceDetailsFragment, com.android.settings.connecteddevice.stylus.StylusDevicesControllerTest
Bug: 397847825
Flag: EXEMPT utils function
Change-Id: I6819844cd686fe29b8b1c760c3e4035787a2b903
2025-02-20 15:35:01 +08:00
Treehugger Robot
010869fc7e [automerger skipped] Merge "Fix crash due to display name is not set to View." into main am: f31808e692 am: 4afe48b684 -s ours
am skip reason: Merged-In I2a70c4e31c182f99cc4fb3da93ce7911da005429 with SHA-1 04006ccb48 is already in history

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3501106

Change-Id: Ieef95a63090cd57ba3e9d51e58702b66d12afc9f
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-19 21:15:16 -08:00
Treehugger Robot
4afe48b684 Merge "Fix crash due to display name is not set to View." into main am: f31808e692
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3501106

Change-Id: Iefac0a42aa02ff26b0a6a780e9d00a106295cec7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-19 20:38:39 -08:00
Treehugger Robot
f31808e692 Merge "Fix crash due to display name is not set to View." into main 2025-02-19 20:10:11 -08:00
tom hsu
58f40ebc7b Fix crash due to display name is not set to View.
Flag: EXEMPT bug fix
Fix: b/396700275
Fix: b/396606595
Test: manual test
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:04006ccb4867a17e7e59c64327d102e9b30af5f9)
Merged-In: I2a70c4e31c182f99cc4fb3da93ce7911da005429
Change-Id: I2a70c4e31c182f99cc4fb3da93ce7911da005429
2025-02-19 19:18:06 -08:00
Treehugger Robot
b77224f98a Merge "Revert "Update background color for Settings homepage"" into main 2025-02-19 18:10:47 -08:00
Angela Wang
57032340db Merge "Add ambient volume control related logs in Settings" into main 2025-02-19 18:03:48 -08:00
Yining Liu
cb663383e0 Update Notification Cooldown Setting Description
Update the text for Notification Cooldown setting's
description.

Change-Id: I01a9a7bce23fcb384c29150e2937435ac2637115
Fix: 390480406
Test: Manual, Settings - Notifications - Notification cooldown
Flag: com.android.server.notification.polite_notifications
2025-02-19 18:01:02 -08:00
Steven Moreland
911a99932c 16KB -> 16 KB
To be consistent with our docs and communication elsewhere.

Bugs: me
Change-Id: I0233412e452a27a14eb14336b0229114d022183c
Test: N/A
2025-02-19 15:11:18 -08:00
Yuri Lin
f64677e095 Merge "Call super.updateState() to set checked status of work profile switch" into main 2025-02-19 14:30:49 -08:00
Pawan Wagh
24a65ba02b Connect and enable root before running each testcase
- Enable16KbTest is flaky for aosp targets. Make sure that device
is connected and with root each time before and after running the
test.
- Add OWNERS file Enable16KbTest

Test: atest -c Enable16KbTest
Bug: 396984821
Change-Id: Ifffb73496b0947dda13a4022733677bd645b7e16
2025-02-19 20:59:06 +00:00
Yuri Lin
21327c6e41 Call super.updateState() to set checked status of work profile switch
The switch preference was not correctly reflecting the state of the cooldown setting because the checked state of the switch is set in the parent class's updateState() method.

Fixes: 397554453
Flag: EXEMPT bugfix
Test: manual
Change-Id: I2ce6fe71ac6ed0249c0ad39e99ff5929659d6b5a
2025-02-19 15:30:51 -05:00
Treehugger Robot
7d8717df58 Merge "Remove the perform backup tasks flag." into main 2025-02-19 09:05:21 -08:00
Nikhil Nayunigari
81bb2588f5 Merge "Add ethernet interface details settings subpage" into main 2025-02-19 08:34:03 -08:00
Treehugger Robot
a019ed062a Merge "Modify the default satellite category title." into main 2025-02-19 07:57:24 -08:00
Tetiana Meronyk
1cfb8a690d Merge "Put "Add user" dialog within activity to capture focus" into main 2025-02-19 07:48:32 -08:00
Yiyi Shen
92721a8650 Merge "[Audiosharing] Handle add source from notif in receiver" into main 2025-02-19 07:38:47 -08:00
Yiyi Shen
2114b0252f Merge "[Audiosharing] Handle cancel notification in receiver" into main 2025-02-19 07:38:32 -08:00
Owner Cleanup Bot
f1c3bfbac3 Merge "[owners] Remove bonianchen@google.com from src/com/android/settings/wifi/calling/OWNERS" into main am: 5c16cc9139 am: a51502b4fc
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3498934

Change-Id: Id4530616d92c5e20b9040e0d8d9dd1ee96b5f14c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-19 07:34:49 -08:00
Kanyinsola Fapohunda
c9569b1cbd Change namespace for time_help_and_feedback_feature_supported server flag
This change moves the time_help_and_feedback_feature_supported flag from the settings_ui namespace to the system_time namespace.

Flag: EXEMPT refactor
Bug: 283239837
Change-Id: Ic1fcafd3cdbd263d7b800ac7676701628361de63
2025-02-19 07:09:49 -08:00
Owner Cleanup Bot
a51502b4fc Merge "[owners] Remove bonianchen@google.com from src/com/android/settings/wifi/calling/OWNERS" into main am: 5c16cc9139
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3498934

Change-Id: I65fa211c27990261e5bfaf699dc3f3661c27330b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-19 06:58:45 -08:00
Owner Cleanup Bot
5c16cc9139 Merge "[owners] Remove bonianchen@google.com from src/com/android/settings/wifi/calling/OWNERS" into main 2025-02-19 06:19:07 -08:00
Matías Hernández
a8b18f953d Merge "Hide ZenMode.getRule() - Settings" into main 2025-02-19 05:43:17 -08:00
Mill Chen
d4a8ebab43 Revert "Update background color for Settings homepage"
Revert submission 31308110-update_bg_color

Reason for revert: revert it for version update. see b/39168510

Reverted changes: /q/submissionid:31308110-update_bg_color

Change-Id: Iac217ab6e5f49ecada79d3258df37e822f452f08
2025-02-19 05:23:44 -08:00
Yiyi Shen
b7518c56e1 Merge "[Audiosharing] Revert ag/31626042 (exclude utils)" into main 2025-02-19 02:32:06 -08:00
Yiyi Shen
fca184598d [Audiosharing] Handle add source from notif in receiver
Test: atest
Bug: 395786392
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: Ia9a74a48224974c10524f1ae379cd9de2ff42430
2025-02-19 18:04:13 +08:00
Garvita Jain
c543fa8101 Merge "L10n fix for IW locale in storage_summary string" into main 2025-02-19 01:38:19 -08:00
tom hsu
5d2678938f Modify the default satellite category title.
Flag: EXEMPT resource update
Fix: b/382707562
Test: Manual test
Change-Id: I6f6e748de4ec6c44bac1fda15a68f587e2708182
2025-02-19 09:35:59 +00:00
Yiyi Shen
2c5f451b3a [Audiosharing] Revert ag/31626042 (exclude utils)
FP will handle set temp for manual pair in Settings

Test: atest
Flag: com.android.settingslib.flags.enable_temporary_bond_devices_ui
Bug: 392004799
Change-Id: I3afae523ef0d5a6c236a482127a714f422a6e000
2025-02-19 01:23:52 -08:00
Aleksander Morgado
4a2abf7705 Early check for SIM EID availability based on telephony or user admin
The SIM EID field was already not being shown if the
PackageManger.FEATURE_TELEPHONY_DATA feature flag was not set, per the
check in getIsAvailableAndUpdateEid().

The async availability update was introduced in the context of bug
304560734, because the UI could block until the EID value was ready.
The config_show_sim_info check was left in getAvailabilityStatus() as
that cannot block.

This change moves to getAvailabilityStatus() the availability check
based on the PackageManager feature flags (which are set on system
boot and not changed during runtime) and also based on whether the
user is admin or not, as with any other telephony related setting.
None of these two checks would lead to ANR state.

Bug: 395714454
Flag: EXEMPT bugfix
Test: atest SimEidPreferenceControllerTest

Change-Id: I3447091670345285132a2acaf45cd129c2b84c00
2025-02-19 00:50:05 -08:00
Yiyi Shen
0ccc9eefc4 [Audiosharing] Handle cancel notification in receiver
Test: atest
Bug: 395786392
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: Ib4b8ed3eff1df01819b37be2c1334abeae00ea2c
2025-02-19 15:01:03 +08:00
Treehugger Robot
9fb0e28bf7 Merge "Fix BiometricEnrollActivityTest Fail" into main 2025-02-18 23:00:01 -08:00
Treehugger Robot
22e2cd594e Merge "Fixed accessibility issues in Wi-Fi SSID view" into main 2025-02-18 22:38:53 -08:00
YK Hung
7ab462f1d7 Merge "[Expressive Battery] Migrate tips card in battery usage to banner message" into main 2025-02-18 21:25:50 -08:00
Weng Su
d44941bd00 Fixed accessibility issues in Wi-Fi SSID view
- Keep the Save button enabled at all times

- Show "Enter the SSID" to remind the user

Bug: 386897596
Flag: EXEMPT bugfix
Test: Manual testing
  atest SettingsUnitTests:AddNetworkFragmentTest
  atest WifiConfigController2Test
Change-Id: I6cc6b197864511ee2c1c92affc67698b1761f11d
2025-02-19 13:22:26 +08:00
Yiyi Shen
f5098877fc Merge "[Audiosharing] Show add source notif when app not in foreground" into main 2025-02-18 21:16:48 -08:00
Yiyi Shen
baf07b187a Merge "[Audiosharing] Add actions to AudioSharingReceiver intent filter" into main 2025-02-18 21:16:48 -08:00
Nikhil Nayunigari
487a4774d1 Add ethernet interface details settings subpage
Adds a click listener to the ethernet interface row and displays a
settings subpage with interface connection status.

Flag: com.android.settings.connectivity.ethernet_settings

Test: atest SettingsRoboTests:
com.android.settings.network.NetworkProviderSettingsTest

Change-Id: Id64ce3657b47dd4ca70d425dd3d13227c8468d2c
2025-02-19 04:55:22 +00:00
Garvita Jain
4e5595050f L10n fix for IW locale in storage_summary string
storage_summary is passed as a single string of format "32 GB".
Spliting the phrase to allow TC to remove whitespace in case of iw
translations.

Old Translation : <free_space>
New Translation: <free_space_value> <free_space_unit>

Bug: 387197875
Test: manual
Flag: EXEMPT bugfix
Change-Id: I91abf58df472650a6278b08e4daa5d32e7f90da9
2025-02-19 04:19:16 +00:00
mxyyiyi
9ba79d8b02 [Expressive Battery] Migrate tips card in battery usage to banner message
- Update card preference: Update icon hint color by banner attention level
- Remove redundant color token: Use the existing Material yellow as a warning color

Bug: 349652542
Test: atest BatteryTipsControllerTest
Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled
Change-Id: I35730eb4716e9dbd712c22db63490e8bc06fc482
2025-02-19 10:33:13 +08:00
Treehugger Robot
1c7a5041a1 Merge "Post 16KB notification for all users" into main am: 0414af8d0d am: 8971b66a8d
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3494927

Change-Id: Ia6707aa93c838e5c6f5245ecb56362ceea42f6e8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-18 17:56:55 -08:00
Treehugger Robot
8be34b7d4c Merge "aconfig flags for Settings are in the system_ext container" into main 2025-02-18 17:38:09 -08:00
Yongshun Liu
67c5db13ff Merge "a11y: Clean up magnification mode controller and fix lint errors" into main 2025-02-18 17:28:49 -08:00
Treehugger Robot
8971b66a8d Merge "Post 16KB notification for all users" into main am: 0414af8d0d
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3494927

Change-Id: I19888c5dc377d54e6dd5d9ae3a64ff8e6ace616c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-02-18 17:20:34 -08:00
Treehugger Robot
0414af8d0d Merge "Post 16KB notification for all users" into main 2025-02-18 16:53:54 -08:00
Treehugger Robot
4e49c7258c Merge "[Catalyst] Rebind restricted preferences for SettingsPreferenceFragment" into main 2025-02-18 16:35:12 -08:00