History log of /frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/CompositeDrawable.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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/src/android/support/v17/leanback/graphics/CompositeDrawable.java
27644c071b7fc0e1e4f91194f2a08b4aa2cf1465 05-Mar-2017 Aurimas Liutikas <aurimas@google.com> Remove unused imports in support library classes.

Test: ./gradlew assebmle assembleAndroidTest
Change-Id: I429f0abb742bfed9288f84a7d6a3208063068f23
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/CompositeDrawable.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/src/android/support/v17/leanback/graphics/CompositeDrawable.java
0800a58729f5fdc6e399cbd299fbbc7442dbdb38 13-Feb-2017 Aurimas Liutikas <aurimas@google.com> resolve merge conflicts of 3be4cef3e4 to master

Change-Id: Ib5e4df4aba3637a51777ee167eed5bb9a8d99913
44ece5ceaaee232f9139ccbde40ac4a5e642bdee 12-Feb-2017 Christophe Beyls <software@digitalia.be> Fixed various it's -> its typos in comments and documentation

Test: None
Change-Id: I25617e1cfe26cdeacaa54040676a7abff475478e
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/CompositeDrawable.java
28f32a294cf077dd4c681f24581b3eec902ec633 30-Jan-2017 Dake Gu <dake@google.com> Leanback: parallax and details video API refactoring
am: e1cde4d4ac

Change-Id: I9f1111e1e895087430cede7607aebf488c159b0e
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/src/android/support/v17/leanback/graphics/CompositeDrawable.java
e22ae93397361d1bd5568fa51d82e2f7553712e1 08-Dec-2016 Alan Viverette <alanv@google.com> Remove unnecessary @TargetApi annotations

Bug: 33412815
Test: ./gradlew assemble
Change-Id: I0be3358fb97d6e637357c253f3f43f39355a643a
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/CompositeDrawable.java
fe4317c9f0492c67e2ee48e3d135f649f5f1fc5c 29-Nov-2016 Dake Gu <dake@google.com> leanback: hide embedded video, parallax, CompositeDrawable

Hide the new classes/methods before finalizing APIs.

Change-Id: I3b6660a60457821f9e5e7aa40b5e98f16fb0baff
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/CompositeDrawable.java
450fe7ab2d8a911ecdc335d55c60dfbae70f2407 07-Oct-2016 susnata <susnata@google.com> Fixing the bug (cloning) with CompositeDrawable.

We were not copying the boundsrule while cloning
child drawables inside CompositeDrawable.

Test: CompositeDrawableTest
Change-Id: Idd320792473509050b9da2fc6443b446cffc2fe7
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/CompositeDrawable.java
738deb3f9c75ea32dff1bf335753703e40e87f39 28-Sep-2016 Dake Gu <dake@google.com> lenaback: Fix Details parallax on different screen resolution

DetailsFragment is using absolute value for aligning overview row.
Make parallax also use absolute value.
Fix NPE in CompositeDrawable Property when get() is called before set().
Fix NPE in DetailsTestFragment delayed handler.

Test: passed unit test on API 19, API 23, API 24 with different
resolutions
Bug: 31771962

Change-Id: Id97c0649f7c851cf9906c42aa607ecc55ce4ef20
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/CompositeDrawable.java
3103f63e99d47573823957f7aa34308555873221 20-Sep-2016 Aurimas Liutikas <aurimas@google.com> Fix all operator wrapping issues in leanback library.

Test: code still compiles, there should be no code/logic changes.
Change-Id: I6e97e2ba429c323022055263540c3fb6d0003822
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/CompositeDrawable.java
00f780c9e3cca0b2e364c61e936147e09877c43f 14-Sep-2016 Dake Gu <dake@google.com> Fix Leanback NPE: Add getConstantState().newDrawable() support

Added getAlpha() support.
Also removed accidentally exposed member variable from API.

Test: added

Bug: 31468977

Change-Id: I20197d580141b191758dc37efbbc1213cb469e11
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/CompositeDrawable.java
15c3f439b0dad70925e5fec0508a17976b881dab 28-Jul-2016 susnata <susnata@google.com> Fixing build by updating broken link in javadoc.

Change-Id: Ib0be84acff6f32ce1cbeb2006de442a9bfe398b7
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/CompositeDrawable.java
e464e5647326c000d2bd48e7d4369a279894f360 27-Jul-2016 susnata <susnata@google.com> Fixing build breakage (adding missing public api)

Change-Id: I854e5c91cb7f27d3394f87061b08385f3a8095d5
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/CompositeDrawable.java
3d9017263a760990ba79d5ebf3d1b6587e0bd311 22-Jul-2016 susnata <susnata@google.com> Refactoring CompositeDrawable to support any child drawable.

Following the pattern in LayeredDrawable, I created a wrapper
class to hold the drawable objects and used CompositeDrawable
as a pass through mechanism to it's child drawables. This way
will allow us to use any drawable object in CompositeDrawable.

Change-Id: I25719dca55b9a11223ae65742af6730be2948530
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/CompositeDrawable.java
df64e524a2bad079e6b0aa2d22c287f2c62aed82 15-Jul-2016 susnata <susnata@google.com> Revert "Revert "Creating a generic drawable class that will be used for parallax effect.""

This reverts commit 31986ef8ab6ed7fb902aee7fd836542f78f8bae2.

Change-Id: Ie9d1980f538ecf6e3067986906dc4197b4b41f4d
/frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/CompositeDrawable.java