Commit Graph

141134 Commits

Author SHA1 Message Date
Chaohui Wang
9e88efecdf Refactor PrintSettings (2/n)
The "Add service" button.

Bug: 320076351
Flag: com.android.settings.flags.refactor_print_settings
Test: manual
Test: unit test
Change-Id: I624293edcbfe9ef8388d48759611aeac522352a4
2024-06-17 18:13:37 +08:00
Xinyi Mao
3576f4840d Merge "Migrate battery usage DAO to Kotlin" into main 2024-06-17 08:47:06 +00:00
SongFerng Wang
2f71bc764d Merge "Fix test case failed" into main 2024-06-17 05:30:06 +00:00
Chaohui Wang
b3f2e4d517 Migrate battery usage DAO to Kotlin
To better support null type safety, and fix build
warnings.

Bug: 332487783
Test: m Settings
Change-Id: I00f3add356e3f825ab76aae4f81129eba348eca8
2024-06-17 12:26:20 +08:00
Chaohui Wang
288b40ee4f Fix Apn network type tests
Bug: 347114536
Test: unit test
Change-Id: Ib5bd331e9a28e89e426bf423e6086d1c2d288961
2024-06-17 11:48:53 +08:00
Yiyi Shen
9bd19f4604 Merge "[Audiosharing] Reset shadows after tests." into main 2024-06-16 13:24:13 +00:00
Yiyi Shen
440d061648 Merge "[Audiosharing] Increase audio sharing test coverage" into main 2024-06-16 13:21:38 +00:00
Alexander Roederer
be647ab053 Merge changes from topic "b308819928-ModesSettingsAppBreakthroughPage" into main
* changes:
  Modify Summary for Mode's Apps settings page
  Adds summary helper for apps subtitle
2024-06-16 02:49:53 +00:00
Matías Hernández
68953d33c1 Merge "First bits of "add a mode"" into main 2024-06-15 12:14:09 +00:00
Alexander Roederer
41902bb0c5 Modify Summary for Mode's Apps settings page
Adds call to SummaryHelper to set Apps preference summary.

Bug: 308819928
Test: atest ZenModeAppsLinkPreferenceControllerTest
Flag: android.app.modes_ui
Change-Id: Iebec11afc62ecb79386e1866af57cd4e68461a95
2024-06-15 04:48:38 +00:00
Treehugger Robot
bd1a726696 Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-06-14 20:34:40 +00:00
Treehugger Robot
98a233697d Merge "Import translations. DO NOT MERGE ANYWHERE" into main 2024-06-14 20:34:40 +00:00
Matías Hernández
8409c39d94 First bits of "add a mode"
* Preference below the modes list.
* Temporarily triggers addition of a mode with default name and type=SCHEDULE_TIME (type will be "manual only" later).
* Fixed sorting of modes in the list when refreshing (new modes were added at the bottom instead of where they should, the same would've happened for renamed modes).
* Minor polishes (extracted fragment launch to helper class, renamed item controller class for clarity).

Test: atest com.android.settings.notification.modes
Bug: 326442408
Fixes: 347198709
Flag: android.app.modes_ui
Change-Id: Ie276c92181c5374faf74592433595e7e15a5efc0
2024-06-14 15:23:30 +00:00
Julia Reynolds
54a357fc3a Remove unneeded AsyncTask
Change-Id: I962a61c7a73f1d7a464ee76284f1d4175d04e62a
2024-06-14 14:42:50 +00:00
Joseph Vincent
7652089fa4 Merge "Center align illustration is PS setup screen for tablet" into main 2024-06-14 14:11:08 +00:00
josephpv
6780ee79dd Center align illustration is PS setup screen for tablet
Change made in large screen layout for PS setup screens.
With this change spacing added between the screen title and Illustration
is removed and the illustration is center aligned.

Screenshots:
Tablet
go/ss/Ayvv8YY6yvVoMz4.png
go/ss/6wG342eU64vKdSn.png
go/ss/4H56h5avo7yz9Wz.png

Fold:
go/ss/8xeGeyCYktSzbyc.png
go/ss/97oJmyh6U7fpX8B.png
go/ss/3qmWn4QVB6VPegU.png
go/ss/3KEk3HJ4i7h8jsL.png

Bug: 336235352
Test: Manual
Change-Id: I77148b8b33007a1b29f99fe7bdf3bbc58a9de3aa
2024-06-14 11:50:33 +00:00
chelseahao
16f9205fb6 [Audiosharing] Add tests for qrcode related classes.
Test: atest -c com.android.settings.connecteddevice.audiosharing.audiostreams
Bug: 308368124
Change-Id: I74caacf43a23bbd0a6da44af24a1be4dd9544a5d
2024-06-14 11:38:51 +00:00
Chelsea Hao
24d8411915 Merge changes I6322ccbb,Idc96c23d into main
* changes:
  [Audiosharing] Add tests.
  [Audiosharing] Add logging 3.
2024-06-14 11:07:49 +00:00
Yiyi Shen
f570ee0018 [Audiosharing] Reset shadows after tests.
Test: atest
Bug: 345686602
Change-Id: I311ba5c8d234240e61dffd17b4357452c12f4fb1
2024-06-14 17:44:33 +08:00
SongFerng Wang
0cc20946c8 Merge "Add metricsCategory for dualsim and apnEdit" into main 2024-06-14 09:25:47 +00:00
Treehugger Robot
fbf3403f8d Merge "Reenable all tests for SettingsRoboTests" into main 2024-06-14 08:52:33 +00:00
chelseahao
f6b235746d [Audiosharing] Add tests.
Test: atest -c com.android.settings.connecteddevice.audiosharing.audiostreams
Bug: 308368124
Change-Id: I6322ccbb5deffe2bc169a898ef0208e135caa819
2024-06-14 08:48:17 +00:00
chelseahao
8a8c89a49c [Audiosharing] Add logging 3.
Test: atest -c com.android.settings.connecteddevice.audiosharing.audiostreams
Bug: 308368124
Change-Id: Idc96c23d20041a00d4fb1e20a7457baaa0f55527
2024-06-14 08:47:55 +00:00
songferngwang
f462b0278d Fix test case failed
Bug: 342830152
Test: run atest SettingsUnitTests:com.android.settings.network.NetworkProviderCallsSmsFragmentTest
Change-Id: I4c3b065995de0b6c9935c34644d1f9fa47357749
2024-06-14 08:16:00 +00:00
Matías Hernández
e3570eb633 Merge "Load zen mode type icon options from the proper resources" into main 2024-06-14 08:10:59 +00:00
Tom Hsu
e05b699b04 Merge "Prevent crash when fragment lifecycle is after onStop" into main 2024-06-14 07:56:17 +00:00
Fan Wu
595ed9645e Reenable all tests for SettingsRoboTests
Updating tests in development/ due to ag/27774179
Temporarily ignore tests in UserDetailsSettingsTest due to ag/27785999

Bug: 347125800

Test: atest
Change-Id: Iaed79c3fde80f5b2c31754bef4a93546813444a8
2024-06-14 07:27:31 +00:00
Joseph Vincent
f3b59755b4 Merge "Scale PS space animations to display on tablet" into main 2024-06-14 07:16:43 +00:00
Yiyi Shen
2c6b9bb364 [Audiosharing] Increase audio sharing test coverage
Bug: 345686602
Test: atest
Change-Id: Iec196fc884c3b7ddd580eb8dd13b445d59e3b1b7
2024-06-14 14:30:14 +08:00
tomhsu
b4108cb17e Prevent crash when fragment lifecycle is after onStop
Fix: 325059602
Test: build pass
Change-Id: Ie132b4fd6b6c7df8c0fe188e0eb238f562fd4d6e
2024-06-14 06:02:14 +00:00
songferngwang
d73f0e3c77 Add the timer for waiting sim ready
When the sim onboarding setup the primary sim,
the psim is not ready.

Bug: 346623465
Test: verified this case.
Change-Id: Ide5a5de4f19deb7de6dd093df4dd267329b82046
2024-06-14 05:29:22 +00:00
Treehugger Robot
b3aae5aaf1 Merge "Don't show the Wi-Fi icon when Wi-Fi is off" into main 2024-06-14 03:58:01 +00:00
songferngwang
d4e467ed4a Add metricsCategory for dualsim and apnEdit
Bug: 347091697
Test: Build pass
Change-Id: I783a45269112d91d79c00af41c0052ba488603d2
2024-06-13 23:00:29 +00:00
Bill Yi
02ad59a221 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4db6678bb8e03bcba5ca010165fc247f2689d3ee
2024-06-13 14:48:04 -07:00
Bill Yi
5d771a4760 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I67dec21c29fa5001e57d712109d66e98ac3bae9b
2024-06-13 14:46:13 -07:00
Treehugger Robot
66aa660ad5 Merge "fix(high text contrast): revert name back to "High Text Contrast"" into main 2024-06-13 21:22:58 +00:00
Tyler Freeman
40efef2210 fix(high text contrast): revert name back to "High Text Contrast"
We're holding off on launching High Contrast Text improvements,
so we're reverting back to the original name to avoid user confusion.

We'll save the name change for when we change the appearance of the
feature.

Bug: 344028969
Flag: ACONFIG com.android.settings.accessibility.enable_color_contrast_control NEXTFOOD
Flag: ACONFIG com.android.graphics.hwui.flags.high_contrast_text_small_text_rect STAGING
Test: manual
Change-Id: Icadf1b708b42f684b0d93a59bb7ff8dab26807dd
2024-06-13 19:37:13 +00:00
josephpv
f1a16e4147 Scale PS space animations to display on tablet
Screenshots:
b/336235352#comment10

Bug: 336235352
Test: Manual
Change-Id: I05c97756d788d58cd8d553317d3173b8a250348d
2024-06-13 18:47:48 +00:00
Natnael Belay
10c4f84852 Merge "Temporarily ignore 2 ApnEdit tests" into main 2024-06-13 16:49:25 +00:00
Joseph Vincent
bfc9678d08 Merge "Update strings in PS setup education and settings screen" into main 2024-06-13 14:22:50 +00:00
josephpv
ce8a258b98 Update strings in PS setup education and settings screen
With this change strings in PS settings screen and PS setup education
screen footer is updated to include medical apps.

Screenshot:
go/ss/54VdL8mNvDXGCF4.png
go/ss/9XEAXLkGZa5KLDF.png

Bug: 346925554
Test: Manual
Change-Id: Ief39d92d27099d285f0e36394b9b41700a3d62d3
2024-06-13 14:22:16 +00:00
Alexander Roederer
a6b1d7cbbc Adds summary helper for apps subtitle
The subtitle for the apps page says which apps (up to two/three) and how
many (if there are more than three) are allowed to bypass dnd under the
main "Apps" page.

Bug: 308819928
Test: atest ZenModesSummaryHelperTest
Flag: android.app.modes_ui
Change-Id: I15696384c392ba3f054948db50eea614f91d8c48
2024-06-13 13:20:29 +00:00
Weng Su
3b161c23b3 Don't show the Wi-Fi icon when Wi-Fi is off
- Show an empty icon when the Wi-Fi level is unreachable

Bug: 339343274
Flag: EXEMPT bugfix
Test: Manual testing
atest -c SettingsRoboTests

Change-Id: I55f3be145150235b19484e256c35e37f885a1dcf
2024-06-13 20:43:40 +08:00
Matías Hernández
22c325a099 Load zen mode type icon options from the proper resources
* Move default mode icons from Settings res to core res.
* Add array resources for the icon options and their descriptions.
* As the initial version of the list, use the default mode icons.

Bug: 333901673
Test: atest IconOptionsProviderImplTest
Flag: android.app.modes_ui
Change-Id: I66669e67a9d607268c05d5ed3df6c9555e57864c
2024-06-13 14:38:51 +02:00
Chelsea Hao
484d129b35 Merge "Catch NoSuchMethodError as isAutoOnSupported is tagged as FlaggedApi." into main 2024-06-13 11:44:48 +00:00
Treehugger Robot
50ee61a80f Merge "InternetPreferenceController V2 (7/7)" into main 2024-06-13 10:05:19 +00:00
Olivier Nshimiye
2dc4310630 Merge "Remove settings tasks on private space deletion" into main 2024-06-13 09:47:49 +00:00
Matías Hernández
2bdd13fd26 Merge "Follow-up improvements to zen mode icon picker" into main 2024-06-13 09:28:24 +00:00
Chelsea Hao
4826efcbbf Merge "[Audiosharing] Add logging 2." into main 2024-06-13 08:56:59 +00:00
Chelsea Hao
ba98450a2d Merge "[Audiosharing] Add logging 1." into main 2024-06-13 08:56:35 +00:00