Commit Graph

144161 Commits

Author SHA1 Message Date
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
Bill Yi
5a1cf30ba1 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ibd7b893431f9b2c36e9caad767b161438d931b7c
2024-09-26 15:19:24 -07: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
Jason Chang
8433575eab Merge "Fix Fingerprint setup complete - illustration is just slightly cut off" into main 2024-09-26 16:55:32 +00:00
Treehugger Robot
226e60f3a2 Merge "Add a header before the icon list in the new/rename mode screen" into main 2024-09-26 15:07:43 +00:00
Matías Hernández
f620f85484 Add a header before the icon list in the new/rename mode screen
Also fixed paddings a bit (e.g. Done button was too close to the icon grid).

Fixes: 369503296
Test: manual
Flag: android.app.modes_ui
Change-Id: Ic7b7dc9584db1f04b448fce828a8ec70cf17f06a
2024-09-26 15:25:01 +02: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
Treehugger Robot
e6d08e9ff2 [automerger skipped] Merge "Use hasScrollAction in ApnEditPageProviderTest" into main am: 12f2e1cf4f am: 5c3c9cbdeb -s ours
am skip reason: Merged-In I0a50e7665d9049e089b5a0877f17d1f736ee3332 with SHA-1 0b530fd405 is already in history

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

Change-Id: I7e2cf0f973b009c525ac6c1d1cd4e534c8e00362
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-26 11:13:47 +00:00
Treehugger Robot
0634f99251 Merge "Protect the Settings application from potential null pointer exceptions." into main am: 6a4fb45e38 am: 840f5a573d
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3282054

Change-Id: Ic3001502499250f66af57c0e49ae8ba2a80515f6
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-26 11:13:30 +00:00
Treehugger Robot
5c3c9cbdeb Merge "Use hasScrollAction in ApnEditPageProviderTest" into main am: 12f2e1cf4f
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3283218

Change-Id: I1d66aa2b883c0b8d6375b99b23fda25535820c01
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-26 11:13:22 +00:00
Treehugger Robot
12f2e1cf4f Merge "Use hasScrollAction in ApnEditPageProviderTest" into main 2024-09-26 10:54:50 +00:00
Treehugger Robot
840f5a573d Merge "Protect the Settings application from potential null pointer exceptions." into main am: 6a4fb45e38
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3282054

Change-Id: I1c6daaf44b7be4aeaa65fce50711d7e75f511e6c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-09-26 10:47:30 +00:00
Treehugger Robot
6a4fb45e38 Merge "Protect the Settings application from potential null pointer exceptions." into main 2024-09-26 10:30:43 +00: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
Chaohui Wang
a207879aea Merge "Fix Can't Able to Click Sims" into main 2024-09-26 10:15:30 +00:00
Quang Anh Luong
5aa95553cd Do not auto-downgrade WPA3->Transition mode if password too short
Hotspot security is auto-downgraded from WPA3->Transition mode if the
band is changed from 6Ghz -> 2.4/5GHz. However, Transition mode requires
a password of 8 chars or more, but WPA3 SAE does not. Avoid changing the
security type if the current password is less than 8 chars.

Flag: EXEMPT minor bugfix

Bug: 366452667
Test: atest WifiHotspotRepositoryTest
Change-Id: I1abadd59966e170b51899782746b9f14e33e6186
2024-09-26 07:09:47 +00:00
Jacky Wang
8491ffa3cf Merge "Include settings flags into flags_packages" into main 2024-09-26 07:06:20 +00:00
Chaohui Wang
9969334647 Fix Can't Able to Click Sims
The root cause is SubscriptionManager.OnSubscriptionsChangedListener
.onSubscriptionsChanged() not invoked in some cases.

Even the SubscriptionManager.addOnSubscriptionsChangedListener's doc
says the onSubscriptionsChanged() method will also be invoked once
initially when calling it, there still case that the
onSubscriptionsChanged() method is not invoked initially.
For example, when the onSubscriptionsChanged event never happens before,
on a device never ever has any subscriptions.

Adding a .onStart { emit(Unit) } to fix.

Also make the subscriptionsChangedFlow() a shared flow to mitigate the
extra emit cost.

Bug: 369276595
Flag: EXEMPT bug fix
Test: manual - factory reset & no any sim
Test: atest SubscriptionRepositoryTest
Change-Id: Ic32a5666f14373926b5dfedb5dedadb4369acfc7
2024-09-26 13:29:47 +08:00
Jacky Wang
125bbc0ccc Include settings flags into flags_packages
Required for resource & manifest flags.

Bug: 332202168
Flag: EXEMPT Modify Android.bp
Test: Set android:featureFlag to manifest Service locally
Change-Id: Iaf02e494b1a23b92616a5ff5e8fb84e93b4a340e
2024-09-26 11:25:43 +08:00
Tomasz Wasilczyk
322f3cf496 Add support for ApnSetting.TYPE_OEM_PAID and OEM_PRIVATE
Bug: 366194627
Test: m
Test: manually add oem_paid APN to telephony.db and verify if shows up
      in APN editor
Flag: com.android.internal.telephony.flags.oem_paid_private
Change-Id: Ida8f6f5712f49caa3172119c547b7ee17e41c12e
2024-09-25 20:05:22 -07:00
Yiyi Shen
d2e97b455e Merge "[Audiosharing] Show dialogs when lifecycle isAtLeast STARTED" into main 2024-09-26 02:49:43 +00:00