Commit Graph

140687 Commits

Author SHA1 Message Date
Treehugger Robot
1d6419f8c6 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-06-04 18:04:36 +00:00
Chun-Ku Lin
557659277f Merge "Load icon in the background, also load extra data that would be used later in the background." into main 2024-06-04 17:16:23 +00:00
Yomna Nasser
23377dcf4c Merge "Remove unneeded init & displayPreference functions" into main 2024-06-04 16:36:13 +00:00
Jason Hsu
b300ecff43 Merge "Update 'Preset' to singular" into main 2024-06-04 16:28:17 +00:00
jasonwshsu
452cfdc39d Update 'Preset' to singular
Bug: 344832549
Test: check string in Device details page when pairing with hearing aids
Flag: EXEMPT resource only update
Change-Id: I11f892065131680723793f5ac652e11fce0b21ec
2024-06-04 21:14:49 +08:00
Chaohui Wang
7030928506 Merge "Finish mobile settings if sub id not exists" into main 2024-06-04 12:46:08 +00:00
YK Hung
855681fa8f Merge "Fetch the original battery optimization mode in backup & restore process." into main 2024-06-04 10:28:37 +00:00
YK Hung
d76f5b8233 Merge "Fix post-comment in ag/27593647 to improve the readability." into main 2024-06-04 10:25:00 +00:00
Chaohui Wang
28f51a934a Merge "[Apn] Copy network type into lingering network type" into main 2024-06-04 10:16:13 +00:00
Chaohui Wang
3ad527640e Finish mobile settings if sub id not exists
Could be test with,
adb shell am start \
  -a android.settings.NETWORK_OPERATOR_SETTINGS \
  --ei android.provider.extra.SUB_ID 999

Bug: 336232487
Test: manual - on MobileNetworkSettings
Change-Id: I74d5d5b743c40375ceba1ba6e761da901d0d5e65
2024-06-04 18:15:24 +08:00
Chelsea Hao
035efe6207 Merge "[Audiosharing] Clean up unused code." into main 2024-06-04 09:35:38 +00:00
mxyyiyi
00507a47ec Fix post-comment in ag/27593647 to improve the readability.
Bug: 338965652
Test: atest + manual
Change-Id: I8e4c8a4508dd8c5afd1f16c6129146ba6e13bde2
2024-06-04 15:48:36 +08:00
mxyyiyi
1767a6ebb8 Fetch the original battery optimization mode in backup & restore process.
- Battery optimization mode maybe temporary updated by turbo.

Bug: 338965652
Test: atest + manual
Change-Id: Ibea7ecc85ee7d042058f1bccc043fa501be2b8db
2024-06-04 15:43:58 +08: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
b9ee1c4877 Load icon in the background, also load extra data that would be used
later in the background.

Bug: 327052480
Test: atest com.android.settings.accessibility
Flag: EXEMPT bugfix
Change-Id: I9940772e60e2137aad2b3b70902565e36fb7aad6
2024-06-04 02:07:18 +00:00
Bill Yi
bf17fe16a6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I76ef7a226e3077feca39fe7404c7ab6fd423770c
2024-06-03 17:29:59 -07: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
yomna
a2f5b59014 Remove unneeded init & displayPreference functions
Bug: 330336498
Test: m & atest CellularSecurityNotificationsDividerControllerTest CellularSecurityNotificationsPreferenceControllerTest CellularSecurityEncryptionDividerControllerTest CellularSecurityPreferenceControllerTest
Flag: EXEMPT bugfix
Change-Id: I791ad88738da24916b2c48e9b24f404707fc7047
2024-06-03 22:41:25 +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