22bdcb0886c8ce31d003457db9e5ebb734f11b5a |
|
08-Mar-2017 |
Aurimas Liutikas <aurimas@google.com> |
Fix IdentityBinaryExpression warnings in support library Error prone found these 2 bugs in our code. Bug: 35965190 Test: ./gradlew assembleErrorProne Change-Id: I97fba6f70dcdc979567e94f58ee1676e3736f0b3
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
|
0800a58729f5fdc6e399cbd299fbbc7442dbdb38 |
|
13-Feb-2017 |
Aurimas Liutikas <aurimas@google.com> |
resolve merge conflicts of 3be4cef3e4 to master Change-Id: Ib5e4df4aba3637a51777ee167eed5bb9a8d99913
|
44ece5ceaaee232f9139ccbde40ac4a5e642bdee |
|
12-Feb-2017 |
Christophe Beyls <software@digitalia.be> |
Fixed various it's -> its typos in comments and documentation Test: None Change-Id: I25617e1cfe26cdeacaa54040676a7abff475478e
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
|
64165762788d147a6def5d6a89d6cd884b0f49f3 |
|
30-Jan-2017 |
Aurimas Liutikas <aurimas@google.com> |
Deprecated AsyncTaskCompat. AsyncTaskCompat can be replaced by directly using FW AsyncTask. This CL deprecates AsyncTaskCompat and updates all the usages of it in support library to use AsyncTask directly. Bug: 32794064 Test: ./gradlew assemble still works. Change-Id: If3e8bd27171949bd0efc473dc117b778930f43f0
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
|
5dbefe6ebc19275e6bd51f207c74c0de645bef8c |
|
05-Dec-2016 |
Chris Banes <chrisbanes@google.com> |
Fix error in Palette resize function This ultimately led to the internal bitmap used for color extraction being very very small, which hurt quality. Since we are now using the correct size, performance has dropped by roughly 25%. 500 iterations (now vs previously) Pixel: 3620ms, 2712ms N5: 14996ms, 12435ms GN: 31540ms, 24109ms Test: all pass BUG: 31392794 Change-Id: I7cc81e9ab2f44895a5ee9f4736d92318f4dfdced
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
|
e6d3c26fa161b8916316f9ea2981282d5d369df3 |
|
25-Aug-2016 |
Aurimas Liutikas <aurimas@google.com> |
Remove all the extra accessor methods added by javac in support-palette. Change private methods to be package protected to avoid extra methods that get added to be able to access them from inner classes. This CL saves 14 methods in our jar. Bug: 31075707 Change-Id: I864ccd382e5a86fdd29d8d1ff9c89cd9654630d4
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
|
f5a65fd5baf1f69f796a70619222aa17d1cce959 |
|
19-Jul-2016 |
Chris Banes <chrisbanes@google.com> |
Add dominant swatch API to Palette Just returns the most populous color from the swatch. BUG: 24796354 Change-Id: I48258f83009c6af2bc054efe60a1ad6b9ddbf8c5
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
|
c9a859537b0871f84afeeb706a5b425fe3f2b4dd |
|
25-May-2016 |
Aurimas Liutikas <aurimas@google.com> |
Fix a random assortment of spelling errors. Fix spelling errors found by Android Studio. Change-Id: I121c79029f4e323da4ff2f44891e25480c44ebbc
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
|
ec183966232468c02440a5d81764c3c1a076e217 |
|
25-Apr-2016 |
Chris Banes <chrisbanes@google.com> |
Fix Palette errors when using region API Instead of using getPixels() to retrieve the region, we'll just manually do it from the whole Bitmap. We get the whole bitmap anyway so technically this is less work. Also improved our RGB565 --> RGB888 upscale to use scaling rather than shifting. This produces more reliable results. BUG: 28349435 Change-Id: I19bd2d2be3794194fa08931024b545269d85724b
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
|
8c021e5b9750e2fd1b728a2a5578af66a46d4a28 |
|
07-Dec-2015 |
Chris Banes <chrisbanes@google.com> |
Fix rounding error in Palette's region calculation Can result in Bitmap.getPixels() throwing a IllegalArgumentException with certain bitmaps. I've haven't been able to recreate the issue but it's guaranteed not to happen now with this CL. BUG: 25760671 Change-Id: I12648bb59d2c281a5cd0c2c7e3dcf0fe7df3e200
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
|
c5f1ad7670d601b806b2d1e5e4fa1ae7efd7fc69 |
|
14-Apr-2015 |
Chris Banes <chrisbanes@google.com> |
Add new extensible API to Palette The buckets are now abstracted into a Target class, with an associated Builder to allow the creation of custom targets. Change-Id: I654a081cef0e836cb867098fc9634eaca5aaf37b
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
|
039044aee1fc6dbd42b8b472c54122d268656939 |
|
26-Oct-2015 |
Chris Banes <chrisbanes@google.com> |
Fix Palette trying to create 0px bitmaps Caused by using Math.round when scaling down. Fixed by using Math.ceil instead. BUG: 25263397 Change-Id: Iefe82fa9d085fb72d2dfae4c984ebd836c5ad8c5
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
|
d27ec041be0a4251176e5daaea526f231b03f38e |
|
21-Oct-2015 |
Chris Banes <chrisbanes@google.com> |
Fix Palette setRegion() API Causes an exception when the left/top of the region isn't 0,0. BUG: 25133337 Change-Id: Ifdd4cff9a96cc00e8e001ec33ee501d1355d936f
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
|
3f5d16ca39def4a1a15097b243d3811b5551edc4 |
|
15-Oct-2015 |
Chris Banes <chrisbanes@google.com> |
Fix typo in Palette doc BUG: 24807674 Change-Id: Ide2875690533d512aa765c0cce4f02dbbf7a8d29
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
|
8f6ea77d463e9bb5cf70aaa4339316d13ac4a36c |
|
01-Sep-2015 |
Chris Banes <chrisbanes@google.com> |
Handle exceptions in Palette's async generation As we run in an AsyncTask it's hard for developers to be able to recover from the crash. We now catch all exceptions and log them. BUG: 22914873 Change-Id: I3674148c56a463e06c99c7585181ea2df7bb49ae
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
|
a79b35d1ce6b82a2e3437bfb45754e6257eaea87 |
|
31-Aug-2015 |
Chris Banes <chrisbanes@google.com> |
Extract pixels from the correct Bitmap Fixes OOMs due to extracting the pixels from a large bitmap BUG: 23683553 Change-Id: I9ce9e58f786f4072ff1a1568253b44876ed6c3c7
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
|
ce4bafdad56c6c7ad49d6a97674d7c8891ab7b45 |
|
28-Jul-2015 |
Chris Banes <chrisbanes@google.com> |
Add region API to Palette BUG: 22785376 Change-Id: I565e910c26e586e76acda99342352cf4e98532ff
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
|
91bf3ccba0f5b8ba4daca37b83faa4de86bff737 |
|
12-Jun-2015 |
Chris Banes <chrisbanes@google.com> |
am ef51dc7a: Merge "Add filter API to Palette" into lmp-mr1-ub-dev * commit 'ef51dc7acf907a687e4a824cea3fdc6f42af3baf': Add filter API to Palette
|
2407aa65d62cfc1ec6ffffae726dec45021dd9a2 |
|
12-Jun-2015 |
Chris Banes <chrisbanes@google.com> |
Add filter API to Palette BUG: 21799254 Change-Id: Ice6a505cbf2cf400f63e1881155c3f33e0e642ca
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
|
1a4412ccda7b3e7818bdeceb60cc1e5ca9a65e34 |
|
11-May-2015 |
Chris Banes <chrisbanes@google.com> |
Annotate Palette with @ColorInt and @Nullable BUG: 21022743 Change-Id: I5e53ab44950b7307b98070c09a5c4e758af62ee6
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
|
2500f7a5e964b16c1175d3eff2f24a5bcdce4d5e |
|
14-Apr-2015 |
Chris Banes <chrisbanes@google.com> |
Hide Palette's Generator API Change-Id: I25f82a8f3f2d139404ad79f30fbb877b179e659f
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
|
f78a300c82748e29a3890c8f17a13726aacf33be |
|
22-Feb-2015 |
Chris Banes <chrisbanes@google.com> |
Add tests to Palette Also changed the directory structure to enable the tests to have their own resources. Requires I7776f4d843aac8496240a54d0982525039b91469 Change-Id: I7bb98622995f009fc6e6c44e3a21aa88a151749a
/frameworks/support/v7/palette/src/main/java/android/support/v7/graphics/Palette.java
|