History log of /frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5dac0398c2684197a4363f15cef292fee126038f 15-Nov-2011 Bryan Mawhinney <bryanmawhinney@google.com> Port ICS tilt-style overscroll from java to rs

Code follows the java implementation as closely as possible to make
comparisons and future bug fixes easy.

Bug: 5613515
Change-Id: I14db2f2d659be919b4b12e5a7fe53af7ec137467
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
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/carousel.rs
376a291b7a3016cc85501ee1c044629cce60e75c 25-Jul-2011 Logan Chien <loganchien@google.com> Silence the parenthesis warning.

Change-Id: I95527858918366b2fde54a71b0b831dda0551172
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
46a02894a12775c16c4588a168c3cbc767a6f983 06-May-2011 Jim Miller <jaggies@google.com> Fix unreported bug with CarouselTestActivity where incorrect items were shown.

The count was wrong for the number of items in the allocation pool since we
now prefetch more data.

Add demo code to show dialogs for events generated by Carousel
(select texture, select detail, long press).

Some other minor code cleanups.

Change-Id: Iebecd1945c115d96bd60a3968985c1b104b586d6
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
55392759e4f1fd3b17799ef8bd75d959dcf3b0a7 03-May-2011 Stephen Hines <srhines@google.com> Clean up use of rsSetObject/rsClearObject.

Change-Id: Iee58e5260654883beece74a04fc5f3a2eae329cb
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
2cf7d5b78744e0d95951ddd631ca11904296ba7c 03-Mar-2011 Jim Miller <jaggies@google.com> Fix 3404464: Minor tweak to Carousel scale-up animation

Change-Id: Ieb21634a68d8f5b9f1b411c547c18e32349c4d9e
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
ceae13b8f2ae7342506ecb4e4fcce956dbb12af7 02-Mar-2011 Jim Miller <jaggies@google.com> Fix 3404464: Add scale-down animation to Carousel

This changes the behavior to avoid snapping back to the original
size, which was a very jarring effect. Instead, Carousel now has
a scale-down animation that is triggered when the user releases the item.

Change-Id: I81a91e65d0da991a98211f2ecb92fa89c8c81e22
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
b4959ac31abdaf6ab7309c17f56fceaa1baabed7 24-Feb-2011 Bryan Mawhinney <bryanmawhinney@google.com> Draw 2 additional slots on either side of visibleSlotCount.

This fixes an issue where book shadows disappeared too quickly.

Change-Id: Idc8ef5af2c334fa4eb3f0514e79a25fd82f5cae8
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
73b524072839e23684acc2de22fbee5bb7181b7e 23-Feb-2011 Bryan Mawhinney <bryanmawhinney@google.com> Merge "Don't treat prefetched cards as visible."
5ac1de00d4441748a4b183b5d406298cd18f2d27 18-Feb-2011 Bryan Mawhinney <bryanmawhinney@google.com> Don't treat prefetched cards as visible.

Previously, prefetched cards were considered visible,
which is inefficient when the number of cards to prefetch is
large, and can confuse the hit detection logic (see b3468797)

Change-Id: I91e150c52b88608eb8627edc8cce30ecfb44e672
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
55b237bcd720774e27248f5fecf6c32a3f420a4c 17-Feb-2011 Jim Miller <jaggies@google.com> Fix 3180048: Add finite velocity history tracking to Carousel

Before this change, Carousel sometimes showed chaotic movement
when a long history of motion was captured because of the
infinite history of velocities used to calculate the average.

The code now limits the number of historical velocities to a
small number, which results in much more predictable motion.

Change-Id: I4edadbde5464749646dcce50495e54b3abb73901
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
f88df948fc7821e33b3165bb969b2b9cb38a8b49 08-Feb-2011 Arnaud Berry <arnaudberry@google.com> Merge "Added a way to trigger an interpolated rotation of the carousel"
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/carousel.rs
8a357ebe4ae3063dbb3d8b3bdf6f665b05dd8e6f 04-Feb-2011 Jason Sams <rjsams@android.com> Update to public APIs.
Remove use of private depricated APIs.

Change-Id: I1f1fd0046bf5c9680b35c428afa40f5e4e19e222
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
dbd552175226ac69aea606953cdd3c03a58bd2cc 31-Jan-2011 Jim Shuma <jshuma@google.com> Disable long-press animation

Bug: 3404464
Change-Id: Ife6b29241e47727bc980753d0233da3a4a945779
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
0de20d1ebd3dc8e766f7f4f4dbc3f77dd7326e30 23-Jan-2011 Jim Shuma <jshuma@google.com> Invalidate unloaded textures to unloaded

When invalidateTexture() is told to continue drawing the
current texture until a replacement is found (STATE_STALE),
but the texture was not there in the first place since it
hadn't loaded yet, later attempts to draw the texture based
on the assumption of its being there (by virtue of being in
STATE_STALE or STATE_UPDATING) would result in rendering
problems due to trying to bind a nonexistent texture. The
fix is to make invalidateTexture() only set STATE_STALE if
a valid texture had been there in the first place.

As an added precautionary measure, this change also has a
stopgap solution that will draw the placeholder image if
the state machine indicates the texture is valid but it is
not actually valid. This case should never be encountered.

Bug: 3356101
Change-Id: Ia87e9e651f8ac3138faced3cf0f6199c58ee51e0
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
7d27aa4388936d7607407d25cc52d42e00f6567a 19-Jan-2011 Jim Shuma <jshuma@google.com> Arrange cards based on default matrix

Previously we were arranging cards on the screen using the
individual card's matrix. When the card matrices are
different, however, this leads to an inconsistent layout.
Instead, use the default card matrix for layout, while
using the individaul card matrix (which, when not set
separately, is the same as the default card matrix) for
handling drawing the individual card.

Bug: 3365044
Change-Id: Ibb7ad7760131d2c649cc0882b784c9d2e73a737f
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
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/carousel.rs
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/carousel.rs
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/carousel.rs
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/carousel.rs
e8cab95c5f73ddf6843d82793decc3adb4692860 04-Dec-2010 Jim Shuma <jshuma@google.com> Add more feedback parameters to onCardLongPress

onCardLongPress now passes information about the detail
texture being passed, and where the touch happened.

Also fixing a bug that caused long-press to be interpreted
as selection.

Change-Id: I4ee189c7c006abbc6ad71ac60778d1f18e8684a2
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
e26fadd96cff3251d7ed391e10ab9c372ce5e825 06-Dec-2010 Bryan Mawhinney <bryanmawhinney@google.com> Exit overscroll mode when the user interacts with the carousel.

This ensure that when the user releases the carousel, we don't
automatically revert to overscroll mode unless we're still in
the overscroll area.

Change-Id: I1cec3380452383e2ba70b1dfab540a53e8289838
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
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/carousel.rs
b2c785780ecbe79a5b7ba558b21985f956458c8c 02-Dec-2010 Jim Shuma <jshuma@google.com> Tap to stop the carousel

When the carousel is moving faster than 15 degrees per
second, a tap will stop the motion but not be interpreted
as a selection. Slower than that, it will be considered a
selection.

This is an improvement on an earlier implementation because
it lets through selections when the carousel is still
moving slowly.

Bug: 3179984
Change-Id: I27b55cf88e20d4ef1383ec0e4144f65a101f37fc
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
5b54f405b4a1afcf57b5ccee2026a00a1004be20 23-Nov-2010 Bryan Mawhinney <bryanmawhinney@google.com> Ensure that card 0 is properly initialized.

Previously, when calling setCardCount(0) followed by setCardCount(n),
only cards 1-n would be initialized. This prevented the first card
from being drawn correctly.

Change-Id: I5697553a6dba12825f546468747220ce67e904ef
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
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/carousel.rs
9336f7e620e320b3c10336446a1bcf1f53ecfa97 19-Nov-2010 Stephen Hines <srhines@google.com> Remove unnecessary export_func pragma.

Change-Id: Ib0b24b56380211aa6775e4fca9d3fcab4c743d7b
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
370b177eb74cd8a7d9a2ab06a5ee8bb3ed25f74f 18-Nov-2010 Stephen Hines <srhines@google.com> Mark non-exported functions as static.

Change-Id: I99ab499fa1208cb322ce2dffecd909f01693c158
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
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/carousel.rs
ed5cdfa293ec57cb14b98cdc3fa00ac5ec1c1ed4 16-Nov-2010 Stephen Hines <srhines@google.com> Remove zero-init/destructor WARs.

Change-Id: I27da6a11c2325711194b123c6fdc3d2a7bdf02a8
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
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/carousel.rs
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/carousel.rs
8fd40311898a9ec759a76f021642f43e617e38c4 11-Nov-2010 Jim Shuma <jshuma@google.com> Allow carousel apps to receive taps on detail textures

Change-Id: I909edf4f05e268a00a3727fa684f3d83360e2225
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
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/carousel.rs
1eccd028e704c15e842c1f23254d77a1a0a4cae0 02-Nov-2010 Jim Miller <jaggies@google.com> Several improvements to Carousel:
- Use pool of allocations to reduce GCs in Carousel.
- Hold of selection scale animation for 100ms
- Fixed bug with detail ruler not being drawn at pixel coordinates.
- Fixed bug where adding cards caused all cards to be refreshed.

Change-Id: I0ca254b6b3c3e4d9b2ce6575d25c8ede59b0a075
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
6f2cc8cf611860467315ecc542f71a225625eb1c 02-Nov-2010 Jason Sams <rjsams@android.com> User RS resize instead of manually implementing a copy routine.

Change-Id: I201cafd9683752252e6e484e5fb6d370a4ec6cce
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
dcfb45adbcf37de68920c181322aaa9e4e4b58d8 27-Oct-2010 Stephen Hines <srhines@google.com> Fix local variable usage.

Change-Id: Id475a5bee0ba7b25ef3fbab863969a82e144a7c6
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
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/carousel.rs
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/carousel.rs
fe38385c1e5ce443adb962c066adeea185ad3d74 26-Oct-2010 Bryan Mawhinney <bryanmawhinney@google.com> Ensure detail textures are positioned at integer pixel coords

Change-Id: I4ffe64e009e465d310eea875f835522a40ffc825
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
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/carousel.rs
cfe41767a3596a65eef91b6f68286fd0f916a4c7 19-Oct-2010 Jim Miller <jaggies@google.com> Fix 3099806: Prevent glitch when scrolling to end of Carousel.

This fixes a bug where some activities were seeing a
"bounce" at the end of the Carousel list. The issue would
happen because the velocity wasn't reset before the
overscroll animation completed, which meant any call causing
the screen to refresh would run doPhysics() which would cause
the overscroll animation to run.

Change-Id: I2e19603cca3e0ca3374010a762429b8d79804b9e
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
43471a7e84593d0dd855ec5c66d70891a6fd4c81 14-Oct-2010 Jim Miller <jaggies@google.com> Several major improvements to Carousel:

Improved selection criteria. It now looks for the finger to move less
than a minimum distance (currently 50 pixels) before allowing that
card to be selected or the carousel to move.

Greatly simplified animation detection logic.

Started adding new motion model methods.

Change-Id: I8a7dc85dcfe547ff7bc024ba8be941bb787075ec
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
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/carousel.rs
bf39450b962d91ec78af53db39826d55ddb39902 14-Oct-2010 Jim Shuma <jshuma@google.com> Disable the depth test when drawing detail textures

Add programStoreDetail for drawing detail textures. It
does blending (with non-premultiplied alpha) but not depth
testing, and does not write to the depth buffer.

Change-Id: I5c31f9fcf551320288dc6b047e54e6988591154c
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
1ceb73ce68ea2db1c97994deb9e372d0abcddfd5 12-Oct-2010 Jim Shuma <jshuma@google.com> Don't clear the background

Since we always assume background textures are opaque,
do not clear the screen.

Change-Id: I30a11024f5e13d05dd2da04b44b131b3265a5d9c
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
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/carousel.rs
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/carousel.rs
b06b5d3798e2668b8b5660da625c13c743daf469 09-Oct-2010 Stephen Hines <srhines@google.com> Remove now unnecessary pragma rs export_var().

Change-Id: I8b5ecb9959d1ca506621e9f7228f3b9cd8698278
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
d7fa647e6fa4e832381be5bdd03065f9ea35c3f1 08-Oct-2010 Jim Shuma <jshuma@google.com> Adjust the bounds for how far books can sway

Change-Id: I1e4a56cf8df900d7cfeccc9ab323e9af2c71a73b
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
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/carousel.rs
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/carousel.rs
2ba04e061b52c488a154739379501dc833e39f79 06-Oct-2010 Jim Miller <jaggies@google.com> Fix bug where resizing cards array caused cards to get reloaded.

Change-Id: I090dd17a01dada63461708760454f073b4b7cb13
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
f7c724da4bb4fcd3cd02add04a7bb8052e07e4c3 05-Oct-2010 Jim Miller <jaggies@google.com> Fix 3061600: Allow scrolling to last few items in CarouselView.

This fixes a bug where the last few items cannot be scrolled to.
The code now follows visibleDetailCount to allow scrolling all
cards into the "visible area" for inspection and selection.

Change-Id: I0fded18f0f7ac2828385164b287fec2f522dc3a0
Fixes: Music2, Books, Recents.
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
b378af500b36226635b6343b1d5009ee9af44fc1 02-Oct-2010 Jim Miller <jaggies@google.com> Major performance improvements to Carousel:

Use single-texture shader when we don't need to blend. Gets
us to solid 55 fps in steady-state.

Add lineOffset parameter to DetailTextureParameters to allow
apps to set an offset from the top of screen.

Minor refactoring of picking rays in prep for oblique frustum
support.

Added 'debugRendering' flag to carousel.rs.

Updated CarouselTestActivity to demonstrate use of new properties.

Change-Id: I472e442a092ef83445ac30eb64265d49af022261
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
a9e9c4bef076e718094786edfe0290f798e1db4b 01-Oct-2010 Jim Miller <jaggies@google.com> A few more Carousel improvements:

Add feature to fade detail texture out as it goes into the distance.

Fix background texture drawing performance by using single texture
shader instead of multi.

Fix minor bug with background texture after review, as agreed.

Change-Id: Ibd80f83058f78cf40cae902626fdfba2a4792ee9
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
8b55d7500c1e5a88c415dae8dcead16b152d7929 01-Oct-2010 Jack Palevich <jackpal@google.com> Preserve existing cards when resizing the card array.

Change-Id: I0f5a4e11585d289aaed9c3553b82a9df80f8acd0
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
420b44b8b11ec1c309ea130e69a6876325dbfef9 29-Sep-2010 Jim Miller <jaggies@google.com> More improvements to Carousel.

Added new blending mode and render back-to-front for default view.
Added new "rez-in" effect for last few cards (selectable).
Added time-lapse fade-in as new textures become available.

Change-Id: Ic5e662bcd59fee127227a00529dd868342957a9f
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
7867abe6e7af226fc29285890d6decb0ce3daa0f 24-Sep-2010 Jim Shuma <jshuma@google.com> Don't consider tap-to-stop as a selection

When the user taps while the carousel is rotating,
the user intent is to stop the carousel, not to make
a selection. Therefore, don't consider a tap to be
the beginning of a selection if it comes while
the carousel is animating.

Change-Id: I2e86e97926c368fbc40f0f123df1f251b98d4327
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
d443c88da4c7cf1947c12b26f111cb899cc8afe4 24-Sep-2010 Jim Miller <jaggies@google.com> Temporary workaround for llvm crash.

Discovered this workaround while looking for the cause.
Checking in to unblock developers.

Change-Id: I1f861d20452589bad794e42f1b91a3b2c04d04bd
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
af8cf9a3bbe517b604b48e217b00085351ab2496 24-Sep-2010 Shih-wei Liao <sliao@google.com> Change 1. to 1.f and use rsMatrixLoad. Carousel tests work for me.

Change-Id: I27aadc1adedc15136a95cd1a1546a3d51ca098f6
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
7c09ccce478100d75e4427d87866ff19d758ae7a 22-Sep-2010 Jim Shuma <jshuma@google.com> Support for Books carousel

Fixes a bug causing detail text to sway with the cover.
Allows specifying the number of detail textures to show.
Draw detail texture either above or below the card.
Makes optional the ruler from card to detail texture.

Change-Id: I41e45058eff1fdd4a3fea587ad4dd7f3bc75482a
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
c4c6f38bf410af40e10c63b152befd5a39df87c8 17-Sep-2010 Jim Miller <jaggies@google.com> Use proper rsObject methods when switching texture and geometry.
Fix race condition in set methods when invoked from RS thread.

Change-Id: I0734e287727f3ce77ac388512c49028b2428b614
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
3df59346f395434454d310b070fff195089fbaf1 16-Sep-2010 Jim Miller <jaggies@google.com> Fix for potential memory corruption in RS when cardcount = 0

This bug is related to a previous workaround for a limitation in RS where
an allocation cannot have a size of 0. Instead of creating the allocation,
it would set the allocation to null.

This workaround always allocates at least one card and adds a
shadow variable to indicate when the array is valid.

Also added checks for negative numbers.

Change-Id: Icc37f5da048b8177b93b05472a093f695e6ecc86
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
b0f070636c29ad178f4e21306f301fe3d20c183b 16-Sep-2010 Jim Miller <jaggies@google.com> Expose setting the background color of the Carousel.
Switch setBackgroundColor() api from Float4 to float to avoid
forcing apps to explicitly import RenderScript Float4 data type.

Change-Id: I650ac0a74cd2abce489a9526652e1c31a93ea9be
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
7cb0068e59dde61ef0e649735199e5ba31c9c6af 14-Sep-2010 Jim Miller <jaggies@google.com> Add detail text to Carousel and CarouselTestActivity.
Add better documentation to CarouselView.
Remove unnecessary log spew.
Updated documentation after review.

Change-Id: I13df9f9bcac8898b198e3dbf06b11ae7522dc8f1
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
198a060d650bc849ef0f25b597888fac9546803b 15-Sep-2010 Jack Palevich <jackpal@google.com> Add an API to report the first card position.

Change-Id: I07072569f9e02a327aed4a2b13b3748899687b33
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
c0bb8af58ae15674178f2db240283719918c6f28 15-Sep-2010 Jim Shuma <jshuma@google.com> Integrate functionality from the Books carousel

This change is getting ready for the Books app to
use the system carousel. It integrates functionality
that previously only existed Books:
- Swaying based on the velocity of the user drag
- Disabling overscroll
- Disabling jumping into position
- Some stability improvements

To do this, it exposes the following functionality
publicly from CarouselView:
- radius
- sway sensitivity
- friction coefficient
- drag factor
- point to lookAt

The changes to Books to use this are at change #68137

Change-Id: Ie81c3b328716d7edb1652e9a8b6ecfd161c7fabc
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
9afba8c61f6aff94c68acbfaae1cc58bd28c13ea 04-Sep-2010 Jim Miller <jaggies@google.com> Add background texture support to Carousel widget.

This allows an application to specify a background texture to draw behind the carousel.

Change-Id: I2eefc3fe460acf704a46d80698c0aae493e9de58
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
dce9af330efceae2b8d1d7c25e7e236b4e21719b 03-Sep-2010 Jack Palevich <jackpal@google.com> Send invalidation messages for loading textures and geometry.

Previously we only sent the invalidation messages for loaded textures and
geometry. Now we send invalidation messages for both loading and loaded
textures and geometry.

This allows clients that have asynchronous loaders to cancel loading of
queued textures and geometry.

Change-Id: I5b92b732e09076d48248a0ee3fdc02efc279d644
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs
5ce730797a8a7278dfe19dac8a9460b25675fed0 02-Sep-2010 Jim Miller <jaggies@google.com> Add carousel as static library to build.

Change-Id: I5e3eb0a6c3ea6deeee3856c486bbb469c8d20360
/frameworks/ex/carousel/java/com/android/ex/carousel/carousel.rs