Commit Graph

140673 Commits

Author SHA1 Message Date
Chaohui Wang
28f51a934a Merge "[Apn] Copy network type into lingering network type" into main 2024-06-04 10:16:13 +00:00
Chelsea Hao
035efe6207 Merge "[Audiosharing] Clean up unused code." into main 2024-06-04 09:35:38 +00:00
Xinyi Mao
d6fe83b86e Merge "Fix color_hook broken in repo upload caused by ag/27381753." into main 2024-06-04 07:37:27 +00:00
chelseahao
4c94930ad5 [Audiosharing] Clean up unused code.
Test: atest -c com.android.settings.connecteddevice.audiosharing.audiostreams
Bug: 308368124
Change-Id: Iea1aede53aefe2034b5a083ff503bb21a4f546cb
2024-06-04 07:09:03 +00:00
Chaohui Wang
57956a8bb8 [Apn] Copy network type into lingering network type
The lingering network type is actually the bit that controls network
torn down. UNKNOWN here means the APN can work on any RAT.

Just copy network type into lingering network type, so network torn down
can work normally.

Fix: 341006308
Test: unit test
Change-Id: Ia60ad3e012bec7364aa35535de1363cd7c0ccdda
2024-06-04 13:58:36 +08:00
Treehugger Robot
70b0a36c4b Merge "Modify the incorrect wording" into main 2024-06-04 05:11:19 +00:00
mxyyiyi
3a07663134 Fix color_hook broken in repo upload caused by ag/27381753.
Bug:344714906
Test: manual
Change-Id: I0d26fa6906830c0634ff2cff2d3265d9435c9dfb
2024-06-04 12:35:56 +08:00
Chun-Ku Lin
ba408fbb06 [Refactor] Create a dedicated AccessibilityServicePreference and
AccessibilityActivityPreference to encapture the method for loading the
content for AccessibilityService and AccessibilityShortcutInfo

Bug: 327052480
Test: atest com.android.settings.accessibility
Flag: EXEMPT mechanical refactor

Change-Id: I698a1d366e8ab82c8efdcae293a1ba1771925121
2024-06-04 00:22:44 +00:00
Treehugger Robot
59417f3737 Merge "Reenable (no longer) failing test" into main 2024-06-03 19:16:30 +00:00
Daniel Norman
5a20cfb469 Merge "Update A11ySettings to load preferences in onCreate()." into main 2024-06-03 19:06:23 +00:00
Julia Reynolds
15930b1b61 Reenable (no longer) failing test
Test: ApprovalPreferenceControllerTest
Fixes: 339550695
Flag: android.app.modes_api
Change-Id: Id71a17edd3fa1e9a03df3947c159161eee4dcd1a
2024-06-03 18:13:13 +00:00
Yomna Nasser
c2df9e2e40 Merge "Control visibility of Cellular Security tile on More Security & Privacy page" into main 2024-06-03 16:23:12 +00:00
yomna
ffba0e7a40 Control visibility of Cellular Security tile on More Security & Privacy page
Bug: b/335554085
Test: manual
Flag: EXEMPT bugfix
Change-Id: I35a3b67abc8339179b600fa83effd98e5b389a37
2024-06-03 16:22:58 +00:00
Treehugger Robot
8c7d7a2cc9 Merge changes from topic "opt_mode_ds" into main
* changes:
  Add AppOptimizationModeEventsUtils to save & update app optimization mode expiration events.
  Dump app optimization mode expiration event data in bug report.
2024-06-03 13:50:05 +00:00
mxyyiyi
8eaf8edf7e Add AppOptimizationModeEventsUtils to save & update app optimization mode expiration events.
- [Update] Save app optimizaiton mode set & expire events from turbo.
- [Reset ] Restore optimization mode for expired events in Periodic job.
- [Delete] Cancel expiration event if user updates mode in app usage page.

Bug: 338965652
Test: atest + manual
Change-Id: I3fb7311207da1bdb1146ea1ff041aca6adb66052
2024-06-03 19:42:26 +08:00
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
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
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
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