History log of /frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9afded4d212243e554c2695c4a2f90c13628e24b 09-Sep-2011 Bryan Mawhinney <bryanmawhinney@google.com> Add ability to set overscroll slot count

Change-Id: I10541172d99e1ede5b27bfcef106afadc0e540d4
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
8debeb8a0a785f0ad66bc75200cdb47c137602bc 08-Feb-2011 Arnaud Berry <arnaudberry@google.com> Added a way to trigger an interpolated rotation of the carousel

Change-Id: I4717952f5fe6b5d99699e55d93abcd1cb1fc1986
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
c2baf88a763ae0e3694c8a10c13f203db9aec363 12-Jan-2011 Jim Shuma <jshuma@google.com> Allow specifying per-card matrices

Set a per-card matrix through the newly expanded
TextureParameters mechanism.

This also changes the behavior of the card matrix so that
it is applied locally to the card, rather than being
applied to the whole carousel. And the detail texture is
no longer drawn with the card matrix.

Bug: 3206251
Change-Id: I5119bc97b136d32cf9d4e29e7aa3751334cc68c1
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
3adf712e636f67265da7a6ff425c87e63fc20884 17-Dec-2010 Jim Shuma <jshuma@google.com> Allow fading of the entire card

Give cards an overall timestamp, separate from the texture
timestamp. This allows cards to fade in before their
texture has been set.

Bug: 3281327
Change-Id: I9405636ebcbfc2c27d777d435f3abf24265dfbe9
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
ac1d1fd9b14ce42aa9e04f8c472039790d736786 16-Dec-2010 Jim Shuma <jshuma@google.com> Fix a bug causing store config to be lost on rotate

Store configs were getting lost on orientation change,
since they weren't being stored right. This fixes that.

Change-Id: I4b256764347e3e7462fb4532254565d81bfc8980
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
f664659f79399e92025e1dfe1ffbb682ff05613c 12-Dec-2010 Jim Shuma <jshuma@google.com> Allow specifying configurations for mesh primitives

This lets you specify separate alpha, depth read, and depth
write behaviors for each primitive in your mesh. It will be
used by Books to allow drawing shadows separately from the
main model.

Change-Id: I9351f720e6e09260b5bcd335e305922ff48cb373
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
1a5b4d109397ea175b5cbaa7490ca18e78eb040f 15-Dec-2010 Simon Wilson <simonwilson@google.com> Allow top-to-bottom card order when rowCount>1

Add a member function to CarouselRS.java called setFirstCardTop()
to allow the first card to appear on top instead of the bottom
when rowCount>1. The default is false, meaning the existing
behaviour is not changed for other apps.

Change-Id: I38d666958ebb802e211496895cbe3f91e78f5392
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
358868df5043b240c9a241c7bb75128ff94b1f34 09-Dec-2010 Bryan Mawhinney <bryanmawhinney@google.com> Use ids rather than Meshes when specifying default / loading geometries.

This allows them to be reloaded when required, thus fixing
http:/b/3237395

Change-Id: I9eea73d85a8c272debbfb45d5577ded185cf8112
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
8441b1025afe64748f9e3483baacee92171bbfa3 02-Dec-2010 Jeff Sharkey <jsharkey@android.com> Enable invalidation of carousel textures.

Mirrors existing implementation of detail texture invalidation. Also
fixes issue where eraseCurrent was being ignored.

Fixes http://b/3246908.

Change-Id: I7348536b43b1ccf6b7df2389a1100c3d5b1671a8
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
9c019da0f3083c4b82552fb2fe5b052f90073cb9 30-Nov-2010 Bryan Mawhinney <bryanmawhinney@google.com> Ensure default card matrix is set before creating cards.

Change-Id: I3fd55a3332f319c2a3a7a9c9f1a1351e48c0d178
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
51dd0196e4f3bd4086545f5bf30038ca9ad9ac27 20-Nov-2010 Bryan Mawhinney <bryanmawhinney@google.com> Allow user to specify a custom matrix to transform cards.

Change-Id: I28901c4bdee160c06deae1167489510122d45e98
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
14d2c1ec52bb04b5120c2bfdd1a8811a238573ce 17-Nov-2010 Jim Shuma <jshuma@google.com> Allow clients to draw carousel cards clockwise

This consists of the following:
- Plumb the new fillDirection parameter
- Set the slotPosition (and consequently the cardPosition)
at the appropriate points
- Compute motion and overscroll based not on first and last
bias but on lowest and highest bias.
- Let cullCards() allow thetaFirst > thetaLast

Bug: 3177563
Change-Id: I2bb7b3f906726db5ced2ea5bad0e5395f5821d1d
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
0cec8afdb4f9d78adf88c9b9b41e993aef617bea 12-Nov-2010 Bryan Mawhinney <bryanmawhinney@google.com> Add multiple row support to carousel.

Change-Id: Ic4f2586b1ff45a40c03a728b1664c55977c7b846
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
6af401bca5f8854524d128e9df5700035fae1160 12-Nov-2010 Jim Shuma <jshuma@google.com> Add updateDetailTexture to allow updating detail textures

Change-Id: Id0d3146142bc7019523c038cacbfffb71db56594
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
1882cebdc1b7b0551189ca33fb7cb77ef10c988b 03-Nov-2010 Jim Miller <jaggies@google.com> Add better event handling to Carousel.

This changes Carousel to rely on historical event times instead
of the wallclock. This has the effect of improving Carousel's
velocity estimate, which provides much smoother tracking of
the user's intended motion.

Change-Id: I987294386212b88fdfbf847a12735e4badf6045c
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
be5482f170e191aa98a3c2ecefdeaf936b7df412 29-Oct-2010 Jim Miller <jaggies@google.com> Major improvement to Carousel dragging.

This change adds new drag choices to Carousel:
DRAG_MODEL_PLANE, DRAG_MODEL_CYLINDER_INSIDE and DRAG_MODEL_CYLINDER_OUTSIDE.
The old drag model is still available as DRAG_MODEL_SCREEN_DELTA.

Change-Id: I339c21ceaa493fb302c6b57adebfa2063a68d69a
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
fb179e7afd8f02be63061b478b0283e3085fc25f 25-Oct-2010 Jim Miller <jaggies@google.com> Carousel performance improvements.

This change disables depth and changes the background bitmap
for the test case to 256x256 instead of 512x512. With these
two changes, Carousel consistently achieves 87fps with no
background and 78fps with. Both tests were with sync-to-vblank
disabled.

It also cleans up the program store names to have more
meaningful names as we add new states.

Upload after rebase.

Change-Id: I6008fbd89fbe924dbea10792b3f787fe69586fa0
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
7cc5787b49708f63aeb818bdd06efed3d4229925 21-Oct-2010 Jim Shuma <jshuma@google.com> Switch to using ModelViewController-based CarouselView

Change-Id: I5cd2ff8ce9b2102ab6b10f6d6a41f87e0f3a06f3
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
4a8736e22d7b40ab9dfa3fbd8a10de92144912b3 14-Oct-2010 Bryan Mawhinney <bryanmawhinney@google.com> Provides more control over detail alignment.

Replaces setDrawDetailsBelowCard and setDetailTexturesCentered
with setDetailTextureAlignment, and implements support for
vertical centering.

Change-Id: Idee5f28235e269667132920421cfe32f91456285
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
a84feeb7e4dc1a75ec6d0b1f2494893987fc3ca3 15-Oct-2010 Jack Palevich <jackpal@google.com> Add API to get/set carousel rotation angle.

+ Add setCarouselRotationAngle
+ onAnimationFinished now returns the current carouselRotationAngle

+ remove Request/ReportFirstCardPositon, not required.

Note that the carouselRotationAngle is specified in floating point
slot positions, not radians or degrees.

Change-Id: I4f70c2aff07e9ab15a9bf6ac834ac5a61830a28b
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
7ec486bf1373232a35efa96622f31ac1aff5456b 14-Oct-2010 Bryan Mawhinney <bryanmawhinney@google.com> Guard against setting detail textures after destroy.

Change-Id: I0c375a05cbd44d354ea0439b5aecee59a1306ce3
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
bfc5ce2da9e0d8d0ec2535c465624574d98418d7 12-Oct-2010 Jim Shuma <jshuma@google.com> Performance improvements: Enable blending only when needed

Never draw the background image with blending.

Draw card images with blending only when requested. By
default, blending is enabled, but [MVC]CarouselView
subclasses can disable it.

Change-Id: Ia66f0fb7df45881481f0b782983402fcecb4a29a
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
4fe6ea729d1fc44c8126de7a92a710c3885fb2ec 11-Oct-2010 Jim Shuma <jshuma@google.com> Detail texture geometry fixes, and offscreen loading tweak

Changes in support of Simon Wilson's work on improving the
Books carousel appearance. Provide an option to center the
detail texture with respect to the card, as opposed to the
default left-alignment. Draw the detail texture based on the
bounding box of the card, not just on the left coordinate.
Add an option to specify how many offscreen cards are
maintained in memory (as opposed to just one on each side).

Change-Id: I696f7315423440a9cecb503f07be96ffee96424f
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
594ff62c170509c0d69b30f4c2a5e71d4799a9c8 08-Oct-2010 Jim Shuma <jshuma@google.com> Add long-press support to carousel

Change-Id: I65f468d4d0104bac2e98a8e97ec3ba49db42c7d5
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
83d7a5f03e6511372f73e3e4e03a6d403b20125d 07-Oct-2010 Bryan Mawhinney <bryanmawhinney@google.com> Provide option to allow cards to face the center of the carousel circle.

Change-Id: I74ea4308316735ef5ec28318e4dc9374410894fa
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
5621100edc38c6e7f7fd7ef54945ba035204fe49 07-Oct-2010 Jim Shuma <jshuma@google.com> Fix typo

Change-Id: I59664c495dc5106846829eee3449231fb72062f7
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java
c7f405d16c2c7143de7fcda9c4f77f9758b5342a 05-Oct-2010 Jim Shuma <jshuma@google.com> Refactoring Carousel into MVC: Phase 1

Split CarouselView into MVCCarouselView and CarouselController.
For now, CarouselView lives on for the benefit of other apps.
Books will be switching over to MVCCarouselView shortly.
Eventually the plan will be to have all carousel users switch
to MVCCarouselView (which will later be renamed CarouselView).

Change-Id: I56c7aa3269c3d3303c67c3698960be3495d8ce83
/frameworks/ex/carousel/java/com/android/ex/carousel/CarouselController.java