History log of /frameworks/support/v17/leanback/tests/generatev4.py
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
/frameworks/support/v17/leanback/tests/generatev4.py
dec38f028e4991e352cb45f0e3c1bc85fd9b973d 04-Apr-2017 Dake Gu <dake@google.com> leanback: fix flaky tests

Dont wait activity isDestroyed() in afterTest.
And remove member mActivity from test class.

Bug: 36701683
Test: run DetailsFragmentTest multiple times on emulator
Change-Id: I0e0e037f6e85f86a1157a7640b864661cc074e4f
/frameworks/support/v17/leanback/tests/generatev4.py
6525e063fbbd691a8553f4fc77f3960f93bea34d 22-Mar-2017 Dake Gu <dake@google.com> Fix multiple bugs related with DetailsFragment:

1. If onStart reinitialize the adapter, it may causes
BaseGridView.animateOut() being called when there is
no child which causes NPE in GridLayoutManager.slideOut()
2. In DetailsFragment.onStart() we should not requestFocus()
on vertical grid view if DetailsFragment already gains focus,
otherwise it will move focus out of embedded video playing.
3. remove support of DPAD_DOWN from playback to details ui.
The returning is done through BACK.
4. Fix the flaky DetailsFragment navigation tests.
5. Make PlaybackFragment internal variable package private
to remove potential generated stub method and easy to test.
6. Change DetailsFragmentTest to be "LargeTest" to skip
the TreeHug integration.

Bug: 36492114
Test: DetailsFragmentTest DetailsSupportFragmentTest

Change-Id: Ia437611c234565aa6a85709c897cdd436ff21cf9
/frameworks/support/v17/leanback/tests/generatev4.py
bf4318c67254bc11307796601b9fb4a8bbfe67b2 21-Feb-2017 Dake Gu <dake@google.com> Parallax: API factorying and add direct mapping

Remove six classes from api file: Parallax.IntParallax,
Parallax.FloatParallax Parallax.IntPropertyMarkerValue,
Parallax.FloatPropertyMarkerValue, ParallaxEffect.IntEffect
parallaxEffect.FloatEffect.

Remove methods Parallax.verifyProperties ParallaxTarget.getFraction
from API file

The standard parallax mapping converts value of source
into 0~1 fraction then convert it back to target value.
This is not only inefficient but also causing rounding errors.
Added a concept of ParallaxTarget.isDirectMapping(). When
true, ParallaxEffect bypass the fraction calcuation and directly
passes value from source Property to
ParallaxTarget.updateValue(Number).

Now DetailsFragment uses direct mapping for changing
child drawable's bound.

Fix the bug that ValuesRule's type is unmodifiable.

Bug: 35933446
Bug: 32022097
Bug: 35632609
Test: DetailsFragmentTest.parallaxTest
ParallaxIntEffectTest.testDirectMapping
CompositeDrawableTest

Change-Id: Ibd89ba6621fc0804ea24cba099b6d2e6bf3fccc9
/frameworks/support/v17/leanback/tests/generatev4.py
9869eb38607552105baa88a0fcba610461045eb5 16-Feb-2017 Dake Gu <dake@google.com> DetailsFragment: move navigation actions out of focusSearch

Move the showTitle and slideOut actions from focusSearch()
method to when focus actually changed.

Doing actions in focusSearch is generally a bad idea, wont work
with talkback which completely bypass the focusSearch() senario.
This is first step toward supporting talkback.

Refactored DetailsFragmentTest and added script to generate
DetailsSupportFragmentTest.
Added Test of navigation between video/rows/title using
requestFocus and DPAD.

Test: DetailsFragmentTest DetailsSupportFragmentTest
Bug: 35437018

Change-Id: I01f51c07675dc6858fbc1a83ea23921294fb48ac
/frameworks/support/v17/leanback/tests/generatev4.py
f37579e64940bfdd642cc315f6347d60b5addd69 15-Feb-2017 Dake Gu <dake@google.com> cleanup life cycle issue of PlaybackGlue in PlaybackFragment.

onDetachedFromHost should be called in onDestroy. A PlaybackGlue
should survive onDestroyView for the case setRetainInstance(true).
When configuration change, we should not need recreate PlaybackGlue.
Add a VideoFragmentTest.

Refactoring Tests to use SingleFragmentTestBase and remove
lots of redundant test Activity classes and layout files.

Changed test mp4 to be h264 Baseline profile so it can play
on API 19.

Bug: 35364233
Test: added VideoFragmentTest VideoSupportFragmentTest

Change-Id: I93bd8cbf449ac0fea4b6b76d10dc611c538283e8
/frameworks/support/v17/leanback/tests/generatev4.py
50cf9ada93e50e906f20f5edf595234ada196d45 28-Jan-2017 Dake Gu <dake@google.com> Add option to allow customize HeadersFragment

To support enable/disable focus scale of HeadersFragment,
Refactored BaseRowFragment and Presenter to allow retaining
the same ItemBridgeAdapter when wrapped Adapter changes or
Presenter changes. So user can set up FocusHighlight
on the ItemBridgeAdapter without worrying it was overwritten
when recreating the ItemBridgeAdapter.
Added BrowseFragment.onCreateHeadersFragment() for user to
override HeadersFragment.

Added more test in RowsFragmentTest, Added HeadersFragmentTest.

Bug: 34777164
Test: RowsFragmentTest RowsSupportFragmentTest
HeadersFragmentTest HeadersSupportFragmentTest

Change-Id: Id3fbc9cb0b5b0a3c637d9bc789bb1104fbaa21f3
/frameworks/support/v17/leanback/tests/generatev4.py
e1cde4d4ac42a6e9e16aad2b4df970c7c7d0771c 21-Dec-2016 Dake Gu <dake@google.com> Leanback: parallax and details video API refactoring

There are too many new concpets introduced when we create
multiple building blocks around parallax. This CL tries to
get rid of some classes.

1. Remove class ParallaxSource, integrated into Parallax.
So there is no more setSource()/getSource().

2. Replace DetailsParallaxManager with DetailsParallax. It is no
longer a manager pattern but DetailsParallax is a direct
subclass of Parallax.

3. Replace DetailsBackgroundParallaxHelper with
DetailsParallaxDrawable which is a direct subclass of
CompositeDrawble. No more helper concept.

4. remove the glue creation API from DetailsFragment, those
are not necessary and app can do it on the side.

The summary of new classes:
1. Parallax, tracks multiple UI events and perform multiple
ParallaxEffects on ParallaxTargets. RecyclerViewParallax is a
subclass of Parallax that monitors RecyclerView child positions.

2. DetailsParallax is a subclass of RecyclerViewParallax,
DetailsFragment holds the DetailsParallax object and is responsible
to attach it to VerticalGridView and sync with Transition animation.
DetailsParallax is shared by both background bitmap and video.

3. Created a DetailsFragmentBackgroundController class responsible
for parallax background and embedded video playing.

Bug: 33750080
Bug: 33751156
Test: all existing leanback tests

Change-Id: Iec81a444d5d4fbeb675f16222b09b407acf007a2
/frameworks/support/v17/leanback/tests/generatev4.py
5083c1eeb9cea04354f7ad4cea84a6d27ce985dd 03-Jan-2017 Dake Gu <dake@google.com> RowsFragment: use default alignment if setAlignment() not called

Some apps expects default alignment, a regression in support lib
25 will make RowsFragment rows to align to top of screen by default.

Bug 33279341
Test RowsFragmentTest RowsSupportFragmentTest

Change-Id: I2a8c78ac1c40fe6c0b12b624ab99bb6ced06a8ee
/frameworks/support/v17/leanback/tests/generatev4.py
cc671dd3caac1d0cbf3f6999ab063c9ff1f297b2 18-Oct-2016 Dake Gu <dake@google.com> Add checkstyle:off flag

Test: None
Bug: 32243836

Change-Id: I5c28ee5b4623e25126518ceb99f17b5ee384cb76
/frameworks/support/v17/leanback/tests/generatev4.py
2a9b6dfcc745e9ebe3697b590d7f5cdd116b0c3f 24-Sep-2016 Dake Gu <dake@google.com> Fix Crash when Fragment is removed after startEntranceTransition

Bug: 31398332
Test: VerticalGridFragmentTest.immediateRemoveFragment
VerticalGridSupportFragmentTest.immediateRemoveFragment

Change-Id: If40fa401f985e44436f9c9c62002a5d817e7413a
/frameworks/support/v17/leanback/tests/generatev4.py
b8706fd99b0a3724ed8e0c4b97bf37f3cdf389da 12-Aug-2016 Dake Gu <dake@google.com> Add GuidedStepFragment tests

Including back stack test, life cycle test,
view state save/restore test.

Change-Id: I66fd8e57c8be9bb7a23170284ddd72ca860893d4
/frameworks/support/v17/leanback/tests/generatev4.py
3778c4eaa62895085d33965ee391c8b21783cffa 29-Jul-2016 Dake Gu <dake@google.com> leanback: Refactoring ParallaxSource to use Property

Removed "Variable", replaced with "Property", move the
stored int/float values into ParallaxSource. Property contains
an index to retrieve value from ParallaxSource.

Let the ParallaxRecyclerViewSource to subclass Property
to add definitions of how to track a view position on screen.

Bug 30476379

Change-Id: Id442f32177edfbcd21eb98a98d2b6ed8021d666b
/frameworks/support/v17/leanback/tests/generatev4.py
29d63109a6afe055561d46350f987a1874d7409f 25-Jul-2016 Dake Gu <dake@google.com> resolve merge conflicts of 6672d7d to master

Change-Id: Ib9075a3204a2ee95aacb9b2a603465980f0129f6
00c679cbba786f9788451e87995daf7dac4115f1 22-Jul-2016 Dake Gu <dake@google.com> Fix broken ff/rw action text.

The FF/RW action should has "numSpeed + 1" items where the extra
first item is for start FF/RW.

Bug 30162199

Change-Id: I22840bfcfd6715daa680ed278450db1b9474ffa8
/frameworks/support/v17/leanback/tests/generatev4.py
770847c0c8424175f0619026615b11fef50ca269 19-Jul-2016 Dake Gu <dake@google.com> Make Parallax working and add Parallax Tests

Change-Id: I8909a090a8648e50faf84f3c4c5a3a0d6840da56
/frameworks/support/v17/leanback/tests/generatev4.py
d447d1a3819bd66e2ab8c93c6947e982feb11bf7 22-Jun-2016 susnata <susnata@google.com> Switching from ActivityInstrumentationTestCase2 to ActivityTestRule.

Leanback instrumentation tests are currently using deprecated
ActivityInstrumentationTestCase2 class. This CL replaces the deprecated
class with the recommeded approach - using ActivityTestRule.

We will have to make similar changes for other tests.

Change-Id: I647b1e5e1382f5cac96c7ccd56305ead3ffa721d
/frameworks/support/v17/leanback/tests/generatev4.py
7d7bf9541e0203ec67df0fe53367e2c126355b9e 07-Jun-2016 susnata <susnata@google.com> Moving Leanback unit tests.

Moving Leanback unit tests from frameworks/support/v17/tests
to frameworks/support/v17/leanback/tests.

Change-Id: I1dbfe73434a61d721f8666911c688930a8cb32cb
/frameworks/support/v17/leanback/tests/generatev4.py