History log of /frameworks/ex/carousel/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1fadc66d315b5fdebe7e2be3e76bbacd3cb86fad 23-Mar-2012 Eric Fischer <enf@google.com> Import translations. DO NOT MERGE

Change-Id: I6ed4fd0b153689bf163d82c4b30879c2a1fb52c5
est/res/values-zh-rCN/strings.xml
5b1af35d765b2a22033e4eb5e8d9bb650d690108 29-Dec-2011 Eric Fischer <enf@google.com> Import revised translations.

Change-Id: I43380ab215b529e1f23c76fb58f2ff1fbfeee180
est/res/values-de/strings.xml
5758ccdcac0233ee04d7f11b9dce843d7c73973b 29-Nov-2011 Eric Fischer <enf@google.com> Import revised translations.

Change-Id: I880296bb76b6a1d7226541b7587ae650182dd75d
est/res/values-zh-rCN/strings.xml
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
ava/com/android/ex/carousel/carousel.rs
ed2ce847b33c922a26c634563f4f60c1de9c66b8 01-Nov-2011 Eric Fischer <enf@google.com> Import revised translations.

Change-Id: I958131674c746b90d62b6e428b65e554983c52f6
est/res/values-be/strings.xml
est/res/values-et/strings.xml
d70048310bedd675245a8cf55908a5089084b28f 19-Oct-2011 Eric Fischer <enf@google.com> Import revised translations.

Change-Id: I85294e37b07eb6f024f86a0ddd9149085a01d9d6
est/res/values-hi/strings.xml
9afded4d212243e554c2695c4a2f90c13628e24b 09-Sep-2011 Bryan Mawhinney <bryanmawhinney@google.com> Add ability to set overscroll slot count

Change-Id: I10541172d99e1ede5b27bfcef106afadc0e540d4
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/carousel.rs
409bbd95e9979dc0631f8afe10ad8a300ac90f3a 02-Sep-2011 Eric Fischer <enf@google.com> Import revised translations.

Change-Id: Iaf1b05b79b8628a1453fbb94e04eee3fbb72fe8b
est/res/values-ro/strings.xml
est/res/values-zh-rTW/strings.xml
037c57255aa526d1b5834377283c46b1bddd1ff8 26-Aug-2011 Eric Fischer <enf@google.com> Import revised translations.

Change-Id: I67796f3c85ece30d3ad06b33eed63d7e85ad8eba
est/res/values-af/strings.xml
est/res/values-am/strings.xml
est/res/values-ar/strings.xml
est/res/values-bg/strings.xml
est/res/values-ca/strings.xml
est/res/values-cs/strings.xml
est/res/values-da/strings.xml
est/res/values-de/strings.xml
est/res/values-el/strings.xml
est/res/values-es/strings.xml
est/res/values-fa/strings.xml
est/res/values-fi/strings.xml
est/res/values-fr/strings.xml
est/res/values-hr/strings.xml
est/res/values-hu/strings.xml
est/res/values-in/strings.xml
est/res/values-iw/strings.xml
est/res/values-ja/strings.xml
est/res/values-ko/strings.xml
est/res/values-lt/strings.xml
est/res/values-lv/strings.xml
est/res/values-nb/strings.xml
est/res/values-nl/strings.xml
est/res/values-pt-rPT/strings.xml
est/res/values-pt/strings.xml
est/res/values-ro/strings.xml
est/res/values-ru/strings.xml
est/res/values-sk/strings.xml
est/res/values-sl/strings.xml
est/res/values-sr/strings.xml
est/res/values-sv/strings.xml
est/res/values-sw/strings.xml
est/res/values-th/strings.xml
est/res/values-tl/strings.xml
est/res/values-tr/strings.xml
est/res/values-uk/strings.xml
est/res/values-vi/strings.xml
est/res/values-zh-rCN/strings.xml
est/res/values-zh-rTW/strings.xml
est/res/values-zu/strings.xml
358d0e1b3d2830032cabf4e678c7a6b264ae4f77 22-Aug-2011 Eric Fischer <enf@google.com> Import revised translations.

Change-Id: I4eded0d405b56903aa46596f8c688d99d8c11abe
est/res/values-en-rGB/strings.xml
est/res/values-es-rUS/strings.xml
est/res/values-it/strings.xml
est/res/values-ms/strings.xml
est/res/values-pl/strings.xml
cf9756f0b93f86c6dba08d9101db1794fd47f615 09-Aug-2011 Stephen Hines <srhines@google.com> Stop building with older SDK.

This causes issues with our new header file structure for Renderscript,
since the build system is using the modern llvm-rs-cc with preexisting
header files from before ICS.

Change-Id: Ie20c7ee445451d2dcc12f7082f03d7204d1e8bf3
ndroid.mk
376a291b7a3016cc85501ee1c044629cce60e75c 25-Jul-2011 Logan Chien <loganchien@google.com> Silence the parenthesis warning.

Change-Id: I95527858918366b2fde54a71b0b831dda0551172
ava/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
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/carousel.rs
est/res/values/strings.xml
est/src/com/android/carouseltest/CarouselTestActivity.java
55392759e4f1fd3b17799ef8bd75d959dcf3b0a7 03-May-2011 Stephen Hines <srhines@google.com> Clean up use of rsSetObject/rsClearObject.

Change-Id: Iee58e5260654883beece74a04fc5f3a2eae329cb
ava/com/android/ex/carousel/carousel.rs
dd570db14b403c59edb96d5c754736a1995cfe17 29-Mar-2011 Ying Wang <wangying@google.com> Build android-common-carousel against the SDK 12.

Change-Id: I2299266b21b4d7ded2501f87abe90e11e8ec22ad
ndroid.mk
2cf7d5b78744e0d95951ddd631ca11904296ba7c 03-Mar-2011 Jim Miller <jaggies@google.com> Fix 3404464: Minor tweak to Carousel scale-up animation

Change-Id: Ieb21634a68d8f5b9f1b411c547c18e32349c4d9e
ava/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
ava/com/android/ex/carousel/carousel.rs
est/src/com/android/carouseltest/MyCarouselView.java
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
ava/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
ava/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
ava/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
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/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
ava/com/android/ex/carousel/carousel.rs
dbd552175226ac69aea606953cdd3c03a58bd2cc 31-Jan-2011 Jim Shuma <jshuma@google.com> Disable long-press animation

Bug: 3404464
Change-Id: Ife6b29241e47727bc980753d0233da3a4a945779
ava/com/android/ex/carousel/carousel.rs
b713926766c4b342a881cb251964050a0d3d0a41 24-Jan-2011 Jim Shuma <jshuma@google.com> Merge "Proper error checking for setting cards" into honeycomb
ec18350090abbba03c3f0c9f0511cfde4afee66f 24-Jan-2011 Jim Shuma <jshuma@google.com> Proper error checking for setting cards

When shrinking the cards array while invalidates are still
in flight, it's possible to have an invalidate or texture
set land on a nonexistent card, causing an out-of-bounds
exception to be thrown, crashing the app. Frequently these
invalidates come from the user dragging the carousel to
another position, so it's not feasible to prevent
invalidates from being sent when we're about to clear the
cards array; nor is it feasible to empty any pending
invalidates, since Renderscript does not provide any
meaningful inspection of the event queue. Therefore, the
only real way we can address the problem is by detecting
these out-of-turn invalidates and handling the errors
cleanly. In practice, since these events are typically to
invalidate a nonexistent card, it's OK to just drop them,
since each such card is already invalid because it does
not exist.

This fix factors out card-get and card-set logic into
common methods, similar to card-set-or-create logic that's
been present for a long time.

Bug: 3381300
Change-Id: I037801de3b4c3bff514b1586fa16417e32c118df
ava/com/android/ex/carousel/CarouselRS.java
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
ava/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
ava/com/android/ex/carousel/carousel.rs
396b1eb70452e27942550efaa06e10da84fc58db 17-Jan-2011 Jim Miller <jaggies@google.com> Fix bitrot in Carousel demo.

Change-Id: I4151f20458b72f339bf636f7324b8dbbe33e6635
est/src/com/android/carouseltest/MusicDemoActivity.java
52b26266238d124ec2831835a90988f89304218e 13-Jan-2011 Alex Sakhartchouk <alexst@google.com> Some names changed during API review, updating carousel to reflect them.

Change-Id: Ib08f4f7997d5e06891d5ce09cc7bff6c0f61f341
ava/com/android/ex/carousel/CarouselRS.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
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/CarouselViewHelper.java
ava/com/android/ex/carousel/carousel.rs
d696cd4dc90b92e7653d5bcb0b14654c588e9d7d 29-Dec-2010 Jim Shuma <jshuma@google.com> Reset cards array on createCards(0)

createCards(0) is used to clear out an array. As such, it's
appropriate to entirely replace the array, rather than
resizing to size 1, which leaves stale data behind.

Bug: 3314456
Change-Id: Ifa1eb4a01ad9f5cc09c3cd6edce5de3f9602d9f0
ava/com/android/ex/carousel/CarouselRS.java
819c18b25f5316429f34f975178999876c75b1de 21-Dec-2010 Alex Sakhartchouk <alexst@google.com> Renderscript API cleanup

Change-Id: I7235d93bbbcefd921294582d5f901e2a53d9701e
ava/com/android/ex/carousel/CarouselRS.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
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/carousel.rs
77bf0562976f0571861012c8506517914efa2bbe 16-Dec-2010 Jason Sams <rjsams@android.com> Remove unnecessary uploads.

Change-Id: I6970953b717e6c667c5111a73db26a0bbe36e56e
ava/com/android/ex/carousel/CarouselRS.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
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselRS.java
0508a5d4e679d52de6e902c07e63d5856225d616 15-Dec-2010 Jason Sams <rjsams@android.com> Update for Allocation API changes.

Change-Id: If3b9d05825adf1bdb495f36e7d020af1bbdb5c7a
ava/com/android/ex/carousel/CarouselRS.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
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselRS.java
ava/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
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/carousel.rs
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
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
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
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselViewHelper.java
ava/com/android/ex/carousel/carousel.rs
27b81f375cfa65f4f689c64bd2c48e3a56c1e11b 07-Dec-2010 Jason Sams <rjsams@android.com> Update to API cleanup

Change-Id: I3b5add1a98f10ca47cf26c004f8ca4f3353da1f8
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/CarouselViewHelper.java
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
ava/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
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselRS.java
ava/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
ava/com/android/ex/carousel/carousel.rs
9c019da0f3083c4b82552fb2fe5b052f90073cb9 30-Nov-2010 Bryan Mawhinney <bryanmawhinney@google.com> Ensure default card matrix is set before creating cards.

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

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

Change-Id: I99ab499fa1208cb322ce2dffecd909f01693c158
ava/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
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/carousel.rs
0f529a84c393814bccd851d94c34b77558dcbab0 16-Nov-2010 Jim Shuma <jshuma@google.com> Don't throw an exception when invalidating an unset card

If the user calls invalidateDetailTexture() before calling
setDetailTexture(), don't throw an exception; just silently
ignore the call.

Change-Id: I9945a32319dd04729aa2b42b4c15a8d2880903d4
ava/com/android/ex/carousel/CarouselRS.java
ed5cdfa293ec57cb14b98cdc3fa00ac5ec1c1ed4 16-Nov-2010 Stephen Hines <srhines@google.com> Remove zero-init/destructor WARs.

Change-Id: I27da6a11c2325711194b123c6fdc3d2a7bdf02a8
ava/com/android/ex/carousel/carousel.rs
0cec8afdb4f9d78adf88c9b9b41e993aef617bea 12-Nov-2010 Bryan Mawhinney <bryanmawhinney@google.com> Add multiple row support to carousel.

Change-Id: Ic4f2586b1ff45a40c03a728b1664c55977c7b846
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/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
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselRS.java
ava/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
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselViewHelper.java
ava/com/android/ex/carousel/carousel.rs
est/src/com/android/carouseltest/CarouselTestActivity.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
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/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
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/carousel.rs
est/src/com/android/carouseltest/CarouselTestActivity.java
6f2cc8cf611860467315ecc542f71a225625eb1c 02-Nov-2010 Jason Sams <rjsams@android.com> User RS resize instead of manually implementing a copy routine.

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

Change-Id: Id475a5bee0ba7b25ef3fbab863969a82e144a7c6
ava/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
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/carousel.rs
est/src/com/android/carouseltest/CarouselTestActivity.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
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/carousel.rs
est/res/drawable/border.png
est/res/layout/carousel_test.xml
est/src/com/android/carouseltest/CarouselTestActivity.java
est/src/com/android/carouseltest/MusicDemoActivity.java
fe38385c1e5ce443adb962c066adeea185ad3d74 26-Oct-2010 Bryan Mawhinney <bryanmawhinney@google.com> Ensure detail textures are positioned at integer pixel coords

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

Change-Id: I5cd2ff8ce9b2102ab6b10f6d6a41f87e0f3a06f3
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/CarouselViewHelper.java
ava/com/android/ex/carousel/MVCCarouselView.java
ava/com/android/ex/carousel/MVCCarouselViewHelper.java
est/src/com/android/carouseltest/CarouselTestActivity.java
est/src/com/android/carouseltest/MyCarouselView.java
est/src/com/android/carouseltest/TaskSwitcherActivity.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
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/MVCCarouselView.java
ava/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
ava/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
ava/com/android/ex/carousel/CarouselViewHelper.java
ava/com/android/ex/carousel/carousel.rs
est/src/com/android/carouseltest/CarouselTestActivity.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
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/CarouselViewHelper.java
ava/com/android/ex/carousel/MVCCarouselView.java
ava/com/android/ex/carousel/MVCCarouselViewHelper.java
ava/com/android/ex/carousel/carousel.rs
7ec486bf1373232a35efa96622f31ac1aff5456b 14-Oct-2010 Bryan Mawhinney <bryanmawhinney@google.com> Guard against setting detail textures after destroy.

Change-Id: I0c375a05cbd44d354ea0439b5aecee59a1306ce3
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/MVCCarouselView.java
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
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/carousel.rs
50c5e37bb3a952d1da78582d00922a28c55c0239 13-Oct-2010 Jack Palevich <jackpal@google.com> Set DrawCardsWithBlending state when starting up carousel.

Change-Id: I1c5371d65797fbbfcf5507fb82caea2666fad885
ava/com/android/ex/carousel/CarouselView.java
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
ava/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
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/MVCCarouselView.java
ava/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
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/MVCCarouselView.java
ava/com/android/ex/carousel/carousel.rs
d07d6655feb45ea4b4463a11ee9cc31886141b0a 11-Oct-2010 Jason Sams <rjsams@android.com> Update to use SurfaceConfig.

Change-Id: I52378a935339f0c9878597995f1b0de9ca388414
ava/com/android/ex/carousel/MVCCarouselView.java
fc1960b04f7746f8bdb13cc5bf3297fe0928c851 10-Oct-2010 Jason Sams <rjsams@android.com> Update to use SurfaceConfig.

Change-Id: I3e04225c9241d96fa6be390eb32fe06fee994e1d
ava/com/android/ex/carousel/CarouselView.java
b06b5d3798e2668b8b5660da625c13c743daf469 09-Oct-2010 Stephen Hines <srhines@google.com> Remove now unnecessary pragma rs export_var().

Change-Id: I8b5ecb9959d1ca506621e9f7228f3b9cd8698278
ava/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
ava/com/android/ex/carousel/carousel.rs
594ff62c170509c0d69b30f4c2a5e71d4799a9c8 08-Oct-2010 Jim Shuma <jshuma@google.com> Add long-press support to carousel

Change-Id: I65f468d4d0104bac2e98a8e97ec3ba49db42c7d5
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/CarouselViewHelper.java
ava/com/android/ex/carousel/MVCCarouselView.java
ava/com/android/ex/carousel/MVCCarouselViewHelper.java
ava/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
ava/com/android/ex/carousel/CarouselController.java
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/MVCCarouselView.java
ava/com/android/ex/carousel/carousel.rs
a044fbbb1e5498a0112f20a1b0de11a4089ef612 07-Oct-2010 Jim Miller <jaggies@google.com> Substantial improvement to Carousel launch time.

This fixes a bug where compiling the renderscript was done
multiple times. The operation is fairly expensive and was
taking about 800ms per call, repeated over several calls.

The new code compiles it just once in the CarouselRS
constructor and keeps a reference to it.

Change-Id: I6cbf92062a995e2d847f40e737448e0bc6684d76
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/MVCCarouselView.java
5621100edc38c6e7f7fd7ef54945ba035204fe49 07-Oct-2010 Jim Shuma <jshuma@google.com> Fix typo

Change-Id: I59664c495dc5106846829eee3449231fb72062f7
ava/com/android/ex/carousel/CarouselController.java
64005a896385cd651f7c25a05a6e59cdd0b2f7b0 07-Oct-2010 Jim Shuma <jshuma@google.com> Merge "Refactoring Carousel into MVC: Phase 1"
9f0c6badc3e8f928c6f2658a3c85ea50319424d4 06-Oct-2010 Alex Sakhartchouk <alexst@google.com> changing texcoord from vec4 to vec2 for perf reasons.

Change-Id: I18a9f94694f8977db79d9cb42d0a7d88c41c9c24
ava/com/android/ex/carousel/CarouselRS.java
b8c3aee40f704e71fd9a8af41f060ebae2ea445f 06-Oct-2010 Bryan Mawhinney <bryanmawhinney@google.com> Don't create any cards by default.

Otherwise there's a small chance we may request textures before a
listener is attached.

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

Change-Id: I090dd17a01dada63461708760454f073b4b7cb13
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/CarouselViewHelper.java
ava/com/android/ex/carousel/carousel.rs
est/src/com/android/carouseltest/CarouselTestActivity.java
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.
ava/com/android/ex/carousel/carousel.rs
est/src/com/android/carouseltest/CarouselTestActivity.java
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
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/CarouselViewHelper.java
ava/com/android/ex/carousel/carousel.rs
est/src/com/android/carouseltest/CarouselTestActivity.java
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
ava/com/android/ex/carousel/CarouselRS.java
ava/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
ava/com/android/ex/carousel/CarouselRS.java
ava/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
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/carousel.rs
est/res/values/strings.xml
est/src/com/android/carouseltest/CarouselTestActivity.java
est/src/com/android/carouseltest/MusicDemoActivity.java
c3e94dc22d3c03b514bf3aff41082bfab7aca845 30-Sep-2010 Jack Palevich <jackpal@google.com> Avoid calling RenderScript after view is detached from window.

Change-Id: I793663ee882ed6f2e933b93ebf1eb173a8ea2724
ava/com/android/ex/carousel/CarouselView.java
9fa7a1887bd54f8833a772f8418b8f94c811ccf6 30-Sep-2010 Jack Palevich <jackpal@google.com> Add an onDestroy method

This method should be called when tearing down the view. By default it
quits the handler thread.

Change-Id: Iece07bf0fa9fa9ee454e83ed6a26381aa22c63ba
ava/com/android/ex/carousel/CarouselViewHelper.java
0eb8cac611ca6d82dced0995d2ead3886c647170 30-Sep-2010 Jack Palevich <jackpal@google.com> Make Parameters objects static.

Change-Id: I763803595dc344eb50eb257b51bcacffebb94df1
ava/com/android/ex/carousel/CarouselViewHelper.java
eb71cf6812bdb53bda75ac37a185f78f43ddfcef 29-Sep-2010 Jim Shuma <jshuma@google.com> Expose getGeometry() like the other getters

Change-Id: I8d9abb4c75e7cb2afa70cef8c0d2baed0442b659
ava/com/android/ex/carousel/CarouselViewHelper.java
baa6653bc1165a787c44ed8781c8d258a8e4e798 29-Sep-2010 Jack Palevich <jackpal@google.com> Make CarouselViewHelper more reusable.

Allow subclasses to get at the async handler and view members.

Change-Id: I2696246de6a27ecf0a74ac7a45b36e1789eca1f7
ava/com/android/ex/carousel/CarouselViewHelper.java
a3cb716626b477c98ba912698c765eab20f27286 27-Sep-2010 Jim Miller <jaggies@google.com> Major improvements to Carousel.

Added CarouselViewHelper class to simplify writing applications
that use the widged.

Updated examples to use new CarouselViewHelper class.

Added sample "lighting" to CarouselTestActivity.

Change-Id: I1b4a7e0d79f94781add16e1d2e7ec8b4657744d8
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/CarouselViewHelper.java
ava/com/android/ex/carousel/CarouselViewUtilities.java
est/res/drawable/border.png
est/res/drawable/glossy_overlay.png
est/src/com/android/carouseltest/CarouselTestActivity.java
est/src/com/android/carouseltest/MusicDemoActivity.java
est/src/com/android/carouseltest/TaskSwitcherActivity.java
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
ava/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
ava/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
ava/com/android/ex/carousel/carousel.rs
e0103cfd1a72197454e522834d2e8f600f798073 22-Sep-2010 Jack Palevich <jackpal@google.com> Bitmap's config now controls RenderScript texture format.

Allows clients to control when 16 bit vs 32 bit textures are used.

Change-Id: Icd9e144b64ef06ccdcfb687a5e191b7ba5079798
ava/com/android/ex/carousel/CarouselRS.java
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
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/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
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/carousel.rs
a9e1c1ddb6284fbcdc18aca659b207827d5f6851 17-Sep-2010 Jim Shuma <jshuma@google.com> Merge "Ensure renderscript is available to load geometry."
1126aa8ba186b42baf5b14c66d44b59f43888b70 17-Sep-2010 Stephen Hines <srhines@google.com> Handle RS reflection name changes.

Change-Id: I0b16fbbfe26e45d7f221c4420c4fb05b906bd6f7
ava/com/android/ex/carousel/CarouselRS.java
e386bbba584685f6261e6dc846c9d05c79b53535 17-Sep-2010 Bryan Mawhinney <bryanmawhinney@google.com> Ensure renderscript is available to load geometry.

This fixes a bug I introduced in the previous CL.

Change-Id: I9c3160623fe827a854fe8adb47a578faff2a4bca
ava/com/android/ex/carousel/CarouselView.java
ffd2d025459cfd383fff8889c6293b951f864ac1 16-Sep-2010 Bryan Mawhinney <bryanmawhinney@google.com> Fix RenderScriptGL leak in CarouselView.

Previously we called ensureRenderScript both when creating the view
and when attaching it to a window. This caused us to overwrite
the RenderScriptGL instance without shutting it down first.

Change-Id: Ie448f1135121111bd379b1a7e827acd7e3834bcf
ava/com/android/ex/carousel/CarouselView.java
3e919976d4eb87384c1be0ab82caf985f786aa47 16-Sep-2010 Jim Miller <jaggies@google.com> Fix bug where power-of-two textures were showing up black in Carousel.

Change-Id: Id1a578f63e137eadca4bb1419863fcd2db154dcb
ava/com/android/ex/carousel/CarouselRS.java
est/src/com/android/carouseltest/CarouselTestActivity.java
3172fb522983b4a2b2f7e5e5b6ea6771be65dd46 16-Sep-2010 Jim Miller <jaggies@google.com> Merge "Fix for 3007426: Fix crash in CarouselView"
6b1fa13e79a6ae467d16da223fd36db53fa5a5cb 16-Sep-2010 Jim Miller <jaggies@google.com> Fix for 3007426: Fix crash in CarouselView

Change-Id: I66fd91376b579d08dd776565153b212ee4f136fa
ava/com/android/ex/carousel/CarouselView.java
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
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/carousel.rs
est/src/com/android/carouseltest/CarouselTestActivity.java
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
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/carousel.rs
est/src/com/android/carouseltest/CarouselTestActivity.java
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
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/carousel.rs
est/src/com/android/carouseltest/CarouselTestActivity.java
est/src/com/android/carouseltest/MusicDemoActivity.java
est/src/com/android/carouseltest/TaskSwitcherActivity.java
198a060d650bc849ef0f25b597888fac9546803b 15-Sep-2010 Jack Palevich <jackpal@google.com> Add an API to report the first card position.

Change-Id: I07072569f9e02a327aed4a2b13b3748899687b33
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/carousel.rs
est/src/com/android/carouseltest/CarouselTestActivity.java
est/src/com/android/carouseltest/MusicDemoActivity.java
est/src/com/android/carouseltest/TaskSwitcherActivity.java
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
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/carousel.rs
f8a1b84de4a7a7fad5aa11d4a004a722ec8f4971 11-Sep-2010 Jim Miller <jaggies@google.com> Replace outdated book model in Carousel tests.

Change-Id: Icf0f7bfc818b25ed5423fc255984fddfe85b8d3a
est/res/raw/book.a3d
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
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/carousel.rs
est/res/drawable/background.png
est/src/com/android/carouseltest/MusicDemoActivity.java
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
ava/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
ndroid.mk
ava/com/android/ex/carousel/CarouselRS.java
ava/com/android/ex/carousel/CarouselView.java
ava/com/android/ex/carousel/carousel.rs
est/Android.mk
est/AndroidManifest.xml
est/res/anim/zoom_enter.xml
est/res/anim/zoom_exit.xml
est/res/drawable/blank_album.png
est/res/drawable/emo_im_angel.png
est/res/drawable/emo_im_cool.png
est/res/drawable/emo_im_crying.png
est/res/drawable/emo_im_foot_in_mouth.png
est/res/drawable/emo_im_happy.png
est/res/drawable/emo_im_kissing.png
est/res/drawable/emo_im_laughing.png
est/res/drawable/emo_im_lips_are_sealed.png
est/res/drawable/emo_im_money_mouth.png
est/res/drawable/emo_im_sad.png
est/res/drawable/emo_im_surprised.png
est/res/drawable/emo_im_tongue_sticking_out.png
est/res/drawable/emo_im_undecided.png
est/res/drawable/emo_im_winking.png
est/res/drawable/emo_im_wtf.png
est/res/drawable/emo_im_yelling.png
est/res/drawable/specularmap.png
est/res/drawable/unknown.png
est/res/drawable/wait.png
est/res/layout/music_demo.xml
est/res/layout/taskswitcher.xml
est/res/raw/book.a3d
est/res/values/strings.xml
est/src/com/android/carouseltest/CarouselTestActivity.java
est/src/com/android/carouseltest/MusicDemoActivity.java
est/src/com/android/carouseltest/MyCarouselView.java
est/src/com/android/carouseltest/TaskSwitcherActivity.java