4630 Commits

Author SHA1 Message Date
Lucas Dupin
990702017c Merge "Correctly fade sparkles in" into sc-dev 2021-04-08 23:28:56 +00:00
Lucas Dupin
b2e37616d3 Correctly fade sparkles in
The ring that masks sparkles was suddenly appearing after a few frames,
causing the sparkles to show up, instead of fade in.

Fixes: 184594674
Test: visual
Change-Id: Id88c26352379e689663808fa8c70834b7ea840b5
2021-04-08 13:12:58 -07:00
Lucas Dupin
439036a934 Do not animate sparkles when animations are off
Bug: 184746725
Test: manual
Test: car CTS
Change-Id: I5c25678760f2f76cda8430c33b4c75d14ae43903
2021-04-08 10:37:08 -07:00
Jay Aliomer
3047cb298d Ripple radius bug
Fixes: b/183912412
Test: manual test
Change-Id: I9bf3a32f2f983eb6d837e1e51d6feb1845564d22
2021-04-08 17:05:00 +00:00
Nader Jawad
2dc632aee3 Holepunch layers for SurfaceView
Update RenderNodeDrawable to hole punch areas into
layers created for SurfaceView

Bug: 184297961
Test: Added CTS test to SurfaceViewTests
Change-Id: I1f03a4fe34c5a8b7411ebe728ea3d4195fcd1fac
2021-04-06 22:03:00 -07:00
Lucas Dupin
8be19c6101 Merge "Add turbulence effect to Ripple" into sc-dev 2021-04-06 19:58:58 +00:00
Lucas Dupin
451cba0722 Add turbulence effect to Ripple
Test: visual
Fixes: 184176112
Fixes: 184188444
Change-Id: I06d04d71f115d61b05b5dcb0be95e661a5c66f9d
2021-04-06 09:56:25 -07:00
Lucas Dupin
a2bb76b684 Slide ripple slower
Slide it over 450ms instead of 105

Fixes: 184594292
Test: visual
Change-Id: Ic27bc2eaa618195841c106f486d1bff7676a1e88
2021-04-05 20:23:36 -07:00
Lucas Dupin
ba58f850d4 Merge changes Id157edb7,I94b05bf1 into sc-dev
* changes:
  Ripple size and easing
  Make sparkle area larger
2021-04-05 21:41:48 +00:00
mk.lee
0e717a9d06 Add 8k bitmap render support
Support vendor configure max bitmap size, because of
8k bitmap was over 100M

Bug: 178353420
Test: build

Change-Id: I582883cca51d42505ec8a81044e471998b88854b
2021-04-05 10:38:22 -07:00
Lucas Dupin
d1da7e0af9 Ripple size and easing
- make sparkles a little larger
- adjust easings
- adjust fade in/out

Test: visual
Fixes: 184444641
Fixes: 184443654
Change-Id: Id157edb7e41e8e55bd57bb376497431f9a3c90f0
2021-04-05 10:00:17 -07:00
Lucas Dupin
19c6382263 Make sparkle area larger
Fixes: 184444212
Test: visual
Change-Id: I94b05bf132dee22e6f2507e21e61ddb094b9c506
2021-04-05 10:00:08 -07:00
Lucas Dupin
fb3e48e50e Merge "Revert^2 "Enable new ripple"" into sc-dev 2021-04-02 00:01:10 +00:00
Lucas Dupin
4176f5fa5f Replace animator with render loop logic
The animator had infinite duration, and was only cancelled during a
render loop. It was possible that it would get stuck, leaking the
drawable.

Bug: 183950010
Test: TaplTestsLauncher3 (on sysui studio)
Change-Id: I2cc0d69ef19bb4fb775d319befde9bfc9df8d0ae
2021-04-01 15:26:59 -07:00
Lucas Dupin
834aa9c63b Revert^2 "Enable new ripple"
cd26c64db73d4f50b13c750a5f844b8171cb118a

Change-Id: I60dad0674b89a11cf23a38a2b8e025afab5535b7
2021-04-01 16:56:26 +00:00
Treehugger Robot
9864e155a8 Merge "[LSC] Add LOCAL_LICENSE_KINDS to frameworks/base" am: 7226ad3729 am: a087245e03 am: 3dd40d172b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1661581

Change-Id: I99cb5fd94c4ee02688709ad00e3ffbc3e2f388e7
2021-04-01 13:47:07 +00:00
Bob Badour
de423b7a58 [LSC] Add LOCAL_LICENSE_KINDS to frameworks/base
Added SPDX-license-identifier-Apache-2.0 to:
  drm/java/Android.bp
  graphics/java/Android.bp
  identity/Android.bp
  identity/java/Android.bp
  keystore/java/Android.bp
  location/java/Android.bp
  location/tests/Android.bp
  lowpan/java/Android.bp
  media/mca/effect/java/Android.bp
  media/mca/filterfw/java/Android.bp
  media/mca/filterpacks/java/Android.bp
  mime/java/Android.bp
  mms/java/Android.bp
  opengl/java/Android.bp
  rs/java/Android.bp
  sax/java/Android.bp
  services/tests/servicestests/test-apps/PackageParsingTestManifests/Android.bp
  telecomm/java/Android.bp
  telephony/common/Android.bp
  tests/FlickerTests/test-apps/Android.bp

Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to:
  telephony/java/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I2ee0af9ce8f74de2172b359b41d2c52a8b8f7e6c
2021-03-31 19:55:25 -07:00
Vadim Tryshev
f2ab932abf Merge "Revert "Enable new ripple"" into sc-dev 2021-04-01 02:26:37 +00:00
Vadim Tryshev
cd26c64db7 Revert "Enable new ripple"
Revert "Temporarily force test on a device"

Revert submission 13921422-enable_next_ripple

Reason for revert:
The revert fixes the leak b/183950010.
Proof:
* Running last good build + the CL we are reverting results in the leak.

* The revert was tested on Bonito. The result without the revert is failing: https://android-build.googleplex.com/builds/tests/view?invocationId=I95600008189690647&redirect=https%3A%2F%2Fsponge2.corp.google.com%2Fceb67817-a049-41f8-b127-719a8b4fec50&testPackage=com.android.launcher3.ui

The result of TOT + revert (https://android-build.googleplex.com/builds/branch-dashboard/git_master?build_id=P21324441) is passing:
https://android-build.googleplex.com/builds/forrest/run/L11500000848549427

Reverted Changes:
I928ba73c9:Enable new ripple
I17393431a:Temporarily force test on a device

Change-Id: I865e05c2c569202f6e8ab545936c1b74db6a18f7
Bug: 183950010
Test: presubmit, forrest
2021-04-01 01:10:57 +00:00
Lucas Dupin
f8dc7809a4 Merge "Make ripple sparkles less prominent" into sc-dev 2021-03-31 23:31:50 +00:00
Lucas Dupin
3e34288001 Make ripple sparkles less prominent
Test: visual
Bug: 184188444
Change-Id: Ieac0a7e7ff389f16bc4e42c14ea94182cec44c38
2021-03-31 13:48:10 -07:00
Anton Hansson
5013902a24 Merge changes I97086e30,Ic55df4cf,I81a08c29 am: 4199ef90b9 am: 4bc578052d am: ec1f981309
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1655736

Change-Id: I5d242cf5b18c4b556105cfcfe78df2ac18a8544e
2021-03-31 18:01:32 +00:00
Lucas Dupin
19f026c222 Merge "Do not scale down sparkles" into sc-dev 2021-03-31 02:43:53 +00:00
Lucas Dupin
9b1bcd73b0 Do not scale down sparkles
Doing so creates artifacts on PenTile displays.

Test: visual
Fixes: 184074874
Change-Id: I11d90d2fb9c1d21c96a7cc7383452fa7d184c7f2
2021-03-30 18:03:11 -07:00
Seigo Nonaka
38fbc56351 Use separate XML for update config in system
This CL is a refactoring to address following things:
- Separate XML definition of fonts.xml and update.
  Since there are lots of concept mismatches between system font config
  and update config, e.g. file paths, family variants, etc.
  It is good to manage separtely.

- Stop keeping udpated config in memory in FontManagerService.
  As a side effect of above change, FontManagerService no longer keeps
  FontConfig.FontFamily mappings. This will be created from XML file
  when necessary. This is better in FontManagerService since this map
  is only necessary the boot time. After the system is booted, this
  map is only necessary when the update request is called from client
  which happens quite rare.

Bug: 183752879
Test: atest UpdatableFontDirTest
Test: atest FontManagerTest
Test: atest UpdatableSystemFontTest
Test: atest FontFamilyUpdateRequestTest
Test: atest PersistentSystemFontConfigTest

Change-Id: If2c12a8029f859efc52721b07cfeab04be2deb78
2021-03-30 13:46:00 -07:00
Anton Hansson
9b2c4a650b Move framework java filegroups into subdirectories
All the java code used to build the framework jar and run metalava
was previously defined in the toplevel Android.bp files. Move these
into the subdirs where the source actually lives.

This simplifies the rules themselves (no path and needless prefix) and
declutters the top level Android.bp.

Test: m
Change-Id: I97086e309eacb879d16facb8497d9940fa5ddaf6
2021-03-30 12:26:55 +01:00
Lucas Dupin
2dc5e2b4f6 Merge "Enable new ripple" into sc-dev 2021-03-25 21:22:01 +00:00
TreeHugger Robot
13c7ee178e Merge "Ripple position of slider is incorrect" into sc-dev 2021-03-25 16:40:57 +00:00
Jay Aliomer
7d85995f66 Ripple position of slider is incorrect
modified how hotspot bound changes get handled

Fixes: b/183579918

Test: manual testing
Change-Id: I8c8f09ab4d8ea24555f02e1cd67bae4a0a2dc48a
2021-03-24 17:10:57 -04:00
TreeHugger Robot
a411746184 Merge "Preload font files based on device locale" into sc-dev 2021-03-24 19:52:50 +00:00
Nader Jawad
eae4a200d1 Merge "Fix NPE in GradientDrawable#getCornerRadii." into sc-dev 2021-03-24 17:52:18 +00:00
Jordan Demeulenaere
165995bebe Fix NPE in GradientDrawable#getCornerRadii.
Bug: 183603359
Test: atest GradientDrawableTest
Change-Id: Ia81adff60e3e9831f0119826636e75f57420932f
2021-03-24 15:40:15 +01:00
Lucas Dupin
891be74c10 Ripple UX feedback
- update ring function
- make sparkles larger
- make sparkles visible at the beginning of the animaiton

Test: visual
Fixes: 182172654
Change-Id: Ia40beebda6e5ee70d85c163eda68a8af2792ddbd
2021-03-23 21:09:40 -07:00
Seigo Nonaka
7a1c1b2cfc Preload font files based on device locale
Bug: 181692010
Test: manually done
Change-Id: If4d03542fd905aed0e4578486dcf68d1535676f5
2021-03-23 18:29:58 -07:00
John Reck
3a38f4572e Merge "Fix thread-shared field evades lock acquisition reported by Coverity" am: 66fc99d578 am: 7427d997f6 am: 7ed71bc418
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1646974

Change-Id: Ifa2be5367a1afcb9803fe129951cf6c66ce30cc0
2021-03-23 20:35:10 +00:00
TreeHugger Robot
e289502447 Merge "Remove legacy disable triple buffering config" into sc-dev 2021-03-22 19:39:44 +00:00
Xu Qian
2d33d70352 Fix thread-shared field evades lock acquisition reported by Coverity
Change-Id: Ia351e2ddc79a3f8e1b47ed1e697a2d24b2a3ebe7
2021-03-22 12:59:21 +08:00
Lucas Dupin
49a06ae96f Enable new ripple
Fixes: 183150223
Test: manual
Test: atest -it CtsGraphicsTestCases
Change-Id: I928ba73c9bcbb034760cb75841b54bbaf86bb520
2021-03-19 17:44:43 +00:00
Lucas Dupin
6ed8197ff8 UX feedback for ripple
- Updated easings
- Made sparkles larger
- Made sparkles density independent
- Modified sparkle animation speed

Fixes: 182173639
Test: visual
Change-Id: I91b9f2dc9ffa19ce7b960129256be86eee217e8a
2021-03-19 10:17:31 -07:00
Nader Jawad
a225d21f7d Updated EdgeEffect parameters for overscroll stretch
Added dampening logic to caluclate the distance to
overscroll.
Updated StretchEffect to support independent
maximum stretch amounts for the x/y axis

Removed debugging parameters to configure
stretch distance since they are no longer
used. Removed hidden API calls to configure
stretch distance in ScrollView/HorizontalScrollView

Bug: 179047472
Test: re-ran EdgeEffectTests
Change-Id: I4698669273d364695a21c2cce00ec2cfec41b2cc
2021-03-18 22:41:42 -07:00
Vishnu Nair
947fee291d Remove legacy disable triple buffering config
The config changes the dequeue limit of BQ (setMaxDequeuedBufferCount) from 2 to 1,  decreasing the default size of the queue from (3 to 2).
Some of the motivations behind this change include:
- not applicable in most scenarios since producers in the system override this
- breaks async mode, not well tested in other scenarios
- simplifying some of the implementation and removes a configuration/flag.

Clients can still manually call setMaxDequeuedBufferCount if they wish.

Test: presubmit
Fixes: 182314340
Change-Id: I724218d14ad106a4b7af69f7eacf97fae3c93923
2021-03-16 10:05:52 -07:00
Lucas Dupin
0feb52d5a9 Slow down sparkles and make them more sparse
Sparkles were moving too fast, and were also very dense. They were
looking like TV static.

Test: visual
Bug: 182173639
Change-Id: I9dc1de92e7cc9d56f999a9719f1fae8ff41404c5
2021-03-16 00:37:48 -07:00
Lucas Dupin
b9610108d5 Fix issue where ripple would move
The correct behavior is for the circle to move inside the RenderNode
bounds. The RenderNode itself should not move at all.

Fixes: 182174260
Test: visual
Change-Id: I254138cada2586312530122fcb9ba4518d864cdf
2021-03-15 23:47:58 -07:00
Lucas Dupin
516e54a8a7 Merge "Further shader optimizations" into sc-dev 2021-03-12 16:46:37 +00:00
TreeHugger Robot
0b509e9e12 Merge "Use correct extension based on file contents." into sc-dev 2021-03-12 03:13:56 +00:00
TreeHugger Robot
5774fa63b2 Merge "Expose shared memory related APIs for testing purpose" into sc-dev 2021-03-12 01:38:16 +00:00
Lucas Dupin
916a9c6c10 Further shader optimizations
- Removed unused variable and function
- Made output colors premultiplied

Test: visual
Fixes: 182417605
Change-Id: Ie8caecd08a3cd1a784203ad2e5010fc741ff7f86
2021-03-11 11:18:09 -08:00
Lucas Dupin
10f93838bb Hide ripple style APIs
UX decided that there should only be 1 ripple style in the system.

Bug: 167177623
Test: make
Test: cts
Change-Id: I6483f58d9c8333aad37308a8de903a8f59150870
2021-03-10 20:09:17 -08:00
Seigo Nonaka
991f134df3 Expose shared memory related APIs for testing purpose
Bug: 179697509
Test: atest TypefaceTest
Change-Id: Ie1729574f46d653ce07263581626e0483f1bdd3b
2021-03-10 15:22:49 -08:00
Lucas Dupin
a331c3390f Merge "Update ripple spec" into sc-dev 2021-03-10 19:10:58 +00:00