Commit Graph

140998 Commits

Author SHA1 Message Date
mxyyiyi
320c4c6f55 Dump app optimization mode expiration event data in bug report.
Bug: 338965652
Test: atest + manual
Change-Id: Id506fce6c3bc1271be2677216fc4b1cfe6ada6d0
2024-06-03 19:26:51 +08:00
chelseahao
5ce2589dba [Audiosharing] Clean up some tests - properly reset shadows and removed unused spy.
Test: atest -c com.android.settings.connecteddevice.audiosharing.audiostreams
Bug: 308368124
Change-Id: If47a00ec02fbd78146483d5a409d9bcc42b5e841
2024-06-03 15:53:58 +08:00
shaoweishen
0dc2d69d85 [Physical Keyboard Setting] Update navigation path
When launch setting page for specific keyboard, it will route to PK
setting first, add flag NO_HISTORY to make PK setting not been added in
stack.
So that when user navigate back, it will not back to PK setting,
which will be more consistent.

Update navigation path from:
Device Detail -> Physical Keyboard Setting -> Keyboard Detail Setting
to
Device Detail -> Keyboard Detail Setting

Bug: 330130137
Flag: N/A
Test: verify on device
Change-Id: I8d6d6a8a534dec5cd7330c4d47b38a46be76fc4d
2024-06-03 03:54:53 +00:00
Sunny Shao
9614dec518 Modify the incorrect wording
Fixes: 340991772
Test: manual test
Change-Id: I4b74a3f813542c59f751318a4142d8b9a0fa9192
2024-06-03 09:31:47 +08:00
Daniel Norman
c3b2165dfe Update A11ySettings to load preferences in onCreate().
This version still only loads preferences once, but the previous attempt
commit 774bbc1ff2
created a "sliding" effect as the preferences were loaded after the page
became visible to the user.

Also reorders methods so that their position in the source file matches
the Activity lifecycle ordering.

Bug: 327052480
Test: existing A11y Settings robotest presubmit
Test: Launch this page from the Settings app, observe no sliding UI
Flag: NONE low risk visual bug fix
Change-Id: I44312ada359aef7dec8eb27c57cde2a8e00f254b
2024-06-01 22:24:18 +00:00
Chun-Ku Lin
38236869ee Merge "Update a11y shortcut images" into main 2024-05-31 17:53:12 +00:00
Joseph Vincent
7411c8df49 Merge "Update title in Face and Fingerprint settings for private space" into main 2024-05-31 17:42:07 +00:00
Chun-Ku Lin
a28e808918 Merge "Replace Magnification preview" into main 2024-05-31 17:32:00 +00:00
Treehugger Robot
f2c66a8a83 Merge "Hide VPNs from users that are hidden" into main 2024-05-31 17:16:44 +00:00
Haijie Hong
3957d28a09 Fix battery talkback for advanced bt header
Test: tested in phone
Bug: 323790433
Change-Id: I52ed8694af240ae7923d7758144e6db3c590571d
2024-05-31 19:12:47 +08:00
Zoey Chen
81a70e0e20 [Settings] Do not use deprecated API, onBackPressed
Bug: 318313238
Test: manual
Change-Id: I616ea3cf4b2b89905d85380305df4853d4d5d626
2024-05-31 08:26:29 +00:00
Yiyi Shen
b38092cb6c Merge "[Audiosharing] Add audio sharing loggings (P1)" into main 2024-05-31 05:40:03 +00:00
josephpv
8f30977859 Update title in Face and Fingerprint settings for private space
Screenshots:
b/335748976#comment9

Bug: 335748976
Test: Manual
Change-Id: I3d99488f33177d4ac4aa2e4bb3c420604460ac72
2024-05-31 01:54:32 +00:00
Matías Hernández
8f93b4d789 Merge "Add default icons for all mode types" into main 2024-05-30 21:10:16 +00:00
Lifu Tang
2e8726442e Merge "Change the relative time format to LONG" into main 2024-05-30 17:56:49 +00:00
Matías Hernández
fcb8acc277 Add default icons for all mode types
Also a couple of icon-related fixes:
* Use the proper context, since we need theming (this also means it cannot be stored in IconLoader, which is a singleton, and must be supplied).
* Force apply the standard size and tint, since app-provided icons may be arbitrary.
* Fix the schedule-time icon (the viewport size was incorrect).

Bug: 308819461
Fixes: 333528437
Flag: android.app.modes_ui
Test: atest com.android.settings.notification.modes
Change-Id: Iae447c8c4a0218a8bc989c01d1d56d0c06abd8e7
2024-05-30 18:11:25 +02:00
Manish Singh
8867f686d8 Hide VPNs from users that are hidden
Bug: 342562186
Test: manual
Change-Id: I288ac0a0eef48d4a94191de2292d02a0f93310aa
2024-05-30 15:25:35 +00:00
Yuri Lin
cfaedb0199 Merge "Add page for choosing calendar & reply for event modes." into main 2024-05-30 14:59:00 +00:00
Julia Reynolds
3f208db1dd Merge "Update check boxes to switches" into main 2024-05-30 13:08:45 +00:00
Treehugger Robot
5b754d0428 Merge "Avoid flaky test fail due to no Subscription service." into main 2024-05-30 13:02:58 +00:00
tomhsu
27d2115eaf Avoid flaky test fail due to no Subscription service.
Fix: 340875634
Test: atest passed
Change-Id: Id922ace830f25dd730cad2d8aa19177988b6670d
2024-05-30 11:14:25 +00:00
SongFerng Wang
ded1c459b0 Merge "To hide the mobile data when there is no active sim" into main 2024-05-30 10:59:32 +00:00
songferngwang
b48ec2f772 To hide the mobile data when there is no active sim
Bug: 343633243
Test: verified the UI
Change-Id: I77055a9c1cdb7e94c0339f4255b4799b7b6e02ac
2024-05-30 09:24:25 +00:00
Ganesh Vilas Chaudhari
b300cae17d Show cdma network mode choices
- Show cdma network mode choices if current radio supports 3GPP and
  3GPP2 radio technologies at the same time

Change-Id: I2d849e2eddc2c5bef289f39c015ebc6c744edcab
2024-05-30 14:32:02 +05:30
Chaohui Wang
1bfea5d472 Check if ECBMode when deactivate SIM card
If in ECBMode, start ACTION_SHOW_NOTICE_ECM_BLOCK_OTHERS to show a
dialog instead.

This align with the current airplane mode switch.

Fix: 191943857
Test: adb shell cmd phone emergency-callback-mode
Test: unit test
Change-Id: Icf646cd76990d621121b4367ec0fd02a3880b85c
2024-05-30 16:37:51 +08:00
Chaohui Wang
ffa3d11e26 Merge "Disable "Reset app preference" during call" into main 2024-05-30 07:25:05 +00:00
Yiyi Shen
24589b1668 Merge "[Audiosharing] Add flag to start broadcast with no lea headset connected" into main 2024-05-30 07:00:20 +00:00
Chaohui Wang
942622575a Disable "Reset app preference" during call
Reset app preference will dismiss all the notification, disable
"Reset app preference" during call so in call notification not get
dismissed.

Fix: 342627537
Test: manual - try "Reset app preference" during call
Change-Id: Ida9961ca30dc80c05d4de5bc9faac3203967f3d3
2024-05-30 05:44:14 +00:00
Chaohui Wang
5920567bee Remove unused "androidx.test.rules" from production
Bug: 316941721
Test: m Settings
Change-Id: I995efda7e4b9dbcb7a3dafcda6da0346153fa60e
2024-05-30 12:26:30 +08:00
Ram Peri
cffe3114c0 Merge "Disable ChooseLockTypeDialogFragmentTest for robolectric" into main 2024-05-30 03:54:11 +00:00
Yiyi Shen
d1ea3b4d96 [Audiosharing] Add audio sharing loggings (P1)
Bug: 331515891
Test: atest
Change-Id: I7396f99538f36b47086e0c4f45ef775535f2f321
2024-05-30 11:11:48 +08:00
Treehugger Robot
7a0d5b98e8 Merge "Split ChangeReason and decouple it from Observer" into main 2024-05-30 02:33:11 +00:00
Joseph Vincent
42508ae03d Merge "Add footer in private space auto lock settings page" into main 2024-05-30 01:40:03 +00:00
Ram Peri
985b27c6a1 Disable ChooseLockTypeDialogFragmentTest for robolectric
Flag: NA
Bug: 342667939
Test: atest SettingsRoboTests
Change-Id: I13807fd0feb399ab000350152e1de7d67b4e96da
2024-05-29 16:07:27 -07:00
Lifu Tang
c233ecca5c Change the relative time format to LONG
The `SHORT` format, which abbreviates relative time as 'x min.
ago,' presents an accessibility issue for screen readers like
TalkBack. TalkBack announces this as 'x minimum. Ago', and the
dot after "min" is treated as period and causes a full-stop.

Attempts to directly modify TalkBack's pronunciation of this
text have proven difficult. Given the ample space available in
the user interface, using abbreviations isn't necessary.
Switching to the `LONG` format ('x minutes ago') would resolve
this accessibility problem while also making the interface
clearer for all users.

Bug: 318323722
Change-Id: I42ba960bd8d5d8fc8a9cb895ecf24c56dab6d2c4
2024-05-29 20:52:18 +00:00
Xin Li
a233ff2126 [automerger skipped] Merge Android 24Q2 Release (ab/11526283) to aosp-main-future am: f0e00b8bf7 -s ours
am skip reason: Merged-In I96574a79eba581db95d387f0d9c9fde2e004c41c with SHA-1 c9a3eeb792 is already in history

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

Change-Id: Id97dd62aae31c89c29ed449c33ae86adbe2bb58a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-29 20:48:53 +00:00
Bill Yi
8561428d5d Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-05-29 19:23:14 +00:00
Bill Yi
685c5e83e5 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-05-29 19:23:14 +00:00
josephpv
5fd6d6435b Add footer in private space auto lock settings page
Add a footer note to private space auto lock settings page that apps in
private space may need to be authenticated unlock when a separate lock
is set for private space.

Screenshot:
go/ss/7fE8epun3A2hgq4.png

Bug: 343166689
Test: Manual
Change-Id: I18c650eba128da512116a3166babb49f7ef33bb3
2024-05-29 19:07:20 +00:00
Treehugger Robot
7026a5d679 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-mainline-prod am: 17850eba10 -s ours
am skip reason: contains skip directive

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

Change-Id: I70f324f0ad1052e37066868f4a9bcc4178cb59c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-29 18:52:14 +00:00
Bill Yi
d1b0bf70f4 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 88815b8cbf -s ours
am skip reason: contains skip directive

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

Change-Id: Id05f1a276dc4ec3b0083733e36f2c3e11c36a47d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-29 18:52:07 +00:00
Automerger Merge Worker
be19745ba8 Merge changes from topic "am-e432fa3571f248c4a6bde8fb64f5dc19" into main
* changes:
  [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev am: b26c34ad8b -s ours
  [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: b64dc1cbdb -s ours
  [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 69d5f22731 -s ours
2024-05-29 18:50:08 +00:00
Bill Yi
f3a44325c9 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: a27faaa3ed -s ours
am skip reason: contains skip directive

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

Change-Id: If82e0a1578519bacbe391f5984d4ad2b1b21ce46
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-29 18:47:47 +00:00
Treehugger Robot
1714253488 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev am: b26c34ad8b -s ours
am skip reason: contains skip directive

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

Change-Id: Iada0e4d36dec87b47d1c2c05791ad797b9386c61
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-29 18:46:54 +00:00
Bill Yi
5c04d8dc09 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: b64dc1cbdb -s ours
am skip reason: contains skip directive

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

Change-Id: I1b39688c5ae193057771b020c242cb496ab47a61
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-29 18:46:45 +00:00
Bill Yi
a2204d9a0c [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 69d5f22731 -s ours
am skip reason: contains skip directive

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

Change-Id: I5addc8175e2b6f1a617cb8dbe6e7e3b3906816b7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-05-29 18:46:34 +00:00
Treehugger Robot
17850eba10 Merge "Import translations. DO NOT MERGE ANYWHERE" into udc-mainline-prod 2024-05-29 18:39:00 +00:00
Treehugger Robot
b26c34ad8b Merge "Import translations. DO NOT MERGE ANYWHERE" into 24D1-dev 2024-05-29 18:38:20 +00:00
Julia Reynolds
2af266f423 Update check boxes to switches
To match the rest of the settings

Test: ZenModeNotifVisPreferenceControllerTest
Bug: 337087926
Flag: android.app.modes_ui
Change-Id: I193db8404a3b6c8bdacbbb9e19e3a7c1826d745f
2024-05-29 18:35:31 +00:00
Yuri Lin
f29f44296a Add page for choosing calendar & reply for event modes.
Also adds the link to set trigger behavior to the main mode page (only for calendar so far), and the switch preference to enable/disable automatic rules (for all but manual DND mode).

Removes the "escape hatch" to allow manual mode to also use the new modes pages.

Ported from ZenModeEventRuleSettings.

Flag: android.app.modes_ui
Bug: 332730302
Test: ZenModeSetCalendarPreferenceControllerTest, ZenModeSetTriggerLinkPreferenceControllerTest, manual
Change-Id: Ia7a716c66663a21494a6c05711250a5bda87ca8c
2024-05-29 17:29:23 +00:00