Commit Graph

4962 Commits

Author SHA1 Message Date
Nino Jagar
324b19d332 Merge "Fix wrapping when zoom or large font is used" into main 2023-11-30 07:26:39 +00:00
mxyyiyi
440c3fc278 Update Power Anomaly UI based on new visD spec.
- update anomaly hint chip on app list.

App battery usage:
[dark]	https://screenshot.googleplex.com/RoTWFon4ocoFe25
[light]	https://screenshot.googleplex.com/3UtaxbVNkMtB4w2

Battery usage:
[dark]	https://screenshot.googleplex.com/6hAoxtuVp3dawQw
[light] https://screenshot.googleplex.com/68NeFBymVc2D2Ab

Bug: 309569299
Test: manual
Change-Id: I6a2bc8192e7d9301f20913913e7b722a9c598e7c
2023-11-28 15:57:33 +08:00
Nino Jagar
8580d8031b Fix wrapping when zoom or large font is used
Bug: 310774085, 310774092
Test: Manual
Change-Id: I882f40b7df7fea8471a8668830067835d1325a82
2023-11-27 17:53:21 +00:00
Chelsea Hao
73a95d165a Merge "[Audiosharing] Create preference for audio streams" into main 2023-11-23 03:19:40 +00:00
chelseahao
1cf98e0046 [Audiosharing] Create preference for audio streams
This preference will optionally show a lock icon on the right.

Bug: 308368124
Test: Manual
Change-Id: Ifd899da48a499e4d963f0b8981f8d5f55070d46f
2023-11-22 10:57:28 +00:00
Yiyi Shen
ddebe7293b [Audiosharing] Reimpl audio sharing main switch
New flow: Automatically add sharing source to connected active device eligible for
audio sharing. And then pop up the dialog for users to choose an additinal eligible device
to share audio.

Old flow: Pop up the dialog first and add sharing source after user
interact to the dialog.

Flagged with enable_le_audio_sharing

Bug: 305620450
Test: Manual
Change-Id: If0d1609b2677ca9ecae926c198f305fd1f4e34d3
2023-11-22 11:38:01 +08:00
Roy Chou
5d9571bcee Merge "fix(text preference): fix preview block ui broken in SUW" into main 2023-11-20 03:11:29 +00:00
Roy Chou
004238d7f8 fix(text preference): fix preview block ui broken in SUW
As previous cl ag/25185014 we increased the preview block horizontal padding when landscape mode. However, in setup wizard it uses GlifPreferenceLayout so the settings page only has half screen width when landscape mode, so the preview block ui is squished due to limited width. Also, setup wizard package has overlay the paddings to larger than our prevoius adjust. Therefore, we rollback the changes in accessibility_text_reading_preview.xml to get the default padding, then add checker to increase the paddings if needed at runtime.

Bug: 309590083
Test: manually
Test: atest TextReadingPreviewPreferenceTest
Test: atest TextReadingPreferenceFragmentForSetupWizardTest
Change-Id: Ib907f4182eed272b84a4ab6208ea2d8a89ba96c4
2023-11-20 03:10:33 +00:00
Joseph Vincent
4a88ae4957 Merge "Add fade out/fade in animation in PS setup auto advancing screen" into main 2023-11-17 09:54:58 +00:00
josephpv
5dea00c4e7 Add fade out/fade in animation in PS setup auto advancing screen
As per the UX requirement below changes are made in the screen:

- Position of "Setting up Pirvate Space" text is left aligned to layout
- Lading progress bar next to text removed
- Add fade out and fade in animation for header and image in auto
   advance screen

Bug: 310218201
Test: Manual
Change-Id: Iaf9c27761ce7f25368aac8f9a7d43eba20d66353
2023-11-16 19:11:12 +00:00
Wa Gao
3185a36b90 Update the unit test and add key to fragment.
Bug: 298076922
Change-Id: I8ed880c4f81bd76adc27af9bc3ba66f0b4697f74
2023-11-15 23:44:11 +00:00
Hansen Kurli
54627f0798 Merge changes I7a017026,I76a5c940 into main am: 520d7c6758 am: 6d96b61bfa am: 0a173b2618
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2819338

Change-Id: I60593753806b8804b2647bd9251f630b6203a764
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-15 08:32:47 +00:00
Hansen Kurli
6d96b61bfa Merge changes I7a017026,I76a5c940 into main am: 520d7c6758
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2819338

Change-Id: I8341c0f82c7ca00dba4cf2590d37d25f9d1072ed
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2023-11-15 07:09:08 +00:00
Yiyi Shen
475f87bedc [Audiosharing] Impl the join audio sharing dialog.
Show the dialog when the first or second eligible remote device connected during the
sharing session;
Or when the second eligible remote device connected and
no sharing session.

Flagged with enable_le_audio_sharing

Bug: 305620450
Test: Manual
Change-Id: If59025d60821b00c169e0d739f4b68c31ce4bbbd
2023-11-14 18:09:45 +08:00
lucaslin
755662f72e Remove the code of legacy VPN from Settings
IKEv2 VPN options are now functional, so removing the code of
legacy VPN. (i.e. PPTP, L2TP/IPSec PSK, L2TP/IPSec RSA,
IPSec Xauth PSK, IPSec Xauth RSA, IPSec Hybrid RSA)

Bug: 161776767
Test: Build pass, m
Test: Flash and manual test
Test: atest SettingsUnitTests:com.android.settings.vpn2
Change-Id: I7a017026adec2452254c78ef5e0ebf61ce1a9ecf
2023-11-14 16:01:16 +08:00
Yiyi Shen
2a2a748db4 [Audiosharing] Impl the switch audio sharing dialog.
Show the dialog when a third eligible remote device connected during the
sharing session.

Flagged with enable_le_audio_sharing

Bug: 305620450
Test: Manual
Change-Id: Ib6627b68ef3d70305e9136e09a079bb53a459b85
2023-11-14 15:31:45 +08:00
Xinyi Mao
129919def7 Merge "Update Power Anomaly UI." into main 2023-11-13 05:19:48 +00:00
mxyyiyi
1817f066ec Update Power Anomaly UI.
For Settings tip & app anomaly banner:

- update app anomaly hint color in dark/light theme
[Banner card]
- update icons to GM3 style
- update text font and button text color
- update button style from outlined to filled.
[Chart view]
- update warning icon size
- update percentage label alignment

Screenshots:
- [Settings]
[light]	https://screenshot.googleplex.com/ERWkD7TmDsLaxdG
[dark]	https://screenshot.googleplex.com/6JKvL5vEQTZtJfd
- [App]
[light]
https://screenshot.googleplex.com/3YoncDhGTzUcAZA
https://screenshot.googleplex.com/3hbGmqoYWSy9H9U
[dark]
https://screenshot.googleplex.com/9XKs8tXmRKL2jJP
https://screenshot.googleplex.com/SU4LTJYWXvpd42r
- [RTL+L10N][Arabic]
[Settings] https://screenshot.googleplex.com/V9HJkPcsoBJmsW8
[Apps]
https://screenshot.googleplex.com/B49VKy2jaZYisWK
https://screenshot.googleplex.com/6VZQ2gESRes8RMH
- [Force RTL][EN]
[Settings] https://screenshot.googleplex.com/4V7coyLf5ueUcGv
[Apps]
https://screenshot.googleplex.com/9UaERwDmrpitqdq
https://screenshot.googleplex.com/3JDfcXi8pmz5Mew

Bug: 309569299
Test: manual
Change-Id: I8bee7f86d602112e0cbbd936b439330aaff7275c
2023-11-13 11:52:44 +08:00
Wa Gao
dcf678c835 Merge "Add the dialog when clicking on the diabled switch." into main 2023-11-10 19:13:13 +00:00
Wa Gao
6b9e20d32d Add the dialog when clicking on the diabled switch.
Bug: 302189945
Change-Id: I0bf7774b80a59c70a2ea1725e0adba522854adde
2023-11-10 17:55:25 +00:00
Joshua Mccloskey
4c43b094d9 Merge "Adding back screenshot test to Settings." into main 2023-11-09 23:27:56 +00:00
MiltonWu
96591ed001 Refine FaceEnrollEducation UI
Update switch button style and adjust the margin for head motion swith
button on the end of FaceEnrollEducation page

Bug: 293274664
Test: Manually check UI
Change-Id: Ifff42364c75bc7c0a83a0211743dcd1e50f04aac
2023-11-08 16:10:53 +08:00
Joshua Mccloskey
114fabf79d Adding back screenshot test to Settings.
Test: atest SettingsScreenshotTests
Fixes: 307356833
Change-Id: I80b32cd40155d56e38d41d5f6d52e4c5d5ef715c
2023-11-06 19:40:58 +00:00
Chaohui Wang
c744aaabae Fix IMEI is not selectable
By settings textIsSelectable = true

Also unify all the similar logic into @style/device_info_dialog_value

Fix: 305248578
Test: manual - on About phone page
Change-Id: Iaa6b4ab45067a01106367de3b8d81d5df51bd6dc
2023-11-06 11:01:18 +08:00
josephpv
380ac9a48e Adds Google account login during private space setup
This has the following changes:
1. On profile creation starts intent to add google account to the private profile for Pixel only devices.
2. On accout sign in failed show an error screen with message to try again.
3. Moves the lock setup fragment from private to main user which now calls the helper Activity as a private user which helps to setup lock. This activity can now also be called from the planned Secondary Auth settings page to set up private profile lock.
4. On set up complete use SHOW_WORK_APPS intent as a workaroud to start launcher.

Bug: 308397617
Test: Manual setup
Change-Id: I19b95375409f015b2a5d30fdad766c2f6baa634b
2023-11-03 13:50:55 +00:00
Yiyi Shen
ed94c4eaa2 Merge "[Audiosharing] Add audio sharing stream name preference." into main 2023-11-02 04:51:40 +00:00
Joshua Mccloskey
ff69c0ca2d Merge "Rear Fingerprint Enrollment" into main 2023-11-01 21:10:47 +00:00
Yiyi Shen
1af86c34af [Audiosharing] Add audio sharing stream name preference.
Flagged with enable_le_audio_sharing

Bug: 305620450
Test: Manual
Change-Id: I1502fb824bcf612d069ee24d7af67afda5e997bb
2023-11-01 13:32:09 +00:00
Yiyi Shen
d624b575a6 Merge "[Audiosharing] Add audio sharing dialog." into main 2023-11-01 03:54:45 +00:00
Yiyi Shen
738962fb28 [Audiosharing] Add audio sharing dialog.
Open the dialog when audio sharing main switch on.

Flagged with enable_le_audio_sharing

Bug: 305620450
Test: Manual
Change-Id: I5b7cf655782a1da8b4fbd42eca11b473bac339b0
2023-10-31 17:04:52 +08:00
Chaohui Wang
13150d922c Merge "Migrate to Material3 Switch" into main 2023-10-31 08:26:43 +00:00
Chaohui Wang
8501293f07 Migrate to Material3 Switch
UI changed in this cl.

Bug: 306658346
Test: manual - on Settings pages
Change-Id: Ic72a49e978eb3308f561d24a16be26504297e05c
2023-10-31 13:33:44 +08:00
Joshua McCloskey
a98dc8d4b5 Rear Fingerprint Enrollment
Bug: 297083009
Test: atest RFPSIconTouchViewModelTest FingerprintEnrollEnrollingViewModelTest FingerprintManagerInteractorTest
Change-Id: Icc072e7d7815070087ccb50ea5937c386b06fb11
2023-10-30 22:18:56 +00:00
Chaohui Wang
019be1b687 Migrate ShortcutPreference to SwitchCompat
Settings use SwitchCompat instead of Switch in the future, for new
Material 3 UI.

Bug: 306658427
Test: manual - on Accessibility pages
Change-Id: Idf87eb6fcf1a57bd98a6fd0eca3c8c325127ce17
2023-10-28 20:04:31 +08:00
josephpv
84944ba6f0 Add auto advancing screens for private space setup
This includes changes for
1. To add auto avancing screens to PS setup
2. Screen to set a different Private profile lock or use existing lock
3. Success screen on setup completion
4. Shows Error screen if profile creation failed for some reason
5. Send intent towards launcher, show a Toast message to access PS from bottom of All apps and exit.

Bug: 299069146
Test: Manual setup
Change-Id: If4e5dd5a42abb11259bc40506189c7c750324139
2023-10-27 12:32:12 +00:00
Roy Chou
149a36a4df Merge "chore(text reading settings): increase preview block left/right padding when landscape mode for easier scrolling" into main 2023-10-27 08:57:32 +00:00
Jean Chen
198ae8901b Merge "feat(MultiFingerMultiTap): Add two-finger triple-tap shortcut on magnification dialog" into main 2023-10-27 03:43:51 +00:00
Chaohui Wang
f20a6d0ea6 Merge "Migrate SyncStateSwitchPreference to SwitchPreferenceCompat" into main 2023-10-26 22:51:23 +00:00
Wa Gao
c80dfbccb6 Add the new content protection preference option and subpage in Settings -> Security & privacy -> More security & privacy settings.
Bug: 302189945
Test: robotests
m -j256 Settings
atest SettingsRoboTests:ContentProtectionPreferenceControllerTest
atest SettingsRoboTests:ContentProtectionPreferenceFragmentTest

Change-Id: I620d73f8674c1340f9b11cd910620f1d5afb0ec1
2023-10-26 19:34:58 +00:00
Roy Chou
b3fb8e0154 chore(text reading settings): increase preview block left/right padding when landscape mode for easier scrolling
When the device is in landscape mode, In the text reading preference page, users have difficulty scrolling the RecyclerView because the preview block is almost full-screen. To scroll the preference list, users typically try to pan the preview block, but the block consumes the scroll gesture, preventing the list from scrolling. Users can successfully scroll the list content by panning outside the preview block. As a quick workaround, we increase the left/right padding of the preview block for landscape mode to make it easier for users to pan outside the block and scroll the preference list.

Bug: 301683714
Flag: NA
Test: manually - attach screenshot in bug
Change-Id: I1dba6e4d83ee1cd2f30163de05dfd7b42f829e42
2023-10-26 13:28:50 +00:00
Chaohui Wang
b547927d26 Migrate SyncStateSwitchPreference to SwitchPreferenceCompat
UI not changed in this cl, this cl helps UI switch in the future.

Bug: 306658427
Test: manual - on "Account sync" page
Test: manual - on "Turn screen on" detail page
Change-Id: Icd91bb69fdce302d9b9e92f501d1b1eaf2051960
2023-10-26 13:37:22 +08:00
josephpv
ee5e1ceb03 Start private space setup when there is no private space set
This change handles as below based on if private space already exists on device:
1. If PS doesn't exist then start the setup flow which shows a PS education screen. On setup button creates the private space.
2. If PS already exists on device then display PS settings page.

Bug: 299069146
Test: atest PrivateSpaceSettingsAuthenticatorTest
Change-Id: I46bdbaeb0210fd5b41a426f852e3f455b62c1c29
2023-10-25 21:17:33 +00:00
Jean Chen
48d73aa3f3 feat(MultiFingerMultiTap): Add two-finger triple-tap shortcut on magnification dialog
The shortcut is separate from single-finger triple-tap. It’s under hardware shortcut and above/outside of Advanced section.

Bug: 297805269
Test: manual
Test: atest ToggleScreenMagnificationPreferenceFragmentTest
Change-Id: Id74cf3e457c04e167f3100d977b6c70c5d601026
2023-10-25 13:30:27 +00:00
Chaohui Wang
e752f7214b Remove unused SwitchBar
Only used in tests, so also migrate the tests.

Bug: 306658346
Test: manual - on bluetooth
Test: m RunSettingsRoboTests
Change-Id: Id2b010c1d9c32abe21dcc8765e9446fc4f7a5b25
2023-10-25 12:17:49 +08:00
Jim Shargo
da2c46d926 Merge "Revert "Adding back screenshot test to Settings."" into main 2023-10-24 00:06:03 +00:00
Jim Shargo
0d67f55cba Revert "Adding back screenshot test to Settings."
This reverts commit 4dc4e1c02a.

Reason for revert: broke the build

Change-Id: I3037248a5df06d6f92dfa9c5666625f23230646a
Bug: 307406217
2023-10-24 00:05:48 +00:00
Joshua Mccloskey
29c9e4c0b6 Merge "Adding back screenshot test to Settings." into main 2023-10-23 21:16:42 +00:00
Joshua Mccloskey
4dc4e1c02a Adding back screenshot test to Settings.
Test: atest SettingsScreenshotTests
Fixes: 307356833

Change-Id: I9e168010d6c83aad44969c60deaef8e61a10ddd1
2023-10-23 20:08:29 +00:00
Chaohui Wang
82a9a9e47d Remove Settings preference_widget_primary_switch
File content same as SettingsLib's preference_widget_primary_switch

Bug: 285231003
Test: m Settings
Change-Id: I4b9f92435ffb5c253241e294c4680025fe0447fc
2023-10-20 12:55:22 +08:00
Sebastian Pickl
1d7e0057f7 Merge "Revert "Adding screenshot tests to settings"" into main 2023-10-18 10:20:42 +00:00