• Home
  • History
  • Annotate
  • only in /frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
History log of /frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
8b0439505202fd21c595c21dded4cebebe8bfdea 25-Sep-2017 Dake Gu <dake@google.com> eanback: remove deprecated PlaybackOverlayFragment related classes

Bug: 66707813
Test: N/A
Change-Id: I6911fc04ea6833fc39ee905b5ab19b5a22860a72
etailsFragment.java
etailsSupportFragment.java
ainActivity.java
ewDetailsFragment.java
ewDetailsSupportFragment.java
laybackControlHelper.java
laybackControlSupportHelper.java
laybackOverlayActivity.java
laybackOverlayFragment.java
laybackOverlaySupportActivity.java
laybackOverlaySupportFragment.java
4d51b3edf17e8556acc31730ce4151183ae753cc 25-Sep-2017 Dake Gu <dake@google.com> leanback: Fix build failure

Bug: 66707813
Test: N/A
Change-Id: If57b560b50cb528d0cc418c08499c5df154b3e82
ampleSupportVideoFragment.java
05c5cd560b418548e2bced1d16b81fd562fa4cbe 11-Sep-2017 Jingjiang Li <jingjiangli@google.com> Merge "Fix NPE when the media session is not created" into oc-mr1-dev
3328f176e60e89c61d74651d2242321247ef8960 09-Sep-2017 jingjiangli <jingjiangli@google.com> Fix NPE when the media session is not created

Fix the Null Pointer Exception when the meida session object is not
created

Bug: 65486033
Test: Existing tests still pass.
Change-Id: Iefe8369c53dba97170ae0b03077196b8ccd7e84a
laybackTransportControlGlueSample.java
08a38559a3751252fc8a1f36db0a431508a8f7d5 31-Aug-2017 jingjiangli <jingjiangli@google.com> Add payload support in leaback adapter/presenter onBind

In this cl, the payload support is added to leanback adapter/ presenter
for partial update.

Bug: 65129401
Test: ObjectAdapterTest

Change-Id: I641fc3895187eccb6ea7bdc6db8185597fd1283e
ardPresenter.java
earchFragment.java
earchSupportFragment.java
b7cb72c07c9fd2731d1ca09fe2287e7c4298cd49 01-Sep-2017 Hyundo Moon <hdmoon@google.com> Merge "Deprecate PlaybackState.ACTION_SET_SHUFFLE_MODE_ENABLED" into oc-mr1-dev
bd2d1474b96d3045aa1048e06d9debced798455b 30-Aug-2017 Hyundo Moon <hdmoon@google.com> Deprecate PlaybackState.ACTION_SET_SHUFFLE_MODE_ENABLED

As setShuffleModeEnabled() is deprecated in ag/2155176, this CL
deprecates PlaybackState.ACTION_SET_SHUFFLE_MODE_ENABLED and adds a new
constant PlaybackState.ACTION_SET_SHUFFLE_MODE.

Bug: 65155643
Test: Passed PlaybackStateCompatTest
Change-Id: I78be1b431be23cf3a624284139ff4314585e1d08
ediaSessionService.java
laybackTransportControlGlueSample.java
57ac90cf3fc528ac56b6b83718541624173b1368 30-Aug-2017 jingjiangli <jingjiangli@google.com> Add DiffUtil support in ArrayObjectAdapter

A method setItems (List newItems ...) is added which avail DiffUtil to
dispatch the content's change efficiently

Also, the bug in unmodifiedList() method is fixed (previously the
unmodified list will be re-created every time when this method is called)

Bug: 65129232
Test: ObjectAdapterTest
Change-Id: Ib9fe636d3d6e3ee44d1a824c762aa030e00f24df
uidedStepSupportActivity.java
hotoItem.java
ampleVideoSupportFragment.java
earchFragment.java
earchSupportFragment.java
16248e64d407edcead2b8ae54d526e409e02a992 23-Aug-2017 jingjiangli <jingjiangli@google.com> Expose onUpdateProgress() and onUpdateBufferedProgress() methods

In this CL, methods onUpdateProgress() and onUpdateBufferedProgress() is
exposed from PlaybackBaseControlGlue class. So sub class can extend it
for customization.

Bug: 64935838
Test: Existing tests still pass.
Change-Id: I27f4fc5521882857abfea6ff7d48224241600178
laybackTransportControlGlueSample.java
ampleVideoFragment.java
ampleVideoSupportFragment.java
306fba1d4665743f6b4f6e609fb2565e25c14c71 16-Aug-2017 jingjiangli <jingjiangli@google.com> Fix multiline rendering bug

In this cl, we have fixed multiline rendering bug by updating input type

Bug: 64474858

Test: testWhenMultiLineDescriptionSetToTrue

Change-Id: Iaa5234d418962b9c47e05dc3bd6ccb5afc841af9
uidedStepActivity.java
dbe6c87619d7543e819e55a7cfcb05dd0a9c7266 24-Jul-2017 jingjiangli <jingjiangli@google.com> Implement MediaControllerAdapter.

The main task for this CL is to implement MediaControllerAdapter.
So the controller glue can use it directly without modifying UI.

Related File Changes Are:
1. Controller Adapter and Test cases to exercise all APIs

v17/leanback/src/android/support/v17/leanback/media/MediaControllerAdapter.java
v17/leanback/tests/java/android/support/v17/leanback/media/MediaControllerAdapterTest.java

Aslo, to make sure glue can be notified when meta data is changed, onMetaDataChanged has been
added to the callback class, related changes can be found from

v17/leanback/src/android/support/v17/leanback/media/PlaybackBaseControlGlue.java
v17/leanback/src/android/support/v17/leanback/media/PlayerAdapter.java

2. An app (music player) was created on top of our sample app for actual test purpose.
Related changes are:

src/com/example/android/leanback/mainactivity.java
src/com/example/android/leanback/mediasessionservice.java
src/com/example/android/leanback/musicexampleactivity.java
src/com/example/android/leanback/musicitem.java
src/com/example/android/leanback/musicplayerfragment.java

Other changes are basically some raw data (media item and media art) required by this app.

Bug: 37748716

Test: MediaControllerAdapterTest

Change-Id: Ifb542c4157f44cb847ae1fd60193f71b538e0306
ainActivity.java
ediaSessionService.java
usicExampleActivity.java
usicItem.java
usicPlayerFragment.java
612180118780754179c086f21a8319a9d0c94d22 10-Jul-2017 jingjiangli <jingjiangli@google.com> Decreasing Spacer's height in Controls Card Right Panel

In this CL, the height of Spacer has been decreased so the
description text in right control panel won't be collapsed.

Also a new component in sample app has been created for verify
and testing purpose.

Bug: 28003943
Test: Existing unit tests still pass.

Change-Id: I4d0d71baf4791c316d4f698f425ec31c5377bc67
ainActivity.java
ideoActivityWithDetailedCard.java
ideoConsumptionWithDetailCardFragment.java
60e00f895b6f4dd25f181f377adf98e0715be4b6 01-Jul-2017 Dake Gu <dake@google.com> leanback lint fixes

Bug: 63038444
Test: existing test

Change-Id: I96528cfe857d4d8feb13318c093df4c327c0713d
etailsPresenterSelectionActivity.java
946a01cfedb6838e98d7a37e30f64c39b603893d 12-May-2017 Dake Gu <dake@google.com> Fix constant in PlaybackControlGlue Actions.

The values are ment to be constant.

Bug: N/A
Test: N/A

Change-Id: I1ba306fe02beb52f837748c5af75d0c1fffea991
laybackControlGlue.java
laybackControlHelper.java
laybackControlSupportHelper.java
laybackTransportControlGlueSample.java
ampleVideoFragment.java
ampleVideoSupportFragment.java
290cc49f6210525560e9d6c92fcca3789d28dd7c 29-Apr-2017 Dake Gu <dake@google.com> leanback: save events before attached to host

e.g. on buffering start was fired before glue is attached to host.
We should save the state and fire the event when attach to host.
Also updated embedded video playing sample: showing trailer initially
and switch to main video after purchase.

Bug: 37792058
Test: savePlayerAdapterEventBeforeAttachToHost

Change-Id: Ic5cd841cce2117f2d54eb0815c860d257f3c7fc9
ainActivity.java
ovieData.java
ewDetailsFragment.java
ewDetailsSupportFragment.java
ffddec570a27891c0e13d24b1558c6f61ed99fb9 24-Apr-2017 Dake Gu <dake@google.com> leanback demo: show case using real thumbnail bitmaps

Created a sample PlaybackSeekDataProvider to read video snapshots
from sdcard. Added instructions of how to use libav to generate
the snapshot files from a video.

Bug: None
Test: None
Change-Id: Ib7ce8a760735d221091a612d71458ead13059020
laybackSeekDiskDataProvider.java
ampleVideoFragment.java
ampleVideoSupportFragment.java
3bcad88cbf4488e747d84893c35f2351b8f84afe 21-Mar-2017 Dake Gu <dake@google.com> leanback: new transport controls

PlaybackTransportRowPresenter is the new UX.

PlaybackTransportControlGlue extends from PlaybackGlue.
PlaybackTransportControlGlue is backed by PlayerWrapper.
PlaybackWrapper wraps underlying media player,
concrete example: MediaPlayerWrapper.

PlaybackSeekDataProvider defines the data interface that app
provides to leanback.
PlaybackUI defines seeking interaction between
PlaybackTransportControlGlue, PlaybackGlueHost and the presenter.

more:
- added progress bar support for media loading.
- fixed vertical video proportion and support video size change.

Test: PlaybackTransportControlGlueTest
PlaybackTransportRowPresenterTest.
Updated SampleVideoFragment.

Bug: 33751556

Change-Id: I1d39c6f65d04121f8cb9c25fb7ce103e32355190
ainActivity.java
ewDetailsFragment.java
ewDetailsSupportFragment.java
laybackFragment.java
laybackOverlayFragment.java
laybackOverlaySupportFragment.java
laybackSeekAsyncDataProvider.java
laybackSeekDataProviderSample.java
laybackSupportFragment.java
laybackTransportControlActivity.java
laybackTransportControlFragment.java
laybackTransportControlGlueSample.java
laybackTransportControlSupportActivity.java
laybackTransportControlSupportFragment.java
layerAdapter.java
ampleSupportVideoFragment.java
ampleVideoFragment.java
ampleVideoSupportFragment.java
fa2e2acf79d791a90410025daad438968550d18c 31-Mar-2017 Alan Viverette <alanv@google.com> Remove unnecessary casts on calls to findViewById

Updates Android.mk where applicable.

Bug: 24137209
Test: make -j32
Change-Id: I04084b2d05ddd7afaa160a76efe0b0d0c8eb5f00
owsActivity.java
owsSupportActivity.java
444128e61403b8a3aa27b1e6577b6ffbacd53482 10-Mar-2017 Dake Gu <dake@google.com> Merge "leanback: Fix playback screen alignment" into nyc-support-25.4-dev
am: 0e9ccc9a9c

Change-Id: Ib814605326d3e3e69ca16aea81438a84a03355f5
5a4d3a98d681cc9042b28a923aa5a23a6b961998 09-Mar-2017 Dake Gu <dake@google.com> leanback: Fix playback screen alignment

Make playback row's bottom align to padding bottom.
Deprecate the paddingTop which isn't reliable since
playback row's height can change.

Add more test for playback fragment.

Bug: 36099789
Test: alignmentRowToBottom setupRowAndPresenterWithoutGlue
setupWithControlGlue

Change-Id: I202d31b897c2cc6ab8666842855623425ce70694
laybackFragment.java
laybackOverlayFragment.java
laybackOverlaySupportFragment.java
laybackSupportFragment.java
3649f8fb98e56cbdde7e9c5806312372b20a4d23 09-Mar-2017 Chulwoo Lee <chulwoo@google.com> Fix NPE in leanback demos

Test: No change
Bug: 32668139
Change-Id: Ib828b455d2addf9e589644236aec20902651e155
ewDetailsFragment.java
ewDetailsSupportFragment.java
27644c071b7fc0e1e4f91194f2a08b4aa2cf1465 05-Mar-2017 Aurimas Liutikas <aurimas@google.com> Remove unused imports in support library classes.

Test: ./gradlew assebmle assembleAndroidTest
Change-Id: I429f0abb742bfed9288f84a7d6a3208063068f23
rowseFragment.java
rowseSupportFragment.java
etailsDescriptionPresenter.java
nboardingActivity.java
nboardingSupportActivity.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
rowseFragment.java
rowseSupportFragment.java
etailsFragment.java
etailsSupportFragment.java
uidedStepActivity.java
uidedStepSupportActivity.java
ewDetailsFragment.java
ewDetailsSupportFragment.java
laybackFragment.java
laybackOverlayFragment.java
laybackOverlaySupportFragment.java
laybackSupportFragment.java
tringPresenter.java
erticalGridFragment.java
erticalGridSupportFragment.java
6e42870d0faf964faf0531425bfe91afcd6834ff 28-Feb-2017 Dake Gu <dake@google.com> SupportLeanbackDemos: continue fix lint error

Bug: 33007076
Test: run the demo app
Change-Id: Ic43b1ccd5a79c271051290f0d29244a8ff3adf2c
laybackFragment.java
laybackSupportFragment.java
4c78d0f4beb89792eb955aa4fae85a730966e6a4 28-Feb-2017 Dake Gu <dake@google.com> SupportLeanbackDemos: Fix Link Errors

Bug 33007076
Test: run the demo app

Change-Id: I39ca542e7d690fe14991db416e23c31961c6cd88
etailsPresenterSelectionActivity.java
uidedStepActivity.java
uidedStepSupportActivity.java
ewDetailsFragment.java
ewDetailsSupportFragment.java
laybackOverlayFragment.java
laybackOverlaySupportFragment.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
ewDetailsFragment.java
ewDetailsSupportFragment.java
5bcc058bb1aed2e88b38009e83084554cf2cd86b 29-Dec-2016 Dake Gu <dake@google.com> DetailsFragment: fix regression of missing title View

When title view and VideoFragment both exist, title view becomes
display only. When there is no VideoFragment, user can focus
to title view and do search, that is backward compatible with
behavior in 25.0.0

Bug: 33839988
Test: SupportLeanbackDemos DetailsFragmentTest

Change-Id: I52156993914a427d52b658ea10cd815632ca4fe3
ustomTitleView.java
etailsActivity.java
etailsCustomTitleActivity.java
etailsCustomTitleSupportActivity.java
etailsFragment.java
etailsSupportActivity.java
etailsSupportFragment.java
etailsVideoActivity.java
etailsVideoSupportActivity.java
ainActivity.java
ewDetailsFragment.java
ewDetailsSupportFragment.java
laybackOverlaySupportFragment.java
8f2df00092bacbb31c883023b242bc5738bea36f 14-Dec-2016 Keyvan Amiri <keyvana@google.com> Fixed playback row callback not notified in updateRowMetaData

onRowChanged callback was originally called from updateRowMetaData() in
PlaybackControlGlue. After switching to the new host, this callback was
not triggered if developers didn't use the new glue host.
This resulted in the playback row UI not being updated (e.g.
progress bar missing, no updates to media title).
Now triggered onRowChanged callback for PlaybackGlueHostOld and
PlaybackSupportGlueHostOld.
Also, updated the demo app to simulate preparing a media item and
checking whether the UI is propery updated.

Change-Id: I55b14b88a2d8e9c68af34b775c4eb7a93ee84da6
Fixes: 33559090
Test: ./gradlew support-leanback-v17:connectedCheck
-Pandroid.testInstrumentationRunnerArguments.class=android.support.v17.leanback.app.PlaybackControlGlueTest#testOnRowChangedCallback
./gradlew support-leanback-v17:connectedCheck
-Pandroid.testInstrumentationRunnerArguments.class=android.support.v17.leanback.app.PlaybackControlSupportGlueTest#testOnRowChangedCallback
laybackControlHelper.java
laybackControlSupportHelper.java
laybackOverlayFragment.java
laybackOverlaySupportFragment.java
ef05d5494fac2cc80f95d2627e1ec31615de360d 07-Dec-2016 Dake Gu <dake@google.com> Fix PlaybackOverlayFragment sample not work.

Restore the old PlaybackControlGlue code that bypass onItemViewClicked
if action is proceeded. This isn't a problem for new PlaybackControlGlue
which doesn't expose onItemViewClicked event.

Also add missing call to onCreateSecondaryActions.

Restore sample code for PlaybackOverlayFragment.

Bug: 33415386
Test: PlaybackControlGlueTest

Change-Id: Ic3747aee2adca0f056f610fb35261ef005f65fe1
ainActivity.java
laybackActivity.java
laybackControlGlue.java
laybackControlHelper.java
laybackControlSupportHelper.java
laybackFragment.java
laybackOverlayFragment.java
laybackOverlaySupportFragment.java
laybackSupportActivity.java
laybackSupportFragment.java
95ac470f2bbea06114a64906d95c0da7d9412db0 29-Nov-2016 Dake Gu <dake@google.com> API review: move PlaybackGlue classes into media package

Move PlaybackGlue, PlaybackControlGlue to new media package.
Move inner class PlaybackGlueHost to top level.

keep/deprecate old class PlaybackControlGlue, and make it
extends from the new media.PlaybackControlGlue class.

Renamed HostLifeCycleCallback to HostCallback.

Refactoring method name of media.PlaybackControlGlue:
createControlsRowAndPresenter -> onCreateControlsRowAndPresenter
createPrimaryActions -> onCreatePrimaryActions
added onCreateSecondaryActions.
The old methods still exist the app.PlaybackControlGlue.

Lots of javadocs.

Bug: 33002776
Test: PlaybackOverlayFragmentTest, SupportLeanbackDemos

Change-Id: Ic8fa29dd2191222977f663773d3cde038345109a
rowseSupportFragment.java
ewDetailsFragment.java
ewDetailsSupportFragment.java
laybackControlHelper.java
laybackOverlayFragment.java
laybackOverlaySupportFragment.java
ampleSupportVideoFragment.java
ampleVideoFragment.java
ampleVideoSupportFragment.java
0908efd712e79f77e0cf9307bd5c32753c855561 04-Nov-2016 Dake Gu <dake@google.com> Details Background improvement:

Add ParallaxManager.setRecyclerView() to allow create ParallaxManager
before fragment view is created. Updated sample app to setup
Parallax background/video effects in DetailsFragment.onCreate()

Add onCreateParallaxManager() for customize.

Clean up some unused code in BackgroundManager.

Bug: none
Test: SupportLeanbackDemos
Change-Id: I9945e4d893a12f4f2f48d44175d6e27a4f1d287d
ackgroundHelper.java
ewDetailsFragment.java
ewDetailsSupportFragment.java
181c8847d5a1169e26755ed690131333b7fff7e9 28-Oct-2016 Dake Gu <dake@google.com> Rework background manager and add TestCases

1. Simplify background layerDrawable from 5 layers to 2 layers.
Especially disable the DimLayer to reduce graphics burden.
2. Made release() in onStop() a default behavior to reduce
possible memory growing.
3. Top activity will inherit background from bottom activity,
but not the other way. This fixes the problem that BrowseActivity
inherits DetailsActivity's parallax background after returns from
it.
5. Add convenient method to query selected item in BrowseFragment.
6. updated samples to handle background change in opening/closing
header fragment and reapply background when returning to the
activity (onStart)
7. Added new BackgroundManagerTest

Bug: 32415435
Test: BackgroundManagerTest

Change-Id: I93a026d3e1437c93e22cf0a2fa456d0b3e5f15b7
ackgroundHelper.java
rowseActivity.java
rowseErrorActivity.java
rowseErrorSupportActivity.java
rowseFragment.java
rowseSupportActivity.java
rowseSupportFragment.java
etailsFragment.java
etailsSupportFragment.java
ewDetailsFragment.java
ewDetailsSupportFragment.java
ampleVideoSupportFragment.java
ideoSupportActivity.java
aa49439ba6276137f94fcdc1bf4f69b78833dad6 01-Nov-2016 susnata <susnata@google.com> Adding VideoFragment sample to SupportLeanbackDemo app.

Test: None
Change-Id: I1841fa357825bf7ab719a236b47e04aa21a72e6b
ainActivity.java
ampleSupportVideoFragment.java
ampleVideoFragment.java
ampleVideoSupportFragment.java
ideoActivity.java
ideoSupportActivity.java
c2168ad5902b189f3c634e47cd956f99df17fbab 20-Oct-2016 susnata <susnata@google.com> Fixing the background color issue on PlaybackOverlayFragment.

Change-Id: Iead87bb57c9ecfd0f6d633cb6268441dae971b35
laybackOverlayFragment.java
laybackOverlaySupportFragment.java
cc671dd3caac1d0cbf3f6999ab063c9ff1f297b2 18-Oct-2016 Dake Gu <dake@google.com> Add checkstyle:off flag

Test: None
Bug: 32243836

Change-Id: I5c28ee5b4623e25126518ceb99f17b5ee384cb76
rowseErrorSupportActivity.java
rowseSupportActivity.java
rowseSupportFragment.java
etailsSupportActivity.java
etailsSupportFragment.java
rrorSupportFragment.java
uidedStepSupportActivity.java
uidedStepSupportHalfScreenActivity.java
ewDetailsSupportFragment.java
nboardingDemoSupportFragment.java
nboardingSupportActivity.java
laybackOverlaySupportActivity.java
laybackOverlaySupportFragment.java
owsSupportActivity.java
owsSupportFragment.java
earchDetailsSupportActivity.java
earchSupportActivity.java
earchSupportFragment.java
erticalGridSupportActivity.java
erticalGridSupportFragment.java
2582363a9197a4f30277557330177e45b2aa0cd5 15-Oct-2016 susnata <susnata@google.com> Fix for NPE in PlaybackOverlayFragment (sample app).

Test: None
Change-Id: I29c4766c543f5ec50c2bc15352fa4d6e14822ba1
laybackControlHelper.java
4702556bfd15c9819a7b2af759aee0f719cd631f 11-Oct-2016 susnata <susnata@google.com> Adding video player to DetailsFragment.

Added VideoFragment for rendering videos to DetailsFragment.
Video playback will be configured by DetailsFragmentVideoHelper.
Parallax functionality will continue to be configured by
DetailsBackgroundParallaxHelper. ParallaxManager will be shared
between the helpers for running animations based on the position
of DetailsOverview view.

Updated LeanbackSupportDemo(NewDetailsFragment) sample code to
use the video player.

Test: None
Change-Id: Iaeee2caf3b7f3567e4a53ad76574db9adaa32ba0
ackgroundHelper.java
etailsActivity.java
etailsFragment.java
etailsSupportActivity.java
etailsSupportFragment.java
ewDetailsFragment.java
ewDetailsSupportFragment.java
laybackControlHelper.java
laybackOverlayFragment.java
laybackOverlaySupportFragment.java
ad3b46937808b5bf0afde9b5500af0d1f7e13149 05-Oct-2016 Keyvan Amiri <keyvana@google.com> Added Settings example to the SupportLeanbackDemos app

Created a Settings tab that showcases the latest preferences such
as SeekBarPreference. It also uses the same brand coloring for the
preferences title, category, as the coloring of the preference widgets.
Also, updated Makefile and build.gradle to include pref libraries.

Change-Id: Iaaac647fe869544d72dbead0ca6fb61dd8e42ccf
ainActivity.java
ettingsActivity.java
ettingsFragment.java
9daa79a86eb2f50966ee5277b1faa03c72f6ef8c 24-Sep-2016 Susnata Basak <susnata@google.com> Merge "Refactoring DetailsBackgroundParallaxHelper."
d7ba0d89531101088939239bb0339658dbe6c85b 19-Sep-2016 susnata <susnata@google.com> Refactoring DetailsBackgroundParallaxHelper.

Test: added DetailsParallaxManagerTest and existing unit tests pass.
Change-Id: I6c06ac944da6ffc62875c03edfa6f4fb21e5fee5
ewDetailsFragment.java
ewDetailsSupportFragment.java
b7087e036a48f5a3db28d02ff7f9b97fbbc46c4f 22-Sep-2016 Dake Gu <dake@google.com> SupportLeanbackDemos: Remove usage of deprecated methods

Minor style clean up.

Change-Id: I1857e46bbc093bc069a060b9d850b20fff13c1e1
ackgroundHelper.java
rowseAnimationFragment.java
rowseErrorActivity.java
rowseErrorSupportActivity.java
rowseFragment.java
rowseSupportFragment.java
ardPresenter.java
etailsFragment.java
etailsPresenterSelectionActivity.java
etailsSupportFragment.java
rrorFragment.java
rrorSupportFragment.java
uidedStepActivity.java
uidedStepHalfScreenActivity.java
uidedStepSupportActivity.java
uidedStepSupportHalfScreenActivity.java
orizontalGridTestActivity.java
ainActivity.java
ewDetailsFragment.java
ewDetailsSupportFragment.java
nboardingDemoFragment.java
nboardingDemoSupportFragment.java
laybackControlHelper.java
owsActivity.java
owsFragment.java
owsSupportActivity.java
owsSupportFragment.java
earchActivity.java
earchFragment.java
earchSupportActivity.java
earchSupportFragment.java
tringPresenter.java
erticalGridFragment.java
erticalGridSupportFragment.java
39da5d9a905a8fecf85a26f4eb12cb016d5504a3 24-Aug-2016 susnata <susnata@google.com> Fixing NPE crash in BF. am: 35d7a6c316 am: 7f6acb9d36 am: 79d88519e4
am: bf82d63ae5

Change-Id: Ib8bb5678046d9a5f1bcd9a484d2a3b63f36d5c3d
35d7a6c31606ed4ca38deda3cacae080a95c95c9 22-Aug-2016 susnata <susnata@google.com> Fixing NPE crash in BF.

Change-Id: I1bfb77865b6eb6e64814309ecf43e8bf1b7faa77
BugFix: 31011043
rowseFragment.java
rowseSupportFragment.java
afd999aba1b74d876ea2620775ba9157e6df7102 16-Aug-2016 susnata <susnata@google.com> Creating a new PlaybackFragment.

This will be used to deprecate the old PlaybackOverlayFragment.
We will use it in DetailsFragment to render the controls when
in fullscreen video mode.

Change-Id: I646ae5f64323c569aefb9cb039e16f6035a8eee4
laybackControlHelper.java
laybackControlSupportHelper.java
laybackOverlayFragment.java
laybackOverlaySupportFragment.java
ae746be7c46297b910a99c07697e33e3a5fd7fac 04-Aug-2016 Dake Gu <dake@google.com> GuidedStepFragment: support BACK for drop down list

Added onChildViewHolderSelectedAndPositioned when Child of GridView
is being laid out, that is required to adjust the expanded focus
item view vertical position in *one* layout pass for fragment
transition to properly run.

Add BACK key interception for sub actions list
and action with hasEditableActivatorView() (e.g. Picker)

Removed mSelectedIndex from GuidedStepFragment since we already
save/restore index in view state.

Show case in SupportLeanbackDemo NewPaymentFragment to use
setTargetFragment to pass result back to second fragment.

Bug 29901385

Change-Id: Ib856b776bc02c8cc01bf3379aa7562285c9bd41c
uidedStepActivity.java
uidedStepSupportActivity.java
f5f386abee45f9256980e99d910c80922f1865e7 04-Aug-2016 Dake Gu <dake@google.com> Merge "leanback: Refactoring ParallaxSource to use Property"
48cbca8d2f412611a09e4f231055f10573a1f45a 29-Jul-2016 susnata <susnata@google.com> Adding description field in HeaderPresenter (BrowseFragment).

Change-Id: If306cd60f91dfb6edccdfc63960fd40e26174445
rowseFragment.java
rowseSupportFragment.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
ewDetailsFragment.java
ewDetailsSupportFragment.java
owsSupportActivity.java
935b033edfd9d03129fce6a5b7a1d3a327b74f91 28-Jul-2016 susnata <susnata@google.com> Providing a generic way to define the parallax behavior in DF.

Change-Id: I89afcec08425dbf1c20f12b0d5112d7dfa2d1ac2
ackgroundHelper.java
ewDetailsFragment.java
ewDetailsSupportFragment.java
c632bd20d83c175e76ee109e50d844cefce2a2cc 01-Jun-2016 Alan Viverette <alanv@google.com> Fix SupportLeanbackDemos build

Change-Id: If5fbf645123c1ac5ecbe6f431be4f29a5a27e64e
owsActivity.java
owsFragment.java
owsSupportActivity.java
owsSupportFragment.java
ab2793f6e38cce319f99d75615e03f9a9faae67e 06-May-2016 Chulwoo Lee <chulwoo@google.com> Merge "Change contents animations" into nyc-dev
5f15bc26bec463ef6ece44e8c90d5c63988ae16b 30-Apr-2016 Dake Gu <dake@google.com> SupportLeanbackDemo: support delay loading page fragment data

Matching ag/989598 to notifyDataReady() when page fragment has
loaded its data.

Also fixed a bug using the wrong FragmentManager to open
GuidedStepFragment.

Bug 28471536

Change-Id: I4ce2108f0b587773ac29e8fd3b134e700121c81c
rowseFragment.java
rowseSupportFragment.java
502236b09828f5ea4195cd131a17df6c396bd1f1 05-May-2016 Dake Gu <dake@google.com> Merge "Revert "SupportLeanbackDemo: support delay loading page fragment data"" into nyc-dev
aadab57a5c879a377588d7e5d21b7e8b09b94170 05-May-2016 Dake Gu <dake@google.com> Revert "SupportLeanbackDemo: support delay loading page fragment data"

This reverts commit 021f6e8a1d70f9fad34190fe969b39da2ffd0c7a.

Change-Id: If71719deda5e182b96f83b426c52da449600f974
rowseFragment.java
rowseSupportFragment.java
a5f524a016d31d084122a1d39a5346c3346c4c82 04-May-2016 Dake Gu <dake@google.com> Merge "SupportLeanbackDemo: support delay loading page fragment data" into nyc-dev
54746b4f93cf6de92c8f69fdc415ea2dff8083c2 03-May-2016 Chulwoo Lee <chulwoo@google.com> Change contents animations

Change-Id: If17711e5f9732d175872b9dfb788b66597e4bea4
nboardingDemoFragment.java
nboardingDemoSupportFragment.java
c43a33fa69773625b09654d63a5bde79594e6f4a 02-May-2016 Chulwoo Lee <chulwoo@google.com> Add logo splash animation in OnboardingActivity

Change-Id: I005908e794595d33585382e6acd388db462a326d
nboardingDemoFragment.java
nboardingDemoSupportFragment.java
86c83ffae6d029cee78fa0f20180efa1843eeb4a 30-Apr-2016 Dake Gu <dake@google.com> SupportLeanbackDemo: support delay loading page fragment data

Matching ag/989598 to notifyDataReady() when page fragment has
loaded its data.

Also fixed a bug using the wrong FragmentManager to open
GuidedStepFragment.

Bug 28471536

Change-Id: I561db19130d8ed0439d0f1ab74b922e0698c3180
rowseFragment.java
rowseSupportFragment.java
4ff7f6d210b75531b3dce98f8028804f55c72051 25-Apr-2016 susnata <susnata@google.com> Mapping header items in BrowseFragment to multiple(2) rows.

Change-Id: I238528aace3171e1ac4bd69016b8401fd1b2cec8
rowseFragment.java
rowseSupportFragment.java
8f94d180902da7469b67f7c47c93a3a0b9acdb3a 22-Apr-2016 susnata <susnata@google.com> Switching from Adaptable to Provider interface.

Change-Id: I3cc09fc1959bf2ddf09d71437c33df47a113f790
rowseFragment.java
rowseSupportFragment.java
d587922874ccb0ce2e254913b790343ff806f587 20-Apr-2016 Dake Gu <dake@google.com> Merge "leanback: Add example of section header and divider" into nyc-dev
5635fbd2da9e73c8f68287626728f909565c7a8a 18-Apr-2016 Dake Gu <dake@google.com> leanback: Add example of section header and divider

Add example of SectionRow and Divider Row.

Also remove the need of adding hidden class PageRowPresenter to
Adapter, it is automatically added by BrowseFragment.

Bug 28270725

Change-Id: I8f9a7ca40fab10d64f536b67d44fbe7aa9e99e17
rowseFragment.java
rowseSupportFragment.java
97906d5d967189bdcac6491fffa20c2cb0003466 18-Apr-2016 Dake Gu <dake@google.com> GuidedStepFragment sample: add id to radio/checkbox

So they can be auto saved/restored.

Bug 27978256

Change-Id: I7d829063d6953acc4573f495fd9893300630656c
rowseSupportFragment.java
uidedStepActivity.java
uidedStepSupportActivity.java
laybackOverlaySupportActivity.java
2f881d6f8628ec40c0b8b2e91a6c669f80d3cc7f 12-Apr-2016 Dake Gu <dake@google.com> Revert "Fix NPE in notifyViewCreated()"

This reverts commit 9f9d04fff58b9dd16af85bd49f1c0da95c2d0b80.

Change-Id: I831ca719aeede83f9be3268b3e57141cabed5e1e
rowseFragment.java
rowseSupportFragment.java
laybackOverlaySupportActivity.java
aecb834e3a3f8cc004d9c4dbb328b6959ecea89e 12-Apr-2016 Dake Gu <dake@google.com> Fix NPE in notifyViewCreated()

Change-Id: I9ad6f3dc641fc37f86aa0bbd388968ecb309e51f
rowseFragment.java
rowseSupportFragment.java
laybackOverlaySupportActivity.java
a91086bb15b43b8b9184d3bc41dc8828d962cfef 31-Mar-2016 susnata <susnata@google.com> Sending viewCreated() event from BrowseFragment.

Change-Id: Ibfc1fd0937666d6c9b5b0db4a726f7904603cf89
rowseFragment.java
7f189e20533f5611b62016981f80850f01badf50 01-Apr-2016 Dake Gu <dake@google.com> Merge "GuidedStepFragment: Fix addAsRoot restoring bug" into mnc-ub-dev
am: cb4a1e3

* commit 'cb4a1e3b03c97374d97f3ac7b5d1cc9b0a11fc4c':
GuidedStepFragment: Fix addAsRoot restoring bug

Change-Id: Ife415ab7991233f8d46656ab723b774895296ef2
c0a78151957be5562ba1c650585a37d084e9ce59 01-Apr-2016 Dake Gu <dake@google.com> GuidedStepFragment: Fix addAsRoot restoring bug

Dont re-add root fragment when savedInstanceState can restore
them.

Bug 27972030

Change-Id: I427f171164f60b901c328f17a51349045f04eb50
uidedStepActivity.java
uidedStepSupportActivity.java
19108c6dd7e749271a46402525efc47bf94686c9 31-Mar-2016 Andrii Kulian <akulian@google.com> Merge "Refactor usages of Picture In Picture and Multi Window (4/4)" into nyc-dev
fa89d61337d39582448bd60ee66782c8e5265e7d 30-Mar-2016 Andrii Kulian <akulian@google.com> Refactor usages of Picture In Picture and Multi Window (4/4)

Bug: 27365860
Change-Id: I488fbc9fc8035fa06e6a68c117a58cc35749cc7c
laybackOverlayActivity.java
laybackOverlayFragment.java
laybackOverlaySupportActivity.java
laybackOverlaySupportFragment.java
e3ef610a75fd382df930699ca42b61f24ac128f8 23-Mar-2016 Chulwoo Lee <chulwoo@google.com> Add demo for OnboardingFragment

Change-Id: I538ea409fc1cb1c1e6a60fb744b53cbeb4fb9bc1
ainActivity.java
nboardingActivity.java
nboardingDemoFragment.java
nboardingDemoSupportFragment.java
nboardingSupportActivity.java
acccd0ab69d4c55e763b452c007aed7d14cf6654 19-Mar-2016 Dake Gu <dake@google.com> Entrance Transition for Page fragment in Browse

Change-Id: If78436ae25f6b4ba4e420f1751abcf5cf9a7683b
rowseFragment.java
rowseSupportFragment.java
99c0d77dd86ba59f98df716467c715de1bdc9dc9 04-Mar-2016 Dake Gu <dake@google.com> LeanbackDemo: Search requests runtime permission

Bug: 23958590
Change-Id: I058b80050285b9912fefbcaca3f897f8a6b87b3d
earchActivity.java
earchSupportActivity.java
380a6d5bcb74ec69524f248d0b2edee49805b31b 15-Mar-2016 susnata <susnata@google.com> Adding page fragment inside BrowseFragment demo

Change-Id: If6f453f2398d8fc5beba16e2a2e126566b9b65e2
rowseFragment.java
rowseSupportFragment.java
c578ad430b51de0151ca9b3299d84f73bb71286b 04-Mar-2016 susnata <susnata@google.com> Adding PageRow to BrowseFragment demo.

Change-Id: I4669effcddb101fb63a8f32ef7de380303648d23
rowseFragment.java
rowseSupportFragment.java
7f0679e9d9313ce8244cde7e48be2c01fae8b152 04-Mar-2016 Dongwon Kang <dwkang@google.com> SupportLeanbackDemo: Fix generatev4.py

Bug: 27495998
Change-Id: If6d2bcc6f43aec7386ee141196d8fb5c8a525b3c
laybackOverlaySupportFragment.java
c383f2f8ce9251819d7417a68e18f5bc57de9f0c 04-Mar-2016 Dongwon Kang <dwkang@google.com> Revert "SupportLeanbackDemos: Use Fragment#onPictureInPictureChanged()"

This reverts commit 9ca8c945ae9fd81c0931c7a4bfe93258d6600473.

Backgroud: this change breaks generatev4.py conversion process due to b/27495998

Bug: 27495998
laybackOverlayActivity.java
laybackOverlayFragment.java
e26339463d06a0ead6e2d8c6dd1abadef09a86ce 10-Feb-2016 Keyvan Amiri <keyvana@google.com> SupportLeanbackDemos: Fixed password crash when no payment is selected
am: be98b3af70

* commit 'be98b3af70d0fb280dd688040b04880a9e4d543f':
SupportLeanbackDemos: Fixed password crash when no payment is selected
aec263932c93cd9980fee043d31b9c34ff835aa8 10-Feb-2016 Keyvan Amiri <keyvana@google.com> SupportLeanbackDemos: Fixed password crash when no payment is selected

The second Guided Step fragment crashed when a password was entered but
no credit card info was selected, because it was trying to extract "Visa"
or "Master" substrings from an empty string. Put a check for string
sizes before this extraction is performed.

Change-Id: I9b93a302f5f855b1853885ff4e5fc9a04c200766
uidedStepActivity.java
uidedStepSupportActivity.java
99062507914d0759e67e0f0bb12b99cfd8a9dccf 05-Feb-2016 Dongwon Kang <dwkang@google.com> SupportLeanbackDemos: Use Fragment#onPictureInPictureChanged()

Instead of Activity#onPictureInPictureChanged()

Change-Id: Id31ac91c9e43569fe387f087ff2e9a6c1afac6ce
laybackOverlayActivity.java
laybackOverlayFragment.java
09c0489d16852cb102b870707e423f79341e28e2 01-Feb-2016 Wale Ogunwale <ogunwale@google.com> Merge "Renamed Activity class multi-window APIs"
67574e7a0e9d9af9f88cfc41fc1ab3e119e8d2a0 30-Jan-2016 Wale Ogunwale <ogunwale@google.com> Renamed Activity class multi-window APIs

As requested by API council.

Bug: 26507736
Change-Id: I8911c0b969ae05b686bea1dc26feba12cd074e6a
laybackOverlayActivity.java
laybackOverlayFragment.java
laybackOverlaySupportActivity.java
laybackOverlaySupportFragment.java
5b931c8ba62239002e0faae5b200634058e10934 29-Jan-2016 Susnata Basak <susnata@google.com> Merge "Updating SupportLeanbackDemo to showcase GuidedStepFragment." into mnc-ub-dev
am: c140afb120

* commit 'c140afb120c664de8757a7df7d0eb16a60d91a09':
Updating SupportLeanbackDemo to showcase GuidedStepFragment.
20767a171ab46addb5d50248d4267db14c0c8883 28-Jan-2016 susnata <susnata@google.com> Updating SupportLeanbackDemo to showcase GuidedStepFragment.

Included sample activities/fragments to showcase how to
use GuidedStepFragment in half screen mode.

Change-Id: I9eefe417ddf79b0dfe896a5cec25b7c7cd3a41e7
rowseFragment.java
rowseSupportFragment.java
uidedStepActivity.java
uidedStepHalfScreenActivity.java
uidedStepSupportActivity.java
uidedStepSupportHalfScreenActivity.java
ainActivity.java
65a34663cf08f17738720000ee9900fe714578ef 15-Jan-2016 Dongwon Kang <dwkang@google.com> LeanbackDemo: Support Picture-in-picture

Bug: 26696836
Change-Id: I9809470b1fdc7bfbb049da3d40ab209578c4b656
laybackControlHelper.java
laybackControlSupportHelper.java
laybackOverlayActivity.java
laybackOverlayFragment.java
laybackOverlaySupportActivity.java
laybackOverlaySupportFragment.java
bf8784e721d24a717294a09caa58e01b12813a9b 21-Jan-2016 Dake Gu <dake@google.com> Merge "Add example of DatePicker" into mnc-ub-dev
fd17d08bddab35731f26a257afe7b99cec4ce182 13-Jan-2016 Dake Gu <dake@google.com> Merge "SupportLeanbackDemo: demo of custom theme of ImageCardView" into mnc-ub-dev
ab46229b057fb33e73a6214c781b3b9a0562d046 12-Jan-2016 Dake Gu <dake@google.com> GuidedStepFragment: add test for icon

Bug 26473407

Change-Id: I2f59fe2d869c39c802a6451533a49f6682cdef8a
uidedStepActivity.java
uidedStepSupportActivity.java
7298559f4bd911900e4baaaaf52be5fcb8353759 11-Jan-2016 Dake Gu <dake@google.com> Add example of DatePicker

Bug 25390757

Change-Id: Iec578a2a195a7f8c6873fd95ceb08a33f502894b
uidedStepActivity.java
uidedStepSupportActivity.java
87b904ffa106f12f2fecfe8b9a46084863678f29 19-Dec-2015 Dake Gu <dake@google.com> SupportLeanbackDemo: demo of custom theme of ImageCardView

Change-Id: I8ba65d9d6ffbc461460acff99ac1c3125eb87d00
rowseFragment.java
rowseSupportFragment.java
ardPresenter.java
owsFragment.java
owsSupportFragment.java
47005bba6e07c4578530bd151967c0cce7daedc3 16-Dec-2015 Dake Gu <dake@google.com> Tuning GuidedAction APIs

Change-Id: I6d7f354d32315270201d9ab5ccae1c3d5f7b7e0d
uidedStepActivity.java
uidedStepSupportActivity.java
4fa476ce5e53629a1016ca0743aec659c09cea9c 02-Dec-2015 Dake Gu <dake@google.com> Fix Context.getDrawable() crash on earlier platforms

Change-Id: I821577795f17e48e6fe58208861be501e9ee4627
uidedStepActivity.java
uidedStepSupportActivity.java
ainActivity.java
cf49916e96a2a8a19ea8112d91862e7ede4ceb67 23-Nov-2015 Dake Gu <dake@google.com> SupportLeanbackDemos: first showcase of drop down selection

Showcase of sub actions (aka dropdown list) and the typical payment
steps: a dropdown list of available cards plus "add new card" step
which will add more options to the list.

Bug 24979518

Change-Id: I1c7b83381cda37081c7438700b6800a02b36fe71
uidedStepActivity.java
uidedStepSupportActivity.java
06c39be6a0e6e44986083280451115a4a701ec73 13-Nov-2015 Dake Gu <dake@google.com> SupportLeanbackDemos: guidedstep changes

1. no longer provide a view to host background view
2. add demo of checkbox
3. add demo of customize Ime options.

Change-Id: I76dbbbd7e341906ff4e7b8923b1ddc2c01026f44
uidedStepActivity.java
uidedStepSupportActivity.java
7d9ba1eb1d51f531ff17cf1967f522bcb78f2064 03-Nov-2015 Dake Gu <dake@google.com> GuidedStepFragment: Example of two columns actions

Bug 24979563

Change-Id: Id28e9b374d464846043e96c6b24ee95eed1af1d7
uidedStepActivity.java
uidedStepSupportActivity.java
ee3c13ee552002263be40f6a5986f61c605b0bac 28-Oct-2015 Dake Gu <dake@google.com> Dont use R.id.content to host GuidedStepFragment

Added example of set action not focusable

Bug 25352427

Change-Id: Ie9aed8c52d7639c3a39938117be94a65cf2005eb
rowseFragment.java
rowseSupportFragment.java
uidedStepActivity.java
uidedStepSupportActivity.java
971cfadff0da45fa2e899a8cedd05e5cb99dd672 28-Oct-2015 Dake Gu <dake@google.com> GuidedStep example: Use standard action IDs and titles

Bug 25193684

Change-Id: Iced3aa78db1437d1823b60d2be1188993f557958
uidedStepActivity.java
uidedStepSupportActivity.java
ca5018729526470dfb2599a88869deaa48a7fea9 28-Oct-2015 Dake Gu <dake@google.com> SupportLeanbackDemo: add example finishGuidedStepFragments()

and popBackStackToGuidedStepFragment()

Change-Id: I747673f886bebf5ccc81b8f686c801ede4b5ac0b
uidedStepActivity.java
uidedStepSupportActivity.java
1f735b248bf5e9d37791b6aed4b2c634e41912ab 26-Oct-2015 Dake Gu <dake@google.com> GuidedStep: More example of editing

Example of switching text when editing.
Example of error checking and next action.
Example of InputType.
Example of enable/disable action.

Change-Id: Iea5108cb3f3d487be0a8cd892568c3e053ee3d0d
uidedStepActivity.java
uidedStepSupportActivity.java
8374a4e00678fec6ed5aa3fcd1befcaeb8423b6c 05-Oct-2015 Dake Gu <dake@google.com> Leanback Demo: demo of edit title

Bug 24673827

Change-Id: I1e4d9378cc862d748055387a71129692bd4cf53b
uidedStepActivity.java
uidedStepSupportActivity.java
0e6f38cfa4c36ea435c20cf9be3e0ad09a8b57b2 01-Oct-2015 Dake Gu <dake@google.com> GuidedStepFragment Subclass need explcitly specify a container id for background

After fixed Bug 24570987

Change-Id: I1ec51f8ea39b21e4d547e923386dd357a538ff4a
uidedStepActivity.java
uidedStepSupportActivity.java
47e9b753d9167840037651f9deb5140987e5d226 30-Sep-2015 Dake Gu <dake@google.com> Generate test for PlaybackOverlaySupportFragment

Change-Id: Ia3064006f3fb3fc4fd5230ff3ab24a7c4ba2470f
etailsSupportFragment.java
ainActivity.java
ewDetailsSupportFragment.java
laybackControlSupportHelper.java
laybackOverlaySupportActivity.java
laybackOverlaySupportFragment.java
71e7e67f320b23feac784b629db17b3bcce08722 30-Sep-2015 Dake Gu <dake@google.com> Generate support version of leanback fragment tests

Include all leanback support version of fragment except
PlaybackOverlayFragment missing a support version of PlaybackControlHelper.

Change-Id: Icb5c99e8677630e8541b22b009051dd3908d4f35
rowseErrorSupportActivity.java
rowseSupportActivity.java
rowseSupportFragment.java
etailsActivity.java
etailsPresenterSelectionActivity.java
etailsSupportActivity.java
etailsSupportFragment.java
rrorSupportFragment.java
uidedStepSupportActivity.java
ainActivity.java
ewDetailsFragment.java
ewDetailsSupportFragment.java
owsSupportActivity.java
owsSupportFragment.java
earchDetailsSupportActivity.java
earchSupportActivity.java
earchSupportFragment.java
erticalGridSupportActivity.java
erticalGridSupportFragment.java
ab1d3dce4807789e76bb7c4c7b6693d5aa993b1b 05-Sep-2015 Dake Gu <dake@google.com> Generate example of GuidedStepSupportFragment

Bug: 21504593

Change-Id: Ifafc4a956060def75bc01d45eeb568d3077a977e
uidedStepSupportActivity.java
ainActivity.java
067d9b9e5a56d015931a2b23f0aa2262942bb20a 18-Aug-2015 Dake Gu <dake@google.com> Add example of vertical grid transition and GuidedStepFragment

Added example of vertical grid transition

Added example of launching GuidedStepFragment from BrowseFragment.

Also fixed couple bug in GuidedStepActivity:
1. All fragment class should be public
2. Remove argument from constructor. Pass Arguments instead.

Bug: 23319507

Change-Id: Ia7b8d6669445be62f8f2a325cc460021ca392ded
rowseFragment.java
etailsPresenterSelectionActivity.java
uidedStepActivity.java
ainActivity.java
erticalGridFragment.java
f3206b05abc0c73e4d4ea34b514ac35cd207b2e1 19-Aug-2015 Dake Gu <dake@google.com> Revert changes of adding guidedstep fragment in Browse

Bug 23324164

Change-Id: I7a5fe395429e2b96f54953975f0722657d577330
rowseFragment.java
001b4e375baa89ad3dabd79425308aab25f47ea6 10-Aug-2015 Kris Giesing <kgiesing@google.com> Merge "Add editable actions to Guided Step test activity." into mnc-ub-dev
4e3ba904e4dbe45b80eb20288367620b84950232 22-May-2015 Kris Giesing <kgiesing@google.com> Add editable actions to Guided Step test activity.

b/21403345

Change-Id: I29ffee64c54f44d80cbfcd62bd3a1b78f22ae117
rowseFragment.java
uidedStepActivity.java
laybackOverlayFragment.java
41b41b04d49910df4c1cf1299d6389d5b7c1d817 28-Jul-2015 Dake Gu <dake@google.com> BrowseErrorFragment: fix NPE of not attached BackgroundManager

BrowseErrorFragment also shows Background for selected item.
Need attach BackgroundManager to window.

b/22796403

Change-Id: I80bbaf48c85a318fdd0e07d4efd3d1b72876c03d
rowseErrorActivity.java
28526e97c29242797010c34c92a8eb8a00b51c28 25-Jun-2015 Dake Gu <dake@google.com> SupportLenabackDemo: Make StepFragment public

If for any reason e.g. BrowseActivty crash or rotate screen on phone,
system needs a public empty parameter constructor to restore
fragment stack.

Change-Id: I4c001b4b95a1958ff7f2cb42688582c8261a71e0
ainActivity.java
58d19582d57cc3c1dae4efc76c5a91f87e5fef63 29-Apr-2015 Dake Gu <dake@google.com> Add samples for new DetailsFragment

Two samples: Details opened from browse where the overview row is
the first row. Details used by Search where overview row is the
second row.

Added option in MainActivity to switch between using legacy
DetailsOverviewRowPresenter and FullWidthDetailsOverviewRowPresenter

Change-Id: I10220396b5cfc0538cd5e99e46829ddfca874359
etailsActivity.java
etailsPresenterSelectionActivity.java
ainActivity.java
ewDetailsFragment.java
earchDetailsActivity.java
9f4e25b607fc4ec53b4f2b4996f49481857afdab 28-Apr-2015 Kris Giesing <kgiesing@google.com> Modify Guided Step example showing checkmark groups

Change example to show changing a checked item in a group while
staying on the same screen, to illustrate checkmark animations.

b/20545155

Change-Id: If7e64e57235e24fe3c6a3bf5b96c84fa7bd96da2
uidedStepActivity.java
a5e729eb7c417a872876ac6f2b904bc8d232aa06 19-Mar-2015 Craig Stout <cstout@google.com> Add BackgroundManager release.

Change-Id: I5a4af31a214f2db26a399db39cf73d578dcbc71c
ackgroundHelper.java
rowseActivity.java
rowseFragment.java
etailsActivity.java
etailsFragment.java
ainActivity.java
bfc98b30875fc7191acf4835cb3421d1fff6563d 19-Mar-2015 Kris Giesing <kgiesing@google.com> Merge "Add demos for GuidedStepFragment." into lmp-mr1-ub-dev
6f0d24aab5d9668c489097d26d4c3643f575b0c8 17-Feb-2015 Kris Giesing <kgiesing@google.com> Add demos for GuidedStepFragment.

Make the main activity a guided step that allows the selection of
other activities. Add a dedicated activity to represent a
sequence of GuidedStepFragments.

b/18935698

Change-Id: I16142f4d7e87b3f2f02b812faa9bff82ecf5361c
rowseActivity.java
rowseErrorActivity.java
uidedStepActivity.java
ainActivity.java
bf8243ac29afb5f411c22e5917f3efb43b734a84 17-Mar-2015 Craig Stout <cstout@google.com> Merge "Add branding to DetailsFragment and TitleHelper with RowsFragment." into lmp-mr1-ub-dev
8cef5c8d58f50d5baca1da44a7c19f623cbf98ec 27-Feb-2015 Craig Stout <cstout@google.com> Add branding to DetailsFragment and TitleHelper with RowsFragment.

b/16029942

Change-Id: I4179245c110ce74ebd5e50d55432e8ed3332d52b
etailsFragment.java
owsActivity.java
owsFragment.java
c1e0b7edd3add77af0696a7960543c280cbd1c96 09-Mar-2015 Craig Stout <cstout@google.com> Fix missing api on kitkat.

Change-Id: I047b1d1198c262e1836bb43551a65c6eab8bc5b4
ackgroundHelper.java
005084f6f0860a69c80492d3549a687ffb283c40 23-Dec-2014 Craig Stout <cstout@google.com> Default to using wrap content for row height.

Change-Id: I902b292726bdf8fa1d2134b00fde1385cbccc4ae
(cherry picked from commit 24ad89cd2b34170d245ec9b8c821fa5cc7babac7)
rowseFragment.java
owsFragment.java
60ccdd8559d73dd95e1c9e2e8df2d15740c7375c 27-Feb-2015 Craig Stout <cstout@google.com> Merge "Updated to clarify division of functionality." into lmp-mr1-ub-dev
d859d438fbcd008ca0eac3ebbdaaea571411c487 26-Feb-2015 Dake Gu <dake@google.com> ItemClickedListener -> ItemViewClickedListener

Bug 19514090

Change-Id: Icf14e483b95d1bf5d57af9f27d977b0fdb686e67
rowseAnimationFragment.java
rrorFragment.java
8af2515a64f0339b8b2fbc71bfa286d0541882e4 12-Feb-2015 Craig Stout <cstout@google.com> Updated to clarify division of functionality.

PlaybackControlHelper can be used in BrowseFragment.

Change-Id: Iac37e0a4f51ed1fab5edcff20d4a7037d4cc9ef9
laybackControlHelper.java
laybackOverlayFragment.java
909f9cfefdf6f0bdc0279c0a61bf3a2c7b5eec58 17-Feb-2015 Craig Stout <cstout@google.com> Merge "Add backgrounds." into lmp-mr1-ub-dev
af136b73e6c8e377914e494f9870da1618be20d0 10-Feb-2015 Craig Stout <cstout@google.com> Add backgrounds.

Change-Id: I1f48ab3f6b914132f0c2560657e419b3f3ace882
ackgroundHelper.java
rowseFragment.java
etailsFragment.java
0d644fcd63688859fdaa90f805ae423a58f4dc69 22-Jan-2015 Dake Gu <dake@google.com> showcase of updating DetailsOverviewRow parts

and using SparseArrayObjectAdapter for adding/removing actions

Bug: 19111955
Bug: 18869799
Change-Id: I8321f8de116fafda6e96a700855f218bacfc426c
etailsFragment.java
ccea98979aa38d1061ae38a31271040a698c9d87 11-Dec-2014 Dake Gu <dake@google.com> Add test case for multiple row horizontal grid view

Add test case for update dataset at last row with empty space.

b/18631342
b/18718926

Change-Id: I3c745a41b0486cf293fc6a5a595e50f0a14ee0d0
orizontalGridTestActivity.java
erticalGridFragment.java
504d5c31b6eab4f72a0286dc08e2c88156b54fb8 10-Dec-2014 Dake Gu <dake@google.com> Merge "Add RowsFragment example" into lmp-mr1-dev
f4b2f81cf278d3f08d60feefee139b532db3ce01 09-Dec-2014 Dake Gu <dake@google.com> Add RowsFragment example

Bug: 18622128
Change-Id: I12146a766fa383782f9917352c5959b6064835ee
rowseFragment.java
owsActivity.java
owsFragment.java
b1978e643e378c8fac668984ad07bf87a6b8f337 09-Dec-2014 Craig Stout <cstout@google.com> Add 'Remove all then re-add'.

Change-Id: I57f06fab207bcf47c1fd089bf720f539aa389e7e
rowseAnimationFragment.java
6b35115058e555bc57a431b0b2bb6076a11ce010 04-Dec-2014 Craig Stout <cstout@google.com> Use non-deprecated HeaderItem constructor.

b/17455376

Change-Id: I9fff76367ffe1f96642a39962e51c935cf39d10b
etailsFragment.java
01d760a060d766e9d19982d4a916b75b7a84c8e7 14-Nov-2014 Craig Stout <cstout@google.com> Update sample to use playback control glue.

b/18077079

Change-Id: I8dafbca6450e04223d8316f1ee1ae9c42ec7b8e5
laybackOverlayFragment.java
9744dea0e0ea62d654a1bb352cb60201d869e390 14-Nov-2014 Dake Gu <dake@google.com> SupportLeanbackDemo: add test of delayed detail entrance transition

b/17628884

Change-Id: Ic13424ae553b58dd93f9932dc50de00b4f876b02
rowseFragment.java
etailsFragment.java
792a609fd09f76c621b8e02c92219366f513344d 18-Nov-2014 Craig Stout <cstout@google.com> Merge "Use 2-param constructor for HeaderItem." into lmp-mr1-dev
0a0bb90f4784d00ef2827ef300602744c37a02bd 12-Nov-2014 Craig Stout <cstout@google.com> Use 2-param constructor for HeaderItem.

Change-Id: I5b48e3f37e7941a1bba8518efcbdcd180f20b8f5
rowseAnimationFragment.java
rowseFragment.java
etailsFragment.java
laybackOverlayFragment.java
earchFragment.java
53e230dfe568d0f713f797be09cdac4ab1a21d28 14-Nov-2014 Craig Stout <cstout@google.com> Fix NPE if user finishes activity quickly.

b/17646987

Change-Id: I6c3aa94f8b557449af410b323a6bbdfaa389015e
rowseErrorActivity.java
67a49ad87bfde1a06a5c4b423184a89b15328604 08-Nov-2014 Dake Gu <dake@google.com> SupportLeanbackDemo: add test case of Browse/Details enter return transition

b/17628884

Change-Id: Ia896d295dce1000313651426f077d88a1ae05ebd
rowseFragment.java
f1f489269da4b349125df56d54d3259929d48a7d 30-Oct-2014 Tim Kilbourn <tkilbourn@google.com> Add secondary text to cards.

Add some content to PhotoItems so that the ImageCardViews use two lines
of text.

Bug: 18008019
Change-Id: I9bd72f585f76f84df70644b43539210664fbaa0e
rowseFragment.java
ardPresenter.java
hotoItem.java
81c22d8910f9bc1aec137ddd9804adf398c560c6 29-Oct-2014 Dake Gu <dake@google.com> SupportLeanbackDemo: Add test case for updating overview row

fixes b/17918639: no back activity transition when overview row updated.
Also hook up the playback actvity.

Change-Id: I52fe3808a1dc614df7d1f33f36de47ce9144e974
etailsFragment.java
b38f24f4145d1a5be6843613aa89295d99826ad4 28-Oct-2014 Dake Gu <dake@google.com> SupportLeanbackDemo: Add test case of ArrayObjectAdapter.replace()

b/17893479

Change-Id: Iaf91ba1ebca1237fc0d2d5629e0c2e83e15d54a0
rowseAnimationFragment.java
c84c57a1fdf1866ec0406e4723e49b0a1a32ab58 30-Sep-2014 Dake Gu <dake@google.com> SupportLeanbackDemo: show case of different image scale type

b/17703309

Change-Id: Iaf3b5e519e09c7e2a728fe048f8a63e3b9b16cfe
ardPresenter.java
12945ebf764b6ee1e92de2099c128c32f6d80e7a 27-Sep-2014 Dake Gu <dake@google.com> SupportLeanbackDemo: Fix crash of launch Detail from Search

Now DetailsFragment is expecting PhotoItem, SearchFragment should not pass
a String to DetailsFragment.

Change-Id: I7794c6a14dcaa1de1d1177f3288bb7460a45bf7d
earchFragment.java
c3f4128ac652dc38ed84577efc660b8b1e59fe08 17-Sep-2014 Dake Gu <dake@google.com> SupportLeanbackDemo: dont override fragment's object from activity

Activity should only initialize fragment's object when it is first created.
Then the object's lifecycle is controled by fragment.

b/17547817

Change-Id: I169111d2936aadfa9386b288e6922c563b4b5277
etailsActivity.java
9fb667bc34ed054c9a4435c0fc0beee4c22c50ec 17-Sep-2014 Dake Gu <dake@google.com> Merge "Use image card view for DetailsFragment example" into lmp-dev
c73ffd476dc6f6474168d8d0c1c0a442f4405004 16-Sep-2014 Dake Gu <dake@google.com> Use image card view for DetailsFragment example

b/17499864

Change-Id: I7c5f77da52424afa5020a66b032df68cfdf5846e
etailsFragment.java
794383a3ff98ae27e8e64dc5d7919a152cb794cb 15-Sep-2014 Craig Stout <cstout@google.com> Fix build.

Change-Id: I90dda90014131e48eace67bac26453ea278b4e87
earchActivity.java
27cab4ef89f8f6081fe66e9302236befd6842a8f 15-Sep-2014 Craig Stout <cstout@google.com> Use new callback for search by intent.

Change-Id: I3e3eafa50a93ad55f55bff0bb5b0b6efdda48bbb
earchActivity.java
earchFragment.java
ffd20ebba154edf2374a53d4bb1c682b6737ab77 21-Aug-2014 Craig Stout <cstout@google.com> Demonstrate OnItemClicked/Selected listeners.

Also fixes broken VerticalGridFragment.
And cleanup.

b/16354712

Change-Id: I348ab42230d88bac8192b5421e76a58b28ca6616
rowseFragment.java
etailsFragment.java
laybackOverlayFragment.java
erticalGridFragment.java
380e1dd1a57936d0106b541ac40cb30609704bcc 19-Aug-2014 Dake Gu <dake@google.com> Merge "Make BrowseAnimationFragment working" into lmp-dev
c0b9d00a24576e7549e9ebc43ad591df3644f774 19-Aug-2014 Dake Gu <dake@google.com> Make BrowseAnimationFragment working

Change-Id: Id239c1910783bb70cbffcba71a5832a15db58e39
rowseAnimationFragment.java
c81d8f9a452983fc8b97a9f8c1de1c5865c38efd 18-Aug-2014 Craig Stout <cstout@google.com> Cleanup playback controls sample.

Change-Id: Ib8e054001bb95a4b92acb8a2331a9544ec88e669
laybackOverlayFragment.java
3cf3aa3ae5dfba10bccfd7efde632a459137069b 11-Aug-2014 Craig Stout <cstout@google.com> Fix build.

Change-Id: Ia71c0866e120bb772fbdc3db12bf34024a8a8d0d
laybackOverlayFragment.java
42d06ec21a427172be323c30d790402a26a6f65e 30-Jul-2014 Craig Stout <cstout@google.com> More features.

Add background.
Add fading enable/disable.
Add track switching.

Change-Id: Ia3495a6ce98498c734cb225bec93403ac734c89c
laybackOverlayFragment.java
erticalGridActivity.java
74df2660c077f9e4f94aeece1e70f216091d5b9a 29-Jul-2014 Craig Stout <cstout@google.com> Playback actions improvements

Change-Id: I7c2f477d2a04cba7b0d2910909660e906f0f8211
laybackOverlayFragment.java
d75e7c3182984fbfa8d1648198aa79c531edc3ba 29-Jul-2014 Craig Stout <cstout@google.com> Merge "Add playback progress." into lmp-dev
80ac1ff040ae4b32c0e8eba0bc38cfba8b8bc48f 26-Jul-2014 Craig Stout <cstout@google.com> Add playback progress.

Change-Id: I9401b46c34e440de14e7cb794a1c3a1733e0d46c
laybackOverlayFragment.java
f3d0c0eb01d199260e0450f05010d1995f2734c3 25-Jul-2014 Craig Stout <cstout@google.com> Merge "Add PlaybackOverlayFragment" into lmp-dev
835d13d3009a3e27652179e0f2f7bd87da81c1b6 21-Jul-2014 Craig Stout <cstout@google.com> Add PlaybackOverlayFragment

Change-Id: If4c5b2f747885948e0bae422d9d30eec11c027b9
laybackOverlayActivity.java
laybackOverlayFragment.java
7f3028385b0349cfc6c0d6784840be148943b296 22-May-2014 Dake Gu <dake@google.com> SupportLeanbackDemo: activity transition

b/15024618

Change-Id: Ib23746360984f3bbe255e8f75df30c7422b553f2
rowseFragment.java
ardPresenter.java
etailsActivity.java
etailsFragment.java
hotoItem.java
def91eaec25417523827df321d2e3babbcd40a36 27-Jun-2014 Craig Stout <cstout@google.com> Add BrowseErrorActivity and ErrorFragment.

Change-Id: I60cb6f436782d3b8a97c2f48a71e2ee86ef6d542
rowseErrorActivity.java
rrorFragment.java
4b331a8f2b6e99863c7ae0428bb4893320c452fc 04-Jun-2014 Craig Stout <cstout@google.com> Remove deprecated Params from BrowseAnimationFragment.

Change-Id: Ia8d77eaea96b2586c8c617bbcca34fea4ee76e5d
rowseAnimationFragment.java
2085f1d8c47e93c8bf94d137533fd126d32a48b4 04-Jun-2014 Craig Stout <cstout@google.com> Remove use of deprecated Params.

Change-Id: I5883b6e7e8d0444bb010ed81c6b860f227634a57
rowseFragment.java
erticalGridFragment.java
582184900f49fb1d8283c3e7ba332dddab0dc96e 04-Jun-2014 Dake Gu <dake@google.com> Merge "SupportLeanbackDemo: example of add/remove items/rows" into lmp-preview-dev
0b9d907de4f191dd7643897ebd3b9204d7ea733a 03-Jun-2014 Craig Stout <cstout@google.com> Use CardPresenter in VerticalGridFragment.

Change-Id: I7e9fae64316e92b462f6117e73ba79aeb3d83d37
erticalGridFragment.java
0cd6f9d62c8b026d4e94f424c91f4083f26f61aa 02-Jun-2014 Craig Stout <cstout@google.com> Use a single card presenter instance so views get recycled.

Change-Id: Id9d5dee2de506671e800b5d3a4fb011d3e64da44
rowseFragment.java
e54b66b0d6dc081bff26b65853d858e5acf2aa31 31-May-2014 Dake Gu <dake@google.com> SupportLeanbackDemo: example of add/remove items/rows

Change-Id: I3f74f7d768c8e61ae81a23e5515dec19b82d6289
rowseAnimationActivity.java
rowseAnimationFragment.java
05a2ef073edfc6226e014d93c70e0774887de700 16-May-2014 Jerome Poichet <jpoichet@google.com> Using new search fragment parameters

Change-Id: I4fc3994bed5b17b4c84e12881e1c095b040304de
earchFragment.java
erticalGridFragment.java
f688796f63622eb45e3af84aa74bece16955752e 14-Apr-2014 Tim Kilbourn <tkilbourn@google.com> Set row heights for browse rows.

Set a size on the text_bg so the cards appear at the correct size.

Change-Id: Ic2a836431485aaaea922a6bb3868e3e937f1ec21
rowseFragment.java
6b529daca9480ce0690fb063bf35ad38506b7321 29-Apr-2014 Tim Kilbourn <tkilbourn@google.com> Minor card tweaks for leanback demo.

- Set card size to 160x100
- Show 10 rows

Change-Id: I440eef119250d3385ce5d367ec231bfe7c0201b4
rowseFragment.java
816bfc28b79d802b4366684775df74cf40109e6e 08-Apr-2014 Jerome Poichet <jpoichet@google.com> Adding search to Leanback demo

Change-Id: I054b64b7c3752bd6dbfdba2b26248222d7a678bd
rowseFragment.java
earchActivity.java
earchFragment.java
12d4d450a8057b6d640fbe32fde63667ec2c8e83 06-Apr-2014 Tim Kilbourn <tkilbourn@google.com> Use ImageCardview in leanback samples.

Change-Id: I14606ff001cfd4ce244f32a8f1c973847ac1d0e3
rowseFragment.java
ardPresenter.java
a9e0eb45436fc7748192976223d44a94e04b7a6b 09-Apr-2014 Craig Stout <cstout@google.com> Add VerticalGridActivity to the leanback demo.

Change-Id: I38e8a85d5a7ae30b1c0ee71cff979456bdac0665
erticalGridActivity.java
erticalGridFragment.java
1684edec87235b40126662107630cf0f603c45ea 05-Apr-2014 Tim Kilbourn <tkilbourn@google.com> Add callbacks for actions in details.

Change-Id: I5d56e65c45c686fa1b4a686d67f27fb316f9ddf9
rowseFragment.java
etailsFragment.java
f519df88d6a69e517e08b844ffadd722b9ceb9ab 27-Mar-2014 Tim Kilbourn <tkilbourn@google.com> Add a details fragment to leanback samples.

Change-Id: Ib958e02b464618107ab7233cb0e05bddc6ef56df
rowseFragment.java
etailsActivity.java
etailsDescriptionPresenter.java
etailsFragment.java
2223b08a0435d06a61fa0046098fc80ad4293c1c 21-Mar-2014 Tim Kilbourn <tkilbourn@google.com> Initial leanback sample code.

SupportLeanbackDemos starts out with a fully functional app with a
BrowseFragment. Still need to add examples with cursors, hovercards,
and more.

Change-Id: I845d5b92c29a5585af7968b08e7daa11b2996f5a
rowseFragment.java
ainActivity.java
tringPresenter.java