8d3e223e8023bbb0902a13745d5ab961e196540e |
|
07-Mar-2017 |
Dake Gu <dake@google.com> |
resolve merge conflicts of ec6f358e25 to master Change-Id: Idb5f4da1ddd439b0ae6d31799d5faef43a44ecc9
|
bf4318c67254bc11307796601b9fb4a8bbfe67b2 |
|
21-Feb-2017 |
Dake Gu <dake@google.com> |
Parallax: API factorying and add direct mapping Remove six classes from api file: Parallax.IntParallax, Parallax.FloatParallax Parallax.IntPropertyMarkerValue, Parallax.FloatPropertyMarkerValue, ParallaxEffect.IntEffect parallaxEffect.FloatEffect. Remove methods Parallax.verifyProperties ParallaxTarget.getFraction from API file The standard parallax mapping converts value of source into 0~1 fraction then convert it back to target value. This is not only inefficient but also causing rounding errors. Added a concept of ParallaxTarget.isDirectMapping(). When true, ParallaxEffect bypass the fraction calcuation and directly passes value from source Property to ParallaxTarget.updateValue(Number). Now DetailsFragment uses direct mapping for changing child drawable's bound. Fix the bug that ValuesRule's type is unmodifiable. Bug: 35933446 Bug: 32022097 Bug: 35632609 Test: DetailsFragmentTest.parallaxTest ParallaxIntEffectTest.testDirectMapping CompositeDrawableTest Change-Id: Ibd89ba6621fc0804ea24cba099b6d2e6bf3fccc9
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/ParallaxIntEffectTest.java
|
e2104f4b5c8e3ad63570306a25e61502dfe4c418 |
|
05-Mar-2017 |
Aurimas Liutikas <aurimas@google.com> |
Add all missing @Override annotations. Historically, we could not add @Override for certain methods due to using older SDKs to build support library. That is no longer the case so we can add @Override everywhere now. Test: ./gradlew assemble assembleAndroidTest still works Change-Id: I85e3c1157f0e253e3eab7584189f3bf95cf030e9
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/ParallaxIntEffectTest.java
|
e1cde4d4ac42a6e9e16aad2b4df970c7c7d0771c |
|
21-Dec-2016 |
Dake Gu <dake@google.com> |
Leanback: parallax and details video API refactoring There are too many new concpets introduced when we create multiple building blocks around parallax. This CL tries to get rid of some classes. 1. Remove class ParallaxSource, integrated into Parallax. So there is no more setSource()/getSource(). 2. Replace DetailsParallaxManager with DetailsParallax. It is no longer a manager pattern but DetailsParallax is a direct subclass of Parallax. 3. Replace DetailsBackgroundParallaxHelper with DetailsParallaxDrawable which is a direct subclass of CompositeDrawble. No more helper concept. 4. remove the glue creation API from DetailsFragment, those are not necessary and app can do it on the side. The summary of new classes: 1. Parallax, tracks multiple UI events and perform multiple ParallaxEffects on ParallaxTargets. RecyclerViewParallax is a subclass of Parallax that monitors RecyclerView child positions. 2. DetailsParallax is a subclass of RecyclerViewParallax, DetailsFragment holds the DetailsParallax object and is responsible to attach it to VerticalGridView and sync with Transition animation. DetailsParallax is shared by both background bitmap and video. 3. Created a DetailsFragmentBackgroundController class responsible for parallax background and embedded video playing. Bug: 33750080 Bug: 33751156 Test: all existing leanback tests Change-Id: Iec81a444d5d4fbeb675f16222b09b407acf007a2
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/ParallaxIntEffectTest.java
|
754cb29c50f09a83251dd4bb633ba445b2411adb |
|
27-Sep-2016 |
Aurimas Liutikas <aurimas@google.com> |
Switch from deprecated size annotations to new ones. Switching from android.test.suitebuilder.annotation.*Test to android.support.test.filters.*Test. Bug: 30074170 Test: manual - ran small appcompat tests, they still run and pass Change-Id: Idce58b988c8e1a809f7f5fae67e0e235159d9fc5
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/ParallaxIntEffectTest.java
|
35a680402b90f786b912cead8b23ecca4ab7c692 |
|
05-Aug-2016 |
Dake Gu <dake@google.com> |
Fix build for Parallax test Change-Id: I17e0b17d0e07f198d578de4abc9bd95c6c6a3fd3
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/ParallaxIntEffectTest.java
|
3778c4eaa62895085d33965ee391c8b21783cffa |
|
29-Jul-2016 |
Dake Gu <dake@google.com> |
leanback: Refactoring ParallaxSource to use Property Removed "Variable", replaced with "Property", move the stored int/float values into ParallaxSource. Property contains an index to retrieve value from ParallaxSource. Let the ParallaxRecyclerViewSource to subclass Property to add definitions of how to track a view position on screen. Bug 30476379 Change-Id: Id442f32177edfbcd21eb98a98d2b6ed8021d666b
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/ParallaxIntEffectTest.java
|
46ae6eb27de10f019258fe197c794cf2234abe5d |
|
27-Jul-2016 |
susnata <susnata@google.com> |
Fix bug with non-linear update in ParallaxTarget. By default ObjectAnimator uses accelerateDeccelerate interpolator, which causes issues with our parallax behavior. This fix sets LinearInterpolator as the default interpolator in ObjectAnimator. Change-Id: I747df4616b6c453f2dec2412b51b6654270a7efa
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/ParallaxIntEffectTest.java
|
770847c0c8424175f0619026615b11fef50ca269 |
|
19-Jul-2016 |
Dake Gu <dake@google.com> |
Make Parallax working and add Parallax Tests Change-Id: I8909a090a8648e50faf84f3c4c5a3a0d6840da56
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/ParallaxIntEffectTest.java
|