8b0439505202fd21c595c21dded4cebebe8bfdea |
|
25-Sep-2017 |
Dake Gu <dake@google.com> |
eanback: remove deprecated PlaybackOverlayFragment related classes Bug: 66707813 Test: N/A Change-Id: I6911fc04ea6833fc39ee905b5ab19b5a22860a72
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/NewDetailsSupportFragment.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
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/NewDetailsSupportFragment.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
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/NewDetailsSupportFragment.java
|
3649f8fb98e56cbdde7e9c5806312372b20a4d23 |
|
09-Mar-2017 |
Chulwoo Lee <chulwoo@google.com> |
Fix NPE in leanback demos Test: No change Bug: 32668139 Change-Id: Ib828b455d2addf9e589644236aec20902651e155
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/NewDetailsSupportFragment.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/samples/SupportLeanbackDemos/src/com/example/android/leanback/NewDetailsSupportFragment.java
|
4c78d0f4beb89792eb955aa4fae85a730966e6a4 |
|
28-Feb-2017 |
Dake Gu <dake@google.com> |
SupportLeanbackDemos: Fix Link Errors Bug 33007076 Test: run the demo app Change-Id: I39ca542e7d690fe14991db416e23c31961c6cd88
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/NewDetailsSupportFragment.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/samples/SupportLeanbackDemos/src/com/example/android/leanback/NewDetailsSupportFragment.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
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/NewDetailsSupportFragment.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
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/NewDetailsSupportFragment.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
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/NewDetailsSupportFragment.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
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/NewDetailsSupportFragment.java
|
cc671dd3caac1d0cbf3f6999ab063c9ff1f297b2 |
|
18-Oct-2016 |
Dake Gu <dake@google.com> |
Add checkstyle:off flag Test: None Bug: 32243836 Change-Id: I5c28ee5b4623e25126518ceb99f17b5ee384cb76
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/NewDetailsSupportFragment.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
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/NewDetailsSupportFragment.java
|
180dc4030628425a8081fe058bdc1d529c505ae8 |
|
26-Sep-2016 |
susnata <susnata@google.com> |
Revert "Revert "Refactoring DetailsBackgroundParallaxHelper."" This reverts commit 6eebd92660979650cbde3b9d303099cff3015a23. Test: DetailsFragmentTest, DetailsParallaxManagerTest Change-Id: I86a3ef75b862a60f7dcef037e7d4eebcaa488785
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/NewDetailsSupportFragment.java
|
d28c4182e0dd46d83027fcf9e5f43aa669c7514c |
|
26-Sep-2016 |
Aurimas Liutikas <aurimas@google.com> |
Merge "Revert "Refactoring DetailsBackgroundParallaxHelper.""
|
6eebd92660979650cbde3b9d303099cff3015a23 |
|
26-Sep-2016 |
Aurimas Liutikas <aurimas@google.com> |
Revert "Refactoring DetailsBackgroundParallaxHelper." ag/1459549 broke support library test builds: https://android-build.googleplex.com/builds/submitted/3301972/support_test_apks/latest/logs This reverts commit d7ba0d89531101088939239bb0339658dbe6c85b. Change-Id: Ia60f9696e2bce6952e46763c645151f0b93a126e
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/NewDetailsSupportFragment.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
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/NewDetailsSupportFragment.java
|
b7087e036a48f5a3db28d02ff7f9b97fbbc46c4f |
|
22-Sep-2016 |
Dake Gu <dake@google.com> |
SupportLeanbackDemos: Remove usage of deprecated methods Minor style clean up. Change-Id: I1857e46bbc093bc069a060b9d850b20fff13c1e1
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/NewDetailsSupportFragment.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/samples/SupportLeanbackDemos/src/com/example/android/leanback/NewDetailsSupportFragment.java
|
935b033edfd9d03129fce6a5b7a1d3a327b74f91 |
|
28-Jul-2016 |
susnata <susnata@google.com> |
Providing a generic way to define the parallax behavior in DF. Change-Id: I89afcec08425dbf1c20f12b0d5112d7dfa2d1ac2
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/NewDetailsSupportFragment.java
|
47e9b753d9167840037651f9deb5140987e5d226 |
|
30-Sep-2015 |
Dake Gu <dake@google.com> |
Generate test for PlaybackOverlaySupportFragment Change-Id: Ia3064006f3fb3fc4fd5230ff3ab24a7c4ba2470f
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/NewDetailsSupportFragment.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
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/NewDetailsSupportFragment.java
|