Commit Graph

23172 Commits

Author SHA1 Message Date
Shaowei Shen
4e1d24c5eb Merge "[Language Setting] Cleanup Language and Input Setting" into main 2024-10-08 06:33:28 +00:00
Yiyi Shen
b77c619ebe [Audiosharing] Fix call audio device in call
During call, BT stack will keep the broadcast in a hysteresis mode,
however BT stack will remove the fallback group id, which leads the Call
audio summary empty. Here we check if there is active device on LE_AUDIO
profile when the fallback group id is removed. The active device on
LE_AUDIO profile should be the call audio device.

Test: atest
Bug: 355222285
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: I906f30631027439ed4060af758ef63eda1a0b12d
2024-10-08 14:20:28 +08:00
Treehugger Robot
a7204d7c08 Merge "Migrate DisplayScreen" into main 2024-10-08 04:27:22 +00:00
shaoweishen
f0a01c51dd [Physical Keyboard][A11y Page] Add Bounce keys dialog
1.Add dialog for adjust bounce key to different values.
demo video: b/346949547#comment24.
2.Update summary text.
3.When receive update from content uri, update toggle state directly.
4.Rename Controller to more suitable name.

Bug: 346949547
Test: atest SettingsRoboTests
Flag: com.android.settings.keyboard.keyboard_and_touchpad_a11y_new_page_enabled
Change-Id: I94d8d1a77528b13f59b2d67dfa30e17dd177e385
2024-10-08 03:13:40 +00:00
Sunny Shao
b31c54b6f4 Migrate DisplayScreen
Add the skeleton of the DisplayScreen

Test: atest DisplayScreenTest
Bug: 368359268
Flag: com.android.settings.flags.catalyst_display_settings_screen
Change-Id: I806504ae839ba0a53320fd94fb4fe21a52dc249b
2024-10-08 11:12:41 +08:00
Dongzhuo Zhang
fa433271a8 Add Contacts Stroage fragment class for Contacts Storage settings page.
Test: atest SettingsRoboTests:com.android.settings.applications.contacts.ContactsStorageSettingsTest

Bug: 368641291
Flag: com.android.settings.flags.enable_contacts_default_account_in_settings

Change-Id: I6ece3eeea64d07d4a97574f67549a72267371df8
2024-10-07 22:02:13 +00:00
Treehugger Robot
efd16c7df9 Merge "Fixes for errorprone update" into main am: 28f83ffab0 am: 3c2d44c3ff
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3297590

Change-Id: I7811516823e50a4422932a491ee3229b094bc160
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-10-07 20:51:46 +00:00
Treehugger Robot
c7be2f126e Merge "Better Support for profiles in "People that can interrupt"" into main 2024-10-07 20:11:09 +00:00
Cole Faust
b237fe7e6a Fixes for errorprone update
When updating errorprone from 2.23.0 -> 2.32.0, more issues are found.

Bug: 253827323
Flag: EXEMPT refactor
Test: m RUN_ERROR_PRONE=true javac-check
Change-Id: Iebb442f5e616861d1f2a2e2dc56a8ac72b18cb95
2024-10-07 11:27:07 -07:00
Treehugger Robot
7aabe039f4 Merge "Don't disable "Done" button when it cannot be pressed" into main 2024-10-07 17:27:33 +00:00
Matías Hernández
25d75c0df7 Merge "Don't crash when recreating ZenModeTimePickerFragment" into main 2024-10-07 16:49:20 +00:00
Matías Hernández
73c7ee115b Don't disable "Done" button when it cannot be pressed
Show an error on tap instead. According to a11y guidelines this is preferrable.

Fixes: 369942776
Test: atest ZenModeEditDonePreferenceControllerTest
Flag: android.app.modes_ui
Change-Id: Ib5e47a4151c1515e5085a776d538a27c2ef41574
2024-10-07 15:56:21 +00:00
Matías Hernández
504e927168 Better Support for profiles in "People that can interrupt"
* Show contacts from personal and work profile.
* Open personal or work profile Contacts app when choosing settings.
* Skip conversations with no ShortcutInfo (they are returned for a disabled work profile but we cannot show an icon for them).

Fixes: 371513451
Test: atest com.android.settings.notification.modes
Flag: android.app.modes_ui
Change-Id: Id8653a85ee4fd15dfccbecb3ea2d31e615d29f8c
2024-10-07 17:37:37 +02:00
Treehugger Robot
3ef49b9d5f Merge "[CDM][NLS] Check if the NLS service has an intent-filter" into main 2024-10-04 18:24:30 +00:00
Chun-Ku Lin
b3ebc1968d Merge "[Physical Keyboard][Setting] New pk a11y entry under a11y page" into main 2024-10-04 17:40:21 +00:00
Matías Hernández
e5720f43ee Don't crash when recreating ZenModeTimePickerFragment
Instead, just bail out.

Fixes: 369814629
Test: manual, with don't keep activities
Flag: android.app.modes_ui
Change-Id: I893b6363801b3a56bc29999dd801d7c8152cb5e8
2024-10-04 18:58:53 +02:00
Guojing Yuan
7ae59a42eb [CDM][NLS] Check if the NLS service has an intent-filter
Bug: 363248394
Test: CTS
Flag: EXEMPT bugfix
Change-Id: Ib79c219cde8d73a218ceb7911f4552d43e384d8e
2024-10-04 16:52:24 +00:00
Diya Bera
cb6b37e6d6 Merge "Avoid using MANDATORY_BIOMETRICS bit if flag is not enabled" into main 2024-10-04 15:39:48 +00:00
Diya Bera
aa322bc4f7 Avoid using MANDATORY_BIOMETRICS bit if flag is not enabled
Flag: android.hardware.biometrics.flags.mandatory_biometrics
Bug: 370757426
Test: N/A
Change-Id: I4e2a72a80f68579d60466e859370b6fd93a8cd23
2024-10-04 14:10:24 +00:00
shaoweishen
f0b6123acc [Physical Keyboard][Setting] New pk a11y entry under a11y page
Add entry for physical keyboard a11y page under a11y setting

Bug: 345399212
Test: atest SettingsRoboTests
Flag: com.android.settings.keyboard.keyboard_and_touchpad_a11y_new_page_enabled
Change-Id: I0c59c3a9df1b5df5e22349ab3907f767682d6fb9
2024-10-04 09:06:10 +00:00
SongFerng Wang
7c6b213c73 Merge "VideoCalling UI adds the init value" into main 2024-10-04 04:55:46 +00:00
Matías Hernández
154a91fc7e Merge "Use TextInputLayout for the name field in the create/rename mode page" into main 2024-10-03 20:45:04 +00:00
Treehugger Robot
6471850a00 Merge "Remove obsolete zen-related entries from CustomSiteMapRegistry" into main 2024-10-03 18:57:00 +00:00
Matías Hernández
c238b3b1cf Remove obsolete zen-related entries from CustomSiteMapRegistry
These pages no longer exist with MODES_UI.

Bug: 346789065
Test: atest CustomSiteMapRegistryTest
Flag: android.app.modes_ui
Change-Id: I254b4eb15a71bf7a6765c1ea7d0cb31c59fe2f0c
2024-10-03 19:46:21 +02:00
Matías Hernández
b234ca21ab Merge "Delete Settings code related to super-obsolete zen onboarding" into main 2024-10-03 17:01:36 +00:00
Tetiana Meronyk
5583281ba4 Merge "Update search index in UserSettings based on allowed user types" into main 2024-10-03 15:27:52 +00:00
songferngwang
8e6bc6f289 VideoCalling UI adds the init value
Bug: 367696228
Test: atest VideoCallingPreferenceControllerTest
Flag: EXEMPT bugfix
Change-Id: I1a1de9e3174a9211be619c96c104607f831b51a2
2024-10-03 14:29:05 +00:00
Matías Hernández
b1e28233c1 Use TextInputLayout for the name field in the create/rename mode page
In addition to looking nicer, this fixes two accessibility issues ("no hint when text is entered" and "reason for disabled button is unclear").

This requires a bit of theme merging black magic, because TextInputLayout requires a Theme.AppCompat descendant, which the Settings theme isn't.

Fixes: 356398157
Fixes: 370654542
Fixes: 369942776
Test: atest ZenModeEditNamePreferenceControllerTest
Flag: android.app.modes_ui
Change-Id: I92d8ec044dabc6daed5d755e206120ec7abc143e
2024-10-03 14:14:34 +02:00
Tetiana Meronyk
1da65db12f Update search index in UserSettings based on allowed user types
If USER_TYPE_FULL_RESTRICTED is disallowed, addUserPreference is renamed to only mention user. But search results still state default name "Add user or profile". This change updates this entry in the search index.

Bug: 365899560
Test: atest UserSettingsTest#testGetRawDataToIndex_returnAllIndexablePreferences && atest UserSettingsTest#testGetRawDataToIndex_addRestrictedProfileAllowed_addUserTitleIsCorrect && atest UserSettingsTest#testGetRawDataToIndex_addRestrictedProfileDisallowed_addUserTitleIsCorrect
Flag: EXEMPT bugfix_only
Change-Id: I3c26180225491e4916141a3fca9d2e7ab36e8cfc
2024-10-03 12:02:44 +00:00
SongFerng Wang
aad13d8836 Merge "Encounter unknown error in test" into main 2024-10-03 11:54:30 +00:00
SongFerng Wang
dd7e4d27ae Encounter unknown error in test
When atest on aosp_cf_x86_64_only_phone-trunk_staging-userdebug,
it said the "java.lang.NoSuchMethodError: No static method getCurrentCarrierNameForDisplay(Landroid/content/Context;)Ljava/lang/CharSequence; in class Lcom/android/settings/network/telephony/MobileNetworkUtils;"

Bug: 370884447
Bug: 370425683
Change-Id: I76bfc4c1cabaf569d74309e9e9ad6612f5649d9b
Test: atest MobileNetworkUtilsTest
Flag: EXEMPT bugfix
2024-10-03 07:05:13 +00:00
Edgar Wang
fd84f1203e Merge "Update the layout of AppDataUsagePreference" into main 2024-10-03 01:16:12 +00:00
Tom Hsu
1955144ffc Avoid test flaky
Change-Id: Id1290e6979fdafa93ded6f50e49d6b3464a80b50
flag: EXEMPT bugfix
fix: 365673174
Test: atest
2024-10-02 07:47:20 +00:00
Alina Zaidi
cc3eac9b7c [dev_option] Move DestopModeFlags out of android.windows.flags
This is to maintain separation of non-generated files from generated flag values.

Test: Current tests pass
Flag: EXEMPT refactoring
Bug: 370777204
Change-Id: I6588ebec59519b4e0d6c83057b8106c20a3df8fa
2024-10-01 18:29:14 +00:00
Treehugger Robot
91c78e7223 Merge "Don't register DndConditionCardController anymore" into main 2024-10-01 03:11:05 +00:00
Riley Jones
b2b9bc2371 Merge "Refactoring A11y shortcut functions in Settings to use GESTURE" into main 2024-09-30 19:38:10 +00:00
Edgar Wang
4dc5a005c8 Update the layout of AppDataUsagePreference
The layout of AppDataUsagePreference including a progressbar, that's not common pattern in SettingsLib.

Bug: 365506467
Bug: 370456736
Change-Id: I28d25724067d85f8d37c3b5273d38055ba7021a6
Test: atest
Flag: EXEMPT bugfix
2024-09-30 16:42:33 +00:00
Jacky Wang
2a10845913 Merge "Add test case for Firmware version and Legal screens" into main 2024-09-30 09:46:16 +00:00
Jacky Wang
2ce3671e3e Add test case for Firmware version and Legal screens
NO_IFTTT=For test only

Bug: 370394101
Flag: EXEMPT Add tests
Test: UT
Change-Id: I1d105e1a54fe0ff6da9d64c54c3c825c87a83b14
2024-09-30 15:41:29 +08:00
Treehugger Robot
77a8da1f8d Merge "Create only one media session per audio stream media service." into main 2024-09-29 12:03:17 +00:00
chelseahao
80e1b69aa7 Create only one media session per audio stream media service.
This might cause callback not being cleaned up properly even if the service is destroyed.

Test: atest
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Bug: 362140159 369452993
Change-Id: I389735162c1f9e41cea25f63f881c20be4effb60
2024-09-29 18:57:01 +08:00
Riley Jones
3d4b0c5440 Refactoring A11y shortcut functions in Settings to use GESTURE
Properly integrating GESTURE into Settings, so that text pertaining to the gesture shortcut are displayed when appropriate.
Heavy refactoring has been done to allow for easier cleanup and expansion

Demo video: https://x20web.corp.google.com/users/jo/jonesriley/splitShortcut/a11ySettingsGestureCompat.mp4

NO_IFTTT=changes do not alter the order of the shortcuts.

Bug: 365570709
Test: atest com.android.settings.accessibility
Flag: android.provider.a11y_standalone_gesture_enabled
Change-Id: If90719763a48e3b8bc35988a1de9a352a766953b
2024-09-28 02:50:09 +00:00
Matías Hernández
97cbb8cba1 Don't register DndConditionCardController anymore
This card links to the deprecated Zen pages that become unavailable with MODES_UI.

Bug: 346789065
Test: atest ConditionManagerTest
Flag: android.app.modes_ui
Change-Id: Ifd097eb7100fa71a871b23ad4a44e3418d05fe61
2024-09-27 19:53:44 +02:00
Quang Luong
5f1b6be477 Merge "Do not auto-downgrade WPA3->Transition mode if password too short" into main 2024-09-27 07:52:45 +00:00
Yining Liu
ccaa62ec8a Merge changes from topic "notif_minimalism_settings" into main
* changes:
  Notification Minimalism Settings Main Switch
  Show the Tangor Unseen Notification Toggle when notification_minimalism is Enabled
2024-09-27 05:38:22 +00:00
Yining Liu
41cd514fb3 Notification Minimalism Settings Main Switch
Add a main preference switch for the lockscreen
notification minimalism feature

Bug: 330387368
Bug: 354047572
Flag: com.android.server.notification.notification_minimalism
Test: atest
LockscreenNotificationMinimalismPreferenceControllerTest

Change-Id: I9aa4c51f9e316dd0dd1529d712b5e9486e43453b
2024-09-26 20:58:18 +00:00
Yining Liu
8b6431878a Show the Tangor Unseen Notification Toggle when notification_minimalism is Enabled
Show the Tangor unseen notification toggle in the Notification settings when
notification_minimalism flag is enabled on both phones and large screen devices.

Bug: 330387368
Bug: 354047572
Flag: com.android.server.notification.notification_minimalism
Test: atest ShowOnlyUnseenNotificationsOnLockscreenPreferenceControllerTest
Change-Id: Ic126b7885eb29897b55c4acdc1a2f73b4bc7841e
2024-09-26 20:50:23 +00:00
Joshua Mccloskey
b5aa5265ee Merge "Spit up FingerprintManagerInteractor 2/N" into main 2024-09-26 18:29:36 +00:00
Matías Hernández
a2e71cc7cb Delete Settings code related to super-obsolete zen onboarding
A notification was shown when upgrading from pre-P to P because default DND settings had changed. The default was later changed back so it was already obsolete at that point. Moreover, it should be impossible to upgrade from pre-P to V in one step.

Bug: 346789065
Test: N/A
Flag: EXEMPT Unflaggable -- removing resources, manifest entries, etc.
Change-Id: I2862211dc9709b741e60beca5fc029cc054745a3
2024-09-26 14:30:23 +02:00
Chaohui Wang
bb1cadb916 Use hasScrollAction in ApnEditPageProviderTest
Instead of assuming a fixed tree structure in testing.

Fix: 369416630
Flag: EXEMPT gradle only
Test: atest ApnEditPageProviderTest
(cherry picked from https://googleplex-android-review.googlesource.com/q/commit:0b530fd405eb95dfedf51bc55bc24bd7d446ead8)
Merged-In: I0a50e7665d9049e089b5a0877f17d1f736ee3332
Change-Id: I0a50e7665d9049e089b5a0877f17d1f736ee3332
2024-09-26 10:20:38 +00:00