Commit Graph

147781 Commits

Author SHA1 Message Date
Bill Yi
6845ab6e25 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2025-03-19 16:04:48 -07:00
Xiaomiao Zhang
76069fe415 Merge "Create data store for safe search preference." into main 2025-03-19 15:40:28 -07:00
Yuri Lin
2034843773 Only call super.updateState when work profile exists
Since the updateState() method is being called regardless of the availability of a work profile, we were trying to get settings for USER_NULL, which was leading to crashes.

Flag: com.android.server.notification.polite_notifications
Fixes: 402317471
Test: manual with existing work profile & without existing work profile
Change-Id: Icddabd9a7575713f42a0f5bd955b65a7e46c7f45
2025-03-19 17:53:12 -04:00
Xiaomiao Zhang
b7de2ba4a5 Create data store for safe search preference.
Test: atest SupervisionSafeSearchPreferenceTest
Test: atest SupervisionWebContentFiltersScreenTest
Test: manually tested with physical device
Flag: android.app.supervision.flags.enable_web_content_filters_screen
Bug: 401568995
Change-Id: Ia9e3f73ac6e9efbe7933dc2958443e9fdb5b4422
2025-03-19 20:59:14 +00:00
Mark Renouf
158549abc1 Merge "Fixes 'capture more' on Settings home page" into main 2025-03-19 13:05:46 -07:00
Edgar Wang
f508f3b87f [Expressive design] apply AlertDialog style
Bug: 394699422
Test: visual
Flag: EXEMPT resource update
Change-Id: I828f447aca780d943ebd2477b6a07b622a88e8eb
2025-03-19 18:02:33 +00:00
Treehugger Robot
e2984b4b06 Merge "Change the resource ID of advanced protection help URI" into main 2025-03-19 10:52:36 -07:00
Mark Renouf
f5aa74b0e8 Fixes 'capture more' on Settings home page
This change excludes the contents of 'main_content_scrollable_container'
from scroll capture search.

Explanation: The inner-most child is selected whenever nested scrolling
views are found. This is incorrect for Settings because the inner
RecyclerView isn't actually scrollable (that is, the contents of it are
not scrolled within it, the RecyclerView itself is scrolled by the outer
ScrollView instead). View.canScrollVertically is unfortunately incorrect
for RecyclerView in this case as well.

This change excludes all children of the main ScrollView from the
search. This  ensures the outer ScrollView is chosen and this corrects
the 'capture more' screenshot functionality on the Settings home page.

Bug: 399810823
Test: manual; Open settings, screenshot, capture more
Flag: com.android.settings.flags.extended_screenshots_exclude_nested_scrollables
Change-Id: I3363d70b3649e2a34e541c45ab387d59547b8588
2025-03-19 09:22:30 -07:00
Azhara Assanova
96c6ed59a6 Change the resource ID of advanced protection help URI
Change-Id I3c6d24e3e9a4358ab1adb342dbee8fc56ac16794 added advanced
protection help URI to frameworks/base/core/res/res/values/config.xml,
so this change removes the duplicate resource from Settings and updates
ActionDisabledByAdvancedProtectionDialog to use the framework resource.

Bug: 401233918
Test: manual
Test: atest ActionDisabledByAdvancedProtectionDialog
Flag: EXEMPT bug fix
Change-Id: Ic84909f4c16d3449bd9981be6659987b1963a26a
2025-03-19 16:02:17 +00:00
Azhara Assanova
76b96fbb15 Fix default window type for Advanced Protection dialog
The previous window type FIRST_APPLICATION_WINDOW was incorrect and
could have caused the dialog to be dimmed and TalkBack to not be
focused. The current window type TYPE_APPLICATION fixes these issues by
correctly placing the dialog in the window hierarchy.

Bug: 404595933
Bug: 404439964
Bug: 353531691
Test: visual
Test: checked with TalkBack
Flag: EXEMPT bug fix
Change-Id: I520220c1527868b6fc928eaa35184ba9b0159e06
2025-03-19 07:18:08 -07:00
Haijie Hong
a58a764686 Merge "Scroll to top when opening more settings page" into main 2025-03-19 06:16:02 -07:00
Haijie Hong
7eacf7e6e6 Merge "Update tint of device details icon" into main 2025-03-19 04:42:16 -07:00
Haijie Hong
9ecaf7c2ae Merge "Add toast for bond loss" into main 2025-03-19 04:41:35 -07:00
Zaiyue Xue
bf5ea140f4 Merge "Support phonetype control for Settings Battery database retention time" into main 2025-03-19 04:35:46 -07:00
Haijie Hong
ce73cba979 Scroll to top when opening more settings page
Test: local tested
Flag: EXEMPT minor fix
Bug: 343317785
Change-Id: I5e90e4b1b3bcd5329c6574655ad6a3dee537438c
2025-03-19 04:28:25 -07:00
Haijie Hong
9c67a1003f Merge "Don't disable switch when changing status" into main 2025-03-19 04:27:28 -07:00
Treehugger Robot
6c59681445 Merge "[Satellite] Use satellite data mode for UX visibility" into main 2025-03-19 04:26:21 -07:00
Treehugger Robot
4d4c026080 Merge "[Catalyst] Add flags for 25Q3 sound screens" into main 2025-03-19 04:08:50 -07:00
Shawn Lin
97eb57186c Reland:Launch multiple biometric enrollment when no biometric is enrolled
When a user clicks the biometric item in the Device unlock page and no
biometric is enrolled:
- Fingerint clicked: Launch fingerprint enroll then face enroll.
- Face clicked: Launch face enroll then fingerprint enroll.

Also fixed work profile not working issue:
- Use BiometricEnrollActivity.InternalActivity to provide correct userId
  for work profile.
- Use the canAuthenticate() function that take userId as input.

Bug: 370940762
Test: atest FaceSafetySourceTest FingerprintSafetySourceTest
Flag: com.android.settings.flags.biometrics_onboarding_education
Change-Id: I0800c5bb71cc3813e0336ed65898d099857175ef
2025-03-19 11:06:37 +00:00
Treehugger Robot
65a0e43a43 Merge "Fix force close in WiFi API test code" into main am: 4f52f40cf9 am: 8871bd5bb6
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3534241

Change-Id: I016283e58365cffe98b9746edb0a1a8b98d16533
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-19 04:04:54 -07:00
Treehugger Robot
7f42d27cac Merge "[Catalyst] Add flag for Auto-rotate screen" into main 2025-03-19 04:01:02 -07:00
songferngwang
62163de585 Using current esim port of active esim slot
If there is no active esim and the active esim slot, then enabling esim
uses the active esim slot's port.

Bug: 394758842
Test: manual test
Flag: EXEMPT bugfix

Change-Id: Icd478a92662584d433e16b129da98204e9e2f5f3
2025-03-19 10:42:42 +00:00
Treehugger Robot
8871bd5bb6 Merge "Fix force close in WiFi API test code" into main am: 4f52f40cf9
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3534241

Change-Id: I714fecd021705b20f821ebe558b30bcca51e2fb9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2025-03-19 03:30:07 -07:00
Jason Chiu
6060c76b88 Apply different text style to highlighted homepage titles
Bug: 396946176
Test: visual
Flag: com.android.settingslib.widget.theme.flags.is_expressive_design_enabled
Change-Id: Idf243d4f3f41070537338d9898e3ff91a7ee788a
2025-03-19 03:15:05 -07:00
Treehugger Robot
4f52f40cf9 Merge "Fix force close in WiFi API test code" into main 2025-03-19 03:04:14 -07:00
David Jacobo
076ed59b9b Merge "settings: Set explicit intent for legal info" into main 2025-03-19 02:55:53 -07:00
Zaiyue Xue
08a3aa7f33 Support phonetype control for Settings Battery database retention time
Bug: 404740486
Fix: 404740486
Test: atest
Flag: EXEMPT bug fix
Change-Id: Ifc9032e19a5b26e307d1426ea5c07de84e1613f4
2025-03-19 17:53:41 +08:00
Haijie Hong
1d2b0b9aa0 Don't disable switch when changing status
BUG: 404423669
Test: local tested
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: Ie2d48b4f0bbb224e62d2746d260b1026022ebf01
2025-03-19 02:47:42 -07:00
tom hsu
dc788ed9d1 [Satellite] Use satellite data mode for UX visibility
- Use SatelliteManager#getSatelliteDataSupportMode() to check data
   restricted or not.

Flag: EXEMPT bug fix
Bug: b/401043401
Test: atest pass
Test: Manual test
Change-Id: I6f3e25610717eca0f6e871a9e1158422659058ea
2025-03-19 09:45:52 +00:00
Yiyi Shen
049835b568 [Audiosharing] Avoid dup volume control entries
Test: atest
Bug: 402384034
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: I1c975a39106d50746c692586bf682301dd299f40
2025-03-19 17:45:33 +08:00
Sunny Shao
4bebfc4c59 [Catalyst] Add flag for Auto-rotate screen
Test: compile
Bug: 352179685
Flag: com.android.settings.flags.catalyst_auto_rotate
Change-Id: I2423d9a2a62a9796a147ae74e26955d0269621d5
2025-03-19 09:11:52 +00:00
Jason Chiu
590a364902 [Catalyst] Add flags for 25Q3 sound screens
Test: compile
Bug: 352179685
Flag: com.android.settings.flags.catalyst_sound_screen_25q3
Flag: com.android.settings.flags.catalyst_spatial_audio
Change-Id: I3295469a7c8d0eaf0eb5f73ba77931383b4b7cbb
2025-03-19 17:08:39 +08:00
Treehugger Robot
339367886d Merge "Settings: Start search result deep link in same task" into main 2025-03-19 01:02:31 -07:00
Yuanru Qian
0a4000d723 Merge "Update the audio sharing QR code logic to enable OEMs providing customized QR code image" into main 2025-03-19 00:24:22 -07:00
Haijie Hong
6c608b7e8a Merge "Show bond loss UI in device details" into main 2025-03-19 00:22:21 -07:00
Haijie Hong
2b0aee3a33 Merge "Update talkback when device is disconnected" into main 2025-03-19 00:22:10 -07:00
Treehugger Robot
08dec34389 Merge "[Satellite] Change footer format in satellite setting" into main 2025-03-19 00:18:02 -07:00
noshinmir
492e750c7c Use separate metric actions and tag id for wifi scorer and auto mobile network switch
Bug: 393645580
Flag: com.android.settings.flags.enable_nested_toggle_switches
Test: Build pass, presubmit

Change-Id: I65625603449b4a3b599ce6acf944c6467b0efcec
2025-03-18 23:28:10 -07:00
Haijie Hong
d6f7270748 Add toast for bond loss
Test: local tested, haven't find good way to add unit test for reflection.
Flag: EXEMPT minor fix
Bug: 380801155
Change-Id: Ia0d05ef933b0ae24077f31e4ff46c9948b99628a
2025-03-18 23:20:20 -07:00
tom hsu
9896b590d3 [Satellite] Change footer format in satellite setting
- Use controller base design instead of current

Flag: EXEMPT bug fix
Bug: b/401648126
Fix: b/402037025
Test: Manual test
Test: atest pass
Change-Id: Icb3fd6a1c5340e554593fc57cb238bf98d3ed0e3
2025-03-18 22:59:38 -07:00
Fan Wu
da96c12e9d Merge "[Catalyst] Add flag for Tether screen 25q3 release" into main 2025-03-18 22:54:27 -07:00
Haijie Hong
a4d68b6ac2 Update tint of device details icon
Test: local tested
Flag: EXEMPT minor fix
Bug: 343317785
Change-Id: I33bbc1aa5ea920fc9799ab489d59609aecf4365a
2025-03-18 22:07:52 -07:00
Sunny Shao
b6e34d2c9f Merge "[Catalyst] Add multiple flags for 25Q3" into main 2025-03-18 22:03:58 -07:00
Haijie Hong
ab32535297 Update talkback when device is disconnected
Test: local tested
Flag: EXEMPT minor fix
Bug: 404422637
Change-Id: If69b728d07f13d557ba2318af9eaf794311cc683
2025-03-19 12:45:45 +08:00
David Jacobo
617cc51bdb settings: Set explicit intent for legal info
This CL sets the full component for the Settings intent that opens
"Legal information->Third-party...".

Bug: 300111126
Test: make -j64 SettingsRoboTests
Test: create ika environment, manually open legal info.
Flag: EXEMPT bug fix

Change-Id: I3169620c0f2ff78a39b456597384a9738bc38a9f
2025-03-18 21:13:13 -07:00
Wes Okuhara
cf2bcd7f1a Settings: Start search result deep link in same task
This fixes a bug where the deep link initiated from a search result
would open the results page in a separate window. The root cause was the
inclusion of the FLAG_ACTIVITY_NEW_TASK intent flag.

Bug: 381127948
Test: atest SettingsSpaUnitTests:com.android.settings.activityembedding
Test: atest CtsSettingsTestCases:SettingsMultiPaneDeepLinkTest
Test: Manually verify UI
Flag: com.android.settings.flags.settings_search_result_deep_link_in_same_task
Change-Id: I91f9e5096ad02bd87e43bae03a2b3e69256be651
2025-03-18 21:12:08 -07:00
Fan Wu
12602faf71 [Catalyst] Add flag for Tether screen 25q3 release
Bug: 352179685
Test: NA
Flag: com.android.settings.flags.catalyst_tether_settings_25q3
Change-Id: Ia65214550e4ae40b59a545f6a3bacaa22bc844b0
2025-03-18 21:02:15 -07:00
Jason Hsu
1f8cd5ecc2 Merge "Update string id to use generic 'Done' button" into main 2025-03-18 20:28:22 -07:00
Daniel Huang
44a205b6a5 Merge "Improve dialog popup" into main 2025-03-18 19:47:22 -07:00
Android Build Coastguard Worker
93278a6b67 Snap for 13235988 from 4bc471f61e to 25Q2-release
Change-Id: Ifc3e397531aca70c7a40287ada0a08b0eb54bb60
2025-03-18 18:19:10 -07:00