Commit Graph

4044 Commits

Author SHA1 Message Date
PETER LIANG
d2c4944cbb Merge changes I99fb2ed2,Iba18bfab into sc-dev
* changes:
  Support the lottie image file for the banner in Accessibility Settings.
  Fixing the animation of drawable couldn't play automatically for the banner.
2021-06-09 10:44:10 +00:00
Peter_Liang
3ce3a93e71 Support the lottie image file for the banner in Accessibility Settings.
Action:
Currently, the ImageView component couldn’t handle the lottie image from raw resource folder,  so temporarily using the LottieAnimationView from settingsLib to support lottie image for the banner of Accessibility settings.

Bug: 186065724
Bug: 179451422
Test: atest AnimatedImagePreferenceTest
Change-Id: I99fb2ed26085c73bc262c58001de8dec3078e1d0
2021-06-09 10:11:23 +00:00
Curtis Belmonte
99faae35fc Merge "Fix color and asset name for large face enroll icon" into sc-dev 2021-06-08 19:36:05 +00:00
Giuliano Procida
ef0e09f7a3 Merge "Revert "Apply SettingsLib SeekBarPreference to Settings"" into sc-dev 2021-06-08 09:55:58 +00:00
Edgar Wang
cdff5c6ceb Revert "Apply SettingsLib SeekBarPreference to Settings"
Revert submission 13422386-seekbar-sc-dev

Reason for revert: build broken in SettingsGoogle
Reverted Changes:
I0c2d0d5fb:Apply SettingsLib SeekBarPreference to SettingsGoo...
I1844bb3b0:Apply SettingsLib SeekBarPreference to a11y vibrat...
Ia3e4adec8:Apply SettingsLib SeekBarPreference to a11y vibrat...
Iadee57e9d:Apply SettingsLib SeekBarPreference to a11y vibrat...
I219878716:Apply SettingsLib SeekBarPreference to Settings
I959f5672c:Create SettingsLibSeekBarPreference
I92545a69c:Apply SettingsLib SeekBarPreference to a11y vibrat...

Change-Id: Ie6c3b0dc072e044796abdb33fca305f9f9d47c4d
Bug: 176818438
2021-06-08 09:47:51 +00:00
Edgar Wang
4aad4a88a7 Merge "Apply SettingsLib SeekBarPreference to Settings" into sc-dev 2021-06-08 07:23:54 +00:00
SongFerng Wang
5fd29ebeab Merge "data usage are not left align other item at Network & internet page" into sc-dev 2021-06-08 06:43:17 +00:00
Curtis Belmonte
f70d574278 Fix color and asset name for large face enroll icon
Don't use extracted color for the large face enroll icon asset shown
on the education and confirmation screens. Also update the name of this
asset to be more accurate and less confusing.

Test: Manual

Bug: 187845699
Change-Id: I1ac1d523f79757caa8aaac6b04b059c2c40fc0de
2021-06-07 16:31:24 -07:00
Curtis Belmonte
2968c05f31 Merge "Apply SUW theme to add/remove button in face settings" into sc-dev 2021-06-07 22:49:52 +00:00
Curtis Belmonte
7dbe83ef5a Apply SUW theme to add/remove button in face settings
Update the button to "Set up Face Unlock" or "Delete face model" shown
on the Face Unlock Settings screen to match the primary button theme
used in Setup Wizard.

Test: Manual

Fixes: 190422391
Change-Id: Ib864cb53f366eec7d1a69c2808d7effc8a0aa05a
2021-06-07 14:02:58 -07:00
Edgar Wang
d6b5bbb5cb Apply SettingsLib SeekBarPreference to Settings
Bug: 176818438
Test: robotest

Change-Id: I219878716457ce4bb7cad251bccf5d50d93030a5
2021-06-07 18:09:19 +00:00
SongFerngWang
5f00af2911 data usage are not left align other item at Network & internet page
Screenshot of fixed version: https://screenshot.googleplex.com/66eAFSYJy2FWniB
Bug: 184218687
Test: build pass and check Ui. (pass)
Change-Id: I851ec60f962c5a249b6272919a09444b83fd7bdc
2021-06-07 17:15:07 +00:00
TreeHugger Robot
5484fd3060 Merge "Revert DND toggle back to a button" into sc-dev 2021-06-07 13:40:54 +00:00
Arc Wang
466be8d6fe Merge "Set font size 20 for StorageItemPreference" into sc-dev 2021-06-04 04:06:08 +00:00
Arc Wang
578affca57 Set font size 20 for StorageItemPreference
To improve UX.

Bug: 189390237
Test: manual visual
Change-Id: Ice40b7c8c86f7f4c220d43fd7f4a035e6160e50d
2021-06-04 10:45:36 +08:00
Betty Chang
5b23f3b923 Merge "[GAR] Set the correct color and style to panel UI" into sc-dev 2021-06-03 07:21:17 +00:00
TreeHugger Robot
28128df960 Merge "Fix overlapping problem on running services page" into sc-dev 2021-06-03 04:55:23 +00:00
Yanting Yang
09666f9ef4 Merge "Deprecate silky flag for official release" into sc-dev 2021-06-03 04:05:26 +00:00
Tsung-Mao Fang
ff0c73bfcb Fix overlapping problem on running services page
For Android S, all pages support collpasing tool bar.
We add coordinatorLayout to work with collpasing tool bar
layout. And coordinatorLayout only works with RecyclerView
and NestedScrollView.
Unfortunately, the list was implemented by listView many years ago.

Because it's a very hidden page and the page is not maintained anymore,
we don't consider to migrate to RecyclerView.
Simply enable nested scrolling behavior for listview at this moment.

I also make some small refactorings in this cl.
1) Update the layout padding.
2) Format the xml file.
3) Create a individual cl for this page only.

Test: Don't see the overlapping problem
Fix: 188539741
Change-Id: I21c61e35a06b85ca7c309d1d3182b38b4bb38212
2021-06-03 11:41:14 +08:00
Betty Chang
227f9357ab Merge "[GAR] Set the color to cycle left time to pass the GAR" into sc-dev 2021-06-03 02:33:12 +00:00
Curtis Belmonte
70dfd5332f Merge "Align assets and colors for biometric enroll intros" into sc-dev 2021-06-02 17:42:35 +00:00
Julia Reynolds
eb838f2eef Revert DND toggle back to a button
Test: manual, Robotests
Fixes: 188616179
Change-Id: I70b469ff6ef809056c9eceec7f87f91aed9a23ca
2021-06-02 11:31:59 -04:00
Yanting Yang
90a9714cc0 Deprecate silky flag for official release
- Turn on the collapsing toolbar by default.
- Remove the silky flag from All apps page.
- Ignore tests of ChooseLockGenericTest and trace it on b/179136903.
- Remove silky flag.

Fixes: 183670633
Bug: 179136903
Test: robotests & visual
Change-Id: Iee2a9e7ccaebd1624f995af4fd45446142e5f500
2021-06-02 15:18:33 +00:00
changbetty
180970e88b [GAR] Set the correct color and style to panel UI
1. Set the correct color to panel subTitle for pass the GAR
2. Follow the UI spec to set the font style and size to the panel title

Bug: 189799700
Test: Manaul test by Accessibility Scanner
Change-Id: I7e7864f18e0e5c6edc8e5160cf984472d4aba881
2021-06-02 22:02:48 +08:00
TreeHugger Robot
7bebe57631 Merge "Fix slider RTL problem" into sc-dev 2021-06-02 09:20:12 +00:00
changbetty
f92229eead [GAR] Set the color to cycle left time to pass the GAR
Screenshot: https://photos.app.goo.gl/GwuAkwfuxf6nhcou5

Bug: 187145220
Test: Manual test by Accessibility Scanner
Change-Id: I2b07ae0a2a56c3133964629141c1a0ba34cf323f
2021-06-02 07:20:16 +00:00
Curtis Belmonte
08f90ddb2d Align assets and colors for biometric enroll intros
Replaces the existing MP4 shown on the face enroll intro/consent screen
with an updated lock asset that matches the current SUW theme. Also
updates the colors of assets and text on these screens for face and
fingerprint so that the two match.

Test: Manually tested both enrollments for dark and light system themes

Bug: 187681255
Change-Id: I119da913cfc76e02160f2efc4654cecf33f1f049
2021-06-01 23:22:48 -07:00
Sunny Shao
4cf930a9ff Fix slider RTL problem
Fixes: 187987211
Test: manual test
Change-Id: Id28f060aa55773707dc23f4606a188cc188c3b07
2021-06-02 13:50:40 +08:00
Wesley.CW Wang
645e28e31b Update battery error layout
- Update font
 - Add importantForAccessibility to make whole layout selectable
 Screenshot: https://screenshot.googleplex.com/9nJxzD47xeaB6ea.png

Bug: 187612897
Test: make RunSettingsRoboTests
Change-Id: I15bbee6780d8e2c0a01995c6dbb91b933abda274
2021-06-01 19:09:03 +08:00
TreeHugger Robot
12a285af4e Merge "Tweak Memory use layout in Developer options" into sc-dev 2021-05-31 11:40:35 +00:00
Edgar Wang
332110464b Tweak Memory use layout in Developer options
- Adjust Memory summary padding start
- Remove icons in developer options Settings

Bug: 189279355
Bug: 186609539

Test: visual verify
Change-Id: I0618e5f35a1748f8ccf7852f6516fb3267fcc582
2021-05-31 15:17:05 +08:00
TreeHugger Robot
677e59cbef Merge "Relayout Reset Wifi page" into sc-dev 2021-05-31 03:28:10 +00:00
TreeHugger Robot
47684fcca3 Merge "Update Volume title font size" into sc-dev 2021-05-31 03:25:08 +00:00
YUKAI HUNG
72f0500211 Merge "Resolve localization issue and refine UI for chart view" into sc-dev 2021-05-31 03:00:58 +00:00
ykhung
0caec37161 Resolve localization issue and refine UI for chart view
Bug: 189293866
Bug: 189407613
Bug: 189413817
Test: make SettingsgRoboTests
Change-Id: If38d133d88bb940c248ef1887548112ff576e0c4
2021-05-28 22:07:01 +08:00
Edgar Wang
88600e7916 Relayout Reset Wifi page
- Update textAppearance
- Adjust padding
- Update Button style

Fixes: 189389538
Test: visual verify
Change-Id: I03fe9368c0f3140990f96b6418034e14cb7ce813
2021-05-28 18:27:37 +08:00
Edgar Wang
a2311b668a Update Volume title font size
Fixes: 189390164
Test: visual verify
Change-Id: Icd794ca519cc9ed17065bd65e378dafb74c847ac
2021-05-28 14:24:33 +08:00
menghanli
ccc8a93c6c Fix Magnification shortcut option content overlap with top and bottom dialog container
Problem: After SuW theme applied, the scrollview viewport seems can draw outside of bounds.
Solution: Define whether a child is limited to draw inside of its bounds or not.

Test: Run initBCTestEnv_S.sh and apply different color
Bug: 187007290
Change-Id: Ie3a27616d7f30804c30e5101d2488216df516578
2021-05-27 20:31:26 +00:00
Kevin Chyn
dc00faece6 Merge "Use lottie animation for fingerprint edu" into sc-dev 2021-05-27 08:31:55 +00:00
Curtis Belmonte
2c8745b58d Merge "Fix crash due to traffic light face Lottie animation" into sc-dev 2021-05-27 01:55:58 +00:00
Curtis Belmonte
adf0cabe0a Fix crash due to traffic light face Lottie animation
Load the animation asset only if enabled in the resource config, to
avoid crashing on unsupported device configurations.

Test: Manual

Fixes: 189290180
Change-Id: Iae46c735277777705c1d6f4595b557e4b0b1aef7
2021-05-26 16:11:56 -07:00
Kevin Chyn
1bad80b36b Use lottie animation for fingerprint edu
The landscape layout can be removed now, since for UDFPS,
we do not use this page for the "find sensor" functionality anymore.
Instead, we show the edu animation.

Bug: 187460696
Test: manual

Change-Id: Ic2e15ecf73c42b8a0cea4ea8996b1b7dd2f3b4f2
2021-05-26 14:49:51 -07:00
TreeHugger Robot
f6d0845783 Merge "Tweak right padding for multiple preferences" into sc-dev 2021-05-26 03:36:54 +00:00
TreeHugger Robot
bdd98ec216 Merge "Update fonts & colors" into sc-dev 2021-05-25 14:34:16 +00:00
Pasty Chang
b15fd6233f Merge "Migrate summary text in wifi QR scan page to DescriptionMixin" into sc-dev 2021-05-25 07:40:47 +00:00
Curtis Belmonte
cbac65769f Merge "Use Lottie animation for traffic light face education" into sc-dev 2021-05-25 04:30:30 +00:00
Curtis Belmonte
a543067ed9 Use Lottie animation for traffic light face education
Test: Manual

Bug: 182716681
Change-Id: Ia4c9dea5c900c71ec7eca7946cf090fd02b436e2
2021-05-24 14:47:19 -07:00
Curtis Belmonte
937ff332f3 Update face/fingerprint consent screen UIs
Makes the following UI changes to the consent screens for face and
fingerprint enrollment:
- Sets description text in XML rather than in Java
- Highlight both primary and secondary buttons
- Use extracted highlight color for all icons

Test: Manually tested SUW flow

Bug: 188922185
Bug: 187458628
Bug: 183710943
Change-Id: I39d9b990dcbb82f443515a2175766dc51ca1180c
2021-05-24 13:17:09 -07:00
Julia Reynolds
6974556f9c Update fonts & colors
For contrast and consistency

Test: accessibility scanner
Fixes: 189057809
Fixes: 189057886
Fixes: 187373182
Change-Id: If46786e363fa8727d5ecd1bc9e1e19f5357ef645
2021-05-24 18:32:31 +00:00
Edgar Wang
1b413601b9 Tweak right padding for multiple preferences
- Moved two_target_min_width to SettingsLib
- Set widget_frame minWidth to 72dp

Bug: 185549116
Test: manual & robotest
Change-Id: I613fe8e494443ef7cfc99088acfcd4894892d2e6
2021-05-24 17:47:15 +08:00