Commit Graph

143729 Commits

Author SHA1 Message Date
Julia Reynolds
8c2312d8ab Update dependent logic in modes vis page
If the list isn't visible, we shouldn't allow HUNs to be

Test: ZenModeNotifVisFragmentTest, manual
Fixes: 367222597
Flag: EXEMPT bugfix
Change-Id: I1dc72061dfb99aed8b644c703214b17d62b0532e
2024-10-03 15:28:50 +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
josephpv
6a333a2ac3 Show custom unlock title for private profile
With this change whenever private space is unlocked and has its own lock
different from device lock, it shows a custom title for PS in the unlock
screen.

Custom title for private profile will be  shown in the auth screen while
authentiation of private lock for the below usecase inside PS settings.
- Auth shown while Delete private space from PS settings
- Switching to device screen lock from a separate private space lock
- Changing the private space lock type(Ex: from pattern to PIN)
- Adding a biometric(face/fingerprint) for private profile

When auth screen with custom title is put to background and the screen
is in the recents list and if private space is locked then the auth
scren with the title is removed from recents list along with the other
settings task.

Bug: 323835257
Test: Manual
Change-Id: Ia0cc0b9bb54a429ebe027dc0937320e7fd23cb81
Flag: android.multiuser.show_custom_unlock_title_inside_private_profile
2024-10-03 12:28:43 +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
Treehugger Robot
78153998c7 Merge "Distinguish different errors of wifi QR code" into main 2024-10-02 21:26:00 +00:00
Yufan Cao
73f66eb8f1 Distinguish different errors of wifi QR code
When failure occurs after scanning wifi QR code, only "Check connection
and try again" will show, which is confusing for user to understand the
errors and take next action.

Add more string resources to cover different errors.

Co-authored-by: Yufan Cao <Yufan.Cao@sony.com>

Flag: EXEMPT bugfix
Test: manual test
Bug: 362305039
Change-Id: I85145eb67eecdc3aa06bb7b8a7b3e7f0ffea1f62
2024-10-02 20:23:42 +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
Bill Yi
efbac14e06 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-10-02 05:37:39 +00:00
Treehugger Robot
2d9dc0521f Merge "Set content description for the "settings" of starred contacts, priority conversations, etc" into main 2024-10-02 00:51:31 +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
Bill Yi
42e47a9b2d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ied5f156eed264d70de34b72bdfe4f357effe419d
2024-10-01 10:11:40 -07:00
Matías Hernández
58a110bc48 Set content description for the "settings" of starred contacts, priority conversations, etc
Fixes: 368124250
Test: manual, with Talkback
Flag: android.app.modes_ui
Change-Id: Ib4e8bdd5ea0931db2049925f82696d3a55f35bcb
2024-10-01 18:51:19 +02:00
Allen Su
bdd8c89ed2 Merge "Revert "[ToA] Remove ToA languages"" into main 2024-10-01 09:36:11 +00:00
Allen Su
a18eea0283 Revert "[ToA] Remove ToA languages"
This reverts commit 1da7265d68.

Reason for revert: keep using these languages for dogfood after 24Q4 cutoff

Change-Id: Ic0a3c8f382f073e8200b20631aee134ea7c76d87
2024-10-01 08:26:46 +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
Treehugger Robot
2be56f27f3 Merge "Make the name EditText at least 48dp high in the Mode rename page" into main 2024-09-30 17:39:10 +00:00
Treehugger Robot
69e512afbf Merge "Fix a11y readout of the day toggles in Time Schedule of Modes" into main 2024-09-30 17:24:12 +00:00
Bill Yi
88b9c94ba6 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-09-30 17:20:18 +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
Matías Hernández
71671897d7 Make the name EditText at least 48dp high in the Mode rename page
Touch targets should be at a minimum 48x48 dp; this view was 47 dp high. ¯\_(ツ)_/¯

Fixes: 369963437
Test: manual
Flag: android.app.modes_ui
Change-Id: I8fda0cd505f02abb561e24e583b3ab509b5ef4dd
2024-09-30 18:04:46 +02:00
Matías Hernández
78367de795 Fix a11y readout of the day toggles in Time Schedule of Modes
Content description (full day name) replaces TextOn/TextOff (day name initial), and the state description no longer has the day name. As a result:
* the initial readout changes from "Monday, off, M, Switch" to "Off, Monday, Switch"
* when toggling, the name of the day is no longer repeated, and just "On/Off" is announced.

Fixes: 370360007
Test: manual, with Talkback
Flag: android.app.modes_ui
Change-Id: I57bbd7034e1af2836582720a7f4871a79d6644ab
2024-09-30 17:47:36 +02: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
Haijie Hong
79f17d1188 make device setting be able to use both Intent and PendingIntent
BUG: 343317785
Test: local tested
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: I0c370d64bda1479778b55dc97e136ff73223f5d3
2024-09-29 20:06:49 +08:00
Haijie Hong
451dc11ed9 Merge "Add audio category preference in more settings fragment" into main 2024-09-29 12:06:44 +00: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
Haijie Hong
78cce9cd50 Add audio category preference in more settings fragment
BUG: 343317785
Test: local tested
Flag: com.android.settings.flags.enable_bluetooth_device_details_polish
Change-Id: I427a85159881205805933023020db2db73d729b6
2024-09-29 13:44:33 +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
SongFerng Wang
4e05cd99a9 Merge "Hide the enabling mobile data" into main 2024-09-28 00:55:48 +00:00
Tomasz Wasilczyk
c25a0b8f9d Merge "Add support for ApnSetting.TYPE_OEM_PAID and OEM_PRIVATE" into main 2024-09-27 21:35:52 +00:00
Bill Yi
20f6c7a6ca Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-09-27 19:22:45 +00:00
Treehugger Robot
43f09d11a4 Merge "Replace "DND Access" by "Modes Access" in Settings search results" into main 2024-09-27 18:24:37 +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
Matías Hernández
2d65e7fbfa Replace "DND Access" by "Modes Access" in Settings search results
Although we dynamically replace this string by "Modes access" everywhere in runtime, it seems the search index is based on the XML content.

Test: manual
Fixes: 370036858
Flag: EXEMPT Unflaggable
Change-Id: I48d8a1cb980b58f33041a7fe2a5e6bc3d50d1539
2024-09-27 18:50:04 +02:00
Treehugger Robot
bbbd79e0ed Merge "Improve the contrast for the "schedule duration" text" into main 2024-09-27 16:46:31 +00:00
Matías Hernández
8ce211965a Improve the contrast for the "schedule duration" text
Fixes: 369958722
Test: manual
Flag: android.app.modes_ui
Change-Id: I3ea87790c4884d4201fe27644b1e47389932d89f
2024-09-27 17:03:54 +02:00
Treehugger Robot
c769fc586c Merge "Add a check to ensure that intent data is available before proceeding." into main am: 9a0ba22e79 am: 2c3fbda054
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3278732

Change-Id: If1ee7c3dce581d8276d19ba61564a077d10ecf7c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-27 10:23:47 +00:00
Treehugger Robot
2c3fbda054 Merge "Add a check to ensure that intent data is available before proceeding." into main am: 9a0ba22e79
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3278732

Change-Id: I9964a5759041f686bfe905e10e013ff663c666b3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-27 10:13:07 +00:00
Treehugger Robot
9a0ba22e79 Merge "Add a check to ensure that intent data is available before proceeding." into main 2024-09-27 09:54:21 +00:00
songferngwang
ed5e803c87 Hide the enabling mobile data
Since the framework behavior was changed after the enabling mobile data dialog was implemented.
Bug: 368450590
Test: manully test the dialog.

Change-Id: I08e0e1b9643781e52f6a9d4fa2c0eccf0feb7901
2024-09-27 08:47:52 +00: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
Bill Yi
25db7a82f3 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib40695438c333d727d69b10b2bbbf1cf4c66ff23
2024-09-26 15:21:29 -07:00