• Home
  • History
  • Annotate
  • only in /frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/
History log of /frameworks/support/v17/leanback/src/android/support/v17/leanback/graphics/
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
oundsRule.java
ompositeDrawable.java
27644c071b7fc0e1e4f91194f2a08b4aa2cf1465 05-Mar-2017 Aurimas Liutikas <aurimas@google.com> Remove unused imports in support library classes.

Test: ./gradlew assebmle assembleAndroidTest
Change-Id: I429f0abb742bfed9288f84a7d6a3208063068f23
ompositeDrawable.java
2656ae585662d63454ca757c2f33336fa58062fa 06-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Re-enable lint enforcement, fix remaining lint issues"
c69882cb9b130902c1554ef5d3e3b06d776cd796 05-Mar-2017 Alan Viverette <alanv@google.com> Re-enable lint enforcement, fix remaining lint issues

Bug: 29630077
Test: ./gradlew lint
Change-Id: Ied1e4b1c33ba158d6bfab5439497ee4fc8284a8f
itWidthBitmapDrawable.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
ompositeDrawable.java
itWidthBitmapDrawable.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
ompositeDrawable.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
oundsRule.java
ompositeDrawable.java
itWidthBitmapDrawable.java
e22ae93397361d1bd5568fa51d82e2f7553712e1 08-Dec-2016 Alan Viverette <alanv@google.com> Remove unnecessary @TargetApi annotations

Bug: 33412815
Test: ./gradlew assemble
Change-Id: I0be3358fb97d6e637357c253f3f43f39355a643a
ompositeDrawable.java
bc97de4b587ef0a53a88400c346ac959b4746702 29-Nov-2016 Dake Gu <dake@google.com> leanback: hide BoundsRule

Fix build.

Change-Id: I7d4aaa3155b5e6979a62eb687714821a3d780ab3
oundsRule.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
ompositeDrawable.java
itWidthBitmapDrawable.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
oundsRule.java
ompositeDrawable.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
ompositeDrawable.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
ompositeDrawable.java
itWidthBitmapDrawable.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
ompositeDrawable.java
itWidthBitmapDrawable.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
etailsBackgroundParallaxHelper.java
8be7e7b0b81450f406354f4672d0e0cf7138e127 30-Jul-2016 Dake Gu <dake@google.com> fix doc build

Change-Id: I3e3c80cfa03db0c5bc2e774a2cd3c58d85983846
oundsRule.java
etailsBackgroundParallaxHelper.java
ae737d014a839329353b8055bcf0d49424e92430 29-Jul-2016 susnata <susnata@google.com> Remove unused files from leanback graphics package.

Change-Id: Ida9206971a1c28c18a8087d11597012b364f3caf
olorRegionDrawable.java
egionDrawable.java
15c3f439b0dad70925e5fec0508a17976b881dab 28-Jul-2016 susnata <susnata@google.com> Fixing build by updating broken link in javadoc.

Change-Id: Ib0be84acff6f32ce1cbeb2006de442a9bfe398b7
ompositeDrawable.java
935b033edfd9d03129fce6a5b7a1d3a327b74f91 28-Jul-2016 susnata <susnata@google.com> Providing a generic way to define the parallax behavior in DF.

Change-Id: I89afcec08425dbf1c20f12b0d5112d7dfa2d1ac2
etailsBackgroundParallaxHelper.java
itWidthBitmapDrawable.java
e464e5647326c000d2bd48e7d4369a279894f360 27-Jul-2016 susnata <susnata@google.com> Fixing build breakage (adding missing public api)

Change-Id: I854e5c91cb7f27d3394f87061b08385f3a8095d5
ompositeDrawable.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
itmapRegionDrawable.java
oundsRule.java
ompositeDrawable.java
itWidthBitmapDrawable.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
itmapRegionDrawable.java
oundsRule.java
olorRegionDrawable.java
ompositeDrawable.java
egionDrawable.java
31986ef8ab6ed7fb902aee7fd836542f78f8bae2 15-Jul-2016 Susnata Basak <susnata@google.com> Revert "Creating a generic drawable class that will be used for parallax effect."

This reverts commit 7928d0f20ec72b748413cf643687012c202336be.

Change-Id: I3446b137053d649a53ad9a768ceb78fea0185823
ackgroundDrawable.java
itmapRegionDrawable.java
oundsRule.java
egionDrawable.java
olidRegionDrawable.java
7928d0f20ec72b748413cf643687012c202336be 13-Jul-2016 susnata <susnata@google.com> Creating a generic drawable class that will be used for parallax effect.

Parallax effect will be implemented by updating the background
drawable for a fragment/activity. This CL provides us a way to
represent the background drawable and to update it when the ui
state changes.

Change-Id: I650773537039031ec41a1a88ae4c635d5cdeec5e
ackgroundDrawable.java
itmapRegionDrawable.java
oundsRule.java
egionDrawable.java
olidRegionDrawable.java
131ea1bf320a60591383cc6d8831c38e13b31b2b 20-Aug-2014 Tim Kilbourn <tkilbourn@google.com> Make dim color & opacity into theme settings.

Bug: 14617546
Change-Id: Ie809ae1a7bc6c5a05168558394672b24f3083866
olorFilterDimmer.java
olorOverlayDimmer.java
7cc1c375d3bbfeacfcc3259e77671ae24f610d33 11-Apr-2014 Tim Kilbourn <tkilbourn@google.com> Update javadoc for the leanback graphics package.

Change-Id: I0dc5011126ad69eef95cb9db9ef4a633d4cd0b3d
olorFilterCache.java
olorFilterDimmer.java
olorOverlayDimmer.java
5b882ac46cc2ee851de04dadbd9bdc8fe946d9da 22-Mar-2014 Andrew Wilson <anwilson@google.com> fix initial dim color

Change-Id: I4866dd2ca19bb964baca21c984c1e06ea7ad7d85
olorOverlayDimmer.java
cf94c5fa8ae8edb7e26a623133207415ceeed187 20-Mar-2014 Dake Gu <dake@google.com> add support of row select animation

Row select animation is controlled in RowContainerFragment that
is not recommended to override. Developer can override the default
dim effect either as a subclass of RowPresenter or subclass
of ListRowPresenter. We also provide helper classes:
ColorFilterDimmer and ColorOverlayDimmer that developers might use
for their own dim effect.

Change-Id: I1982aa193ccf04be557187a6338feefbd675710a
olorFilterCache.java
olorFilterDimmer.java
olorOverlayDimmer.java