• Home
  • History
  • Annotate
  • only in /frameworks/base/graphics/java/
History log of /frameworks/base/graphics/java/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cabf9cdc2e742b168f8d5a1dd6ccd6355b8eb2aa 07-Jun-2017 Doris Liu <tianliu@google.com> Merge "Better error message for AVD" into oc-dev
fbff7117abac7a335c6bc2e2f8b927a8dac5753e 06-Jun-2017 John Reck <jreck@google.com> Clear native shader when Paint shader changes

Since Recents never goes away that means TaskViewThumbnail
never goes away which in turn means mDrawPaint never goes away.

mDrawPaint has a setShader(null) called on it to release
the BitmapShader it was previously drawn with, but that
change didn't push down to native until the next time the
paint was used. As a result, the Paint held on to a
reference to the bitmap.

The fix is simple, when the shader is changed simply
push down an immediate clear of the native shader. Since
the bitmap of a BitmapShader isn't changeable we don't
need to worry about clearing references for shader mutation,
merely when Paint#setShader() happens.

Bug: 38258699
Test: Open & close recents, observe EGL memory immediately returns
to sub-5MB.

Change-Id: I6742efa8ae8dfca76b62a06bc1a1a00646feba64
ndroid/graphics/Paint.java
03f2fcbd88478636acc9d67b9698b50e5b3eae25 02-Jun-2017 Doris Liu <tianliu@google.com> Better error message for AVD

Moved the error checking to an earlier stage of the AVD, so that
the error message can contain more information.

BUG: 36571432
Test: Follow the repro step in b/36244835, the error message
is much clear now.

Change-Id: Ibc6a0e666cc4c23c3dfa589755a77a015da2db1c
ndroid/graphics/drawable/AnimatedVectorDrawable.java
633b32be5536585add78906be89ef6249ae1ce9a 31-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix NPE and wrong behavior of Typeface.isSupportedAxes" into oc-dev
d865c624bda8130bdb03238e875dec9df5491e25 30-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update Paint#mFontVariationSettings in set() and reset()" into oc-dev
ffae6c7f71e9da9f887002994d270b9dbf6d0673 27-May-2017 Seigo Nonaka <nona@google.com> Fix NPE and wrong behavior of Typeface.isSupportedAxes

The Typeface kept by Paint object can be null if nobody calls
setTypeface. The null typeface is equivalent to the Typeface.DEFAULT.
To check whether the passed axis is usable for Typeface.DEFAULT, we
need to pass Typeface.DEFAULT to isSupportedAxes if no typeface was set
on the Paint.

At the same time this CL fixes an issue in isSupportedAxes.
If the requested axis is listed in the first element of axes list,
isSupportedAxes returned false due to wrong handling of binarySearch
result.

Bug: 62146672
Bug: 62147012
Test: am instrument -w -e class android.graphics.cts.PaintTest
android.graphics.cts/android.support.test.runner.AndroidJUnitRunner

Change-Id: I7c154adfe8a19d6ed24ad645df7c10cee7880461
ndroid/graphics/Paint.java
ndroid/graphics/Typeface.java
cca181bfbbbe1cf7bbbc71e1da41a74dc4a2e09a 26-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix safezone and getAlpha b/38361276 Test: frameworks/base/core/tests/coretests/src/android/graphics/drawable/IconTest.java" into oc-dev
ac2f74e80ef1934d3a5e083e524707ed79612d3d 22-May-2017 Hyunyoung Song <hyunyoungs@google.com> Fix safezone and getAlpha
b/38361276
Test: frameworks/base/core/tests/coretests/src/android/graphics/drawable/IconTest.java

Change-Id: I3e1c73276968747249b053fd581f289c340d98af
ndroid/graphics/drawable/AdaptiveIconDrawable.java
425e719c462edbedd66ccec14667357ab409a483 25-May-2017 Roozbeh Pournader <roozbeh@google.com> Update Paint#mFontVariationSettings in set() and reset()

Change-Id: I2dc41a998c940c4a4a98a06aaa6038cbca457186
Fixes: 62066408
Test: none
ndroid/graphics/Paint.java
52ca75011b6a636ac3485e58305b102787fd08e9 24-May-2017 Tenghui Zhu <ztenghui@google.com> Merge "Add documentation about 0 scale matrix to Shader" into oc-dev
22ebb54e174b3f94cb003b80986703ac1227f425 23-May-2017 Andrew Solovay <asolovay@google.com> docs: Fixing malformatted HTML escape

Through the file's javadoc comments, the less-than character is
improperly coded as "&lt" instead of "&lt;" (it's missing the
terminating semicolon). Chrome is clever enough to render that as <
, but I don't know if other browsers do, and in any event we
shouldn't count on that behavior.

Doc is staged to:

http://go/dac-stage/reference/android/graphics/drawable/RippleDrawable.html

Test: make ds-docs
Bug: 62028102
Change-Id: I81813fcb758349300f56ce10ccb0d03046ab4736
ndroid/graphics/drawable/RippleDrawable.java
6f085f60e929f4bb5ae7ccbc04cbc23c99ee8850 19-May-2017 ztenghui <ztenghui@google.com> Add documentation about 0 scale matrix to Shader

fix:36989035

Test: build
Change-Id: Id1134d5d31ea6a17dc56f24d26eb5da9a78a2c2d
ndroid/graphics/Shader.java
3915e25d41ce40f24fd41d8bcd6a058403d0bbc5 19-May-2017 John Reck <jreck@google.com> Convert Shader to NativeAllocationRegistry

Bug: 38258699
Test: manual
Change-Id: I1537dee3187ea0366f2c236f3e6825196d738a37
ndroid/graphics/ComposeShader.java
ndroid/graphics/Shader.java
d4fff1565b3f5af92e4ef1136b9951b8f01a024c 12-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update Bitmap#prepareToDraw doc" into oc-dev
d70695ee34611bee420d901ac9e6470d8c211519 05-May-2017 Derek Sollenberger <djsollen@google.com> Add an O-release targetAPI check for Canvas.setBitmap.

For apps targeting releases earlier than O setBitmap will attempt
to preserve the matrix from the previous bitmap. It does not however
attempt to reconstruct the save/restore stack or the clip.

Test: manual test of messenger app referenced in the bug
Bug: 37589964
Change-Id: I67f0928a3f84a8be41da38ef1868e79bdeb03e46
ndroid/graphics/Canvas.java
b1d2f0a1d0900ba5651f98021b4b7b4229ebb490 11-May-2017 Chris Craik <ccraik@google.com> Update Bitmap#prepareToDraw doc

Fixes: 38132750
Test: none

Change-Id: I95d4617c08c1aab23c322ec40ae15462766db3ba
ndroid/graphics/Bitmap.java
e1fc36d197639ee13194de74b2e7e42c39b12286 10-May-2017 sergeyv <sergeyv@google.com> Fix npe due to strict mode in Bitmap.sameAs

bug:38164234
Test: none
Change-Id: Ib267d1b06f86980202693fc1c330f73ed06411b0
ndroid/graphics/Bitmap.java
be030126fe91341788a29d16c10cf523ea566862 09-May-2017 Tenghui Zhu <ztenghui@google.com> Merge "Fix VectorDrawable size rounding issue" into oc-dev
373b15bda93c8b400c5e1271bc93cbef26af503f 02-May-2017 Seigo Nonaka <nona@google.com> Fix double bolding

resolveStyle increases minikinStyle's weight value based on Skia's style
value. Since we compute Skia's style based on given weight value, we
should not add extra bold weight to minikinStyle.

This CL also fixes misunderstanding of base weight.
The base weight is only used for computing weight relative to the
weighted alias. Thus, base weight should not be updated except for
createWeightAlias method.

To be clear, this CL changes the function names but keeps the same
semantics as before.

Test: adb shell /data/nativetest/hwui_unit_tests/hwui_unit_tests
Test: am instrument -w -e class android.graphics.cts.TypefaceTest\
android.graphics.cts/android.support.test.runner.AndroidJUnitRunner
Bug: 37880319
Merged-In: Ied73189b11792fb062da46f45afd2db664e6ecb4

Change-Id: I82350a1bfb99ce198b955f127949e21bccccb1cb
ndroid/graphics/Typeface.java
e2ec2e86ae9f9552551e524efb9898d889e2f70a 05-May-2017 ztenghui <ztenghui@google.com> Fix VectorDrawable size rounding issue

b/36668701
Test: Added new CTS test for this.
Change-Id: Ifcd74bc89e85841bf9f47eca8eb7d4eb401cf6ff
ndroid/graphics/drawable/VectorDrawable.java
52eba0ad70bb6d22dfb88c40e1a9319afb936fe5 05-May-2017 Hyunyoung Song <hyunyoungs@google.com> Merge "Fix issue in InsetDrawable where master inset attribute get ignored. Test: builds, and did manual test b/37752336" into oc-dev
01a5cc900439e5315dcf6a6dbdfeed9c4a37e943 05-May-2017 Sergey Vasilinets <sergeyv@google.com> Merge "Add StrictMode.noteSlowCall to calls that result in hw bitmap readback" into oc-dev
a5fa9e8a63e5764244b709f37bc4a54d2bb96890 05-May-2017 Seigo Nonaka <nona@google.com> Resolve styles by font table if not specified.

android:fontStyle and android:fontWeight is an optional attribute.
If they are missing, we are using non-italic 400 weight, but this is
not good idea. We should resolve these style value from font metadata.

Bug: 37988154
Test: am instrument -w -e class android.content.res.cts.ResourcesTest
android.content.cts/android.support.test.runner.AndroidJUnitRunner

Change-Id: I80a436cd3632d8c58fa3d8bdaedac73b95f61a8c
ndroid/graphics/Typeface.java
f9fe6c11d3ccc186f48a2e4535ff75780fab5a1a 02-May-2017 Hyunyoung Song <hyunyoungs@google.com> Fix issue in InsetDrawable where master inset attribute get ignored.
Test: builds, and did manual test
b/37752336

Change-Id: I85182a4cf94fa5bcb7c2ac09c701496fb3e72f61
ndroid/graphics/drawable/InsetDrawable.java
9fd259c9b0878ba52fec86173d76976e70977fcd 04-May-2017 sergeyv <sergeyv@google.com> Add StrictMode.noteSlowCall to calls that result in hw bitmap readback

bug:37748500
Test: BitmapTest:*inStrictMode
Change-Id: Ifea1c6f0c50ba2f409c96b7ccf7eb31c89ef81c8
ndroid/graphics/Bitmap.java
5e0aed49a874b32b135bbd8da620357764b69ad4 01-May-2017 Seigo Nonaka <nona@google.com> Fix NPE happens if no source was specified to font element.

This also fixes unexpected fallback to the old implemntation by calling
allowUnsupportedFont() which is only for backward compatibility.

This CL also remove getResourceId() method. Nobody uses this method.

Bug: 37865521
Bug: 37844248
Test: am instrument -w -e class android.content.res.cts.ResourcesTest\
android.content.cts/android.support.test.runner.AndroidJUnitRunner
Change-Id: I987448add728c53c916f24a2ea8f337be417248f
ndroid/graphics/Typeface.java
1e8f451bbfceb4298915905a799ff7b2f3f245cd 02-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add @TestApi annotation to AdaptiveIconDrawable" into oc-dev
d2afdab226dcff7cfc3fb26ef0a7030edb17b925 26-Apr-2017 Hyunyoung Song <hyunyoungs@google.com> Add @TestApi annotation to AdaptiveIconDrawable

Bug: 37779858
Bug: 37788590

Test: $ make -j31
Test: $ make update-api -j31

Change-Id: I459317e8b9f6db227a4bb567c17b212639454e9d
ndroid/graphics/drawable/AdaptiveIconDrawable.java
0f07dd5b14e76695bbae758e948e00b86935232c 28-Apr-2017 Seigo Nonaka <nona@google.com> Remove FontVariationAxis.InvalidFormatException.

Use IllegalArgumentException instead.

Bug: 37769084
Bug: 37765945
Test: am instrument -w -e class android.widget.cts.TextViewTest
android.widget.cts/android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.graphics.cts.TypefaceTest
android.graphics.cts/android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.graphics.cts.PaintTest
android.graphics.cts/android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.graphics.cts.FontVariationAxisTest
android.graphics.cts/android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.text.VariationParserTest
com.android.frameworks.coretests/\
android.support.test.runner.AndroidJUnitRunner

Change-Id: I50b70e3e7e37585c937dcce2416a83353de62a5d
ndroid/graphics/FontListParser.java
ndroid/graphics/Paint.java
ndroid/graphics/Typeface.java
ndroid/graphics/fonts/FontVariationAxis.java
ebd44d0076bc81732cb346a342788a0024dd1b3e 28-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add conic support for Path#approximate" into oc-dev
533538c96e3ec182cf8fb89dd91f6c7d82967eb3 28-Apr-2017 Chris Craik <ccraik@google.com> Merge "Make SurfaceTexture#isReleased public API" into oc-dev
96202d56ad2406b27a8b3b1f083ab71945d06a46 28-Apr-2017 Chris Craik <ccraik@google.com> Add conic support for Path#approximate

Fixes: 37722722
Test: bit CtsGraphicsTestCases:PathTest
Test: bit CtsUiRenderingTestCases:android.uirendering.cts.testclasses.PathTests

Also adds static asserts to path-walking code, to avoid this problem
in the future.

Also adds annotations, since this is public API now.

Change-Id: Ic39b167968b98fd8197be2d0f9aca79949717237
ndroid/graphics/Path.java
e6746726bc256601ade37fc4b3a48603e69110ad 27-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Revise method comment on setFontVariationSettings" into oc-dev
080b054bddee55428943b821c99887543d1fd290 26-Apr-2017 Seigo Nonaka <nona@google.com> Font API clean up

- Move FontRequest from android.graphics.fonts to android.provider since
this is only used by android.provider.FontsContract and never draw
anything.
- FontRequest is no longer being Parcelable.
- Remove FontSpec.aidl which is not necessary.

Bug: 37326126
Test: am instrument -w -e class android.provider.FontsContractTest
com.android.frameworks.coretests/\
android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.provider.cts.FontProviderTest
android.provider.cts/android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.provider.cts.FontRequestTest
android.provider.cts/android.support.test.runner.AndroidJUnitRunner

Change-Id: I0eb501844247c2f07eaa1fc7a71f72e404888b5b
ndroid/graphics/Typeface.java
ndroid/graphics/fonts/FontRequest.java
ndroid/graphics/fonts/FontSpec.aidl
d9de8be233d18ccc881cb647a5de2b32ff3e737c 26-Apr-2017 Seigo Nonaka <nona@google.com> Load font file from remote provider synchronously.

Since CancellationSignal is not guaranteed to be handled by remote
process, introduce threaded font loading mechanism.
At the same time, this fixes possible NPE issue in openFont.

Bug: 37552479
Test: am instrument -w -e class android.provider.FontsContractE2ETest
com.android.frameworks.coretests/\
android.support.test.runner.AndroidJUnitRunner

Change-Id: Ie235c5a57bd172b0882da5aa27a990d7c6686ff2
ndroid/graphics/Typeface.java
f4612191855b999be7b8b2402fd7b45f07aa95f4 26-Apr-2017 Chris Craik <ccraik@google.com> Make SurfaceTexture#isReleased public API

Bug: 36902442
Test: bit CtsUiRenderingTestCases:android.uirendering.cts.testclasses.TextureViewTests

This method is already tested in TextureViewTests in CtsUiRenderingTestCases.

Change-Id: Id2d186f966d5e2b7c50a8b2ecefcd66c8a87c1fd
ndroid/graphics/SurfaceTexture.java
54084b64b1860b652b1c50ba942b4cfc7fb28805 24-Apr-2017 Seigo Nonaka <nona@google.com> Font provider cleaning ups.

- Remove Columns.STYLE
- Decouple Context from Typeface.
- Make FontsContract constructor private since it is essentially static.
- Removed unused constants.

Bug: 37281200
Bug: 37268410
Test: am instrument -w -e class android.provider.FontsContractE2ETest
com.android.frameworks.coretests/\
android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.provider.FontsContractTest
com.android.frameworks.coretests/\
android.support.test.runner.AndroidJUnitRunner
Test: am instrument -w -e class android.graphics.cts.TypefaceTest
android.graphics.cts/android.support.test.runner.AndroidJUnitRunner
Change-Id: Ic46c256141d27ca28f30023bcc40f4e1161d5338
ndroid/graphics/Typeface.java
5a09c64345ba35783b5d24ed7c4ca0ea8afbcc0a 20-Apr-2017 Seigo Nonaka <nona@google.com> Remove Typeface.create

Test: Manually done
Bug: 37514611
Bug: 37463988
Bug: 37281200
Change-Id: Ida704af910e0ae195b96803de506fa1e1d66c9f5
ndroid/graphics/Typeface.java
ndroid/graphics/fonts/FontResult.java
6bc03748a76edea4ff437568cf4917ba79763b0f 22-Apr-2017 Jeff Sharkey <jsharkey@google.com> Merge "More auto-doc work." into oc-dev
aec1fbeaa34f40680a3cfefe94e5cdec31881c7d 22-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix @throws javadoc on SurfaceTexture ctors" into oc-dev
5be3647a9ecb881d353edfdbc3a1b256fed0677e 22-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Propagate density through AdaptiveIconDrawable and BitmapDrawable" into oc-dev
910e081216ac530432ac9d0aab10d5e5e4c73ab8 22-Apr-2017 Jeff Sharkey <jsharkey@android.com> More auto-doc work.

Add support for AnyThread, CallSuper, and UiThread.

Another related CL started documenting @RequiresPermission, so remove
duplicated information in existing APIs.

Suppress auto-doc on a handful of classes that are already
well-documented.

Test: make -j32 offline-sdk-docs
Bug: 37526420
Change-Id: I791437dccec0f11d5349a23b982ba098cb551af8
ndroid/graphics/Color.java
ndroid/graphics/ColorSpace.java
b8d152f5cd4628685ec5acfd321b43a422b0cce7 21-Apr-2017 John Reck <jreck@google.com> Fix @throws javadoc on SurfaceTexture ctors

Change-Id: I63bd76ec4e44251b7e06ad6fc8aa5a3372104656
Fixes: 37323694
Test: Looked at generated docs, verified correct
ndroid/graphics/SurfaceTexture.java
50954d2b4ea938d787ef5021d75f6bc02826607a 15-Apr-2017 Adam Lesinski <adamlesinski@google.com> Propagate density through AdaptiveIconDrawable and BitmapDrawable

Resources#getDrawableForDensity now propagates the overridden
density through to AdaptiveIconDrawable so that the density can be
propagated to leaf BitmapDrawables correctly.

This enables AdaptiveIconDrawable to support higher resolution
foreground/background bitmaps for use in Launcher.

Bug: 36039665
Test: bit CtsContentTestCases:android.content.res.cts.ResourcesTest
Change-Id: Iaa9a5592626e38e1ff839a76f7c6cfb9e16e5dc1
ndroid/graphics/drawable/AdaptiveIconDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableInflater.java
ndroid/graphics/drawable/DrawableWrapper.java
eedceb57216748bc6efe0b554c064222c035467a 21-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add transfer mode support to ColorDrawable" into oc-dev
daa8dfc690c4755510ccc15da5ed5bbdd9731fa4 19-Apr-2017 Seigo Nonaka <nona@google.com> Cache the Typeface based on the FontRequest.

Bug: 37471729
Test: FontsContractE2ETest
Change-Id: Ifb1bd2b50077471404f5f1dffc01e7697d7042e6
ndroid/graphics/fonts/FontRequest.java
ab7a2879eb7a46d599b3f9e627a22f6daa3fa0f0 21-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Support fraction type for inset* for InsetDrawable. b/36024318" into oc-dev
337be5a12fd6ef76f78da70cc1e83233788156dd 21-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update Typeface callback docs about error codes" into oc-dev
d0dfe3008da5985207c3c08be2c89f2c0bb0194d 14-Mar-2017 Hyunyoung Song <hyunyoungs@google.com> Support fraction type for inset* for InsetDrawable.
b/36024318

Test: manually tested on default icons.
Test: $ runtest --path=cts/tests/tests/graphics/src/android/graphics/drawable/cts/InsetDrawableTest.java

adb shell am instrument -e class 'android.graphics.drawable.cts.InsetDrawableTest' -w 'android.graphics.cts/android.support.test.runner.AndroidJUnitRunner'

android.graphics.drawable.cts.InsetDrawableTest:........................

Time: 0.132

OK (26 tests)

Change-Id: Ie8d24680b6884e65017f07723a371120f5ae610c
ndroid/graphics/drawable/InsetDrawable.java
b27b47df6b9e77259badd0eaa9a3978bacd830b8 20-Apr-2017 Lucas Dupin <dupin@google.com> Add transfer mode support to ColorDrawable

Test: runtest --path cts/tests/tests/graphics/src/android/graphics/drawable/cts/ColorDrawableTest.java
Change-Id: Ice87f248e307710315304fc191cb58ee7142e525
ndroid/graphics/drawable/ColorDrawable.java
5706a1b12dd891098fb7bf479623d42979171144 12-Apr-2017 Clara Bayarri <clarabayarri@google.com> Update Typeface callback docs about error codes

As requested by API council, mention that the provider may
return its own error codes within the positive int range.

Bug: 37084803
Test: none
Change-Id: Ia8ee99432cc5025a12d43049e327605095dd2b57
ndroid/graphics/Typeface.java
e53b00c6d15c5688c296310151138e22665bb8ec 19-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Set the color space as nullptr on native bitmaps when sRGB is requested" into oc-dev
611fae13dfe485efd144ce6af4d7e5fb0e7a2c55 19-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix compose shader child local matrix mutation" into oc-dev
f3157e1692349d85ed6e7a3908b350fbcaeb176c 19-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add comment to Typeface.Builder about file descriptor." into oc-dev
08587d45b103d749c1483ec7fae80888985b5eaa 19-Apr-2017 Romain Guy <romainguy@google.com> Set the color space as nullptr on native bitmaps when sRGB is requested

This regression is a fallout from the recent API council feedback
fallout. The default color space used to be always set to null but
it's now the named SRGB instance. This change passes null to native
when the specified color space is known to be sRGB.

Bug: 37496760
Test: runtest managed-provisioning
Change-Id: Ie933c84e429a682a58ee253b57b77bd61b88ee5e
ndroid/graphics/Bitmap.java
f6b0e60bd07436edb033ffe975030b7c1ee91626 19-Apr-2017 Chris Craik <ccraik@google.com> Fix compose shader child local matrix mutation

Bug: 37495696
Test: cts-tradefed run singleCommand cts-dev --module CtsGraphicsTestCases --test android.graphics.cts.ComposeShaderTest

Adds back the verify step that discards a stale native ComposeShader if a child
changes.

Change-Id: I44f40c1edfdb7633994a69efb583cf28ee2c26b2
ndroid/graphics/ComposeShader.java
ndroid/graphics/Shader.java
944782fac265834242db046a255364ca7dedfd5e 19-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Change nullability of colorspace parameter" into oc-dev
1fa9d86ea4ce1d2344deaccad002413f88317010 18-Apr-2017 Romain Guy <romainguy@google.com> Change nullability of colorspace parameter

Bug: 37323693
Test: android.graphics.cts.BitmapColorSpaceTest
Change-Id: I705ac18e5c64c028c2e8366a18ec4ef20f44a630
ndroid/graphics/Bitmap.java
8a6ad4a89d1b9ed61d3ec6f5bc12d479bc8d9f3b 18-Apr-2017 Chris Craik <ccraik@google.com> Re-hide shader mutation, remove colorfilter mutation

Bug: 36025103
Bug: 37327129
Test: boots, CtsGraphicsTestCases passes

Change-Id: I937f8ae26ed47b4811dc033ed91c257670fc3a39
ndroid/graphics/BitmapShader.java
ndroid/graphics/ColorMatrixColorFilter.java
ndroid/graphics/ComposeShader.java
ndroid/graphics/LightingColorFilter.java
ndroid/graphics/LinearGradient.java
ndroid/graphics/PorterDuffColorFilter.java
ndroid/graphics/RadialGradient.java
ndroid/graphics/Shader.java
ndroid/graphics/SweepGradient.java
83ba4f9a04833409080d97480a665e029ee71365 14-Apr-2017 Seigo Nonaka <nona@google.com> Add comment to Typeface.Builder about file descriptor.

Add comment to Typeface.Builder about the responsibility of closing
file descriptor.

Bug: 37082657
Test: N/A
Change-Id: Id33b15895d75ad6693f3ad6231f1ba0c2cec9f79
ndroid/graphics/Typeface.java
55455181233cadcd6d2e28d28d0dfc9a653f7787 16-Apr-2017 Romain Guy <romainguy@google.com> Properly decode colors spaces in BitmapRegionDecoder

Reusing a bitmap with BitmapRegionDecoder would preserve the
previous color space. This change also tweaks color space
matching to make sure we pick Display P3 with parameter d=0.039
or d=0.04045

Bug: 36905374
Test: CtsGraphicsTestCases
Change-Id: I4d2d66e5babebb0b5ce5cbdc7e8244177b4b7f9c
ndroid/graphics/ColorSpace.java
92009445e06a83ef6bd87277b14e69ec26cdba39 14-Apr-2017 Seigo Nonaka <nona@google.com> Revise method comment on setFontVariationSettings

- Update Paint's description to be the same description as TextView.
- Update example code to use more standard axes.
- Check generated reference page and fix some errors.

Bug: 37324923
Test: Checked generated reference page.

Change-Id: Ib6504df3bd149fd47f037f8d03701b2167d10e5a
ndroid/graphics/Paint.java
5f9fde884b479645cb0d977c3a8fd8dd06f25e72 15-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix boot loop issue on Android Wear." into oc-dev
c99bcc69f79584c7f5f24338863989c18d6142bb 14-Apr-2017 Romain Guy <romainguy@google.com> Merge "Add BitmapFactory.Options.inColorSpace" into oc-dev
1eaab2db827ee9f99ce2447fb1308a5d5e4f945e 14-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Clarify doc for Bitmap.createBitmap()" into oc-dev
03758701fb2498dd25ca0cc2a03ecd892fe0d26b 14-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix API feedback on Color" into oc-dev
95648b8a590995e57948ff2fd57d234bdbf30be0 14-Apr-2017 Romain Guy <romainguy@google.com> Add BitmapFactory.Options.inColorSpace

This allows applications to load bitmap in a preferred
target color space, similar to inPreferredConfig for
configurations.

This change also applies recent changes made to BitmapFactory
to BitmapRegionDecoder: support for outColorSpace, inColorSpace
and outConfig.

Bug: 32984164, 36905374
Test: CtsGraphicsTestCase (BitmapColorSpaceTest/BitmapRegionDecoderTest)
Change-Id: I4eded9190d1aa9c7f3033f9bb78a6854cc48a3ef
ndroid/graphics/BitmapFactory.java
ndroid/graphics/BitmapRegionDecoder.java
43112fd26e89b0b27b968c54d9d8d45928f8304e 14-Apr-2017 Seigo Nonaka <nona@google.com> Merge "Use provided style for fallback font selection" into oc-dev
7c42e16eb076b04850b7fa083d31735774bd42dd 14-Apr-2017 Romain Guy <romainguy@google.com> Clarify doc for Bitmap.createBitmap()

Bug: 37323693
Test: compiles
Change-Id: I8cf316cf4c67b69c47c67848c576af6399a0111f
ndroid/graphics/Bitmap.java
26ca96ecb82cdbc058a39cebbfb16b402bf0fe03 14-Apr-2017 Romain Guy <romainguy@google.com> Fix API feedback on Color

Bug: 37323188
Test: Color_ColorLongTest and ColorSpaceTest in CtsGraphicsTestCases
Change-Id: I1e52d3f63f95b9bdb4410938b727a87c45429aac
ndroid/graphics/Color.java
ndroid/graphics/ColorSpace.java
4cae059bb9cc810dcd2f3acaf0afd4c0c979b93c 14-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add more doc to ColorSpace.getName()" into oc-dev
bf629ed08077e59877158a30cc04711319bce977 14-Apr-2017 Seigo Nonaka <nona@google.com> Fix boot loop issue on Android Wear.

The boot loop was seen after I65e220aca823fd815a52437b11c8e6dc952de8e2
but only on Android Wear. On Android Wear, some font files are missing
but are listed in fonts.xml. Before that patch, we created a Typeface
object with an empty FontFamily even if there was no valid font entry
in font-family tag. However, after that patch, FontFamily stopped
creating native objects and holds a null pointer instead. As the
result, SIGSEGV happens.

The right fix is skipping Typeface creation if native code failed to
create the font family object.

Since Typeface.init cannot be called twice, this is hard to test
automatically.

Bug: 37328609
Bug: 37326002
Test: Boot succeeded even after removing CutiveMono.ttf from system.

Change-Id: I125de07343252784986d728c3bbaa46b24ace601
ndroid/graphics/Typeface.java
d154829cb15d61f1469f939d608e691256e2a765 12-Apr-2017 Seigo Nonaka <nona@google.com> Use provided style for fallback font selection

If the developer gives some weight/italic to the Typeface.Builder
the fallback used the metadata in the font file. We should use
provided data instead.

This CL also adjusts upper and lower limits on weight, from 100..900 to
1..1000

Bug: 37257745
Bug: 37251569
Test: android.graphics.cts.TypefaceTest passes
Change-Id: I7cf390d96b49afcce359928373698b0c9a9babd8
ndroid/graphics/Typeface.java
819740cc7371f1f8a02d34b48b87dc7e34d7654a 14-Apr-2017 Romain Guy <romainguy@google.com> Merge "Range check transfer params in float domain" into oc-dev
bfa58aab0a7723f2757f7919f37a520f469b7b04 13-Apr-2017 Romain Guy <romainguy@google.com> Range check transfer params in float domain

Our native code uses floats for transfer parameters, the range
check was too small (using the next representable double instead
of the next representable float).

Bug: 37013532
Test: Manual run of broken app, CtsGraphicsTestCases
Change-Id: Id91a3e62068be0abf13ee75e39c758eb106a5f24
ndroid/graphics/ColorSpace.java
729a515e5ebcf38e3472bb8fee4e9400745c400c 13-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Introduce setFallbackTypeface" into oc-dev
cb7a24539bc5c0595ee554f982c2e6233d232b7a 13-Apr-2017 Romain Guy <romainguy@google.com> Add more doc to ColorSpace.getName()

Bug: 37084802
Test: make offline SDK docs
Change-Id: Ia2c3406951d615dcee1eafad8035c5c8aea4305b
ndroid/graphics/ColorSpace.java
d09be1c0e961fbcf27cb25d5d0070912a9fadd2e 13-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Introduce FontsContract.requestFont and deprecate Typeface.create" into oc-dev
5b6347a6af668ba47b3fab14cefbe03cc440c3a4 31-Mar-2017 Seigo Nonaka <nona@google.com> Introduce setFallbackTypeface

setFallbackTypeface is returned by Builder.build() method when the
provided font is not loaded due to some reasons.
The fallback family is resolved with width/italic passed to Builder.

Bug: 36794225
Test: android.graphics.cts.TypefaceTest passes
Change-Id: I65e220aca823fd815a52437b11c8e6dc952de8e2
ndroid/graphics/FontFamily.java
ndroid/graphics/Typeface.java
76c13a5fce91acadfa2b28f1def68c87e7b65db5 13-Apr-2017 Hyunyoung Song <hyunyoungs@google.com> Merge "Update API, add more documentation on AdaptiveIconDrawable" into oc-dev
498a44f33a72b6b977ecc317d7a0ac2e2763475e 13-Apr-2017 Lucas Dupin <dupin@google.com> Merge "Add transfer mode support to ShapeDrawable" into oc-dev
0b73a4287e8f630c45bf7ef0a7e0b2541d6b4067 12-Apr-2017 Seigo Nonaka <nona@google.com> Introduce FontsContract.requestFont and deprecate Typeface.create

Since background fetch should be synchronized with life cycle of
Activities, so should not create new background thread inside this
method. Not to break existing apps, mark as deprecated and will be
removed from public API untile next release.

New API accepts Handler so that the developer can pass their own thread
.

Test: TBD
Bug: 37253785
Change-Id: I87fdc6a354a829db679253824f42489f25698fa0
ndroid/graphics/Typeface.java
061db23b79b0f07b3b843e081420fbbcc606b451 13-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Introduce FontsContract.fetchFonts and expose URI for watching." into oc-dev
92e3da2354484d1dce64413c97d4605addb7f64a 07-Apr-2017 Hyunyoung Song <hyunyoungs@google.com> Update API, add more documentation on AdaptiveIconDrawable

and fix multiple miscellaneous bugs.

Bug: 37079814
Bug: 37100106
Bug: 34829216

Test: $ runtest --path=frameworks/base/core/tests/coretests/src/android/graphics/drawable/IconTest.java
Test: $ runtest --path=frameworks/base/services/tests/servicestests/src/com/android/server/pm/ShortcutManagerTest1.java
Test: $ runtest --path=frameworks/base/core/tests/coretests/src/android/grpahics/drawable/AdaptiveIconDrawableTest.java

Change-Id: I0f5b2232853031bf3860ebea2736e894d17e4d2e
ndroid/graphics/drawable/AdaptiveIconDrawable.java
18d993bb72306bcdff8744d9b717247f0747637f 13-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes from topics 'KeyboardFocusHighlight-oc-dev', 'KeyboardFocusHighlight_ mDefaultFocusHighlightEnabled-oc-dev', 'KeyboardFocusHighlight_ hasFocusStateSpecified-oc-dev' into oc-dev

* changes:
Fix broken CTS tests.
Draw a default focus highlight if needed.
Add a public API defaultFocusHighlightEnabled.
Detect unhandled keyboard focused state.
69754bf66dae9d047d5a0ff2c71820aa35b9cc70 05-Apr-2017 Seigo Nonaka <nona@google.com> Introduce FontsContract.fetchFonts and expose URI for watching.

FontsContract.fetchFonts provides a low level font access with fonts
provider.
This CL also includes:
- Introduce new class FontFamilyResult/Font as the inner static class
of FontsContract which are used to for result value of fetchFont..
- Introduce a functionality to FontsContract to be able to create
Typeface from an array of FontResult.
- Expose URI of each file entries to be able to register ContentObserver

Bug: 36494487
Bug: 36085028
Test: android.provider.FontsContract passes
Test: android.graphics.cts.TypefaceTest passes
Test: android.graphics.fonts.cts.FontResultTest passes

Change-Id: Id6f85039d0e86be063ef099d7ec6bfd97e4424c5
ndroid/graphics/Typeface.java
1e924df63ecf8d14aa3b959f46c76f4444f01b1b 12-Apr-2017 Seigo Nonaka <nona@google.com> Merge "Update Typeface.Builder API to reflect API feedback." into oc-dev
7944962b7e547da376efd6c11d674491c6186ddc 12-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Change behavior of setBitmap to cleanly reset the canvas" into oc-dev
feaa8b0f0156b33524d4f2e93c0aa71a9ea1d235 12-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove unused public APIs." into oc-dev
5421e810233ecadf0ebc7d7760dc9ac07a141e6c 11-Apr-2017 Seigo Nonaka <nona@google.com> Update Typeface.Builder API to reflect API feedback.

- Stop pooling and remove reset method.
- Introduce overloaded constructors instead of setSource methods.
- Make italic parameter boolean and treat "not called" as
RESOLVE_BY_FONT_TABLE.
- Remove constants and move them to Typeface with private static
constant.
- Fix JavaDoc.

Bug: 37082657
Test: android.graphics.cts.TypefaceTest passed
Change-Id: I0c50cf3e2d50c0021f7e12bbb7ed7ae89fa1c2a1
ndroid/graphics/Typeface.java
042741ce4f80f6a19c15252e447e66a0f3a891ec 11-Apr-2017 Seigo Nonaka <nona@google.com> Remove unused public APIs.

By I9ccafe7a53935960566243e2856e166878ca59ae, FontManager was gone.
So FontConfig is no longer need to be parcelable.
We can drop Parcel interface from FontVariationAxis.

Bug: N/A
Test: N/A
Change-Id: I33e92abf1e1063af312f0b7d9d6b8bd938d09c0e
ndroid/graphics/fonts/FontVariationAxis.java
eb69cbbe22d993a9ba88a1206853c660f8f43628 11-Apr-2017 Derek Sollenberger <djsollen@google.com> Change behavior of setBitmap to cleanly reset the canvas

- identity matrix
- no save stack
- wide-open clip

This reverts commit 4f641d1e4586b027969052cc0ad6b65c1158e72e

Test: bit CtsGraphicsTestCases:.CanvasTest
Bug: 36218535
Change-Id: Id11deb06e37d6df61f1f171d424ab150d812a7a8
ndroid/graphics/Canvas.java
66d7da6a41d2ae2acf8220d8b146ba6eea385a28 11-Apr-2017 Romain Guy <romainguy@google.com> Hide ColorSpace.Renderer

Bug: 37073273
Test: Compile, make sure CTS does not rely on this API
Change-Id: Ia5d2638676be44464a173f904a21158c554b9ebf
ndroid/graphics/ColorSpace.java
4a81674b45b7250c4e2a80330371f7aa1c066d05 02-Feb-2017 Jiaquan He <hejq@google.com> Detect unhandled keyboard focused state.

A View uses a Drawable as its background, which changes
its appearance according to the View's state. This commit
adds an algorithm to detect undefined state_focused in
state specs for those Drawables.

Test: cts-tradefed run singleCommand cts --skip-device-info
--skip-preconditions --abi armeabi-v7a -m CtsGraphicsTestCases
-t android.graphics.drawable.cts.DefaultFocusHighlightTest
Bug: 35096940

Change-Id: I5e9f07141679881fe88f9040aa116ea2f9d537c9
ndroid/graphics/drawable/AdaptiveIconDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/DrawableWrapper.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
8242656f495847c50c9ceaea92839dce78218a75 05-Apr-2017 Romain Guy <romainguy@google.com> Color management, the missing pieces

Implement missing color management pieces for bitmaps:

- Bitmap.createBitmap(Bitmap src, ...) now creates a bitmap
in the same color space as the source bitmap
- Bitmap.createScaledBitmap() now creates a bitmap in the
same color space as the source bitmap
- Bitmap.createBitmap(..., ColorSpace colorSpace) to create
bitmaps in a specific color space
- Fix copy from A8 to F16
- Copying bitmaps in F16 or with a color space does not work,
it's currently a limitation in Skia

Bug: 36905374
Test: BitmapColorSpaceTest
Change-Id: I0092fe4432511db50daa3a9393389a9db05e0c2a
ndroid/graphics/Bitmap.java
b2bb3bf268c9085596803f4088f8c5509886c816 06-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Rename getIntent() to getRenderIntent()" into oc-dev
1cf7b4fcb3b2c239e3f0a68ec78cfedff510b779 06-Apr-2017 Romain Guy <romainguy@google.com> Rename getIntent() to getRenderIntent()

Bug: 37077433
Test: compile and ColorSpaceTests
Change-Id: I8eb1fa6136582eaac1d509ebfef7f67b0fffe1aa
ndroid/graphics/ColorSpace.java
98bf27bff49b416802474cccf74f14f51620f560 31-Mar-2017 Lucas Dupin <dupin@google.com> Add transfer mode support to ShapeDrawable

Test: runtest --path cts/tests/tests/graphics/src/android/graphics/drawable/cts/ShapeDrawableTest.java
Change-Id: I754cf20fda3fe5c28ba70aab089f9bebd27ca2bf
ndroid/graphics/drawable/ShapeDrawable.java
b4e3b344faa6c18b6dc0c6f1dfd989bd6d30e587 05-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Pass weight/italic pair instead of style." into oc-dev
8f6b9d80587ffec6899fe45bd3a6930eac3b65d5 04-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Refresh opacity and statefulness on tint change" into oc-dev
fe04aa840e0682e9813e1ac4958772f898eb02ca 02-Apr-2017 Seigo Nonaka <nona@google.com> Pass weight/italic pair instead of style.

Typeface.NORMAL/BOLD/ITALIC/ITALIC_BOLD is used for specifying relative
from current Typeface. For example

Typeface face = Typeface.create("serif");
Typeface thickerFace = Typeface.create(face, Typeface.BOLD);
Typeface moreThickerFace = Typeface.create(tickerFace, Typface.BOLD);

For the purpose of providing font information, we should use weight/italic
value instead of style in Typeface.
The Columns.STYLE field was kept for preventing runtime crash of demo
apps.

Test: Manually
Change-Id: I732e8ee04a66f61321fc0a98dbfb8fdc0a4dd7a4
ndroid/graphics/Typeface.java
ndroid/graphics/fonts/FontResult.java
2ac969827115c1b8bc86d9017eb1c7c1d5421b10 04-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Reorganize font enumeration API." into oc-dev
ad7e748543f69794bbc8114da660eed705a89087 04-Apr-2017 Alan Viverette <alanv@google.com> Refresh opacity and statefulness on tint change

Also warns when LayerDrawable is created with an invalid child. This
is not guaranteed to fail, but it's usually a bad sign.

Bug: 33124798
Test: LayerDrawableTest, DrawableContainerTest
Change-Id: Ie3e4200b27a9814cee7f5711d7df9710db513953
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/LayerDrawable.java
61117c61d7087f126583a7e23c9b4f25d8cdf621 04-Apr-2017 Ian Pedowitz <ijpedowitz@google.com> Merge "Revert "Refresh opacity and statefulness on tint change"" into oc-dev
55fed16929d9fb98e96e78042c08bd4b2dd3cf82 04-Apr-2017 Yohei Yukawa <yukawa@google.com> Revert "Refresh opacity and statefulness on tint change"

This reverts commit 1eda069f7c9a36e58c17ecf185a5c0906be5df95.

Reason to revert:
The setup wizard started throwing android.view.InflateException due to
I89f6d804fb025f426aefdee67559778cf03015bb. Temporarily reverting that
change until we figure out what is going on.

Change-Id: I9344a3402f2fab02f4fe49a6a8ad91970b2d3b3e
Test: Manually verified that the setup wizard no longer crashes.
Bug: 33124798
Bug: 36870685
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/LayerDrawable.java
265dbc1f0916283e607d4de9062f48d533d06487 04-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Refresh opacity and statefulness on tint change" into oc-dev
c0c524af4f05c072a5812d082ea0d7f38bad03af 03-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Make Color non-final because apps break..." into oc-dev
ff55115121a7a2753ba2265cb3201a3a14c0874d 29-Mar-2017 Seigo Nonaka <nona@google.com> Reorganize font enumeration API.

This CL cleans up APIs around font variation settings.
- Remove FontConfig and FontManager public API.
- Remove FontManagerService from system service.
- Extract inner class FontConfig.Axis as top-level class FontVariationAxis.
This is used by Typeface.Builder public API to create new Typeface.
- Introduce and expose FontVariationAxis utility functions from/to string.
- Throws if the invalid font variation settings is passed.

Test: android.text.cts.FontVariationAxisTest passes
Test: android.graphics.cts.TypefaceTest passes
Test: android.graphics.cts.PaintTest passes
Change-Id: I9ccafe7a53935960566243e2856e166878ca59ae
ndroid/graphics/FontFamily.java
ndroid/graphics/FontListParser.java
ndroid/graphics/Paint.java
ndroid/graphics/Typeface.java
ndroid/graphics/fonts/FontVariationAxis.java
bae8b52c71766ea1a6e59382f8b76e2013f358f9 03-Apr-2017 Romain Guy <romainguy@google.com> Make Color non-final because apps break...

Bug: 36858735
Test: Manual run of crashing app
Change-Id: I3eb06260074ee6950bc91731e7093a26d7e32b49
ndroid/graphics/Color.java
7efe56b779d4c44399513c4c92142df2bb8cc51f 03-Apr-2017 Bryce Lee <brycelee@google.com> Merge "Add app bounds to configuration." into oc-dev
55211c032c1b47c38fa6ec741cb71e6b0ebca95c 03-Apr-2017 Hyunyoung Song <hyunyoungs@google.com> Prevent NPE when draw is called without bounds being set
Test: unit test inside AdaptiveIconDrawableTest.java

Change-Id: Ic3260ce9c6bae595c7eba7be1cd7ae249939a1cf
ndroid/graphics/drawable/AdaptiveIconDrawable.java
7566d76c618a48b8dcc981dac3cab1e42f864063 30-Mar-2017 Bryce Lee <brycelee@google.com> Add app bounds to configuration.

The system previously overrode the display size for a specific scope
(task/activity/etc.) by setting the associated Configuration's
screenWidthDp/screenHeightDp. This leads to two issues. First, the
conversion of screen size from pixels to display independent pixels
and then upconverting later on leads to rounding errors. Secondly,
the screenWidthDp and screenHeightDp values account for insets, such
as the status bar. These however are not reflected in the display
size when returned from Display#getMetrics/getSize.

This changelist addresses the issue by adding a Rect value to
Configuration which stores the app display bounds. This is always set
at the display level and overridden as appropriate. As the proper
app insets are accounted for at the root configuration, all overrides
(outside of specific exceptions) are the result of the intersection
between the requested bound and the parent bound.

Change-Id: I2c4fcd0bee92af12aabbca258de05b4ec061d0e1
Fixes: 34338931
Bug: 36812336
Bug: 36676979
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsAppTestCases android.app.cts.AspectRatioTests
Test: cts/hostsidetests/services/activityandwindowmanager/util/run-test CtsServicesHostTestCases android.server.cts.ActivityManagerDisplayTests
Test: bit FrameworksServicesTests:com.android.server.wm.AppBoundsTests
ndroid/graphics/Rect.java
c7dacca00828e586ce4496d83a25a4d60a6fb60f 01-Apr-2017 Romain Guy <romainguy@google.com> Documentation for PorterDuffXfermode

It tooks 10 years, but better late than never!

Bug: 32984164
Test: Compiled documentation and checked in Chrome
Change-Id: I6dfd7fba6d3077f8c774b203589083bdbc15f9d2
ndroid/graphics/ColorSpace.java
ndroid/graphics/Paint.java
ndroid/graphics/PorterDuff.java
ndroid/graphics/PorterDuffXfermode.java
90fc43b33de1439ae7d92b12c3e09038aa878f50 30-Mar-2017 Romain Guy <romainguy@google.com> Query color space before decoding a bitmap

This follows the pattern established by other "out" fields
in BitmapFactory.Options

Bug: 32984164
Test: CtsGraphicsTestCases

Change-Id: Ie72e47338b578b41c550453e2698d2d49eddf6da
ndroid/graphics/BitmapFactory.java
1eda069f7c9a36e58c17ecf185a5c0906be5df95 28-Mar-2017 Alan Viverette <alanv@google.com> Refresh opacity and statefulness on tint change

Bug: 33124798
Test: DrawableContainerTest#testOpacityChange #testStatefulnessChange
Test: LayerDrawableTest#testOpacityChange #testStatefulnessChange
Change-Id: I89f6d804fb025f426aefdee67559778cf03015bb
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/LayerDrawable.java
c0cf4f09f4c520b2aaafbe8a0cb0feb530c2e021 28-Mar-2017 Seigo Nonaka <nona@google.com> Do not use many FDs in FontManagerService.

Currently there are over 170 font files are installed in system directory.
Opening 170+ files and keep them is not unacceptable. Pass URI instead.

At the same time, this CL hides full font path from FontConfig since
/system/fonts directory will be deprecated in future.

Bug: 36660849
Test: android.text.cts.FontManagerTest passed
Change-Id: I1d216dc9c6dec702a4ce3b946bfda6dcbe12b7fe
(cherry picked from commit 455f1bfc05bf972ee4fe8cd5fa135ed232126bb7)
ndroid/graphics/FontListParser.java
ndroid/graphics/Typeface.java
026a558ab0d9e710f385ea658687f385312b970e 22-Mar-2017 Romain Guy <romainguy@google.com> Update Color API

Make the class final because its instances are immutable and
it contained only static methods prior to O. Fix a couple of
typos/issues reported by external developers. Add a new variant
of getComponents() to avoid allocations, as requested by
external dev.

Test: Color_ColorLongTest
Bug: 32984164
Change-Id: I3c22e124c9fdf66142d530afa4beb05fe0669359
(cherry picked from commit 48f38f18385e8aed0df48524d8ea3d20eba9199f)
ndroid/graphics/Color.java
a4ab320e0a97f0ac8a336a1990248bfa33232611 23-Mar-2017 Seigo Nonaka <nona@google.com> Use variation settings for Typeface creation.

Bug: 35416390
Test: android.graphics.cts.TypefaceTest passed
Change-Id: Ieefa2cf095fb1031d3c7ac99fd59710311d7ede3
ndroid/graphics/Typeface.java
2a820bdf5002c2b34a0632c3b5227dcfadeffa70 22-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Revive old method to prevent crash internal app."
6a4486e1c52e6ef3fd67bb081787e5fadfa6ea68 22-Mar-2017 Philip P. Moltmann <moltmann@google.com> Merge "Use only official pdfium APIs"
2660aca4912b4bd890c5c76688f67f1898dc7b97 22-Mar-2017 Seigo Nonaka <nona@google.com> Revive old method to prevent crash internal app.

Bug: 36509029
Test: N/A
Change-Id: I4e04847de7b61a790323257c09da9a960a6689d5
ndroid/graphics/FontFamily.java
c34f786677b08edf6813926d211d22351a7dfd4b 22-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Unhide Typeface construction APIs."
fb483cc90c27a9c0fcafa28343a8fd644f8384a4 21-Feb-2017 Clara Bayarri <clarabayarri@google.com> XML Support for non system font providers

The certs needed to identify non preinstalled providers
can now be declared in XML, using a resources array.

Test: runtest --path frameworks/base/core/tests/coretests/src/android/provider/FontsContractTest.java
runtest --path frameworks/base/core/tests/coretests/src/android/content/res/FontResourcesParserTest.java
Bug: 35025705
Change-Id: Ibf12ad409aa5a873ddb32b1383c147728e664c23
ndroid/graphics/Typeface.java
b2c20d880dea55f5657be08859950fc8eea96708 22-Mar-2017 Seigo Nonaka <nona@google.com> Unhide Typeface construction APIs.

These APIs are necessary to construct Typeface from various combination
TTC index, variation settings, etc.

Bug: 33062398
Test: android.graphics.cts.TypefaceTest passes
Change-Id: Ie069700ed4f67efbec55331bef867f94d58e2a61
ndroid/graphics/Typeface.java
713b869aad03c8cb21805ce2d8ab48f9ac5e4bcc 21-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Expose Typeface creation APIs with ttc and font variation."
20e5d91739fb88a02afb4888bf9f938308bc9b7b 18-Jan-2017 Seigo Nonaka <nona@google.com> Expose Typeface creation APIs with ttc and font variation.

Introduce Builder class for creating Typeface from various
sources with optional TTC index and font variation settings.

Bug: 33062398
Test: Manually verified new Builder create Typeface.
Change-Id: Ia23ee6a73516707d854c7387fe75fbb22f80673d
ndroid/graphics/FontFamily.java
ndroid/graphics/FontListParser.java
ndroid/graphics/Typeface.java
b94f89094ade5fbdd05e14b57487a74aaacc184d 21-Mar-2017 sergeyv <sergeyv@google.com> Allow draw hw bitmap on software canvas for hierarchyviewer

Test: runs hierarchyviewer on app with hw bitmaps
bug:34745484
Change-Id: I35f70f7927be23edebac171f3bc96405b14ca794
ndroid/graphics/BaseCanvas.java
d55f20d3018d3328d9e26c971b814dfcb61aa7b2 17-Feb-2017 Philip P. Moltmann <moltmann@google.com> Use only official pdfium APIs

Fixes: 28051413
Test: cts-tradefed run cts-dev -m CtsGraphicsTestCases -t android.graphics.pdf.cts
cts-tradefed run cts-dev -m Print -t android.print.pdf.cts
Change-Id: Iab52463ba225d3cddb1e97fe52cb9f56318cce68
ndroid/graphics/pdf/PdfRenderer.java
7d50ff11db4911788722f24646d1a8ce2e8b0a87 20-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Notify caller if none of settings are effective."
97b4ccbd97930c8af33c898e1c39f1f26412e180 17-Mar-2017 Chris Craik <ccraik@google.com> Merge "Expose color filter mutate methods"
5d0a358b62ef1735c073eefc73561136189a6ff7 16-Mar-2017 Hyunyoung Song <hyunyoungs@google.com> Merge "Add LauncherIcons.AdaptiveIconDrawableWithShadow class to support shadow b/36088922"
6097eca72134034fcc6086c110673b5df94913b0 08-Mar-2017 Chris Craik <ccraik@google.com> Expose color filter mutate methods

Bug: 36025103
Test: cts-tradefed run singleCommand cts-dev --module CtsGraphicsTestCases

Now, similar to Shaders, we defer native creation until Paint is being
used, and ensure that we have an up to date filter when drawing.

Also implements ColorMatrix#equals to behave like Matrix#equals.

Change-Id: I5f74addd97f5662800802e6f660fead58d518725
ndroid/graphics/ColorFilter.java
ndroid/graphics/ColorMatrix.java
ndroid/graphics/ColorMatrixColorFilter.java
ndroid/graphics/LightingColorFilter.java
ndroid/graphics/Paint.java
ndroid/graphics/PorterDuffColorFilter.java
ndroid/graphics/Shader.java
ndroid/graphics/drawable/VectorDrawable.java
547010ff863e634186fddf75890b6894f1cfa6be 13-Mar-2017 Hyunyoung Song <hyunyoungs@google.com> Add LauncherIcons.AdaptiveIconDrawableWithShadow class to support shadow
b/36088922

Test: Settings app
This utility class can be used to bake shadow in drawable level in
system ui surfaces such as Settings, Overview and ShareSheet.

Change-Id: Iaec867d9ce5b949380c1e5004b68269d1bbeacd4
ndroid/graphics/drawable/AdaptiveIconDrawable.java
c4a6d29ac6d8e7652c599c495ea83844e118119f 16-Mar-2017 Clara Bayarri <clarabayarri@google.com> Merge "Provide ApplicationContext to Typeface for font requests"
0763650a13dd1968f45e8e64950a32c6b508ce28 10-Mar-2017 Seigo Nonaka <nona@google.com> Notify caller if none of settings are effective.

Now setFontVariationSettings returns false if the given settings is not
effective.

Bug:35764323
Test: ran TextViewTest and PaintTest in cts
Change-Id: Ic31d9e47ec006c8e7bb2c907ff0ea2936bd71d01
ndroid/graphics/Paint.java
ndroid/graphics/Typeface.java
2bd530e1562bcbf99b6d1b2f447b4b835d3bc43e 15-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Pass advances to Minikin for calculating getTextRunCursor"
aa0b3a8da1fd4d5c950b5886dabb8935cb34e964 15-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Modify createBitmap w/ crop and matrix to not rely on Canvas.setBitmap"
ff221613ec1c328489a303491e1aa88850e4a273 15-Mar-2017 Clara Bayarri <clarabayarri@google.com> Provide ApplicationContext to Typeface for font requests

We were using a generic context that caused crashes for
the content providers.

Bug: 34657204
Test: manual, calling getCallingPackage() from the provider
doesn't crash anymore.

Change-Id: I2b61e6510d8c6647007987373d03ee5dc97c0889
ndroid/graphics/Typeface.java
ac873c9f25d2a687c9195226b9d680f51c91fa30 08-Mar-2017 Seigo Nonaka <nona@google.com> Clean up public FontConfig APIs

This CL contains following clean up:

- Hide unnecessary constructors.
- Change List<XX> to XX[] since actually all fields are immutable.
- Change font's variant type from String to int.
- Decouple resource related members to FontResourcesParser.
- Add NonNull/Nullable to all fields.

Test: ran android.content.res.FontResourcesParserTest

Change-Id: If456266ffff86d41342572a19662cc8f3cd13181
ndroid/graphics/FontFamily.java
ndroid/graphics/FontListParser.java
ndroid/graphics/Typeface.java
29cd3e922612afff4cd5fa9694013e5e8ae93661 15-Mar-2017 Derek Sollenberger <djsollen@google.com> Modify createBitmap w/ crop and matrix to not rely on Canvas.setBitmap

Test: CtsGraphicsTestCases BitmapTest
Bug: 36218535
Change-Id: I972f3ed6d037f6cae7a36fd2e612df9ab40a8b2d
ndroid/graphics/Bitmap.java
95e8afbb5e1ff795f7601eea916b299943f4c429 15-Mar-2017 Chris Craik <ccraik@google.com> Merge "Revert "Change behavior of setBitmap to cleanly reset the canvas - identity matrix - no save stack - wide-open clip""
4f641d1e4586b027969052cc0ad6b65c1158e72e 14-Mar-2017 Tony Mantler <nicoya@google.com> Revert "Change behavior of setBitmap to cleanly reset the canvas - identity matrix - no save stack - wide-open clip"

https://buganizer.corp.google.com/issues/36218535

This reverts commit 269f989fbf198b17994baf9141c4640aeaf34b4e.

Change-Id: Ib2473e4fce90c9abaa39eea2b77082ae26197b80
ndroid/graphics/Canvas.java
5ccb12294ecb2637c868942c03228b38edcd5211 14-Mar-2017 Romain Guy <romainguy@google.com> Merge "Use d=0.039 for Display P3 instead of sRGB's 0.04045"
5d74b1c76f5da4510a1d70d8d3b0e8c15765f231 14-Mar-2017 Roozbeh Pournader <roozbeh@google.com> Pass advances to Minikin for calculating getTextRunCursor

Previously, the getTextRunCursor() implementation in Minikin ignored
the font and just used the characters in the buffer in order to
determine cursor positions. Now we calculate the advances beforehand
in order to find potential Indic clusters.

Test: Manually tested some Tamil sequences
Bug: 35721792
Change-Id: I2500bd4c2c9d07bb6c965b2d41e04853886a7391
ndroid/graphics/Paint.java
494f784e47e74a65e8bce485065f5b7b077800fb 13-Mar-2017 Romain Guy <romainguy@google.com> Use d=0.039 for Display P3 instead of sRGB's 0.04045

Bug: 32984164
Test: ColorSpaceTest
Change-Id: I4dd38a660e5130f36e424a3e7eb62e3d65ef2d2f
ndroid/graphics/ColorSpace.java
00128ab0b5d2c225af7553fda7adb4ffeec892cb 13-Mar-2017 Chris Craik <ccraik@google.com> Merge "Fix ShapeDrawable#mutate"
1965d2898c25e8688dd9d412da08038bb1ebc0ea 13-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Change behavior of setBitmap to cleanly reset the canvas - identity matrix - no save stack - wide-open clip"
269f989fbf198b17994baf9141c4640aeaf34b4e 01-Mar-2017 Mike Reed <reed@google.com> Change behavior of setBitmap to cleanly reset the canvas
- identity matrix
- no save stack
- wide-open clip

Behavior around the new bitmap is the same.

Tests : CtsGraphicsTestCases

Change-Id: Ieaf8c2a1b96262ed33940dd852a86089eb93efdb
ndroid/graphics/Canvas.java
957b3372f2b6c1c50ca50d4b6b22f5a041d08f04 11-Mar-2017 Chris Craik <ccraik@google.com> Add comment to Shader#mLocalMatrix

Test: just comments, none

Change-Id: Idd337deef5fa796f3d83ffbddca58949b27d5169
ndroid/graphics/Shader.java
374347a5fee0a4de37d75b1dce4402f6ab72d9d5 11-Mar-2017 Chris Craik <ccraik@google.com> Fix ShapeDrawable#mutate

Fixes: 35940396
Test: cts-tradefed run singleCommand cts-dev --module CtsGraphicsTestCases --test android.graphics.drawable.cts.ShapeDrawableTest

Change-Id: I5731ce131785ded07bcde9e54ecb9d4f5dcfa96b
ndroid/graphics/drawable/ShapeDrawable.java
a2b2a290785f126bfd0ed24f9bb6856dc62bf9af 10-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Allow Font providers to return status codes"
bacf2352ab892724551431551ae973ae3b68db35 10-Feb-2017 Clara Bayarri <clarabayarri@google.com> Allow Font providers to return status codes

This was requested by the current users, need to state
that a font is unavailable (needs downloading) or that
the query is unsupported.

Also add tests :)

Test: runtest --path frameworks/base/core/tests/coretests/src/android/provider/FontsContractTest.java
Also CTS attached to topic
Bug: 35097775
Change-Id: Ib15bf4c70185d81a4c20426722eb44c4210771c2
ndroid/graphics/Typeface.java
b20f320954f32bd71b2543a2d033a5a4512d1b67 10-Mar-2017 Chris Craik <ccraik@google.com> Merge "Support for shader mutation"
b581e6704fc1478bc1dda517502abd3eab2558d6 08-Mar-2017 Chris Craik <ccraik@google.com> Support for shader mutation

Bug: 36025103

Test: cts-tradefed run singleCommand cts-dev --module CtsGraphicsTestCases
Test: cts-tradefed run singleCommand cts-dev --module CtsUiRenderingTestCases
Test: manually inspected for leaks via SK_TRACK_SHADER_LIFETIME and forcing a GC after ComposeShaderTest

Change-Id: Ib5d33a80d2f9f468705806b05832e753508143cc
ndroid/graphics/BitmapShader.java
ndroid/graphics/ComposeShader.java
ndroid/graphics/LinearGradient.java
ndroid/graphics/RadialGradient.java
ndroid/graphics/Shader.java
ndroid/graphics/SweepGradient.java
7cf9be0246494971143a781ed14885152de04322 09-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Make Bitmap.get/setPixel[s] color space aware"
ce217faddb4b40c1b3e698944da1951027080427 09-Mar-2017 Romain Guy <romainguy@google.com> Make Bitmap.get/setPixel[s] color space aware

Bug: 32984164
Test: cts-tradefed run singleCommand cts-dev --module CtsGraphicsTestCases --test android.graphics.cts.BitmapColorSpaceTest
Change-Id: Iee8c4abb264f0d2a44bae59788fbf4dcb2d0fdf7
ndroid/graphics/Bitmap.java
dfcebf672d19491686442913909ae378136fd770 08-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Write Bitmap's color space in parcel"
6587430d6f942ae9f6d66aabfd3748f6dd50be86 08-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "AdaptiveIconDrawable should handle all usage cases of setBounds Test: runtest --path=frameworks/base/core/tests/coretests/src/android/graphics/drawable/AdaptiveIconDrawableTest.java"
5acc476878bce8b72c0059e05cbbd5b43ffee5d5 08-Mar-2017 Romain Guy <romainguy@google.com> Write Bitmap's color space in parcel

This change also resets the cached color space field in Bitmap.java
when reconfigure() is called or when a bitmap is reused by the
bitmap factory.

Bug: 32072280
Test: CtsGraphicsTestCases.BitmapColorSpaceTest
Change-Id: I232b729b7a29e65bfff21dc749570c3c80adf855
ndroid/graphics/Bitmap.java
0bbf4f59743ffce4c1bbe39b69916c972bacdbd2 03-Mar-2017 Hyunyoung Song <hyunyoungs@google.com> AdaptiveIconDrawable should handle all usage cases of setBounds
Test: runtest --path=frameworks/base/core/tests/coretests/src/android/graphics/drawable/AdaptiveIconDrawableTest.java

b/35950873
b/35673169
b/34902453

adb shell am instrument -e class 'android.graphics.drawable.AdaptiveIconDrawableTest' -w 'com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner'
android.graphics.drawable.AdaptiveIconDrawableTest:..

Time: 1.241

OK (2 tests)


Change-Id: I6498f6acc782a30188fc2afc50781cef83e4747b
ndroid/graphics/drawable/AdaptiveIconDrawable.java
7ef25b78941ded7e1d757dc42897529a02fa10a3 07-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add ColorSpace information on Bitmap"
3c4be77db95ea716889568bde853be082e764da9 07-Feb-2017 Clara Bayarri <clarabayarri@google.com> Support non-system Font Providers

To do this, the developer must specify the set of certificate
hashes that represent the authority's app. This allows us to
verify that the authority we find is indeed the one intended
by the developer.

Bug: 35025705
Test: runtest --path frameworks/base/core/tests/coretests/src/android/provider/FontsContractTest.java
runtest --path frameworks/base/core/tests/coretests/src/android/content/res/FontResourcesParserTest.java
CTS attached to topic
Change-Id: I605f9a93bbca8705936ead08efb4a5b4fdcc4882
ndroid/graphics/Typeface.java
ndroid/graphics/fonts/FontRequest.java
efb4b06493fe7b1604c762a448b13c7af2845a8d 27-Feb-2017 Romain Guy <romainguy@google.com> Add ColorSpace information on Bitmap

This is the first step toward interpreting color spaces at render time.

Bug: 32984164
Test: BitmapColorSpaceTest in CtsGraphicsTestCases

Change-Id: I0164a18f1ed74a745874fe5229168042afe27a04
ndroid/graphics/Bitmap.java
ndroid/graphics/ColorSpace.java
b85f02e9add59192b4d45ec3b52f9c01747edfc2 06-Mar-2017 Roozbeh Pournader <roozbeh@google.com> Merge "Frameworks support for hyphenation for various complex cases"
46c6f4c5ea7846fee4e6ef40c035ef2bee1adcbb 21-Feb-2017 Roozbeh Pournader <roozbeh@google.com> Frameworks support for hyphenation for various complex cases

This adds better support for Arabic script languages, Armenian,
Catalan, Hebrew, Kannada, Malayalam, Polish, Tamil, and Telugu by
adding various hyphenation types and edits appropriate for the
locales.

The actual implementations are in Minikin. This CL takes care of the
changes needed in frameworks, to support different end-of-line and
start-of-line hyphen edits.

Two bugs in TextLine.java are also fixed:

1. Where hyphen edits on non-spanned texts were not eliminated in
handleRun() when they should have. This had manifested itself in
double hyphenation in some bidi paragraphs.

2. Some no op assignments and comparions around the change for the
above bug are removed.

Test: thorough manual testing for various cases
Bug: 19756624
Bug: 19950445
Bug: 19955011
Bug: 25623243
Bug: 26154469
Bug: 26154471
Bug: 33387871
Bug: 33560754
Bug: 33752592
Bug: 33754204
Change-Id: I48c047d1f6a75c39a78a6ea38a0a3282f63326ec
ndroid/graphics/Paint.java
e4179e2c4e674b32390a9133bb9fbb3ef5df651b 01-Mar-2017 Hyunyoung Song <hyunyoungs@google.com> Change MaskableBitmap to AdaptiveBitmap
Test: $ make dist -j30
b/35399620

Change-Id: I96d6eaceaf7ce9dec7de21634a5fa2bd40b0deba
ndroid/graphics/drawable/Icon.java
5d8caaafa63c1add4170812d947066d308fffa49 27-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix ShapeDrawable mutate, add clone() support to ArcShape, OvalShape"
d41189339b8aa4e37ae4e32c531cc494d05c21af 27-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Make Half look like and behave like a boxed instance"
95b52fd187564cabceb3309daa4ee6ddf697de58 25-Feb-2017 Romain Guy <romainguy@google.com> Make Half look like and behave like a boxed instance

Bug: 35765416
Test: HalfTest
Change-Id: I7ef52428f8b4e2c05b91d7eb37cc4cb5ecc5c6b9
ndroid/graphics/Color.java
446d988b44b6e492e4cfc36be00a1e1aeaaf8c20 16-Feb-2017 Alan Viverette <alanv@google.com> Fix ShapeDrawable mutate, add clone() support to ArcShape, OvalShape

Also cleans up stray white space and fixes docs. Adds getters to ArcShape
properties so that we can write proper CTS tests.

Fixes: 35419960
Test: ArcShapeTest, OvalShape#testClone, ShapeDrawableTest
Change-Id: Icf1bae7f79f9294b2a60c49b85ce8749473ed61e
ndroid/graphics/drawable/ShapeDrawable.java
ndroid/graphics/drawable/shapes/ArcShape.java
ndroid/graphics/drawable/shapes/OvalShape.java
ndroid/graphics/drawable/shapes/PathShape.java
ndroid/graphics/drawable/shapes/RectShape.java
ndroid/graphics/drawable/shapes/RoundRectShape.java
ndroid/graphics/drawable/shapes/Shape.java
4db2c229be8e4d243ca19fac4080cda1eeb22710 24-Feb-2017 Romain Guy <romainguy@google.com> Add CIECAT02 chromatic adaptation transform

Bug: 32984164
Test: CtsGraphicsTestCases
Change-Id: Id13ff88ab7a21901bd914ed740f859588099a18e
ndroid/graphics/ColorSpace.java
a7993241a96ff8832bac5fbc052d8a9ac6e72877 21-Feb-2017 Andreas Gampe <agampe@google.com> Graphics: Make SurfaceTexture compile-time initializable

Ensure that all static initializer code can be executed in the
compiler. Move native field caching into the native method
registration function.

Bug: 34956610
Test: m
Test: Device boots (Pixel)
Change-Id: Icf68c8fbadcaaa133a152942a3a7ba7aba84a1df
ndroid/graphics/SurfaceTexture.java
d89cf81f80f17c58abf564728d0e10c4754ab600 18-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Change MaskableIconDrawable to AdaptiveIconDrawable"
be8835e86bc39570994af32ead381875e3ee54d5 17-Feb-2017 Hyunyoung Song <hyunyoungs@google.com> Change MaskableIconDrawable to AdaptiveIconDrawable

Test: $ make -j31 dist

Bug: 35399620
Change-Id: I5e54f75b3df21ffe546e0e54dbd7ea29499d1789
ndroid/graphics/drawable/AdaptiveIconDrawable.java
ndroid/graphics/drawable/DrawableInflater.java
ndroid/graphics/drawable/Icon.java
ndroid/graphics/drawable/MaskableIconDrawable.java
172873f5e6754cb9c1cdb1c08b3b095770c1e3e3 17-Feb-2017 Romain Guy <romainguy@google.com> Merge "Add RGBA 10:10:10:2 format for surfaces"
b44abf290190ceee037f24c47493a34de45fa3f4 16-Feb-2017 Clara Bayarri <clarabayarri@google.com> Use weight & style data for fonts from xml source

Bug: 34916944
Test: manual tests
Change-Id: I1d6e1c4c52859c5e9d7a8b0a247e4d0581935833
ndroid/graphics/FontFamily.java
ndroid/graphics/Typeface.java
8ec21062ded44fe28ea7cd50e24112dc1832b0e5 11-Feb-2017 Romain Guy <romainguy@google.com> Add RGBA 10:10:10:2 format for surfaces

Bug: 2984164
Test: CtsHardwareTestCases
Change-Id: I4a42cb9002d8f1f1362999f2739d06c712157620
ndroid/graphics/PixelFormat.java
966ad0b2f5a52e4223ff0943e448aee53763496d 14-Feb-2017 Hyunyoung Song <hyunyoungs@google.com> Remove color attribute from MaskableIconDrawable foreground/background tag
Test: manual test

Change-Id: Ia8426051aed8c4451b10cf415e179930caede974
ndroid/graphics/drawable/MaskableIconDrawable.java
02761acc674ae9b13d5bbda493ac794ecc4c1c6e 14-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Declarative downloadable fonts"
4b5a4d221f377686a730182a3bffb8c6f190e313 27-Jan-2017 Clara Bayarri <clarabayarri@google.com> Declarative downloadable fonts

Implement support for downloadable font requests in xml. Given the
xml fonts feature in O, this adds support to not only declare
local font files as font resources, but also Downloadable fonts
from a fonts provider.

A provider returns a font family (of one or more files) given a
query, so the new attributes are added to the font-family tag.

Additionally, add support to pre-declare downloadable font resources
in the Android Manifest. These will then be fetched at app startup
time so they are available to use from the Typeface cache asap.

When retrieving downloadable fonts via resources, the cache is
checked to see if the font is already there and is used, otherwise
a request is sent to the provider and the default font is returned
as we need a result synchronously.

To do this, the developer declares an additional fonts xml resource
file with the list of fonts to preload and links it in the manifest
with a meta-data tag.

E.g.:

res/font/mydownloadedfont.xml

<font-family xmlns:android="http://schemas.android.com/apk/res/android"
android:fontProviderAuthority="com.example.test.fontprovider"
android:fontProviderQuery="myrequestedfont">
</font-family>

res/font/preloaded_fonts.xml

<?xml version="1.0" encoding="utf-8"?>
<font-family xmlns:android="http://schemas.android.com/apk/res/android">
<font android:font="@font/mydownloadedfont" />
</font-family>

and in the AndroidManifest.xml

<meta-data android:name="preloaded_fonts"
android:resource="@font/preloaded_fonts" />

Bug: 34660500, 34658116
Test: WIP, need to add more
Change-Id: I1d92555e115e241bf23b59e6f5c6cca6c7361de7
ndroid/graphics/Typeface.java
7183b6908b0af807491e90f37e9e05794bd0c3f1 14-Feb-2017 Derek Sollenberger <djsollen@google.com> Merge "Deprecate Canvas save/saveLayer flags."
4d20ee8c4632a97171396c9089b79d014cc12c0e 14-Feb-2017 Hyunyoung Song <hyunyoungs@google.com> Merge "Icon class should support Maskable bitmap type"
427acd7c77bdfc3f7140853587a5f06b3eb033a6 13-Feb-2017 Derek Sollenberger <djsollen@google.com> Merge "Deprecate Canvas clipping for arbitrary Region.Ops."
9ee90a42dcd5057eab0b0fdc106de617e0a55133 04-Feb-2017 Hyunyoung Song <hyunyoungs@google.com> Icon class should support Maskable bitmap type

Test: Unit test on IconTest
$ runtest --path=frameworks/base/graphics/tests/graphicstests/src/android/graphics/drawable/IconTest.java

b/34196580

Change-Id: I321c4b02f17ad9426c053216c4c88616a605aacf
ndroid/graphics/drawable/Icon.java
ndroid/graphics/drawable/MaskableIconDrawable.java
e8d2ebb5c29efb996179f9a4b62c78e4d3037e14 10-Feb-2017 Romain Guy <romainguy@google.com> Report bitmap config when decoding only metadata

With the introduction of support for 16 bit images, bitmaps returned
by BitmapFactory may be using the RGBA_F16 configuration. Some apps
and libraries assume the returned configuration is always ARGB_8888
and make assumptions based on that to compute cache sizes, etc.

This changes extract the output config when BitmapFactory is invoked
with the inJustDecodeBounds option. Despite its name, this option
is already used (and documented!) to decode more than bounds as it
also decodes the MIME type.

Bug: 35108998
Test: CtsGraphicsTestCases
Change-Id: If71959751458816678e42b21ab26c889aba5dea0
ndroid/graphics/BitmapFactory.java
8c5759624c71ef701cba6751a030328481b4a83c 09-Feb-2017 Derek Sollenberger <djsollen@google.com> Deprecate Canvas clipping for arbitrary Region.Ops.

Operations that can expand the clip are difficult to support and
don't fit the parent child model that is used by the view system.

Test: compile
Bug: 14650725
Change-Id: I67e99d3e1a1eb0b231910ee5d277a38e8a953dc4
ndroid/graphics/Canvas.java
b8201195dfb2bae05faaf91b9b3d065e2f199929 09-Jan-2017 Derek Sollenberger <djsollen@google.com> Deprecate Canvas save/saveLayer flags.

Test: compile
Bug: 14650725
Change-Id: I6424ac46bae0a7a87c4b7743e81319945dfdd087
ndroid/graphics/Canvas.java
1e2758256a391be23c537725f0a7785e4fb5b7d0 07-Feb-2017 Phil Weaver <pweaver@google.com> Merge "Provide text locations to accessibility services."
c2e28932d22faece6e7179c78d4e7656dc63052c 08-Dec-2016 Phil Weaver <pweaver@google.com> Provide text locations to accessibility services.

Bug: 30170631
Test: New CTS tests on linked CL.
Change-Id: I723e3777189c8df71c59dada00abdf339ebc983d
ndroid/graphics/RectF.java
b12397e57e79c5dd9e8b2cb3839f5cd30b5d515f 27-Jan-2017 Clara Bayarri <clarabayarri@google.com> Cache Downloaded Fonts in Typeface

If the requested Typeface is already loaded into memory, return
from the cache.

Test: none, optimization
Change-Id: I32422c47c68502ba83b7d976f6e05f70dda5daed
ndroid/graphics/Typeface.java
3084ec2df4f14684d11ca1006f8f243243071730 02-Feb-2017 Hyunyoung Song <hyunyoungs@google.com> Handle nullable drawables inside MaskableIconDrawable
Test: manual test
b/34902453

Change-Id: I36fc48f7e4c1f6503a9c26b8f239c62da729b490
ndroid/graphics/drawable/MaskableIconDrawable.java
cf45c852977e5f68a0d67fca01f03b11c09e32ba 31-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Introduce set/getFontVariationSettings."
9ff994d98846d24bc488939af6e7dc440149a4bc 30-Nov-2016 Seigo Nonaka <nona@google.com> Introduce set/getFontVariationSettings.

This is 2nd attempt of I249d464f8cdaa56017a987588b94ed685aadeb58.
The original CL was reverted due to conflicting with another CL submitted
before.
Nothing has changed except for following class name changes.

Here is the original commit message of reverted change.

This CL enables developers to specify axis values to the underlying
font collection. The specification of the font variation settings is
the same as the CSS font-variation-settings attribute in CSS working
draft as of 2016-11-30.

Code example: Here is an example to set width 100 and weight 1.5.

TextView tv = (TextView) findViewById(R.id.textView);
tv.setFontVariationSettings("'wdth' 100, 'wght' 1.5");

Bug: 33062398
Test: Manually done. Ran FrameworksGraphicsTests, CtsGraphicsTestCases
and CtsWidgetTestCases

Change-Id: I9cdfbdecc87c995d805096883ef2652768c6c21e
ndroid/graphics/FontListParser.java
ndroid/graphics/Paint.java
ndroid/graphics/Typeface.java
fe98ad919bebaf41191b7fdf0a1d841198d4f46a 30-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Implement .xml font resource support"
ed00bfdfae5d5cbc9e13f4e8affdece48f4c5b7f 20-Jan-2017 Clara Bayarri <clarabayarri@google.com> Implement .xml font resource support

This change implements the loading and parsing
of xml type font resources, and makes sure it is
used properly by TextView styles.

Test: run cts -m CtsContentTestCases -t android.content.res.cts.ResourcesTest
run cts -m CtsWidgetTestCases -t android.widget.cts.TextViewTest#testFontResources*

Change-Id: I5a2930b3ba7dad67d9607e9036a5dde6bab0c5a4
ndroid/graphics/Typeface.java
0ce4b0e4c31a65864e0cda3c9d3fb6fe8a40f2ed 26-Jan-2017 Elliot Waite <elliotwaite@google.com> Fix @links in reference docs. am: 54de77470d am: ab978c035e am: 28ba4722a9
am: 9b21265b2c

Change-Id: If246ebdb36cf2832d5a6c42cbe752e290b6fb6e8
9b21265b2ce0f57796bffb241c008fff459d4b05 26-Jan-2017 Elliot Waite <elliotwaite@google.com> Fix @links in reference docs. am: 54de77470d am: ab978c035e
am: 28ba4722a9

Change-Id: I98177a8cf0a20677e140406bb7371474ca259e5b
54de77470de4f605eef7f4b4e01718b301fe275e 12-Jan-2017 Elliot Waite <elliotwaite@google.com> Fix @links in reference docs.

Change-Id: I40cea46efd80c448640ff69753698fe8404da40b
ndroid/graphics/Outline.java
ndroid/graphics/drawable/Drawable.java
c65ea181da71fab4d911da010c7413492104df4d 25-Jan-2017 Seigo Nonaka <nona@google.com> Fix crash with FontProvider

Need to freeze the FontFamily otherwise the FontFamily is not created.

Test: manually done
Change-Id: I81a6f0d295f13bbeb059deafb4283654f97c0090
ndroid/graphics/Typeface.java
68eb1ac342f30b77b6fdba98e67559c4858e3f74 25-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Follow minikin::FontFamily constructor signature change."
8d07bfa43745a069b0911f7529acad3a423d94d4 25-Jan-2017 Hyunyoung Song <hyunyoungs@google.com> Merge "Adds MaskableIconDrawable class to android.graphics.drawable package"
f665a3295000941e98175ab5d2f355d4b46959ce 10-Jan-2017 Hyunyoung Song <hyunyoungs@google.com> Adds MaskableIconDrawable class to android.graphics.drawable package

Test: manual test ag/1774462, cts tests ag/1813947

Bug: 32063838
Design doc: http://go/layered-icons-eng

- Reads in the mask path from config.
- If <maskable-icon> is dynamically created, clip the drawable using the mask path.
- Instead of using clipPath method, used BitmapShader for performance.

Change-Id: If5b4a24127bf823477c6c5d8a81d5093501d58e7
ndroid/graphics/drawable/DrawableInflater.java
ndroid/graphics/drawable/MaskableIconDrawable.java
b0812a30499376e09e2deb5995e998c629f24985 20-Oct-2016 Clara Bayarri <clarabayarri@google.com> Introduce Fonts Content Provider

This change exposes to developers the ability to request fonts
from a provider via Typeface.

Until further security is implemented, only system apps can
provide fonts.

Test: See topic for CTS change
Change-Id: Ic7d5e2648340ee561f4d4c2d73a673748d2af076
ndroid/graphics/Typeface.java
ndroid/graphics/fonts/FontRequest.java
ndroid/graphics/fonts/FontResult.java
ndroid/graphics/fonts/FontSpec.aidl
8b48e624457e438fcc2b6b9363329036ef2f7743 07-Jan-2017 Seigo Nonaka <nona@google.com> Follow minikin::FontFamily constructor signature change.

This is 2nd attempt of Id10ca97f6f6f5bbe4999c1ad2736423a204d6e87.
The root caus of crash is due touching null pointer in nUnrefFamily.
After above change, native object may not be created on error case.
In that case, nUnrefFamily can not be called. In addition to this issue
there is also memory leak on error case. This fixes it by introducing
abortCreation method.

Also this contains fix of layout lib breakage done by jgaillard@.
Originally submitted by Ic8872a43993bcb0a157c5e3f0ce423af9b47f606

Here is original commit message of reverted change.

minikin::FontFamily no longer has addFont function, instead it accept
vector of Fonts in its constructor. To follow this signature change,
holding minikin::Font instance in native and build minikin::FontFamily
instance in FontFamily.freeze() method.

Bug: 34042446
Bug: 28119474
Bug: 34378805
Test: hwui test has passed
Test: m layoutlib layoutlib-tests
Change-Id: Ic34ebaa8191273d4c9f49c43124f15a1da5f7b78
ndroid/graphics/FontFamily.java
ndroid/graphics/Typeface.java
540dbd08adb04c5f405e1e0966491fa3fa8a7618 24-Jan-2017 Chris Craik <ccraik@google.com> Merge "Use @CriticalNative in Canvas"
bfa0b29883d56edfc2ec217962290d3c94f9fc2a 20-Jan-2017 Chris Craik <ccraik@google.com> Use @CriticalNative in Canvas

Bug: 33460152
Test: ViewShowHidePerfTests

Switches non-drawing @FastNative methods to @CriticalNative, except
where out arguments prevent it.

Performance in ViewShowHidePerfTests not significantly impacted.

Change-Id: I3edc963accb4f87f73d175c7b2534868602a7db3
ndroid/graphics/Canvas.java
4a65687b853a92268f4f0eb52f22e092b16f8ed3 23-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Expose fonts.xml via public API with a service"
764ff2740fe49ca10a9e21b58f933e761b5b7865 23-Jan-2017 Clara Bayarri <clarabayarri@google.com> Delete accidentally submitted FontResourcesParser

This should have not been part of commit
Idc06bfbfd16452a328bfcc6ea9dcfb723b633f0c

Test: none
Change-Id: I0701e5fad0df898ba64ea695ec31d0dd7d3bb333
ndroid/graphics/FontResourcesParser.java
04d72abde1efc963ebb2f145f859552e83b92d13 10-Jan-2017 Clara Bayarri <clarabayarri@google.com> Expose fonts.xml via public API with a service

This change creates a new FontManagerService, in charge of providing
font management data. It exposes a public API to retrieve the
information in fonts.xml without accessing it directly. To do this,
it also refactors FontListParser's internal classes into a new public
FontConfig class holding all the font data.

getSystemFonts() returns all the available information in fonts.xml
as well as file descriptors for all the fonts. This allows us to
share the memory consumed by these files between all clients.

Bug: 34190490
Test: See attached CTS change in topic
Change-Id: I0e922f8bcc9a197a1988d04071eb485328d66fb7
ndroid/graphics/FontFamily.java
ndroid/graphics/FontListParser.java
ndroid/graphics/Typeface.java
18e9f9f3778318918c44d944489cb50daaf45d1c 19-Dec-2016 Clara Bayarri <clarabayarri@google.com> Expose Resources.getFont

Based on the work already done in aapt2, load a Font from a
resource id.

Test: WIP
Change-Id: Idc06bfbfd16452a328bfcc6ea9dcfb723b633f0c
ndroid/graphics/FontFamily.java
ndroid/graphics/FontResourcesParser.java
ndroid/graphics/Typeface.java
c0d685b87aa544bc23c1ed1c01e88f6c04855f72 20-Jan-2017 Siyamed Sinir <siyamed@google.com> Revert "Follow minikin::FontFamily constructor signature change."

This reverts commit a0a4828614edfd633ab86f04408e7f4e55b491dd.

Bug: 34378805
Change-Id: Icbdbfbde2efe8eaebbe4334a679e3b3247057388
ndroid/graphics/FontFamily.java
ndroid/graphics/Typeface.java
24fac986ecad9a4c8b7ccdf545abebbfc0532678 20-Jan-2017 Siyamed Sinir <siyamed@google.com> Merge "Revert "Introduce set/getFontVariationSettings.""
a3b9f2e3c66ec485f3b712560d52e31632a9cbe8 20-Jan-2017 Siyamed Sinir <siyamed@google.com> Revert "Introduce set/getFontVariationSettings."

This reverts commit ba3028c1fc9fca2d45acc841557da2c9a83923bf.

Bug: 34378805
Change-Id: I8250c87af5d65fb45789632580be4ae1b8711372
ndroid/graphics/FontListParser.java
ndroid/graphics/Paint.java
ndroid/graphics/Typeface.java
03ab3520a84f82f3d85e1fa8d99510dfb800f575 18-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Color API to create/store wide-gamut colors in a long"
77b161e0b14372e3eb124ed19321a9639aeb4271 10-Jan-2017 Romain Guy <romainguy@google.com> Color API to create/store wide-gamut colors in a long

This change also includes the ability to create instances of
the Color class to represent more complex colors (any number
of components, etc.).

Test: CtsGraphicsTestCase
Bug: 32984164

Change-Id: I59399547c4aa2580901c93dd16e626fe07f8f23a
ndroid/graphics/Color.java
ndroid/graphics/ColorSpace.java
1f6df68a90c6aa02ed21e8ed2753f9d2488880c8 17-Jan-2017 Sergei Vasilinetc <sergeyv@google.com> Merge "Prohibit rendering hardware bitmaps in software mode."
6486d31dcbffb7179127a72ceefa11a1e726271f 10-Jan-2017 Robert Carr <racarr@google.com> Expose SurfaceControl method to screenshot to GraphicBuffer.

A graphic buffer is most useful, as we can both attach it
to starting windows, and directly use it in Sys-UI. The old
codepath for starting windows/saved surfaces, is co-existing
at the moment, so I don't make large attempts to clean up
the existing screenshot code.

Bug: 31339431
Test: Manual test in combination with other branches
Change-Id: I562fdd5460dbce3201ba090272e8731850780f20
ndroid/graphics/GraphicBuffer.java
ba3028c1fc9fca2d45acc841557da2c9a83923bf 30-Nov-2016 Seigo Nonaka <nona@google.com> Introduce set/getFontVariationSettings.

This CL enables developers to specify axis values to the underlying
font collection. The specification of the font variation settings is
the same as the CSS font-variation-settings attribute in CSS working
draft as of 2016-11-30.

Code example: Here is an example to set width 100 and weight 1.5.

TextView tv = (TextView) findViewById(R.id.textView);
tv.setFontVariationSettings("'wdth' 100, 'wght' 1.5");

Bug: 33062398
Test: Manually done. Ran FrameworksGraphicsTests, CtsGraphicsTestCases
and CtsWidgetTestCases
Change-Id: I249d464f8cdaa56017a987588b94ed685aadeb58
ndroid/graphics/FontListParser.java
ndroid/graphics/Paint.java
ndroid/graphics/Typeface.java
b3061e82ebfaefdbf33b35f78e5e87de7abd5591 06-Jan-2017 sergeyv <sergeyv@google.com> Prohibit rendering hardware bitmaps in software mode.

Test: CanvasTest#testHwBitmapShaderInSwCanvas1,
CanvasTest#testHwBitmapShaderInSwCanvas2
CanvasTest#testDrawHwBitmapInSwCanvas

bug:30999911
Change-Id: Ia8cf4578db160d52a4c56060beb66ed9a58f1eaa
ndroid/graphics/BaseCanvas.java
ndroid/graphics/ComposeShader.java
a0a4828614edfd633ab86f04408e7f4e55b491dd 07-Jan-2017 Seigo Nonaka <nona@google.com> Follow minikin::FontFamily constructor signature change.

minikin::FontFamily no longer has addFont function, instead it accept
vector of Fonts in its constructor. To follow this signature change,
holding minikin::Font instance in native and build minikin::FontFamily
instance in FontFamily.freeze() method.

Test: hwui test passed
Change-Id: Id10ca97f6f6f5bbe4999c1ad2736423a204d6e87
ndroid/graphics/FontFamily.java
ndroid/graphics/Typeface.java
c543713babea6bcb83401726f70a3f25344131fe 09-Jan-2017 Derek Sollenberger <djsollen@google.com> Merge "Remove clipRegion from the public API."
6e3658a63843096058ed444d073fbcd191fd7e1b 05-Jan-2017 sergeyv <sergeyv@google.com> Hidden method to get a graphic buffer from a hardware bitmap

Test: locally tested Bitmap.getGraphicBuffer()
bug:30999911
Change-Id: I68d56d769045bada6a5db90ed884a570c49be4fd
ndroid/graphics/Bitmap.java
0a0f23163a7a62900d46c7f81d109320d73d6c6b 04-Jan-2017 sergeyv <sergeyv@google.com> Move GraphicBuffer to graphics package

Test: locally tested Bitmap.createHardwareBitmap method
bug: 30999911
Change-Id: Iad432577f26f2362ede9e77cd8a5425c010692e5
ndroid/graphics/Bitmap.java
ndroid/graphics/GraphicBuffer.aidl
ndroid/graphics/GraphicBuffer.java
b29b16e5423fe7deab8ebf3da512c6d2192f19b5 04-Jan-2017 Derek Sollenberger <djsollen@google.com> Remove clipRegion from the public API.

This API is difficult to support for printing and has other negative
effects as it does not respect the current matrix/clip.

Test: compile
Bug: 14650725
Change-Id: I71f9bd687d446c7ce8910d755421aad8e09458db
ndroid/graphics/Canvas.java
980bead518fc5ddb52ae8d00258f91b087c1f91a 29-Dec-2016 sergeyv <sergeyv@google.com> Prohibit copyPixelsToBuffer & copyPixelsFromBuffer

Test: BitmapTest#testHardwareCopyPixels(From|To)Buffer
bug:30999911
Change-Id: I3bfa2846bff574bc0bfd54674eac794d1a6a0ff9
ndroid/graphics/Bitmap.java
81f97ee47ccf0d011cdc4f38b6ea5c45b70dedc0 28-Dec-2016 sergeyv <sergeyv@google.com> HardwareBitmaps: support createBitmap methods that return immutable bitmap

Test: testCreateScaledBitmap, testCreateTransformedBitmap, testCreateSubsetBitmap in HardwareBitmapTests
bug:30999911
Change-Id: Ic128dfed78b18ad6f12dad50023ee7c2f5bfa4ad
ndroid/graphics/Bitmap.java
99418fb205ad710a23107e950dc30c6487c531e2 20-Dec-2016 Sergei Vasilinetc <sergeyv@google.com> Merge "Throw exception if getPixel(s) is called on a hardware bitmap"
30297303993f664228163f85a6ea0e434094867e 20-Dec-2016 Sergei Vasilinetc <sergeyv@google.com> Merge "Add docs about Config.HARDWARE in Bitmap.writeToParcel method"
b9277312849f7c8abcfde4da3f48b9aa23e330ec 19-Dec-2016 Mark Lu <marklu@google.com> docs: update Paint.setTextSize() to indicate pixel units am: 5f05256106 am: 9c834b1241 am: 4da3266828
am: 84f12cd33e

Change-Id: I463334d7c43cb934848e10eb3040f4a898f6ed2c
84f12cd33e1c3959dd6f760525f48f711b44e78d 19-Dec-2016 Mark Lu <marklu@google.com> docs: update Paint.setTextSize() to indicate pixel units am: 5f05256106 am: 9c834b1241
am: 4da3266828

Change-Id: I65e2a1c43bd049e5c4cada55e8689ecc98a70fa5
57eafc6f90a1ce2dd97079dd82b4b2f8dcd9e00f 19-Dec-2016 sergeyv <sergeyv@google.com> Throw exception if getPixel(s) is called on a hardware bitmap

Test: android.graphics.cts.BitmapTest#testHardwareGetPixel
bug:30999911
Change-Id: Ifa5a80d048c44c91122e9e7c79ca3ef9ecab963e
ndroid/graphics/Bitmap.java
f161dce70eab5ba1011bd26226c14e31675d5955 15-Dec-2016 sergeyv <sergeyv@google.com> Add docs about Config.HARDWARE in Bitmap.writeToParcel method

Test: android.graphics.cts.BitmapTest#testWriteHwBitmapToParcel
bug:30999911
Change-Id: I5282df7d881d76f3e78979a2e5d3777f78673a5d
ndroid/graphics/Bitmap.java
8b6fe1d8948bbd6479387ab1015a306022b55db4 19-Dec-2016 Sergei Vasilinetc <sergeyv@google.com> Merge "Support Bitmap.copy for hardware bitmaps"
cab02c5b3afa7169b8bdd21496da5fbe54458f18 19-Dec-2016 Mark Lu <marklu@google.com> docs: update description for BitmapFactory.Options#inBitmap am: a8f4286272 am: 58d24b22ed am: 2b77de3a44
am: f34e9fc48d

Change-Id: I856c71a7b0dd930ecc0b5cc8805060a65a197324
5f052561063597043938d69064872a209ace8ffa 16-Dec-2016 Mark Lu <marklu@google.com> docs: update Paint.setTextSize() to indicate pixel units

bug: 2321154
Change-Id: Ic71404677a8079c744b99d4848d69c6ff52089ab
ndroid/graphics/Paint.java
2b77de3a445dba1e49ffa5cb7ad3f10c5cf22d6c 17-Dec-2016 Mark Lu <marklu@google.com> docs: update description for BitmapFactory.Options#inBitmap am: a8f4286272
am: 58d24b22ed

Change-Id: I8e3a23304924623e2379155dcc7df1f739a5b7f0
05126d151eb3caa85bd3a039cffb6e37940c3fa4 16-Dec-2016 sergeyv <sergeyv@google.com> Support Bitmap.copy for hardware bitmaps

Test: android.uirendering.cts.testclasses.HardwareBitmapTests#testBitmapConfig*
bug:30999911
Change-Id: I2e80dff914bfa0666290701072ac93d30d218e8d
ndroid/graphics/Bitmap.java
a8f428627253f1060db1a0c7ff4bd3bb6c687fd2 17-Dec-2016 Mark Lu <marklu@google.com> docs: update description for BitmapFactory.Options#inBitmap

bug: 18730109
Change-Id: Iab062d41af3a32208d3500179d3737278a035188
ndroid/graphics/BitmapFactory.java
f7e79d6eb3729b0555d1c88054f80467fc6c5303 16-Dec-2016 Romain Guy <romainguy@google.com> Remove RGBX_FP16 format

Bug: 32984164
Test: compile
Change-Id: I22ffe0991d3c4add68317a0554dcac6a7ac56d12
ndroid/graphics/PixelFormat.java
9505a6552764461c22ce48f1ac13d025d23e1579 14-Dec-2016 Romain Guy <romainguy@google.com> Add new RGBA_F16 bitmap config

This configuration uses 64 bits per pixel. Heach component is stored as a
half precision float value (16 bits). Half floats can be decoded/encoded
using android.util.Half.

RGBA_F16 bitmaps are used to decode wide-gamut images stored in 16 bit
formats (PNG 16 bit for instance). aapt is currently not aware of PNG
16 bits so such files must be placed in raw/ resource directories.

This first pass provides only partial drawing support with hardware
acceleration. RGBA_F16 bitmaps are stored in linear space and need
to be encoded to gamma space with the appropriate OETF to be rendered
properly on Android's current surfaces. They are however suitable for
linear blending. Full rendering support will be provided in a future
CL (BitmapShaders might be a bit tricky to handle properly during
shader generation).

Bug: 32984164
Test: bit CtsGraphicsTestCases:android.graphics.cts.BitmapRGBAF16Test

Change-Id: I328e6b567441a1b9d152a3e7be944a2cf63193bd
ndroid/graphics/Bitmap.java
ndroid/graphics/ColorSpace.java
ndroid/graphics/PixelFormat.java
15589c36d7ca999b0870aba2ffec11f8651d1ee0 14-Dec-2016 Chris Craik <ccraik@google.com> Merge "Outline & Path perf improvements"
82f8f3e04eca0bd56cfdaae5250ba9576ef199f5 14-Dec-2016 Sergei Vasilinetc <sergeyv@google.com> Merge "Prohibit Config.HARDWARE in factory methods, that create mutable bitmaps"
2414e1b051326745e087a88cdfbf1fff8962edd3 12-Dec-2016 Chris Craik <ccraik@google.com> Outline & Path perf improvements

Bug: 33460152
Test: device boots, ViewShowHidePerfTests#add[Factory:NestedLinearLayoutTree,depth:6] 770us -> 650us (userdebug 960MHz bullhead)

Improve perf for outline & simple path methods

native_methodName -> nMethodName in Path.java

Change-Id: Id2374bbaca3256d2e4f19dae9abe67f794a171b3
ndroid/graphics/Outline.java
ndroid/graphics/Path.java
9fbb0b5ab321d86efbc7fa8774052bfb34de9557 23-Nov-2016 sergeyv <sergeyv@google.com> Prohibit Config.HARDWARE in factory methods, that create mutable bitmaps

Test: android.cts.graphics.BitmapTest#testCreateMutableBitmapWithHardwareConfig
bug:30999911
Change-Id: I7cd4e2625563b6659613ccd180a57c56dcf7c2b1
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
ndroid/graphics/BitmapRegionDecoder.java
dcc3630100b406e4e6cb18f00d39059690153292 09-Dec-2016 Derek Sollenberger <djsollen@google.com> Remove Rasterizer and its subclasses from the public API.

Test: compile
Bug: 14650725
Change-Id: I99e1942d4d1b85f4efdcb3faf3fee1aa6c839b7e
ndroid/graphics/LayerRasterizer.java
ndroid/graphics/Paint.java
ndroid/graphics/Rasterizer.java
0221d16cf4708c4207ae6d56b0a735b02ae68f97 02-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Allow only U+0020..U+007E characters for axis tag."
0ec4f416ffbcbfb30fb61fb5bae2fe1c1cde8042 02-Dec-2016 Seigo Nonaka <nona@google.com> Allow only U+0020..U+007E characters for axis tag.

CSS Font4 only allows U+0020..U+007E characters for tag string.
Reject outside of this range.

Bug: 33062398
Test: am instrument -w -e class android.graphics.VariationParserTest \
com.android.frameworks.graphicstests/android.test.InstrumentationTestRunner
Change-Id: Ia119151bc67caebfdaacda17aa3ee261a9e5d872
ndroid/graphics/FontListParser.java
14efe881d43d8916c42ef53940aa6e47c3a94e74 14-Nov-2016 Teng-Hui Zhu <ztenghui@google.com> Update the documentation related to VD / AVD

fix:32705240
fix:32683765
fix:32831830
fix:32705244

Test: make offline-sdk-docs and view the HTML file.
Merged-In: I6ae3e5850494f13a241b2e9e4d2c5b95d5199aae

Change-Id: I6ae3e5850494f13a241b2e9e4d2c5b95d5199aae
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
f81df2d5e52e50fe7197135baf5cabcabdba4628 01-Dec-2016 Amith Yamasani <yamasani@google.com> Merge "Secure MATCH_UNINSTALLED_PACKAGES across users"
b059a0826d8769ed5c5fc5e40220289b28d709af 01-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add API to visualize/debug/compare color spaces and colors"
0d1fd8d09163566d2c7eb72037f63b6404ada642 12-Oct-2016 Amith Yamasani <yamasani@google.com> Secure MATCH_UNINSTALLED_PACKAGES across users

Introduce a new internal flag MATCH_ANY_USER for genuine uses
of searching through all apps on the device.

Some temporary accommodations for Launchers that reach across
to the work profile until we have a new LauncherApps API to do
that officially.

Bug: 31000380
Test: CTS tests added
Change-Id: I2e43dc49d6c2e11814a8f8d1eb07ef557f31af34
ndroid/graphics/drawable/Icon.java
15296a2d3478f53402e2d98f49724bb791eb339d 30-Nov-2016 Romain Guy <romainguy@google.com> Add API to visualize/debug/compare color spaces and colors

ColorSpace.createRenderer() returns a ColorSpace.Renderer which
can be used to visualize multiple color spaces and colors (each
associated with a specific color space) in the same CIE 1931 xyY
chromaticity diagram. This API was used to generate all the
diagrams shown in the documentation.

Bug: 32984164
Test: ColorSpaceTest in CTS
Change-Id: Ic94d939d5cfd563d826701f5e876b67b47ed56ec
ndroid/graphics/ColorSpace.java
e4b016ec41bf5a11abe2adc8c55c82cf22f4da8b 30-Nov-2016 Yirui Huang <yirui@google.com> Merge "Introduce font variation settings parser"
df68c9119ca11f25fb839403c41d7d6b2932beeb 29-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Make LD stateful / opacity management look more like DC"
3002ab6729237dd608a8640794c52960b3ec54d0 24-Nov-2016 yirui <yirui@google.com> Introduce font variation settings parser

Font variation settings enables developer to specify font axes for
configuring glyph looking. This CL parse Font Variation settings to
make a array of Axis. More work is needed for using parsed axes.

Bug: 33062398
Test: Done by unittests.
Change-Id: I529b98b28df1c738237bee0729d9f479bd656dd3
ndroid/graphics/FontListParser.java
b6504180ec858ab34c8d46f45684d2b2fce692da 29-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add images to document built-in color spaces"
199e5a98ddc4402ba4b4cdafaa3d8deb58ef3c7d 29-Nov-2016 Romain Guy <romainguy@google.com> Add images to document built-in color spaces

Bug: 32984164
Test: make offline-sdk-referenceonly-docs and manual validation of output

Change-Id: I2f0e00e5a0581517bb7c535e8aee150f87ac7a6e
ndroid/graphics/ColorSpace.java
eb7277590a2c2bdd64534da4c822a69440df32df 28-Nov-2016 Alan Viverette <alanv@google.com> Make LD stateful / opacity management look more like DC

Some initial cleanup before making changes to either class.

Test: n/a, refactoring only
Bug: 33124798
Change-Id: Idf0328bcc6de72b694ca7b35122ecad845cf1c4b
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
ab3225d7425b9dabc8b2508fd7c2cec4f868c793 24-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Introduce android.graphics.ColorSpace"
68bd5fdd1ad3cf0b74c225b31adf1f68393bfbb6 15-Nov-2016 Romain Guy <romainguy@google.com> Introduce android.graphics.ColorSpace

This class can be used to define color spaces. A color space has a color model
and a profile connection space (CIE XYZ D50). This implementation can be used
to query various properties of RGB color spaces or perform conversions between
various color spaces (RGB, XYZ and Lab).

Refer to the documentation for more details.

Test: cts-tradefed run singleCommand cts-dev --module CtsGraphicsTestCases --test android.graphics.cts.ColorSpaceTest
Bug: 32984164
Change-Id: Ie2117c1212c1375a7d403d3c1afaf73d7c2e0b47
ndroid/graphics/Color.java
ndroid/graphics/ColorSpace.java
da6c8ffcc594493c3936f83255efccdbf964cd21 23-Nov-2016 sergeyv <sergeyv@google.com> Introduce Bitmap.Config.Hardware with @hide annotation

Test: HardwareBitmapTests
bug:30999911
Change-Id: Iaa0e18842704cb6bcd483c63a095dcb22baaf5e0
ndroid/graphics/Bitmap.java
583727a3456119b14ce0125b9bab87a035855679 21-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update the documentation related to VD / AVD"
1a625911a22a5b4a0e42bb21c2dbf4c8df16e77a 17-Nov-2016 Seigo Nonaka <nona@google.com> Merge "Add wordSpacing parameter to Paint"
18ad5f43685489e0086dce74f2bfcca9ba39daa3 14-Nov-2016 Teng-Hui Zhu <ztenghui@google.com> Update the documentation related to VD / AVD

fix:32705240
fix:32683765
fix:32831830
fix:32705244

Test: make offline-sdk-docs and view the HTML file.

Change-Id: I6ae3e5850494f13a241b2e9e4d2c5b95d5199aae
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
219e2c79490296b03e58ec36a3a4ff4a2ebf52e3 15-Nov-2016 Seigo Nonaka <nona@google.com> Add wordSpacing parameter to Paint

Adds the ability to control word spacing from Java, wiring up the
plumbing to the corresponding change that adds it at the Minikin
level.

Bug: 31707212
Test: ran graphicstests
Change-Id: I568186aca961d51ee5231cb0331f882b7b005e90
ndroid/graphics/Paint.java
3bdecbf0fd2d4b6137477094e1ea96502c353248 14-Nov-2016 John Reck <jreck@google.com> return 0 for allocation size if recycled

Change-Id: Ic471701faf026411938ebe87131533a8ef09bbd7
Fixes: 19804653
Test: none
ndroid/graphics/Bitmap.java
9192d5e8d78b826a665ce048c007e6eaf0f5b003 31-Oct-2016 John Reck <jreck@google.com> Remove unused method

Test: builds

Change-Id: I8ad660f083a57f30db5ed0e2fe777286720033ca
ndroid/graphics/Bitmap.java
1ece145e018a7e66d3f422e647d3f6cb1887dca5 20-Oct-2016 John Reck <jreck@google.com> Re-order draw methods to make update-api happy

update-api orders methods alhabetically by name, but when
there's multiple methods with the same name it falls back to
the ordering within the file.

Re-order the methods in canvas.java to match what's already in
current.txt to avoid unnecessary changes.

Also auto-formatted the draw methods as some were mis-indented.

Test: No behavior change, just method re-ordering
Change-Id: I2a7d313c8e7a6bd9187c4ed7dbde944b88aa32bb
ndroid/graphics/Canvas.java
caa08ff5e9ee004634a95776fc72bb769f1286de 07-Oct-2016 John Reck <jreck@google.com> The bigger update to Canvas

All draw* calls in Canvas are regular JNI
All draw* calls in DisplayListCanvas are FastNative
Unifies Canvas JNI on nMethodName naming

CanvasPerf results before:
INSTRUMENTATION_STATUS: basicViewGroupDraw_min=12492
INSTRUMENTATION_STATUS: recordSimpleBitmapView_min=13912

and after:
INSTRUMENTATION_STATUS: basicViewGroupDraw_min=11945
INSTRUMENTATION_STATUS: recordSimpleBitmapView_min=13318

Test: refactor, makes & boots
Change-Id: I06000df1d125e17d60c6498865be7a7638a4a13e
ndroid/graphics/BaseCanvas.java
ndroid/graphics/Bitmap.java
ndroid/graphics/Canvas.java
ndroid/graphics/Matrix.java
ndroid/graphics/Path.java
1158b6d4ee34707515d5af59a13e4999ba53563e 12-Oct-2016 Romain Guy <romainguy@google.com> layoutlib relies on refSkPixelRef(), put it back

Test: Build aosp_arm64-eng successfully
Change-Id: Ic00cacac9aa1006ec16060a95bd1a22133e9a4bd
ndroid/graphics/Bitmap.java
253f2c213f6ecda63b6872aee77bd30d5ec07c82 29-Sep-2016 Romain Guy <romainguy@google.com> Linear blending, step 1

NOTE: Linear blending is currently disabled in this CL as the
feature is still a work in progress

Android currently performs all blending (any kind of linear math
on colors really) on gamma-encoded colors. Since Android assumes
that the default color space is sRGB, all bitmaps and colors
are encoded with the sRGB Opto-Electronic Conversion Function
(OECF, which can be approximated with a power function). Since
the power curve is not linear, our linear math is incorrect.
The result is that we generate colors that tend to be too dark;
this affects blending but also anti-aliasing, gradients, blurs,
etc.

The solution is to convert gamma-encoded colors back to linear
space before doing any math on them, using the sRGB Electo-Optical
Conversion Function (EOCF). This is achieved in different
ways in different parts of the pipeline:

- Using hardware conversions when sampling from OpenGL textures
or writing into OpenGL frame buffers
- Using software conversion functions, to translate app-supplied
colors to and from sRGB
- Using Skia's color spaces

Any type of processing on colors must roughly ollow these steps:

[sRGB input]->EOCF->[linear data]->[processing]->OECF->[sRGB output]

For the sRGB color space, the conversion functions are defined as
follows:

OECF(linear) :=
linear <= 0.0031308 ? linear * 12.92 : (pow(linear, 1/2.4) * 1.055) - 0.055

EOCF(srgb) :=
srgb <= 0.04045 ? srgb / 12.92 : pow((srgb + 0.055) / 1.055, 2.4)

The EOCF is simply the reciprocal of the OECF.
While it is highly recommended to use the exact sRGB conversion
functions everywhere possible, it is sometimes useful or beneficial
to rely on approximations:

- pow(x,2.2) and pow(x,1/2.2)
- x^2 and sqrt(x)

The latter is particularly useful in fragment shaders (for instance
to apply dithering in sRGB space), especially if the sqrt() can be
replaced with an inversesqrt().

Here is a fairly exhaustive list of modifications implemented
in this CL:

- Set TARGET_ENABLE_LINEAR_BLENDING := false in BoardConfig.mk
to disable linear blending. This is only for GLES 2.0 GPUs
with no hardware sRGB support. This flag is currently assumed
to be false (see note above)
- sRGB writes are disabled when entering a functor (WebView).
This will need to be fixed at some point
- Skia bitmaps are created with the sRGB color space
- Bitmaps using a 565 config are expanded to 888
- Linear blending is disabled when entering a functor
- External textures are not properly sampled (see below)
- Gradients are interpolated in linear space
- Texture-based dithering was replaced with analytical dithering
- Dithering is done in the quantization color space, which is
why we must do EOCF(OECF(color)+dither)
- Text is now gamma corrected differently depending on the luminance
of the source pixel. The asumption is that a bright pixel will be
blended on a dark background and the other way around. The source
alpha is gamma corrected to thicken dark on bright and thin
bright on dark to match the intended design of fonts. This also
matches the behavior of popular design/drawing applications
- Removed the asset atlas. It did not contain anything useful and
could not be sampled in sRGB without a yet-to-be-defined GL
extension
- The last column of color matrices is converted to linear space
because its value are added to linear colors

Missing features:
- Resource qualifier?
- Regeneration of goldeng images for automated tests
- Handle alpha8/grey8 properly
- Disable sRGB write for layers with external textures

Test: Manual testing while work in progress
Bug: 29940137

Change-Id: I6a07b15ab49b554377cd33a36b6d9971a15e9a0b
ndroid/graphics/Atlas.java
ndroid/graphics/Bitmap.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/DrawableWrapper.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
5cb74bca88268a8b9025be2cce81e1b4f967d19d 07-Oct-2016 John Reck <jreck@google.com> Canvas fastjni -> @FastNative

Just the basic cleanup first, will follow-up with a more
comprehensive update later
Test: builds & boots, refactor no behavior change

Change-Id: Ie3a7144b5fefdfda085e2ab50da8b0e627a1ecb8
ndroid/graphics/Canvas.java
39a561f5bbea2ed8461bc7e2779c087765e48841 10-Oct-2016 Alan Viverette <alanv@google.com> Scale bitmap shaders for target density am: 0d2a46b733 am: 444f2043d1
am: 36d83ffc5b

Change-Id: I97a23b431247f4541f5517787a486aca7d95a618
444f2043d1923a89e41553d6ba860cf275d44006 07-Oct-2016 Alan Viverette <alanv@google.com> Scale bitmap shaders for target density
am: 0d2a46b733

Change-Id: I8e3274a9c6047d943336827e7e0c8563e40c2ca5
0f6cec369ff456b203c70f3a56662d2b8fa7aa98 07-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Scale bitmap shaders for target density" into nyc-mr1-dev
0d2a46b7336b6d255f202b878003be59ecbae52b 07-Oct-2016 Alan Viverette <alanv@google.com> Scale bitmap shaders for target density

Also fixes progress bar sample tile to reflect density and ensures
that ProgressBar.tileify() clones inner drawables into the correct
density.

Bug: 31841123
Test: BitmapDrawableTest#testPreloadDensity()
Test: ThemeHostTest
Test: Visual inspection of ApiDemos
Change-Id: I9dcb9817d8d91d61ff0215987247e9e7fb089c46
ndroid/graphics/drawable/BitmapDrawable.java
299659ddb7e0c34ca094abe485bcd0989727fc07 07-Oct-2016 John Reck <jreck@google.com> Convert VD/AVD to FastNative

Test: build & boots
Change-Id: I6519ba245eca1a43fb00de36c91a05a9740c8c5f
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
0b6849133acd742ec465846709444108ac6a92b5 07-Oct-2016 Doris Liu <tianliu@google.com> Restrict AVD and VD parsing to the current element instead of the whole document am: 1f859716a8 am: 897f5ca748
am: 43104389f9

Change-Id: I1730b80585c5d5064fda8ec4d598a95651d7c3eb
a08b1a37a56f2c2208cf1e939764ab9863182ffb 07-Oct-2016 Teng-Hui Zhu <ztenghui@google.com> Update JavaDoc about animatable on VectorDrawable am: bb12929470 am: 8bf7fd89e7
am: a504e12e25

Change-Id: I8b97f242a22e763e23169b9cb55d87afd2a6f471
897f5ca748eb68287e25d8f259fdff05a9d8f224 06-Oct-2016 Doris Liu <tianliu@google.com> Restrict AVD and VD parsing to the current element instead of the whole document
am: 1f859716a8

Change-Id: Ic2fe385089997f89675be8f8a1559db979387dbb
8bf7fd89e7e7b85523b20c6f4bbbf5286339567e 06-Oct-2016 Teng-Hui Zhu <ztenghui@google.com> Update JavaDoc about animatable on VectorDrawable
am: bb12929470

Change-Id: I476d1416b0f734fbc87895c22de3e95efdbf25b9
8d4c87b0bfaca8c2d668cbcd5524edc1d2ef75b0 04-Oct-2016 Doris Liu <tianliu@google.com> Merge "Restrict AVD and VD parsing to the current element instead of the whole document" into nyc-mr1-dev
99224b311c1f4acad2ce9347703213a9d711d402 04-Oct-2016 Tenghui Zhu <ztenghui@google.com> Merge "Update JavaDoc about animatable on VectorDrawable" into nyc-mr1-dev
1f859716a8e4b8c12d69ca8b3db8344de577d5c7 03-Oct-2016 Doris Liu <tianliu@google.com> Restrict AVD and VD parsing to the current element instead of the whole document

This CL changes the AVD xml parsing to parsing only within the current
element, which prevents AVD parsing from always skipping to the end of
the doucment. So things that are defined after AVD in the same document
can be picked up by the xml parser.

The same fix has been applied to VD as well.

BUG: 31865175
Test: Manually following comment #1 in the bug above

Change-Id: I4ebdce1eb2e92d6f6e2c37caed9607253d24602f
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
f03f8e59b08026fe689f83638ad4175fa1ed8c64 03-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Paint conversion to @FastNative/@CriticalNative"
170219c5d84ab2ab7773e5e85e0ed7d0f76cb262 03-Oct-2016 John Reck <jreck@google.com> Merge "Matrix JNI update"
f22859757b7981cdb3e05579bbb5f782965b5ca9 30-Sep-2016 John Reck <jreck@google.com> Paint conversion to @FastNative/@CriticalNative

Test: Refactor, device still boots

Change-Id: Ibf106607070860958c4317d6013d14ecf236f35a
ndroid/graphics/Paint.java
c5d6e74dff81b71291c01e0c62422b7c2162dc39 01-Oct-2016 Hemal Patel <hemalp@google.com> Docs: Added info about vector drawable am: 47876e79de am: f1f89fa935
am: d0cff7a3af

Change-Id: If20b595f5b278c81afd0f3b263566ea11ad4a67f
7ef8dbed50fe98763c0ccd616354e1f4c9181502 30-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Make bitmap backed by native memory instead of java byte array Test: refactoring CL. Existing unit tests still pass. bug:27762775"
4508218850faedea95371188da587b6734f5f3da 30-Sep-2016 sergeyv <sergeyv@google.com> Make bitmap backed by native memory instead of java byte array
Test: refactoring CL. Existing unit tests still pass.
bug:27762775

Change-Id: Ic4e914b3a941c3d545f8ce9e320e638973df0e91
ndroid/graphics/Bitmap.java
d0cff7a3af437f9b8744820a6db486a2a909d4b1 30-Sep-2016 Hemal Patel <hemalp@google.com> Docs: Added info about vector drawable am: 47876e79de
am: f1f89fa935

Change-Id: Iadc8240aab4fce954fd0813f6817d6313ed094e7
da400e9dd44d002bc7cdc2d97eedeaf3ff30ba33 30-Sep-2016 Hemal Patel <hemalp@google.com> Docs: Added info about vector drawable am: 47876e79de
am: bfa9663e97

Change-Id: I5649e6f9f0e6254d43e7229ef3e88b40351b14e5
f1f89fa935510483baf16038b6aeb6786fc1d9d2 30-Sep-2016 Hemal Patel <hemalp@google.com> Docs: Added info about vector drawable
am: 47876e79de

Change-Id: I9fcc130c50302885397e80411858ed2ca4994db5
bfa9663e97e0e13c52264e884efc32c75338c64b 30-Sep-2016 Hemal Patel <hemalp@google.com> Docs: Added info about vector drawable
am: 47876e79de

Change-Id: I73d39d61210064e9de4ec212fac51a43e7a791ae
47876e79de8c4a05b054a12fc2045910326788cd 16-Sep-2016 Hemal Patel <hemalp@google.com> Docs: Added info about vector drawable

Added overview of vector drawable in the class overview section.

Bug: 25129687
Change-Id: I976177ddd3a8bddcbc6544cbc227b6b2099c7b0a
ndroid/graphics/drawable/Drawable.java
94931bd87e27e766167cf005788b148af49f6ac2 29-Sep-2016 John Reck <jreck@google.com> Matrix JNI update

Switches to @FastNative & @CriticalNative
Switches to NativeAllocationRegistry
Updated formatting
Changes native_* to n* naming for native methods

Test: refactor CL, no behavior change; device still boots

Change-Id: Ic3b115b7aef26811bf8fef3777c131778608da30
ndroid/graphics/Matrix.java
bb129294700d7c31a3793717efe14b06a7bd2305 28-Sep-2016 Teng-Hui Zhu <ztenghui@google.com> Update JavaDoc about animatable on VectorDrawable

b/31782834

Change-Id: I64279fd14841302caaa71c817feaf01b855126ad
ndroid/graphics/drawable/VectorDrawable.java
6c12392f17424a773177f4a3045c837529d71b23 23-Sep-2016 John Reck <jreck@google.com> Expose SurfaceTexture(boolean) constructor

Fixes: 31709954
Test: 'cts-tradefed run singleCommand cts-dev --module CtsUiRenderingTestCases --test android.uirendering.cts.testclasses.TextureViewTests' passes

Change-Id: I358ae97aa90b27ee5757271d83c8a5b96a31a3f0
ndroid/graphics/SurfaceTexture.java
edc684940dad31a36c3baad4f08608a2325459e3 21-Sep-2016 Doris Liu <tianliu@google.com> Improve Javadoc for AnimatedVectorDrawable am: 7d76fc4433 am: f6088e45e0
am: ab4f8f2f1d

Change-Id: I0b2eaa0f435f5bfe42be94d5ef796306fe3e0a1c
7d76fc4433e0eedf10b0a87860565ddc93e8ef2e 17-Sep-2016 Doris Liu <tianliu@google.com> Improve Javadoc for AnimatedVectorDrawable

This CL adds a summary of what developers can expect from running
AVD on RenderThread.

Also re-structure the class level Javadoc summary to better organize
the examples.

Test: make offline-sdk-docs

BUG: 30402908
Change-Id: I7111f67db5f2ec352730f633bb34f2e89e1c70e9
ndroid/graphics/drawable/AnimatedVectorDrawable.java
6d256ad02180f3cab65ac21f88476e8d709b45be 20-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fast-path Drawable#setColorFilter"
6d8eb89da0da87b1af9c9b54b3436744dff2ceda 19-Sep-2016 John Reck <jreck@google.com> Fast-path Drawable#setColorFilter

Some apps really like to call setColorFilter with the
same parameters, so check if there's anything to set
before creating a color filter

Change-Id: I20b8431123f9e6a333b69771b5f5f3eb7e566034
ndroid/graphics/drawable/Drawable.java
5d31a293ad0a832c7b8b445c1a67fb1800e5da32 15-Sep-2016 John Reck <jreck@google.com> Cleanup Xfermode

We only support PorterDuff Xfermodes

Removes some unneeded JNI and finalizers()

Change-Id: I4988d6b05c6fd113a8ed8f7dcbf95abe0de95060
ndroid/graphics/ComposeShader.java
ndroid/graphics/Paint.java
ndroid/graphics/PorterDuffXfermode.java
ndroid/graphics/Xfermode.java
491bc2b8d6817386c75d5628d09ac406de1d92d3 09-Aug-2016 Dianne Hackborn <hackbod@google.com> Cherrypick so we can publish N version code description ASAP

Fix issue #30766518: Document what targeting N does

Also small documentation cleanup in a few other places.

(cherry picked from commit b34cbedb4e36f184232d7f40b093bdc9fd0cd752)

Change-Id: I9560b29faa4f2674277349272af8193122a1f95e
ndroid/graphics/drawable/AnimatedVectorDrawable.java
b5c30800e55dd2aaf9ac4d6864918138082ae735 08-Sep-2016 John Reck <jreck@google.com> Merge "Add API to copy a window"
9580146f5076aaa7c498f86bd3d724c00599f6f4 01-Sep-2016 John Reck <jreck@google.com> Add API to copy a window

Change-Id: I9bb5209010db6665be4b6f8db81a6fc1b7debc45
ndroid/view/PixelCopy.java
f5af4a344e086efa87740a0154cace064465fe54 31-Aug-2016 Keisuke Kuroyanagi <ksk@google.com> Always redraw text that protrude from line bounds.

With I63af3a6ecbf92, we create RenderNode lazily, but
blocks containing contents that protrude from line top or
bottom cannot be simply lazily redrawn after edit or
scroll.
With this CL, we check if the contents protrude from line
top or bottom by comparing the text bounds with relevant
font metrics values and we always redrawn such blocks after
edit or scroll.

Bug: 27889485
Change-Id: I666da5eeb39f780c341597f347bfcba21eb34295
ndroid/graphics/Paint.java
1209bc144b637033602e9d9b0d30f27b26dbc892 31-Aug-2016 Pablo Ceballos <pceballos@google.com> Fail createVirtualDisplay with single-buffered Surface am: aff2f94939 am: d387b20dcb
am: 658f26634f

Change-Id: I499988d911ffd5ccd4b5bc10c75f3e0ed9a897c8
d387b20dcbd298794da8c4ad8f36e31d7e10c402 29-Aug-2016 Pablo Ceballos <pceballos@google.com> Fail createVirtualDisplay with single-buffered Surface
am: aff2f94939

Change-Id: I5cfcbd0352240d7ac2a9bb0804896cae5396450e
23784fd6d9845aac096a6df74b446e813128425f 29-Aug-2016 Pablo Ceballos <pceballos@google.com> Merge "Fail createVirtualDisplay with single-buffered Surface" into nyc-mr1-dev
ce3338ea36c80a0e28dc6c893482a09e394db0a9 29-Aug-2016 Kirill Grouchnikov <kirillg@google.com> Merge "Fix typo in PathMeasure javadocs"
6a03c39e0ae5063818bc8b38c61f72675da5b40d 29-Aug-2016 Kirill Grouchnikov <kirillg@google.com> Fix typo in PathMeasure javadocs

Change-Id: I7c637d791c7ca9b4b1d982602a6cd108385ca905
ndroid/graphics/PathMeasure.java
2851c2905ddeef6308279c0239a1e7c0dc5f2531 26-Aug-2016 Alan Viverette <alanv@google.com> Ensure the layer drawable callback is set when loading from theme am: 11a84b8429 am: 3deb906397
am: caf68d0355

Change-Id: I2a61c5412cedce03612047aacce852451d16710e
cdfd0c8960ed84b0b3f6bf4951e1504db09d1efe 26-Aug-2016 Alan Viverette <alanv@google.com> Improve docs for GradientDrawable's useLevel and centerX/Y properties am: daec5506c4 am: cc914b6b0b
am: 35a7e106ef

Change-Id: I1357fcc227c48259e15eef74e67d86f21fcec163
c5d2192f14653003f1306fe7aaa7a2133531e0da 26-Aug-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Various doc cleanups"
8b9ed44f8d559be2590b25cb4b72d2aefd3b3784 26-Aug-2016 Chet Haase <chet@google.com> Various doc cleanups

Issue #6439958 More R.attr breakage
Issue #918412 android.graphics.Paint.FontMetricsInt fields & methods need doc
Issue #917387 javadoc bug: Canvas.EdgeType has minimal documentation
Issue #18948460 [DAC-bug] LinearLayout xml layout_weight parameter is missing description

Change-Id: Idb289ca778b3f316923757405460031ce7a5e1e9
ndroid/graphics/Canvas.java
ndroid/graphics/Paint.java
2b769c4ddef454651206fe4ecbec241d66eb4462 26-Aug-2016 Teng-Hui Zhu <ztenghui@google.com> Add an new internal DrawableContainer to handle animation scale == 0 case. am: 0c03664fa6 am: 0bc9fa9896
am: ab2ed1a4e7

Change-Id: I2de378da33ca93639c03544c8702e17eaefee514
aff2f949395725f4bb82802bd12201b65d514e68 29-Jul-2016 Pablo Ceballos <pceballos@google.com> Fail createVirtualDisplay with single-buffered Surface

Bug 30106031

Change-Id: I434df329eb3c162dd9ef01245ac5e0da97216e70
ndroid/graphics/SurfaceTexture.java
3deb906397c0ea64f3c479a7cae31aa06d5c95c5 24-Aug-2016 Alan Viverette <alanv@google.com> Ensure the layer drawable callback is set when loading from theme
am: 11a84b8429

Change-Id: Ia6994252d09b6cc008847cd0e084949ada7b2ab2
cc914b6b0bb5607cfe9493d56cac9f164889b3db 24-Aug-2016 Alan Viverette <alanv@google.com> Improve docs for GradientDrawable's useLevel and centerX/Y properties
am: daec5506c4

Change-Id: If6c4b531a17abbed1a06478ec263bc89242638b3
709f0f3e15ec8c68fee245421e46f75d5f15dfba 24-Aug-2016 Alan Viverette <alanv@google.com> Merge "Ensure the layer drawable callback is set when loading from theme" into nyc-mr1-dev
20109a689df84331e1c3bfdb51819f7f17961ccc 24-Aug-2016 Alan Viverette <alanv@google.com> Merge "Improve docs for GradientDrawable's useLevel and centerX/Y properties" into nyc-mr1-dev
11a84b8429c2cf395b99c852d232a490ba1c9975 24-Aug-2016 Alan Viverette <alanv@google.com> Ensure the layer drawable callback is set when loading from theme

Previously we would skip setting the changing configurations and callback
if the drawable had been loaded post-inflation from a theme attribute.

Bug: 30756548
Change-Id: Ia5457723ae8a62506a7562299d3fe78ec21f8030
ndroid/graphics/drawable/LayerDrawable.java
0bc9fa98967eaab7aa2e387a85391c8ee341358c 24-Aug-2016 Teng-Hui Zhu <ztenghui@google.com> Add an new internal DrawableContainer to handle animation scale == 0 case.
am: 0c03664fa6

Change-Id: I7feae01c6302e2942087c6dfe1948109467f1326
3512b0001ac9ecf106682a3a07d8e6d64bfcbd96 24-Aug-2016 Tenghui Zhu <ztenghui@google.com> Merge "Add an new internal DrawableContainer to handle animation scale == 0 case." into nyc-mr1-dev
0c03664fa6acbe5c3fd11d54ab9a6792f43dda07 19-Aug-2016 Teng-Hui Zhu <ztenghui@google.com> Add an new internal DrawableContainer to handle animation scale == 0 case.

This will help ProgressBar to show something meaningful when animation scale is 0.
b/30877925

Change-Id: Ieb2e78712999d2e3f3a2a234bc605b4821ae41c0
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
66b3a0d1aa48d5d663dcad86468605c565bb1880 27-Jul-2016 Alan Viverette <alanv@google.com> Avoid potential re-entry as a result of child mutation

Don't set the callback until we're all done making changes.

Bug: 30902893
Change-Id: Ia1560692a83ecb2c50f5e77fa4d1e8155a78a204
(cherry picked from commit b46ba3b2b0268688852cdf3d1fb4afe4873d63be)
ndroid/graphics/drawable/DrawableContainer.java
d64255f61db30934e293adab2a5a8ac9eeea0b98 26-Jul-2016 Teng-Hui Zhu <ztenghui@google.com> Update the javaDoc for VectorDrawable and AnimatedVectorDrawable

b/30269243

Change-Id: I139a3fcac95c41a667fa06aa3223b812caad6243
(cherry picked from commit c224417511d8179a08c4dfd4badc73dd9699ebf2)
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
366262dc7854ba54f64905df8d275358be41edf5 12-May-2016 Philip P. Moltmann <moltmann@google.com> Only have a single call into pdfium at a time.

Pdfium is not thread safe and uses global variables, hence no
parallel call pdfium is safe

Fixes: 28705066
Change-Id: I04309ee691bd9cea37587e0af5be2c07ce8c9f2c
(cherry picked from commit 0768a7dc450caf4c873c5b0883a75135536e1546)
ndroid/graphics/pdf/PdfEditor.java
ndroid/graphics/pdf/PdfRenderer.java
911bbc7cb0c36ccaf787b0811f0a86a2475113c5 18-Aug-2016 Doris Liu <tianliu@google.com> Fix listeners not getting called when AVD falls back on UI thread am: 853b23d1fa am: 79846f859c
am: a0daf61dd0

Change-Id: I90467d3501877b8f398be929084b6ae5f65360cf
853b23d1fa625436b30dfab9b6cb7293c6c328b9 17-Aug-2016 Doris Liu <tianliu@google.com> Fix listeners not getting called when AVD falls back on UI thread

When AVD fall back on UI thread, in addition to transfer the pending
actions from RT animator to UI animator, we also need to transfer
the listener, if any.

BUG: 30901495
Change-Id: Ib4a7ebb2996a02596bb5789704617c894a5dd474
ndroid/graphics/drawable/AnimatedVectorDrawable.java
f49cfb874ee47217da02e5c07525a994d456d28e 10-Aug-2016 Dianne Hackborn <hackbod@google.com> Fix issue #30766518: Document what targeting N does am: b34cbedb4e am: 3a585b86be
am: 22fdbab5d0

Change-Id: Ic9beb458f4332b9ec72c4b4b4178a5bce1fcac82
b34cbedb4e36f184232d7f40b093bdc9fd0cd752 09-Aug-2016 Dianne Hackborn <hackbod@google.com> Fix issue #30766518: Document what targeting N does

Also small documentation cleanup in a few other places.

Change-Id: I16581c751aa0ffa146faba3b140a8fa2170f4520
ndroid/graphics/drawable/AnimatedVectorDrawable.java
8f87912d4a8b7ef228b65058e37fa60600a10361 06-Aug-2016 Doris Liu <tianliu@google.com> Support repeatMode = reverse in AVD am: f7167e8f28 am: 113a8c63d4
am: ceda529fae

Change-Id: I17962c8cff0bd03c1a87d57b213edebdd62a4129
f7167e8f286cff91dec01fdf617bf568f1d100e6 04-Aug-2016 Doris Liu <tianliu@google.com> Support repeatMode = reverse in AVD

BUG: 30641232
Change-Id: I34c823a0a45c8441873a9b467275174c5529994b
ndroid/graphics/drawable/AnimatedVectorDrawable.java
daec5506c45ff0677678fde0732b199cb071250d 04-Aug-2016 Alan Viverette <alanv@google.com> Improve docs for GradientDrawable's useLevel and centerX/Y properties

Bug: 30302143
Change-Id: I1007bf2a57ce73c9ed516a4717e7a539e9e9774b
ndroid/graphics/drawable/GradientDrawable.java
8b9a1fa0848df557d5c718f3ef1230e6a82a320a 02-Aug-2016 John Reck <jreck@google.com> Eliminate recents upload jank am: 4387190d8e am: 021a952150
am: 897b9effb7

Change-Id: Iab2f01b5b3a9be6946e36169209c281a3320ed14
4387190d8ec9fe4e953fcfeb093a644b82cf85ed 01-Aug-2016 John Reck <jreck@google.com> Eliminate recents upload jank

Bug: 30342017

Upload recents thumbnails in the
dead gaps between frames instead of
at the start of a frame. This eliminates
jank caused by the large texture
upload.

Change-Id: I507cd286d199109c7a9a1511d68ba5ab5d28069f
ndroid/graphics/Bitmap.java
19e710e7b568fc3434025b6cb36a6ea81a4a25da 01-Aug-2016 Romain Guy <romainguy@google.com> Expose Path.approximate()

It is a useful APIs that applications can benefit from for a
number of use cases. Since apps have currently no way of
inspecting the content of a path, this allows them to
perform interpolation along paths.

Change-Id: I79bcba38a0ed806c418ed25d36ea25af8721d9c1
ndroid/graphics/Path.java
f761b415010f360f65f05985356c0ea3a5661478 29-Jul-2016 Adrian Roos <roosa@google.com> Merge \\\"Keyguard: Reapply insets when fitsSystemWindow changes\\\" into nyc-mr1-dev am: 5e0a42848e am: 7c323ce7d7
am: 51fe9421ae

Change-Id: Ia96e1c2c59e83d8d8472a8795fd5998d9f7fe3a2
75c16264d064a1ad80a291dc69968466f9f140ae 29-Jul-2016 Alan Viverette <alanv@google.com> Avoid potential re-entry as a result of child mutation am: b46ba3b2b0 am: 0d98515cab
am: 762c828704

Change-Id: I41e826722759de148e3f87d31981d008ff911cfe
2ef3bdbd7afdb2922acdce4722b45bb95c5d70ab 28-Jul-2016 sergeyv <sergeyv@google.com> Turn off simplePath optimization then Path object is used as out param
am: a6a8557d6e

Change-Id: Ia9b85e52b6f0c8632989bf58ac97771ffc2a5d8d
9b17ebca8f59117eca0c1e59e754b5b3a1dac844 28-Jul-2016 Sergei Vasilinetc <sergeyv@google.com> Merge "Turn off simplePath optimization then Path object is used as out param" into nyc-mr1-dev
a6a8557d6e6c8ecc170767b7552979dbdb4254ef 27-Jul-2016 sergeyv <sergeyv@google.com> Turn off simplePath optimization then Path object is used as out param

Change-Id: I4d9ae5c756b2ed1ba30483e8685ce1ad6c1f0c03
fixes:30349106
ndroid/graphics/Canvas.java
ndroid/graphics/Paint.java
ndroid/graphics/Path.java
ndroid/graphics/PathDashPathEffect.java
ndroid/graphics/PathMeasure.java
ndroid/graphics/Region.java
b46ba3b2b0268688852cdf3d1fb4afe4873d63be 27-Jul-2016 Alan Viverette <alanv@google.com> Avoid potential re-entry as a result of child mutation

Don't set the callback until we're all done making changes.

Bug: 30409766
Change-Id: Ia1560692a83ecb2c50f5e77fa4d1e8155a78a204
ndroid/graphics/drawable/DrawableContainer.java
c224417511d8179a08c4dfd4badc73dd9699ebf2 26-Jul-2016 Teng-Hui Zhu <ztenghui@google.com> Update the javaDoc for VectorDrawable and AnimatedVectorDrawable

b/30269243

Change-Id: I139a3fcac95c41a667fa06aa3223b812caad6243
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
317029aecc50a53aa1b9cc88422d316f7b893526 25-Jul-2016 Siyamed Sinir <siyamed@google.com> Update font feature settings w3 URL in api doc

Bug: 29545624
Change-Id: I4611f53055f3a52bc607ac0cc8311f8a633217bf
ndroid/graphics/Paint.java
58eaa13f18cfa17c7f2073dc8ee022e98af091c4 16-Jul-2016 Doris Liu <tianliu@google.com> Merge \\"Ensure native allocation/free is correctly registered\\" into nyc-mr1-dev am: a7272b4cad
am: f5b87ce908

Change-Id: Ic04a562f2c32cb0187713f2b661e35fb3f7f6023
26bb10999b1a8a64383337117fe58505eb75e9e7 15-Jul-2016 Doris Liu <tianliu@google.com> Ensure native allocation/free is correctly registered

This CL fixes an issue where one of the constructors creates a
native tree object without registering the allocation of its
root group with the NativeAllocationRegistry.

BUG: 28943866
Change-Id: Ic8db3f2fa8036dfabdbc1a1fcbd58d08a0379e2d
ndroid/graphics/drawable/VectorDrawable.java
88b4e87ae6453c720cdb22d9b47e8faa5d852844 01-Jul-2016 John Reck <jreck@google.com> Merge \\"Clarify Picture docs on playback\\" into nyc-mr1-dev am: 226b4764b4
am: 917d0abd30

Change-Id: I6efc71dbe4d152e0265faf5056f8e385738a2442
226b4764b4a80a1306dc21451a95626ffbd91f9f 01-Jul-2016 John Reck <jreck@google.com> Merge "Clarify Picture docs on playback" into nyc-mr1-dev
ab1cbc2c53f051aaafe4d43242d6acfd08cbf158 30-Jun-2016 Teng-Hui Zhu <ztenghui@google.com> Mutate the drawable if a valid state change happen

In another word, create another cached bitmap, when the current VectorDrawable
will look differently when state changed.

Bug: 29870392
Bug: 29854240

Change-Id: I7a5ef91091e547a930368286defc7ab96aeb9471
(cherry picked from commit 4f1acfb5f507798daaff2ff0da47d2b15607ded4)
ndroid/graphics/drawable/VectorDrawable.java
7839e4231584632c7d491c2c7391c59e80ca50b4 01-Jul-2016 Tenghui Zhu <ztenghui@google.com> Merge \\"Mutate the drawable if a valid state change happen\\" into nyc-mr1-dev am: 919e982c3f
am: 96c4176210

Change-Id: I38f38fd3b1c349dd938f41b199f572628c9987d7
4f1acfb5f507798daaff2ff0da47d2b15607ded4 30-Jun-2016 Teng-Hui Zhu <ztenghui@google.com> Mutate the drawable if a valid state change happen

In another word, create another cached bitmap, when the current VectorDrawable
will look differently when state changed.

b/29870392

Change-Id: I7a5ef91091e547a930368286defc7ab96aeb9471
ndroid/graphics/drawable/VectorDrawable.java
943c4e0813e740fa5ac5284f5c24e27130415780 30-Jun-2016 John Reck <jreck@google.com> Clarify Picture docs on playback

Change-Id: Iaf8d8d04deb97aff39c93c246ef20312c9c2a7cb
fixes: 26911597
ndroid/graphics/Picture.java
61d7a8aad32397f1b76692eed37365bde0961316 29-Jun-2016 Alan Viverette <alanv@google.com> Merge \\\"Disable constant state sharing for VectorDrawable\\\" into nyc-dev am: f66bdf9b57 am: 25242a7bbc
am: edb98d238f

Change-Id: Iad1b27849bfa501064cb3452caed3571fcdf8430
25242a7bbc5738f5a1fc85499e229f849b796bcf 29-Jun-2016 Alan Viverette <alanv@google.com> Merge \"Disable constant state sharing for VectorDrawable\" into nyc-dev
am: f66bdf9b57

Change-Id: I0c6397987d926c35cb5486fd9d2cb22efb8d8f14
f66bdf9b577f93485529af7bfe45f3a62a64e950 29-Jun-2016 Alan Viverette <alanv@google.com> Merge "Disable constant state sharing for VectorDrawable" into nyc-dev
1882ce941ba38879733617e7a5734a244d8afaf3 29-Jun-2016 Alan Viverette <alanv@google.com> Disable constant state sharing for VectorDrawable

Bug: 29854240
Change-Id: Icc58d04ad6f471d05b085a9089893e4f7205eb7d
ndroid/graphics/drawable/VectorDrawable.java
17b49651af3fb602c6e83097b89426c296bb2ce2 28-Jun-2016 Chris Craik <ccraik@google.com> Merge \\"Clip GradientDrawable\\'s saveLayer\\" into nyc-mr1-dev am: 694acb1e36
am: b22e745278

Change-Id: I331574caa364e87c5178bee544e1b6d570fb4ea5
1e5d428b3f8cbe2132d6b85f7cc6ad5212a986dc 28-Jun-2016 Chris Craik <ccraik@google.com> Clip GradientDrawable's saveLayer

bug:29456451

Avoid using very expensive unclipped saveLayer codepath.

Change-Id: Ib96a46169faa89eda6889b16813a7941ab402779
ndroid/graphics/drawable/GradientDrawable.java
aa2b45da4d726c686b4f44252ae60259300aa1ed 21-Jun-2016 Alan Viverette <alanv@google.com> Merge \\\"Only block invalidation in DrawableContainer initialization\\\" into nyc-dev am: 7a372a13af am: 9b81f5bfaf
am: fdc99784c7

Change-Id: I2d71a46405e1ff208f6b4fdcc71b82bb8073a385
fdc99784c75a3739bf17d103b80f0e5a25062c62 21-Jun-2016 Alan Viverette <alanv@google.com> Merge \\"Only block invalidation in DrawableContainer initialization\\" into nyc-dev am: 7a372a13af
am: 9b81f5bfaf

Change-Id: I23aa33f0a65e311fcb0db3884216666c1d6bc01c
e77dc4fe060a85acc6b0935cd06b0d06e0d3dac3 21-Jun-2016 Alan Viverette <alanv@google.com> Merge \"Only block invalidation in DrawableContainer initialization\" into nyc-dev
am: 7a372a13af

Change-Id: I21a7dbf975a8dca02d87b9a0f084a6af74d55834
a8d3485f3d04d900317fd976ab647830edc4e8ae 21-Jun-2016 sergeyv <sergeyv@google.com> Fix documentation for GradientDrawable.getCornerRadius

Change-Id: I4ad1ef7d989df250a9208107b5baac9e79816194
ndroid/graphics/drawable/GradientDrawable.java
633c24947c8afd7ac980e268422ff6d8442da1b1 17-Jun-2016 Doris Liu <tianliu@google.com> Merge \\"Support AVD animation falling back on UI thread\\" into nyc-mr1-dev am: 4e5ee65307
am: 2df9343a77

Change-Id: I4ca02328c52c8802dc5c006ab4bec6b1ec04cd87
6d823891bbfc043f2a8ba6b5d6e6baa84cf750f6 17-Jun-2016 Alan Viverette <alanv@google.com> Only block invalidation in DrawableContainer initialization

Blocking (un)scheduling breaks AnimationDrawable's internal consistency.

Bug: 29309316
Change-Id: I59c79a4a9a92b599cd94bd941ae78ac25b874add
ndroid/graphics/drawable/DrawableContainer.java
126df850ce6b5f8a355534eb09235e22995f0116 16-Jun-2016 Doris Liu <tianliu@google.com> Support AVD animation falling back on UI thread

AVD will fall back to UI thread animation if the host view is
rendering onto a SW layer.

BUG: 27617346
Change-Id: I5b644529048a0c30aada3abf2f4e95e40760936d
ndroid/graphics/drawable/AnimatedVectorDrawable.java
f3f7cccccf0d8bbf04e19ada76b475f98d30f19c 10-Jun-2016 Philip P. Moltmann <moltmann@google.com> Return NPE instead of ISE if page is closed.

To comply with the legacy behavior.

Change-Id: I2b3c4d6d1f41022e72e5c22fe4402864d9e54986
ndroid/graphics/pdf/PdfRenderer.java
c9493879d7b38b9d0b5b09aa3760966a3ca33eac 03-Jun-2016 Doris Liu <tianliu@google.com> Support Keyframe definition for AVD on RT

BUG: 27441613
Change-Id: Iece386f65f3704d1b7caa2b3690a8d3048ccf6e2
ndroid/graphics/drawable/AnimatedVectorDrawable.java
a57e95a6a351242941e5cef97aaaa1fb34f20a9d 01-Jun-2016 Doris Liu <tianliu@google.com> Throw Exception for wrong valueType with API guard

Previously, wrong valueType error is swallowed in jni. As a result,
some animations are quietly skipped without letting developers know.
This CL maintains that behavior for pre-N, and throws Exception
to notify developers of the error for N and above.

Bug: 29009391
Change-Id: I3e8f003cdb97d214da72af3f93a84f64797b1c2c
(cherry picked from commit 94db09917a17976135e2c63d8e4171c54730c079)
ndroid/graphics/drawable/AnimatedVectorDrawable.java
3f6a95283af6d93a81c74c90b1b9230f9641cfb0 09-Jun-2016 Doris Liu <tianliu@google.com> Merge "Handle hidden RT VectorDrawable animators" into nyc-mr1-dev
718cd3eb70703c43f29ca37907bbf0e153d8cca0 18-May-2016 Doris Liu <tianliu@google.com> Handle hidden RT VectorDrawable animators

This CL changes the target of VD specific animators to VectorDrawable,
instead of RenderNode. The benefit of doing so is that animators can
now detect whether the animation is meaningful by checking whether
their VD target is in the display list. If not, that means the VD is
not drawing for the current frame, in which case we can be smarter
and more power efficient by removing the animator from the list and
posting a delayed onFinished listener callback.

By setting VD as the animation target, when an ImageView decides to
update its drawable from one AVD to something else, we'll be able
to detect that the previous AVD is no longer in the display list,
and stop providing animation pulse to the stale AVD, which is
something we couldn't do previously. This change also
handles the case where one AVD instance could be drawn in two
different views.

Bug: 27441375
Change-Id: Iaad1ed09cfd526276b95db0dd695275c28e074e8
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
7e1d49326719076401b43b28649a827478ea6487 09-Jun-2016 Doris Liu <tianliu@google.com> Merge "Support Keyframe definition for AVD on RT"
a6b967cfc54408f6ee78ae0e4695eca6efd62e89 03-Jun-2016 Doris Liu <tianliu@google.com> Support Keyframe definition for AVD on RT

BUG: 27441613
Change-Id: Iece386f65f3704d1b7caa2b3690a8d3048ccf6e2
ndroid/graphics/drawable/AnimatedVectorDrawable.java
792926a58c94563cf35d532cd3db888cc1cbeb7d 20-May-2016 Doris Liu <tianliu@google.com> Improve the property modification effiency of VectorDrawable animators

Previously, the VectorDrawable animators modify the VD properties by
doing reflection based on the property name. This CL avoids the overhead
of calling reflection by wrapping the setters of VD objects in
Float/IntProperty.

Bug: 28124049
Change-Id: I562c8d749fdfe508564c82a700a92e835cdd9ff4
(cherry picked from commit 9f3b31b9530a2121b4557fc312972c4faa133d5e)
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
f126e21f433b36aa4c71f1a621d06b56206df440 08-Jun-2016 Philip P. Moltmann <moltmann@google.com> Handle bitmap==null in PdfRenderer.Page#render.

Change-Id: Ie24ca45d4b5e27d5e99de72115e8e00b32b30655
ndroid/graphics/pdf/PdfRenderer.java
c859cd068b3a63be962a201db46f487d13be56da 08-Jun-2016 Philip P. Moltmann <moltmann@google.com> Fix up issues in PdfRenderer found by test.

Change-Id: I56e403fd425e4b4353383c43077de5c47ff22b5c
ndroid/graphics/pdf/PdfRenderer.java
94db09917a17976135e2c63d8e4171c54730c079 01-Jun-2016 Doris Liu <tianliu@google.com> Throw Exception for wrong valueType with API guard

Previously, wrong valueType error is swallowed in jni. As a result,
some animations are quietly skipped without letting developers know.
This CL maintains that behavior for pre-N, and throws Exception
to notify developers of the error for N and above.

Bug: 29009391
Change-Id: I3e8f003cdb97d214da72af3f93a84f64797b1c2c
ndroid/graphics/drawable/AnimatedVectorDrawable.java
0794f537daa6422566124bdcf2e11dcc86f2f1f4 28-May-2016 Doris Liu <tianliu@google.com> Merge "Copy native tree's property when mutate vector drawable"
6f2f02e4ae5d61111bf52dbddd105cbc0a0f5e74 27-May-2016 The Android Automerger <android-build-merger@google.com> Merge commit '93c1d3aa6e20b52a37548af0bf9f9a66948a7611'

* commit '93c1d3aa6e20b52a37548af0bf9f9a66948a7611':
docs: Refinements for testing
Fix toast with accessibility and app pinning
Updated link to material design page.
Change overdraw test to use windowbackground
Prevent callbacks during DrawableContainer child initialization
Fixing crash in SysUI due to invalid group.
Cherry pick: docs: Edited "Features Reference" section in "<uses-feature>" page.
Fix Activity Transition mess-up.
Time to #NameAndroidN!
Prevent use of a null sCallbackObj by Hardware FLP
Fixed the relative time spoken with accessibility
Use backstop timeouts on asynchronous countdown during preflight
028029730bf2d177f84316d2d444d409eba4b6cb 27-May-2016 Doris Liu <tianliu@google.com> Copy native tree's property when mutate vector drawable

When mutating vector drawables, we need to not only copy over
the VD tree structure, but also the properties of the VD tree,
such as alpha.

Bug: 28974071
Change-Id: I265e7e3cb92455b876cae248bcb9811230cb34f9
ndroid/graphics/drawable/VectorDrawable.java
335d7d174464ea3fc2d058dcff6e436df1cf0fd9 27-May-2016 Doris Liu <tianliu@google.com> Copy native tree's property when mutate vector drawable

When mutating vector drawables, we need to not only copy over
the VD tree structure, but also the properties of the VD tree,
such as alpha.

Bug: 28974071
Change-Id: If793f5f2b6e116472a1c6da0fb60d8278a78b03f
ndroid/graphics/drawable/VectorDrawable.java
2b561f1c352df95df23e17e7fce2acc3144df159 26-May-2016 Alan Viverette <alanv@google.com> Prevent callbacks during DrawableContainer child initialization

Bug: 28900939
Change-Id: I9c6c8af1665c2dc0bfa8bc8fc773c81e14f6aab1
ndroid/graphics/drawable/DrawableContainer.java
f143417bab8ed47981e1833595090812943aa772 26-May-2016 Doris Liu <tianliu@google.com> Merge "Handle hidden RT VectorDrawable animators"
67ce99b66ebc816ae8bbc222db8f3695fb15495b 18-May-2016 Doris Liu <tianliu@google.com> Handle hidden RT VectorDrawable animators

This CL changes the target of VD specific animators to VectorDrawable,
instead of RenderNode. The benefit of doing so is that animators can
now detect whether the animation is meaningful by checking whether
their VD target is in the display list. If not, that means the VD is
not drawing for the current frame, in which case we can be smarter
and more power efficient by removing the animator from the list and
posting a delayed onFinished listener callback.

By setting VD as the animation target, when an ImageView decides to
update its drawable from one AVD to something else, we'll be able
to detect that the previous AVD is no longer in the display list,
and stop providing animation pulse to the stale AVD, which is
something we couldn't do previously. This change also
handles the case where one AVD instance could be drawn in two
different views.

Bug: 27441375
Change-Id: Id4b3b37f28274c917cb9beb9dcd3d1e6991b5c5d
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
1c1fbf2c4432c8572f0b08513e6413df5a745537 25-May-2016 Alan Viverette <alanv@google.com> Merge "Prevent LayerDrawable bounds updates from being re-entrant" into nyc-dev am: 5c9444216d am: 6b525a2645
am: c44c760b9c

* commit 'c44c760b9c711eb22d0a937d56def02e57f5fc37':
Prevent LayerDrawable bounds updates from being re-entrant

Change-Id: If51c75c3b9d5d39dfa8d0ed6c8113ed68ed430ee
09deff1bd970bd6749d78b6c85026a9985e6a1f3 24-May-2016 Alan Viverette <alanv@google.com> Prevent LayerDrawable bounds updates from being re-entrant

Collect child invalidations during layer bounds change, then dispatch a
single invalidation if any children requested invalidation. This prevents
re-entrance from, for example, a LayerDrawable.updateLayerBounds() call
invoking setBounds() on a child, which necessarily calls invalidateSelf()
and immediately propagates up to ImageView.invalidateDrawable(), which
then calls configureBounds() and puts us back in updateLayerBounds().

Bug: 28636072
Change-Id: I36c9eefc18904d493292d51b37e4b05cfddcf794
ndroid/graphics/drawable/LayerDrawable.java
9f3b31b9530a2121b4557fc312972c4faa133d5e 20-May-2016 Doris Liu <tianliu@google.com> Improve the property modification effiency of VectorDrawable animators

Previously, the VectorDrawable animators modify the VD properties by
doing reflection based on the property name. This CL avoids the overhead
of calling reflection by wrapping the setters of VD objects in
Float/IntProperty.

Bug: 28124049
Change-Id: I562c8d749fdfe508564c82a700a92e835cdd9ff4
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
af15c8bcaec3f301b9e646d9702d90b43ceb23a0 18-May-2016 Yohei Yukawa <yukawa@google.com> Merge "Move LocaleList to avoid layering violation." into nyc-dev am: 31884efd13 am: ddaf3f4681
am: bf4c8f730b

* commit 'bf4c8f730b167e5ee65ed7c59dfa1d7867b63fcc':
Move LocaleList to avoid layering violation.

Change-Id: I78fee5269f7428e34b196573575784fc15cb1372
23cbe85610f780134cc77dd4a54732a22ed6e86e 18-May-2016 Yohei Yukawa <yukawa@google.com> Move LocaleList to avoid layering violation.

Since LocaleList needs to depend on android.os.Parcelable, we cannot let
that class belong to "android.util" package, which causes layering
violation.

Bug: 28819696
Change-Id: Ia8de2ee9df3dd0a42b1fe84574439519b680fe18
ndroid/graphics/Paint.java
e66baed3875a9cb3fbbcf5717e10a9bf0a50a9f3 17-May-2016 Philip P. Moltmann <moltmann@google.com> Merge "Only have a single call into pdfium at a time."
0d65743feac1829629e327925f831e482e0f1435 10-May-2016 Hans Boehm <hboehm@google.com> Clear more native pointers in finalizers

This hopefully handles the remaining finalizers in frameworks/base
that didn't guard against calls from other finalizers after being
finalized.

The goal here is to reduce the possible corruption causes we have
to think about by a few.

If any of theses are either very frequently used, or use large
Java (as opposed to native) objects, we should probably convert them
to NativeAllocationRegistry instead. But that's more work.

Bug: 18178237
Change-Id: I79bc0e8fa20af8f340418a6226022e0294d77f02
(cherry picked from commit ad3cc3c63c6d0f637d2ece3935b5b01b19473299)
ndroid/graphics/Camera.java
ndroid/graphics/ColorFilter.java
ndroid/graphics/DrawFilter.java
ndroid/graphics/Movie.java
ndroid/graphics/Rasterizer.java
ndroid/graphics/Xfermode.java
41f864ec45c4fc5c490936fd145c4b087c076646 13-May-2016 John Reck <jreck@google.com> Minor optimizations

Don't save matrix if we just need clip saved
Early-reject the easy-to-reject cases in Canvas
before hitting JNI

Change-Id: I385ef90a31efbda31ce37837152f626aad553ee7
ndroid/graphics/Canvas.java
0768a7dc450caf4c873c5b0883a75135536e1546 12-May-2016 Philip P. Moltmann <moltmann@google.com> Only have a single call into pdfium at a time.

Pdfium is not thread safe and uses global variables, hence no
parallel call pdfium is safe

Fixes: 28705066
Change-Id: I04309ee691bd9cea37587e0af5be2c07ce8c9f2c
ndroid/graphics/pdf/PdfEditor.java
ndroid/graphics/pdf/PdfRenderer.java
e116fc5cf9f59e6b9cf54510d9b50785540c2a5c 12-May-2016 Teng-Hui Zhu <ztenghui@google.com> Merge "Update and add attributes to the JavaDoc for VectorDrawable" into nyc-dev
am: caacf332a1

* commit 'caacf332a1e568e065c9245565c135a7450cc941':
Update and add attributes to the JavaDoc for VectorDrawable

Change-Id: I4d7de86055da3dcd581a7497de7f7d516fbf6ed2
a8d671a144c4607c6ceb59ae8dc5b0535692639f 09-May-2016 Teng-Hui Zhu <ztenghui@google.com> Update and add attributes to the JavaDoc for VectorDrawable

fix:28678266

Change-Id: Ife23937feb6ccbd043bd435ffcb20a79a8861edf
ndroid/graphics/drawable/VectorDrawable.java
0024c91409ae7c137ede27d10f67331720cede43 11-May-2016 Hans Boehm <hboehm@google.com> Merge "Clear more native pointers in finalizers" am: a5ca0ca886
am: 8521a8ff86

* commit '8521a8ff860e89ca60d530db60f58878847cf52a':
Clear more native pointers in finalizers

Change-Id: Icca385cd603ad15ab02f2033f8652e3a8d2f6c3d
ad3cc3c63c6d0f637d2ece3935b5b01b19473299 10-May-2016 Hans Boehm <hboehm@google.com> Clear more native pointers in finalizers

This hopefully handles the remaining finalizers in frameworks/base
that didn't guard against calls from other finalizers after being
finalized.

The goal here is to reduce the possible corruption causes we have
to think about by a few.

If any of theses are either very frequently used, or use large
Java (as opposed to native) objects, we should probably convert them
to NativeAllocationRegistry instead. But that's more work.

Bug: 18178237
Change-Id: I79bc0e8fa20af8f340418a6226022e0294d77f02
ndroid/graphics/Camera.java
ndroid/graphics/ColorFilter.java
ndroid/graphics/DrawFilter.java
ndroid/graphics/Movie.java
ndroid/graphics/Rasterizer.java
ndroid/graphics/Xfermode.java
8e96faae783fe1850d66bf3fb01fbb4579662959 09-May-2016 Richard Uhler <ruhler@google.com> Merge "Hold a ClassLoader reference in NativeAllocationRegistry." into nyc-dev
a24c9b4791dddc2dbc233dfe8dac1ae682beb272 06-May-2016 Alan Viverette <alanv@google.com> Always mutate child when added to drawable container

Bug: 28456908
Change-Id: I3e7bea85e056882a331aecf7e225134161e685e6
ndroid/graphics/drawable/DrawableContainer.java
0ebdbb4a8470bb77f38c33a42c220ecb8a7adcc6 03-May-2016 Richard Uhler <ruhler@google.com> Hold a ClassLoader reference in NativeAllocationRegistry.

So that the native library isn't unloaded before we have a chance to
call the freeFunction.

Bug: 28406866
Change-Id: I889f1ccd91bba70e31fb8d09c0ec6d471fc35841
ndroid/graphics/Bitmap.java
ndroid/graphics/Canvas.java
ndroid/graphics/Paint.java
6543533f29d869d5cbbc1c403e4e0ed219fcc300 03-May-2016 Doris Liu <tianliu@google.com> Merge "Count native allocation for VD against Java heap" into nyc-dev
f8d131cc8dc4ef675b8f8fc57dcc26062d575d32 30-Apr-2016 Doris Liu <tianliu@google.com> Count native allocation for VD against Java heap

There are two parts to VD's native allocation:
1) VD's internal data structure (i.e. groups, paths, etc that make
up of the VD tree). This structure can change, when a VD is used
to load a different drawable resource.
2) Two bitmap caches, not both of which will necessarily be allocated
The size of the bitmap cache depends on canvas matrix and drawable
bounds, and therefore can often change.

We need to count the native allocation from the above against Java heap.

Bug: 26269056
Change-Id: If833aedcf7f3efe00ea73a41ddccb1b48066ffd8
ndroid/graphics/drawable/VectorDrawable.java
a1c06675dd2a83ce445f27b46cddab80f8c743e6 29-Apr-2016 John Reck <jreck@google.com> Merge "Video source test & bugfix" into nyc-dev
f3a51d652ff9fbcb5a41c71c801de71a3b1ece78 28-Apr-2016 John Reck <jreck@google.com> Video source test & bugfix

Bug: 28428970

Test for video sources and fix a bug where
we should throw an IAE for surfaces that are invalid
at request time.

Change-Id: I891a2b1568f583300433c7aca6de36d2e2621c63
ndroid/view/PixelCopy.java
3d0d141710d23b0f08c865100b4d55b4c2976486 27-Apr-2016 Philip P. Moltmann <moltmann@google.com> Add a security warning to PdfRenderer doc.

Change-Id: Ia714d312665179366adae8e1923e4b9c339ebb59
ndroid/graphics/pdf/PdfRenderer.java
7f209d37f17d4df09475137c38b84a3338c84023 27-Apr-2016 John Reck <jreck@google.com> Merge "API tweaks to PixelCopy and make it public" into nyc-dev
e94cbc76d560a157c0a0d47181b4ed2a0aadbeb1 25-Apr-2016 John Reck <jreck@google.com> API tweaks to PixelCopy and make it public

Bug: 27708453
Change-Id: I81667ce42f9ca1c1a13e1e61299927900845fc84
ndroid/graphics/PixelCopy.java
ndroid/view/PixelCopy.java
c015719954d9a1c0a53f277f68405401207a0c65 26-Apr-2016 Sergei Vasilinetc <sergeyv@google.com> Merge "DisplayListCanvas: throw exception at attempt to draw bitmap with size > 100MB" into nyc-dev
6f9626a1c27d29c67881aa22de3c19804b535ddb 25-Apr-2016 Alan Viverette <alanv@google.com> Check for null drawable during LayerDrawable.jumpToCurrentState()

Child drawables specified as theme attributes may not have been
initialized yet.

Bug: 28371482
Change-Id: I8452a7c5b8f74368c58ba3373336bf7d650af7a3
ndroid/graphics/drawable/LayerDrawable.java
3d8298e1a8b35dadb0a383aadb9a545ecab463e2 21-Apr-2016 sergeyv <sergeyv@google.com> DisplayListCanvas: throw exception at attempt to draw bitmap with size > 100MB

bug:26943116
Change-Id: If72c9f21ca2d8eb660ea2db4a42c8199f8d02472
ndroid/graphics/Canvas.java
967d93440cd1386810bdfad50dcca4bff9bae722 20-Apr-2016 Doris Liu <tianliu@google.com> Merge "Pause infinite AVD when the drawable is not visible" into nyc-dev
d049837397e72def57a71bf6f3387cdbf179fa19 19-Apr-2016 Doris Liu <tianliu@google.com> Pause infinite AVD when the drawable is not visible

And resume when it becomes visible again

Bug: 27441375
Change-Id: Ic5140a30f5726df252ca63be9e14c495cbd76466
ndroid/graphics/drawable/AnimatedVectorDrawable.java
de16f96c7e66b7a643ecc7b6c1a8fb70737f5250 15-Apr-2016 Winson Chung <winsonc@google.com> Merge "Take app screenshots in 565." into nyc-dev
a5fdde9d15fbdf1aaeb61e1cf0c128af3aeb7b67 15-Apr-2016 Winson <winsonc@google.com> Take app screenshots in 565.

- Or to be specific, SurfaceFlinger can’t easily take 565 screenshots,
so convert them when creating the ashmem bitmap.

Bug: 28151300
Change-Id: Ic7586659a41cc19c322136f77a1c52ef68c22707
ndroid/graphics/Bitmap.java
112f0aa28e017d4d7a3638389709b94a718dadc8 14-Apr-2016 Alan Viverette <alanv@google.com> Basic documentation for custom drawables

Bug: 23621364
Change-Id: Ia292433ebd40d4c85ff6974def3d1f4b26926b52
ndroid/graphics/drawable/Drawable.java
0c340260889ca70163a332a364996d33703bd79f 14-Apr-2016 Alan Viverette <alanv@google.com> Merge "Update docs for Drawable.setLayoutDirection() return value" into nyc-dev
2089575686331550138af542dff331e56283cb64 13-Apr-2016 Alan Viverette <alanv@google.com> Merge "Clean up Drawable annotations" into nyc-dev
b8cbb806fc70573def954f7ba84dd7b53b3be1bd 13-Apr-2016 Alan Viverette <alanv@google.com> Clean up Drawable annotations

No functional changes.

Bug: 23621364
Change-Id: Ia5ac34eb8464ee40afd7052f34b42bb6153260bf
ndroid/graphics/PixelFormat.java
ndroid/graphics/drawable/Drawable.java
2519996e4e2d535420b64539ef13dba97044f060 13-Apr-2016 Siyamed Sinir <siyamed@google.com> Merge "Cache Typeface.createFromAsset objects." into nyc-dev
1ee2dd2f5fb10cd0e6a4d3d368c1e24d3ec417a2 12-Apr-2016 Doris Liu <tianliu@google.com> Merge "Check whether VD tree is still valid before calling native setter" into nyc-dev
cdedc9a80d971c8152b6f2674c040c79cff3b8dd 12-Apr-2016 Doris Liu <tianliu@google.com> Check whether VD tree is still valid before calling native setter

VD tree is ref-counted in both Java and native. VD's child nodes are
entirely owned by the native tree, as VD nodes in native should outlive
its Java counterparts, with one exception: when there's an infinite UI
animator running on VD, the animator may have weak reference to a few
child nodes. In the case of hidden animator running infinitely, the child
nodes would keep getting the animation pulse while the rest of the tree
would have been destroyed. To prevent the setters triggered by animation
from calling into native, we need to check whether the tree is still
valid before going down into JNI.

Bug: 28104172
Change-Id: Ie9d4bf3898c0c23e620a4747624d24b8ab779743
ndroid/graphics/drawable/VectorDrawable.java
78e561ce541e5c72780c68b5b14eb50c08bb97ac 12-Apr-2016 Alan Viverette <alanv@google.com> Update docs for Drawable.setLayoutDirection() return value

Bug: 27107547
Change-Id: I98dd706e6dfb07e7b5ec9c257cf5bea6aea2bbfc
ndroid/graphics/drawable/Drawable.java
5849500a193ac1327242e01d7f6912d0a384ffc9 08-Apr-2016 Siyamed Sinir <siyamed@google.com> Cache Typeface.createFromAsset objects.

Caches Typeface objects returned from Typeface.createFromAsset function,
Objects are cached in an LruCache with a max size of 16.

Bug: 27251075
Change-Id: I6baae4211a0d0d26422945bf1557b364cfe84b2b
ndroid/graphics/Typeface.java
10dd0585c11dcedb5a271d54e645594f1d215d5c 01-Apr-2016 John Reck <jreck@google.com> Framework-side of SurfaceView#getBitmap

Bug: 27708453

Change-Id: Ie6fd7eca522d3e6549d8af587c975fd7e6053649
ndroid/graphics/PixelCopy.java
296bf8c55aaba0025f3e5b904fda3b6e15686753 07-Apr-2016 Raph Levien <raph@google.com> Avoid copying of font table data, provide raw font bytes

Minikin is changing its approach to table access to use HarfBuzz to
access the tables, based on raw font data, rather than calling the
MinikinFont::GetTable() virtual method. This patch provides raw access
to the font data to make this work.

There's a bit of plumbing to make sure fonts get a pointer to the raw
data as well.

Bug: 27860101
Change-Id: I638e18cf363644bf22fbc9fb9b3358a9e731087f
ndroid/graphics/FontFamily.java
a7f775db93235ab25636ab2350ccf6df2729c030 05-Apr-2016 Chris Craik <ccraik@google.com> Merge "Fix how outlines are sent to rendernode" into nyc-dev
1d8e194661085f9a18ab1b3cd12f9e19d3a86be5 03-Mar-2016 Doris Liu <tianliu@google.com> Make AVD thread safe

This CL introduces staging properties to VectorDrawable, which holds
properties coming from UI thread. When staging properties are changed,
they are marked dirty, and the staging properties then get pushed to
RenderThread at sync point. In cases where no staging property has
been changed, at sync point we sync the render thread properties back
to staging properties to reflect the latest render thread animation
value change.

Also, update Vector Drawable bitmap only when it's dirty

Bug: 27343970
Bug: 27385912
Bug: 27263667
Bug: 27927674
Bug: 27774383

Change-Id: Ia864f5400a53a08dbfb284fae581fb1aac4fff87
ndroid/graphics/drawable/AnimatedVectorDrawable.java
136d1af1cc67f51e8523189260a7c4a22cc02768 04-Apr-2016 Chris Craik <ccraik@google.com> Fix how outlines are sent to rendernode

bug:27918183

Fixes an issue where all convex outlines were pushed as empty rects to
RenderNode.

Also adds outline/reveal clip property logging, so such issues are
easier to debug in the future.

Change-Id: Ic4a996ecd09a8ef84cdf8b963bdb4853c7f6d180
ndroid/graphics/Outline.java
008c6c54908c423a034c40b3f79e712176c141b6 17-Mar-2016 Ben Wagner <bungeman@google.com> Fix shift precedence in FontListParser.

BUG=27707457

Change-Id: I7ea7a5fa67ec540401454136427b37562a4eef30
ndroid/graphics/FontListParser.java
0925f40372cb140fd9e2a55ec0b5c645e90f3b84 26-Mar-2016 Siyamed Sinir <siyamed@google.com> Update get/setFontFeatureSettings JavaDoc

Add CSS font-feature-settings URL to get/setFontFeatureSettings method
JavaDoc in both TextView and Paint.

Bug: 27857640
Change-Id: I8c20068801032407d493e4f4a15b89dcf35949d2
ndroid/graphics/Paint.java
f35e7dc773101b86f2eb28c0120ae22b4c46fd26 28-Mar-2016 Tenghui Zhu <ztenghui@google.com> Merge "Update the Drawable.inflate() documentation" into nyc-dev
4eab3850ec1a6cd3ec86f0c648497ee51c3ac609 25-Mar-2016 Teng-Hui Zhu <ztenghui@google.com> Update the Drawable.inflate() documentation

Change-Id: I1f8a4e40fae43ad75550d3dffbccd831b063be03
ndroid/graphics/drawable/Drawable.java
527bcac4d75f9efe80df0d07355f3f7fb54d9ef5 25-Mar-2016 Philip P. Moltmann <moltmann@google.com> Merge "Fix javadoc for Icon.loadDrawableAsync(Context, OnDrawableLoadedListener, Handler)." into nyc-dev
4ee3b6216d2d8cef517f13d3e8ee7f274b0cb8b6 24-Mar-2016 Derek Sollenberger <djsollen@google.com> Merge "Enforce API preconditions in Java instead of deferring to Skia." into nyc-dev
ab852f2972550d1ff6d6b9ec9ec85a9add16409c 24-Mar-2016 Sergei Vasilinetc <sergeyv@google.com> Merge "Add offset() to Path's fast-case mode" into nyc-dev
5d83f69fcdd4a7f46ead2896db42e0689af31a89 24-Mar-2016 Sergei Vasilinetc <sergeyv@google.com> Merge "Fix NinePatch insets scaling" into nyc-dev
ecbcdd384c07402204064243981a432f5b0aad36 22-Mar-2016 sergeyv <sergeyv@google.com> Add offset() to Path's fast-case mode

bug:22510833
Change-Id: I417ed13ff450aa7f6c72370b4c5de8e8a53a0235
ndroid/graphics/Path.java
336f1cbaf55f7ef3164427255494937341efac7b 23-Mar-2016 Derek Sollenberger <djsollen@google.com> Enforce API preconditions in Java instead of deferring to Skia.

The Skia API has been relaxed on the types of input it will accept,
but in order to preserve the old API behavior we need to test for
those conditions in Java.

bug: 27682974
Change-Id: I9a33acdcd8f55c63d2e42f1733e94bf695193ac7
ndroid/graphics/PathMeasure.java
4abd7ecfa2fb5aee6449cfa7fb02971bab9918bb 23-Mar-2016 Philip P. Moltmann <moltmann@google.com> Fix javadoc for Icon.loadDrawableAsync(Context, OnDrawableLoadedListener, Handler).

Change-Id: I349008b293066c6c45b080f945f9fe197a3f2158
ndroid/graphics/drawable/Icon.java
d253797588f6847d582078bc6a4171e3dc5d8405 23-Mar-2016 Sergey Vasilinets <sergeyv@google.com> Fix NinePatch insets scaling

bug:27323867
Change-Id: I33c0007eb9259703c73d2e3672ae1427a2155037
ndroid/graphics/NinePatch.java
ndroid/graphics/Rect.java
ndroid/graphics/drawable/NinePatchDrawable.java
988fc6fa43d4f35d17b4ab7574863f5017fd289a 22-Mar-2016 Teng-Hui Zhu <ztenghui@google.com> Fix callback issue for AVD on UI thread

We have created AnimatorSet from XML, but it is assigned to the AVD only when
we start the animation due to theme-ing operations.

Given listeners can be added to AVD at any time, we have to cache them if
AnimatorSet is not setup yet.

b/26979225

Change-Id: I94315892de83f93a0205efe5e70dca0cd0f0a8e3
ndroid/graphics/drawable/AnimatedVectorDrawable.java
aaa725647e83dcefda3614b9bf4dd3d1c61e900c 21-Mar-2016 Tenghui Zhu <ztenghui@google.com> Merge "Document the cache bitmap behavior for VD" into nyc-dev
c0b87a84c6220cfa7b9c411609bf140b9c5928d5 16-Mar-2016 Teng-Hui Zhu <ztenghui@google.com> Document the cache bitmap behavior for VD

b/26454083

Change-Id: I22aeef9760aaf6bb79dca85740281cf94e19e601
ndroid/graphics/drawable/VectorDrawable.java
a856e96eb543c0d2de63921b148015fc32c9d6ba 18-Mar-2016 Alan Viverette <alanv@google.com> Ensure nine-patch uses the best available target density

Bug: 27507887
Change-Id: Iddab4fdd2fe8fbf201dbb8ed42657a00509f42cc
ndroid/graphics/drawable/NinePatchDrawable.java
0b3a9ceed250c11ee2a7274ac630bfcf4a59df3d 17-Mar-2016 Chris Craik <ccraik@google.com> Merge "Avoid allocation in methods of Outline" into nyc-dev
2c7f9a8fb955022a1ae2581dbcc71e176247229a 17-Mar-2016 Chris Craik <ccraik@google.com> Avoid allocation in methods of Outline

bug:26516265

Outlines are generally cached by the View system and reused, so optimize
for performance/allocation avoidance, rather than size.

Change-Id: I578d24c1255f1c1d8ebb30f3223fbe4ade4c67b4
ndroid/graphics/Outline.java
71e806b2f464b0ac85367fe008b554b44e4c5812 16-Mar-2016 Tenghui Zhu <ztenghui@google.com> Merge "Add fillType support to VectorDrawable" into nyc-dev
d3eb078ac7aa1a046d1b23519d91ac0c8d3241bc 16-Mar-2016 Chet Haase <chet@google.com> Merge "Document that Rect right/bottom are exclusive" into nyc-dev
46591f4a2dbd785bcae2b82bb490e78208605ec8 15-Mar-2016 Teng-Hui Zhu <ztenghui@google.com> Add fillType support to VectorDrawable

Default as non-zero, which is the same as SVG.
b/27533958

Change-Id: Id20e6d3493bb4d2b4b65d7f6cdb13586631c40e4
ndroid/graphics/drawable/VectorDrawable.java
7494eb2114f047f1d96a7520c95c72a8e4e2cb35 16-Mar-2016 Derek Sollenberger <djsollen@google.com> Merge "Remove all non-porterduff xfermodes from the public API" into nyc-dev
ccdc3ebb9c9bf67ec8e0e30ab117c82bf8485663 15-Mar-2016 Chris Craik <ccraik@google.com> Document that Rect right/bottom are exclusive

bug:22254401

Change-Id: I891e73404937b4b67210f0ac180f4cef952f8f16
ndroid/graphics/Rect.java
e2578e2d9ea968cf900814cc3d2e62e4cf476f3e 15-Mar-2016 Alan Viverette <alanv@google.com> Merge "Rename undefined inset constant" into nyc-dev
6888597c93cb0e78a30d7ba5b31025ffa435dcad 15-Mar-2016 Alan Viverette <alanv@google.com> Rename undefined inset constant

Bug: 27531289
Change-Id: I31c5cc295c7f36b934eccf46cdbe7a7b293af9e0
ndroid/graphics/drawable/LayerDrawable.java
0e48bc913d08e5def064af6d38dcfcfadd1b96f7 15-Mar-2016 John Reck <jreck@google.com> Merge "Switch back to UI-driven AVD" into nyc-dev
7ab0f835e6edf92eeb4f905a3c76df91a879add5 15-Mar-2016 John Reck <jreck@google.com> Switch back to UI-driven AVD

Bug: 27550546
Change-Id: I7c37438555fb8a72d2ff0bc42bf5de25a31cc464
ndroid/graphics/drawable/AnimatedVectorDrawable.java
fb354a375202e697e3b797cbdc5da95357989028 15-Mar-2016 Chris Craik <ccraik@google.com> Return <0 if undefined Outline radius

bug:27531289

Change-Id: I0a2880693c59406e2d610f3a11020cde5379e230
ndroid/graphics/Outline.java
781fbf28c70868d803a6caf13a2209c785fa4fce 14-Mar-2016 Alan Viverette <alanv@google.com> Merge "Ensure all Java-side usages of config flags are using Java flags" into nyc-dev
f4c3d9f4c2e759b47d3aa7afcc3cb6900e926cc9 11-Mar-2016 Alan Viverette <alanv@google.com> Merge "Invalidate DrawableContainer's cached canConstantState on child add" into nyc-dev
ac85f90466dd60d2af8ffc3942d503a0de606726 11-Mar-2016 Alan Viverette <alanv@google.com> Ensure all Java-side usages of config flags are using Java flags

Previously we were using native config flags in some places that expected
Java flags, and vice-versa. All usages of config flags are now annotated
to ensure we're using the right type.

Cleans up annotations on most methods that were touched.

Bug: 21161798
Change-Id: Ifd87dfb12199fc8258915d8a510e03ddb681ca89
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/DrawableWrapper.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
ndroid/graphics/drawable/TransitionDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
48653d225b964f4e62e5e94d98966826875dd99c 11-Mar-2016 Alan Viverette <alanv@google.com> Merge "Ensure Outline consistently sets the radius to be undefined" into nyc-dev
79936ddda4c8d1709f736cda013070c3ab32db6f 11-Mar-2016 Alan Viverette <alanv@google.com> Merge "Add consistent @NonNull annotations for drawable callbacks" into nyc-dev
335875bb480d340e5dfed19bd4512df0c177674d 11-Mar-2016 Tenghui Zhu <ztenghui@google.com> Merge "Add the missing overriden API" into nyc-dev
5291a9571580d5147331adbdefb017fa395df505 09-Mar-2016 Alan Viverette <alanv@google.com> Invalidate DrawableContainer's cached canConstantState on child add

Bug: 27553319
Change-Id: I625234baea8a992900935f562f9b767c85e527fd
ndroid/graphics/drawable/DrawableContainer.java
f6d87ec193f17e8dad82c9994ba7a58e975d364b 11-Mar-2016 Alan Viverette <alanv@google.com> Add consistent @NonNull annotations for drawable callbacks

Bug: 27599515
Change-Id: I33fdc5392302403bfff9cc74a8226173ec962af6
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/DrawableWrapper.java
ndroid/graphics/drawable/LayerDrawable.java
51e7805f14062df674f613fdaa830030aaaa4f8e 11-Mar-2016 Derek Sollenberger <djsollen@google.com> Remove all non-porterduff xfermodes from the public API

bug: 14650725
Change-Id: I3c935c32849be8762281eb3d1c86481be3fa139f
ndroid/graphics/AvoidXfermode.java
ndroid/graphics/PixelXorXfermode.java
24bf21b89469a7175d66add2affd6fe765d3a075 10-Mar-2016 Alan Viverette <alanv@google.com> Ensure Outline consistently sets the radius to be undefined

Radius should only be defined when the rect is also defined. Also updates
ArcShape to not return an outline, since it may be convex.

Bug: 27593976
Bug: 27592381
Change-Id: I99010b139361607af6ec8cab26c9aa1d4dcbba77
ndroid/graphics/Outline.java
ndroid/graphics/drawable/shapes/ArcShape.java
1af03b1d5319921c9f898103353f2646975ab0af 09-Mar-2016 Teng-Hui Zhu <ztenghui@google.com> Add the missing overriden API

This is exposed by the CTS test.

Change-Id: Ic25fda1567d8c8504612d4e825dbb646f7db1076
ndroid/graphics/drawable/AnimatedVectorDrawable.java
4a07c34ca86fddb75332eba22a4d7b9bd48205db 09-Mar-2016 Makoto Onuki <omakoto@google.com> Merge "ShortcutManager: add remaining APIs." into nyc-dev
0dda14c671e7c19841f963b0bc665da055738437 09-Mar-2016 Alan Viverette <alanv@google.com> Merge "Add missing annotations, getters to GradientDrawable" into nyc-dev
5f63721a6c2c29e639d8d239834a825c535c034a 09-Mar-2016 Alan Viverette <alanv@google.com> Add missing annotations, getters to GradientDrawable

Fixes getColor() NPE when colors array is null.

Bug: 27543512
Change-Id: Ieec8a2315d0a2e4ab0ddbe053bccdd8c43080857
ndroid/graphics/drawable/GradientDrawable.java
35d44ba4396348511d8032ab586722cfc37ee177 09-Mar-2016 Tenghui Zhu <ztenghui@google.com> Merge "Update the VD and AVD's getOpacity()" into nyc-dev
5504622fb01ab9774b5e73d05f86ee03a8b68ab7 08-Mar-2016 Makoto Onuki <omakoto@google.com> ShortcutManager: add remaining APIs.

- Icons are now persisted. (under /data/system_ce, as PNGs)
- the "load icon" APIs in LauncherApps are supported.
- Implement updateShortcuts()

- Addressed all the comments on the previous CL
- @hide the newly added constructor for PersistableBundle

- Enhance incoming shortcut validation
- A lot of internal clean-up.

Bug 27548047

Change-Id: I8e3c1ccd3e0a997a6d271c84d81170f0c022b60e
ndroid/graphics/drawable/Icon.java
f10d08a3d4968d3dfb4324959e33ebb691899eda 09-Mar-2016 Teng-Hui Zhu <ztenghui@google.com> Update the VD and AVD's getOpacity()

static VectorDrawable should be returning Transparent while root alpha is 0.
AnimatedVectorDrawable running on RenderThread now, and the opacity should
be conservatively set as Translucent.

http://b/27554766

Change-Id: I9a78696cab94f10ba40a733cc9c00f1c2d7ebb7f
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
44027214d4f2154ebc9265912933bac282be3bb4 02-Mar-2016 Doris Liu <tianliu@google.com> Handle multiple animation actions within one frame

Bug: 27438778
Change-Id: I1b14da4bc7b4e82e5b4e45f3eb9ad04e3d7842c4
ndroid/graphics/drawable/AnimatedVectorDrawable.java
f6765f3965ce669458e0bb5d2e226d4233a1acb3 26-Feb-2016 Andreas Gampe <agampe@google.com> Frameworks/base: Refactor Paint & Canvas native allocation support

Put the native allocation support into a holder class. This allows
statically initializing the classes in the boot image.

Bug: 27265238
Bug: 23130675
Change-Id: I857aebfdbaec39067a5eb58afceb49630176af98
ndroid/graphics/Canvas.java
ndroid/graphics/Paint.java
2d3ca47ef83c097e3a1aaa66f2d119be0e93e677 25-Feb-2016 Alan Viverette <alanv@google.com> Always update drawable container source res

Bug: 27349209
Change-Id: I3bb3d4862a03fd5ce0beeb2bf5208f2917ec9320
ndroid/graphics/drawable/DrawableContainer.java
30058435065f392754e749fe43589dd8b452727d 23-Feb-2016 Doris Liu <tianliu@google.com> Merge "Support running AVD on UI thread" into nyc-dev
28cfd20f024a56a927014351c8bdf9d8552603e3 23-Feb-2016 Doris Liu <tianliu@google.com> Support running AVD on UI thread

By default, AVD animates on RT thread. But since in some cases there's a
need for a finer control on when the frame update for the animation should
happen, such as coordiating the AVD animation with other animations that
run on UI thread, we are providing a way to force the AVD to run on UI
thread.

Bug: 27278616
Change-Id: I372ecd3dc52e3fa0bdce3a1e9c19443f9b199027
ndroid/graphics/drawable/AnimatedVectorDrawable.java
921ec4464720ebe5f07a4dcb6e18b86e27baba6e 23-Feb-2016 Alan Viverette <alanv@google.com> Fix NinePatchDrawable handling of density changes

Scaling is now manually applied when the canvas density is not set.

Removes set/getNinePatch accessors that were added in N, since these
are not used and setting the nine patch directly will break padding.
Also removes local NinePatch, which was not necessary.

Bug: 27038114
Change-Id: Ie8b2e485b54d1ed1521081b329a09915fd0a95c1
ndroid/graphics/Outline.java
ndroid/graphics/drawable/NinePatchDrawable.java
c21e8bcb013a6a562aa6288143368d9dba80fef4 18-Feb-2016 Doris Liu <tianliu@google.com> Ensure invalidate is called after start()/reverse()

Change-Id: Iec96ada74cc7b845e21b5f0eb208ff7c7b1071ed
ndroid/graphics/drawable/AnimatedVectorDrawable.java
8b083206aef627b6445a8c6be8bf5bb1d778a7f8 19-Feb-2016 Doris Liu <tianliu@google.com> Revert "Revert "Check RenderNode's owning view before attaching animators""

This reverts commit eb40178af3b7c8d925eaf6c1aa0bef739c8ea47e.

Change-Id: I6838ecb35b50847746ee66ac204f14eb5f579b91
ndroid/graphics/drawable/AnimatedVectorDrawable.java
c4bb185d41cfb960ed9a3178a4f8974c351abdb0 19-Feb-2016 Doris Liu <tianliu@google.com> VectorDrawable native rendering - Step 5 of MANY

This is reverting the revert of what reverts the revert of the original
implementation. Fourth revert is a charm!

This reverts commit df7fdb1e0bdb5c289bbc08047e5c710185503309.

Change-Id: I6fc3a5accfd8b79c3da31bbc101ad9e9b4d6e7dd
ndroid/graphics/drawable/AnimatedVectorDrawable.java
5b7188aebc2401c9c010543eff62ef53036c147b 18-Feb-2016 Doris Liu <tianliu@google.com> Merge "Revert "Revert "Revert "VectorDrawable native rendering - Step 5 of MANY"""" into nyc-dev
b9fb8fdf78ba3369da1fc89932bb8253b9183620 18-Feb-2016 Doris Liu <tianliu@google.com> Merge "Revert "Check RenderNode's owning view before attaching animators"" into nyc-dev
df7fdb1e0bdb5c289bbc08047e5c710185503309 18-Feb-2016 Doris Liu <tianliu@google.com> Revert "Revert "Revert "VectorDrawable native rendering - Step 5 of MANY"""

This reverts commit 0d20a275a5baf8579c8b9111cf2ce6615874a6b6.

Change-Id: I97c782f1164a5d39ab74dc098cca71d9e1b30cd8
ndroid/graphics/drawable/AnimatedVectorDrawable.java
eb40178af3b7c8d925eaf6c1aa0bef739c8ea47e 18-Feb-2016 Doris Liu <tianliu@google.com> Revert "Check RenderNode's owning view before attaching animators"

This reverts commit 12abdeb3c7bffbc7c07b913595f6ea2cb66154d1.

Change-Id: I938deddf5f294127f87a0e70f940fe5b9a85e0b2
ndroid/graphics/drawable/AnimatedVectorDrawable.java
e6e57a9d5175b6e5c874317b232652f481b6f4a4 17-Feb-2016 Doris Liu <tianliu@google.com> Merge "Check RenderNode's owning view before attaching animators" into nyc-dev
5b49c6f31bce6b5ac250178ce004c21d50a48819 17-Feb-2016 Doris Liu <tianliu@google.com> Merge "Revert "Revert "VectorDrawable native rendering - Step 5 of MANY""" into nyc-dev
12abdeb3c7bffbc7c07b913595f6ea2cb66154d1 12-Feb-2016 Doris Liu <tianliu@google.com> Check RenderNode's owning view before attaching animators

-Only add animators to a RenderNode when its owning view is attached
-When changing animator's target RenderNode, remove the animator from
the old target RenderNode that it's currently running on, if any.
Bug: 27141983
Bug: 27145149
Change-Id: I9c9592382d64ecc0390f7ec743a59ce1ad7d9798
ndroid/graphics/drawable/AnimatedVectorDrawable.java
d86d3fd7689676bf18710cfb4d9cb2a6c76b0128 16-Feb-2016 George Mount <mount@google.com> Merge "Set the hover state to the same as focus state in RippleDrawable." into nyc-dev
0d20a275a5baf8579c8b9111cf2ce6615874a6b6 11-Feb-2016 Doris Liu <tianliu@google.com> Revert "Revert "VectorDrawable native rendering - Step 5 of MANY""

This reverts commit e03ef25a3e44ef5d495e366c30b9b5b69fc58194.

Change-Id: I9c2e1c891667451a3ee668e414bf337ad67279ab
ndroid/graphics/drawable/AnimatedVectorDrawable.java
6f1033104d178f8c03857770edf5568947f1af70 13-Feb-2016 Tenghui Zhu <ztenghui@google.com> Merge "Fix the CSL theme support inside VectorDrawable's fill and stroke" into nyc-dev
fb95699364e555148b437cfa1e5c69384f843845 28-Jan-2016 Ben Wagner <bungeman@google.com> Deduplicate font file mappings.

With ttc and gx variation fonts, it is now possible and common that a
number of fonts will use the same font file for data but with different
parameters. In the current code each font will map the font file data,
taking up an unecessary amount of virtual address space and is
inefficient with respect to memory management (like the tlb). This CL
deduplicates these file mappings so that a given font file will only be
mapped into memory once.

DO NOT MERGE
Change-Id: I5ca69f963a434c72ec4028402ecbf9e0f0ee7148
(cherry picked from commit fffcf0a31fd4c9a4ec8aa7de70b1eda0d48fb337)
ndroid/graphics/FontFamily.java
ndroid/graphics/Typeface.java
f7ae8d727bb88e73fbe8087f7385e7cb31b7292d 11-Feb-2016 Teng-Hui Zhu <ztenghui@google.com> Fix the CSL theme support inside VectorDrawable's fill and stroke

b/26774249

Change-Id: I9a9fcdb0e88c4b46ab86c6b3fd780d40b96024db
(cherry picked from commit 15cc49ae521699b70e3b011768b2ae58a7a9b2fd)
ndroid/graphics/drawable/VectorDrawable.java
a87b07d7fafd59ae26073a80cd742b17ea427ecd 06-Nov-2015 Ben Wagner <bungeman@google.com> Add support for gx font variation axes.

This adds an 'axis' child element to the 'font' element. The 'axis'
element has attributes 'tag' (a four byte identifier) and 'stylevalue'
(a float value) to the parser. This also modifies reading the font file
name in a backwards compatible fashion by using only the direct #text
children of the 'font' element. (Both the Minikin and Skia parsers now
allow the font file name on a separate line in the fonts.xml file).

This information is then passed through to Skia in order to select the
desired variation. The Skia parser already parses this way and has for
some time, so Chrome and WebView can already read this format.

Change-Id: I15623fe864fa92b2bf0705af5e389daedfb77e5c
(cherry picked from commit b8e367fb7428076ff2e4aa2a97adaed1ef806e92)
ndroid/graphics/FontFamily.java
ndroid/graphics/FontListParser.java
ndroid/graphics/Typeface.java
e03ef25a3e44ef5d495e366c30b9b5b69fc58194 11-Feb-2016 John Reck <jreck@google.com> Revert "VectorDrawable native rendering - Step 5 of MANY"

Bug: 27136799

This reverts commit 18bdf443e371e9f293439b4ff92cc79abaa422e5.

Change-Id: I825b061eec2a591f2d18119ba64494624b9ad4f2
ndroid/graphics/drawable/AnimatedVectorDrawable.java
18bdf443e371e9f293439b4ff92cc79abaa422e5 02-Feb-2016 Doris Liu <tianliu@google.com> VectorDrawable native rendering - Step 5 of MANY

Implemented reset() (public API for AVD)
and reverse() (internal API that needs to be supported)

Change-Id: Ife1650049f271cad1347943151a5800c40c20aa2
ndroid/graphics/drawable/AnimatedVectorDrawable.java
e4f976dc3b7dd2548deb409b6fd421c6c47f6b42 10-Feb-2016 George Mount <mount@google.com> Set the hover state to the same as focus state in RippleDrawable.

Bug 24810682

There was no hover state for bounded ripples and it was decided
that a solid background color exactly like the focus state
was desired. This change triggers the RippleDrawable to act as
if it is focused when it is hovered.

Change-Id: I94b2a4d03dd4c47fc021c84bb0ba4b4be82f3e95
ndroid/graphics/drawable/RippleDrawable.java
7cd1f0d39ada62669fb9bcd0a71fab059386fcd3 10-Feb-2016 Jorim Jaggi <jjaggi@google.com> Do not invalidate drawable if tint doesn't change

Change-Id: I99d7a679ba3aa4978f2915f1a52f23dbce7fd971
ndroid/graphics/drawable/BitmapDrawable.java
469a828ac78366e0c8e15331ea950e40af48e59e 05-Feb-2016 Doris Liu <tianliu@google.com> Merge "Ref count the nodes in VectorDrawable"
43a5591c8da267e85db9df6c93db73ca29a1bcba 05-Feb-2016 Doris Liu <tianliu@google.com> Merge "Revert "Revert "VectorDrawable native rendering - Step 4 of MANY"""
ef062ebd20032efe697741d6c3dfd1faec54f590 05-Feb-2016 Doris Liu <tianliu@google.com> Ref count the nodes in VectorDrawable

Also added API check so that for pre-N we ignore invalid VD animation,
in order to avoid breaking old apps.

Bug: 26975469
Bug: 26949340
Change-Id: I498539ad6a05de3d886e7dcdc8a167e78333ab11
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
c9088c5d1b1fdba84c151355d95715e86d72b688 05-Feb-2016 Roozbeh Pournader <roozbeh@google.com> Merge "Various LocaleList cleanups"
766431aa57c16ece8842287a92b2e7208e3b8ac3 04-Feb-2016 Doris Liu <tianliu@google.com> Revert "Revert "VectorDrawable native rendering - Step 4 of MANY""

This reverts commit 5a11e8d0ba21624025b89ac63bbd18befa55be0e.

Change-Id: I7a48b59c4f930dad65ddc8590c25a12636244ea2
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
fee44846376c212114223fc4259382921e6dca7a 05-Feb-2016 Roozbeh Pournader <roozbeh@google.com> Various LocaleList cleanups

- Remove the LocaleList#getPrimary() API. It had become confusing
after locale negotiation was completely implemented. For example,
it could create the confusion that calling getPrimary() on the
default locale list would provide the default locale, etc.
- Use the adjusted locale list from LocaleList.getAdjustedDefault()
in Paints created with no locale list provided.
- Change LocaleList#get() to treat out of bound indexes from both
negative indexes and too large indexes the same way.

Bug: 26984092
Bug: 26193251
Bug: 26834387
Change-Id: I75f77aea6b75e38793ed8477e5e5a4420d5e6d85
ndroid/graphics/Paint.java
5bef2fcce86e9d822e3736bd66faa7e6b300c5bb 04-Feb-2016 Jorim Jaggi <jjaggi@google.com> Merge changes If489d2ba,I1fe12181,Ieb4f586a,Ib51163a0,Ifdfcf3ad, ...

* changes:
Hide swipe-up gesture behind tuner flag
When long pressing recents and already docked, undock
More multi-window fixes
Use separate flag to suppress resizes
Only treat "null" bounds as fullscreen
Exclude stable insets from task config
Fix bug where surface was not clipped off during resizing
Fix crash in SysUI when configuration changes
0a932141980b576e0b9bcec9a077f55b7b269a02 02-Feb-2016 Jorim Jaggi <jjaggi@google.com> Exclude stable insets from task config

When a app is in fullscreen, we exclude navigation bar and status bar
size when calculating the config. However, when in multi-window, and
the task was almost fullscreen, the height/width reported to the app
was actually larger than when it was in fullscreen. In order to fix
this, exclude the stable insets when calculating the task
configuration, and also fix a bug when calculating the screen layout.

Change-Id: I843ae012fb3050c79643d125550aacb6e73d27da
ndroid/graphics/Rect.java
5a11e8d0ba21624025b89ac63bbd18befa55be0e 04-Feb-2016 Doris Liu <tianliu@google.com> Revert "VectorDrawable native rendering - Step 4 of MANY"

b/26949340 and b/26975469, b/26975079 as well

This reverts commit f276acd98457bcaabc9e79a17a736b3b484f005e.

Change-Id: I4b55177daf0d289bc03604c71fd4bf579f65073a
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
3aaff80f3232aa4d7aba826a5ad9edd95bc45c65 04-Feb-2016 Doris Liu <tianliu@google.com> Revert "Fix NPE for invalid target exception"

This reverts commit d4fda02dd59adff9553dca5647ebb6c023145d5f.

Change-Id: I73341dc41c7effaa3209107b4e85503b17e2c826
ndroid/graphics/drawable/AnimatedVectorDrawable.java
d4fda02dd59adff9553dca5647ebb6c023145d5f 03-Feb-2016 Doris Liu <tianliu@google.com> Fix NPE for invalid target exception

Change-Id: I57b319fae617792351c6ec9872c3b73cd25dc4e5
ndroid/graphics/drawable/AnimatedVectorDrawable.java
a72d52bbed043b5149c98a1697bf7022e00050b3 03-Feb-2016 Doris Liu <tianliu@google.com> Merge "VectorDrawable native rendering - Step 4 of MANY"
f276acd98457bcaabc9e79a17a736b3b484f005e 07-Jan-2016 Doris Liu <tianliu@google.com> VectorDrawable native rendering - Step 4 of MANY

This CL runs VectorDrawable animation on RenderThread. The changes in this CL
include:
- Convert all the animators in AnimatorSet for AVD into a set of RenderNodeAnimators.
- Hook up the new animators with RenderThread
- Add drawOp in RecordingCanvas for drawing VD so that during the animation
on RenderThread, all the property changes on VD can be reflected on the screen.

TODO:
- Implement reverse and reset for AVD.

Change-Id: I2df1d754f2db0ad098d9c15dde4bb2bdfafc2315
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
c6c89a82144f59475242c75d67529fed943ae30b 29-Jan-2016 Jorim Jaggi <jjaggi@google.com> Fix transition to recents in docked mode

Transition for non-compatible apps will be handled in a separate CL.

Change-Id: I9c474f7aa394e4f3eacd1845c78bee5874bd8a59
ndroid/graphics/Rect.java
dbee9bb342cdfaa5155b1918f90262c05e2464cb 15-Dec-2015 Teng-Hui Zhu <ztenghui@google.com> Gradient for VectorDrawable's fill and stroke

Add ComplexColor interface for both GradientColor and ColorStateList.
Set up constant state, factory, theme attrs for GradientColor, while
refactoring the ColorStateList's similar code. (Functionality in CSL should
be the same).

Support themeing in both the root and item level in GradientColor.
For example, both startColor in <gradient> tag or color in <item> tag can
have theme color.
Add tests for both simple and complex cases with themeing etc.

Hook up the native VectorDrawable implementation using 2 extra JNI calls for
simplicity. Such calls only happen at inflate and applyTheme call.

b/22564318

Change-Id: Ibdc564ddb4a7ee0133c6141c4784782f0c93ce0e
ndroid/graphics/Shader.java
ndroid/graphics/drawable/VectorDrawable.java
f0a7b3b694ee05027a0b667b923bdbf9b664f9d3 26-Jan-2016 Chet Haase <chet@google.com> Fix problem with zero-duration AnimatedVectorDrawables

There was an issue with some vector drawables, particularly those with more
than one underlying, sequential animators, where the final frame would not be
drawn when battery saver mode was enabled (or animators were set to have durations
of 0). This resulted in an incorrect fingerprint graphic on the lockscreen, because
the animation effectively didn't run at all.

The fix is to always invalidate whenever the AnimatedVectorDrawble draws itself. This
causes us to constantly invalidate() the view while the animation is running.

Issue #26591987 Fingerprint icon displayed as dots when batter saver mode is on

Change-Id: I13cbd71fd229db09418c6dcacfec5a13bbb44b2e
ndroid/graphics/drawable/AnimatedVectorDrawable.java
56178b8fcbeed358ce2361708c0e91d6707ec016 15-Jan-2016 Richard Uhler <ruhler@google.com> Merge "Use NativeAllocationRegistry for Paint, Canvas, and Bitmap"
69c2907c6300b976152eb360bc7212e9fdec3f23 15-Jan-2016 Neil Fuller <nfuller@google.com> Merge "Fix @code escapes"
am: b0d92f4717

* commit 'b0d92f4717af4e4736dc80b2a822dae8e5a52587':
Fix @code escapes
9498e8a8d2deb7b0a2e964d5d3c5d3b8747610e9 30-Nov-2015 Neil Fuller <nfuller@google.com> Fix @code escapes

The body of {@code} must not be HTML escaped. This is one of
several changes that fix the source in conjunction with a
doclava fix.

Bug: 25757239
(cherry-picked from commit 71fbb81b14958b80fe55738607740c6630e4e9da)

Change-Id: I19dafddc6501be6fee362c396ac5bbdc934ae39d
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
dfb8cb4580aef56a1f1e286389cdddf24c96792b 14-Jan-2016 Winson <winsonc@google.com> Resetting the native shader instance when the shader changes.

Change-Id: Ib4f8f02d2b777049072e33eabf07d00945c08779
ndroid/graphics/Paint.java
253331c051d4d60ff452a8dc5b33641e8634280e 14-Jan-2016 Alan Viverette <alanv@google.com> Clarify interaction between setPivot() and setPivotRelative()

Change-Id: I108df5170f702b4938b4fe7fa35ed42d4a8a2d5d
ndroid/graphics/drawable/RotateDrawable.java
775873a66a946fae2b0535abb51df9817bd1b20c 29-Dec-2015 Richard Uhler <ruhler@google.com> Use NativeAllocationRegistry for Paint, Canvas, and Bitmap

Bug: 23130675
Change-Id: I3fbd84ba417ac63df75f87ee2c56e3e7f3c9eb46
ndroid/graphics/Bitmap.java
ndroid/graphics/Canvas.java
ndroid/graphics/Paint.java
0ef12aefe548e0d9472e2c23ab3374197a28b6bc 12-Jan-2016 Alan Viverette <alanv@google.com> Clean up LayerDrawable, refactoring only

Uses consistent naming and ordering for padding and inset calculations.
Updates documentation to include UNDEFINED_INSET as public API, since we
return the value and will accept the value as a valid param. Flattens
out RTL logic for readability.

Change-Id: Ie704e2e5fc7f5763500ebe1217ddbbf4d0c5ef86
ndroid/graphics/drawable/LayerDrawable.java
65abc0e3d37e2df3caa6c02624ee7e999e0c1f26 12-Jan-2016 Doris Liu <tianliu@google.com> Merge "Get animation update timing for AVD" into mnc-dr1.5-dev am: a73abeaf4b
am: 7537aa7596

* commit '7537aa75968d127525ef8fba84f365514ae789a3':
Get animation update timing for AVD
fc8e3cb768b7dfd7c0ed0fb93dd9d735887e8d45 07-Jan-2016 Doris Liu <tianliu@google.com> Get animation update timing for AVD

The goal for this change is to get the timing for animation update. Since
AnimatorSet does not support update listeners, we have to go with the a different
approach, which sets up a value animator that runs between the start and end of
the AnimatorSet. We can then get the animation update timing from the ValueAnimator.

Bug: 26329675
Change-Id: Ibe7fce81eb6da5e05c87a732c1d3bc904b4e5e6f
(cherry picked from commit I378a0964da8f7090f65f6b56275a302e30668835)
ndroid/graphics/drawable/AnimatedVectorDrawable.java
c03c596a537df81bcb0ab4629e56c2ce1be4c0ed 08-Jan-2016 Matt Sarett <msarett@google.com> Merge "Deprecate mCancel in BitmapFactory.Options API"
51b75386a8f6a90e833002d2d1fed928039841e7 07-Jan-2016 Matt Sarett <msarett@google.com> Deprecate mCancel in BitmapFactory.Options API

This is a follow-up to:
https://googleplex-android-review.git.corp.google.com/#/c/837260/

BUG:26266063
Change-Id: I4a5a9c7bd1f04f27f096ce74668d1509791e1952
ndroid/graphics/BitmapFactory.java
0671f05fa94a234652c1cf3c6e0c2e123566f76f 07-Jan-2016 Alan Viverette <alanv@google.com> Revert ripple background fast-enter behavior to M style

No longer fast-enters the background for unbounded ripples.

Bug: 25602850
Change-Id: I3250505c1de04a72fb764174abf269e247e21578
ndroid/graphics/drawable/RippleBackground.java
ndroid/graphics/drawable/RippleDrawable.java
7ee860c4164bb2b763376ff2c130a9be2766d26c 06-Jan-2016 Chris Craik <ccraik@google.com> Merge "Add missing @deprecated comments to canvas methods"
8190e5dca4d1ea42e34728122f4fd8c91013c8f9 05-Jan-2016 Doris Liu <tianliu@google.com> Merge "Avoid calling invalidateSelf() from draw call"
841f6e19ba8289c8c0953cbfdbad60590eda3c32 04-Jan-2016 Doris Liu <tianliu@google.com> Avoid calling invalidateSelf() from draw call

Bug: 26329675

Change-Id: Ieb76b6f63a5139f6033ca9baa9ba6fac36ae466c
ndroid/graphics/drawable/AnimatedVectorDrawable.java
e3b8f255cf8e74cccaee49235333994f51852125 04-Jan-2016 Matt Sarett <msarett@google.com> Merge "Make BitmapFactory.Options API Changes"
5e2496bcee239ce9ebeff6022b7badf81d87492c 18-Dec-2015 Matt Sarett <msarett@google.com> Make BitmapFactory.Options API Changes

This changes the documentation for inPreferQualityOverSpeed,
inDither, and requestCancelDecode().

These changes are a result of modifying the backends of
BitmapFactory and BitmapRegionDecoder to be faster, higher quality,
and to use standard libraries.

BUG:26266063
BUG:25556965
Change-Id: I9008fd276a38c737e242bcc6930ffe4e36d9fd1d
ndroid/graphics/BitmapFactory.java
4bbc2931263b232fba61807fca00e127573eff42 02-Dec-2015 Doris Liu <tianliu@google.com> VectorDrawable native rendering - Step 3 of MANY

- Refactored VPathRenderer & VectorDrawableState
- Moved all the VD rendering into native
- Set up hooks for VD's property changes in JNI for animated VD

TODO: JNI calls can be further reduced when we convert the animation
in AVD to use RenderNodeAnimator, in which case animation will be
driven from native and therefore most of the JNI hooks for changing
VD's properties during animation will no longer be needed.

Change-Id: I52021f4d7bea057b83ace54085d870dd45acae0f
ndroid/graphics/drawable/VectorDrawable.java
bb9f686b40743df2642b7d3b7778dbf7284ae665 01-Dec-2015 Philip P. Moltmann <moltmann@google.com> Allow a print service to specify per printer icons, description and
info-activities

The icon is loaded from the discovery session only when it is displayed
to avoid having to store too many icons in memory.

Also the icons are not maintained in the historical printers. Only if
the printers are available nice icons are shown. A historical printer is
updated with the appropriate properties (including icon) once it becomes
available.

Bug: 24135005
Change-Id: Iec389bab514b024634be8fb5fc8928371cba8740
ndroid/graphics/drawable/Icon.aidl
eda57925cafdf1dab451e70052dea27846f368b4 18-Dec-2015 Chris Craik <ccraik@google.com> Add missing @deprecated comments to canvas methods

bug:25311154

Change-Id: Ie89e2160969eb7b4187f28ab4b0342804cf67724
ndroid/graphics/Canvas.java
92c11864c7b4901db90f88ec025d9a773454e7f6 18-Dec-2015 Chris Craik <ccraik@google.com> Correct drawLines annotations

Change-Id: I161e419a3ce427e10d802ba692679ad671e23dde
ndroid/graphics/Canvas.java
8349b7a063824dcbf3291d308aafd1dfbae3c76c 12-Dec-2015 Ben Wagner <bungeman@google.com> Use 'index' instead of 'ttcIndex' for attribute name.

There are two reasons for this. First, the name 'ttcIndex' is over
specific, there are many indexed font containers in addition to ttc,
such as fon, pfr, bdf, and dfont. There may be others in the future.
Second, Skia implemented this attribute with the name 'index' quite
some time ago. By naming this attribute 'index' even existing apps will
be able to use this attribute (including Chrome).

BUG: 10861108
Change-Id: I68d2b69fad304d93313f96bf3365af71906dfe69
ndroid/graphics/FontListParser.java
ac3f10f153319e2494fb57a90360031f148e404c 11-Dec-2015 Seigo Nonaka <nona@google.com> Fix invalid API use of XmlPullParser.getAttributeValue.

The 1st argument of the getAttributeValue is a namespace of the xml.

Bug: 10861108
Change-Id: I73fd15eca7101b745870ca7b6509b1dbfcc9b0d7
ndroid/graphics/FontListParser.java
3fa667e22401bf3ba96957fe31167bf05d164c55 10-Dec-2015 Seigo Nonaka <nona@google.com> Introduce ttcIndex attribute into system font configuration.

ttcIndex is used for specifying index of the TrueType Collection.
No user visible change is expected with this CL.

BUG: 10861108
Change-Id: I76a1c890164bb55a7ece7b9c7db2ce2bac3f8b89
ndroid/graphics/FontFamily.java
ndroid/graphics/FontListParser.java
ndroid/graphics/Typeface.java
44581ff4db54bbaa30365ed210e67a0369576100 08-Dec-2015 Yin-Chia Yeh <yinchiayeh@google.com> Camera: add RAW_PRIVATE format

Also add necessary plumbing for RAW_PRIVATE to work for ImageReader.

Bug: 25596619
Change-Id: Ic90f3f44264ac46fae1fafbc27ac64b5319f0970
ndroid/graphics/ImageFormat.java
3899902fe751d841e0dc6c7e5c2700bd85f4fb44 09-Dec-2015 Seigo Nonaka <nona@google.com> Merge "Introduce cache mechanism for LocaleList."
ea4bef7386ca6c6260f292bf006d16a99b93f698 03-Dec-2015 Selim Cinek <cinek@google.com> Removed duplicate content from group notification header

Previously the headers all had duplicate content, which is
now optimized to look visually more appealing.

Change-Id: I38ed8db1985fd8a9470888e1b7e1e6b0f2e23b19
ndroid/graphics/drawable/Icon.java
d35c13df6e9befe6e63a10f7ef83183e7682affa 08-Dec-2015 Alan Viverette <alanv@google.com> Merge "Attach drawable resource ID and name to getDrawable() exceptions"
c078c605ab904b0e4a5d793cbeffd78c340f2816 08-Dec-2015 Alan Viverette <alanv@google.com> Attach drawable resource ID and name to getDrawable() exceptions

Wraps the entire getDrawable() method in a try/catch block. Clears the
stack trace from the re-thrown exception, since we only need the trace
from the original exception.

Also clears stack traces from re-thrown RuntimeExceptions in applyTheme
implementations.

Change-Id: I92396abf9e748eef78777174b297a09e118f5e70
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
cfc607cf57d453f977c9c4bf09b41ac481c4bbec 02-Dec-2015 Seigo Nonaka <nona@google.com> Introduce cache mechanism for LocaleList.

Setting the LocaleList to the native Paint object is not a lightweight
operation since it needs to propagate a string object to the native code
which then needs to parse it for making minikin language list.

To avoid performance regressions, cache the minikin language ID in
android.graphics.Paint and send the LocaleList with cached ID
instead of a string the next time native code is called.

BUG: 25122318
Change-Id: Ib5ce8bcff8a1c0a2b1a1c3d1868ea8be5a0e642f
ndroid/graphics/Paint.java
f3dc7ac7242046d70e4ffee41fd7dbc9b9674ec0 07-Dec-2015 Chris Craik <ccraik@google.com> Correct GradientDrawable outline alpha computation

bug:26066107

GradientDrawable should provide a shadow casting outline if using a
translucent fill.

Change-Id: Ie6b409bafe3fcf9c5216662168d7349e2a9e3413
ndroid/graphics/drawable/GradientDrawable.java
568f4de11a87308cbcb888083f02818a8290a7d7 03-Dec-2015 Neil Fuller <nfuller@google.com> Merge "Fix @code escapes"
71fbb81b14958b80fe55738607740c6630e4e9da 30-Nov-2015 Neil Fuller <nfuller@google.com> Fix @code escapes

The body of {@code} must not be HTML escaped. This is one of
several changes that fix the source in conjunction with a
doclava fix.

Bug: 25757239
Change-Id: Ib38a0fa2dd2a3d68e467f78a812071e763d7e881
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
0d3d1f825f399c62f2ba236b53bef17581e03a16 02-Dec-2015 Sungsoo Lim <sungsoo@google.com> Fixed typos: when when

Change-Id: I80c0b8817dcbed45071e42d9ffa88bae52a93a81
ndroid/graphics/Canvas.java
c34f1b093f978bd67ed5f6eb9ff3b0c9dd8126e1 30-Nov-2015 John Reck <jreck@google.com> Fix RippleDrawable exit animation

Bug: 25602850

The exit-out animation doesn't want to animate from the current
value, but rather the final value of the exit-in animation

Change-Id: I1cd12b0653b5241c6e21ef1cca86b0a83ce9c5a2
ndroid/graphics/drawable/RippleBackground.java
61ffc199f24f6817f45e41df06bd27d28521bacd 19-Nov-2015 Alan Viverette <alanv@google.com> Merge "Apply VectorDrawable density scaling before applying theme"
d633ca417d3925521ab15fba1c0cdac172efb184 19-Nov-2015 Alan Viverette <alanv@google.com> Apply VectorDrawable density scaling before applying theme

Refactors density handling to look more similar to GradientDrawable's
implementation, which should make things easier to maintain. We no
longer update density directly in updateStateFromTypedArray, instead
handling it in applyTheme() and inflate().

Lazily calculates local density-dependent dimensions and invalidates
when the constant state density changes, which should ensure a random
call to applyTheme() will still result in the correct intrinsic
dimensions.

Change-Id: I726878a6cd75d38a550637e3e7a7b6bc68bcaf6d
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/VectorDrawable.java
804618d0863a5d8ad1b08a846bd5319be864a1cb 17-Nov-2015 Doris Liu <tianliu@google.com> VectorDrawable native rendering - Step 2 of MANY

Introduced PathData in Java, which is effectively a thin layer around the
native instance. PathData holds the verbs and points which is being used
in path morphing/interpolation. The verbs and points can be interpreted
into skia path commands, which is now done in native and therefore saves
a handful of JNI calls during path creation.

Removed the old PathDataNode mechanism and changed the PathEvaluator
to use PathData instead.

Also added tests and a microbench. Also ran CTS tests for VectorDrawable
and AnimatedVectorDrawable, and passed all of the existing tests.

Change-Id: Ia166f5172ff031fe18b154327967f911a62caec1
ndroid/graphics/drawable/VectorDrawable.java
477f3d092db302d24dcaa77bbcdd1026c9a468a4 13-Nov-2015 Alan Viverette <alanv@google.com> Obtain cached drawables using the correct Resources object

Previously we were discarding the Resources when forwarding from the
two-arg factory method to the one-arg method. This CL also updates the
documentation for ConstantState to be slightly more comprehensive.

Bug: 25688078
Change-Id: I4fbbf43f95fe792fa6f0bf9db8fd9a7cbfa51d1d
ndroid/graphics/drawable/Drawable.java
b6181565e5a96f9922c2c0ca7dd78a894a6ba224 13-Nov-2015 Alan Viverette <alanv@google.com> Merge "Return correct intrinsic dimensions for inset colors"
76165b2a4bc3b618bdfa9e4286d405892b68f122 12-Nov-2015 Alan Viverette <alanv@google.com> Return correct intrinsic dimensions for inset colors

Also updates documentation for getIntrinsicWidth/Height to accurately
reflect the behavior of the existing implementations and provide an
explanation of what "intrinsic" means.

Bug: 25646242
Change-Id: I11daf57e598148adfda922cfc1ba31ed48a16bd7
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/InsetDrawable.java
bd5294bcb857a48ad22ddd54b13208ec2903c3f6 11-Nov-2015 Alan Viverette <alanv@google.com> Pass densityDpi into RippleComponent, store as densityScale

Fixes a regression where the foreground was created against the density
in DPI rather than as a scale factor.

Bug: 25602850
Change-Id: Ia871aa5def4319682a73228efb599f31b65afdb6
ndroid/graphics/drawable/RippleComponent.java
ndroid/graphics/drawable/RippleDrawable.java
ndroid/graphics/drawable/RippleForeground.java
9db60f4e5b6a982f539a8f6e857ed1a929719f23 06-Nov-2015 Alan Viverette <alanv@google.com> Merge "Mutate DrawableContainer children immediately after inflation"
9b4bdeff6dea5a24a3085a17d2dde9003642af79 06-Nov-2015 Alan Viverette <alanv@google.com> Mutate DrawableContainer children immediately after inflation

Previously we would only mutate children when they were displayed, so
applyTheme() calls would be applied to the shared constant state. Now
we mutate() immediately after obtaining the child, which ensures we
have a clean constant state. This also allows us to remove extra
mutate() calls, since we know all child drawables are already mutated.

Bug: 25081461
Change-Id: I52390db268690a8e181f5b9bbe612b7ed6ce9359
ndroid/graphics/drawable/DrawableContainer.java
22e27ccf79f4c334f84b329ab9685d95555eae9d 06-Nov-2015 Alan Viverette <alanv@google.com> Merge "Correctly handle child drawables with no intrinsic size"
1259f616c26f89dd5000745d7c364fae41b23682 05-Nov-2015 Alan Viverette <alanv@google.com> Use ConstantState directly instead of ConstantStateFuture

All of the functionality of ConstantStateFuture has been moved into
prepareDrawable. We don't need the extra wrapper class.

Change-Id: I452b13320a838a23c8ec0dd486a89bf383142d7b
ndroid/graphics/drawable/DrawableContainer.java
29869c3893c347c592b650d0c63d1e4264918c01 04-Nov-2015 Riley Andrews <riandrews@google.com> Merge "Convert ashmem bitmap thresholds to constants." into mnc-dr-dev am: c8bb39d98d am: 2c740f1dcf am: 6c1144dc0f
am: 132bb1e4b1

* commit '132bb1e4b10755d2bc0810135511fd999badbe4b':
Convert ashmem bitmap thresholds to constants.
132bb1e4b10755d2bc0810135511fd999badbe4b 04-Nov-2015 Riley Andrews <riandrews@google.com> Merge "Convert ashmem bitmap thresholds to constants." into mnc-dr-dev am: c8bb39d98d am: 2c740f1dcf
am: 6c1144dc0f

* commit '6c1144dc0f8b2452ca2a204ca471e2d23339d5a3':
Convert ashmem bitmap thresholds to constants.
ab099c496b0136a4ad990af02b4ff9f8e4dccb9c 04-Nov-2015 Alan Viverette <alanv@google.com> Correctly handle child drawables with no intrinsic size

If a child drawable has no intrinsic width or height, don't attempt to
apply padding and insets to the child during the parent layer drawable's
intrinsic width and height calculations.

Bug: 25461370
Change-Id: Idf616bde0449231f38156da53feb858e1ae41c47
ndroid/graphics/drawable/LayerDrawable.java
0394a0c399582d4401646cf2324f3148c3028531 04-Nov-2015 Riley Andrews <riandrews@google.com> Convert ashmem bitmap thresholds to constants.

Bug 25256717

Change-Id: I23e2795ef8798d83bf60dcbd6ff2e7093fcaa9b0
Signed-off-by: Riley Andrews <riandrews@google.com>
ndroid/graphics/drawable/Icon.java
18896e08938bc1e1fcb7928996803af935b826b7 04-Nov-2015 Ian Pedowitz <ijpedowitz@google.com> Merge "Limit persistent ashmem backed fds to a minimum of 128kB." into mnc-dr-dev am: 966d6040c6 am: 95fc53b029 am: d6f3e38738
am: 87455c7397

* commit '87455c7397605fba4bf3ad04af8df3c599a7a6ba':
Limit persistent ashmem backed fds to a minimum of 128kB.
87455c7397605fba4bf3ad04af8df3c599a7a6ba 03-Nov-2015 Ian Pedowitz <ijpedowitz@google.com> Merge "Limit persistent ashmem backed fds to a minimum of 128kB." into mnc-dr-dev am: 966d6040c6 am: 95fc53b029
am: d6f3e38738

* commit 'd6f3e38738c88821b28b2571d034fc1b189a35de':
Limit persistent ashmem backed fds to a minimum of 128kB.
4d47d2595e3753b0f1be5ff59de100a073141593 03-Nov-2015 Alan Viverette <alanv@google.com> If LayerDrawable child doesn't have constant state, use shallow copy

Avoid NPE if mutate() is called on a LayerDrawable with a child that
doesn't support constant state.

Bug: 25438651
Change-Id: I6bf5a90484fda44a7b5fd10ce7b798eaa799b68e
ndroid/graphics/drawable/LayerDrawable.java
8cee7c17119b204be88860feb812f2374d0de732 02-Nov-2015 Riley Andrews <riandrews@android.com> Limit persistent ashmem backed fds to a minimum of 128kB.

Bug 25256717

Change-Id: Ieb356006df0a6545b89de44d3d8fd4b46312b3b8
Signed-off-by: Riley Andrews <riandrews@google.com>
ndroid/graphics/drawable/Icon.java
36555baa556a1531b6b6edc2dea1de5469f74b64 02-Nov-2015 Alan Viverette <alanv@google.com> Merge "Support for changing density of GradientDrawable"
ce52037e0ae0c380f5b834fb3dad105bfaf5e374 30-Oct-2015 Alan Viverette <alanv@google.com> Support for changing density of GradientDrawable

Refactors density resolution and offset/size scaling into static
helper methods.

Also fixes VectorDrawbale insets to be treated as offset-type pixels
rather than size-type.

Bug: 25081461
Change-Id: I10fcb9ebb6c67f853a27ca0ee008c31af4b85da0
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
7e3ede288926bdfb79b1571fed74cad614935821 28-Oct-2015 Alan Viverette <alanv@google.com> Support for changing density of DrawableWrapper subclasses

Includes a refactoring of DrawableWrapper classes so that the wrapper
super class handles both drawable management and inflation. This allows
us to immediately call through to super() in inflate and applyTheme,
which simplifies density management.

Bug: 25081461
Change-Id: I8c157d340fd1f28a3a2b786c56850a67cdd452e4
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableWrapper.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
0cacad7023ad30ad886ef85751e9e39b10f846f9 28-Oct-2015 Alan Viverette <alanv@google.com> Apply density scaling in LayerDrawable and subclasses

Bug: 25081461
Change-Id: I48e62caf5017ff2dd84cf62b68a828f4542b6ae5
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
b6e66624629448b7a8c8d5d1ec62f87ba109546d 26-Oct-2015 Filip Gruszczynski <gruszczy@google.com> Improve infrastructure for replacing windows.

We need to be more precise when removing the window that is being
replaced. We used to depend on the fact that we can remove it after
the first draw of the new added window. However, due to resizing the
old window might reset its draw state and that will trigger a removal
of that window.

We need to add an information about the window that is replacing the
old one and only when this new window draws itself, we remove the old
one.

This improves the transition after maximizing docked window. This is
a situation where first resize operation finishes and immediately
after we have a replacement operation.

Bug: 24914011
Change-Id: Ia8e5bb7872787e663ba23f26588f9c4db1a5e574
ndroid/graphics/Point.java
e1e654d09e2b2638b98612e05e879811401012f2 23-Oct-2015 Roozbeh Pournader <roozbeh@google.com> Merge "Pass the whole locale list down to Minikin."
f036ead2a218ffa43697fcaa999b666a4c6d13cf 20-Oct-2015 Roozbeh Pournader <roozbeh@google.com> Pass the whole locale list down to Minikin.

Also, compute LocaleList's string representation at construction.
This is to further push the cost of doing costly operations related
to LocaleLists to construction time.

Change-Id: Ia55b8ce66b1088ff54cb42eb1e11149b5bd10f17
ndroid/graphics/Paint.java
8cab9b5f1decf5ec10e4e6638323716fdc573dd3 22-Oct-2015 Alan Viverette <alanv@google.com> Merge "Reset constant width/height when DrawableContainer density changes"
f1f5f6fcaa768c5b88e9a56f18cbd6ecf72755a8 21-Oct-2015 Alan Viverette <alanv@google.com> Reset constant width/height when DrawableContainer density changes

Bug: 25081461
Change-Id: I9661e964e1d0bacd337e31073faf870d37939b51
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/LevelListDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
4a94faa0c74c7ad4defdc6e2fa937c93a4d0b5af 21-Oct-2015 Alan Viverette <alanv@google.com> Scale density correctly on VectorDrawable.applyTheme()

Bug: 25081461
Change-Id: I012e0932e67bc51502dc00e11131218af1377115
ndroid/graphics/drawable/VectorDrawable.java
a3ee41b6335bef38c9ac1114fcd7f20b81081a78 20-Oct-2015 Alan Viverette <alanv@google.com> Apply density scaling when updating from typed array

Ensures that density scaling is applied to default dimension values
where needed. Previously, scaling was only applied when a drawable
was loaded from cached constant state; however, drawables that were
preloaded against a different density and first loaded in some other
density were not scaled.

Bug: 25081461
Change-Id: I0f8058cc01e2fe8d6bd7e255eba40485f3cbe48b
ndroid/graphics/drawable/VectorDrawable.java
02f633d4cf0bd0c49c4b53ead92638f8a5df7a6b 19-Oct-2015 Alan Viverette <alanv@google.com> Clean up VectorDrawable usage of stroke and fill color state lists

Only store stateful CSLs; otherwise, just use the default (e.g. the
only available) color.

Bug: 25074102
Change-Id: I050c89841d4c6bf22473a66c713a845b0358dc94
ndroid/graphics/drawable/VectorDrawable.java
2a6a2c2de8ce2743679f488f056f22cd1adfd726 14-Oct-2015 Filip Gruszczynski <gruszczy@google.com> Change WindowState.mShownFrame to WindowState.mShownPosition.

We never use this field as a rectangle, we only depend on its left-top
corner. Using a frame is only confusing about the purpose of this field.

Change-Id: I5d6e6321db4fa3203bb7e0f1975ae6ddd1ec09bb
ndroid/graphics/Point.java
dbffd250003e60c0f11ac3ad2b63f91f67962610 01-Oct-2015 John Reck <jreck@google.com> Fix Paint's JNI

Bug: 22409077
Change-Id: I99e1a11bf14f5b62c41107528f573eaf9f2d4b2f
ndroid/graphics/Paint.java
2c53a0759742eeec8f123ad81b7a26aef222c378 29-Sep-2015 Keisuke Kuroyanagi <ksk@google.com> Merge "Consolidate native methods for text measurement."
536afe6ef79a663e59c3b9781c561f7029ee9319 29-Sep-2015 Keisuke Kuroyanagi <ksk@google.com> Consolidate native methods for text measurement.

Bug: 24505153

Change-Id: I6a00b0516442f7d6108ed0598516365310bd85e8
ndroid/graphics/Paint.java
e72a703a95156313f6c17540762f6dcd37b7d7e4 23-Sep-2015 Alan Viverette <alanv@google.com> Add attribute for specifying initial ScaleDrawable level

Bug: 19182305
Change-Id: Ic1f183db6183017352babc6dc190fdb9124c285a
ndroid/graphics/drawable/ScaleDrawable.java
50c29cd92f4fc410f61e2d14ce77f5e8e76daf0b 22-Sep-2015 Alan Viverette <alanv@google.com> Allow color state list for vector drawable fill and stroke

Removes unnecessary invalidateSelf() from VD.onStateChange(). This is
handled by the view hosting the drawable.

Bug: 22984152
Change-Id: Idf11a0ffef392cb1d8452aa3f5f836b35027a756
ndroid/graphics/drawable/VectorDrawable.java
a02d2748be353393b7b593d5adbd37d80dee427d 16-Sep-2015 Alan Viverette <alanv@google.com> Clean up DrawableContainer.selectDrawable() docs, params

Change-Id: Ic38cbb4a21dab452950ba0e308ceba3cbe966363
ndroid/graphics/drawable/DrawableContainer.java
6fe1ea778ca66911a18c01eb1eb2a80137294681 14-Sep-2015 Alan Viverette <alanv@google.com> Merge "Revert "Use floating-point value for Drawable level""
0b6cfe22fda3396b4790ac79fc90488bec4a49a4 14-Sep-2015 Alan Viverette <alanv@google.com> Revert "Use floating-point value for Drawable level"

This reverts commit 3da32b768899e7dabe3a16333edf5eca2b9ebe93.

Change-Id: Ie75ce0c285e0f59a7a086f64c0cfe088edb5df04
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/DrawableWrapper.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/LevelListDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
28aa456ac8e42e4d5e9d8c20736288b7017eae4d 10-Sep-2015 Hans Boehm <hboehm@google.com> am 1d815272: am 58c27e3e: am c0ce6c42: Merge "Reduce risk of memory corruption due to finalization."

* commit '1d8152726b7ef2094f2e99619581c2abd2117381':
Reduce risk of memory corruption due to finalization.
1d8152726b7ef2094f2e99619581c2abd2117381 10-Sep-2015 Hans Boehm <hboehm@google.com> am 58c27e3e: am c0ce6c42: Merge "Reduce risk of memory corruption due to finalization."

* commit '58c27e3e53ef64072412515792433e570a176f15':
Reduce risk of memory corruption due to finalization.
58c27e3e53ef64072412515792433e570a176f15 10-Sep-2015 Hans Boehm <hboehm@google.com> am c0ce6c42: Merge "Reduce risk of memory corruption due to finalization."

* commit 'c0ce6c422cfe089e7a8e209ac924e37bed3ca770':
Reduce risk of memory corruption due to finalization.
ffa84e008c712ceffa09d6b89a49882c88b3cca5 12-Nov-2014 Hans Boehm <hboehm@google.com> Reduce risk of memory corruption due to finalization.

Many classes in graphics/java and elsewhere deallocate native memory
in a finalizer on the assumption that instance methods can no longer
be called once the finalizer has been called. This is incorrect if
the object can be used, possibly indirectly, from another finalizer,
possibly one in the application.

This is the initial installment of a patch to cause such post-finalization
uses to at least see a null pointer rather than causing memory corruption
by accessing deallocated native memory. This should make it possible to
identify and fix such finalization ordering issues.

There are more graphics classes that need this treatment, and probably
many more in other subsystems.

This solution is < 100% effective if finalizers can be invoked
concurrently. We currently promise that they aren't.

(In my opinion, the real cause here is a language spec bug. But that ship
has sailed.)

Bug: 18178237
Change-Id: I844cf1e0fbb190407389c4f8e8f072752cca6198
ndroid/graphics/Interpolator.java
ndroid/graphics/MaskFilter.java
ndroid/graphics/Matrix.java
ndroid/graphics/NinePatch.java
ndroid/graphics/Paint.java
ndroid/graphics/Path.java
ndroid/graphics/PathEffect.java
ndroid/graphics/PathMeasure.java
ndroid/graphics/Picture.java
ndroid/graphics/Region.java
ndroid/graphics/RegionIterator.java
ndroid/graphics/Shader.java
ndroid/graphics/Typeface.java
660383cfa7f2d2521708155715aeeea1fa0ff287 04-Sep-2015 Alan Viverette <alanv@google.com> Merge "Use floating-point value for Drawable level"
a72f59a858ebda3d96583502d8ac02443d6223c3 04-Sep-2015 Snild Dolkow <snild.dolkow@sonymobile.com> Update mFillPaint color on GradientDrawable inflation

When a GradientDrawable is loaded from scratch, initializeWithState()
is called with mColors == null. This sets mFillPaint's color to
0x00000000 -- transparent. mColors is then properly set in inflate(),
but mFillPaint is not updated there. It will be updated eventually
through a mutate() or ensureValidRect() call, but that's sometimes too
late.

In our case, a wrapping StateListDrawable called getOpacity(), and
since it caches the result, it never got updated.

This doesn't cause any problems on preloaded GradientDrawables, since
the new GradientDrawable created when fetching a preload will call
initializeWithState() in its constructor, fixing the GradientState.

Change-Id: Ic8caa7c6a7c1d4dae5ff31ae943831bd2e014f79
ndroid/graphics/drawable/GradientDrawable.java
084938f2a1b8224bf9ada8a4bc3b48b5cf9275e9 02-Sep-2015 Doris Liu <tianliu@google.com> Check whether AnimationDrawable is one shot only when visibility changes

When AnimationDrawable becomes VISIBLE again, the current behavior is to
start the Drawable from the first frame if it's not running. For one shot
AnimationDrawable, it should start once and stay on the last frame.

Bug: 23725157
Change-Id: I5f3095aa00b07fefe7f992851d4190f268c266b2
ndroid/graphics/drawable/AnimationDrawable.java
3da32b768899e7dabe3a16333edf5eca2b9ebe93 02-Sep-2015 Alan Viverette <alanv@google.com> Use floating-point value for Drawable level

This allows us to run fine-grained level animations.

Backwards compatibility:
Another CL will add DrawableCompat.setLevel(float) to forward calls to
the existing integer-based method. For callbacks, developers can override
onLevelChanged(int) and use DrawableCompat.getLevelFloat() to obtain the
floating-point level. Overriding onLevelChanged(float) will only work on
current API.

Bug: 23566299
Change-Id: I431fe6f3679c8f23f9cf3c2bb1f92a4059ee68e3
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/DrawableWrapper.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/LevelListDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
008d6d034ea68a7ccc5b7c454f642fcaaf9dc2cb 01-Sep-2015 Roozbeh Pournader <roozbeh@google.com> Merge "Add LocaleList support to Paint and TextView."
a23748a9ff9ddc8b490fc31752afa9b955d5e156 31-Aug-2015 Roozbeh Pournader <roozbeh@google.com> Add LocaleList support to Paint and TextView.

This keeps the existing single-locale APIs working (and adds
parameter annotations to them), while adding an API for setting and
getting the whole locale list. At the moment, the implementation
ignores the actual data in the locale list except for its primary
locale.

Also add a method to LocaleList to return the system's default locale
list. (Currently a one-member list just containing the system
default locale.)

Change-Id: Icea9d164ddae51f50dd71e18b5d91c96f233b8b8
ndroid/graphics/Paint.java
d54e993924da465018f41a84f6aa9f273aa7c9f5 01-Sep-2015 Alan Viverette <alanv@google.com> Refactor VectorDrawable to use VObject for paths and groups

Cleans up collection typing and encapsulation. VObject encapsulates
inflation, theme application, and drawing. VFullPath is responsible
for rendering nodes to a Path.

Change-Id: Ic760576d8000c4844ec3cab1b4bbcecb4fa1b760
ndroid/graphics/drawable/VectorDrawable.java
8e88b378336d83b5d026b9cd1a0c1cd6703f7369 31-Aug-2015 Alan Viverette <alanv@google.com> Merge "Implement missing jumpToCurrentState() in LayerDrawable"
9151a6995150f7c0495b98b0da59c4b9d5343167 31-Aug-2015 Alan Viverette <alanv@google.com> Implement missing jumpToCurrentState() in LayerDrawable

Bug: 23674536
Change-Id: Icf1a4248d82484e48a958ce019b1f9cb0caeac9e
ndroid/graphics/drawable/LayerDrawable.java
c725e8d5ea04ffb5821e00db1c6b45cfe2130e05 31-Aug-2015 Alan Viverette <alanv@google.com> Add missing @param in ResourceManager, set InflateException source

Bug: 11695070
Change-Id: I94a4980688a952c1f59f1cb15cf2192e3c51de90
ndroid/graphics/drawable/DrawableInflater.java
caca720b176a0dab0a43a20496e676687e8d78f7 28-Aug-2015 Alan Viverette <alanv@google.com> Allow inner classes to be used as custom drawables

Bug: 22627299
Change-Id: I2f21927966470594f1b96feac6d5abaa397f2d15
ndroid/graphics/drawable/DrawableInflater.java
02fc5fef36357467eba22a0ee250a96734daf791 27-Aug-2015 Alan Viverette <alanv@google.com> Extract drawable inflation to its own class, inflate from class name

Bug: 22627299
Change-Id: Icd2ac88af4f3102e08e52f6f0f7565839da6437a
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableInflater.java
e0367d26c9af7cc4b3dbe0b7a48fded1860938e2 26-Aug-2015 Jorim Jaggi <jjaggi@google.com> am b98adf20: am bdb151ea: am 4816d7d5: am e30e8980: Merge "Disable RT animations for header ripple" into mnc-dr-dev

* commit 'b98adf20a0f27a8e717b627801632766547121a2':
Disable RT animations for header ripple
191ac0a72b0a7ba883d9cebee6eff71fbea4ef17 24-Aug-2015 Alan Viverette <alanv@google.com> Reverse order of RT animations so enter animation works correctly

Bug: 23428182
Change-Id: Id54ad19c6ee71e01656f79d413e45cf2e19bd1ea
ndroid/graphics/drawable/RippleBackground.java
b7303a36baf8d0ac3efdeeee3310ef5974ba9cea 20-Aug-2015 Jorim Jaggi <jjaggi@google.com> Disable RT animations for header ripple

Bug: 22208997
Change-Id: I10a890d4f8f70c7c786940ffdb86cf4d21bdaf05
ndroid/graphics/drawable/RippleBackground.java
ndroid/graphics/drawable/RippleComponent.java
ndroid/graphics/drawable/RippleDrawable.java
ndroid/graphics/drawable/RippleForeground.java
1303a118029da41ab1263f907053e64cafed7816 20-Aug-2015 Alan Viverette <alanv@google.com> am e5b44d5c: am 5646203c: am 63e9875a: am 786529f2: am 54c807e7: Merge "Translate ripple mask to account for drawable bounds" into mnc-dev

* commit 'e5b44d5c66d19dda8c6fb42615c00e6fbef7e822':
Translate ripple mask to account for drawable bounds
f0d69b9e33e32b60bf953fc775b7843825e99036 20-Aug-2015 Alan Viverette <alanv@google.com> Translate ripple mask to account for drawable bounds

Bug: 23354529
Change-Id: Iaa4fde6b37645492cf902f141f975bdef8e7e14e
ndroid/graphics/drawable/RippleDrawable.java
1ad545d207db840d0e403569ce214431eead4217 20-Aug-2015 Derek Sollenberger <djsollen@google.com> Fix path direction enum to match native SkPath values

Change-Id: I4010e400cef0baf6dd23d7f7e837a2bfb7154059
ndroid/graphics/Path.java
4c5efe9290543b723b76a8bd48518da1ae1dcb26 10-Jul-2015 Derek Sollenberger <djsollen@google.com> Add ninePatch support to Canvas.h

Change-Id: Ic095291fe55911c6501c1bdefa4b8da973c77319
ndroid/graphics/Bitmap.java
ndroid/graphics/Canvas.java
ndroid/graphics/NinePatch.java
773bbe0357b17a16d095ce57c30980992a9c977f 18-Aug-2015 John Reck <jreck@google.com> Revert "Add ninePatch support to Canvas.h"

This reverts commit edca320a2b42011f98c308fdf25fc0494c6a5454.

Change-Id: I30ee93cfc1cac391ce152f03e9e13a1ad24dc91b
ndroid/graphics/Canvas.java
ndroid/graphics/NinePatch.java
deead00082df4839e71026750e55c1af4d62782f 17-Aug-2015 Derek Sollenberger <djsollen@google.com> Merge "Add ninePatch support to Canvas.h"
96b3da660334f35a62faa2946936059895ab6de0 14-Aug-2015 Alan Viverette <alanv@google.com> Merge "Add missing accessors on GradientDrawable, NinePatchDrawable"
41551849e698129d4bd8861a1de9cb58f1300ec5 14-Aug-2015 Alan Viverette <alanv@google.com> Add missing accessors on GradientDrawable, NinePatchDrawable

Bug: 13248977
Bug: 13249029
Change-Id: Ia8817a264b7063926e75b2f2a238d5ba36e14ab5
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
dc12e1531ff9c4f9cc77289cbc7a0cd838ffcb8b 14-Aug-2015 Alan Viverette <alanv@google.com> Merge "Remove framework-private HSV APIs, replace with luminance"
edca320a2b42011f98c308fdf25fc0494c6a5454 10-Jul-2015 Derek Sollenberger <djsollen@google.com> Add ninePatch support to Canvas.h

Change-Id: Ib3202fd7c5b9f35853f286abe84b3ed009df1a81
ndroid/graphics/Canvas.java
ndroid/graphics/NinePatch.java
81590a48a4bb0b6700e5535c5bce720ddfc76fa2 12-Aug-2015 Alan Viverette <alanv@google.com> Remove framework-private HSV APIs, replace with luminance

Luminance is the measure used by W3C to compute contrast ratios, so
we should be preferring that for "brightness" comparisons.

Bug: 22815971
Change-Id: I84a971d3cc6b12acebe8e455c0c0440c1c8bce06
ndroid/graphics/Color.java
58204be5e66b8e687ea7dfda60279fd1a959d0e2 12-Aug-2015 Alan Viverette <alanv@google.com> Remove incorrect ColorInt annotations

These methods return [0,255], not a packed color.

Change-Id: I5bad2948a6bc7188d9521098fc030c8905714c48
ndroid/graphics/Color.java
7873b6da5afada5d962b233feb6cc613b526ffb1 12-Aug-2015 Alan Viverette <alanv@google.com> Remove framework-private Color.HSBtoColor API

Bug: 22815971
Change-Id: Ic4cb43e78e0a7a6fc234865759754d106cef11dc
ndroid/graphics/Color.java
6973201f54d4d99d684aa2e42adb0a5d9829cfc8 11-Aug-2015 Alan Viverette <alanv@google.com> am e968c87f: am 570a2363: am a8431e8c: am bfd62580: am 11104791: Merge "Ensure ripple mask is drawn at correct position" into mnc-dev

* commit 'e968c87fa766ea668e319aa828f419fe0dcfd0db':
Ensure ripple mask is drawn at correct position
bac9769146af07753728e5c6b3a30eae3076aed0 11-Aug-2015 Alan Viverette <alanv@google.com> Ensure ripple mask is drawn at correct position

Bug: 22911708
Change-Id: Icdbe1f8a66d5e35eb25aa973c94f5870896cc1f8
ndroid/graphics/drawable/RippleDrawable.java
fac589451fde46db2fc3282f4a6991b7cf6b155a 04-Aug-2015 John Reck <jreck@google.com> am 3b68ca16: am 96160dea: am 8e645d58: am 649c3c44: am 7290d93d: Merge "Yell loudly about undefined behind in Bitmap, but work anyway" into mnc-dev

* commit '3b68ca168acc09b54fa3f6ed73e7ded10e5b8105':
Yell loudly about undefined behind in Bitmap, but work anyway
01a0af31d7d418f400ce5d3f752eba6a35aa00e2 31-Jul-2015 John Reck <jreck@google.com> Yell loudly about undefined behind in Bitmap, but work anyway

Bug: 22214367

Previous releases would let the getters on a recycle()'d bitmap to still
work despite being firmly in undefined behavior per the documentation
on Bitmap#recycle().

As there are apps relying on this, yell very loudly about this behavior
in the log and give them a bit of time to fix it

Change-Id: I857be7e74cb217877973d9c6f03eb761d12fd056
ndroid/graphics/Bitmap.java
6578a989566e585eee053095dc80e2552e125db2 13-Jul-2015 Derek Sollenberger <djsollen@google.com> Support High Contrast Text for all canvas types

Change-Id: Iee324446798fe1a1cb32cb991f181a4af24aa93c
ndroid/graphics/Canvas.java
c9a6ca5d6b488d1d57c0404856673d7ce1fd0fab 29-Jul-2015 Chris Craik <ccraik@google.com> Merge "Revert "Support High Contrast Text for all canvas types""
749e67438c7e2dbe2bb362dc07522a1702810455 29-Jul-2015 Chris Craik <ccraik@google.com> Revert "Support High Contrast Text for all canvas types"

bug:22820834

This reverts commit 876d56612ab8ec7032f702905d694670e6c4febd.

Change-Id: I4e07a0894095caaaf2fd36bfa6073d033542bfc4
ndroid/graphics/Canvas.java
2d35cf953a235c2bd47fd68aef0209a5b776f8d8 29-Jul-2015 Derek Sollenberger <djsollen@google.com> Merge "Support High Contrast Text for all canvas types"
dbcea5f495854510eeb1d513dd565ad154bcbfd0 17-Jul-2015 ztenghui <ztenghui@google.com> am 8054c55b: am b00f3e4f: am fcec0638: am 8b455841: am 094c82ad: Merge "Scaling (Animated)VectorDrawable inside ImageView" into mnc-dev

* commit '8054c55bc6a0b7b108ee58df728e7a2b2e646c17':
Scaling (Animated)VectorDrawable inside ImageView
35289f12d6cb0f0db67489876c805ad4a3cbd5f6 14-Jan-2015 ztenghui <ztenghui@google.com> Scaling (Animated)VectorDrawable inside ImageView

Before, the VectorDrawable is behaving like BitmapDrawable inside a ImageView,
and it can be blurry due to scaling.
Now apply the scaling information to the cached bitmap, then the size of bitmap
will match the ImageView's screen size. Therefore, no blurry any more.

b/18185626

Change-Id: I979cef3b5178a9bd37ee6cc776df3361ca47c803
ndroid/graphics/drawable/VectorDrawable.java
d4f1d0c4e2f692c60cf69da15a84ed34b50ca6c0 17-Jul-2015 Chris Craik <ccraik@google.com> Merge "Remove ImageViewBitmapDrawable class"
82af13ea831bbf8dbb8caf06b8ecbee5a31fc446 14-Jul-2015 Chris Craik <ccraik@google.com> Remove ImageViewBitmapDrawable class

Change-Id: Ie25b4b39cb5d0984981c153b036ea9ade95a10f7
ndroid/graphics/drawable/BitmapDrawable.java
6d86e57bdadd56be160eb3e543cc53622cae46f2 15-Jul-2015 John Reck <jreck@google.com> Elaborate on Bitmap#reconfigure() expectations

Bug: 21947835
Change-Id: I6ab0ac08e993fb111977b6f9a02e139c7ea5170a
ndroid/graphics/Bitmap.java
5561d671f5ebe0cfbe20e32341ac31e9eb06a835 14-Jul-2015 Julia Reynolds <juliacr@google.com> am 35ae7a0a: am f4874b74: am 2ed576fa: am 66b73dce: am f5e20ec3: Merge "Retrieve resources for apps, even if not installed for current user." into mnc-dev

* commit '35ae7a0a8d66c6a19ec82150a60a23730639f382':
Retrieve resources for apps, even if not installed for current user.
c7fd3462a2699f73d5f2ba6d863d8be4ddd570a9 14-Jul-2015 Julia Reynolds <juliacr@google.com> Retrieve resources for apps, even if not installed for current user.

Bug: 21448052
Change-Id: Id5db428a6faca4a905684088c47e070752ac2899
ndroid/graphics/drawable/Icon.java
876d56612ab8ec7032f702905d694670e6c4febd 13-Jul-2015 Derek Sollenberger <djsollen@google.com> Support High Contrast Text for all canvas types

Change-Id: Ib46ba3d7c67e081872e6a4b11d294fe9a61f5bbd
ndroid/graphics/Canvas.java
94394b3fb048d5349a77b57950ab7f6b6e92ce34 10-Jul-2015 Derek Sollenberger <djsollen@google.com> Move drawRegion from DisplayList to Canvas

Change-Id: I9f401dc5b24732938ac2ca7ed829796e2d7ef3e8
ndroid/graphics/Canvas.java
cc882b6518129a11fa007f8c9343e972f03607b4 09-Jul-2015 Derek Sollenberger <djsollen@google.com> Remove unused functions and variables from DisplayListCanvas

This also moves some functions that are only called when creating/completing
a displayList into the appropriate constructors and endRecording calls.

Change-Id: I9f6add156d7f476a52766934af713b0f852c8dea
ndroid/graphics/Canvas.java
b7ba1220a3dc3012d2e22825eaeb0e643333f5a4 10-Jul-2015 John Reck <jreck@google.com> Teach ImageView to recycle internal drawables

Bug: 22289362

It's pretty common for ImageView#setBitmap to be called
repeatedly. Avoid re-creating the BitmapDrawable in this scenario
as that has high object churn of semi-expensive objects like
Paint.

Change-Id: Ib77719cd0366d02c1a42f774850bf3b9caa9c288
ndroid/graphics/drawable/BitmapDrawable.java
93666e8691c9b41855add5c1c92bfc9e0912764e 25-Jun-2015 ztenghui <ztenghui@google.com> Merge "Resize the VectorDrawable according to the virtual Dpi" into mnc-dev
95080637db69ffa4f31f18f32878ddd2457e6857 24-Jun-2015 ztenghui <ztenghui@google.com> Resize the VectorDrawable according to the virtual Dpi

b/21928507

Change-Id: I9e596192a0fdf13fc91481f990a345c3b267f225
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
06ff2af68aa1041eeb26778e994e0fe196bf8b1e 24-Jun-2015 Alan Viverette <alanv@google.com> Update local state when creating LayerDrawable from constant state

Also clears DrawableContainer's futures list when it's no longer needed,
correctly sets deep copy of state set in StateListDrawable, makes some
private methods into package-protected to avoid thunk, and propagates
state to StateListDrawable's super class so that getState() has correct
information.

Bug: 21840003
Change-Id: I0d4232807f280d663c03b4a80e4aab8626806440
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
346872d5387fe66d13ea962abe031830abf40648 24-Jun-2015 Dan Sandler <dsandler@android.com> Merge "Allow an icon to carry a tint with it, wherever it goes." into mnc-dev
25a5f3012805e0fbcf3610dc57ab5c28d25aab0f 24-Jun-2015 Daniel Sandler <dsandler@android.com> Merge "Use ashmem backed bitmaps for passing around notifications" into mnc-dev
81e7dbddf10ecae99f65641d8774ca6b1aceac30 23-Jun-2015 Alan Viverette <alanv@google.com> Remove isDither(), deprecate setDither()

Bug: 22013358
Change-Id: I37b11a94edc431a88522c6c056b76b045daa61d6
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
a0d58ae574a3a69145512e0cd92e7842f0fbf83d 03-Jun-2015 Jorim Jaggi <jjaggi@google.com> Use ashmem backed bitmaps for passing around notifications

Avoids many copies during IPC and duplicate Java heap consumption in
system_server, SystemUI, etc.

Bug: 18386420
Change-Id: Id5ac9406062d472f7848009d65f12131f5f4dac9
ndroid/graphics/drawable/Icon.java
24f11b1871f9def5d802d107897658c4b2b66ab5 03-Jun-2015 Dan Sandler <dsandler@android.com> Allow an icon to carry a tint with it, wherever it goes.

Bug: 21031774
Change-Id: I2d06c7288e0c0a06bf6ff147dfbfdea5a46fd288
ndroid/graphics/PorterDuff.java
ndroid/graphics/drawable/Icon.java
484b114846d6ed425f7e938fb97980ee67f43140 23-Jun-2015 Chris Craik <ccraik@google.com> Merge "Clean up drawable filter/dither docs" into mnc-dev
b2aea9dcbd6edfa645c6fc3ae4adab95aa79cc1c 22-Jun-2015 Derek Sollenberger <djsollen@google.com> Merge "Enable Picture w/ HW Accelerated Canvas." into mnc-dev
e109940d81cc67fcdb2e2bbb79dce9039ead86c6 04-Jun-2015 Derek Sollenberger <djsollen@google.com> Enable Picture w/ HW Accelerated Canvas.

Bug: 20688645
Change-Id: I664f37d6dbb3e61b17206c82ebcc63f988cefc65
ndroid/graphics/Picture.java
c79df8e831e50abae9f781148e0aee63f6c29659 20-Jun-2015 Chris Craik <ccraik@google.com> Clean up drawable filter/dither docs

bug:21342040

Change-Id: I6592bfa504516852967d82a7e7929b1aef6bff02
ndroid/graphics/drawable/Drawable.java
690a16c35031b4474f429de1967d6738f9d00322 19-Jun-2015 Alan Viverette <alanv@google.com> Invalidate the cached ripple drawable mask if mask layer changes

Bug: 21955350
Change-Id: I2e610a5a0af39668b7e9447cfd7d48d35e11d299
ndroid/graphics/drawable/RippleDrawable.java
a6c51149c59b2921507f6903e490bd00702972d1 19-Jun-2015 Doris Liu <tianliu@google.com> Fix a typo in Drawable's javadoc

Change-Id: Ic168b250defb30512cb35a836118fe2bdf1b2e78
ndroid/graphics/drawable/Drawable.java
50ec9b1bd97a04a001dd394885db0cc6f13bea39 18-Jun-2015 Dan Sandler <dsandler@android.com> Merge "Patch up certain kinds of broken notifications." into mnc-dev
4e78706f439d318ae7a78927d98f734351a89f64 17-Jun-2015 Dan Sandler <dsandler@android.com> Patch up certain kinds of broken notifications.

Notifications in which the icon resource ID is changed after
Builder.build() is called (even, and particularly, as the
last step in the current implementation of
setLatestEventInfo()) were not having their icons properly
parceled. In these cases we now attempt to catch this at
parcel time and construct the necessary Icon object.

But wait! Parceling does not require a Context. So we don't
actually know which package to load the resource from.
Therefore we now allow an Icon to be constructed with an
empty ("") package name, which allows us to complete this
parceling task despite the fact that a Notification does not
know its own package name. (In case you attempt to load a
drawable for such an Icon, loadDrawable will spot the ""
package and instead substitute the Context from its
parameters to try to load the resource.)

As it happens, even though the Notification does not know
its own package name, BaseStatusBar does, because it was
provided at NM.notify() time and is therefore included in
the StatusBarNotification structure. So we can actually
patch up the Icon (if it is TYPE_RESOURCE) and be sure to
get the icon loaded out of the correct package.

While we've got the hood open, this change fixes a couple of
related problems:

• Foreground service notifications synthetically
constructed for naughty icon==0 notifications (which we
are still allowing...FOR NOW) were losing the
FLAG_FOREGROUND_SERVICE flag (because we're
re-build()-ing them from scratch rather than rewriting
the provided Notification object). Now we set the flag
and hang onto the new notification for next time
setForeground() is called.

• We now allow media notifications to avoid getting bumped
to the top of the notification list if they're
PRIORITY_MIN. You might want to do that, I guess?

Bug: 21333763
Change-Id: Ia5d1f1acb594c7677bcc75ee3d624da4ffca671f
ndroid/graphics/drawable/Icon.java
67b5a68088627394fd60baeeb54b78d7e68ba7b2 17-Jun-2015 Alan Viverette <alanv@google.com> Merge "Resolve start/end insets in LayerDrawable.getIntrinsicWidth()" into mnc-dev
536652fe91d10e5baebe0f9ca5d7e21c88ae9d9e 17-Jun-2015 Alan Viverette <alanv@google.com> Resolve start/end insets in LayerDrawable.getIntrinsicWidth()

Bug: 21849185
Change-Id: If9b392d863e808d83a5d90bcc32df6cb9194cbdf
ndroid/graphics/drawable/LayerDrawable.java
373954a1fd371a23c420aeeea9ccbc4d983733d7 17-Jun-2015 Alan Viverette <alanv@google.com> Refactor Drawable.getDither() to isDither()

Bug: 21342040
Change-Id: I801970c2a25289d670636ad5387ddf244fb48225
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
63a39ffe489e1411f96ab54002b83c7d28bb5ffc 17-Jun-2015 Alan Viverette <alanv@google.com> Ensure first load for bitmap and nine-patch gets correct density

Remove unnecessary lines setting target density on bitmap and nine patch,
since we'll do this later in inflate().

Bug: 21774853
Change-Id: I5ea316bee81f82192ce20f2f1bee0e62c6ec8ccb
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
c03fa1ee54424b0c8b9ecdc06004c9dbdf4925f2 15-Jun-2015 Chet Haase <chet@google.com> Merge "Add isFilterBitmap() overrides where appropriate" into mnc-dev
ea1363910bf2138f633ef8a310a65d608ef94407 14-Jun-2015 Chet Haase <chet@google.com> Add isFilterBitmap() overrides where appropriate

Issue #21825791 add isFilterBitmap() override to appropriate Drawable subclasses

Change-Id: I5cbd72c034be79b0aa53815c7a5a8ea499e6e02d
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
96a443b58d9c9849c846750657f959e3743bc5ed 12-Jun-2015 Chet Haase <chet@google.com> Clarify Drawable.getOpacity() docs

Docs for translucent-vs-transparent-vs-opaque were confusing, especially since
the definition for those constants in PixelFormat are not the same as how they're
actually used in Drawable. This fix simply adds clarifying text to the method
comment for getOpacity().

Issue #21158891 Better document Drawable#getOpacity

Change-Id: I94725592f85e5d7874e3a3ac1c5bab969163fbf0
ndroid/graphics/drawable/Drawable.java
4039f6570cff0013d3986b522d43e6eab7cc28a6 12-Jun-2015 Keisuke Kuroyanagi <ksk@google.com> Merge "Improve boundary check for for Paint#DrawTextRun." into mnc-dev
1b83edc6160d18323c7a0e0b892e97c05914ff81 11-Jun-2015 Chris Craik <ccraik@google.com> Merge "Workaround shader crash" into mnc-dev
f2122ef549dd73f68bdbe4d6767f6516935024d0 11-Jun-2015 Keisuke Kuroyanagi <ksk@google.com> Improve boundary check for for Paint#DrawTextRun.

Change-Id: I01027ebb9133240cc1c750824a41dd9fca484c1f
ndroid/graphics/Canvas.java
b786bbdd1164cf3ca7fcfb8448c7c619a82118a0 11-Jun-2015 Chris Craik <ccraik@google.com> Workaround shader crash

bug:21706035

Change-Id: Ia1cd4824c742b2d6fc0feb2861ccfde0b6ac2189
ndroid/graphics/BitmapShader.java
99ca2a8470a48906aaba2d76c856037933496352 09-Jun-2015 Alan Viverette <alanv@google.com> Account for hotspot bounds in RippleDrawable projection check

Bug: 21502154
Change-Id: Iedf4bd07f10ec13070a68870304ab651c1f15c68
ndroid/graphics/drawable/RippleDrawable.java
371b582c4941a7c4a1a5531fa8768db74354b616 06-Jun-2015 Alan Viverette <alanv@google.com> Merge "Implement getColorFilter() on VectorDrawable" into mnc-dev
a74171190077d5ef8704a29442669e806447d560 06-Jun-2015 Alan Viverette <alanv@google.com> Implement getColorFilter() on VectorDrawable

Bug: 21580708
Change-Id: Id64bebeb5c39906ed34775e8ccc39f666966bad9
ndroid/graphics/drawable/VectorDrawable.java
96052718067e1645afd7c7ae93bab536711349ac 06-Jun-2015 ztenghui <ztenghui@google.com> Add reset to AVD

b/21664621

Change-Id: Ie40c3723860e183c8e4fedd2a76b9debbdf64a2a
ndroid/graphics/drawable/AnimatedVectorDrawable.java
e1352de673423264c00c71c0ec1597bbdad6fd03 05-Jun-2015 ztenghui <ztenghui@google.com> Merge "Setup the animation callback for AnimatedVectorDrawable" into mnc-dev
c3b68dff1654f95a9512027b29e8da49a15f4194 05-Jun-2015 Alan Viverette <alanv@google.com> Manually jump ripples when preemptively aborting RT animation

Bug: 21079749
Change-Id: If79dcef59aba616c0446efc623863f563cb16250
ndroid/graphics/drawable/RippleComponent.java
83a52031fd5c277d0c6e75da50bf8013e8a70399 30-May-2015 ztenghui <ztenghui@google.com> Setup the animation callback for AnimatedVectorDrawable

b/21341096

Change-Id: I84e20366db21ceaa4f044be3e322f9215bb06ad2
ndroid/graphics/drawable/Animatable2.java
ndroid/graphics/drawable/AnimatedVectorDrawable.java
eebb83493418d8dcd82f33919c41b9a5d2ec898a 23-May-2015 Eino-Ville Talvala <etalvala@google.com> ImageFormat: Update definition of depth formats for confidence.

DEPTH16: Use high 3 bits for confidence measurement, with
0 = 100% confidence, 1 = 0% confidence, 2 = 1/7 (14.3%) confidence, etc.

DEPTH_POINT_CLOUD: Add confidence as 4th entry to each point,
with a value in range 0.f - 1.f inclusive.

Bug: 20123879
Change-Id: I23317b922ac727751156fa418ed239a696a898e5
ndroid/graphics/ImageFormat.java
2b184e86347d9ff7b26d2667f31e436cf7d7be9e 30-May-2015 Alan Viverette <alanv@google.com> Merge "Reduce amount of unnecessary RippleDrawable mask redraw" into mnc-dev
15ce834e52806378d6ab2b90f573bae14cb3fd4b 30-May-2015 Alan Viverette <alanv@google.com> Reduce amount of unnecessary RippleDrawable mask redraw

Bug: 19638504
Change-Id: Ie7b639c543150e13aec30dfeca2b303d5b601cf3
ndroid/graphics/drawable/RippleComponent.java
ndroid/graphics/drawable/RippleDrawable.java
db2911321b1cb0870d10baab370c93da13a91067 30-May-2015 Alan Viverette <alanv@google.com> Merge "Replace PNG-based seekbar thumb animation with AVD" into mnc-dev
87e1938be8e6c2ac7e6163a63df5dd69633cc836 30-May-2015 Alan Viverette <alanv@google.com> Replace PNG-based seekbar thumb animation with AVD

Adds optical inset support for VectorDrawable and GradientDrawable.

Bug: 19944181
Change-Id: I9df04d9fe17ad858413e7f93694bf37ee2c43c85
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
3c436cb99f1cc0db82e342fb9dc145fd524f5029 29-May-2015 Alan Viverette <alanv@google.com> Merge "Postpone AnimatedVectorDrawable animator inflation until applyTheme()" into mnc-dev
b63b93dee7744f00280ea998ef24d0a1d57d3934 28-May-2015 Alan Viverette <alanv@google.com> Fix drawable CTS breakages

1. ClipDrawable.getOpacity() now correctly respects the current level
2. DrawableWrapper checks the contained drawable's changing config even
if it doesn't have a constant state
3. DrawableWrapper gives priority to the last valid child drawable
rather than the drawable attribute

Bug: 21406104
Change-Id: I442fe90d0a3865bfdc6b2d14a7358178310dde02
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/DrawableWrapper.java
dfa4646eca54511a28f2c61e1f4b9c697e05a913 27-May-2015 Alan Viverette <alanv@google.com> API Review: Drawable

Renames boolean getters to isZzz(), callback from onChange to onChanged.

Bug: 21342040
Change-Id: I9700d645453354b608fd97a832359211d828b52f
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/DrawableWrapper.java
ndroid/graphics/drawable/LayerDrawable.java
b1f6aebb4aab9e5c90206e01d19b7eab3d512893 20-May-2015 John Reck <jreck@google.com> Merge "Fix Bitmap#sameAs NPE" into mnc-dev
3df4869a77bdeb72d5810bbcf7819ed1b8dd0ec7 20-May-2015 John Reck <jreck@google.com> Fix Bitmap#sameAs NPE

Bug: 21281842

Change-Id: I4a1e33d7e642fa50e8789f1441e8587d1c15119c
ndroid/graphics/Bitmap.java
d8d9a75f6a111b962bf5260a4dca87398405d95b 19-May-2015 Alan Viverette <alanv@google.com> Postpone AnimatedVectorDrawable animator inflation until applyTheme()

This CL works around Animator's lack of support for applying a theme
after inflation by postponing Animator inflation until a theme is
available, either in inflate() or applyTheme().

Includes a workaround for AVDs that don't reference any theme attrs
in their animators and this don't require a call to applyTheme().

Partial implementation of removing non-constant data from the AVD's
constant state. Moves the mutable AnimatorSet to a local variable and
treats the Animators as constant data.

We'll follow up with real support for applyTheme() in Animator or
AnimatorSet, at which point we can remove this workaround.

Bug: 20817800
Change-Id: I555c53c955219990ee376bee568bcc038532f9ed
ndroid/graphics/drawable/AnimatedVectorDrawable.java
0c4729a1e468e2b0783a4234e39677d8078473b3 19-May-2015 Alan Viverette <alanv@google.com> Merge "Revert "Postpone AnimatedVectorDrawable animator inflation until applyTheme()"" into mnc-dev
344ad7126f1e598e4259f128eaeac8a7ef904dd3 19-May-2015 Alan Viverette <alanv@google.com> Revert "Postpone AnimatedVectorDrawable animator inflation until applyTheme()"

This reverts commit 9b115a9870a184e32bdbd07f792f9b8c956c75ca.

Change-Id: Ief148510472e129f992cf52ef8b8a25b5e17e05f
ndroid/graphics/drawable/AnimatedVectorDrawable.java
365f5c2e4be73382eefeb69a6d4a4aa5d60bc27d 19-May-2015 Alan Viverette <alanv@google.com> Merge "Update ripple drawable target radius on bounds change" into mnc-dev
6ae9dc804960da833338452c25023fc747e406a1 19-May-2015 Alan Viverette <alanv@google.com> Merge "Postpone AnimatedVectorDrawable animator inflation until applyTheme()" into mnc-dev
721ae5fec5f1fd4f93aa2a361a0ac298e15ce353 12-May-2015 Riley Andrews <riandrews@google.com> Add internal bitmap api for creating immutable ashmem backed bitmaps.

Bug 21037890
Change-Id: I827e83dd75e301e7d93ead5efdd744f0d8435ae5
ndroid/graphics/Bitmap.java
5bc0144302bb378e5f007baa4bf6620ab9031879 16-May-2015 Alan Viverette <alanv@google.com> Update ripple drawable target radius on bounds change

Only bothers with the background and active ripple, since the exiting
ripples are in hardware animation mode anyway and can't be updated.

Bug: 21079749
Change-Id: I0f70c0c0feea32e2c70bb9b1b0fa3b7846b20c7f
ndroid/graphics/drawable/RippleComponent.java
ndroid/graphics/drawable/RippleDrawable.java
e922f49b627912c113250bd8506830bb69943025 15-May-2015 Alan Viverette <alanv@google.com> Allow getChangingConfigurations() on DrawableWrapper with null drawable

Change-Id: Iecf39b53419e07927a3fe3096036a57afd69439a
ndroid/graphics/drawable/DrawableWrapper.java
9b115a9870a184e32bdbd07f792f9b8c956c75ca 15-May-2015 Alan Viverette <alanv@google.com> Postpone AnimatedVectorDrawable animator inflation until applyTheme()

This CL works around Animator's lack of support for applying a theme
after inflation by postponing Animator inflation until a theme is
available, either in inflate() or applyTheme().

Includes a workaround for AVDs that don't reference any theme attrs
in their animators and this don't require a call to applyTheme().

We'll follow up with real support for applyTheme() in Animator, at which
point we can remove this workaround.

Bug: 20817800
Change-Id: I5a378a76e3625b9d754cb74ae98c07ba7c5698e5
ndroid/graphics/drawable/AnimatedVectorDrawable.java
d63f9321e62064660d426efd5abbd885c4a24652 06-May-2015 Dan Sandler <dsandler@android.com> Icon support comes to Notification.

And you may ask yourself: what is that beautiful icon?
And you may ask yourself: where does that API go to?
And you may ask yourself: is it a resource? is it a Bitmap?
And you may say to yourself: my god, what have I done

(This patch fixes a number of bugs in the initial
implementation, but other than that, it's the same as it
ever was.)

Bug: 18568715
Bug: 21141842
Change-Id: I1d3f9427abd7f0bb57e533fcfac708851ff644b6
ndroid/graphics/drawable/Icon.java
aee0c2ce39fe92716bb76d33d6f8cc8789467cf6 15-May-2015 Dan Sandler <dsandler@android.com> Merge "Use Context instead of Resources in Icon.createWithResource." into mnc-dev
d76a81f5195b8a23b136f5a9965d3b5dd12a195d 15-May-2015 Yorke Lee <yorkelee@google.com> Merge "Fix missing break in Icon class" into mnc-dev
220239e37110bf7d97aa92270be5a12ab0cf5e24 15-May-2015 Yorke Lee <yorkelee@google.com> Fix missing break in Icon class

This causes RuntimeExceptions to fall through to the next
case statement.

Bug: 21168985
Change-Id: Ie69610b22c6caf9f6536ebd48673067880cb75a2
ndroid/graphics/drawable/Icon.java
4b4d4757698718f785aa534b69a117007f5b64a7 15-May-2015 Doris Liu <tianliu@google.com> Merge "Start AnimationDrawable from the zeroth frame." into mnc-dev
c7741d467b37351ab13f75592fc7400d0c2ba6d7 15-May-2015 Doris Liu <tianliu@google.com> Start AnimationDrawable from the zeroth frame.

This CL fixes the issue where when start is called, we run the next frame
of the animation drawable while mCurFrame is already set to 0. The result
is that the first frame of the AnimationDrawable is then skipped.

Bug: 21168854
Change-Id: I2b77ae017d3debd0f8cfec81ea86d1120e78bb55
ndroid/graphics/drawable/AnimationDrawable.java
0e4a2b5ff0ee061c46bfe3b1f15a7067308e0da8 15-May-2015 John Reck <jreck@google.com> Merge "Check for setting to already set" into mnc-dev
6d8371e73ff6452be5a23089e7edeb8d6d96f065 15-May-2015 John Reck <jreck@google.com> Check for setting to already set

Bug: 20105644
Change-Id: Ia79d2ae5c725c139d2b7c423a899be625cb8f14f
ndroid/graphics/SurfaceTexture.java
02cd9f91a6bd6d06d6d1237f8b978a0ab0b8ea32 14-May-2015 Dan Sandler <dsandler@android.com> Use Context instead of Resources in Icon.createWithResource.

This works around situations where corrupted packages cause
Resources.getResourcePackageName to return something that
does't actually work.

Bug: 21144636
Change-Id: I271518599a8eb89d493f1ceda6cb2e47fb38a4ff
ndroid/graphics/drawable/Icon.java
09e51a739f3e408567f0eefafcc5fedb01bc3401 14-May-2015 Daniel Sandler <dsandler@android.com> Revert "Icon support comes to Notification."

This reverts commit 08a04c15245c970856022d0779aa27d4d63cdee3.
This also reverts commit 5bcbf857d129f4513e562801a4e88077b2655ade.

Change-Id: Ia0b0a5339d523581c877822a3a1feec97ae4b73d
ndroid/graphics/drawable/Icon.java
08a04c15245c970856022d0779aa27d4d63cdee3 06-May-2015 Dan Sandler <dsandler@android.com> Icon support comes to Notification.

And you may ask yourself: what is that beautiful icon?
And you may ask yourself: where does that API go to?
And you may ask yourself: is it a resource? is it a Bitmap?
And you may say to yourself: my god, what have I done

Bug: 18568715
Change-Id: I4377b311c538bd1cf36b3fba22326bae81af40c9
ndroid/graphics/drawable/Icon.java
d9e1fe3cd443e02e64f6006be4bc5d5622082675 14-May-2015 Santos Cordon <santoscordon@google.com> Merge "[1/4] Use new Icon class in PhoneAccount." into mnc-dev
cad84a2070b68093ab31b05389685fdbcd0d9f85 13-May-2015 Santos Cordon <santoscordon@google.com> [1/4] Use new Icon class in PhoneAccount.

Bug: 21088522
Change-Id: Ia03171d4861f758701e89733f4082863587e8c11
ndroid/graphics/drawable/Icon.java
d6acd422aff35bc7cb8ab46fa422a4be7fffd026 13-May-2015 Chris Craik <ccraik@google.com> Merge "Revert "Anti-alias by default"" into mnc-dev
74a727d06100c7fb9bc3f4d0a1e1b29151172b58 13-May-2015 Chris Craik <ccraik@google.com> Merge "Anti-Alias ColorDrawable" into mnc-dev
caa6226b1735ae074ec3861e2424bbd2276b88a0 13-May-2015 Chris Craik <ccraik@google.com> Revert "Anti-alias by default"

bug:20948129

Keep HIDDEN_DEFAULT_PAINT_FLAGS name.

This reverts commit 1b60cc0529161b5eca6407b551d67d355994c567.

Change-Id: I97cd9c556375c74c52b006bda4fc7b3a2cfa89e1
ndroid/graphics/Paint.java
b846b58f7a27f19431bf0af3f39a514ad4761690 13-May-2015 Chris Craik <ccraik@google.com> Anti-Alias ColorDrawable

Change-Id: I4d0ee2a496de908b99b0f1d8bef1b6f861c94c6f
ndroid/graphics/drawable/ColorDrawable.java
b27333bcca733ec0ec828b45d20507cbfa13c6d6 13-May-2015 Dan Sandler <dsandler@android.com> Merge "Icon API tuneups:" into mnc-dev
877d696c382ecb8a97972450c8819536641a963c 13-May-2015 Dan Sandler <dsandler@android.com> Icon API tuneups:

- Reorder parameters to loadDrawableAsync()
- New version of createWithResource that takes a package
name instead of a Resources
- Add loadDrawableAsUser() for INTERACT_ACROSS_USERS clients
like SystemUI
- Docs cleanups

Bug: 21089268
Bug: 21031774
Change-Id: I465d2b865e35e12094b564f994e59d55e522f65a
ndroid/graphics/drawable/Icon.java
aa358194f015e282e9c0962e49fe6752efc4f9c0 13-May-2015 Alan Viverette <alanv@google.com> AnimatedRotateDrawable should inflate child elements

This was missed during the update that extended from DrawableWrapper.

Bug: 20089503
Change-Id: Ie84c040deaecb415e882842f2172a344afa8df7b
ndroid/graphics/drawable/AnimatedRotateDrawable.java
6af2857ae0c3bde47e0e4a6abd84f42ee7086291 12-May-2015 Chris Craik <ccraik@google.com> Merge "Revert "Fix build - Revert "Revert "Use default constructor to get anti-aliasing"""" into mnc-dev
6a49ddef62865c1b245ad60a13c334f0ffaf1a5f 12-May-2015 Chris Craik <ccraik@google.com> Revert "Fix build - Revert "Revert "Use default constructor to get anti-aliasing"""

Fix import

This reverts commit 7ed1431c83286abc83b9e5afc45fbd21ecb777b1.

Change-Id: Id93eba3ed1d47a90384ba20dea6f74d78755792b
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
4b403557bca7b622c187c3b06814e2118ec7d985 12-May-2015 Doris Liu <tianliu@google.com> Merge "Avoid setting mCurFrame to -1" into mnc-dev
7ed1431c83286abc83b9e5afc45fbd21ecb777b1 12-May-2015 Chris Craik <ccraik@google.com> Fix build - Revert "Revert "Use default constructor to get anti-aliasing""

This reverts commit dfe0a66ceca530e0777ebfab20f81103baa18f14.

Change-Id: I58a1bae649a284f3d3b6213064d903ea7fcf185a
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
56ef127df75164243a21df10771e7c77c8ef2e24 12-May-2015 Doris Liu <tianliu@google.com> Avoid setting mCurFrame to -1

Use the dedicated flag mRunning to check whether the DrawableAnimation
is running, rather than comparing mCurFrame with -1. This CL aims to
simplify the use of mCurFrame.

Bug: 17112962
Change-Id: I15f9e4c102f504b8c806f029949fe9ec872479a5
ndroid/graphics/drawable/AnimationDrawable.java
dfe0a66ceca530e0777ebfab20f81103baa18f14 12-May-2015 Chris Craik <ccraik@google.com> Revert "Use default constructor to get anti-aliasing"

bug:20948129

This reverts commit 58fc522a69e8ddf9ac8530ce88e9c2c92da1dd14.

Change-Id: Iddeccb4ad15b843bb3e610bd3673a0c7abc1bf46
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
9298c5414172344f2462beda70e624af5f774483 11-May-2015 John Reck <jreck@google.com> Clarify assert

Bug: 20918138
Change-Id: I39a9f8bbfb3752f9a6e5f5215ed8cd3c93ce87fc
ndroid/graphics/Bitmap.java
ad57442fd00e7fd7f1885d23372ec5c85e176820 11-May-2015 John Reck <jreck@google.com> Add a few missing asserts

Bug: 20918138
Change-Id: I6823cfe531ff6f63a7d9fde22278e6780726c9f1
ndroid/graphics/Bitmap.java
3e776dee3e8af646cdcfb7a60e0e301c99f05293 08-May-2015 John Reck <jreck@google.com> Compatibility hack

Bug: 20940526

Rather than throwing an exception on accessing a recycled()
bitmap let certain operations succeed and just return dummy
values. Apps appear to be relying on this.

Change-Id: I74df2efdc29d93facd8553ed31cda3addf0b28eb
ndroid/graphics/Bitmap.java
a039182d6157bc0487df4ad8e373685c9dd7d662 07-May-2015 John Reck <jreck@google.com> Delete a bunch of dead code

Rotation wasn't supported, so just nuke all the code
around it. Fixes some unused field warnings

Change-Id: Ic33d56ed3b42e3261bddc5007c5a029831254f83
ndroid/graphics/Atlas.java
27cf86939d918b2d6b32a0650a48b8a2afaa26b6 06-May-2015 Alexander Martinz <eviscerationls@gmail.com> Fix setting hotspot bounds in a drawable container

We are passing the wrong parameters for setting hotspot bounds.
Bottom and right are in the wrong order, correct it.

Change-Id: I2762fc3a4c29f05ba8b7e71a5c6cad0be16c2ae0
ndroid/graphics/drawable/DrawableContainer.java
859df3b7b3990b9230f517aa12d08e408caefa5e 06-May-2015 Alexander Martinz <eviscerationls@gmail.com> Fix setting hotspot bounds in a drawable container

We are passing the wrong parameters for setting hotspot bounds.
Bottom and right are in the wrong order, correct it.

Change-Id: I2762fc3a4c29f05ba8b7e71a5c6cad0be16c2ae0
ndroid/graphics/drawable/DrawableContainer.java
c64b3fab95cff6f33cba524f1b9c540cfb75c73b 05-May-2015 John Reck <jreck@google.com> Merge "Attempt to solve the double-GC problem" into mnc-dev
f29ed28c7b878ef28058bc730715d0d32445bc57 07-Apr-2015 John Reck <jreck@google.com> Attempt to solve the double-GC problem

Fix the issue where Bitmap requires two GC passes
to release its byte[] by using some questionable
ref-counting hacks to manage whether or not
native has a strong or weak ref to the byte[]

Change-Id: Ia90a883579f61c0b1904b5549a66bd0ef34b32c5
ndroid/graphics/Bitmap.java
d21be499753b964433faefbe0fd770c62a4c2e12 04-May-2015 Alan Viverette <alanv@google.com> More documentation for handling RippleDrawable mask at run time

The docs are now really explicit about the layer's ID and how to set
or update the mask layer from code.

Bug: 20493831
Change-Id: I801f10cd08fd1b4bb226c63a1bdf3271229928ea
ndroid/graphics/drawable/RippleDrawable.java
05dc201ff64f6324c2726a8841af7021e7071b97 04-May-2015 John Reck <jreck@google.com> Merge "Remove Bitmap#getSkBitmap" into mnc-dev
1641c0cb0b6baf313c82846fe4f64007078c604f 04-May-2015 John Reck <jreck@google.com> Merge "Move AssetAtlas off of SkBitmap*" into mnc-dev
7c103a36f60b690e3fe83c40210e1cb0c76bba43 16-Apr-2015 John Reck <jreck@google.com> Remove Bitmap#getSkBitmap

Change-Id: Ifb9047b426122d3e5a445eb7a0eb3fce38dedf27
ndroid/graphics/Bitmap.java
ndroid/graphics/Canvas.java
ndroid/graphics/NinePatch.java
c6e2e8ff474ae44bab5b9eb665851118abd27b68 15-Apr-2015 John Reck <jreck@google.com> Move AssetAtlas off of SkBitmap*

Switched to SkPixelRef*

Change-Id: I4a1d9dc6c55c1ebcce6b0b8c585e69559e523898
ndroid/graphics/Bitmap.java
9fc943d1a69f2ab0f6d8285b09aef7e344a1fd1a 01-May-2015 Dan Sandler <dsandler@android.com> Merge "Icon: a clean, parcelable place for images." into mnc-dev
b9f7aac3488873677377b36c57338d758098f78e 04-Mar-2015 Dan Sandler <dsandler@android.com> Icon: a clean, parcelable place for images.

Binder APIs which wish to consume Bitmaps *and* drawable
resources can now do so by using Icon, a kind of union type
that accommodates each of these. Icon also accepts byte
arrays holding compressed Bitmaps (PNG, JPEG, etc), which
saves clients the additional memory cost of decoding and
sending full uncompressed bitmaps through Binder interfaces.
Receiving clients can call loadDrawable{,Async} and then
getDrawable to start immediately using the image in an
ImageView or other Drawable-hosting container.

Bug: 19609468
Change-Id: Ic1343711c2ac0b15876b46f0b6008b0108a49470
ndroid/graphics/drawable/Icon.java
78760b4ae47f5d59a541cbcbf1fca623bae4508a 01-May-2015 John Reck <jreck@google.com> Merge "A bunch more cleanups" into mnc-dev
3731dc220ed457e0f1e99d7ec2589e0a43872b59 14-Apr-2015 John Reck <jreck@google.com> A bunch more cleanups

Switch a few places to using android::canvas
instead of SkCanvas as well which eliminated
some JNI

Change-Id: I8f98b56442a06362b82b984cd1bd3a92398d8dbc
ndroid/graphics/BitmapShader.java
ndroid/graphics/Canvas.java
db672b03a2de26127b40dbe50c794b5697b01c37 30-Apr-2015 John Reck <jreck@google.com> Merge "Change how Java Bitmaps are accessed in a few places" into mnc-dev
ed207b92747234eac88dd3664ecfb535e45d8ed1 10-Apr-2015 John Reck <jreck@google.com> Change how Java Bitmaps are accessed in a few places

Stop assuming that a Java Bitmap has a SkBitmap* that
has some externally managed lifecycle, and instead switch
a bunch of users to accessing the bitmap by providing
their own SkBitmap* on which to set the (ref counted!)
SkPixelRef* instead

Attempt #2 to land this, original issue was in getSkBitmap
and should be fixed

Change-Id: I0fd9e193968b41e5597784140d56b4885906864a
ndroid/graphics/pdf/PdfRenderer.java
1f29e71c4688bdc04b27224c16d5b99006796a80 29-Apr-2015 Alan Viverette <alanv@google.com> Don't propagate level or RTL in LayerDrawable.setDrawable()

The developer used to be responsible for this and automatically
propagating the values breaks some use cases (ex. in Camera).

Bug: 20696311
Change-Id: Ia8ddc132c6d629bcc27d66f654baf30d9f078568
ndroid/graphics/drawable/LayerDrawable.java
2f1d09c3c5e80e875f588d77bc1e47d317491fa8 29-Apr-2015 Chris Craik <ccraik@google.com> Merge "Use default constructor to get anti-aliasing" into mnc-dev
58fc522a69e8ddf9ac8530ce88e9c2c92da1dd14 28-Apr-2015 Chris Craik <ccraik@google.com> Use default constructor to get anti-aliasing

Change-Id: I3e078a3bc91a2fd703984ba18b5e7e98069b32f1
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
a54cd38ba552a924c481c01cf9eae31b7bb63e86 28-Apr-2015 Alan Viverette <alanv@google.com> Layout layers without intrinsic dimensions using FILL gravity

Addresses a regression in Calendar where a custom drawable that doesn't
implement intrinsic bounds is laid out incorrectly. Also fixes an issue
where ColorDrawable would be laid out incorrectly.

Bug: 20643614
Change-Id: I796f0d3e189e482cf6fa169a5dd13f654d72653c
ndroid/graphics/drawable/LayerDrawable.java
c6abf5bff6bbfafa1f133644f02a5d50d5269b7f 24-Apr-2015 Raph Levien <raph@google.com> Expose drawTextRun publicly

For correct low-level drawing of low level text, a method that
includes context for shaping is necessary, and it's similarly useful
to provide the direction explicitly rather than running the BiDi
algorithm on the text. The drawTextRun method (in both char[] and
CharSequence variants) has provided this functionality for several
major releases but has been internal. This patch exposes the
methods publicly, and also improves the doc strings for both
the new method and some related ones.

Bug: 20193553
Change-Id: I9be33ca5ae3e7db2b69a56298400671d5ef8ad05
ndroid/graphics/Canvas.java
ndroid/graphics/Paint.java
1b60cc0529161b5eca6407b551d67d355994c567 24-Apr-2015 Chris Craik <ccraik@google.com> Anti-alias by default

Change-Id: I19434717dd3af4fdcffbfcca2ffbb485dfebe644
ndroid/graphics/Paint.java
88d109d2c5a62f2fb4a82f0ee78a535e56b10907 24-Apr-2015 Ed Heyl <edheyl@google.com> Merge "Fix the build: Revert "Anti-alias by default""
1c44ba9fd45635ec2c7ccdcc41557adf795d2bb5 24-Apr-2015 Ed Heyl <edheyl@google.com> Fix the build: Revert "Anti-alias by default"

This reverts commit d34b7329935a6f9ffdc9a40c01f7b558e07830d4.

Change-Id: I74e63570ce868e6d8c36fd2e1c864419bd6102e4
ndroid/graphics/Paint.java
d1d27c1543a2de464938c068115f2f8dfa5b790a 24-Apr-2015 Lajos Molnar <lajos@google.com> media: add flexible YUV422, 444, and RGB/RGBA formats

These are used by Media.Image on getOutputImage.

Change-Id: I171c5b90423800eeab4e36625dcf727a2a2affcd
ndroid/graphics/ImageFormat.java
01fb343fe8b75a31d4369ed1780bc7d28297a491 24-Apr-2015 Chris Craik <ccraik@google.com> Merge "Anti-alias by default"
a20ea2f056d46916f84e2fbb53fa32728be8bcf4 23-Apr-2015 Chet Haase <chet@google.com> Merge "Add annotation to Rect.intersect()"
5b3edbde20b446ecbfebe5d6ad0dcd735473ac75 23-Apr-2015 Chet Haase <chet@google.com> Add annotation to Rect.intersect()

Failing to check the return result from intersect() can cause artifacts
because the developer may assume that the rect has been changed to the intersection.
In particular, when the two rects do not overlap, there is no change made to the
source rect. Instead, the method simply returns false. When developers do not
check that return value, they may use the source rect and get undefined results.

This change adds the @CheckResults annotation that will cause a Lint warning
when developers call this method without checking the return value.

Change-Id: I476367d74e712038c248c2379fb124734298fcc1
ndroid/graphics/Rect.java
3797a788dc187cdffbdc034a1d4f9791432dac67 22-Apr-2015 Alan Viverette <alanv@google.com> Merge "Fix visual styling for Material Spinner background"
c1b33d665c8caf5760f68c45c6ca0baa649b832a 22-Apr-2015 John Reck <jreck@google.com> GraphicsJNI Canvas cleanup

Change-Id: I72e142986a8bc9f464c1951b6b5187919de3462e
ndroid/graphics/Canvas.java
388cd3b69c51a449b8bbb8086dbc429f24783ad1 21-Apr-2015 Alan Viverette <alanv@google.com> Fix visual styling for Material Spinner background

Adds explicit padding attributes to LayerDrawable, constrains the ripple
to fit within the container to avoid projection.

Bug: 19359934
Bug: 20083467
Change-Id: I46da941fba37552adeb2c1fe617b799f576df0c6
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
1c17ba5f83ad58e3db2aacff3c56323f6fe2bb06 21-Apr-2015 Raph Levien <raph@google.com> Merge "Add Paint methods for cursor positioning"
8222a7ec81552276de1814541201c424b392d90b 21-Apr-2015 John Reck <jreck@google.com> Merge "Revert "Change how Java Bitmaps are accessed in a few places""
edc22fba5921f5c2d3502727e707f959b8c3a460 21-Apr-2015 John Reck <jreck@google.com> Revert "Change how Java Bitmaps are accessed in a few places"

Bug: 20207616

This reverts commit a771b9861d11671c780092d35c0062eeefcf37c0.

Change-Id: Ifd891cc075274a7986e987229e0fed5a04ed9ff0
ndroid/graphics/pdf/PdfRenderer.java
9d4efdf2802f06ccf7031610891f75af70ea5538 17-Apr-2015 John Reck <jreck@google.com> Revert "A bunch more cleanups"

This reverts commit c294d128d03bc9a9982b273a82516c04583438cc.

Change-Id: Id1ebb236950f7c36c6d86e1dd95566d3a200748d
ndroid/graphics/BitmapShader.java
ndroid/graphics/Canvas.java
7809f835cae637c12eebdc92103ad88890228d97 17-Apr-2015 John Reck <jreck@google.com> Revert "Move AssetAtlas off of SkBitmap*"

This reverts commit 87ffb63d90fb6dd2689fe72dcb24fda9a6156220.

Change-Id: I92adfcee454a0a19020cdd9e96a134be0ee529aa
ndroid/graphics/Bitmap.java
afbeb2c2374bf7b7f7efa120944714fab469173d 17-Apr-2015 John Reck <jreck@google.com> Merge "Revert "Remove Bitmap#getSkBitmap""
1ff961dd6d51247e82e41de052f04fd0b577f09b 17-Apr-2015 John Reck <jreck@google.com> Revert "Remove Bitmap#getSkBitmap"

This reverts commit 4bd981ec533a65e8dee053a0a709b484770b0a76.

Change-Id: I5c92cd955c6e70e197dc5cbc5dfeed8369a24a31
ndroid/graphics/Bitmap.java
ndroid/graphics/Canvas.java
ndroid/graphics/NinePatch.java
65aea84c5a41c7c14bfcaf2f390911f8b5596acd 17-Apr-2015 Alan Viverette <alanv@google.com> Merge "Move date picker arrows out of SimpleMonthView"
78bf1d329a4c0210394f846be1fd1390314aefc0 17-Apr-2015 Alan Viverette <alanv@google.com> Move date picker arrows out of SimpleMonthView

Also fixes incorrect docs in Drawable.

Bug: 20188255
Change-Id: I01c8563f734d9c1dad1e149bee80c651981e469f
ndroid/graphics/drawable/Drawable.java
4bd981ec533a65e8dee053a0a709b484770b0a76 16-Apr-2015 John Reck <jreck@google.com> Remove Bitmap#getSkBitmap

Change-Id: Ifb9047b426122d3e5a445eb7a0eb3fce38dedf27
ndroid/graphics/Bitmap.java
ndroid/graphics/Canvas.java
ndroid/graphics/NinePatch.java
87ffb63d90fb6dd2689fe72dcb24fda9a6156220 15-Apr-2015 John Reck <jreck@google.com> Move AssetAtlas off of SkBitmap*

Switched to SkPixelRef*

Change-Id: I4a1d9dc6c55c1ebcce6b0b8c585e69559e523898
ndroid/graphics/Bitmap.java
a027ec5c2dbfbbf10cac9ea538f5e230b093be2f 07-Apr-2015 Raph Levien <raph@google.com> Add Paint methods for cursor positioning

Adds methods to Paint for finding an offset corresponding to an
advance, and for finding the advance corresponding to an offset,
useful for positioning and drawing a cursor.

Change-Id: Id57402ddd1980650f1d0d2f8bbdb75e43612ec51
ndroid/graphics/Paint.java
c294d128d03bc9a9982b273a82516c04583438cc 14-Apr-2015 John Reck <jreck@google.com> A bunch more cleanups

Switch a few places to using android::canvas
instead of SkCanvas as well which eliminated
some JNI

Change-Id: I8f98b56442a06362b82b984cd1bd3a92398d8dbc
ndroid/graphics/BitmapShader.java
ndroid/graphics/Canvas.java
d34b7329935a6f9ffdc9a40c01f7b558e07830d4 10-Apr-2015 Chris Craik <ccraik@google.com> Anti-alias by default

Change-Id: I4d29cae73b05b7ffa03212acdbb13d7b0cf8f905
ndroid/graphics/Paint.java
0381d0b665781394dcd7b47753735f969a670dd6 13-Apr-2015 Alan Viverette <alanv@google.com> Merge "Allow null layers in LayerDrawable"
073f36c6c1bc937a55393f7fe9a21b95e822bfda 13-Apr-2015 John Reck <jreck@google.com> Merge "Change how Java Bitmaps are accessed in a few places"
7a583e7bb3eb13a804bbe2f3ebce802c885a9901 13-Apr-2015 Alan Viverette <alanv@google.com> Allow null layers in LayerDrawable

Bug: 20098214
Change-Id: I80285ddda7101ab7403048d38f9c40af6b692a1a
ndroid/graphics/drawable/LayerDrawable.java
a771b9861d11671c780092d35c0062eeefcf37c0 10-Apr-2015 John Reck <jreck@google.com> Change how Java Bitmaps are accessed in a few places

Stop assuming that a Java Bitmap has a SkBitmap* that
has some externally managed lifecycle, and instead switch
a bunch of users to accessing the bitmap by providing
their own SkBitmap* on which to set the (ref counted!)
SkPixelRef* instead

Change-Id: I0fd9e193968b41e5597784140d56b4885906864a
ndroid/graphics/pdf/PdfRenderer.java
d18c59b3e6d855e6a7ec12fd324791cd621a9b53 10-Apr-2015 Alan Viverette <alanv@google.com> Merge "Don't change state when inflating LayerDrawable"
9eaa604116ea5ee2eca81095d4d587fe680857a7 10-Apr-2015 Alan Viverette <alanv@google.com> Don't change state when inflating LayerDrawable

Bug: 20098214
Change-Id: I6968697053587454bba42c0652efd99b9c8a8e25
ndroid/graphics/drawable/LayerDrawable.java
45f207d6d9ccec1b9975f2ec4ca55e3c42f7bc48 09-Apr-2015 Alan Viverette <alanv@google.com> Only parse LayerDrawable child items when necessary

Bug: 20098214
Change-Id: Ie9da5f6e494ede47f9fdc94481a3f8ca41d3ef00
ndroid/graphics/drawable/LayerDrawable.java
b7acab634ad2a8f318e5e53267df010e3c2a2219 06-Apr-2015 Chris Craik <ccraik@google.com> Merge "Fix path clipping in VectorDrawable"
e9c01a40a2f0f0da195dfbb2909aaee5c005d1c6 06-Apr-2015 Chris Craik <ccraik@google.com> Fix path clipping in VectorDrawable

bug:19946683

Change-Id: I773957df7459eb72ea5d505afb0daac08239ecbf
ndroid/graphics/drawable/VectorDrawable.java
df62ab4833dc34207e68f8ad22e31a5fcaa6744e 03-Apr-2015 ztenghui <ztenghui@google.com> Merge "Add group scaling factor into stroke width."
f673acb6c955a43e0fcf9d95eccc36b31083ff48 03-Apr-2015 Raph Levien <raph@google.com> Merge "Add Paint.hasGlyph method"
f7f969e67e9ab420404807b1b103dcd18d7aa7b7 01-Apr-2015 Raph Levien <raph@google.com> Add Paint.hasGlyph method

This patch adds a method to determine whether a typeface has a glyph
to support a particular Unicode character or sequence.

The implementation is based on shaping the text and checking for the
presence of .notdef glyphs, and counting the number of glyphs in the
ligature case. In the case of variation selector control characters, it
currently just returns false because there is no variation selector
support yet (Mongolian Free Variation Selectors work because they're
shaped with GSUB instead).

Change-Id: I8ee4ae0d6e81a0ac57f961eb02dcc35aabd87042
ndroid/graphics/Paint.java
9af77a4ce22540726fbddd275f89e65fd1a1edf8 02-Apr-2015 ztenghui <ztenghui@google.com> Add group scaling factor into stroke width.

Originally, stroke width is independent of group scaling.
But that is a bug and causing animation trouble.

b/19501782

Change-Id: I33d5e44f2f8b2a82fee1a5a326223a39aaffa86c
ndroid/graphics/drawable/VectorDrawable.java
ec3c97d27f2a424fa847561a3932a40c093a91a1 03-Apr-2015 Chris Craik <ccraik@google.com> Merge "Add compat path for restore underflow"
3891f3ad598561d5a82c07795e1fee7f1d3612d1 03-Apr-2015 Chris Craik <ccraik@google.com> Add compat path for restore underflow

bug:19829784

Change-Id: Ia761664208ab80c055ca11174db3ddc74457b92b
ndroid/graphics/Canvas.java
a4dc29a72122f3e52377134039ebdb92b8e4d618 02-Apr-2015 Yuichi Araki <yaraki@google.com> am 428c2fa0: am c3fbf13d: am e2fc3adb: am 61ce6c9b: am 776cf41d: Fix a broken link in javadoc

* commit '428c2fa0f8b3c49e8bd48458c15363fcd98e8944':
Fix a broken link in javadoc
c3fbf13d525a0bcf1202618b197f4160750b54f1 02-Apr-2015 Yuichi Araki <yaraki@google.com> am e2fc3adb: am 61ce6c9b: am 776cf41d: Fix a broken link in javadoc

* commit 'e2fc3adbb4040400496aebdab80c4cac1083da27':
Fix a broken link in javadoc
0daa5713ee2df841ea22d88a1393ca11e0138621 02-Apr-2015 Alan Viverette <alanv@google.com> Merge "Fix issues with theming of preloaded ColorStateLists"
776cf41d7c8f239d20397886f2120407396cfc87 20-Mar-2015 Yuichi Araki <yaraki@google.com> Fix a broken link in javadoc

Bug: 19856130

Change-Id: I0456e951f8bed36e3a62ddfd882f9c2d2bef9627
ndroid/graphics/drawable/ShapeDrawable.java
77840f4e8fd1af7d0fadce9a42ab5c6c99842d41 02-Apr-2015 Seigo Nonaka <nona@google.com> Merge "Fix cursor position calculation."
b89a605b58bc20ef1ee0923f0578a2fa99a71793 01-Apr-2015 Seigo Nonaka <nona@google.com> Fix cursor position calculation.

The cursor position calculation of not well known CharSequence implementation
has problem. getTextRunCursor() returns the relative path of passed string
buffer, so need to fix the origin by adding the copied buffer origin.

BUG: 17448027
Change-Id: I413c553bfccbccee4a390b6c83aa09ac7fd04126
ndroid/graphics/Paint.java
ffb73620a24062c4c021f04254c3d4e8448b3dd3 01-Apr-2015 Chet Haase <chet@google.com> Fix Drawable.getOpacity() docs

Issue #17140095 Drawable#getOpacity() is documented as ignoring custom alpha, e.g. setAlpha(). It is lying.

Change-Id: Iaef094be750c58a43e13491e7bf9d9b7e56e23d2
ndroid/graphics/drawable/Drawable.java
e0f95f39c5a669a48ee3ebb8dc45bf2d7ee940f1 01-Apr-2015 Alan Viverette <alanv@google.com> Fix issues with theming of preloaded ColorStateLists

Ensures changing configurations mask is propagated to the host drawable
so that it can be properly cleared from cache on configuration changes.
Also fixes constant state handling of the mask in the Inset and Rotate
drawables.

Hides new ColorStateList methods related to theming, since they should
only be used during preloading or internally by framework drawables.

Fixes bug where the cached versions of themeable ColorStateLists were
modified by calling applyTheme() on the host drawable.

Also cleans up some docs and naming in GradientDrawable.

Bug: 19966397
Change-Id: I8c8d3cabbaf94b488c2b8fe9fd423e07d824c19c
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/DrawableWrapper.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
37ec99b19ce7a5d40d16ccc2f578aca66bd7a25d 31-Mar-2015 Yin-Chia Yeh <yinchiayeh@google.com> Merge "Add RAW12 image format"
2f17431194efc5a13981550b004dd8d5d2a42e5e 20-Mar-2015 Zhijun He <zhijunhe@google.com> ImageFormat: add PRIVATE format

Bug: 19865019
Change-Id: I1a9335fe1733a5b28d9cb20485b509fb216cb52b
ndroid/graphics/ImageFormat.java
acc6241da915e463e46407348dcdbf60b4ca753f 27-Mar-2015 Alan Viverette <alanv@google.com> Merge "Only verify resolved theme attributes"
ee7c65d539cb12fe7f8b753fa4b94c2734469fdf 27-Mar-2015 Alan Viverette <alanv@google.com> Only verify resolved theme attributes

Bug: 19962473
Change-Id: I62eb2faea7b09fd483194b41e815179cb2141fcb
ndroid/graphics/drawable/BitmapDrawable.java
304bbd117def97317bddd781b92e4642e1960d18 26-Mar-2015 ztenghui <ztenghui@google.com> Merge "Polish the documentation for VectorDrawable and AnimatedVectorDrawable"
0ea3aca4eb5c920fa43dab1ea027c322d23b9bda 26-Mar-2015 ztenghui <ztenghui@google.com> Polish the documentation for VectorDrawable and AnimatedVectorDrawable

Change-Id: If6bedf84cb01971c55b5a99ad921303dad638b24
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
34c623cbf3677820c4170f24c5211f663dda91f7 25-Mar-2015 ztenghui <ztenghui@google.com> Don't draw when bounds are negative

b/19922909

Change-Id: I68559ed683031f57538439e0a3e4979fe9f430a5
ndroid/graphics/drawable/VectorDrawable.java
9c265091cfe61f46097885c4ebbfdb5b119fd985 25-Mar-2015 ztenghui <ztenghui@google.com> Merge "Add listener support in AVD"
1588f0ff54b88240b55eeaba97e67f0f1dee5f92 24-Mar-2015 ztenghui <ztenghui@google.com> Add listener support in AVD

Internally, switch to use AnimatorSet instead of an array of Animators

b/19825918

Change-Id: Ia67d2cc7dd89362e6b0019c916d3f2a0d0f3e39e
ndroid/graphics/drawable/AnimatedVectorDrawable.java
84d9e0ef0b14daef5c3308edc5c2f7a418456a8b 24-Mar-2015 Andreas Gampe <agampe@google.com> am 5e968ad1: am dde72862: am 7db6ebe0: Merge "Frameworks/base: Don\'t allocate another identity matrix"

* commit '5e968ad1d6c0387fb6b71b3693f5c0e95ccf469f':
Frameworks/base: Don't allocate another identity matrix
7db6ebe03719dfc6b9fb680b038fd9ef0302e4ca 24-Mar-2015 Andreas Gampe <agampe@google.com> Merge "Frameworks/base: Don't allocate another identity matrix"
11d444f0b789ead8b10506d24956d243274c724b 21-Mar-2015 Yin-Chia Yeh <yinchiayeh@google.com> Add RAW12 image format

Change-Id: I1c528ecf62746aa96d6e132eaa874015d9d7c446
ndroid/graphics/ImageFormat.java
1b23240f96bd5318933accf6b212b62f803bee13 20-Mar-2015 Alan Viverette <alanv@google.com> Only propagate state changes if wrapped drawable is stateful


Always update layer bounds if the contained drawable changed in any
way. Also adds null annotations in LayerDrawable and throws a more
useful exception when the layers argument is null.

Change-Id: Iae0cba68257e48b6a45fe081c3d4b0509d2dedd5
ndroid/graphics/drawable/DrawableWrapper.java
ndroid/graphics/drawable/LayerDrawable.java
fc8882f1340055e00f6c21449983e92413045275 19-Mar-2015 Alan Viverette <alanv@google.com> Clean up ripple exit, null out software animators on cancel/end

Bug: 19682421
Change-Id: I40ff56ed98a6c67cd01c74e455899825013a1f12
ndroid/graphics/drawable/RippleComponent.java
ndroid/graphics/drawable/RippleDrawable.java
43c410eaacf7d287c6c3f5621e6e0b96501004dc 18-Mar-2015 Chris Craik <ccraik@google.com> Merge "Remove HardwareCanvas"
7463438912b5f65d4613c68a0cdd73aadff95c73 17-Mar-2015 Andreas Gampe <agampe@google.com> am 46277ba2: am 28e6aeca: Merge "Frameworks/base: Make IDENTITY_MATRIX final"

* commit '46277ba2c70e9fe0fc9772dcb84040aff1c322be':
Frameworks/base: Make IDENTITY_MATRIX final
28e6aeca3aad075ef4fd7aab08cd1ad1ff9eb555 17-Mar-2015 Andreas Gampe <agampe@google.com> Merge "Frameworks/base: Make IDENTITY_MATRIX final"
399fa8a60af5362f2bd93636d6a5e7e1fb574131 16-Mar-2015 Andreas Gampe <agampe@google.com> Frameworks/base: Make IDENTITY_MATRIX final

Bug: 19797138
Change-Id: I127f24b7060a0c4dab401ce8e3057d362c6d6b06
ndroid/graphics/Matrix.java
da81fa569ed2f955252d69c1e000ebc1a2850191 16-Mar-2015 Tor Norbye <tnorbye@google.com> Merge "Add resource type annotations to some APIs"
08067d98295303cf9c8235ab27b3e6e8038f084c 16-Mar-2015 Andreas Gampe <agampe@google.com> am 8e176d39: am 007e207b: Merge "Frameworks/base: Fix null-pointer check"

* commit '8e176d396d393af90ffe288d849e95ff40aa2b23':
Frameworks/base: Fix null-pointer check
d538fa0fb21171d8256b7d800ae757757f4e3a44 16-Mar-2015 Andreas Gampe <agampe@google.com> Frameworks/base: Don't allocate another identity matrix

There is already an identity matrix in Matrix. Don't allocate another
one for VectorDrawable.

Change-Id: I51735f262d6680e043b0009707ec42acb2d0d1ad
ndroid/graphics/drawable/VectorDrawable.java
f2b1cff4e2b152a7c776a7a79e8225a591f97d3e 15-Mar-2015 Andreas Gampe <agampe@google.com> Frameworks/base: Fix null-pointer check

Change-Id: I715a21c313e909ae654e0c1aa67bdf7bcd89de76
ndroid/graphics/drawable/VectorDrawable.java
210a189e226d5ce64f760d557efc6570409c8147 09-Mar-2015 Raph Levien <raph@google.com> Add HyphenEdit support to Paint

This adds HyphenEdit on the C++ and also to Java via JNI. HyphenEdit is
a Minikin feature for adding hyphens to text without having to edit the
string on the client side.

Change-Id: Icfb228407c1d11a716d055f813da7507acb38fbf
ndroid/graphics/Paint.java
417ee5ba89f7e0fe5efd34fce74bf1ee5923d976 11-Mar-2015 Tor Norbye <tnorbye@google.com> Add resource type annotations to some APIs

Change-Id: I37c8afdaea455aa92bc8270bb2dfd60616c5f9bc
ndroid/graphics/PorterDuffColorFilter.java
ndroid/graphics/drawable/Drawable.java
f6829a0a618b4523619ec53c996b04d67e3186b9 10-Mar-2015 Chris Craik <ccraik@google.com> Remove HardwareCanvas

Change-Id: I239646a7f00f09d3f76fe6b6162eed86bc0d6e77
ndroid/graphics/drawable/RippleBackground.java
ndroid/graphics/drawable/RippleComponent.java
ndroid/graphics/drawable/RippleForeground.java
6a67db41388165aca63d0d5de2830cc096ed930b 03-Mar-2015 Alan Viverette <alanv@google.com> Implement bounded ripple animation

Bug: 19431322
Change-Id: I5dc1a28d8675cc6fb036b815d6227113c3f1aa4b
ndroid/graphics/drawable/RippleComponent.java
ndroid/graphics/drawable/RippleDrawable.java
ndroid/graphics/drawable/RippleForeground.java
53776a2b3c18f3eb2217e5e3af4dda187d0fee62 10-Mar-2015 Alan Viverette <alanv@google.com> Merge "Refactor ripple components, simplify background animation"
f872ee0057ed247aa93589347f1b53afc99517f8 10-Mar-2015 Alan Viverette <alanv@google.com> Refactor ripple components, simplify background animation

Moves animation lifecycle and software/hardware hand-off into a unified
RippleComponent class, which makes it easier to maintain the components.
Adds better javadocs and comments to explain what's going on.

Bug: 19431322
Change-Id: Ifb9b9a7dcc24238719ef12293493ca3df107679f
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/RippleBackground.java
ndroid/graphics/drawable/RippleComponent.java
ndroid/graphics/drawable/RippleDrawable.java
ndroid/graphics/drawable/RippleForeground.java
805f3c9428f9ebd5080aec48d3d9d77dbf4b41a9 26-Feb-2015 Eino-Ville Talvala <etalvala@google.com> Add DEPTH image formats, support in ImageReader

- Add an explicit mapping between public ImageFormat/
PixelFormat enums and internal HAL format/dataspace.
- Add DEPTH16 and DEPTH_POINT_CLOUD formats
- Wire up mapping layer to ImageReader to support depth
formats

Change-Id: I8197eccef900cc91baddcfcb934ccd4d8c972eff
ndroid/graphics/ImageFormat.java
b3ec733bb830f2d4425825d93f9ed95f284e9145 04-Mar-2015 Tor Norbye <tnorbye@google.com> Annotate methods with size and range annotations

Change-Id: I666861f0dfae31402b1280e9a966a583b88e2e1a
ndroid/graphics/Canvas.java
ndroid/graphics/Color.java
ndroid/graphics/Outline.java
1c2bf03d1082fc6b7eb42cbd163c60c07cf2bccc 02-Mar-2015 Tor Norbye <tnorbye@google.com> Annotate return values with @CheckReturn

Change-Id: Icd8fb6adb591ccd7f35f2336ae716b198abf69c5
ndroid/graphics/Bitmap.java
c0a1b7f9a6a496deb68b095d122ca85f22daad98 07-Mar-2015 Tor Norbye <tnorbye@google.com> Merge "Annotate ARGB integer parameters with @ColorInt"
c0bf700441e1b53f1693d7445dc6f9876f5c9b4f 06-Mar-2015 Derek Sollenberger <djsollen@google.com> SkPorterDuff Multiply mode maps to SkXfermode modulate.

bug:19627342
Change-Id: I97f26ca1bc8abe2768f4a12cc70fb0fa5d905098
ndroid/graphics/PorterDuff.java
2d08eaf0341df5d22236baadbcc4341f0e2e7f5e 06-Mar-2015 Chris Craik <ccraik@google.com> Merge "Revert "Revert "Remove references to SkPorterDuff as it is deprecated."""
1526a458a30184609f19b05e7334da3cbde81dd1 06-Mar-2015 Chris Craik <ccraik@google.com> Revert "Revert "Remove references to SkPorterDuff as it is deprecated.""

Fix build breakage.

This reverts commit 26b4f598c8b1e99b43261614a6861785638c8c00.

Change-Id: If39ce2a41d26a8520091f330234c3d35e413ee92
ndroid/graphics/PorterDuff.java
fdbf68ff6c5e45da4971352775d614e6790cc991 06-Mar-2015 Chris Craik <ccraik@google.com> Merge "Revert "Remove references to SkPorterDuff as it is deprecated.""
26b4f598c8b1e99b43261614a6861785638c8c00 06-Mar-2015 Chris Craik <ccraik@google.com> Revert "Remove references to SkPorterDuff as it is deprecated."

bug:19627342

This reverts commit a9aded1f6253afbea7906509992a8a3721f731ab.

Change-Id: Ic865edfbd31c9e24d18a1397a1d346633376e20a
ndroid/graphics/PorterDuff.java
80756e38882720860db52f1fcc21fa1505a02abf 02-Mar-2015 Tor Norbye <tnorbye@google.com> Annotate ARGB integer parameters with @ColorInt

Change-Id: I307f72a382272cf18ddb6b07d9fcb81228568d9a
ndroid/graphics/Bitmap.java
ndroid/graphics/Canvas.java
ndroid/graphics/Color.java
ndroid/graphics/Paint.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/GradientDrawable.java
f4faeac3525fe1ce3707ab785a1651aec367589d 05-Mar-2015 John Reck <jreck@google.com> Cleanup Bitmap JNI attempt #2

Original version missed a spot

This reverts commit c02977e3bbfaaedcb1b1d67e1692becc7dddd59b.

Change-Id: I56244ce10d709fcdef42a001fe4c6ba7b6bbb04d
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapShader.java
ndroid/graphics/Canvas.java
ndroid/graphics/NinePatch.java
ndroid/graphics/pdf/PdfRenderer.java
b9a468eb193a374bf82279817aa592b3f5901c98 05-Mar-2015 Chad Jones <chadj@google.com> Merge "Revert "Cleanup Bitmap JNI""
c02977e3bbfaaedcb1b1d67e1692becc7dddd59b 05-Mar-2015 Chad Jones <chadj@google.com> Revert "Cleanup Bitmap JNI"

This reverts commit b2915245b74b3b5541b123e38403f8e26426b4b7.

Change-Id: Idd7d7f33eec4ea5024c83de6b10d3d1a6ab2b17a
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapShader.java
ndroid/graphics/Canvas.java
ndroid/graphics/NinePatch.java
ndroid/graphics/pdf/PdfRenderer.java
35da7d904b4eb6ef215ea57cef35bac31f05defd 05-Mar-2015 John Reck <jreck@google.com> Merge "Cleanup Bitmap JNI"
b2915245b74b3b5541b123e38403f8e26426b4b7 04-Mar-2015 John Reck <jreck@google.com> Cleanup Bitmap JNI

Fix a bunch of places where mNativeBitmap was being
poked at directly, switch them either to the NDK API
or to GraphicsJNI where it made sense

Change-Id: I6b3df3712d6497cba828c2d3012e725cb4ebb64d
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapShader.java
ndroid/graphics/Canvas.java
ndroid/graphics/NinePatch.java
ndroid/graphics/pdf/PdfRenderer.java
a0bfb2d99f071aa42d2b04dcd77972d9a0888853 05-Mar-2015 Chris Craik <ccraik@google.com> Merge "Fix push shader to native"
6170cd1f351d8a8e6833137a3de8d2b949f989a3 05-Mar-2015 Chris Craik <ccraik@google.com> Fix push shader to native

bug:19586908
Change-Id: Ie6205bc76667222f2df2da60a27244988f3a2b3b
ndroid/graphics/Paint.java
a9aded1f6253afbea7906509992a8a3721f731ab 04-Mar-2015 Derek Sollenberger <djsollen@google.com> Remove references to SkPorterDuff as it is deprecated.

Change-Id: Ic0722cfef4ed61aa546c495924397097a45cfe77
ndroid/graphics/PorterDuff.java
4939e2bf3672a3260354263763a50d5f64758f21 03-Mar-2015 Chris Craik <ccraik@google.com> Merge "Improve docs for drawable tint and color filters"
bd3bfc5285dcacff0a69fecf3baeeeb90d887a58 02-Mar-2015 Chris Craik <ccraik@google.com> Improve docs for drawable tint and color filters

bug:19564477
Change-Id: I7e11baae2d4dd245965904c85b8855de71f6b6ac
ndroid/graphics/PorterDuffColorFilter.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/DrawableWrapper.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
08c7116ab9cd04ad6dd3c04aa1017237e7f409ac 28-Feb-2015 John Spurlock <jspurlock@google.com> Remove unused imports in frameworks/base.

Change-Id: I031443de83f93eb57a98863001826671b18f3b17
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
25f0e6183b632e6f2ba1963e3a4e94c27824dce7 27-Feb-2015 Alan Viverette <alanv@google.com> Revert "Use ObjectAnimator for fading scrollbars, set initial duration to 1500"

Bug: 19522833
Bug: 19528265
This reverts commit 72710f11ecd3baf468bf649283453cb7aafe4d74.

Change-Id: I7235ae3ca53696f029cc18f19fe1d373c4f54bbf
ndroid/graphics/drawable/Drawable.java
5bc5d7c45f4a0f6e556200051b96b7870553b06f 26-Feb-2015 Alan Viverette <alanv@google.com> Merge "Propagate original Resources to DrawableContainer if no override set"
102a6bff77c618112762245dbd798c8d7f6d44ea 26-Feb-2015 Alan Viverette <alanv@google.com> Propagate original Resources to DrawableContainer if no override set

Also fixes a double-add in ASLD.

Bug: 19498949
Change-Id: I9e7e0a0fb22a23518c80c1b099f8da0e0c1f53d8
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/DrawableContainer.java
70e68e0ff17f3d47f382b6ac0e6a7eb49be17965 26-Feb-2015 Alan Viverette <alanv@google.com> Set AnimationDrawable running to false unless animation is scheduled

Also cleans up java docs and clarifies functionality of nextFrame().

Bug: 19500067
Change-Id: I8c274c6f4df7ee17d28ae151009f07a420c9ab1a
ndroid/graphics/drawable/AnimationDrawable.java
40d13f260c50ac5235f7405e1c3a83d6f46a8d62 26-Feb-2015 Alan Viverette <alanv@google.com> Merge "Remove obsolete code from AnimatedRotateDrawable state"
039bd51a23d886d0acaa93458e286329503bd243 26-Feb-2015 Alan Viverette <alanv@google.com> Remove obsolete code from AnimatedRotateDrawable state

DrawableWrappers shouldn't have drawables inside their state, nor should
they manage their own drawables. Also cleans up documentation.

Bug: 19518051
Change-Id: I2aea011afe80e94aadec702e1680c3765528b112
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
a6d44842189bdccfc7717edc22ff9361d3cc6c0c 25-Feb-2015 Alan Viverette <alanv@google.com> Merge "Create blank state in no-arg RotateDrawable constructor"
f74869698abff333daed28aa2f472a1e3183c2ed 25-Feb-2015 Alan Viverette <alanv@google.com> Create blank state in no-arg RotateDrawable constructor

Also removes unnecessary constructor in InsetState so that it matches
the other DrawableWrapper classes.

Bug: 19489698
Change-Id: Ib2e510c6ae90858774970d928e541a9b08cb714a
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
32adbd3524210c20ba794751f390befaffefd212 24-Feb-2015 Alan Viverette <alanv@google.com> Merge "Always apply color filter passed to DrawableContainer.setColorFilter"
6f51440a746ef4925ec329cd3a71a9689be2b10b 24-Feb-2015 Alan Viverette <alanv@google.com> Always apply color filter passed to DrawableContainer.setColorFilter

Bug: 19461256
Change-Id: Id44d276739b868e504139cdf767992039f3e4336
ndroid/graphics/drawable/DrawableContainer.java
6a8253fdc9f4574c28b4beeeed90580ffc93734a 23-Feb-2015 Alan Viverette <alanv@google.com> Update progress bar and seek bar backgrounds, fix seek bar thumb

Ensures LayerDrawable copies out the correct layer properties during
"tileification". This really needs to be deprecated or replaced in a
future CL, though, because it is potentially lossy (e.g. for
RippleDrawable, which is an instanceof LayerDrawable).

Bug: 19448441
Change-Id: I483e9c34fd781e280c13eb5951f96bc71a252819
ndroid/graphics/drawable/LayerDrawable.java
b3f3762ee0f57c94ea25bc1cc9d4baf0ee2a2976 23-Feb-2015 Alan Viverette <alanv@google.com> Merge "Unify wrapper-type drawables"
65bc1f521417a90fcf09d508f90b27cae2c786f7 21-Feb-2015 Elliott Hughes <enh@google.com> am 031a9b13: am 92c4f175: am d002e027: Merge "Fix \'fuchsia\' typo."

* commit '031a9b13197f6ab1ff83ccdafd890351b70bb63c':
Fix 'fuchsia' typo.
92c4f1756d4ae8ef1082f159f7133ad811f235d4 21-Feb-2015 Elliott Hughes <enh@google.com> am d002e027: Merge "Fix \'fuchsia\' typo."

* commit 'd002e02750b51fed3da41a2b4b222824df8d1a10':
Fix 'fuchsia' typo.
fd9bc7bb36c68a104c739e378086ac82ace29c4b 21-Feb-2015 Elliott Hughes <enh@google.com> Fix 'fuchsia' typo.

Bug: https://code.google.com/p/android/issues/detail?id=152142
Change-Id: Ib45f2d19d52fe9d95d560d37296d50cba190cb83
ndroid/graphics/Color.java
a12962207155305da44b5a1b8fb9acaed358c14c 21-Feb-2015 Alan Viverette <alanv@google.com> Unify wrapper-type drawables

Fixes several issues with constant state and propagation of drawable
property changes to wrapped drawables. Also un-hides the layout
direction accessors and hotspot getter.

Change-Id: Iff19db6a95059cbcfcbde7af0ac33871ccd41615
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/DrawableWrapper.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
72710f11ecd3baf468bf649283453cb7aafe4d74 20-Feb-2015 Alan Viverette <alanv@google.com> Use ObjectAnimator for fading scrollbars, set initial duration to 1500

Fairly intensive refactoring of ScrollabilityCache.

Change-Id: I88669c0b9b79ca12a237606d5ff8be0e7e8b37ba
ndroid/graphics/drawable/Drawable.java
88d44d4adaa68db02e4eef68606591028a92add0 13-Feb-2015 Alan Viverette <alanv@google.com> Add attribute for controlling ripple radius

Sets up the action bar item and control styles to use a 20dp radius
ripple to match latest Material spec.

Bug: 19370157
Change-Id: I87cba01076ee83937a6bfd36fc7dc188e1eb4672
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/RippleBackground.java
ndroid/graphics/drawable/RippleDrawable.java
d8c18e81c0588a4e80bfe72fef769d758ed90f89 12-Feb-2015 Alan Viverette <alanv@google.com> API for adding layers to LayerDrawable

Change-Id: I859c956a47d95fa1ce65b9eea9bc7be4659486bf
ndroid/graphics/drawable/LayerDrawable.java
a756fd9af67acae37c12b492266d75fee5b1e578 11-Feb-2015 Alan Viverette <alanv@google.com> Prevent temp rect reuse across methods in LayerDrawable

Drawable invalidation may call back into methods that are relying on
the same temp rect objects, which mangles the values.

Bug: 19321598
Change-Id: If8aa434cf85c81d22b5d580e258926087248cd93
ndroid/graphics/drawable/LayerDrawable.java
7354b30d9081abdaf36b3e93eb224e728dfc8ecd 03-Feb-2015 Alan Viverette <alanv@google.com> Add layer width, height, gravity, and RTL insets for LayerDrawable

Bug: 18473819
Change-Id: Iae8e3dbd3fcc7f4c2f08b266c69d40036e75dfb6
ndroid/graphics/drawable/LayerDrawable.java
e300553a01160c093c44c1f428117360714e513f 02-Feb-2015 Alan Viverette <alanv@google.com> Merge "Ensure InsetDrawable propagates state and callback on set drawable"
bc43ac2094a833623e99c38cd3d0cedfef61260e 02-Feb-2015 Alan Viverette <alanv@google.com> Ensure InsetDrawable propagates state and callback on set drawable

Bug: 19230432
Change-Id: I161e377c5a50fd68718a36cef0038ab06e74c90d
ndroid/graphics/drawable/InsetDrawable.java
7d6854a2292df70de284b490348770ad7c66d47b 31-Jan-2015 Alan Viverette <alanv@google.com> Synchronize mutated constant state's drawable constant state

Mutating InsetDrawable's locally-held drawable alters its constant state,
so we need to update the InsetDrawable's reference to match. This ensures
that any drawables created using getConstantState().newDrawable() will
match the mutated versions.

Bug: 19213175
Change-Id: If9063bcc0942691a8940443e607f2dc722fc6e13
ndroid/graphics/drawable/InsetDrawable.java
1db141f93c4fe79a4669440c3d14f63bc87b2e34 16-Dec-2014 Derek Sollenberger <djsollen@google.com> Create proxy between Skia's SkCanvas and the framework Canvas.

This enables Picture.java to be replayed into HWUI in addition
to extending the Skia testing suite to HWUI.

Bug: 19011232
Change-Id: Id27ac03eec817b0784763e62ab8413a07b3b8cb2
ndroid/graphics/Picture.java
9bf106f1569faf647b5d3cf4dbc0b60e0921c831 30-Jan-2015 Leon Scroggins III <scroggo@google.com> Merge "Move SkAvoidXferMode into frameworks/base."
626647c3f6975269e6c2e0ebd4f412a977f49735 29-Jan-2015 Leon Scroggins III <scroggo@google.com> Move SkAvoidXferMode into frameworks/base.

We are removing it from Skia, so we need it here to support Android.

Add some small cleanups (remove comment that doesn't apply, convert
SK_OVERRIDE to override, remove 'virtual' keyword from methods with
'override' on them).

BUG:skbug.com/3329
Change-Id: I1f883082d6fb9d49b9c9ba9e1f50bd713eabf915
ndroid/graphics/AvoidXfermode.java
f0f7f8ceb5d1effd34fe2734f6493726bf01dd1c 27-Jan-2015 Alan Viverette <alanv@google.com> Move drawable out of inset state, only store constant state

This ensures that InsetDrawable's constant state only references other
constant states rather than holding an entire Drawable, which provides
a clean separation between local and constant state information. This
ensures that calls to mutate() can create a new constant state without
losing local drawable state and that newDrawable() still relies on
the same constant state.

Bug: 19156549
Bug: 13877782
Change-Id: I48146f6c7ac3593009cfa323fc341bcd7d8ab21b
ndroid/graphics/drawable/InsetDrawable.java
fe026218d0e2d122905b990cbb074771325424bb 23-Jan-2015 John Reck <jreck@google.com> am 94474515: Merge "Prevent memory corruption from use-after-free" into lmp-mr1-dev automerge: bb8d7ff
automerge: 1e5dd46

* commit '1e5dd46133bd47445ba0657692fb86492acad705':
Prevent memory corruption from use-after-free
1e5dd46133bd47445ba0657692fb86492acad705 23-Jan-2015 John Reck <jreck@google.com> am 94474515: Merge "Prevent memory corruption from use-after-free" into lmp-mr1-dev
automerge: bb8d7ff

* commit 'bb8d7ffeae187e8782a9494e252e335db537b2a1':
Prevent memory corruption from use-after-free
4018eb376383a9bbe2aa75a95cc6917ca72aa0b7 23-Jan-2015 John Reck <jreck@google.com> Prevent memory corruption from use-after-free

Bug: 19035637

If an app tries to call recycle() on a Bitmap that has
already been finalized it will result in use-after-frees. This is
bad. Avoid this by setting the pointer to 0 and checking for this

Change-Id: I12d73703a0f95b05fe4c2fd8e9c01b6a3f2f023b
ndroid/graphics/Bitmap.java
8ac90a0609caba703b22dc4462da4f45fbb1985e 21-Jan-2015 Alan Viverette <alanv@google.com> Avoid ripple buffer creation for empty bounds automerge: b74155c automerge: e6e216c
automerge: 2aacb86

* commit '2aacb861f4c7b80c5d2bb22956c9a5d4ace4df67':
Avoid ripple buffer creation for empty bounds
2aacb861f4c7b80c5d2bb22956c9a5d4ace4df67 21-Jan-2015 Alan Viverette <alanv@google.com> Avoid ripple buffer creation for empty bounds automerge: b74155c
automerge: e6e216c

* commit 'e6e216c48ea25bdbc2d0a262c74670fb6513e42b':
Avoid ripple buffer creation for empty bounds
b74155cf01f959fc9b7909de5a22806ad519f7c9 21-Jan-2015 Alan Viverette <alanv@google.com> Avoid ripple buffer creation for empty bounds

Bug: 19068439
Change-Id: I031d4303bbf101a25612dce6f02d81ce4cf58e2b
ndroid/graphics/drawable/RippleDrawable.java
a0d17f80902468b5a4e0874daeac92abc6f71b3e 20-Jan-2015 ztenghui <ztenghui@google.com> Merge "Update the javadoc for the clip path fix."
d2052175ebdce296da8c92bf6ed695ecb1b18d4a 15-Jan-2015 Alan Viverette <alanv@google.com> am c83245be: am 628e646e: am aa229902: Merge "Jump ripples to end when switching to a non-hardware canvas" into lmp-mr1-dev

* commit 'c83245be678608533ce53005f4149719f6dd5e03':
Jump ripples to end when switching to a non-hardware canvas
c83245be678608533ce53005f4149719f6dd5e03 15-Jan-2015 Alan Viverette <alanv@google.com> am 628e646e: am aa229902: Merge "Jump ripples to end when switching to a non-hardware canvas" into lmp-mr1-dev

* commit '628e646eeae6147578428632d7c25326b8b7ef59':
Jump ripples to end when switching to a non-hardware canvas
a0c0ca738989fd3ecad8a54a91f0c6a8b30ad1ab 15-Jan-2015 Alan Viverette <alanv@google.com> Jump ripples to end when switching to a non-hardware canvas

Previously we canceled the hardware animations but neglected to reset
the state, which left us drawing in the pressed state.

Bug: 19020524
Change-Id: I439a18126b9093cac40006361be99f8d077b95a9
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/RippleBackground.java
6fbcefe4d7248912cd797de376eb25c5ace1544d 14-Jan-2015 ztenghui <ztenghui@google.com> Update the javadoc for the clip path fix.

b/18758765

Change-Id: I1845c09a120ecdf0d7685ff1f6165b1e841db5ce
ndroid/graphics/drawable/VectorDrawable.java
5a880611cce5276dfb3138b6360a5c69994718be 10-Jan-2015 ztenghui <ztenghui@google.com> Merge "Limit the scope of clip path to the group, not global"
054a17caaa7cd36f4f4ba644088c4ccf5b9c06fb 08-Jan-2015 ztenghui <ztenghui@google.com> Limit the scope of clip path to the group, not global

http://b/18758765

Change-Id: I899401a5fcbccd0421687bd5cf671f7751092195
ndroid/graphics/drawable/VectorDrawable.java
304cc5387478618164cd9167f12564f91eb6cc66 08-Jan-2015 Derek Sollenberger <djsollen@google.com> Use the generic Canvas instead of SkCanvas

bug: 18642206
Change-Id: I0dc3f6b620083e5948c2d4be541ae7c6261b3482
ndroid/graphics/Movie.java
5dc973cb03889c58988703b58aefbd2397fb02c3 08-Jan-2015 Alan Viverette <alanv@google.com> Use text ascent / descent to center SimpleMonthView labels

Also updates Canvas.drawText() docs to clarify that the y-origin is
actually the baseline rather than the top (which is what developers
expect).

BUG: 18864682
Change-Id: Ibfa2a79327d17b5135f90468195fbeca922a25c8
ndroid/graphics/Canvas.java
f4c068b72e2dee2e6944488ef00b64c93217d7e8 06-Jan-2015 Alan Viverette <alanv@google.com> Add getDither, getFilterBitmap to Drawable for CTS testing

Also removes unnecessary overrides from PictureDrawable.

Change-Id: I13539b5204e8c0d8b9912da14de7ceae62720e3f
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/PictureDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
304ea5aac77cae03b4e8440a7c73c18086d96a20 06-Jan-2015 Alan Viverette <alanv@google.com> Merge "Allow use of theme attributes in color state lists"
8dfaa4904205772cdceee63ef3989bcdedf1a914 09-Dec-2014 Tom Hudson <tomhudson@google.com> Make DisplayListRenderer inherit from Canvas, merge JNI

Incrementally unify the upper layers for Skia and HWUI.
Remove redundant code from GLES20Canvas.java; instead
use inherited mNativeCanvasWrapper and superclass method
definitions.

Moves some unrelated SkPaint utility functions from Renderer
to new utils/PaintUtils.

bug: 15672762
Change-Id: I4ddd4214b8e9eeb95289d054ef423f2542bb5fa5
ndroid/graphics/Canvas.java
45c4bbbbce6bbad50a033efcba7948a23f1f117a 05-Jan-2015 Alan Viverette <alanv@google.com> Allow use of theme attributes in color state lists

BUG: 17384842
Change-Id: Ibdc413acbd00e37b908432abd55f6521c22b8fc9
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
5a4be5a2dae601954784455ec27ece26de0bdc8d 12-Dec-2014 Alan Viverette <alanv@google.com> am e260a358: am 7c3212b2: Merge "Propagate DrawableContainer state on mutate, fix ColorDrawable theming" into lmp-mr1-dev
automerge: 81612d8

* commit '81612d80c5b2d40c8cf1fb03336a9b0f9249d82a':
Propagate DrawableContainer state on mutate, fix ColorDrawable theming
0a69ae9666be130faedf5c8f72bea6c5f6227eaf 12-Dec-2014 Alan Viverette <alanv@google.com> am 1060d75e: am 9a1b4c29: Merge "Move ripple to end state on jump when hardware exit is pending" into lmp-mr1-dev
automerge: 2e0e2a4

* commit '2e0e2a44073e7417a42d97e9d7b82e050a845b4d':
Move ripple to end state on jump when hardware exit is pending
81612d80c5b2d40c8cf1fb03336a9b0f9249d82a 12-Dec-2014 Alan Viverette <alanv@google.com> am e260a358: am 7c3212b2: Merge "Propagate DrawableContainer state on mutate, fix ColorDrawable theming" into lmp-mr1-dev

* commit 'e260a358bfc945bf01d901f496b7f30784cbf920':
Propagate DrawableContainer state on mutate, fix ColorDrawable theming
2e0e2a44073e7417a42d97e9d7b82e050a845b4d 12-Dec-2014 Alan Viverette <alanv@google.com> am 1060d75e: am 9a1b4c29: Merge "Move ripple to end state on jump when hardware exit is pending" into lmp-mr1-dev

* commit '1060d75e3abd37671b0962297f4587dd3d6e0cc8':
Move ripple to end state on jump when hardware exit is pending
7c3212b2f4f2f4b5ee18f2db925db95ee420d489 12-Dec-2014 Alan Viverette <alanv@google.com> Merge "Propagate DrawableContainer state on mutate, fix ColorDrawable theming" into lmp-mr1-dev
9bc11ac168d63900589158074028e6c480579421 12-Dec-2014 Alan Viverette <alanv@google.com> Move ripple to end state on jump when hardware exit is pending

BUG: 18734676
Change-Id: Ie063e1eec0b4f28f936ea27822afacfd1b72a0e9
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/RippleBackground.java
419aa7ad14926a30220aa3b71d045855ea54040a 12-Dec-2014 Alan Viverette <alanv@google.com> Propagate DrawableContainer state on mutate, fix ColorDrawable theming

BUG: 18542282
BUG: 18467568
Change-Id: Id1d75cfe47fde3206ab40e5360289e0cb2504402
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/DrawableContainer.java
9f2d0d27ac2e30d641e26775761e2909fa863f9a 11-Dec-2014 Alan Viverette <alanv@google.com> am 934d8d85: am daec5943: Fix build automerge: aaf2e19

* commit '934d8d85be221b86cb5097625c0f48391b3a71b2':
Fix build
6a9fb4b6dd5703bfaabab9433b6f702e532f638d 11-Dec-2014 Alan Viverette <alanv@google.com> am 7d0aed2d: am 4e137437: Merge "Update tint filter after setting gradient drawable state" into lmp-mr1-dev automerge: c211857

* commit '7d0aed2d2c0c2fd4bcaa0e786efd6134ae162d07':
Update tint filter after setting gradient drawable state
d8d9cbe3ffa3fc3c4d85c9daa549f51a04447783 11-Dec-2014 Alan Viverette <alanv@google.com> am 1259ab3a: am 3d517a70: am 62b780e8: Avoid creating futures for drawables with no constant state

* commit '1259ab3a881adb008b74e5ad81c84e088f674cf6':
Avoid creating futures for drawables with no constant state
934d8d85be221b86cb5097625c0f48391b3a71b2 11-Dec-2014 Alan Viverette <alanv@google.com> am daec5943: Fix build
automerge: aaf2e19

* commit 'aaf2e190d363f5934e5bc2fd3293d41aa9ac00aa':
Fix build
7d0aed2d2c0c2fd4bcaa0e786efd6134ae162d07 11-Dec-2014 Alan Viverette <alanv@google.com> am 4e137437: Merge "Update tint filter after setting gradient drawable state" into lmp-mr1-dev
automerge: c211857

* commit 'c211857af37eabb6073fa2ac402c9f7de9548822':
Update tint filter after setting gradient drawable state
daec594370f0e47bf07d0c9c968e3c5dfedf0bb5 11-Dec-2014 Alan Viverette <alanv@google.com> Fix build

Change-Id: I2efdf2790aa768eaaa6e7e0b80a9ad7b2ddf3cb9
ndroid/graphics/drawable/GradientDrawable.java
1259ab3a881adb008b74e5ad81c84e088f674cf6 11-Dec-2014 Alan Viverette <alanv@google.com> am 3d517a70: am 62b780e8: Avoid creating futures for drawables with no constant state

* commit '3d517a701cb583f59ed8deefd21ab854c3890065':
Avoid creating futures for drawables with no constant state
3ad771b384b55bc0b9ee9519f457ea7093bb0b74 11-Dec-2014 Alan Viverette <alanv@google.com> Update tint filter after setting gradient drawable state

BUG: 18706381
Change-Id: I7d664303c9b796243da6c55d1ea9482736aabf07
ndroid/graphics/drawable/GradientDrawable.java
62b780e85ff2fcefd4324c3bfbf49b14963cf58b 10-Dec-2014 Alan Viverette <alanv@google.com> Avoid creating futures for drawables with no constant state

We don't need to create futures for drawables without constant state,
since we only copy on mutate and we don't need to do any work on mutate()
for drawables without shared constant state. Also we would crash in that
case, so avoiding the NPE is nice too.

Rider: Also fixes elevations again.

BUG: 18696100
Change-Id: I4d7737f39ce3efc5830704e5ce412c540603e6ac
ndroid/graphics/drawable/DrawableContainer.java
7668e78601a0260f8ca67ebec742fe30f3872db2 10-Dec-2014 Nick Kralevich <nnk@google.com> resolved conflicts for merge of 3bae94d7 to master

Change-Id: I381539b1494447d62290c492f2550840fe0b559c
f1d6706fb44f0a4caa2a580caae9a48d4da2caa7 10-Dec-2014 Alan Viverette <alanv@google.com> am c5d71c67: am 60abe259: am 6ef76c60: Merge "Fix default value of AnimationDrawable\'s one shot property" into lmp-mr1-dev

* commit 'c5d71c67dfbcd0d80ee1fa453e027ea642542fc3':
Fix default value of AnimationDrawable's one shot property
3bae94d78ed4c078552df9817a1952129a725189 10-Dec-2014 John Reck <jreck@google.com> resolved conflicts for merge of fe11126d to lmp-mr1-dev-plus-aosp

Change-Id: I60bf82ff71d9af0d80e7da8856efb4641c85885b
d3a0da9aac4c52683f59835de92840b875476380 09-Dec-2014 Alan Viverette <alanv@google.com> am 5a50a8bc: am e615da7e: am f1792c42: Merge "Fix hotspot coordinate propagation in ViewGroup and AbsListView" into lmp-mr1-dev

* commit '5a50a8bcabdb2593b48b06854a7455318399b6d1':
Fix hotspot coordinate propagation in ViewGroup and AbsListView
dad7d84c04c5954b63ea8bb58c52b2291f44b4df 09-Dec-2014 John Reck <jreck@google.com> Teach AssetAtlas about more drawables

Bug: 18317479

Change-Id: I16868ee204d24af72af9a2efc987f7e9eb1d266b
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
c5d71c67dfbcd0d80ee1fa453e027ea642542fc3 09-Dec-2014 Alan Viverette <alanv@google.com> am 60abe259: am 6ef76c60: Merge "Fix default value of AnimationDrawable\'s one shot property" into lmp-mr1-dev

* commit '60abe25978ab1c1e4935dcd58af9cd3a0994c12e':
Fix default value of AnimationDrawable's one shot property
6ef76c60df9e68950721f92a14c77a3ecd13607c 09-Dec-2014 Alan Viverette <alanv@google.com> Merge "Fix default value of AnimationDrawable's one shot property" into lmp-mr1-dev
0b9ab9749aec297aa03c3fde6d5552c9f212ddbf 09-Dec-2014 Alan Viverette <alanv@google.com> Fix default value of AnimationDrawable's one shot property

BUG: 18676499
Change-Id: Iaaf134b3a58a04cd99db001edc4438ee75dab878
ndroid/graphics/drawable/AnimationDrawable.java
6828d32772a8de221c0a83bae71d98c995d0fddc 09-Dec-2014 ztenghui <ztenghui@google.com> am 9bb5cef9: am 971fe6d6: am 04c022f4: Merge "AVD: Deep copy the animator target setup when mutate." into lmp-mr1-dev

* commit '9bb5cef91f82f883a8899dee5fad56111648f1e1':
AVD: Deep copy the animator target setup when mutate.
d505fb79174a2165b3babf09222f805f87a2b2b8 09-Dec-2014 Alan Viverette <alanv@google.com> am 5f5e13d0: am 108e5394: am 6dfa60f3: Avoid extra saveLayer calls in RippleDrawable, fix docs

* commit '5f5e13d07fcf7531c0bb61f147732a430ad5aeda':
Avoid extra saveLayer calls in RippleDrawable, fix docs
5a50a8bcabdb2593b48b06854a7455318399b6d1 08-Dec-2014 Alan Viverette <alanv@google.com> am e615da7e: am f1792c42: Merge "Fix hotspot coordinate propagation in ViewGroup and AbsListView" into lmp-mr1-dev

* commit 'e615da7eb74907c7df993009ba8137e6ddd4ac62':
Fix hotspot coordinate propagation in ViewGroup and AbsListView
9bb5cef91f82f883a8899dee5fad56111648f1e1 08-Dec-2014 ztenghui <ztenghui@google.com> am 971fe6d6: am 04c022f4: Merge "AVD: Deep copy the animator target setup when mutate." into lmp-mr1-dev

* commit '971fe6d66419065b96b46a20b7110ba435fa3a9a':
AVD: Deep copy the animator target setup when mutate.
5f5e13d07fcf7531c0bb61f147732a430ad5aeda 08-Dec-2014 Alan Viverette <alanv@google.com> am 108e5394: am 6dfa60f3: Avoid extra saveLayer calls in RippleDrawable, fix docs

* commit '108e539495edb2bfc0d1a3a2cb0879583561bed6':
Avoid extra saveLayer calls in RippleDrawable, fix docs
b942b6f15c51c2ff48c59d8f620ee6156d00f67e 08-Dec-2014 Alan Viverette <alanv@google.com> Fix hotspot coordinate propagation in ViewGroup and AbsListView

There was a weird disconnect between setPressed() and hotspot propagation
behavior. This makes hotspot propagation work like setPressed(). Also
fixes ripple animation during drag-to-open.

BUG: 18631557
BUG: 18593243
Change-Id: Id4adf5d815e4d426b4182aac4d0c780f04472ae4
ndroid/graphics/drawable/RippleDrawable.java
b2accbb6d27923a6a5df3f4ed2cb0c83594d7d50 05-Dec-2014 Alan Viverette <alanv@google.com> am 23d86231: am ae656af7: am bab2b594: Merge "Update locally cached drawables when constant state changes" into lmp-mr1-dev

* commit '23d86231e9af2f4ba43cbc8a8cbbfc9757a98ddc':
Update locally cached drawables when constant state changes
23d86231e9af2f4ba43cbc8a8cbbfc9757a98ddc 05-Dec-2014 Alan Viverette <alanv@google.com> am ae656af7: am bab2b594: Merge "Update locally cached drawables when constant state changes" into lmp-mr1-dev

* commit 'ae656af727966df132d5ec7a462bc8bd98e41b71':
Update locally cached drawables when constant state changes
04c022f4c12a778027957a266dd9fce2b70a1cb0 05-Dec-2014 ztenghui <ztenghui@google.com> Merge "AVD: Deep copy the animator target setup when mutate." into lmp-mr1-dev
d2f50c78c3c5205d6b28b7079d2f845c3d9dc0b3 05-Dec-2014 ztenghui <ztenghui@google.com> AVD: Deep copy the animator target setup when mutate.

Only calling VectorDrawable's mutate here will miss all the animator setup,
when the VectorDrawable has a new state.
So we just deep copy everything and setup the animators again.

b/18521582

Change-Id: Id164312750bb548f9c2d21cc0b5806cd2bafcf0d
ndroid/graphics/drawable/AnimatedVectorDrawable.java
6dfa60f33ca6018959ebff1efde82db7d2aed1e3 04-Dec-2014 Alan Viverette <alanv@google.com> Avoid extra saveLayer calls in RippleDrawable, fix docs

Also fixes opacity returned from InsetDrawable to accurately reflect
the transparent inset area and updates button to correctly use tint.

BUG: 18226391
Change-Id: Ia9a88d9d663990a6829d2f251c7f59ea2a79d816
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/RippleBackground.java
ndroid/graphics/drawable/RippleDrawable.java
1022888d33c82dedb3ab3a53d1c3bb432eca93f7 05-Dec-2014 John Reck <jreck@google.com> resolved conflicts for merge of 203c8171 to master

Change-Id: I256397410c261fae049bae4572f132235be1c5c9
203c8171806a15b83efa9ad56be048281a40693b 04-Dec-2014 Derek Sollenberger <djsollen@google.com> am c1a2f38c: am 4d9da135: Merge "Update AndroidPixelRef to prevent VM from cleaning up memory prematurely." into lmp-mr1-dev

* commit 'c1a2f38ce0447b005d0cde6836857f451af84dc6':
Update AndroidPixelRef to prevent VM from cleaning up memory prematurely.
ebc9f2e773c3ebb4d4af3025fc6770844cc8fdef 04-Dec-2014 Alan Viverette <alanv@google.com> Update locally cached drawables when constant state changes

Previously we were failing to update references to drawables that had
been pulled from constant state, so we were drawing the wrong ones.

Also fixes button Z translation on press, which was WAY too high.

BUG: 18542282
Change-Id: Ifde7d64e31d31737854cfcbe75777e5b07a06e3a
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/RippleDrawable.java
f29d5a5b211786248d0557157c304c5fff428bd4 03-Dec-2014 Derek Sollenberger <djsollen@google.com> Update AndroidPixelRef to prevent VM from cleaning up memory prematurely.

bug:18306529
Change-Id: I1ea94df1dcaf4fcf248b63dc8b0a13f36412570a
ndroid/graphics/Bitmap.java
ea0db58af35fa98860fc8d4c4376c4e608fd3953 03-Dec-2014 Alan Viverette <alanv@google.com> am 42b678b3: am fa173e0c: am d72901f0: Merge "Update drawable container constant state following clone" into lmp-mr1-dev

* commit '42b678b3d7c10d6986aea82ec72e1b36f243972a':
Update drawable container constant state following clone
42b678b3d7c10d6986aea82ec72e1b36f243972a 03-Dec-2014 Alan Viverette <alanv@google.com> am fa173e0c: am d72901f0: Merge "Update drawable container constant state following clone" into lmp-mr1-dev

* commit 'fa173e0c65219e56625c22b0ac482354d924bcd8':
Update drawable container constant state following clone
5ed8f27858dbdf85203068eca46eef0a65f3344e 27-Nov-2014 Alan Viverette <alanv@google.com> Update drawable container constant state following clone

DrawableContainer's internal state was getting out of sync with the
internal state of child classes because we failed to call set state.

BUG: 18542282
Change-Id: Iacaa12042e99c1b9e9eaf08f0ab879d82260e7ee
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/LevelListDrawable.java
39319d1d4d299d4ec7ef54c46175775d6ad9a9cd 26-Nov-2014 Alan Viverette <alanv@google.com> am e5684843: am e6974e32: am 10e2700d: Merge "Ensure calling mutate() on DrawableContainer creates a new state" into lmp-mr1-dev

* commit 'e56848431e31434f1d453222187a2e32f2e03e90':
Ensure calling mutate() on DrawableContainer creates a new state
e56848431e31434f1d453222187a2e32f2e03e90 26-Nov-2014 Alan Viverette <alanv@google.com> am e6974e32: am 10e2700d: Merge "Ensure calling mutate() on DrawableContainer creates a new state" into lmp-mr1-dev

* commit 'e6974e32e740f9801b5023695881a80df0b363f6':
Ensure calling mutate() on DrawableContainer creates a new state
58383869ab125623af94bc3d597d8922bf5af9b0 25-Nov-2014 John Reck <jreck@google.com> am af3efb4a: am f2a382d4: am fb6121e0: Merge "Revert "Ensure calling mutate() on DrawableContainer creates a new state"" into lmp-mr1-dev

* commit 'af3efb4a9ea9eafc86888be48c88fe638a22c7e9':
Revert "Ensure calling mutate() on DrawableContainer creates a new state"
270ca583bbcfe5e354ee506a1e2e42c3e564bd7f 25-Nov-2014 Alan Viverette <alanv@google.com> am c9b68e11: am df188d41: am d30f6fba: Merge "Cannot set Pivot X,Y values from setPivotX, setPivotY API" into lmp-mr1-dev

* commit 'c9b68e115091f8cd0fd77590d9d1be2bb0f04953':
Cannot set Pivot X,Y values from setPivotX, setPivotY API
b65c4a62162363af1fa49b8d1f96bf8e55c2fdc8 25-Nov-2014 Alan Viverette <alanv@google.com> am 15913c80: am cda2dafd: am 27fdbc60: Merge "Ensure calling mutate() on DrawableContainer creates a new state" into lmp-mr1-dev

* commit '15913c804f20bb37af90a4b81ff7758db90a2d17':
Ensure calling mutate() on DrawableContainer creates a new state
af3efb4a9ea9eafc86888be48c88fe638a22c7e9 25-Nov-2014 John Reck <jreck@google.com> am f2a382d4: am fb6121e0: Merge "Revert "Ensure calling mutate() on DrawableContainer creates a new state"" into lmp-mr1-dev

* commit 'f2a382d4f7de5336d0c20358bb694e205a38fc38':
Revert "Ensure calling mutate() on DrawableContainer creates a new state"
c9b68e115091f8cd0fd77590d9d1be2bb0f04953 25-Nov-2014 Alan Viverette <alanv@google.com> am df188d41: am d30f6fba: Merge "Cannot set Pivot X,Y values from setPivotX, setPivotY API" into lmp-mr1-dev

* commit 'df188d4137a9ebf0661127bab36c517a7fb001d5':
Cannot set Pivot X,Y values from setPivotX, setPivotY API
15913c804f20bb37af90a4b81ff7758db90a2d17 25-Nov-2014 Alan Viverette <alanv@google.com> am cda2dafd: am 27fdbc60: Merge "Ensure calling mutate() on DrawableContainer creates a new state" into lmp-mr1-dev

* commit 'cda2dafd36641130fc41888d81c98cd2d54047b8':
Ensure calling mutate() on DrawableContainer creates a new state
8dcd533786df8d824f1e040230ee9e7e5b083998 25-Nov-2014 Alan Viverette <alanv@google.com> Ensure calling mutate() on DrawableContainer creates a new state

Previously, a new state would only be created on newDrawable(), which
caused the first drawable loaded for a resource to share constant state
with the cached version. Even if mutate() was called, the constant
state was still shared and any changes were applied to the cached copy.

BUG: 18504919
Change-Id: I40d257867eb0a092ce580b9c4338ddc7406a031d
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/LevelListDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
fb6121e069f25dd43e15b1377fe4d5f60c3d0dbe 25-Nov-2014 John Reck <jreck@google.com> Merge "Revert "Ensure calling mutate() on DrawableContainer creates a new state"" into lmp-mr1-dev
cf84ab5e7f860a716f9a789a5d5d5f4378a8204c 25-Nov-2014 John Reck <jreck@google.com> Revert "Ensure calling mutate() on DrawableContainer creates a new state"

This reverts commit d7dab349c2af0e4bde188b1969f0c697b217dd57.

Change-Id: Icc1c4bfa296a59a551088fe7cc2449a97bb2b7b7
Reason: Broke the build
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/LevelListDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
d30f6fba8ba15198a448d12d35e70872dcdf3589 25-Nov-2014 Alan Viverette <alanv@google.com> Merge "Cannot set Pivot X,Y values from setPivotX, setPivotY API" into lmp-mr1-dev
d7dab349c2af0e4bde188b1969f0c697b217dd57 24-Nov-2014 Alan Viverette <alanv@google.com> Ensure calling mutate() on DrawableContainer creates a new state

Previously, a new state would only be created on newDrawable(), which
caused the first drawable loaded for a resource to share constant state
with the cached version. Even if mutate() was called, the constant
state was still shared and any changes were applied to the cached copy.

BUG: 18504919
Change-Id: I1ce76fbbc144e9c0c93261e3a12cc613d0c74b83
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/LevelListDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
90102e10093f7bb658fb7dd6c30a1efd5380c6d1 21-Nov-2014 Chris Craik <ccraik@google.com> am 1ae8a98e: am 29dc496a: Merge "Revert "Add a way to override Xfermode DO NOT MERGE"" into lmp-mr1-dev

* commit '1ae8a98e8a6ba82396955c0b6ab0e02568a3494b':
Revert "Add a way to override Xfermode DO NOT MERGE"
6bcf223bf64cd4895e3fe948080475075ff7b80d 21-Nov-2014 Chris Craik <ccraik@google.com> Merge "Revert "Add a way to override Xfermode""
29dc496a42d49a37dcd99c0465f3cec18a47e6ff 21-Nov-2014 Chris Craik <ccraik@google.com> Merge "Revert "Add a way to override Xfermode DO NOT MERGE"" into lmp-mr1-dev
da3198a550bdd91ccdc8a09c3a6e00d3b61c0c20 21-Nov-2014 Chris Craik <ccraik@google.com> Revert "Add a way to override Xfermode"

Feature no longer needed.

bug:18448377

This reverts commit c495e611b9fa1fc6b47a647c714bbbf94dd63461.

Change-Id: Ia3e37f06953ffd81ca3fac367ee790d26b1b5d29
ndroid/graphics/Canvas.java
69e65019b0a6204f0ed9487d8fd7b3564eba6df8 21-Nov-2014 Chris Craik <ccraik@google.com> Revert "Add a way to override Xfermode DO NOT MERGE"

Feature no longer needed.

bug:18448377

This reverts commit 4678dcc5524258908eadc5fe1e5e1874768967eb.

Change-Id: Ib0a19946e966a54857165555827b5fa7b34b6bea
ndroid/graphics/Canvas.java
5287c18880f505ffb02e55ca90f2318a00d6b613 21-Nov-2014 ztenghui <ztenghui@google.com> am 3458abd6: am 002bc810: Merge "ASLD: ASLD\'s XML reversible flag can turn off the reverse behavior now." into lmp-mr1-dev automerge: e9dbfe5

* commit '3458abd6a7d0709f0360c1c18cce036bb7bc4299':
ASLD: ASLD's XML reversible flag can turn off the reverse behavior now.
735b75ce274ef7a4c78745844a4269d72cb4feae 20-Nov-2014 jungheang.lee <jungheang.lee@lge.com> Cannot set Pivot X,Y values from setPivotX, setPivotY API

Pivot value can not be changed once they have been set to default.
To be changed "==" -> "!=" in if()

BUG: 18474532
Change-Id: Iacd16eb951154ea97c241566b704e0ad3f225bd1
ndroid/graphics/drawable/RotateDrawable.java
08dc405ecd919a75cc0f58e9ef61c63e5069dc81 21-Nov-2014 Chris Craik <ccraik@google.com> am 0d6512a8: am 93ef9639: Merge "Improve ColorMatrix docs" into lmp-mr1-dev automerge: 5b41215

* commit '0d6512a8dd398e5eea79744ce4541664041dfdb8':
Improve ColorMatrix docs
3458abd6a7d0709f0360c1c18cce036bb7bc4299 21-Nov-2014 ztenghui <ztenghui@google.com> am 002bc810: Merge "ASLD: ASLD\'s XML reversible flag can turn off the reverse behavior now." into lmp-mr1-dev
automerge: e9dbfe5

* commit 'e9dbfe5afd5cd350f06f078775a40e8df4e69ce6':
ASLD: ASLD's XML reversible flag can turn off the reverse behavior now.
0d6512a8dd398e5eea79744ce4541664041dfdb8 21-Nov-2014 Chris Craik <ccraik@google.com> am 93ef9639: Merge "Improve ColorMatrix docs" into lmp-mr1-dev
automerge: 5b41215

* commit '5b41215b1647d9673b1231d046736c8e0590fa8a':
Improve ColorMatrix docs
002bc810882c0a322a09d0e4527ab8083547e145 21-Nov-2014 ztenghui <ztenghui@google.com> Merge "ASLD: ASLD's XML reversible flag can turn off the reverse behavior now." into lmp-mr1-dev
5b84eace6cb79c42fe43480f08c68b7dea4e074a 19-Nov-2014 ztenghui <ztenghui@google.com> ASLD: ASLD's XML reversible flag can turn off the reverse behavior now.

Previously, the android:reversible flag behaves like a suggestion.
Now it is used to enforce no reverse when set to false. In this way, user can
safely setup one direction animation only.
When set to true, but AVD can't reverse , then it will show a warning.

At the same time, update the tests to show different cases, including
AnimationDrawable.

b/18413484

Change-Id: I5552c49dcbd76b0724b4d5593bce8388b27bd905
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/AnimatedVectorDrawable.java
93ef96395a95317bec4f27423ade1ce0d6aa07d8 20-Nov-2014 Chris Craik <ccraik@google.com> Merge "Improve ColorMatrix docs" into lmp-mr1-dev
db7cc60eb29c215e65081211dfe65ba4d017691c 19-Nov-2014 Chris Craik <ccraik@google.com> Improve ColorMatrix docs

bug:18415632

Clean up some text, and add a sample.

Change-Id: I39fdda2004e1932831058701f95f67355786ad9d
ndroid/graphics/ColorMatrix.java
0a39f8ffe012e43f16836b057f3f0d1bc05158f3 14-Nov-2014 Raph Levien <raph@google.com> am 7010d0b6: am 505ffe36: Merge "Check bounds on CharSequence drawText methods" into lmp-mr1-dev automerge: 58fa003

* commit '7010d0b6c398cb03b4be43a547921c3e9a95eeb0':
Check bounds on CharSequence drawText methods
7010d0b6c398cb03b4be43a547921c3e9a95eeb0 14-Nov-2014 Raph Levien <raph@google.com> am 505ffe36: Merge "Check bounds on CharSequence drawText methods" into lmp-mr1-dev
automerge: 58fa003

* commit '58fa0035775bbb897115bae1b59719391a1a7edd':
Check bounds on CharSequence drawText methods
505ffe3633f45778e493e23ad8c163f09ed1dbb5 14-Nov-2014 Raph Levien <raph@google.com> Merge "Check bounds on CharSequence drawText methods" into lmp-mr1-dev
a208f546d5019755f2543b6df1df1430d8b013f0 14-Nov-2014 Alan Viverette <alanv@google.com> am 5961f6b7: am a9566f90: am 0c242376: Merge "Set current degrees when updating RotateDrawable from typed array" into lmp-mr1-dev

* commit '5961f6b767a3e549654c6bfdae2960144b4ca428':
Set current degrees when updating RotateDrawable from typed array
a76634b855511fa6a2d33e9484ccc7162cd8a7a6 14-Nov-2014 Chris Craik <ccraik@google.com> am bbac83fc: am c3784c4d: am 6b3bf0ce: Merge "Add offset method to Outline" into lmp-mr1-dev

* commit 'bbac83fc7987b67e6116b4422aee47580aae128a':
Add offset method to Outline
5961f6b767a3e549654c6bfdae2960144b4ca428 14-Nov-2014 Alan Viverette <alanv@google.com> am a9566f90: am 0c242376: Merge "Set current degrees when updating RotateDrawable from typed array" into lmp-mr1-dev

* commit 'a9566f9085427287e99b0b20c51dda4688a3e1e8':
Set current degrees when updating RotateDrawable from typed array
0c242376867feb434088387bfcdc6b4abcf7d465 14-Nov-2014 Alan Viverette <alanv@google.com> Merge "Set current degrees when updating RotateDrawable from typed array" into lmp-mr1-dev
bbac83fc7987b67e6116b4422aee47580aae128a 14-Nov-2014 Chris Craik <ccraik@google.com> am c3784c4d: am 6b3bf0ce: Merge "Add offset method to Outline" into lmp-mr1-dev

* commit 'c3784c4d6140517a6927685f552fa8719353e46f':
Add offset method to Outline
d03963ce364e9946f1bd603c2fcf07a49088af19 14-Nov-2014 Alan Viverette <alanv@google.com> Set current degrees when updating RotateDrawable from typed array

This regressed after enabling theming in RotateDrawable.

BUG: 18288235
Change-Id: I61a7b2c178253ed2d550fa0636e27e021ac9eb64
ndroid/graphics/drawable/RotateDrawable.java
6b3bf0ceef92d1a627360c6502f52f0237f7e50a 13-Nov-2014 Chris Craik <ccraik@google.com> Merge "Add offset method to Outline" into lmp-mr1-dev
95e5a82e1d3743778218fb7b94389f8a5622809a 13-Nov-2014 Rob Tsuk <robtsuk@google.com> Merge "Add a way to override Xfermode"
e8a39f5960c752c7a427580a2a9067280bf38ca0 13-Nov-2014 Chris Craik <ccraik@google.com> am b71be9c3: am 9750c696: am 075b2b4f: Merge "Add details and performance warnings to save flag docs" into lmp-mr1-dev

* commit 'b71be9c3523adef99b42833e974b6f61369a24b0':
Add details and performance warnings to save flag docs
b71be9c3523adef99b42833e974b6f61369a24b0 13-Nov-2014 Chris Craik <ccraik@google.com> am 9750c696: am 075b2b4f: Merge "Add details and performance warnings to save flag docs" into lmp-mr1-dev

* commit '9750c6961c5cbe5600ee96efbdfd3cffe0b2a778':
Add details and performance warnings to save flag docs
0e12fa12cb2cd4e049e560bdad8f1cd654825f3b 12-Nov-2014 Chris Craik <ccraik@google.com> Add offset method to Outline

Also clean up offset docs in Path

Change-Id: Ieca02611d32acce726efba652ae1969340a55a76
ndroid/graphics/Outline.java
ndroid/graphics/Path.java
075b2b4ff9a9a96462a3102b54fdcabc6e5daf99 13-Nov-2014 Chris Craik <ccraik@google.com> Merge "Add details and performance warnings to save flag docs" into lmp-mr1-dev
8aa0bbfcc7bd3997702dcf9a2e651808ea955b14 13-Nov-2014 Alan Viverette <alanv@google.com> am 469e72ff: am 5f876974: am 667ec63c: Merge "Don\'t propagate AnimatedStateListDrawable state change to super()" into lmp-mr1-dev

* commit '469e72ffe70e05101dddc8b49f5add0b6888a9d4':
Don't propagate AnimatedStateListDrawable state change to super()
74a2d7695eebd32fd3451160c7c9ac30d294abe4 13-Nov-2014 ztenghui <ztenghui@google.com> am c3e29108: am d46cf713: Merge "AVD: Requires all animator has stopped before start again." into lmp-mr1-dev automerge: ffcb5e2

* commit 'c3e29108fcd87b8229cddacec98e63fe5f79efdf':
AVD: Requires all animator has stopped before start again.
710f713baa53cef206102dc0992368a48d192064 13-Nov-2014 Alan Viverette <alanv@google.com> am 84ed482f: am 1c252a6f: Merge "Fix default attributes in ScaleDrawable" into lmp-mr1-dev automerge: 26478ba

* commit '84ed482ff9a9e8f6ea6e14c978d4311f23396bc6':
Fix default attributes in ScaleDrawable
469e72ffe70e05101dddc8b49f5add0b6888a9d4 13-Nov-2014 Alan Viverette <alanv@google.com> am 5f876974: am 667ec63c: Merge "Don\'t propagate AnimatedStateListDrawable state change to super()" into lmp-mr1-dev

* commit '5f876974d025406cd48eac9759989c09c899a4dd':
Don't propagate AnimatedStateListDrawable state change to super()
c495e611b9fa1fc6b47a647c714bbbf94dd63461 12-Nov-2014 Rob Tsuk <robtsuk@google.com> Add a way to override Xfermode

Add a non-public API to Canvas/GLES20Canvas to provide a way to draw
the touch ripple animation without using a save layer.

Bug: 18226391
Change-Id: I6f8fb8938505e976892c4e14f6f864362c43e73c
ndroid/graphics/Canvas.java
6552afa87833a36b37c715acd40e494fe4de2019 13-Nov-2014 Rob Tsuk <robtsuk@google.com> am ccc956b2: am 41a8043b: Merge "Add a way to override Xfermode DO NOT MERGE" into lmp-mr1-dev

* commit 'ccc956b2b4602dca28f7c79d1155df29bcc0d696':
Add a way to override Xfermode DO NOT MERGE
c3e29108fcd87b8229cddacec98e63fe5f79efdf 13-Nov-2014 ztenghui <ztenghui@google.com> am d46cf713: Merge "AVD: Requires all animator has stopped before start again." into lmp-mr1-dev automerge: ffcb5e2

* commit 'd46cf7138a955d004911bbd637535390030b328f':
AVD: Requires all animator has stopped before start again.
84ed482ff9a9e8f6ea6e14c978d4311f23396bc6 13-Nov-2014 Alan Viverette <alanv@google.com> am 1c252a6f: Merge "Fix default attributes in ScaleDrawable" into lmp-mr1-dev automerge: 26478ba

* commit '1c252a6f8b3dbeb7aa533203731256b3b037d3e2':
Fix default attributes in ScaleDrawable
d82f8a9a3869448e6d7d4b3fc962e34e33a1ba0e 13-Nov-2014 Raph Levien <raph@google.com> Check bounds on CharSequence drawText methods

The canvas drawText() methods on CharSequence arguments didn't check
whether the start and end offsets were within bounds, which triggered
native crashes. This patch checks the bounds and throws
IndexOutOfBoundsException when invalid.

Bug: 18282500
Change-Id: I1935bf21f828b960c817b40ebce6affd4ce8bb99
ndroid/graphics/Canvas.java
667ec63c9ed695ca71f6639f18c31995fb8ff880 12-Nov-2014 Alan Viverette <alanv@google.com> Merge "Don't propagate AnimatedStateListDrawable state change to super()" into lmp-mr1-dev
41a8043b30a289bdba55a2469e598b3fe67c3bf1 12-Nov-2014 Rob Tsuk <robtsuk@google.com> Merge "Add a way to override Xfermode DO NOT MERGE" into lmp-mr1-dev
ffcb5e210ad82e0f2a33d6644bc6690552a1785f 12-Nov-2014 ztenghui <ztenghui@google.com> Merge "AVD: Requires all animator has stopped before start again." into lmp-mr1-dev
4678dcc5524258908eadc5fe1e5e1874768967eb 12-Nov-2014 Rob Tsuk <robtsuk@google.com> Add a way to override Xfermode DO NOT MERGE

Add a non-public API to Canvas/GLES20Canvas to provide a way to draw
the touch ripple animation without using a save layer.

Change-Id: I6e2095adffe515194f669fb75bb67abf813bd518
ndroid/graphics/Canvas.java
f9afb46bf73984d2d29b446d4a306a523fb712ac 12-Nov-2014 Alan Viverette <alanv@google.com> Fix default attributes in ScaleDrawable

Reverts default scales to correct value of -1, uses existing state
values when updating from typed array.

BUG: 18351309
Change-Id: I45d21fe017a7bea10e3cbda50f6db65d053aa2ec
ndroid/graphics/drawable/ScaleDrawable.java
9355b66dc555352fd6a3a577f1c9a0c556f08d6b 12-Nov-2014 Alan Viverette <alanv@google.com> am fca5f35e: Merge "Reduce number of saveLayer calls in RippleDrawable" into lmp-mr1-dev automerge: b724314 automerge: 0bc1eee

* commit 'fca5f35e17591681fa321ee894d47a084f6537ee':
Reduce number of saveLayer calls in RippleDrawable
fca5f35e17591681fa321ee894d47a084f6537ee 12-Nov-2014 Alan Viverette <alanv@google.com> Merge "Reduce number of saveLayer calls in RippleDrawable" into lmp-mr1-dev automerge: b724314
automerge: 0bc1eee

* commit '0bc1eee096e04d9d0a405961b56569446c0e79ab':
Reduce number of saveLayer calls in RippleDrawable
2d91f63ec20c4b06e87c80451a656462eceba17f 12-Nov-2014 Alan Viverette <alanv@google.com> Don't propagate AnimatedStateListDrawable state change to super()

Also updates child element inflation code in AnimationDrawable so
that color resources can be used in the <item> drawable attribute.

BUG: 18322272
Change-Id: I8d13643c5cbdb76d69634a7bac3cead9e9fba4e8
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/AnimationDrawable.java
b724314516dc15ab7afb62f7a6e63d94f4022011 12-Nov-2014 Alan Viverette <alanv@google.com> Merge "Reduce number of saveLayer calls in RippleDrawable" into lmp-mr1-dev
f37a364a530c5c055cf4634f0b0463454a252b0f 11-Nov-2014 Chris Craik <ccraik@google.com> Add details and performance warnings to save flag docs

bug:18239290

Change-Id: I5f73bf3f1bf01c8db6ab085b182b14348e47fb3e
ndroid/graphics/Canvas.java
1a40facbfd60575a3232ae49f4b05098f4ec4830 07-Nov-2014 ztenghui <ztenghui@google.com> AVD: Requires all animator has stopped before start again.

We should treat all the animator as a group, we should not start again unless
all the previous animations have stopped.

b/18320770

Change-Id: I5b0c2c165cd314745ee6c7152aea3c666e9dff10
ndroid/graphics/drawable/AnimatedVectorDrawable.java
cc3c573334a9cd2124a8a0ccf2f37884e36f83fa 08-Nov-2014 Alan Viverette <alanv@google.com> Reduce number of saveLayer calls in RippleDrawable

Removes an extra saveLayer call by rendering ripples as overlapping. We
are now down to zero saveLayers when drawing unmasked ripples or ripples
masked against opaque content/masks, one saveLayer for ripples masked
against content and two saveLayers when masked against an explicit mask
layer.

BUG: 18226391
Change-Id: I0fc09d21fbc462fbcfe4c26fc7b18737f584043e
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/RippleBackground.java
ndroid/graphics/drawable/RippleDrawable.java
75d1cbd71b6ac72588b687c8191a0ceded183b39 07-Nov-2014 Alan Viverette <alanv@google.com> am e37c761e: am c30a7623: am 48c8cd06: Merge "Support theme attributes in StateListDrawable <item> element" into lmp-mr1-dev

* commit 'e37c761e5e850aebb3be56a2eadaa85cc2134547':
Support theme attributes in StateListDrawable <item> element
e37c761e5e850aebb3be56a2eadaa85cc2134547 07-Nov-2014 Alan Viverette <alanv@google.com> am c30a7623: am 48c8cd06: Merge "Support theme attributes in StateListDrawable <item> element" into lmp-mr1-dev

* commit 'c30a7623a2f97ce791ed019d7014b842f9c9b7d2':
Support theme attributes in StateListDrawable <item> element
d6570d11e4d1e43c2cfe1d10e27a7786c4283169 06-Nov-2014 Alan Viverette <alanv@google.com> Support theme attributes in StateListDrawable <item> element

Also adds support for specifying drawable as a color since getDrawable()
automatically wraps colors to ColorDrawable. Does not currently allow
themed item elements to be used in Zygote preload, but we can add that
at some point in the future.

BUG: 18208662
Change-Id: I4c9721ffd100da4b9db7743a46c914828b943dae
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
2fe08558cc680622ca8dfab5699c5ad32a9eb207 05-Nov-2014 Alan Viverette <alanv@google.com> am 9fb51ad8: am a04a5e82: am 6e85abd4: Merge "Default gradient radius to %p when no intrinsic width or height set" into lmp-mr1-dev

* commit '9fb51ad840f445c387994ff1ebf8913b9d918f6a':
Default gradient radius to %p when no intrinsic width or height set
9fb51ad840f445c387994ff1ebf8913b9d918f6a 05-Nov-2014 Alan Viverette <alanv@google.com> am a04a5e82: am 6e85abd4: Merge "Default gradient radius to %p when no intrinsic width or height set" into lmp-mr1-dev

* commit 'a04a5e82f0b84d57394c28600e3b142d649880cb':
Default gradient radius to %p when no intrinsic width or height set
b4f8a981769e95500ab6c86ab45102dc9c7e53c6 04-Nov-2014 Alan Viverette <alanv@google.com> Default gradient radius to %p when no intrinsic width or height set

BUG: 18224018
Change-Id: I05cbe3023d0a5e6813658063d3a3633c6ddd8d96
ndroid/graphics/drawable/GradientDrawable.java
e73c6d93b9a207713ef2cf5f6b927f5e54271295 01-Nov-2014 Svet Ganov <svetoslavganov@google.com> am 28d51a39: am 182f0a13: Merge "Crash apps that print malformed or password protected PDFs." into lmp-mr1-dev automerge: 4f5b8a6

* commit '28d51a39a1bed35855b0fe75a65ad4a6d43a4460':
Crash apps that print malformed or password protected PDFs.
28d51a39a1bed35855b0fe75a65ad4a6d43a4460 01-Nov-2014 Svet Ganov <svetoslavganov@google.com> am 182f0a13: Merge "Crash apps that print malformed or password protected PDFs." into lmp-mr1-dev
automerge: 4f5b8a6

* commit '4f5b8a6b9b1966b42c929f89e1e91827ec495719':
Crash apps that print malformed or password protected PDFs.
fce84f035c35606c5707e735f503f7bdcfd5b2a1 01-Nov-2014 Svet Ganov <svetoslavganov@google.com> Crash apps that print malformed or password protected PDFs.

If apps are writing malformed content (typically not a PDF file) or if the
PDF content they provide to the print system is password protected, are now
crashed as both of these are app bugs.

bug:17636435

Change-Id: Ifce6a3199e587448dd38f6a84290a965c24b698b
ndroid/graphics/pdf/PdfEditor.java
ndroid/graphics/pdf/PdfRenderer.java
a3b6fc48b7a768117b2235038a409aca59ae2225 31-Oct-2014 Svetoslav <svetoslavganov@google.com> am 2a6749ad: am 93134ce8: Merge "Save to a PDF file should look like print preview." into lmp-mr1-dev automerge: 160021d

* commit '2a6749adc0d0693b97c81b6083629e13b604d45a':
Save to a PDF file should look like print preview.
2a6749adc0d0693b97c81b6083629e13b604d45a 31-Oct-2014 Svetoslav <svetoslavganov@google.com> am 93134ce8: Merge "Save to a PDF file should look like print preview." into lmp-mr1-dev
automerge: 160021d

* commit '160021d8cf62f566587d899498c72fff82b6969f':
Save to a PDF file should look like print preview.
93134ce87e7b33e599c9ef9ed8b19ec2556ca8f1 31-Oct-2014 Svetoslav <svetoslavganov@google.com> Merge "Save to a PDF file should look like print preview." into lmp-mr1-dev
bec22beb99b279d381f720d761ca75fe3e7414dc 25-Sep-2014 Svetoslav <svetoslavganov@google.com> Save to a PDF file should look like print preview.

When rendering a PDF file for print preview we take into account
the selected print options such as paper size, orientation, etc
without modifying the document. To print we send the doc in its
original form and the print options so the print service can apply
the necessary transforms in addition to the optional custom options
it supports. When saving to PDF we have to actually change the
document as we act as a print service.

bug:13545980

Change-Id: Icdcecf962bec6ff742cc6015df5af9d9086ce760
ndroid/graphics/pdf/PdfEditor.java
613d43473e3f1b59ced08d897e17b2bd52a3773e 31-Oct-2014 Alan Viverette <alanv@google.com> am 71c27899: am e9e7d012: am 272e2f73: Merge "Ensure we don\'t pass null values in to Theme.resolveAttributes" into lmp-mr1-dev

* commit '71c2789930de7fb1b98ad10ea6a5e6f23500ead2':
Ensure we don't pass null values in to Theme.resolveAttributes
71c2789930de7fb1b98ad10ea6a5e6f23500ead2 31-Oct-2014 Alan Viverette <alanv@google.com> am e9e7d012: am 272e2f73: Merge "Ensure we don\'t pass null values in to Theme.resolveAttributes" into lmp-mr1-dev

* commit 'e9e7d012dd7df56227854fd0887b6f0476db8b67':
Ensure we don't pass null values in to Theme.resolveAttributes
2929579d20cd036305c764a66a2623b954327b05 31-Oct-2014 Alan Viverette <alanv@google.com> am 370403db: am 07a08010: am 425b1dc8: Merge "Add theme and config change support to more Drawable types" into lmp-mr1-dev

* commit '370403dbdec3a1d769c31aca66e5fcbd6617c897':
Add theme and config change support to more Drawable types
370403dbdec3a1d769c31aca66e5fcbd6617c897 31-Oct-2014 Alan Viverette <alanv@google.com> am 07a08010: am 425b1dc8: Merge "Add theme and config change support to more Drawable types" into lmp-mr1-dev

* commit '07a08010a87daec2091b643a8fcf2f7a27588098':
Add theme and config change support to more Drawable types
7f4a63d1ebc13c6499a48331ecb78c4d27446dbc 30-Oct-2014 Alan Viverette <alanv@google.com> Ensure we don't pass null values in to Theme.resolveAttributes

BUG: 18182274
Change-Id: I08acf877cb81478cc205254edf92a31fcf05991d
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
425b1dc88c47e0e9d3a653ad902a69f3ec09b966 30-Oct-2014 Alan Viverette <alanv@google.com> Merge "Add theme and config change support to more Drawable types" into lmp-mr1-dev
d21fd9d1ccd2b525f9c004a6cd9ba19a645701ab 29-Oct-2014 Alan Viverette <alanv@google.com> Add theme and config change support to more Drawable types

BUG: 16045735
Change-Id: Ic03173a1c1779c1bb545c4c389f77afed97011ee
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
c6dac7ef17c6c1138aa79a55ddbd70c838036534 25-Oct-2014 Alan Viverette <alanv@google.com> am 51547e75: am eba0a750: Merge "Clean up GradientDrawable styled attributes, fix useLevelForShape" into lmp-mr1-dev automerge: 91a1a72

* commit '51547e750e30801e2d367433d8cd59f6b77fdc8c':
Clean up GradientDrawable styled attributes, fix useLevelForShape
51547e750e30801e2d367433d8cd59f6b77fdc8c 25-Oct-2014 Alan Viverette <alanv@google.com> am eba0a750: Merge "Clean up GradientDrawable styled attributes, fix useLevelForShape" into lmp-mr1-dev automerge: 91a1a72

* commit 'eba0a7509178094a46c3cca212bc3f07e70b159e':
Clean up GradientDrawable styled attributes, fix useLevelForShape
969ca91acd008cb33b72888e0b9e7109556db019 24-Oct-2014 Alan Viverette <alanv@google.com> Clean up GradientDrawable styled attributes, fix useLevelForShape

BUG: 18117976
Change-Id: Iff2ea392204346f68ea47d577e442d398114e5d8
ndroid/graphics/drawable/GradientDrawable.java
ba4814a49c0937c76cb4ecd1742032b8469a4bf6 24-Oct-2014 Yigit Boyar <yboyar@google.com> am ab43570f: am f3ab4410: am fa9ed8ca: Merge "Added a generic configuration and theme based cache" into lmp-mr1-dev

* commit 'ab43570f5db770e55a73ccff346b3e922443d126':
Added a generic configuration and theme based cache
ab43570f5db770e55a73ccff346b3e922443d126 24-Oct-2014 Yigit Boyar <yboyar@google.com> am f3ab4410: am fa9ed8ca: Merge "Added a generic configuration and theme based cache" into lmp-mr1-dev

* commit 'f3ab441090a05bd428b9488b2e8e175f33bd6fe9':
Added a generic configuration and theme based cache
d422dc358f0100106dc07d7b903201eb9b043b11 25-Sep-2014 Yigit Boyar <yboyar@google.com> Added a generic configuration and theme based cache

For now, only animators use it but we can consider migrating
drawable cache to it as well.

Bug: 17456416
Change-Id: I571b96856805edb171f0fc52e6bff5a365f46b70
ndroid/graphics/drawable/Drawable.java
425cc668a9ab9623729035ed39ef99c3ba02161a 22-Oct-2014 Derek Sollenberger <djsollen@google.com> Merge "Refactor HWUI to better handle Canvas DrawFilters."
ac68e997b946206ca6e6e4c19f7bff264ec7cbd3 21-Oct-2014 Alan Viverette <alanv@google.com> am ef2fef17: am ed89e452: am 7c133e19: Merge "Fix gradient drawable radius when specified as float, dimension" into lmp-mr1-dev

* commit 'ef2fef1719c3c2db5d44b8c6c78db2cf7d6ac882':
Fix gradient drawable radius when specified as float, dimension
ef2fef1719c3c2db5d44b8c6c78db2cf7d6ac882 21-Oct-2014 Alan Viverette <alanv@google.com> am ed89e452: am 7c133e19: Merge "Fix gradient drawable radius when specified as float, dimension" into lmp-mr1-dev

* commit 'ed89e45253ffded993ed88cd33457f45dbd6a32b':
Fix gradient drawable radius when specified as float, dimension
7fd807d8f4eb7c2ceed072e26db77a0bceffcb26 21-Oct-2014 Alan Viverette <alanv@google.com> am 2c861c78: am 0a8a3eab: am 46b4920a: Merge "Propagate state changes even when we don\'t change drawable index" into lmp-mr1-dev

* commit '2c861c782d84c61687c969605c28d543a1754e63':
Propagate state changes even when we don't change drawable index
2c861c782d84c61687c969605c28d543a1754e63 21-Oct-2014 Alan Viverette <alanv@google.com> am 0a8a3eab: am 46b4920a: Merge "Propagate state changes even when we don\'t change drawable index" into lmp-mr1-dev

* commit '0a8a3eab8bfc3390e1225dfade40599279b4921b':
Propagate state changes even when we don't change drawable index
7c133e19ddabe753a9c0d49d814c89f9df4121ad 21-Oct-2014 Alan Viverette <alanv@google.com> Merge "Fix gradient drawable radius when specified as float, dimension" into lmp-mr1-dev
46b4920ac85c5294174df9421eb9a69b0c9b5d55 21-Oct-2014 Alan Viverette <alanv@google.com> Merge "Propagate state changes even when we don't change drawable index" into lmp-mr1-dev
2efbe9816e097a07864a04f0722d5669b98699f4 21-Oct-2014 Alan Viverette <alanv@google.com> Fix gradient drawable radius when specified as float, dimension

BUG: 18070756
Change-Id: I991ff792c376c9695a007f8f1187390ab5ff6e3c
ndroid/graphics/drawable/GradientDrawable.java
662d8a3688030b79285b574e47d7e0b053989000 21-Oct-2014 Derek Sollenberger <djsollen@google.com> Merge "Ensure that all requests for the Paint's nativePtr use p.getNativeInstance()"
f81c6af10ef3041eeddb4a4560611a17dd3d399b 20-Oct-2014 Alan Viverette <alanv@google.com> Propagate state changes even when we don't change drawable index

Previously we could miss the state change if we were simply reversing the
current transition.

BUG: 17967405
Change-Id: I2cb396dedbff61b980741ef8c0d931be6abe129c
ndroid/graphics/drawable/AnimatedStateListDrawable.java
f164f2bca689b17ab7fddf02b58295c1def976cd 20-Oct-2014 ztenghui <ztenghui@google.com> am 9aa6ea10: am 8c857eec: am 12d808a2: am a724d1ab: am 877ce2c4: Merge "Make sure the bitmap from VD\'s cache is drawn using bi-linear filter." into lmp-dev

* commit '9aa6ea106d7aec78e5ea4ea251c1eac146496fa6':
Make sure the bitmap from VD's cache is drawn using bi-linear filter.
9aa6ea106d7aec78e5ea4ea251c1eac146496fa6 20-Oct-2014 ztenghui <ztenghui@google.com> am 8c857eec: am 12d808a2: am a724d1ab: am 877ce2c4: Merge "Make sure the bitmap from VD\'s cache is drawn using bi-linear filter." into lmp-dev

* commit '8c857eec746307dfeb8acb6b080ecc2aa8476ece':
Make sure the bitmap from VD's cache is drawn using bi-linear filter.
12d808a24f4af9a127ae851edd06339b77020178 20-Oct-2014 ztenghui <ztenghui@google.com> am a724d1ab: am 877ce2c4: Merge "Make sure the bitmap from VD\'s cache is drawn using bi-linear filter." into lmp-dev

* commit 'a724d1ab4083f08958bd88e76e15b7c0af337bfc':
Make sure the bitmap from VD's cache is drawn using bi-linear filter.
b12ff841592d6c8cf4846b710d07858e63addbeb 20-Oct-2014 ztenghui <ztenghui@google.com> am 877ce2c4: Merge "Make sure the bitmap from VD\'s cache is drawn using bi-linear filter." into lmp-dev

* commit '877ce2c42b5d423719246f5458cd66fa9fddb317':
Make sure the bitmap from VD's cache is drawn using bi-linear filter.
09c2d4fe15fbac2faf8a97ba2cc59132ee12222a 15-Oct-2014 Derek Sollenberger <djsollen@google.com> Refactor HWUI to better handle Canvas DrawFilters.

First, this CL removes the need to decompose the DrawFilters
in Java and instead passes the SkDrawFilter to HWUI directly.
This also allows the removal of duplicated logic between HWUI
and other Canvas implementations regarding Paint filter levels.

Second, the DrawFilter is now stored in the DisplayListRenderer
where we apply it to every paint BEFORE it is stored in the
DisplayList. This eliminates the need to filter all Paints on
playback and removes additional complexity at playback.

Finally, as a result of storing the filtered paint we can now
do a better job caching the paints. This takes advantage of
recent changes in Skia to quickly enable quick hashing and
comparison of paint objects.

Change-Id: Iec507a2d894827975cc4f1d22241542bb0534b4e
ndroid/graphics/DrawFilter.java
ndroid/graphics/PaintFlagsDrawFilter.java
f4242b107caa1b760304dc9ea547206c391bc05e 15-Oct-2014 Derek Sollenberger <djsollen@google.com> Ensure that all requests for the Paint's nativePtr use p.getNativeInstance()

Since requesting the native pointer triggers specific paint behavior we need
to ensure that the field is private and that callers use the public method.

Change-Id: I598a8bf2904960023397728c1ce4502ce408348e
ndroid/graphics/Paint.java
eec6164e6f6178343219bdedcb1e26779fae7f89 17-Oct-2014 ztenghui <ztenghui@google.com> Make sure the bitmap from VD's cache is drawn using bi-linear filter.

b/17949291

Change-Id: I0e59852220ab8a3be2c70afa483e805029a9e19e
ndroid/graphics/drawable/VectorDrawable.java
2d7ba843494314dc86bce5bf314e0debf82b99eb 15-Oct-2014 Alan Viverette <alanv@google.com> am fac81d40: am 274d24f1: am b70cfb91: Merge "Avoid saveLayer in RippleDrawable if the background won\'t draw" into lmp-mr1-dev

* commit 'fac81d40e1e1910a4f6931c77ea0f313518f357f':
Avoid saveLayer in RippleDrawable if the background won't draw
fac81d40e1e1910a4f6931c77ea0f313518f357f 15-Oct-2014 Alan Viverette <alanv@google.com> am 274d24f1: am b70cfb91: Merge "Avoid saveLayer in RippleDrawable if the background won\'t draw" into lmp-mr1-dev

* commit '274d24f18d30eb18eaa4d9ece3056a3b9856721d':
Avoid saveLayer in RippleDrawable if the background won't draw
b70cfb9103b02e90409ba1f1bc334210f139774f 15-Oct-2014 Alan Viverette <alanv@google.com> Merge "Avoid saveLayer in RippleDrawable if the background won't draw" into lmp-mr1-dev
0dfd1e2eb1864a5081a95222bfcbd7cd168fa952 15-Oct-2014 Alan Viverette <alanv@google.com> am 6ee5699b: am eecfb52a: am 9a00cbcc: Merge "Update preload list, clean up drawable theming" into lmp-mr1-dev

* commit '6ee5699b225db260b0660ee93e7ed2d542b4c962':
Update preload list, clean up drawable theming
6ee5699b225db260b0660ee93e7ed2d542b4c962 15-Oct-2014 Alan Viverette <alanv@google.com> am eecfb52a: am 9a00cbcc: Merge "Update preload list, clean up drawable theming" into lmp-mr1-dev

* commit 'eecfb52ad56a3bb4f5bf2cdaeb83cfe8b33fa0c1':
Update preload list, clean up drawable theming
9a00cbcc66b5b0002ff78507a1dc1efa12e84d63 15-Oct-2014 Alan Viverette <alanv@google.com> Merge "Update preload list, clean up drawable theming" into lmp-mr1-dev
17cd4dfe3a05c2eddbcbc76066ff3b13fc3f2c8b 14-Oct-2014 Alan Viverette <alanv@google.com> Update preload list, clean up drawable theming

Removes all implementations of three-arg ConstantState constructor, since
we handle mutation and applyTheme() in Resources now. Moves progress bar
tinting to android:tint attribute. Correctly implements applyTheme() and
canApplyTheme() in all drawable wrapper and container classes.

Change-Id: Ic9cb43d0d6228aa4914f3124bed234b837beaa41
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
ndroid/graphics/drawable/TransitionDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
a0d48e1cd7528d66480ff41c8f74db54a3f24d5b 14-Oct-2014 Alan Viverette <alanv@google.com> am 882d5cd0: am d9a2b99d: am 42e96769: Merge "Add support for tint and tintMode to GradientDrawable" into lmp-mr1-dev

* commit '882d5cd051b2081e27f97dcf35a695737e00b434':
Add support for tint and tintMode to GradientDrawable
42d7f6c17e1408f48c51ae608ceb2f15c3a6f65a 14-Oct-2014 Alan Viverette <alanv@google.com> am b50d1586: am db8ecf80: am 788e30bd: Merge "Revert "Always project ripples"" into lmp-mr1-dev

* commit 'b50d1586053d16f31faa989a0643e809353a04ee':
Revert "Always project ripples"
882d5cd051b2081e27f97dcf35a695737e00b434 14-Oct-2014 Alan Viverette <alanv@google.com> am d9a2b99d: am 42e96769: Merge "Add support for tint and tintMode to GradientDrawable" into lmp-mr1-dev

* commit 'd9a2b99de201c89b1b6c58eae213bb15bef58168':
Add support for tint and tintMode to GradientDrawable
b50d1586053d16f31faa989a0643e809353a04ee 14-Oct-2014 Alan Viverette <alanv@google.com> am db8ecf80: am 788e30bd: Merge "Revert "Always project ripples"" into lmp-mr1-dev

* commit 'db8ecf8005294833a9fe758e5e4a4d6fd100bd66':
Revert "Always project ripples"
42e96769ae9acd830e919ebc17a9294b6367538d 14-Oct-2014 Alan Viverette <alanv@google.com> Merge "Add support for tint and tintMode to GradientDrawable" into lmp-mr1-dev
788e30bd34b575e029d6b55d74e9c81ce28b21df 14-Oct-2014 Alan Viverette <alanv@google.com> Merge "Revert "Always project ripples"" into lmp-mr1-dev
43027b7bca554818cc4223389747d661819d5706 14-Oct-2014 Alan Viverette <alanv@google.com> Add support for tint and tintMode to GradientDrawable

BUG: 17975498
Change-Id: I8aeec48b8499abaf055e75018759f99801efdecc
ndroid/graphics/drawable/GradientDrawable.java
a7b64e8eefec1a200701443622debf1032291bdd 14-Oct-2014 Alan Viverette <alanv@google.com> Avoid saveLayer in RippleDrawable if the background won't draw

BUG: 17952941
Change-Id: Ic2640f847e2ed43fc5117d43230513ee7696d9e7
ndroid/graphics/drawable/RippleDrawable.java
2627206e1b1658ccade3669d1794dc0d90e36264 14-Oct-2014 Alan Viverette <alanv@google.com> Revert "Always project ripples"

Projecting ripples places them under shadows, which is not
ideal. Punting this workaround and waiting until we have
proper support for rounded corner clipping on windows.

This reverts commit f90b6bd54f60960a790b5bd507a0d75d961a981a.

Change-Id: I61946649bbb1bf74a969d74e5353608afc8e4463
ndroid/graphics/drawable/RippleDrawable.java
6f351bcc7c9a1835ce7fa7852a2b4fdcde41c1bf 13-Oct-2014 Alan Viverette <alanv@google.com> am 2776b173: am 204e9f4c: am 2f82e48a: Merge "Always project ripples" into lmp-mr1-dev

* commit '2776b17327e99338630db96d68170b0327084b3d':
Always project ripples
2776b17327e99338630db96d68170b0327084b3d 13-Oct-2014 Alan Viverette <alanv@google.com> am 204e9f4c: am 2f82e48a: Merge "Always project ripples" into lmp-mr1-dev

* commit '204e9f4cae2d49348c121c9738f8f33b5cb20b27':
Always project ripples
2f82e48abb71c92e41caa8057e3068dbfe96ed62 13-Oct-2014 Alan Viverette <alanv@google.com> Merge "Always project ripples" into lmp-mr1-dev
b2b7c6ebe474e75961368a3e144885f470777e11 13-Oct-2014 Marcin Kosiba <mkosiba@google.com> Make Paint.mNativePaint package protected to fix the build.

The Paint_Delegate changes from lmp-dev reference mNativePaint, which
has been made private in master. Change it to being package-protected
to fix the build.

Change-Id: I4bf30a530f0145cf7697cef6aa9a698fc9bab4ed
ndroid/graphics/Paint.java
961dc4c2f1dda7cd7f1ab6292187df67e20d4a7a 11-Oct-2014 Alan Viverette <alanv@google.com> am bb3fad78: am 8cb9a9e6: am 284559bf: Merge "Fix inset drawable\'s intrinsic size, replace ic_text_dot asset" into lmp-mr1-dev

* commit 'bb3fad78c922f5da9ecafcd0389a552b2a84ce94':
Fix inset drawable's intrinsic size, replace ic_text_dot asset
bb3fad78c922f5da9ecafcd0389a552b2a84ce94 11-Oct-2014 Alan Viverette <alanv@google.com> am 8cb9a9e6: am 284559bf: Merge "Fix inset drawable\'s intrinsic size, replace ic_text_dot asset" into lmp-mr1-dev

* commit '8cb9a9e6ba602cc4a2da334fcec966e7f06c63a4':
Fix inset drawable's intrinsic size, replace ic_text_dot asset
cdd5e067f25825bb565b0723f6ce039d2347f828 10-Oct-2014 Alan Viverette <alanv@google.com> Fix inset drawable's intrinsic size, replace ic_text_dot asset

BUG: 17648301
Change-Id: I8af0f6d1beee7a1cb3a3b9db571ed2c407e24556
ndroid/graphics/drawable/InsetDrawable.java
d95f1c991cbd7c297c0bb34a3de99ff2efd10b27 10-Oct-2014 Dianne Hackborn <hackbod@google.com> am 75a6e82b: am 36ae48a8: am d83e9e42: am 0761b1b5: am 89b19695: Merge "Put in real "code" (aka marketing) name." into lmp-dev

* commit '75a6e82bcc625025c5f48dc6c33d0dd469e9ca61':
Put in real "code" (aka marketing) name.
75a6e82bcc625025c5f48dc6c33d0dd469e9ca61 10-Oct-2014 Dianne Hackborn <hackbod@google.com> am 36ae48a8: am d83e9e42: am 0761b1b5: am 89b19695: Merge "Put in real "code" (aka marketing) name." into lmp-dev

* commit '36ae48a850bade17d485cb49dd40a3f11f667ad4':
Put in real "code" (aka marketing) name.
ccefe6eea6c0df357a9d9e0832a6d09f2676c236 10-Oct-2014 Alan Viverette <alanv@google.com> am 3ad81eee: am 2eda6f07: am 466f5581: Merge "Slow down ripple background fade in from press" into lmp-mr1-dev

* commit '3ad81eee7202317220599454bf550a755516a449':
Slow down ripple background fade in from press
3ad81eee7202317220599454bf550a755516a449 10-Oct-2014 Alan Viverette <alanv@google.com> am 2eda6f07: am 466f5581: Merge "Slow down ripple background fade in from press" into lmp-mr1-dev

* commit '2eda6f078cd6014a860903f515affa4d6a58748a':
Slow down ripple background fade in from press
f90b6bd54f60960a790b5bd507a0d75d961a981a 09-Oct-2014 Alan Viverette <alanv@google.com> Always project ripples

We already handle bounding rect in draw(), so this just ensures
that ripples are always clipped to window background outlines
until we can implement more general clipping.

BUG: 17498583
Change-Id: Iaff51fb177b017a11822bdf4f31c117fc9522c15
ndroid/graphics/drawable/RippleDrawable.java
d83e9e42805e340384f30199777fbc472c5c6f20 09-Oct-2014 Dianne Hackborn <hackbod@google.com> am 0761b1b5: am 89b19695: Merge "Put in real "code" (aka marketing) name." into lmp-dev

* commit '0761b1b5ebb453a411e3289c1c972dbfddcee880':
Put in real "code" (aka marketing) name.
529b78941c20c2b45312eeedbd509d0ded4f7323 09-Oct-2014 Dianne Hackborn <hackbod@google.com> am 89b19695: Merge "Put in real "code" (aka marketing) name." into lmp-dev

* commit '89b196958fee07475765bd3c458098464ba16f2e':
Put in real "code" (aka marketing) name.
f92f26fef215897bd302c1c06adbe5d853881b3f 08-Oct-2014 Alan Viverette <alanv@google.com> Slow down ripple background fade in from press

BUG: 17433613
Change-Id: Ie9c4046532d61ad8ef8e044d14557db5d52e0d0b
ndroid/graphics/drawable/RippleBackground.java
ndroid/graphics/drawable/RippleDrawable.java
955d8d69ea6caabce1461dc25b339b9bf9dc61a6 08-Oct-2014 Dianne Hackborn <hackbod@google.com> Put in real "code" (aka marketing) name.

Change-Id: Idb3976edfae37293ed75cb5b869b4b42d8042bbe
ndroid/graphics/BitmapFactory.java
ndroid/graphics/Picture.java
ndroid/graphics/drawable/ColorDrawable.java
afb5b48e726b486e095c4fd214358a50cb800687 08-Oct-2014 Alan Viverette <alanv@google.com> am 859edf79: am 0b6b0fa1: am 0660042a: Merge "Mutate and apply theme if needed before caching themed drawables" into lmp-mr1-dev

* commit '859edf7963a4e017fd2bbde51f1ab83517a5e8d6':
Mutate and apply theme if needed before caching themed drawables
859edf7963a4e017fd2bbde51f1ab83517a5e8d6 08-Oct-2014 Alan Viverette <alanv@google.com> am 0b6b0fa1: am 0660042a: Merge "Mutate and apply theme if needed before caching themed drawables" into lmp-mr1-dev

* commit '0b6b0fa154b2c02b6ccd90fa083acf422adfcc8c':
Mutate and apply theme if needed before caching themed drawables
727cae197b123ef764a1f8fbe08a995b000d14c3 08-Oct-2014 Alan Viverette <alanv@google.com> Mutate and apply theme if needed before caching themed drawables

This ensures that drawables are completely separated from their cached
constant states before applying a theme. After this, we can remove the
implicit (and incomplete) mutation in the clone constructors.

Also implements missing mutate() method on ClipDrawable.

BUG: 17646144
Change-Id: If0d66b0a85724d76e0a4f506758c7ba3c0aa3410
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/LevelListDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
dfba4d3d11bbf47dff45f94d61d4d97510b3034a 02-Sep-2014 Derek Sollenberger <djsollen@google.com> Mutable Java Shaders with Immutable Native Shaders

bug: 17641888
Change-Id: I0f05387423cde185dab1a1453f89d5251ca1a4f9
ndroid/graphics/Bitmap.java
ndroid/graphics/Canvas.java
ndroid/graphics/CanvasProperty.java
ndroid/graphics/LayerRasterizer.java
ndroid/graphics/Movie.java
ndroid/graphics/NinePatch.java
ndroid/graphics/Paint.java
ndroid/graphics/Shader.java
ab22c1c792bc5f422a029a4ab6a23861e44136d8 03-Sep-2014 Derek Sollenberger <djsollen@google.com> cleanup so that the Paint.h is only accessed via its nativePtr not a JNI lookup

bug: 17641888
Change-Id: I8fc2a01fdcf62dd33b443b0a2302df5e29dc3f49
ndroid/graphics/Movie.java
b4e8077b52e83438a7510d82353e134d78b22378 03-Oct-2014 Alan Viverette <alanv@google.com> am 9f64867d: Merge "Fix theme propagation to contained android:drawable elements" into lmp-dev

* commit '9f64867da107b772b867876ddf979d1a3ec19192':
Fix theme propagation to contained android:drawable elements
e32715d6967aba3e98b3fafffa0e6253936c6b3d 03-Oct-2014 Alan Viverette <alanv@google.com> am c03d6f89: am 855e63e9: am 29345d8d: am 9f64867d: Merge "Fix theme propagation to contained android:drawable elements" into lmp-dev

* commit 'c03d6f89d0182d317bef0b810d5c4e62f8c7bad2':
Fix theme propagation to contained android:drawable elements
39e33621a725bcdaa21a723866e53c6ea3356169 03-Oct-2014 Alan Viverette <alanv@google.com> Fix theme propagation to contained android:drawable elements

BUG: 17790666
Change-Id: I6733a98e779cad0d384b917c57d2b3409a166c02
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LevelListDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
c2a0b4482d7144e8382346ea4c22c7b89368fec0 02-Oct-2014 Neil Fuller <nfuller@google.com> resolved conflicts for merge of ee665151 to lmp-mr1-dev-plus-aosp

Change-Id: I2588c65b7a9fa43f968151a206924a804f0595a7
f7cf5d43aa13405f9d0dd54f6038f710a0423323 02-Oct-2014 Neil Fuller <nfuller@google.com> resolved conflicts for merge of ee665151 to lmp-dev-plus-aosp

Change-Id: I97671e62de26919e391dbb2686511584c59ab990
fee7f1b1d902e9cde2f3918e00d0d4d9ca8448e9 01-Oct-2014 ztenghui <ztenghui@google.com> am ec81db6a: am c4306923: am 9e6a02b9: am ffa16f94: Merge "Correct the documentation for VectorDrawable" into lmp-dev

* commit 'ec81db6ab43de69a9bba333c1939e6213af085fa':
Correct the documentation for VectorDrawable
33253a4baa6279f81a73425b49dfb6abe5f5416e 01-Oct-2014 Neil Fuller <nfuller@google.com> Switch from FloatMath -> Math and Math.hypot where possible

The motivation is an API change: FloatMath is going to be
deprecated and/or removed. Performance is not the goal of
this change.

That said...

Math is faster than FloatMath with AOT compilation.

While making the change, occurances of:

{Float}Math.sqrt(x * x + y * y) and
{Float}Math.sqrt({Float}Math.pow(x, 2) + {Float}Math.pow(y, 2))

have been replaced with:

{(float)} Math.hypot(x, y)

Right now there is no runtime intrinsic for hypot so is not faster
in all cases for AOT compilation:

Math.sqrt(x * x + y * y) is faster than Math.hypot(x, y) with
AOT, but all other combinations of FloatMath, use of pow() etc.
are slower than hypot().

hypot() has the advantage of being self documenting and
could be optimized in future. None of the behavior differences
around NaN and rounding appear to be important for the cases
looked at: they all assume results and arguments are in range
and usually the results are cast to float.

Different implementations measured on hammerhead / L:

AOT compiled:

[FloatMath.hypot(x, y)]
benchmark=Hypot_FloatMathHypot} 633.85 ns; σ=0.32 ns @ 3 trials

[FloatMath.sqrt(x*x + y*y)]
benchmark=Hypot_FloatMathSqrtMult} 684.17 ns; σ=4.83 ns @ 3 trials

[FloatMath.sqrt(FloatMath.pow(x, 2) + FloatMath.pow(y, 2))]
benchmark=Hypot_FloatMathSqrtPow} 1270.65 ns; σ=12.20 ns @ 6 trials

[(float) Math.hypot(x, y)]
benchmark=Hypot_MathHypot} 96.80 ns; σ=0.05 ns @ 3 trials

[(float) Math.sqrt(x*x + y*y)]
benchmark=Hypot_MathSqrtMult} 23.97 ns; σ=0.01 ns @ 3 trials

[(float) Math.sqrt(Math.pow(x, 2) + Math.pow(y, 2))]
benchmark=Hypot_MathSqrtPow} 156.19 ns; σ=0.12 ns @ 3 trials

Interpreter:

benchmark=Hypot_FloatMathHypot} 1180.54 ns; σ=5.13 ns @ 3 trials
benchmark=Hypot_FloatMathSqrtMult} 1121.05 ns; σ=3.80 ns @ 3 trials
benchmark=Hypot_FloatMathSqrtPow} 3327.14 ns; σ=7.33 ns @ 3 trials
benchmark=Hypot_MathHypot} 856.57 ns; σ=1.41 ns @ 3 trials
benchmark=Hypot_MathSqrtMult} 1028.92 ns; σ=9.11 ns @ 3 trials
benchmark=Hypot_MathSqrtPow} 2539.47 ns; σ=24.44 ns @ 3 trials

Bug: https://code.google.com/p/android/issues/detail?id=36199
Change-Id: I06c91f682095e627cb547d60d936ef87941be692
ndroid/graphics/ColorMatrix.java
ndroid/graphics/PointF.java
ndroid/graphics/RectF.java
32eb1a52b35e39c38b706207a8dc23399655497b 01-Oct-2014 Alan Viverette <alanv@google.com> am 6a26bf14: am eca52d91: am 35ebdd05: am b805da9b: Merge "Fix drawable container tinting" into lmp-dev

* commit '6a26bf14a9eed00ca4835c0b2cd3b1d89686db89':
Fix drawable container tinting
e5cc77e7e13e8be9a95661d8fe931772063c5dfa 01-Oct-2014 Chris Craik <ccraik@google.com> am e9d3c6ff: am d7de7b49: am 505c9d2c: am e910cc88: Merge "Implement alpha as documented for drawables" into lmp-dev

* commit 'e9d3c6ffa3aa5e175226c2b172c726204f4f1dce':
Implement alpha as documented for drawables
bb2391929c710a4a939c301f76c42fdadc80c481 01-Oct-2014 ztenghui <ztenghui@google.com> am ffa16f94: Merge "Correct the documentation for VectorDrawable" into lmp-dev

* commit 'ffa16f944882f2e27109af8fe4b7272322f9cb84':
Correct the documentation for VectorDrawable
c3fdffa98136bdad1fee9c77598d541d792920e1 29-Sep-2014 ztenghui <ztenghui@google.com> Correct the documentation for VectorDrawable

We missed the alpha for the vector drawable root level in the documentation.
And the animation target can be vector drawable itself for the alpha value,
which is more than path and group object.

b/17696183

Change-Id: Ic9d441fbdf411dad92718ae5adbc6655fe708453
ndroid/graphics/drawable/VectorDrawable.java
d11215b8bb618ef98dc12243f26fd3a863d947d6 30-Sep-2014 Alan Viverette <alanv@google.com> am b805da9b: Merge "Fix drawable container tinting" into lmp-dev

* commit 'b805da9b592e67cb777b78db3a96d47c60e31ca7':
Fix drawable container tinting
75533864ac22603c2474c4e21e9cf64ed6ed7322 30-Sep-2014 Chris Craik <ccraik@google.com> am e910cc88: Merge "Implement alpha as documented for drawables" into lmp-dev

* commit 'e910cc88387f49b119bb2f8e579849864970ac87':
Implement alpha as documented for drawables
b805da9b592e67cb777b78db3a96d47c60e31ca7 30-Sep-2014 Alan Viverette <alanv@google.com> Merge "Fix drawable container tinting" into lmp-dev
bddb843e793a279db99888dd78b4f74a362cbb8b 30-Sep-2014 Alan Viverette <alanv@google.com> Fix drawable container tinting

BUG: 17704311
Change-Id: Ib9ced41e8589352c852e6c9dc7abbe6e4b9f2520
ndroid/graphics/drawable/DrawableContainer.java
3f873d86441c30f5d45640a9f70b3b7331985c90 29-Sep-2014 Chris Craik <ccraik@google.com> Implement alpha as documented for drawables

bug:17693526

With this change, outline opacity isn't published by default, as was
intended. Default behavior for custom drawables is to have a
rectangular outline, but not cast a shadow, e.g. as a button
background.

Change-Id: If80a256ff359bcb58f3f593ec9018f2df5fc4e44
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/Drawable.java
a389144009a7a8d7fbc24c89c583385f59e74153 27-Sep-2014 Alan Viverette <alanv@google.com> am 143631f0: am d3957f25: am a6958574: am 63756956: Merge "Add callback to track and thumb drawables, propagate state in ASLD" into lmp-dev

* commit '143631f0d4a5f69b73ae9019e6a1ccbc895dc12e':
Add callback to track and thumb drawables, propagate state in ASLD
cde6e29ac64d274c27e06a5e36c21966065edd00 27-Sep-2014 Alan Viverette <alanv@google.com> am 63756956: Merge "Add callback to track and thumb drawables, propagate state in ASLD" into lmp-dev

* commit '637569566d2234b06e08d94acf4db1b0d3be6501':
Add callback to track and thumb drawables, propagate state in ASLD
b067405bf453289a6b6bfd34b06700f08be58c24 27-Sep-2014 Alan Viverette <alanv@google.com> Add callback to track and thumb drawables, propagate state in ASLD

BUG: 17665424
Change-Id: I22da4530f3e2869d856102e804f020461a46fe49
ndroid/graphics/drawable/AnimatedStateListDrawable.java
0fff7819aad65c3a19cd85723981d3fa48e0d218 26-Sep-2014 Alan Viverette <alanv@google.com> am 5c7ca487: am 5ad708bb: am a53b5408: am 81e2f789: Merge "Fixed mutate() for RippleDrawable, ASLD, AVD, fix applyTheme in VD" into lmp-dev

* commit '5c7ca487fe9cc3e67aceb988b964be1791dd2bde':
Fixed mutate() for RippleDrawable, ASLD, AVD, fix applyTheme in VD
571cd7e9384a0a39703b8c4d918a2eb8ba806784 26-Sep-2014 Alan Viverette <alanv@google.com> am 81e2f789: Merge "Fixed mutate() for RippleDrawable, ASLD, AVD, fix applyTheme in VD" into lmp-dev

* commit '81e2f789029701b569d3c0deee8bc74fbebab5db':
Fixed mutate() for RippleDrawable, ASLD, AVD, fix applyTheme in VD
5004032ebc2aee97c5884b7f91cc33d2f98ae8b5 26-Sep-2014 Alan Viverette <alanv@google.com> Fixed mutate() for RippleDrawable, ASLD, AVD, fix applyTheme in VD

BUG: 17646144
Change-Id: I58c111d86224dc8f7f557073c0bcbc22ad74aa1b
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
aeeb822b6ebf13a0490baed64280ac5b7ee349a7 26-Sep-2014 Alan Viverette <alanv@google.com> am b02f1a0a: am e76f1b82: am a9517205: am 21662c96: Merge "Cut ripple background alpha in half" into lmp-dev

* commit 'b02f1a0abbf8ba92b845a4f1b2fcb4d0e4f431b2':
Cut ripple background alpha in half
4f79d73d26ccfc584ba1364e6046ab1845ad9956 25-Sep-2014 Alan Viverette <alanv@google.com> am 21662c96: Merge "Cut ripple background alpha in half" into lmp-dev

* commit '21662c96fa9d107a60f4ce98f7179264c972b142':
Cut ripple background alpha in half
33ae07ab814df0242625bb1e1961f464b630a7fe 25-Sep-2014 Alan Viverette <alanv@google.com> Merge "Cut ripple background alpha in half" into lmp-dev
8bdb44270323ec8b665d26322fe67cd307719904 25-Sep-2014 Alan Viverette <alanv@google.com> Cut ripple background alpha in half

Ripple alpha is supposed to be split evenly between the foreground
ripple layer and the background layer, but the background alpha wasn't
getting adjusted properly.

BUG: 17658817
Change-Id: I7af2f2ed38400a40d4a17da020363c7ae5c71a7b
ndroid/graphics/drawable/RippleBackground.java
134fe8ef6680c5617ff7107052aea54954d3b973 25-Sep-2014 ztenghui <ztenghui@google.com> am 4706b24e: am 6bdc2e08: am 7ac0a907: am c793e67c: Merge "Fix AVD for CTS failure." into lmp-dev

* commit '4706b24e3d15b5b593a48658eab4af60df782a2e':
Fix AVD for CTS failure.
533b4d3e51c0571944933141fb44655bb482c6a0 25-Sep-2014 ztenghui <ztenghui@google.com> am c793e67c: Merge "Fix AVD for CTS failure." into lmp-dev

* commit 'c793e67ca93a1550fa68c887ef00d207ac1e1d84':
Fix AVD for CTS failure.
dde353394c43ad01820c27db403cb9dedd36da4e 25-Sep-2014 ztenghui <ztenghui@google.com> Merge "Fix AVD for CTS failure." into lmp-dev
98916d146afe2ff25a439603f7d9559e74a790ca 23-Sep-2014 ztenghui <ztenghui@google.com> Fix AVD for CTS failure.

Mostly about changingConfig flags, the fix is just a copy from VectorDrawable.

b/17631551

Change-Id: Ibad9c2f61cd86b15e9bca1d1991c8cd147897bb0
ndroid/graphics/drawable/AnimatedVectorDrawable.java
485736aeae8ba7ebc2252682f404da5fc54bb8f8 23-Sep-2014 ztenghui <ztenghui@google.com> am 2b7813c6: am 065502cb: am 892412af: am 8518c090: Merge "Fix animation on the some properties" into lmp-dev

* commit '2b7813c628abb1f5044d2e680c88b4edfdf71660':
Fix animation on the some properties
60f27e65710c73d80ba86016806e60e72df08b33 23-Sep-2014 ztenghui <ztenghui@google.com> am aa60232b: am 8518c090: Merge "Fix animation on the some properties" into lmp-dev

* commit 'aa60232b96ace3ab176611c170e950a7b6db5481':
Fix animation on the some properties
dbcccffc3760f702887faa95b2748125bac88a89 23-Sep-2014 ztenghui <ztenghui@google.com> Fix animation on the some properties

The risk is low since most of them are just matching the naming to xml.
And this update won't cause build breakage.

b/17623982

Change-Id: I1eda0b8314ec7b94bc03976cdc365a7dc1039f4c
ndroid/graphics/drawable/VectorDrawable.java
e83bc5932eba4af67e2cd7b76648ae26740b9b01 19-Sep-2014 Chris Craik <ccraik@google.com> am 1fb91f51: am 158ab843: am 4f58dcf5: am e99510a4: Merge "Hide other color filter mutability" into lmp-dev

* commit '1fb91f51a256a7a32ebcc715fe4b1f3ea5f263f9':
Hide other color filter mutability
26d5da351e5fbeb23605a643923e896bb3a0d57c 19-Sep-2014 Chris Craik <ccraik@google.com> am 53dc022a: am e99510a4: Merge "Hide other color filter mutability" into lmp-dev

* commit '53dc022a6c12c1b916583dc8aee92cb63c7f73f5':
Hide other color filter mutability
f559326b182e321f51ab9711614d3e37fefa603a 16-Sep-2014 Chris Craik <ccraik@google.com> Hide other color filter mutability

bug:17262092
Change-Id: Ia6c0e1a684365c372803d1a6be41a478a05e0dd0
ndroid/graphics/ColorMatrixColorFilter.java
ndroid/graphics/LightingColorFilter.java
ndroid/graphics/PorterDuffColorFilter.java
ce65a7c8656f75dde4aa5e7287cb8a60319d9d28 16-Sep-2014 Alan Viverette <alanv@google.com> am 08a1632c: am 3d382270: am e5301f84: am 6a750aa9: Merge "Reduce overdraw after clearing ripples in RippleDrawable" into lmp-dev

* commit '08a1632ccd4bfecb39f7b0db76a2f8b9f76335b5':
Reduce overdraw after clearing ripples in RippleDrawable
16e2cbf7ccd0dad0b919ebb521a1dc615edba5f6 16-Sep-2014 ztenghui <ztenghui@google.com> am 2600eb04: am efd22801: am 6a855460: am 3137b288: Merge "Set cache dirty when re-create the cache bitmap" into lmp-dev

* commit '2600eb04d177d5b7f932436c8b68657786779469':
Set cache dirty when re-create the cache bitmap
e45ed5e85f73cdc56a80f6fe21be285edc8b7a37 16-Sep-2014 Alan Viverette <alanv@google.com> am a96b8ea7: am 6a750aa9: Merge "Reduce overdraw after clearing ripples in RippleDrawable" into lmp-dev

* commit 'a96b8ea7fe489965b7381b59169dd20fd46d334c':
Reduce overdraw after clearing ripples in RippleDrawable
9a51c4b17d237eebfec2ea5b646facd555754278 16-Sep-2014 ztenghui <ztenghui@google.com> am 64672ef1: am 3137b288: Merge "Set cache dirty when re-create the cache bitmap" into lmp-dev

* commit '64672ef149fa48afcf7f5f4b2ed0f96386b6d368':
Set cache dirty when re-create the cache bitmap
238aeca552f74a71867e560f0ae73ec99aae844d 16-Sep-2014 Alan Viverette <alanv@google.com> Merge "Reduce overdraw after clearing ripples in RippleDrawable" into lmp-dev
9c13ed366f205d94b2f3f4ddc96b55b1b9faadba 16-Sep-2014 ztenghui <ztenghui@google.com> Set cache dirty when re-create the cache bitmap

b/17503595

Change-Id: Icdaa3651345b740772363f8afb29bb36741fcc87
ndroid/graphics/drawable/VectorDrawable.java
2ae56403542582bd39c0e522bf29844d59300f37 15-Sep-2014 Alan Viverette <alanv@google.com> Reduce overdraw after clearing ripples in RippleDrawable

We only need to force a transparent draw after canceling a render
thread accelerated animation, and then we can draw again without
the transparency to avoid overdraw in the display list.

BUG: 17451761
Change-Id: I640f9a29d0940a93802f14a15f27d2c2072755ce
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/RippleBackground.java
ndroid/graphics/drawable/RippleDrawable.java
8c9e8e3083c4888166acdefd8d3619717548a8f1 13-Sep-2014 Alan Viverette <alanv@google.com> am 3512e8d6: am 1e8bb662: Merge "Apply VectorDrawable color filter at draw time" into lmp-dev

* commit '3512e8d63d5ea422876661a38d01766d15cbf096':
Apply VectorDrawable color filter at draw time
068a02618726dccc9362118fe1c8c42b5726c535 13-Sep-2014 Alan Viverette <alanv@google.com> am 2b4de8b4: am f559f89c: Merge "Report button opacity for current state, fix button shadows" into lmp-dev

* commit '2b4de8b4ee417695cdc88e9aef0aded47036e8ef':
Report button opacity for current state, fix button shadows
264ea9c35fcc9a75a923187c6a3a7fa579244283 13-Sep-2014 Alan Viverette <alanv@google.com> Merge "Apply VectorDrawable color filter at draw time" into lmp-dev
b07b086bd42181f62718a6394b56be3917b12511 13-Sep-2014 Alan Viverette <alanv@google.com> Apply VectorDrawable color filter at draw time

BUG: 17491152
Change-Id: Ia0ca0bd7cd00363ad5777d3e2e62fa1131a6d8a5
ndroid/graphics/drawable/VectorDrawable.java
a5d91d52b4ab6ecacfcf7fd4212e9d9a501a52c4 13-Sep-2014 ztenghui <ztenghui@google.com> am 8207e209: am 2bb77b5a: Merge "Add root alpha and animation to (Animated)VectorDrawable" into lmp-dev

* commit '8207e209ade72f13a1ed77f5bc219163385a28af':
Add root alpha and animation to (Animated)VectorDrawable
6d325763120d2123633e358b34c3975545e81fe0 13-Sep-2014 Alan Viverette <alanv@google.com> Merge "Report button opacity for current state, fix button shadows" into lmp-dev
888b4cf73c9663be37c4faa1249cef1a6a8f8c38 13-Sep-2014 Alan Viverette <alanv@google.com> Report button opacity for current state, fix button shadows

BUG: 17433604
Change-Id: I25e0bd9b96e09ed2a4d85476b60f459e7cc33002
ndroid/graphics/drawable/GradientDrawable.java
74cc5c39ae0335af9055cab000d4e92bbf4c9e60 13-Sep-2014 ztenghui <ztenghui@google.com> Merge "Add root alpha and animation to (Animated)VectorDrawable" into lmp-dev
8490354dc651dd8f25036ef0dda7917fb33013ed 11-Sep-2014 ztenghui <ztenghui@google.com> Add root alpha and animation to (Animated)VectorDrawable

b/17393626

Change-Id: If6a28b072f7d4bcb2b57022d86ec784f4c0d78f1
ndroid/graphics/drawable/VectorDrawable.java
0cfc7717aa473262044c9edaddcfe7bc0caaa2ee 12-Sep-2014 Alan Viverette <alanv@google.com> am 5dee9c9b: am 855fc8c7: Update icons to vectors, fix preload theming & vector tinting

* commit '5dee9c9b3e68e7567e765b7abb5ba3d3f05ce989':
Update icons to vectors, fix preload theming & vector tinting
607bd848269fb802550e63aa61945790616f97a7 12-Sep-2014 Alan Viverette <alanv@google.com> Update icons to vectors, fix preload theming & vector tinting

Adds a missing JNI binding to AssetManager, ensures drawables have
default tint modes as documented, and updates vector tint appropriately
when state changes.

BUG: 17385604
Change-Id: Ice92885989ebc13b95952f5dc3b7904cc956da12
ndroid/graphics/PorterDuffColorFilter.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
51698b5e0ddae58a548ba3d2e8728d5cbd4275be 12-Sep-2014 Chet Haase <chet@google.com> am 7768b45e: am f23dcf73: Merge "Unfilled shapes should not report themselves as opaque" into lmp-dev

* commit '7768b45e8e49a87709f752ed1a3f67616b70f76a':
Unfilled shapes should not report themselves as opaque
3c813371be98b191cd2a7095be46932d6362f9ab 12-Sep-2014 Chris Craik <ccraik@google.com> am d6ec00a6: am f1101afa: Merge "Fix null rect parameter for saveLayer / saveLayerAlpha" into lmp-dev

* commit 'd6ec00a609c31d40493bfa15314763ec8937f09d':
Fix null rect parameter for saveLayer / saveLayerAlpha
25877af238133e7e621a48b35e041a03c27cf645 12-Sep-2014 Chet Haase <chet@google.com> Merge "Unfilled shapes should not report themselves as opaque" into lmp-dev
22cf0b0cb856336d36961280b1e968a91d4488d5 12-Sep-2014 Chet Haase <chet@google.com> Unfilled shapes should not report themselves as opaque

Issue #17470611 Stroked, unfilled GradientDrawable shouldn't cast a shadow

Change-Id: Ied60e12c2d2567efec8dac1fe69c77b49ef25b8e
ndroid/graphics/drawable/GradientDrawable.java
9bc13a353fa8fac323839268789ef661b219530c 12-Sep-2014 Chris Craik <ccraik@google.com> Fix null rect parameter for saveLayer / saveLayerAlpha

bug:17476559
Change-Id: I3ba43c9eed8f6fc455eb41e0990e75e0f4c7b648
ndroid/graphics/Canvas.java
2a67fa92f0bf3ad625ee53eedfe2c444959f514d 11-Sep-2014 ztenghui <ztenghui@google.com> am 548b9294: am 8738c8db: Merge "Bring back the fillAlpha and strokeAlpha." into lmp-dev

* commit '548b92941c8cea5c3aa125c0fe6ea69748c18591':
Bring back the fillAlpha and strokeAlpha.
c96e3927657558f0d01626c252cf480624749120 11-Sep-2014 ztenghui <ztenghui@google.com> Merge "Bring back the fillAlpha and strokeAlpha." into lmp-dev
72b834a3019b725afbdc549315adf8e6c5b5cfe9 11-Sep-2014 Alan Viverette <alanv@google.com> am 5d1f9528: am 2a94c34d: Merge "Copy opaque over shape in GradientDrawable copy constructor" into lmp-dev

* commit '5d1f9528fd1b6f4c7919c9e19f69c86bbf1dc561':
Copy opaque over shape in GradientDrawable copy constructor
87610e535d6aaec9983e1a476506a2fa6885800d 11-Sep-2014 Alan Viverette <alanv@google.com> Merge "Copy opaque over shape in GradientDrawable copy constructor" into lmp-dev
c3a63c1fbb47f167f6736ad637fd6c6e3ee9d1d8 11-Sep-2014 Alan Viverette <alanv@google.com> Copy opaque over shape in GradientDrawable copy constructor

BUG: 17433604
Change-Id: I8eeba8bd68930db178545a3b25e29c3c45ae1f79
ndroid/graphics/drawable/GradientDrawable.java
25cc6dcea8e5928f9e3c1dae96329b21a06517a0 11-Sep-2014 Alan Viverette <alanv@google.com> am b5d64475: am 38669745: Merge "Only force drawing in RippleDrawable when necessary" into lmp-dev

* commit 'b5d64475b9383b85432adf62d7d853e43b217d53':
Only force drawing in RippleDrawable when necessary
2e17d2b232e11b3ec246c704d8c4707c8fd863fa 05-Sep-2014 ztenghui <ztenghui@google.com> Bring back the fillAlpha and strokeAlpha.

At the same time, remove the group alpha since we did not follow the convention
that group's alpha should apply together, not separately to each elements.

b/17393626

Change-Id: Idfc071414213583924961dc8ea760d6fb317873c
ndroid/graphics/drawable/VectorDrawable.java
5aaa7788d5f6196fe0a756fb219c293131e4f21b 11-Sep-2014 Alan Viverette <alanv@google.com> Merge "Only force drawing in RippleDrawable when necessary" into lmp-dev
da789748f32853f40c1d678e500d6687d1f81aef 10-Sep-2014 Chet Haase <chet@google.com> am 969628cd: am 804df9eb: Use constant state in AnimatedVectorDrawable

* commit '969628cdad8f3ba8581c01c0ffbf2b224196e979':
Use constant state in AnimatedVectorDrawable
6f6578e81c1df207da47e2e1337382341f271206 06-Sep-2014 Chet Haase <chet@google.com> Use constant state in AnimatedVectorDrawable

Complex animated vector drawables can be expensive to load due to
sub-optimal parsing of the String-based pathData. Suffering that penalty
every time the same drawable is loaded (such as material-themed
ProgressBars) is painful.

The new approach caches constant state of both the VectorDrawable (including
the pathData geometry) and the animators (which includes potentially expensive
path-based interpolators).

issue #17366831 Material ProgressBar taking 200+ms to inflate

Change-Id: Iba3b541e24cfce8c07f5aa9fe6aa7d7b92b2fe1c
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
8683a4f819c5b4c77593568048428a6a18a883ca 10-Sep-2014 Alan Viverette <alanv@google.com> Only force drawing in RippleDrawable when necessary

BUG: 17451761
Change-Id: Ibb9d1c64791ec54eb90608c957eeb5efb1712b4a
ndroid/graphics/drawable/RippleDrawable.java
13a081975414ab3559bec7ed2fb934d9fae63a2b 10-Sep-2014 George Mount <mount@google.com> am 568b3fe9: am 1fac2ba1: Merge "Use intrinsic size for path animation in AnimatedVectorDrawable" into lmp-dev

* commit '568b3fe99baa8e5eba1acad6a522706f16803a40':
Use intrinsic size for path animation in AnimatedVectorDrawable
b7d63aedf57e946c1a555e773d1e3591122544a7 10-Sep-2014 George Mount <mount@google.com> Merge "Use intrinsic size for path animation in AnimatedVectorDrawable" into lmp-dev
87c8260341a54dbaa7a26eb81a40f65688c3ed36 10-Sep-2014 Svetoslav <svetoslavganov@google.com> am f1b72b86: am 3f49b128: Merge "Trim unnecessary pages when printing." into lmp-dev

* commit 'f1b72b86380b25b933be32c46d4f59a41699a546':
Trim unnecessary pages when printing.
fd3c4744f265c5277e6e2641a18d5ec3dff19f6b 08-Sep-2014 George Mount <mount@google.com> Use intrinsic size for path animation in AnimatedVectorDrawable

Bug 16984007

Animated Vector Drawables were using the viewport dimensions for
calculating the allowable animation error. Instead of using viewport
dimensions, it is better to use the intrinsic dimensions. Using
the viewport dimensions meant that a small viewport (e.g. 1x1)
would mean that animation paths within would only have an accuracy
of 50% of the dimensions of the drawable.

Change-Id: Id0152eabb4effd1e50c644eea7a371b38baeb7c1
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
62ce332c141cf7bc7200c4c87d63e395874fc3ec 05-Sep-2014 Svetoslav <svetoslavganov@google.com> Trim unnecessary pages when printing.

A user may request a subset of the document's pages to be printed.
In this case the expectation is that the resulting document does
not include not selected pages. While print serivices can do the
trimming themselves or the printer may do so, moving, potantually
many, redundant pages is inefficient. The real problem is when
saving to a PDF file where the saved file must not have the pages
the user did not select. This change adds shredding of undesired
pages from the PDF before saving it or passing it to a print service.
:
bug:17285994

Change-Id: I7deba535af99457bea3c118202314f0f3812e809
ndroid/graphics/pdf/PdfEditor.java
ndroid/graphics/pdf/PdfRenderer.java
4656e69bf36d42a35c9290ab79eeb33b4cca1d5c 08-Sep-2014 Elliott Hughes <enh@google.com> resolved conflicts for merge of 2008cff7 to lmp-dev-plus-aosp

Change-Id: I5148eda624e8504f12dbc1288cd4a7a5b7c10850
e9921370d7f934e7b3e09a5a5a8ac2c1e8f60c92 06-Sep-2014 Alan Viverette <alanv@google.com> Merge "Simplify ripple background drawing, fix ripple alphas" into lmp-dev
d0646dca40ff740bd49755ad60751678b0ccca52 28-Aug-2014 Mark Doliner <mark@kingant.net> Small documentation fixes across many files.

Change-Id: I3e8787ce4bc6018ea1dc9aef2a2cd4e0a8dde663
ndroid/graphics/drawable/GradientDrawable.java
f2f3bde62fd9738e1a5b7bd250aec3569cbb14c1 05-Sep-2014 Alan Viverette <alanv@google.com> Merge "Remove old setTint from Drawable" into lmp-dev
bd5afc71864181c549bf3c620eedf8fc8c0cd531 05-Sep-2014 Alan Viverette <alanv@google.com> Remove old setTint from Drawable

BUG: 15782973
Change-Id: Idf0a6ea7c81135b032fcdadc46ee78d7db6945c7
ndroid/graphics/drawable/Drawable.java
a3f0c2b21a73a82a919abe247c4046d114f3712c 05-Sep-2014 Alan Viverette <alanv@google.com> Simplify ripple background drawing, fix ripple alphas

Eliminates an extra saveLayer on the background in the common case of
a rectangle-bounded ripple.

Ripples and backgrounds are now drawn at 50% opacity of the ripple
color, which ensures that both the ripple and background are visible
and that the pressed state has a correct combined alpha.

Also fixes a bug where hardware (RT) animation was getting turned off
prematurely.

BUG: 17405007
BUG: 17398089
BUG: 17394445
BUG: 17389859
Change-Id: Idb5808368fe563581a51a8cb9778275ee8d22f4c
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/RippleBackground.java
ndroid/graphics/drawable/RippleDrawable.java
def8a3712830fb1c2edde0f44aa166c8235f6285 05-Sep-2014 Chris Craik <ccraik@google.com> Merge "Replace native crash with IAE when calling picture.draw() w/ a HW canvas" into lmp-dev
96890564bdbd2f2a41dfc323fc8b3938fb335639 05-Sep-2014 Chris Craik <ccraik@google.com> Replace native crash with IAE when calling picture.draw() w/ a HW canvas

bug:17397958
Change-Id: I75f942db0e604f9fd6ab31e6c81f718c0f57b16a
ndroid/graphics/Canvas.java
ndroid/graphics/Picture.java
0edfd0be153dffcf4793f319b6aac4865f3cf142 05-Sep-2014 Chris Craik <ccraik@google.com> Merge "Hide color filter mutability" into lmp-dev
954ad629477176b891ab51fe55140fc6f11e2a5b 05-Sep-2014 Chris Craik <ccraik@google.com> Hide color filter mutability

bug:17262092

Change-Id: I1662194958dac9f5ebf943d17fa9074f1b6a0168
ndroid/graphics/PorterDuffColorFilter.java
a2362c9251af9d27506aa12f49da42e019665555 04-Sep-2014 Alan Viverette <alanv@google.com> Clear ripple animations on cancel/end

This prevents subsequent calls to end() from snapping the background
opacity (among others) back to 1.

BUG: 17357749
BUG: 17349157
Change-Id: I2a4870ed588ba98986428983bf29b556cdc9a701
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/RippleBackground.java
94b88e7103b0ce7a1bb1f79156b5fdc07f1c90b4 03-Sep-2014 Alan Viverette <alanv@google.com> Merge "Remove partial support for hotspot changes on focus movement" into lmp-dev
90ab04754032bd7fef8f453b5777bbd4e969e759 03-Sep-2014 Chet Haase <chet@google.com> Merge "Fix behavior of inflating InsetDrawable" into lmp-dev
36bdc9fe9ae5b9606f79a84461397ce85291cfea 03-Sep-2014 Alan Viverette <alanv@google.com> Merge "Make sure ripple background bounds are used for invalidation" into lmp-dev
014e14b242848eaa86a10562e1c494143a0149aa 03-Sep-2014 Chet Haase <chet@google.com> Fix behavior of inflating InsetDrawable

A recent change to InsetDrawable changed the behavior of inflating
an InsetDrawable when it already had a valid bitmap. The new behavior
avoids throwing an exception with a bad resource where it used to
throw, because the existence of the bitmap makes it avoid trying to
load the resource at all.

The fix is to reintroduce the old behavior of forcing it to load the
resource regardless of the state of its bitmap.

Issue #17068252 InsetDrawable inflation CTS test is failing

Change-Id: I941388730d4479f8f4747a7985754ffdf5133f04
ndroid/graphics/drawable/InsetDrawable.java
a8a8ff000b2902eb4e187e62be39fd9535c6c839 03-Sep-2014 Alan Viverette <alanv@google.com> Remove partial support for hotspot changes on focus movement

Also removes unused x/y position and tween values on RippleBackground. The
background is now always centered within the hotspot area.

BUG: 17300399
Change-Id: I1904c9f44e6bebb2b434d2b092205edd42204263
ndroid/graphics/drawable/RippleBackground.java
ndroid/graphics/drawable/RippleDrawable.java
be0dd99bac781d1dd73cb67f33bcd931e3693af5 03-Sep-2014 Alan Viverette <alanv@google.com> Make sure ripple background bounds are used for invalidation

BUG: 17349157
Change-Id: Ie88fbabbc66349aea9b7d00e28ca12f93776a4a7
ndroid/graphics/drawable/RippleBackground.java
ndroid/graphics/drawable/RippleDrawable.java
561b8931742503d58ae842edea790e86f359870f 02-Sep-2014 Svet Ganov <svetoslavganov@google.com> Merge "Move print rendering in an isolated process." into lmp-dev
13f542cabd635c55ade5442764cc4a3d2f7880ea 30-Aug-2014 Svet Ganov <svetoslavganov@google.com> Move print rendering in an isolated process.

Security review of the PDF rendering code revealed that it is
not sercure. Therefore, this code must be run in a sandbox.
This change moves the rendering code in an isolated process.

bug:16897933

Change-Id: I711ce42a56892db1837950137bfaa79e1d61a7c4
ndroid/graphics/pdf/PdfRenderer.java
be50bd76a993b8575828df2fafab4bc5ec9de99b 30-Aug-2014 Alan Viverette <alanv@google.com> Merge "Fix disappearing ripple background, treat active ripple separately" into lmp-dev
7ff48839b0149eba1ab46cfd1476854c2e664a81 30-Aug-2014 Alan Viverette <alanv@google.com> Variety of small UI tweaks

Updates dialog padding, text opacities on dark theme, progress bar
opacity, ripple background exit speed, remove unnecessary text color
attribute from action menu item layout, fix secondary and tertiary
disabled state text colors.

BUG: 17321765
BUG: 17333263
BUG: 17322159
BUG: 17330086
Change-Id: I14473a985b2c6b853afe7db535a2443e934238e9
ndroid/graphics/drawable/RippleBackground.java
fdbb98e56d4668c7bfa8de59c3c438c0cb69a535 29-Aug-2014 Alan Viverette <alanv@google.com> Fix disappearing ripple background, treat active ripple separately

There is only a single background, and it did not correctly handle
enter() being called while exit() was busy animating. We now cancel
all animations when starting an enter or exit. Also separates the
active ripple from the list of animating (exiting) ripples.

BUG: 17042060
BUG: 17281011
Change-Id: I4d4e33560867c7c71c1bdb72b17d52d6fbd86f68
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/RippleBackground.java
ndroid/graphics/drawable/RippleDrawable.java
327710e36f5e9d3a7eef9a23a1ba317fada0a030 28-Aug-2014 Alan Viverette <alanv@google.com> Merge "Preserve inner drawable bounds and level on mutate" into lmp-dev
719da6ba9b7f8b67c61479466919ecef0dd1cb79 27-Aug-2014 Alan Viverette <alanv@google.com> Merge "Fix NPE in RippleDrawable" into lmp-dev
d7853e576301bf68e96148a0b9e52085bfc7cf95 27-Aug-2014 Alan Viverette <alanv@google.com> Preserve inner drawable bounds and level on mutate

Also includes a tiny change to progress bar background alpha, which was
too dark to see.

BUG: 17285057
Change-Id: I8b0cc1c2c9405558b8163d8db9374d7c748317a2
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
772d576b97ac95cf9ed6cef365470e37fa4f4fda 27-Aug-2014 Raph Levien <raph@google.com> Merge "New weight-aware font config" into lmp-dev
117cbebe810613d4a6de034f02652cdbbfef4cde 25-Aug-2014 Raph Levien <raph@google.com> New weight-aware font config

Parse new fonts.xml config file, and resolve weight selection based on
the base weight of the font (as defined by a weight alias specified in
the config file) and the requested bold flag. This change improves the
appearance of bold spans for alternate weights of Roboto.

In addition, this patch enables weight selection for fallback fonts.
For example, if an additional font with a weight of 100 is added to the
Hebrew font family in the fallback list, then requesting
"sans-serif-thin" would select that font for Hebrew text.

Bug: 14538154
Change-Id: I99a04fad4f7bf01c75726e760d42735dd9003496
ndroid/graphics/FontFamily.java
ndroid/graphics/FontListParser.java
ndroid/graphics/Typeface.java
40e38d43675b9baa4383058e5afd5291291abc81 27-Aug-2014 Alan Viverette <alanv@google.com> Fix NPE in RippleDrawable

Invalidate was called while we were busy clearing the list of
animating ripples, which led to an inconsistency between the
ripple count and actual state of the ripple list.

BUG: 17136636
BUG: 17281011
Change-Id: Ifb7be7eb334ad9a44cc3a1e6f55ad1e35218989a
ndroid/graphics/drawable/RippleDrawable.java
b34eeb70a695af5daf876d13502df0cb20b8e4bb 26-Aug-2014 Chris Craik <ccraik@google.com> Merge "Notify VM of native pixelref allocations" into lmp-dev
4cd7dbc90f93893f521dce32d8cd25c02a185a24 26-Aug-2014 Chris Craik <ccraik@google.com> Notify VM of native pixelref allocations

bug:17178931
Change-Id: I0de22bb0d2ae8233d392b7e222f72391aaa12ce8
ndroid/graphics/Bitmap.java
ae82e604fa5de40e737a83013f90eea2d7b514a2 26-Aug-2014 ztenghui <ztenghui@google.com> Merge "VD: Update the fillColor default as transparent" into lmp-dev
8afd0f245cc0c4a0366f39f41b5f78e47ee83be3 22-Aug-2014 Chris Craik <ccraik@google.com> Create z reordering boundaries around dispatchDraw

bug:16012254

This means rendernodes with a Z will no longer be drawn at the end of
their parent's DisplayList, but at the end of the associated reorder
region (DisplayListData::Chunk).

Change-Id: Ia033fee9d9a4db567b2a8d5e90fc57a4d0a64544
ndroid/graphics/Canvas.java
a70b4742a7a0b2edc57cbbbf83d2c6d43ebc300d 25-Aug-2014 ztenghui <ztenghui@google.com> VD: Update the fillColor default as transparent

b/17208473

Change-Id: I52ff3d335094f0a95f138640eb24ef5dba2ef864
ndroid/graphics/drawable/VectorDrawable.java
a94900e587dca6e342bf29ed1acb720c594066c0 22-Aug-2014 ztenghui <ztenghui@google.com> Merge "Fixing AVD animation with startOffset" into lmp-dev
14aedd1fbf52f1b844064a15d583ccfbda6ce57d 22-Aug-2014 ztenghui <ztenghui@google.com> Fixing AVD animation with startOffset

b/17160751

Change-Id: If030ca04f5a7dd7e732dcc5dfb18d51faa7e7b79
ndroid/graphics/drawable/AnimatedVectorDrawable.java
01edef10b9724fa5607d7918addc31a3b0c991dc 22-Aug-2014 John Reck <jreck@google.com> Revert immutable Shader change

Bug: 16733996

Change-Id: I51686aaf8f6ae8d0e390e298ad70f98f81c5f555
ndroid/graphics/Shader.java
04e723c1afaa8a507534d3b33aa845e2de061517 21-Aug-2014 Alan Viverette <alanv@google.com> Merge "Jump drawable state (including ripples) on view detach" into lmp-dev
d78a44576c6bac5541e04c1f38599d43c9943653 21-Aug-2014 Alan Viverette <alanv@google.com> Jump drawable state (including ripples) on view detach

BUG: 15350931
Change-Id: I09928f59fb7b9f6d87b1f5219353a41ae6b5681d
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/RippleBackground.java
ndroid/graphics/drawable/RippleDrawable.java
38b5f597de96cd892add9017dc810212f549bf68 21-Aug-2014 John Spurlock <jspurlock@google.com> Implement GradientDrawable getColorFilter.

Otherwise the value in setColorFilter is unavailable.

Bug:17137319
Change-Id: Ief973abfa129d935aa45336275337e19a3eb0f6a
ndroid/graphics/drawable/GradientDrawable.java
9f6ba7af562a938e4765a224b412f2d0691f586a 21-Aug-2014 Behdad Esfahbod <behdad@google.com> Merge "Throw exception on nonexistent font" into lmp-dev
bf8d5620f7f3be72ec217f4bcc14a417d4e1dee6 20-Aug-2014 Behdad Esfahbod <behdad@google.com> Throw exception on nonexistent font

In K, this used to throw RuntimeException. Before this patch, NULL
was returned and no exceptions thrown. With this patch,
FileNotFoundException is thrown. This might be considered API
change and be undesirable as callers need to either catch it or
declare it to be thrown.

Bug: 16180181
Change-Id: If83d76857f640c6293a3d5d08fb89ceddbaf41bc
ndroid/graphics/Typeface.java
06cd7dce24876b54870f9ef3831237f8298773a9 20-Aug-2014 Alan Viverette <alanv@google.com> Forward additional drawable methods in AVD

BUG: 17156349
Change-Id: I1d7b41fc8d0399b31db4cf21aa47180e96bfbcfe
ndroid/graphics/drawable/AnimatedVectorDrawable.java
aba9715ae77dcc9c100677a0b3e822aaf919f3ff 20-Aug-2014 Chris Craik <ccraik@google.com> Merge "Make getOutline account for gravity BitmapDrawable" into lmp-dev
fe7a18eeada1bf2553ca00afb71b372bd79666dd 20-Aug-2014 Chris Craik <ccraik@google.com> Make getOutline account for gravity BitmapDrawable

bug:17112454

Also cleans up several subtle bugs in updating gravity/tile mode/insets.

Change-Id: Idbd2c52e5f572d11b651f5e93d000535880f5708
ndroid/graphics/drawable/BitmapDrawable.java
13600f9ed450e9d26d9d2dd09ab95ad52208a38b 19-Aug-2014 Chris Craik <ccraik@google.com> Merge "Don't cast shadows from gradients with transparent parts" into lmp-dev
c49e3ce6c6ac5100dc5a73c6bd12cbfda4d4ca76 19-Aug-2014 Chris Craik <ccraik@google.com> Don't cast shadows from gradients with transparent parts

bug:17070982
Change-Id: I607dd3c9397845fce53b7f097ec0b57246077ea1
ndroid/graphics/Outline.java
ndroid/graphics/drawable/GradientDrawable.java
b19fe38840226050db0658e0244790ec5eb9d577 20-Aug-2014 Alan Viverette <alanv@google.com> Merge "Update toggle switch asset to include content area" into lmp-dev
a5e1301bf5b501350b94d0308989c876c766e245 20-Aug-2014 Alan Viverette <alanv@google.com> Update toggle switch asset to include content area

Remove optical bounds workaround from NinePatchDrawable, which was
incorrect anyway since we were missing a content area rather than
missing padding.

BUG: 17114103
Change-Id: I51461be666f59534dfdea7ab79bc867ee3eb3c92
ndroid/graphics/drawable/NinePatchDrawable.java
d1d7389880225f126abcc2a268ab62cce97a92a5 19-Aug-2014 Chris Craik <ccraik@google.com> Update setShadowLayer doc

bug:17134528
Change-Id: I436bb0163b18d0b88954bf9dac16e51d14a533eb
ndroid/graphics/Paint.java
04019ee91b308cb9cce6fc284122aaa5f93e6b11 19-Aug-2014 Alan Viverette <alanv@google.com> Merge "Throw exception when inset drawable is missing drawable attribute" into lmp-dev
32e966ccb3da268af7b0ecdf5987d10700600473 19-Aug-2014 Chet Haase <chet@google.com> Merge "Fix crash in AnimationDrawable" into lmp-dev
030435773dc5413a690d460e97fd681740cd32ef 18-Aug-2014 Chet Haase <chet@google.com> Fix crash in AnimationDrawable

When a drawable becomes invisible, it unschedule itself, which
sets mCurrentFrame to -1. Later, when it becomes visible, it
calls setFrame() with either 0 (if 'restart' is true) or
mCurrentFrame. Calling setFrame() with a value of -1 causes a crash
later as we dereference an invalid location in the state durations
array.

This fix also checks mCurrentFrame and calls setFrame with 0 when the
current frame is invalid. This takes the code back closer to what it
used to be when setFrame was always called with 0, although now it will
use a valid frame when it is set.

Issue #16489419 Google Translate crashes whenever hitting done button on keyboard to get translation result.

Change-Id: I1f5b8672d209017aa8a4eaa15bd7ddd2f3ae38d1
ndroid/graphics/drawable/AnimationDrawable.java
9745de0f0559bccd7b4a2f80b5ff8c8f118c7bfc 18-Aug-2014 Chris Craik <ccraik@google.com> Fix BitmapDrawable outline crash

bug:17103753

Change-Id: Ia3d2c7d61b3f3b9ea8879f941d726d8627e155bb
ndroid/graphics/drawable/BitmapDrawable.java
0bece71ee24f75967b86de47cae07e6fc04b4b36 16-Aug-2014 Alan Viverette <alanv@google.com> Throw exception when inset drawable is missing drawable attribute

BUG: 17068252
Change-Id: I3f5757966c1bb723311a2e2c41d419ed41369061
ndroid/graphics/drawable/InsetDrawable.java
c13ff2e4f54abc61313e906b6854986bfa96bf1e 16-Aug-2014 Jeff Brown <jeffbrown@google.com> Merge "Revert "Throw exception when inset drawable is missing drawable attribute"" into lmp-dev
2e1c9b517ec7b075280125b435b3bfb99b02cf59 16-Aug-2014 Jeff Brown <jeffbrown@google.com> Revert "Throw exception when inset drawable is missing drawable attribute"

This reverts commit b16a6331cce2c3559ed9414c6aca238c5042e919.

Bug: 17072675
Change-Id: Ie2403095df10aa0dd18545a3d2a323ae463037e4
ndroid/graphics/drawable/InsetDrawable.java
0a9614f5fb749bad12e75ec58a139e327d77a186 15-Aug-2014 Alan Viverette <alanv@google.com> Throw exception when inset drawable is missing drawable attribute

BUG: 17068252
Change-Id: Id9c9791501ce9d56fdd67236c84775550c89032c
ndroid/graphics/drawable/InsetDrawable.java
7ca0bb5d4dea54940be71adf1de536ba177c16c8 16-Aug-2014 Alan Viverette <alanv@google.com> Merge "Better handling of unresolved theme attributes" into lmp-dev
34a14f967ab6c88829c9a36ce6e909c47b3ee398 16-Aug-2014 Alan Viverette <alanv@google.com> Better handling of unresolved theme attributes

Also adds a (very obviously wrong) default color to RippleDrawable

Change-Id: I6d29b371f4e59accbebf25eb059b1f372b9184b0
ndroid/graphics/drawable/RippleDrawable.java
cf8f58350b6191b6323bbe84bbc56004861dae6d 16-Aug-2014 Alan Viverette <alanv@google.com> Merge "Throw exception when inset drawable is missing drawable attribute" into lmp-dev
a4888fbac9ff01242c8fec0b29c27770ff703879 15-Aug-2014 Chet Haase <chet@google.com> Merge "Minor doc fixes from API council recommendations." into lmp-dev
6beeb75723cec42603b47664bce794a2b97d7bac 15-Aug-2014 Chet Haase <chet@google.com> Minor doc fixes from API council recommendations.

Issue #17008236 API review: android.graphics

Change-Id: I171d376b642707858198d8a1379c732fcfcab4dd
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
ndroid/graphics/drawable/shapes/Shape.java
e222e359a0aab985488a711f6edb76820fe8c6df 14-Aug-2014 Chris Craik <ccraik@google.com> Disable shadow casting for transparent BitmapDrawables

bug:17013977
Change-Id: I26328c21360432bb34d3f19858dfdc0e6aede057
ndroid/graphics/drawable/BitmapDrawable.java
03d30a573b8bc8e169e153a0fffa053ffedcd5ee 14-Aug-2014 Alan Viverette <alanv@google.com> Make sure we're obtaining themed drawables correctly

Change-Id: I446a3492f7bf5a897c5d698e61327af4b7840d85
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
e07465fafd66a6e882890febcd688e04e6cf2c61 13-Aug-2014 Raph Levien <raph@google.com> Merge "Resolve invalid Typeface style to default" into lmp-dev
2adf8902ce39f066d001cb7171d93066162fb486 13-Aug-2014 Alan Viverette <alanv@google.com> Merge "Prevent re-entry when clearing animating hotspots" into lmp-dev
27cede8777c999f226e2e1035b5011e59b558444 13-Aug-2014 Alan Viverette <alanv@google.com> Prevent re-entry when clearing animating hotspots

BUG: 16651728
Change-Id: I2b1b1501a4adfded833d0ed95ec3537ae217a6d7
ndroid/graphics/drawable/RippleDrawable.java
1725f941249a9cc421731d5ac5e8fe6fc9da5606 12-Aug-2014 Alan Viverette <alanv@google.com> Merge "Fix NPE in NinePatchDrawable, propagate theme in StateListDrawable" into lmp-dev
ad55abdc748f2cba6955e9e60cf7964dc027f2b5 12-Aug-2014 Alan Viverette <alanv@google.com> Fix NPE in NinePatchDrawable, propagate theme in StateListDrawable

BUG: 16979150
BUG: 16957778
Change-Id: I5e7116fe7fd3d5d177bafa88aad08ab21ae1677d
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
ff86bcd08827d1050a8cfd99b521c21848b3f364 11-Aug-2014 Raph Levien <raph@google.com> Resolve invalid Typeface style to default

Setting a textAppearance that specified a fontFamily but not a textStyle
results in a styleIndex of -1 being passed to the Typeface.create()
call. This patch resolves such invalid style indices to the default.

Fix for bug 16880318 "Applying TextAppearance To TextView with custom
font family incorrectly adds italics style on LMP"

Change-Id: I05c9cfc4d76161be21b58abdb4037c51a23cae37
ndroid/graphics/Typeface.java
0670f029a4e59448aa53b46a98e60dff6404f360 12-Aug-2014 ztenghui <ztenghui@google.com> VD: Fix Canvas save leak

bug:16965998

Change-Id: I367388b270748e2ce114b468940966d78de07465
ndroid/graphics/drawable/VectorDrawable.java
66613415966f2f1a43cdaa76560eb6d53a05f15d 08-Aug-2014 ztenghui <ztenghui@google.com> Don't double count the left/top when using bitmap cache in VectorDrawable.

bug:16861184

Change-Id: I0530602957a434b222725b6fcbc1af165ee05835
ndroid/graphics/drawable/VectorDrawable.java
dbcbca447564245921697c6965b77d69cb1e795f 08-Aug-2014 Alan Viverette <alanv@google.com> Don't make ripples respond to selection state

Also exports view pressed state for hierarchyviewer.

BUG: 16622634
Change-Id: I754428dd1d59f3b7450b01976a73d5151d27152e
ndroid/graphics/drawable/RippleDrawable.java
e272a26de16b7eebb6f9e1303254f11544a5d3b8 08-Aug-2014 Raph Levien <raph@google.com> Make letterSpacing and fontFeatureSettings public

We added APIs and TextView xml attributes to give access to letter
spacing and OpenType features. This patch makes these changes part of
the public API.

Bug: 15246510
Bug: 15594400

Change-Id: I7a54cb0da2746304a5c72a687612a279cac652e0
ndroid/graphics/Paint.java
4afbbfd54739e879e28ef3919a4fef82e6c523ad 08-Aug-2014 Alan Viverette <alanv@google.com> Add insets to dialog background

Also adds inset attribute to InsetDrawable to control all four insets.

BUG: 16868069
Change-Id: I909d05a6dc69747e9092e9ac34551b18d70d2b9f
ndroid/graphics/drawable/InsetDrawable.java
f143ae8ffecc46008b9f6a9fa85d77324b5a145b 07-Aug-2014 ztenghui <ztenghui@google.com> Removing fill and stroke opacity

bug:16850076

attrs/public.xml update will be separated for build break friday.

Change-Id: I5863193d5fecd7e210bd6db5294868f1a70e0d2f
ndroid/graphics/drawable/VectorDrawable.java
f9b4c2cc6ffbcb21f8e9b015ed3bdab0501bdf65 07-Aug-2014 Alan Viverette <alanv@google.com> Merge "Fix CTS test for nine patch padding sanity check" into lmp-dev
ac1f5884fb171f8a81819e9c0ce3402ad621f534 07-Aug-2014 Alan Viverette <alanv@google.com> Fix CTS test for nine patch padding sanity check

BUG: 16826969
Change-Id: I96628a38300dec58eb8523559741c28fed35eba2
ndroid/graphics/drawable/NinePatchDrawable.java
036a66596dba32c051a016ca9b5334fbbd39c220 07-Aug-2014 Alan Viverette <alanv@google.com> Add an extra pixel to the ripple radius used for bounds

BUG: 16850241
Change-Id: I0f3a046100c104a6321ca7eb24cd0295878e4f47
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/RippleBackground.java
b1de5a59be3f9e850f3ea3802f75ce57c5cfae01 07-Aug-2014 Alan Viverette <alanv@google.com> Merge "Separate tint and tintMode properties" into lmp-dev
af046ab637715e420f714ab48ca4788056311609 06-Aug-2014 Chris Craik <ccraik@google.com> Update radial gradient doc

bug:16838331

Clarify positions parameter, and naming of several others.

Change-Id: I6096d26deaada717b52d924cd53e852b3c31626f
ndroid/graphics/RadialGradient.java
a426445dfdab43886dd894f2ba8a1d55bfcbb278 29-Jul-2014 Alan Viverette <alanv@google.com> Separate tint and tintMode properties

BUG: 16054922
Change-Id: I820fb857b671faf9eb27612e470e820c5c4cd6b5
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
33559c96ad4f2847ad2667c6035b8afe2afe2970 07-Aug-2014 ztenghui <ztenghui@google.com> Merge "MiterLimit represent a ratio itself, no need to scale" into lmp-dev
c4d651ec8a8c190c5df173166357c2fdf47472ce 06-Aug-2014 ztenghui <ztenghui@google.com> MiterLimit represent a ratio itself, no need to scale

Change-Id: I474d8c29fc28786c6b3ff88848c1c802ab76d77c
ndroid/graphics/drawable/VectorDrawable.java
06eaf193bde2f8455a3f957f1df4b1c328ac1432 06-Aug-2014 ztenghui <ztenghui@google.com> End the animator when stop() is called

bug:16830053

Change-Id: If27ba904b0f78ee8c59df3522a97f5f86509ca0e
ndroid/graphics/drawable/AnimatedVectorDrawable.java
01af516a8768cf3c544afb02283c9d8f1dba786c 06-Aug-2014 Chris Craik <ccraik@google.com> Fix nine patch crash

bug:15598400

Prevent destroying a NULL chunk

Change-Id: Iea0ac5311ca8061f60c02669cd9b87eededf1b1d
ndroid/graphics/NinePatch.java
ndroid/graphics/drawable/NinePatchDrawable.java
0df3bd5594bbbbfbf6058ecb31e9b94a1cd22f7d 05-Aug-2014 John Reck <jreck@google.com> Add Bitmap.compress to TRACE_TAG_RESOURCES

Bug: 16800719

TRACE_TAG_RESOURCES shows bitmap decoding, have it show
compressing as well

Change-Id: I04f62545be52698de5371a2594973fa336e7b2fa
ndroid/graphics/Bitmap.java
13ed2178c4df86b5b417497ac0b130e76c9804f2 04-Aug-2014 Chris Craik <ccraik@google.com> Make outline alpha APIs public

bug:16140822
Change-Id: Ie21e2a75b462319fb49c5696f0c019e1ea803bc1
ndroid/graphics/Outline.java
5eb5cde467081d1af628e5463ba55f110265a86f 04-Aug-2014 ztenghui <ztenghui@google.com> Fix one typo and add linear progress bar in the test.

Change-Id: Ib516fd4a27000d8e69a6640386332140ff0d6fdd
ndroid/graphics/drawable/VectorDrawable.java
e9ad3931fae71c8a8cd000fd52d5df4be79b0895 31-Jul-2014 Behdad Esfahbod <behdad@google.com> Add fontFeatureSettings to TextView and attrs

New API is hidden.

Bug: 15246510
Change-Id: I8cdbbd3a36fc280e07569dbb130f8c237062fff5
ndroid/graphics/Paint.java
8e554924c527183962fc908c5f916f390f806c74 01-Aug-2014 Chris Craik <ccraik@google.com> Merge "Add outline alpha" into lmp-dev
77b5cad3efedd20f2b7cc14d87ccce1b0261960a 31-Jul-2014 Chris Craik <ccraik@google.com> Add outline alpha

bug:16140822
bug:16566746

This allows background drawables to alter the opacity of a shadow
being cast with their own alpha values.

Change-Id: I49698cc7c1bf4b2b55ffe2f82899543ca62bc61c
ndroid/graphics/NinePatch.java
ndroid/graphics/Outline.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
874bcd82c223ce58c9d76edcf619b3988c672307 31-Jul-2014 ztenghui <ztenghui@google.com> Fix the create() for the attrs position

Change-Id: Ieb93053f28502cabbf655c4a27c4864845da212e
ndroid/graphics/drawable/VectorDrawable.java
1c4d8b2173bf4b5bbac94748959752599775628d 31-Jul-2014 ztenghui <ztenghui@google.com> Correct the tag's name in the exceptions

Change-Id: I9d1499fbcf8adb6bf0c5c0b7a10a8b480a708c09
ndroid/graphics/drawable/VectorDrawable.java
805f6ebf17e2791624bb1a30834b4c1cc65583bf 30-Jul-2014 Behdad Esfahbod <behdad@google.com> Support FontFeatureSettings in Paint

New API is hidden.

Bug: 15246510
Change-Id: Idefca06a366de0d87f53d123b5291788448de4d0
ndroid/graphics/Paint.java
0c0dde7171c7ea35bbc6d64a41f94b428cb4d1f6 30-Jul-2014 Alan Viverette <alanv@google.com> Update switch assets, fix SearchView asset 9-patch areas

BUG: 16606037
BUG: 16467249
Change-Id: I9a5888e37317d1f8a6481f9733f784bbd37268f3
ndroid/graphics/drawable/NinePatchDrawable.java
9b38f6c2cd1d97bb0d1a21e2f9545e02fae851e0 30-Jul-2014 Alan Viverette <alanv@google.com> Revert "Update switch assets, fix SearchView asset 9-patch areas"

Missing updated current.txt

This reverts commit dbf6b0d68a3d502430d061cd14f03f344b50f019.

Change-Id: I70846883f56be661fa89f9eaf20f5d103f2833c6
ndroid/graphics/drawable/NinePatchDrawable.java
8bb399069da4e46b231333cff6880a0cf35b9417 30-Jul-2014 Alan Viverette <alanv@google.com> Update switch assets, fix SearchView asset 9-patch areas

BUG: 16606037
BUG: 16467249
Change-Id: Iabdf1634f4d8f87031ab3e5579140cdd428173de
ndroid/graphics/drawable/NinePatchDrawable.java
b6417b8b9492d88ccfbb723decaece1bb9ff0f73 29-Jul-2014 Alan Viverette <alanv@google.com> Don't double-cancel the active ripple

BUG: 16651728
Change-Id: Ibe413eabf9644c2ac9a5c8c1418ff996dacf606a
ndroid/graphics/drawable/RippleDrawable.java
4c4064fa66f551f49b7e1017b1ebe65a05f9df21 25-Jul-2014 Zhijun He <zhijunhe@google.com> ImageFormat: update raw10 spec to allow row padding

Change-Id: Id191b92037487f16538d111fc6171d3be9a02acf
ndroid/graphics/ImageFormat.java
a95c8abb366d9c39450513335f550b56da13b30a 23-Jul-2014 ztenghui <ztenghui@google.com> API REVIEW: VectorDrawable

- Merge <size> and <viewport> attributes all in to top-level <vector> tag
- Indent attributes under <group> in java doc.
- Updata android:stroke to be android:strokeColor, likewise android:fill
- Instead of android:clipToPath, make this a different clip-path tag.
- Document units of the various attributes
- Add example code for defining a VectorDrawable resource

More than that:
= Refactor the code to better support clipPath as a sub-class.
= Update all the xml files to use the new attributes and clip-path tag.

TODO:
-- Remove clipToPath, since that should happen on build break Friday.

bug:16488254

Change-Id: I6db5680ef83cb26c8f064a60fc7d6e7142974b0f
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
a753f4c6cb8558795e673df1896532cd148781e2 24-Jul-2014 Chris Craik <ccraik@google.com> Move ClipBounds to native

bug:15698973

Also simplifies RenderNode LTRB properties

Change-Id: I09263a697b71d325a46b57cd5250a2b165f251c8
ndroid/graphics/Canvas.java
1968201b44567262e7b2e382eee3d88990748d89 25-Jul-2014 Dan Sandler <dsandler@android.com> Don't crash when drawing zero pixels.

Bug: 16561522
Change-Id: Ia3a2d2930abc393dbe587053f598246c49c0c9c4
ndroid/graphics/drawable/VectorDrawable.java
6ce6d70f9c78f0197f1369246bf55a5f6b8d7ba4 25-Jul-2014 Alan Viverette <alanv@google.com> Separate background from ripple for better focus/press UX

Regresses the "jump" when focus changes, since the background position
is static and we don't have any reasonable UX spec for this yet.

BUG: 16323640
Change-Id: I7152546ed08375864174049b342653b3c4d3d9fb
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/RippleBackground.java
ndroid/graphics/drawable/RippleDrawable.java
fa80f7491df82d71b7084500519a2195afbea706 18-Jul-2014 Behdad Esfahbod <behdad@google.com> Add letter-spacing to Paint and TextView

New API is hidden.

Bug: 15594400
Change-Id: I5cbe7aebef0b7280eb13924f2a706c0cb4a4688e
ndroid/graphics/Paint.java
96335e3543e88f7a26b465d547d68a60678232c8 24-Jul-2014 Alan Viverette <alanv@google.com> Merge "Remove the max ripple count exceeded warning" into lmp-dev
e5d6cf85e2d8a76015202eb2d00bdfe7417a6752 24-Jul-2014 Alan Viverette <alanv@google.com> Remove the max ripple count exceeded warning

BUG: 16543509
Change-Id: I84ec8e01136d1f0f34c6153d8ef7936de547746e
ndroid/graphics/drawable/RippleDrawable.java
b7b8e921c7a60be275cae45665adcff4964ef171 24-Jul-2014 Leon Scroggins III <scroggo@google.com> Document BlurMaskFilter.Blur.

BUG:1894887
Change-Id: Ia5ed8d8d5e3fcebec6f903b2641d030e8b29513c
ndroid/graphics/BlurMaskFilter.java
866cf65cc3c53f67836c9157d5c661adfdbd25e1 22-Jul-2014 Leon Scroggins III <scroggo@google.com> Make updateLocalMatrix replace the current Matrix.

Fixes a bug introduced in I3c3316377874e89fccc85afb864bc038b0ef3890.

CreateLocalMatrixShader combines the existing matrix with the new
matrix, which is not what we want. Keep track of the original
SkShader at all times, and always create the local matrix shader
with the original. Store the SkShader with a local matrix as
Shader.native_with_local_matrix.

Make Shader.native_instance private. Instead of allowing direct
access, add an init() method which sets it, and getNativeInstance(),
which returns either native_instance or native_with_local_matrix,
as appropriate.

Make Shader subclasses call init(), instead of setting native_instance
directly.

Pass native_with_local_matrix pointer to nativeSetLocalMatrix and
nativeDestructor, which unrefs it (if not null).

Since nativeSetLocalMatrix no longer replaces the original, do not
unref it.

Add a comment to Shader.updateLocalMatrix that it does not affect
ComposeShaders created with this Shader. (This should have been a
part of I3c3316377874e89fccc85afb864bc038b0ef3890.)

BUG:16293121
Change-Id: Ieb31c7e1fe99081f6b81493178f4a18d3c5df643
ndroid/graphics/BitmapShader.java
ndroid/graphics/ComposeShader.java
ndroid/graphics/LinearGradient.java
ndroid/graphics/Paint.java
ndroid/graphics/RadialGradient.java
ndroid/graphics/Shader.java
ndroid/graphics/SweepGradient.java
5a836f74df027bb568da17fbde4e641b6a56d2a9 22-Jul-2014 ztenghui <ztenghui@google.com> Add negative sign separation support in the pathData

bug:14585171

Change-Id: I61dec27856be09c44bb1d32ff61b3c3cd458cc34
ndroid/graphics/drawable/VectorDrawable.java
ade9ef236c5258d7369597f2f8a08ab277396513 23-Jul-2014 Alan Viverette <alanv@google.com> Ensure ripple mask gets updated in public constructor

Change-Id: I084ff0357c8e3cf08d3700d9c7dce42726b986f1
ndroid/graphics/drawable/RippleDrawable.java
c403a3908940ff9c7436c0153f941bec693bb39d 23-Jul-2014 Chris Craik <ccraik@google.com> Merge "Make setter methods on Outline call setEmpty() based on params" into lmp-dev
0645128b80621edee70f8cab4afb208fe0c26bec 21-Jul-2014 Chris Craik <ccraik@google.com> Make setter methods on Outline call setEmpty() based on params

bug:16142564

Additionally, better define behavior around null outline providers:

A view with an empty outline, and setClipToOutline=true will not be
rendered, though one with a null outline provider
(and thus no outline) will be.

Change-Id: Ic9549841b107b2eb51b417c66058a0cd69dd89eb
ndroid/graphics/Outline.java
8872b38ef403cc2c44aca07d392f5e9426fd7f54 23-Jun-2014 Derek Sollenberger <djsollen@google.com> Separate Canvas JNI code from the implementation.

This introduces Canvas.h which is a pure virtual interface that
is intended to be used by both Skia and HWUI implementation. To help
stage this transition this CL only introduces the interface and Skia
implementation. The interface is not intended to be final and will
undoubtedly go through iterations in both style and location as we
look to introduce the HWUI implementation.

BUG:15672762
Change-Id: Ibaccdddb87d3b9358f4f0c1d317ead5282d4ee16
ndroid/graphics/Canvas.java
4f64c048505a432e549ccb756634ecebf28f9e80 22-Jul-2014 Alan Viverette <alanv@google.com> Clean up view tinting APIs, tileModeX/Y attribute docs

BUG: 16400590
BUG: 16403307
Change-Id: Ie924815a39eb0e683d1982b08ec478ed3edbfb7b
ndroid/graphics/drawable/BitmapDrawable.java
31ba192dd201df2cad96a8c503f730130ab0d80f 18-Jul-2014 Chris Craik <ccraik@google.com> Tweaks to outline API

b/15283203
b/16142564

Remove boolean return value chaining, as it's redundant with
the data in the Outline itself.

Change-Id: I3116e57cd1b35c98b74e95195117edd7e39fb2df
ndroid/graphics/Outline.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
ndroid/graphics/drawable/shapes/OvalShape.java
ndroid/graphics/drawable/shapes/RectShape.java
ndroid/graphics/drawable/shapes/RoundRectShape.java
ndroid/graphics/drawable/shapes/Shape.java
9d59a76dd0e850558e83ef1a48fefd865fac1336 18-Jul-2014 ztenghui <ztenghui@google.com> Fix FIT_XY scaleType issue on VectorDrawable

bug:16019658

Change-Id: I8b6ac23bf14de5427d3029436acf76bd1161f0ea
ndroid/graphics/drawable/VectorDrawable.java
670689af43358568bf2b5916284f1cac5762f428 18-Jul-2014 ztenghui <ztenghui@google.com> Fix caching in VectorDrawable to pass the CTS test

bug:16380401

Change-Id: I573f4cc782707c6ef3484597ddc621a7a6353898
ndroid/graphics/drawable/VectorDrawable.java
738177caf6a755a59ca6b17bb968be0aa4e8e10f 16-Jul-2014 ztenghui <ztenghui@google.com> Add the RTL support to VectorDrawable.

bug:15905631

Change-Id: Ieb3dcac2dd446ba89f307716411688dcd6ec5279
ndroid/graphics/drawable/VectorDrawable.java
580ff8142b7d0455d0d41ee77572b4f55dd935f0 17-Jul-2014 John Reck <jreck@google.com> Revert "Separate Canvas JNI code from the implementation."

This reverts commit e28a5afee885cd69a5be5809f88116b601cb1a72.

Appears to cause memory corruption and random appearances of
chinese

Bug: 16343240
Bug: 16336642

Change-Id: Ife169181f40adff4b12948ed5f9d3a88dcec935b
ndroid/graphics/Canvas.java
889fc94ffa70633e510e812b9da86723f4eee384 17-Jul-2014 Chris Craik <ccraik@google.com> Merge "Add accessibility text contrast setting" into lmp-dev
cce47eb580d666ead1f6095d1e3b65233592bbaa 17-Jul-2014 Chris Craik <ccraik@google.com> Add accessibility text contrast setting

b/14624452

Adds a feature which draws all text (in the HW accelerated standard
path) in a high contrast mode. Text is drawn at full alpha, and either
white or black (depending on its original color) with a starkly
contrasted outline beneath it.

Change-Id: I943f624b6367de35367cced3b2a8298f2bc62377
ndroid/graphics/Canvas.java
d646fa2933ddcbfd4ed9c7686bf5e8253b4ba980 16-Jul-2014 Alan Viverette <alanv@google.com> Fix state list drawable transitions

BUG: 16345178
Change-Id: I3a4f09462ac127bfb2adba6f63f5f44e5d4ea693
ndroid/graphics/drawable/AnimatedStateListDrawable.java
7bc6a3f023ca3e1dde91fc97b6036dee3ba538a2 16-Jul-2014 ztenghui <ztenghui@google.com> Add more reverse support to AnimatedVD

bug:16162242

Change-Id: Ie0b7618beeb65ebeb65db41600165837524bcee4
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/AnimatedVectorDrawable.java
6e0a9fa6ed86e918bfed5310d2522b2c2a527ef0 14-Jul-2014 Alan Viverette <alanv@google.com> DO NOT MERGE Add support for AVD reverse() to ASLD, clean up transition handling

BUG: 16162242
Change-Id: I29336491d01d40e5369503ece858bcbe5aa99b19
(cherry picked from commit 4e9c797a9c024e5a4226ed37eece16e3db2edb78)
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/AnimatedVectorDrawable.java
7068c39526459c18a020e29c1ebfa6aed54e2d0f 14-Jul-2014 Alan Viverette <alanv@google.com> Fix hotspot movement on focus change

BUG: 15726988
Change-Id: I97f88e5f7e404ecfcd5c254fddd18c8f6616064e
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
f5d6c555c3430f6e423952ba3ab024380e550bba 23-Jun-2014 Derek Sollenberger <djsollen@google.com> Separate Canvas JNI code from the implementation. DO NOT MERGE

This introduces Canvas.h which is a pure virtual interface that
is intended to be used by both Skia and HWUI implementation. To help
stage this transition this CL only introduces the interface and Skia
implementation. The interface is not intended to be final and will
undoubtedly go through iterations in both style and location as we
look to introduce the HWUI implementation.

BUG:15672762
Change-Id: Idefadede356f688edb8eb09b4a02aa01b4077f62
ndroid/graphics/Canvas.java
757f0f36b9088def734575482cd128a0e78fac24 15-Jul-2014 Chris Craik <ccraik@google.com> Merge "Implement outline support for nine patches" into lmp-dev
47cd8e921db73e894f94ec4729ade90da50996f5 09-Jul-2014 Chris Craik <ccraik@google.com> Implement outline support for nine patches

b/15856895

Nine patches now have outline round rect metadata stored as optional
png tags. aapt generates these automatically by inspecting the bitmap
pixels to estimate outline bounds and round rect radius, based on
opacity.

Change-Id: I226e328a97873010d9e1adb797ac48f93a31183c
ndroid/graphics/Bitmap.java
ndroid/graphics/NinePatch.java
ndroid/graphics/Rect.java
ndroid/graphics/drawable/NinePatchDrawable.java
dc4335408b10759c4b15a315a213c52e9ed2e1e4 15-Jul-2014 ztenghui <ztenghui@google.com> Merge "Enable the bitmap cache for the VectorDrawable" into lmp-dev
482eb53c8a7d5180a2d0ce3b0a779c18960aa8cd 14-Jul-2014 ztenghui <ztenghui@google.com> Enable the bitmap cache for the VectorDrawable

b/16299765

Change-Id: Ia2c0fd366abc097d1ce485936de74e4e898cc07a
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
b942b05093d2b1cee59ac73196a4b99962f10add 11-Jul-2014 Eino-Ville Talvala <etalvala@google.com> Deprecate android.hardware.Camera

__
||
||
||
||---____-----+
|| \_/ |
|| /. .\ |
|| ||---|| |
|| |___| |
|| | | |
||---____-----+
||
||
||
_____________||_________________

Replaced by android.hardware.camera2

- Also deprecate MediaRecorder#setCamera
- Also deprecate all Camera inner classes
- Update reference documentation in various classes to point to camera2
- Add note to camera API guide that it uses the old API
(until a new guide is available)
- Remove old hidden raw sensor format; superceded by RAW_SENSOR.

Change-Id: I3d839765fc9b9aae906751ee32d6956ef40451ce
ndroid/graphics/ImageFormat.java
ndroid/graphics/SurfaceTexture.java
935b1fa24d05533a95ee47425ab9bedb31641012 11-Jul-2014 Alan Viverette <alanv@google.com> Remove old RippleDrawable constructor, fix new constructor

BUG: 16221737
Change-Id: I3807d8d7ccccf66568b9d5421cb9456fe818e2bf
ndroid/graphics/drawable/RippleDrawable.java
d66a8719b019e948d1dfbda2dace8762189e298f 11-Jul-2014 Leon Scroggins III <scroggo@google.com> Merge "Simplify Shader.setLocalMatrix."
ab87983a11e0bd2e08d752d86d5e945ea7d39a04 09-Jul-2014 Leon Scroggins III <scroggo@google.com> Simplify Shader.setLocalMatrix.

Previously, calling setLocalMatrix updated any Paint that had the
Shader attached. This depended on deprecated behavior in Skia. Use
new Skia APIs, and do not modify any Paints that use the Shader.

In addition, update callers to call setShader (again) after modifying
the Shader.

Sample app at ag/499573 for testing.

Depends on I673801444f0a8fd4f192b5b7effdde1aa83e702b in external/skia.

BUG:14315916
Change-Id: I3c3316377874e89fccc85afb864bc038b0ef3890
ndroid/graphics/Shader.java
ndroid/graphics/drawable/BitmapDrawable.java
4c33b9f7d4e64f9352e81e7fa14eafcfd440d3bb 11-Jul-2014 Alan Viverette <alanv@google.com> Merge "Remove material progress drawable"
d7f4a3cdd7a056b0618d170f20da710a4255c616 11-Jul-2014 Alan Viverette <alanv@google.com> Remove material progress drawable

BUG: 16138805
Change-Id: If8a8981e6ce741d563e870e3c09cbb5f39d30ac9
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/MaterialProgressDrawable.java
8d0d24f7a2b1a59060aa18926984491691d3c667 09-Jul-2014 ztenghui <ztenghui@google.com> Fix the render order to follow the XML file order.

So we put path and group into a big list, then use reflectiont to handle them
differently.

bug:16162141

Change-Id: I4c84dc952d5d9b49412301dcd6459395e21d3b31
ndroid/graphics/drawable/VectorDrawable.java
525a66b2bb5abf844aff2109bdc9ed819566bece 15-Jun-2014 Svet Ganov <svetoslavganov@google.com> Adding print preview.

This change adds the pring preview part of the new print UX. The
UI has two parts, the top section is the print options and the
bottom section print preview with a list of pages. The user can
interact only with one of them. When print options are expanded
they cover the preview content and a scrim is laid out on top of
the preview. Tapping the scrim collapses the print options. When
the user types in page ranges and closes the options to look at
the preview, the latter is updated to show only these pages. In
the list of pages the user can further prune pages by deselecting
them.

Change-Id: I0b23d2c598afe2a34400ccfa43e4e935af83c72f
ndroid/graphics/pdf/PdfRenderer.java
77491ac00c18cd81328a3942c78a64436be65618 05-Jul-2014 Nick Kralevich <nnk@google.com> Merge "Correct typo in doc comment"
8b333467fea995d9cec72dddfcba8fa19363ee32 05-Jul-2014 Nick Kralevich <nnk@google.com> Merge "fix trivial typo: s/meansure/measure"
55f765441c6cec6b2990de12f68d1c4ac444d35c 08-Jul-2014 ztenghui <ztenghui@google.com> Add constant state support back to VectorDrawable

At the same time, AVD is using a mutated version of VD.
And AVD won't support constant state.
Move the targetsMap down into constant state.

bug:16017895

Change-Id: I12fbc52a8719362adba9df1e0f97288decbd33b2
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
9e6f9924c421d801f28b773673511cd59859d843 08-Jul-2014 Alan Viverette <alanv@google.com> Fix layer drawable inflation

Change-Id: I2f16e3ddea919c33dc7b62f457a994e6d8a66e5b
ndroid/graphics/drawable/LayerDrawable.java
13d965485e5ca1355071eb0f04c4cd2683c371bf 08-Jul-2014 Alan Viverette <alanv@google.com> Fix build

Change-Id: I20f3ae19bd6d7cdc6dd6b9e947bdfea38893a167
ndroid/graphics/drawable/ColorDrawable.java
8e5e11b99fac942122ee2d6cdd30af51564861ae 07-Jul-2014 Alan Viverette <alanv@google.com> Handle configuration changes in drawable attributes

Adds themeable attribute support to InsetDrawable, adds support
for attribute configuration changes to all themable drawables.

BUG: 16045735
Change-Id: I3dc62d28801760ac69d303be81b6c78bb9bb5aca
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
7c0517272ba2d97084739a14fea78641b265eb5d 08-Jul-2014 Alan Viverette <alanv@google.com> Fix getOutline() in ripple and layer drawables

BUG: 16134862
Change-Id: Ibcef20fc154ecc342344770f96fbd3d77d6fad26
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
2a0d4a1fffbd99e91bda19f3139625f9933035ca 07-Jul-2014 Alan Viverette <alanv@google.com> Merge "Update AnimatedStateListDrawable to work with Animatable drawables"
f456b1f078639a422f966ef2e9376cbd5ae3d274 04-Jul-2014 Alan Viverette <alanv@google.com> Update AnimatedStateListDrawable to work with Animatable drawables

BUG: 16016730
Change-Id: I6d02a1235c0aecd7e62f12226f3689372d043ddd
ndroid/graphics/drawable/Animatable.java
ndroid/graphics/drawable/AnimatedStateListDrawable.java
d1988a98ed69db8c33b77b5c085ab91d22ef3bbc 01-Jul-2014 Zhijun He <zhijunhe@google.com> Add RAW10 image format

- Add RAW10 format in ImageFormat
- Add ImageReader support for this format

Bug: 15989722
Change-Id: Ic38ae596d5a472e990389d1fa221a82bea97b715
ndroid/graphics/ImageFormat.java
617dca9242778257ab0f25f65f28796580feed1c 05-Jul-2014 Nick Kralevich <nnk@google.com> am 50c3c114: am 664ec0a6: am 77491ac0: Merge "Correct typo in doc comment"

* commit '50c3c114603b493d7814c83f96c8057e040e6c28':
Correct typo in doc comment
826504249dd04f608861a91bdd701bb211585c68 05-Jul-2014 Nick Kralevich <nnk@google.com> am 7ea31c67: am c43f3eb6: am 8b333467: Merge "fix trivial typo: s/meansure/measure"

* commit '7ea31c67f707be3fa208f93fa458068d57545e77':
fix trivial typo: s/meansure/measure
50c3c114603b493d7814c83f96c8057e040e6c28 05-Jul-2014 Nick Kralevich <nnk@google.com> am 664ec0a6: am 77491ac0: Merge "Correct typo in doc comment"

* commit '664ec0a6e6cedf47adc54f2e0cd8f1435d699b72':
Correct typo in doc comment
7ea31c67f707be3fa208f93fa458068d57545e77 05-Jul-2014 Nick Kralevich <nnk@google.com> am c43f3eb6: am 8b333467: Merge "fix trivial typo: s/meansure/measure"

* commit 'c43f3eb67bbf60af61b3cd18bc5b6a684c8744c6':
fix trivial typo: s/meansure/measure
24bea6a3ef53733ffd1622dfa0bdaeea0a74303a 02-Jul-2014 Jason Sams <jsams@google.com> Resolve conflicts with AOSP.

Change-Id: I2f1afdb83dcfc9078df5d3c2f13abacb6504d73d
ndroid/renderscript/ScriptIntrinsicResize.java
c054966b719c8a7255f7cf4120cca5050acb68bd 04-Jul-2014 Alan Viverette <alanv@google.com> Make optical insets actually work

Change-Id: I9fabf4cb939cc7a868f95580e7229745acde0418
ndroid/graphics/Bitmap.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
57ee620ced8caed1eb8651717f6a6d2d5f1f9a5b 05-Jun-2014 Leon Scroggins III <scroggo@google.com> Read premultiplied status from the SkBitmap.

Replace the Java variable with mRequestPremultiplied, to better
reflect what it represents. In both native and Java, the SkBitmap
is used as the decision maker of whether a Bitmap is premultiplied.
When changing other settings, mRequestedPremultiplied is used to
determine whether it should be premultiplied (if the new config/
hasAlpha-ness etc supports it).

ChooseFromColorProc now reads both the colortype (instead of the
deprecated Config) and alphatype on the SkBitmap. Same with
ChooseToColorProc. In the process, this caught a bug, where the
wrong procs were being used for Index8.

Replace instances of SkBitmap::Config with SkColorType where I
was already changing code.

Use the new versions of setConfig/allocPixels that take an SkImageInfo
as a parameter.

Document isPremultiplied's return value for ALPHA_8.

BUG:13618134
Change-Id: I91fc1f1e46e9294364b1af0ab4bdb37c68d7058e
ndroid/graphics/Bitmap.java
9a347f199284ad8bcb8a81bfbd306fe0b1a710ba 28-Jun-2014 Chris Craik <ccraik@google.com> Initial replacement of setOutline() with ViewOutlineProvider API

bug:15283203

A View's outline is now managed by its outline provider. This means
the outline is automatically requeried when needed (e.g. drawable
updates or resize), with customizable querying behavior.

Also adds 'isFilled' property to outline, to be used for hinting
shadow overdraw avoidance.

Change-Id: Ie137548fa850f1ff7863ab2f660d05145c2ad11e
ndroid/graphics/Outline.java
ndroid/graphics/drawable/Drawable.java
9e31cfa92c03451eb9779f08f27bb1ab2b646f68 01-Jul-2014 ztenghui <ztenghui@google.com> Merge "Use AnimatedVectorDrawable for progress bar."
9cb5b4c2d93acb9d6f5e14167e265c328c487d6b 27-Jun-2014 ztenghui <ztenghui@google.com> Use AnimatedVectorDrawable for progress bar.

Change-Id: I419197ef38a611757f27ca3192350ad4bd403875
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
6ae2d7cefafd7fbf5e7c8d7d3c1869e66056b7f8 30-Jun-2014 Alan Viverette <alanv@google.com> Don't call deprecated RippleDrawable constructor

BUG: 15972806
Change-Id: If0973eed2da4708312a1320be4dd0b314157bc9a
ndroid/graphics/drawable/RippleDrawable.java
3e1585e05ddb0fd60033a5603e330b8ab1f69303 28-Jun-2014 Chris Craik <ccraik@google.com> Add outline support to InsetDrawable

bug:15933107
Change-Id: I3341417dc197a751442d2b4c2645a1520db41095
ndroid/graphics/drawable/InsetDrawable.java
9550acf1e964bb70f64681957878ce4543c9d563 27-Jun-2014 Alan Viverette <alanv@google.com> Merge "Require color in RippleDrawable constructor, fix documentation"
7275abde37f0ad2df50e78de2fee1c0cfeb9cd92 27-Jun-2014 Alan Viverette <alanv@google.com> Require color in RippleDrawable constructor, fix documentation

Marks old constructor for removal and emits LOG_E when used.

BUG: 15808263
Change-Id: Iae4f3237261541cb04f42343351b3fc0ac4929ac
ndroid/graphics/drawable/RippleDrawable.java
100a2d1fc67d79d19afa0c00830350a5d4ab0c59 27-Jun-2014 Alan Viverette <alanv@google.com> Clean up AnimationDrawable.setVisible() state management

BUG: 15823683
Change-Id: Ied0d476956c246bdfda66219aaa896f2ef58f0bd
ndroid/graphics/drawable/AnimationDrawable.java
493f2e11909e2d5839ca81ddc66d48d538192478 26-Jun-2014 Dan Stoza <stoza@google.com> SurfaceTexture: Allow creation in detached mode

Adds a constructor that doesn't require a GLES texture name and sets
up the SurfaceTexture in detached mode.

Bug: 15616428
Change-Id: I375495f481bfbe43b3830ab7d124cef8f1be0ac6
ndroid/graphics/SurfaceTexture.java
3660789f06c5fbcb81e6c7c79612048bff8f0f66 26-Jun-2014 Raph Levien <raph@google.com> Switch all text layout to Minikin

This patch switches all text layout operations to use Minikin, removes
the USE_MINIKIN #ifdef, and deletes some of the code that was only used
in the old TextLayout path (although some more refactoring remains).

Change-Id: I51b5c4e2bb46cfd9d204c12b9f16f135c769f5b5
ndroid/graphics/Typeface.java
d194262f53799ef7cd660729a8f1027263f73e27 26-Jun-2014 Raph Levien <raph@google.com> Delete Paint.getTextGlyphs()

The Paint.getTextGlyphs() method was used for testing the old Arabic
shaper and is entirely obsolete. Note that this is the very last
dependency (other than some enums in the header) for the old TextLayout
code path.

Change-Id: I7b596f0c0942ed50987fc8e0478cd93e667f1f9e
ndroid/graphics/Paint.java
58945975b256739fdfe78435d7846d1e2fd29da1 24-Jun-2014 Chris Craik <ccraik@google.com> Outline support in DrawableContainer and LayerDrawable

bug:14445484
Change-Id: I26a45b0115b976d0dbcc351a208dc0956bc52e96
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/LayerDrawable.java
22594f097242d9de0a538a9b8142f77da9df7ebd 21-Jun-2014 Alan Viverette <alanv@google.com> Add tileModeX/Y attrs to BitmapDrawable, tint to ShapeDrawable

Change-Id: I1c9efe39bfd5286230cee8354822db81f05186e4
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
f2d0020d9335cdaec2566012cb3e2c10b7db3a22 23-Jun-2014 ztenghui <ztenghui@google.com> Merge "Make AnimatedVectorDrawable public."
7e7ea9da6785a8345feffb754ddcb55b16cf69c9 20-Jun-2014 ztenghui <ztenghui@google.com> Make AnimatedVectorDrawable public.

Clean up some useless VectorDrawable functions.
Add comments, too.

Change-Id: I8cc2165d14d09fd71f5830c4f61f9e8ac1d7c8da
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
eb034fbca40006c55db143047eb628c4b657730a 09-Jun-2014 ztenghui <ztenghui@google.com> AVD now support path morphing.

Basically extended the ValueAnimator to support a new type: pathType.
Add the PathDataEvaluator internally to interpolate path data.
Update test to show the path morphing.

Change-Id: I89db0199cbc12e3041790a6115f3f50b80213cdb
ndroid/graphics/drawable/VectorDrawable.java
3aff2a0813ad77fd41b39b6a636faf2de6d78acc 20-Jun-2014 Chet Haase <chet@google.com> Avoid resetting gradient state when not actually rebuilding it

Previous logic in GradientDrawable around rebuilding the gradient path
was incorrect, but it happened to work because of when it was called
(after ensureValidRect() in the draw() method). Further reliance on this
logic outside of the drawing cycle (in the new getOutline() method) caused
the side-effect to surface as we now clear the dirty flag without actually
rebuilding the gradient.

Fix avoids resetting the flag outside of ensureValidRect() where it belongs.

Issue #15508378 Quantum ui having issues with viewing comments on facebook app

Change-Id: Ia944d3de7e3c0920fed040188e8c1cc1bcce498d
ndroid/graphics/drawable/GradientDrawable.java
02aefd779e6b4077a62ca4819499a01771837945 21-Jun-2014 ztenghui <ztenghui@google.com> Merge "AVD now support path morphing."
9cd14fc710cf81cc6d1c47d599abe349d3aa87dc 20-Jun-2014 Alan Viverette <alanv@google.com> Add support for tint attribute in VectorDrawable

Fixes NPE from previous change. Also fixes docs reference in TypedArray.

BUG: 15375203
Change-Id: Icf3b5759780276b0875a4fb70b29522ab7c8cb90
ndroid/graphics/drawable/VectorDrawable.java
5ff885cd3b8013da4d122127bcf9c30b95e3aeb2 20-Jun-2014 Dianne Hackborn <hackbod@google.com> Revert "Add support for tint attribute in VectorDrawable"

This reverts commit ab41ea17e6b0407fa76bc9f9183190a9bbc7f560.

Was causing system UI to crash.
ndroid/graphics/drawable/VectorDrawable.java
e93c90126b7eb2753392c2ac8474db3dc574fd55 20-Jun-2014 Alan Viverette <alanv@google.com> Merge "Add support for tint attribute in VectorDrawable"
9a77cb92da2b7d3d2c513c9fbc24955fdc0e0693 20-Jun-2014 Alan Viverette <alanv@google.com> Add support for tint attribute in VectorDrawable

Also fixes docs reference in TypedArray.

BUG: 15375203
Change-Id: I8cd2f43bd73f50084e21e5b986af9dc1c1447ad6
ndroid/graphics/drawable/VectorDrawable.java
07c661e677b354c2298a2b81f19fd24e5ab1b0e0 20-Jun-2014 Alan Viverette <alanv@google.com> Put dither in GradientDrawable constant state

Previously the dither attribute would be dropped when cloning a
gradient drawable from constant state. Also fixes ShapeDrawable
theme extraction.

BUG: 15754194
Change-Id: I3071f5b8236cfa6acb549627a3dfac0618518dbf
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
580ecd4b2b6698d3597a32654dcd948fe69ebfdb 19-Jun-2014 Raph Levien <raph@google.com> Merge "Simple implementation of drawPosText"
3f0d6167227d6d2cdd85f7718d92db859b443e92 18-Jun-2014 Raph Levien <raph@google.com> Simple implementation of drawPosText

The existing implementation of drawPosText is broken in various subtle
ways, in any case doesn't work with Minikin. This patch just implements
it by drawing a separate run for each Unicode character, which should
have the least surprising results for complex scripts such as Khmer.

Part of b/11750374 Resolve TODO items for Minikin

Change-Id: I874ae3c163f0cbe3cdf0160564fab04305aed5aa
ndroid/graphics/Canvas.java
cf4832f69c8786b098ce18c24319021f8cd6733a 17-Jun-2014 ztenghui <ztenghui@google.com> Add path support into xml files for PathInterpolator and ObjectAnimator.

The test case is showing that AnimatedVectorDrawable is able to use path to
define time interpolator and object movement now.

Change-Id: If3c0418265d0fd762c8f5f0bb8c39cce3ad34ef3
ndroid/graphics/drawable/VectorDrawable.java
88dc8f1e41d3bd4bb49d89fe9c71476f08175253 19-Jun-2014 Alan Viverette <alanv@google.com> Merge "Fix clamped starting position, seek bar hotspot bounds"
304624100b363137913d1d910690fc83872e41c3 19-Jun-2014 Alan Viverette <alanv@google.com> Fix clamped starting position, seek bar hotspot bounds

BUG: 15720430
Change-Id: I11d40c747ea1a3665e9e2058d95dda1bc8a547ab
ndroid/graphics/drawable/Ripple.java
8de1494557cf1d00c1c3fce439138a28de7fbd61 19-Jun-2014 Alan Viverette <alanv@google.com> Fix switch & slider anim, make View drawable hotspot API public

BUG: 15287810
Change-Id: Ic7a9549dc1ba8afd07e9a196371ed349a54aaf2f
ndroid/graphics/drawable/DrawableContainer.java
e3c433aa457138425e514494e4d06590076a1d07 19-Jun-2014 Alan Viverette <alanv@google.com> Persist selector on ListView and GridView layout

BUG: 15472031
Change-Id: I0d10be3e0cf8a4d7580bd834e432c1c15fc481f5
ndroid/graphics/drawable/RippleDrawable.java
b9db146d0da2d10c0f2ade631d01d11a9fb9882d 18-Jun-2014 ztenghui <ztenghui@google.com> Merge "Improve constant state for VectorDrawable"
16c1bd5db8f4f18e1eee8b19006bba5f06a88123 16-Jun-2014 ztenghui <ztenghui@google.com> Improve constant state for VectorDrawable

Now inflation will not cause duplicated constant states.
And update tests.

Change-Id: I66861e5451c4c10d18756e8522546ea1cb938a55
ndroid/graphics/drawable/VectorDrawable.java
5adf8ee451085ed6106b7dbadc6d8dcd9d90722b 18-Jun-2014 Alan Viverette <alanv@google.com> Fix bitmap tinting

BUG: 15716407
Change-Id: I4008c9763fedc2f716040cd3f73ad79d77343960
ndroid/graphics/drawable/BitmapDrawable.java
c802c8cda234129c1ce3c7a939bd68a1d5813ce6 18-Jun-2014 Raph Levien <raph@google.com> Merge "Implement drawTextOnPath with Minikin"
9d2b5e1930bfc4b1da1c865843c247c708ea1565 16-Jun-2014 Raph Levien <raph@google.com> Implement drawTextOnPath with Minikin

This patch contains an implementation of drawTextOnPath for both
software and hardware Canvas using Minikin for text layout. One of the
steps for switching all remaining text operations to Minikin so the old
TextLayout and Skia fallback fonts mechanisms can be deleted.

Bug: 11750374 Resolve TODO items for Minikin
Change-Id: I06bfe74a101fa1dcdfc38f530f7194d71e522a85
ndroid/graphics/Canvas.java
bc8bd76bc707cede75638ca299feb4a8d8698f3b 18-Jun-2014 Derek Sollenberger <djsollen@google.com> Merge "Refactor android.graphics.Picture JNI bindings."
911743652b597057a1bd7ef8a921e9ff8dce0f4a 17-Jun-2014 Alan Viverette <alanv@google.com> Add attributes and accessors for tinting View drawables

Also cleans up handling in setters for managed drawables.

BUG: 15391544
Change-Id: Idc08f7eaea0050feb6403566985a6d58185b81f8
ndroid/graphics/drawable/Drawable.java
24609581330bc350f797179e3c1a59789c645ec2 13-Jun-2014 Antonio Calabrese <acalabrese@google.com> Added primitive parameters to various functions requiring rectangles.

Change-Id: I5a2678fa989f0ff34404b8236787a8153b05f113

bug:14322352
ndroid/graphics/Canvas.java
ndroid/graphics/Path.java
4b0959d8db20c08ab1fed37f397b303af229162b 12-Jun-2014 Derek Sollenberger <djsollen@google.com> Refactor android.graphics.Picture JNI bindings.

This is the first CL in a series of CLs to refactor the Graphics JNI bindings.

bug: 15672762
Change-Id: I1455fa1330c7426407c06eeaad81ad37a57373b1
ndroid/graphics/Picture.java
a4649d95fe2da8c7364f33ca39d1ff5ff6ce8623 17-Jun-2014 Anish Athalye <aathalye@google.com> Merge "Implement Paint.breakText() using Minikin"
a7aa1b0aa566b2ff310cb89fbc9437de4819f583 12-Jun-2014 Anish Athalye <aathalye@google.com> Implement Paint.breakText() using Minikin

Change-Id: I36cee2d840ce1bd24a9a06f0c680880396b7398a
ndroid/graphics/Paint.java
466cd7a2a65b1204c07ff5eaeebb7decc86a1fff 17-Jun-2014 Raph Levien <raph@google.com> Merge "Clean up dirFlags / bidiFlags confusion"
051910b9f998030dacb8a0722588cc715813fde1 16-Jun-2014 Raph Levien <raph@google.com> Clean up dirFlags / bidiFlags confusion

The dirFlags and bidiFlags enums are distinct, and have different
meanings. The former is a determined direction for a run of text, while
the latter is a request for the bidi algorithm. They have been used
interchangeably, and this has caused some problems, notably running the
bidi algorithm needlessly when the direction for a run is already
determined.

This patch cleans up the confusion, by always naming each occurrence
explicitly "boolean isRtl" or "int bidiFlags" (the previous code often
just used "int flags", which added to the confusion), and converts
between the meanings when a function takes an isRtl argument but passes
it to another function expecting bidiFlags.

Fixes b/15089607 Clean up bidi flag mess

Change-Id: I410b6604376e853dd12c255e7f5a9d2b9a310dd9
ndroid/graphics/Canvas.java
ndroid/graphics/Paint.java
a2992f44bc3787f37c3cad98f79dcfe67fb1aa81 17-Jun-2014 Alan Viverette <alanv@google.com> Fix tint filters in NinePatchDrawable and ShapeDrawable

BUG: 15678325
Change-Id: I57066e7a44498c88a270c76b7880f36825a25bb8
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
611c1ff0de00b636ca0f9d5500c91d75b9c5257a 16-Jun-2014 Alan Viverette <alanv@google.com> Fix ShapeDrawable constant state and theming

Change-Id: I085d7705b63ec5f94e9b9fb5ece85ae3c7d39512
ndroid/graphics/drawable/ShapeDrawable.java
b3c56086d802ae28888dd97ba1f49bd6cee0b673 14-Jun-2014 Alan Viverette <alanv@google.com> Add support for setTint in all Drawables, clean up lint warnings

Change-Id: I962089ca59684cef28cb4a648d4a91e542bdf5d4
ndroid/graphics/drawable/Animatable.java
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/MaterialProgressDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/PaintDrawable.java
ndroid/graphics/drawable/PictureDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
ndroid/graphics/drawable/TransitionDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
cda212d79d449468384cc7744878b8c99984059c 14-Jun-2014 Jeff Brown <jeffbrown@google.com> Revert "Add support for setTint in all Drawables, clean up lint warnings"

This reverts commit 381f83b613f7b6e71180983dbb992ff62f8dd6e3.

Change-Id: I1181f436c647216ac46162260d9d886197b24568
ndroid/graphics/drawable/Animatable.java
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/MaterialProgressDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/PaintDrawable.java
ndroid/graphics/drawable/PictureDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
ndroid/graphics/drawable/TransitionDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
4b17118aca1e67963254ab83504b0753a3eac7ce 14-Jun-2014 Alan Viverette <alanv@google.com> Add support for setTint in all Drawables, clean up lint warnings

Change-Id: Ia38b9d3e9d5c0072382050e815bdd9232b672e50
ndroid/graphics/drawable/Animatable.java
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/MaterialProgressDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/PaintDrawable.java
ndroid/graphics/drawable/PictureDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
ndroid/graphics/drawable/TransitionDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
f39fa3761212600b0b0ef8be0bde3c364e3e18d6 13-Jun-2014 Alan Viverette <alanv@google.com> Merge "Only start AnimationDrawable on visibility change when animating"
3aedfc2192a89845a32027ba7de917c6142797ad 13-Jun-2014 Christian Robertson <robertsonc@google.com> am a99b2404: Merge "Tunings for touch ripple animations" into lmp-preview-dev

* commit 'a99b2404caae8f29cd2bf3b13c8a41b320205aee':
Tunings for touch ripple animations
97fb0aa5090858705b66bfc4c05e7530c5d3d6b1 13-Jun-2014 Alan Viverette <alanv@google.com> Only start AnimationDrawable on visibility change when animating

BUG: 15532494
Change-Id: I5663fc86e64c34db84385238865e08297fb1f817
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/AnimationDrawable.java
4b65f0ebee11dd95cd4a03329bfa135ec5582bad 12-Jun-2014 Christian Robertson <robertsonc@google.com> Tunings for touch ripple animations

Added a log based interpolator (it's faster in the beginning and smoother
at the finish than the decelerate interpolator)

Scaled the timing and opacity of the falloff ripple based on the size
of the outer bounding radius. Backing circles aren't as apparent for
Smaller touch targets.

BUG: 15591274
ndroid/graphics/drawable/Ripple.java
88b00784684d7b706c7b0c4e833b1d67d73358b9 12-Jun-2014 Robert Phillips <robertphillips@google.com> Merge "Update Picture documentation Enhanced comment"
17a8bfc38a565ae96f43d36b223779be840bb50c 03-Jun-2014 Leon Scroggins III <scroggo@google.com> In Bitmap.reconfigure, update the pixelref's info.

This fixes CTS tests which are crashing on an SkASSERT due to a
mismatch of SkImageInfo between the SkPixelRef and SkBitmap.

Also directly call ref() and unref() instead of SkSafeRef/SkSafeUnref,
since we would already crash if the SkPixelRef in question was NULL.

Also if the user attempts to reconfigure to 4444, use 8888 instead.

Change-Id: I473ef225c6cd1c92d67ae103c53c6cff0dad92de
ndroid/graphics/Bitmap.java
e74b853d9f2dd698a0a7635c1b7125fc3cb64b66 11-Jun-2014 Adrian Roos <roosa@google.com> resolved conflict for merge of 3ca33b70 to master

Change-Id: I5226015ca7cef030586349cc698a46e458ac788e
e5e92602a41a4ddc7b42cd1c171a0edfbd09b8da 03-Jun-2014 ztenghui <ztenghui@google.com> Add AnimatedVectorDrawable

Currently as a hidden class.
It can support many the animations now as far as ObjectAnimator and
hierarchical group can support.
And we don't have path morphing yet.

Also support the Animator / Interpolator inflation from Context and Resources.

Change-Id: I948bbdf7373ad291171eed0b497959dce8c2edf3
ndroid/graphics/drawable/AnimatedVectorDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/VectorDrawable.java
a4eab42fe437bff3f8ee9dde264579067ea5cdbd 10-Jun-2014 Alan Viverette <alanv@google.com> Change ripple tint to color, remove tintMode

Also fixes double ripple on list preferences, missing ripple on up
button, and adds the Toolbar style to public. Further improves
ripple performance.

BUG: 15523923
BUG: 15473856
Change-Id: I5e8bf417368b60fcc33c80852e12f27b8c580774
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/RippleDrawable.java
3b77eb33a510b68f501694483621917bb6b5b8c5 10-Jun-2014 Alan Viverette <alanv@google.com> am 28104981: Merge "Optimize use of layers in ripple, update dialog styling" into lmp-preview-dev

* commit '28104981ea36e96e0c85b735b91583fb344b85c5':
Optimize use of layers in ripple, update dialog styling
ff7215aa0cb28a4815126b056f34b2bd29e5c651 06-Jun-2014 Antonio Calabrese <acalabrese@google.com> Annotated the drawing commands.

Change-Id: I4eeb35ecaf4aa16e0924b5215351fce79c68369b
ndroid/graphics/Canvas.java
1b6e856e6f9dab4464e3c556b2f68527439fc329 09-Jun-2014 Alan Viverette <alanv@google.com> Optimize use of layers in ripple, update dialog styling

BUG: 15474733
BUG: 15473856
Change-Id: I7c17865c7b2d4aad0fc3660ffac90e9f7ce8fda9
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/RippleDrawable.java
830960cce032a1b0dc0cf54bcc44ffa339388c21 07-Jun-2014 Alan Viverette <alanv@google.com> Material theme

BUG: 15467097
Change-Id: I15191362e104a902895418fc615892c21db64c35
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/MaterialProgressDrawable.java
ndroid/graphics/drawable/QuantumProgressDrawable.java
ndroid/graphics/drawable/Ripple.java
1abd798db9a9918d9b941557e3152b449c7a659e 06-Jun-2014 Alan Viverette <alanv@google.com> Merge "DO NOT MERGE Material theme" into lmp-preview-dev
3cb07a462be293634e6a83ea6c82f3647cd17dad 06-Jun-2014 Alan Viverette <alanv@google.com> DO NOT MERGE Material theme

BUG: 15467097
Change-Id: I15191362e104a902895418fc615892c21db64c35
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/MaterialProgressDrawable.java
ndroid/graphics/drawable/QuantumProgressDrawable.java
ndroid/graphics/drawable/Ripple.java
27d3e6d06f2cc86f115652275791a988e9a758e5 06-Jun-2014 svetoslavganov <svetoslavganov@google.com> Current page not updated when closed

Change-Id: I19845f179f9e712f0213c845c795d5e2c9ea4e29
ndroid/graphics/pdf/PdfRenderer.java
6e083aeaadd2b78e169b3d696ad937aaf02a8af2 06-Jun-2014 Alan Viverette <alanv@google.com> am 58248d04: Merge "Update drawables to fix CTS test failures" into lmp-preview-dev

* commit '58248d049e8b17dd60e4e94e784c09b00e0a7e9d':
Update drawables to fix CTS test failures
06318a0869b9f214bc97cabf1d2b6854acb6431b 06-Jun-2014 Alan Viverette <alanv@google.com> Update drawables to fix CTS test failures

Change-Id: I78617aedab450f5bc18807c03d07ee776584ece0
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
0622a4c8b80996258bfb7a3ca4effed32fcf18d3 06-Jun-2014 Alan Viverette <alanv@google.com> am 7553d48d: Merge "Fix default stroke width and NPE for line with no stroke width" into lmp-preview-dev

* commit '7553d48d28683b5b21e964d837a3f3c0f66af9ad':
Fix default stroke width and NPE for line with no stroke width
3b983a74c6bac40aad191dfcfbed930cd25a9a01 05-Jun-2014 Alan Viverette <alanv@google.com> Fix default stroke width and NPE for line with no stroke width

Also fixes restart on visiblity change in AnimationDrawable

BUG: 15437284
Change-Id: I698e7ffb11489061a38fbcd5cea10ba11a6abb34
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/GradientDrawable.java
dcc64a4e6b96d15b8b966dcb62f29a370e562271 22-May-2014 Robert Phillips <robertphillips@google.com> Update Picture documentation
Enhanced comment

Given that the SkPictures should no longer have unbalanced saves and restores
there should be no inadvertent leakage of matrix or clip state.

Note that the existing documentation was vague enough that no real substantive
changes were required to make it match the new behavior.

Change-Id: Ic2d440b3e6318ec9687c607caba05de928e08503
ndroid/graphics/Picture.java
c740ffa3c6a5cf8ab9739757aa3d0265c66727eb 05-Jun-2014 Alan Viverette <alanv@google.com> am c1462be8: Merge "Update ripple spec, fix ripple mask, rotate progress drawable" into lmp-preview-dev

* commit 'c1462be80a2581ddd522bf24d91ba183f166de80':
Update ripple spec, fix ripple mask, rotate progress drawable
b996d809bf10a9ad1f6f6be790d0261fe1565f3b 04-Jun-2014 Alan Viverette <alanv@google.com> Update ripple spec, fix ripple mask, rotate progress drawable

Change-Id: I4fc155bf2f12d9f324c354dee81479f9cddafac4
ndroid/graphics/drawable/QuantumProgressDrawable.java
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/RippleDrawable.java
f8423bae17dfb2a73a4f4adb40aaced76d42f0a0 04-Jun-2014 Raph Levien <raph@google.com> am 8fad12dc: Merge "Fix incorrect getStringBounds (Minikin)" into lmp-preview-dev

* commit '8fad12dc66f47af2fd394f44858802d10cf110f1':
Fix incorrect getStringBounds (Minikin)
c5dc0370086a7f1c9a2d0d34321580648a0836ea 04-Jun-2014 Raph Levien <raph@google.com> am aef648f4: Merge "Better Minikin integration" into lmp-preview-dev

* commit 'aef648f405a6f2ed2e523e69cd6f1da884f4b9dd':
Better Minikin integration
3b1e08fc9fc8c8eb557a260ae9b8e809864b471a 04-Jun-2014 Alan Viverette <alanv@google.com> am 62ea9554: Merge "Temporary drawable for Quantum progress indicator" into lmp-preview-dev

* commit '62ea9554753820df25343e52e0dcab090e5755b5':
Temporary drawable for Quantum progress indicator
8a3e0a5c0b9ec620e69bcba40a419eca74cd0e6c 04-Jun-2014 Alan Viverette <alanv@google.com> am 15fabac3: Merge "Fix build, fix Drawable loop" into lmp-preview-dev

* commit '15fabac37d6c1ce575c66338b4a51b2f8d8afb96':
Fix build, fix Drawable loop
22b893fde125ea6620563c91aab7a28dd68a1f73 04-Jun-2014 Alan Viverette <alanv@google.com> Merge commit '096d52fb' into manualmerge

Conflicts:
api/current.txt

Change-Id: Iaf1f9172a73e74885475c30ffefcb7d0e32a5883
5398aec7001b37e7de48d67f8133d0303451678a 04-Jun-2014 Alan Viverette <alanv@google.com> am a929b2d4: Merge "Set starting value on ripple exit animation" into lmp-preview-dev

* commit 'a929b2d49386cfb3cdf4e0eaecca61184fa0c857':
Set starting value on ripple exit animation
d9ec3dafa032e8679f010bc1433aacf67b9da051 04-Jun-2014 Alan Viverette <alanv@google.com> am b1c7f7f5: Merge "Fix NPE when ripples are canceled due to visibility change" into lmp-preview-dev

* commit 'b1c7f7f538e8c4947f75406cc6089f6680f59a31':
Fix NPE when ripples are canceled due to visibility change
676f92e9a77a547b80a3a22bb3d4e4d0d2aa0bed 04-Jun-2014 Florin Malita <fmalita@google.com> Merge "Canvas JNI cleanup."
95d49149cc7fff87a18449fa661454c1b5ddbd30 03-Jun-2014 Florin Malita <fmalita@google.com> Canvas JNI cleanup.

As pointed out in a previous patch review, some native Canvas methods do not
receive a native canvas handle and instead have to use GraphicsJNI to query
the object mNativeCanvasWrapper field.

To avoid the extra JNI call, this change adds the missing Java wrapper
methods and ensures that all native calls are passed efficient native
handles.

Also, some native methods are consolidated: save, saveAll -> save,
clipRect* -> clipRect.

Change-Id: I2eae4a633f6a463d9fbae2ca632661acc8b5cfc3
ndroid/graphics/Canvas.java
a578ab00c41e5ac6cc4b69ff4ba61d2c94c5e47c 04-Jun-2014 Leon Scroggins III <scroggo@google.com> Merge "Ignore inPurgeable and inInputShareable."
854363e3d2fb2a9e41d8719f4a2f0f8b89440a46 04-Jun-2014 Raph Levien <raph@google.com> Fix incorrect getStringBounds (Minikin)

This patch wires up getStringBounds to do the layout with Minikin to get
accurate bounds, and with the correct typeface. It fixes bug 15416575
"getStringBounds gives wrong result in Minikin".

Change-Id: I5c020bc372acb1d785a33c3c296239c151bd8c87
ndroid/graphics/Paint.java
38bd7b9c4dc8af0d37e4a353e69a5bb130edec07 04-Jun-2014 Raph Levien <raph@google.com> Merge "Better Minikin integration" into lmp-preview-dev
f2114d5646194100242206b267ddd6e7194b7da9 02-Jun-2014 Raph Levien <raph@google.com> Better Minikin integration

This patch improves the Minikin integration in a number of ways,
including:

Software rendering does text decorations and handles alignment
correctly. This fixes bug 15139067 "Centered text isn't working".

Paint implements getTextPath. This fixes bug 15143354 "Text rendering in
Maps Navigation wrong typeface?"

Also a bit of refactoring, since there was duplicated code for iterating
font runs that's now a static method in MinikinUtils.

Change-Id: I4cfdb2c0559982376348325a757d95235fab1768
ndroid/graphics/Paint.java
bb938107b7ef1f6660b9f9cbafacd9d0a427bedc 04-Jun-2014 Alan Viverette <alanv@google.com> Merge "Temporary drawable for Quantum progress indicator" into lmp-preview-dev
3567140b04907790fefc479be7eec8115ea3a927 04-Jun-2014 Alan Viverette <alanv@google.com> Temporary drawable for Quantum progress indicator

Also cleans up unused 20dp spinner drawables.

Change-Id: I69aba84eca9f9e8d44a4237d894015caeb3d2308
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/QuantumProgressDrawable.java
a48e7b5500d38320592cec034619323781112401 04-Jun-2014 Alan Viverette <alanv@google.com> Merge "Fix build, fix Drawable loop" into lmp-preview-dev
55a54e17df5d77d83d5221345eaea65f1a6094b9 04-Jun-2014 Alan Viverette <alanv@google.com> Merge "Update theme colors, fix EditText state transition" into lmp-preview-dev
bd4d1c31f3bcee427f6664d4002f4d111083647f 04-Jun-2014 Alan Viverette <alanv@google.com> Merge "Set starting value on ripple exit animation" into lmp-preview-dev
910a0b4d02d0be3e164a32825785fa3d02fe55a2 04-Jun-2014 Alan Viverette <alanv@google.com> Fix build, fix Drawable loop

Change-Id: I524b7f40c700ebe601fdbe80644a46e90ab2bba0
ndroid/graphics/drawable/Drawable.java
dcf7b59f845297c6e96950615e439d96ce3fb739 03-Jun-2014 Alan Viverette <alanv@google.com> Update theme colors, fix EditText state transition

BUG: 11218747
BUG: 15200201
Change-Id: I94368897ea9466ae971b25fc80d6ca43433aadd5
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
a8cb975aa7c91d0330ac6589884ea9adb3022bc1 03-Jun-2014 ztenghui <ztenghui@google.com> Merge "Handle the alpha in the group setting and fix the fill issue."
0aa39dc2dcfca20f4d9cbeb1699d48a4808f2c70 03-Jun-2014 Leon Scroggins III <scroggo@google.com> Ignore inPurgeable and inInputShareable.

These are discouraged anyway, due to the fact that using them may
result in decoding on the UI thread. Now that they are ignored, the
images will still be decoded; they just will never have their
memory purged, meaning there could be a RAM penalty. This is
acceptable, since apps are encouraged to instead use inBitmap to
manage bitmap memory.

This incidentally fixes BUG:15390468 by converting purgeable index8
(e.g. gif) images to non purgeable.

Change-Id: Ieaf3ab25d28d93fb94bdaea1eb3bd762f163b09a
ndroid/graphics/BitmapFactory.java
2af745b56cf4bdfdd9c05d90a4ccc740bf77a4fe 31-May-2014 ztenghui <ztenghui@google.com> Handle the alpha in the group setting and fix the fill issue.

The fill used to be dafault as "none".
Now it is default to opaque black, which is consistent with svg now.
So it is better to always set the fill value.

bug:15288554

Change-Id: I07ac41c5adc77665e66e52f2c0220139586fb09b
ndroid/graphics/drawable/VectorDrawable.java
02a078d088cabe694a07e6f916fe8a0eda58f74c 03-Jun-2014 Alan Viverette <alanv@google.com> am 25931ade: Merge "Clean up drawable theming APIs" into lmp-preview-dev

* commit '25931adee5ba954220190f48901bb66c8c9dd462':
Clean up drawable theming APIs
690d45157d01088778e4da398c31575be5aa35ce 03-Jun-2014 Raph Levien <raph@google.com> am faa91203: Merge "Support fallbacks for custom typefaces (Minikin)" into lmp-preview-dev

* commit 'faa912037ca4895eb99155a4a53354435ee413c2':
Support fallbacks for custom typefaces (Minikin)
7a98f74438ac8da8bed5ebdb54c70ce24557a9d8 03-Jun-2014 Alan Viverette <alanv@google.com> Fix NPE when ripples are canceled due to visibility change

BUG: 15406248
Change-Id: I63ce42fef8e1614372ee4a82e45eb15e8bbe1fe3
ndroid/graphics/drawable/RippleDrawable.java
5e9a42588e986a7a2ab12de5d70adff5f2db9c5a 03-Jun-2014 ztenghui <ztenghui@google.com> Merge "Add the tree hierarchy for the group"
840ff809628127f026620ed127d7f8e134a75e63 03-Jun-2014 Alan Viverette <alanv@google.com> Set starting value on ripple exit animation

Change-Id: I2eca91c02ea059591a2ee0c75c5355f0ecd5a4be
ndroid/graphics/drawable/Ripple.java
4d24caf1dec2babf273b18c99638fe2a0635ced4 29-May-2014 ztenghui <ztenghui@google.com> Add the tree hierarchy for the group

bug:15288554

Change-Id: I7caedb8466d078a0d9a6148e00d02eded4a4d234
ndroid/graphics/drawable/VectorDrawable.java
5a4af17e27cf0be613e42d44e421d532efb7a7f7 03-Jun-2014 Alan Viverette <alanv@google.com> Merge "Clean up drawable theming APIs" into lmp-preview-dev
6dbe51b50e82057af4d29882889444d22ac19c9c 03-Jun-2014 Alan Viverette <alanv@google.com> Clean up drawable theming APIs

Removes APIs for themed creation of a drawable from a stream, since
that doesn't involve any inflation. Also cleans up tinting methods
left over from previous clean up.

BUG: 15089957
Change-Id: I2af7aa9a6d351ae61b33ee1216c674fae1bffe11
Signed-off-by: Alan Viverette <alanv@google.com>
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/LevelListDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
596f0b1a03c1d733697f89757bcf3c80b9900c78 03-Jun-2014 Raph Levien <raph@google.com> Merge "Support fallbacks for custom typefaces (Minikin)" into lmp-preview-dev
d573794d83a049fe59e289944f0cd77406dd776a 02-Jun-2014 Raph Levien <raph@google.com> Support fallbacks for custom typefaces (Minikin)

This patch adds the fallback font list to custom typefaces created from
files and assets, as well as those created by name. This is a fix for
the deskclock half of bug 15139067 "Centered text isn't working".

Change-Id: I0cc60951953dfb73817a98ddfee5713f0387ee90
ndroid/graphics/FontFamily.java
ndroid/graphics/Typeface.java
57f285d3ab50571a8008666da9c8bac4c43eb303 02-Jun-2014 Alan Viverette <alanv@google.com> am 73d37038: Merge "Fix null paint in GradientDrawable, make default values explicit" into lmp-preview-dev

* commit '73d370389338b97f801631182bd9a650b42f9a1b':
Fix null paint in GradientDrawable, make default values explicit
08847c83448558fbe2dfb8290d2ba119f9c0be18 02-Jun-2014 Alan Viverette <alanv@google.com> Merge "Fix null paint in GradientDrawable, make default values explicit" into lmp-preview-dev
9ec2eabe5ae9b17064412833ae11b113da453b75 02-Jun-2014 Florin Malita <fmalita@google.com> Merge "Add a native Canvas wrapper."
71b2fbde5601b2347992c4e489d6dfe5f2c777e1 02-Jun-2014 Alan Viverette <alanv@google.com> Fix null paint in GradientDrawable, make default values explicit

BUG: 15237001
Change-Id: I80844919b910163ed986257efb4b6f8fb62eaf6a
ndroid/graphics/drawable/GradientDrawable.java
52a557fae5a575885fb7694764d82846361adcf6 02-Jun-2014 Alan Viverette <alanv@google.com> am cc179e25: Merge "Allow ripple bounds to change during enter animation" into lmp-preview-dev

* commit 'cc179e25ccab51cddd16bd3be064590a4c5bb58b':
Allow ripple bounds to change during enter animation
dc6046fca37264b48e9c959f38d08cfb78f436ed 02-Jun-2014 Alan Viverette <alanv@google.com> Allow ripple bounds to change during enter animation

BUG: 15315168
Change-Id: I7588be96648318473998cfd5deba678224f1db51
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/RippleDrawable.java
6a407b0d482129ef09c7bdc661f72aa63f9ae87d 02-Jun-2014 Alan Viverette <alanv@google.com> am 8709eeb9: Merge "Fix padding for GradientDrawable" into lmp-preview-dev

* commit '8709eeb9ed08a70550b308e4e79cadf884e2e2d3':
Fix padding for GradientDrawable
c65c7ae6356ea1b7809854cc205c328abed8d59b 02-Jun-2014 Alan Viverette <alanv@google.com> Merge commit '6682183b' into manualmerge

Conflicts:
core/res/res/values/public.xml

Change-Id: Ic91db6ee85dcd8a6b13716b600b04c78ceac4b33
c6c967b68a9c29e0930bcfa32548633596fe5745 02-Jun-2014 Alan Viverette <alanv@google.com> Merge "Fix padding for GradientDrawable" into lmp-preview-dev
982c59a55f8f11d0e26be93780b292adacd56f49 02-Jun-2014 Alan Viverette <alanv@google.com> Fix padding for GradientDrawable

BUG: 15197745
Change-Id: Ibd1c20dd8ba8c7ffbf65031be4ca9813304d4d0f
ndroid/graphics/drawable/GradientDrawable.java
4d2f2483f6d9e2eb25d843d676981f4ebc9c79e5 02-Jun-2014 Alan Viverette <alanv@google.com> Fixes hotspot list transitions, update to use a single hotspot

Also updates background and button colors to match spec, removes
dependency on bouncycastle Arrays. Vastly simplifies ripple drawing.
Adds APIs for maximum ripple radius. Makes selectableItemBackground
bounded by default and adds an unbounded version and theme attribute.

BUG: 15315168
BUG: 15314684
BUG: 15314830
BUG: 15316768
BUG: 15333033
BUG: 15344050
Change-Id: Ib0619587ce78e43056b66571bae185e0f1613185
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/RippleDrawable.java
5c3d927e17e98e8fd4a9f3c86f7f4def0bcfa816 08-May-2014 Florin Malita <fmalita@google.com> Add a native Canvas wrapper.

Instead of storing a direct SkCanvas reference, Canvas now tracks
an opaque native wrapper class. The native wrapper can be used to
store additional info for emulating deprecated Skia features
(at this point it only stores a canvas).

Some notes:

* all native handle -> SkCanvas conversions are routed through a
handful of native utility methods.
* safeCanvasSwap() refactored as a lower level setNativeBitmp() - which
is what clients need.
* removed unused get_thread_msec() (Canvas.cpp)

Change-Id: I715a5a6f1e1621c1cfc1e510ae4f2ea15cf11114
ndroid/graphics/Camera.java
ndroid/graphics/Canvas.java
ndroid/graphics/NinePatch.java
ndroid/graphics/Picture.java
ca672f27581e5a0263d53b7b98551312d54f6efa 30-May-2014 Raph Levien <raph@google.com> am 953fe800: Merge "Language and variant selection for Minikin" into lmp-preview-dev

* commit '953fe800caf1771217ff1e828d6aa93fbc16729c':
Language and variant selection for Minikin
f9e3d311275c37fe5f2562993687a1627780a6d0 28-May-2014 Raph Levien <raph@google.com> Language and variant selection for Minikin

This is the frameworks/base side of what's needed to support language
selection (especially Han unification, but also compact/elegant
selection for scripts that require more vertical space).

This is part of the fix for bug 15179652 "Japanese font isn't shown on
LMP".

Change-Id: I8f0f3aa9a1915659f8d0b590cf1c56529356049a
ndroid/graphics/FontFamily.java
ndroid/graphics/FontListParser.java
ndroid/graphics/Typeface.java
c9ad54e8ec76af06e30cdc38ec6af2d5ca0dc238 28-May-2014 ztenghui <ztenghui@google.com> Merge "Add translation and scale to the group tag and related tests."
452f6ece7fe2fd1a85fca53f54e90bf041083b21 28-May-2014 ztenghui <ztenghui@google.com> Add translation and scale to the group tag and related tests.

bug:15288554

Change-Id: Iebe176d0a9c2c566d1910674a068e65e15569829
ndroid/graphics/drawable/VectorDrawable.java
0d181540e0c96da454f45e65987f690b27b929d9 12-May-2014 Derek Sollenberger <djsollen@google.com> Cleanup Canvas API by deprecating a few methods.

The clipRegion(Region) API exposed a different semantic than all other clip APIs by not
respecting the current matrix. The same behavior can be achieved by calling clipRect(Rect)
on the Rects within a Region.

bug: 14650725
Change-Id: I7e91813b8e2474f327e070e549fa303d66f8b552
ndroid/graphics/Canvas.java
63cfd85bcce488a3f3952bd1db523a727d30ca39 27-May-2014 ztenghui <ztenghui@google.com> Move the rotation information from path to group.

Also update the 3rd test to correctly testing clipping.

Removing some naive tests which rotate 360 or 0.

bug:15288554

Change-Id: I436e8e494cb78fc665a3890171a1af87367db419
ndroid/graphics/drawable/VectorDrawable.java
baef8c1ffe5c900fb0da9512654bf249b5fc9269 20-May-2014 Deepanshu Gupta <deepanshu@google.com> Layoutlib fixes for L [DO NOT MERGE]

This adds the new delegates that were missing. This starts the work on
changes related to Minikin Fonts.

There are some changes related to TypedArray that still need to be
fixed.

Change-Id: Ic2397b64aa3f1f48926e849b14689c47d9ee7f8c
(cherry picked from commit 7ca3612094270183243938e79337c84effea7ad0)
ndroid/graphics/FontFamily.java
ndroid/graphics/Typeface.java
b00cb8b8c7c58843d568da6abcb5fea248cb8299 27-May-2014 Deepanshu Gupta <deepanshu@google.com> Merge "Layoutlib fixes for L"
bd67759a3d4d5eeec39f6b05b571995770db9d16 27-May-2014 ztenghui <ztenghui@google.com> Merge "Bring the group tag back to VectorDrawable."
6d9c422de5e0a3890dd723cb1b9264d4507053e9 23-May-2014 ztenghui <ztenghui@google.com> Bring the group tag back to VectorDrawable.

This is the first step, including:
1. Bring the group tag back by reverting.
2. If there is no group tag, then treat all the paths as a single group.
Make sure our test cases covering both cases.

At the same time, fix one tiny UI bug in the test.

TODO:
1. Move the rotation to the group tag.
2. Add translation/scale to the group tag.
3. Convert the group into a tree hierarchy.

This reverts commit 404211630ba3bb865109434aba4433e7541b39d3.

Conflicts:
graphics/java/android/graphics/drawable/VectorDrawable.java

Change-Id: Ife65bb6a7fc85f9947124b8e356cd5b82119796a
ndroid/graphics/drawable/VectorDrawable.java
427a15a0f0d3d2a244348c2d572a44bca3035fd9 27-May-2014 ztenghui <ztenghui@google.com> Merge "DO NOT MERGE: Hide the VectorDrawable" into lmp-preview-dev
cd3a8245489fa36c528b075efe99a147cf4f6785 24-May-2014 Chris Craik <ccraik@google.com> Merge "DO NOT MERGE Inspect SkShader to determine hw shader." into lmp-preview-dev
72da16382161adbbd44dfb9d175e1bb13a8f9f0c 24-May-2014 ztenghui <ztenghui@google.com> DO NOT MERGE: Hide the VectorDrawable

Change-Id: Ie65194c8ec54063f48a541ee0cc82bccc41f5353
ndroid/graphics/drawable/VectorDrawable.java
0ff33fba403c15980a4f1241ff40a5a427ea4b0a 23-May-2014 Alan Viverette <alanv@google.com> am a8b23365: Merge "Add support for setColorFilter in VectorDrawable" into lmp-preview-dev

* commit 'a8b2336554daef1cf299ef0cbb6c51981a1e719f':
Add support for setColorFilter in VectorDrawable
d6405c1c75838d1a883f1681770dcb5606d86e3a 23-May-2014 Alan Viverette <alanv@google.com> Merge "Add support for setColorFilter in VectorDrawable" into lmp-preview-dev
8c1244b98cd105ee4542094cbc709dba346f2c45 23-May-2014 Alan Viverette <alanv@google.com> Merge "Fix build."
d30241541c3adcb126bb263ad8596e7902a6b5ae 23-May-2014 Alan Viverette <alanv@google.com> DO NOT MERGE Fix build.

Change-Id: I2e9f7f27c94b9f9240a5ca76952024055ff79878
ndroid/graphics/drawable/BitmapDrawable.java
7bf1eb63ec0fac15c98ab9c9a53e036a5bd59bb4 23-May-2014 Alan Viverette <alanv@google.com> Fix build.

Change-Id: I2e9f7f27c94b9f9240a5ca76952024055ff79878
ndroid/graphics/drawable/BitmapDrawable.java
de220369c60264c6bc637e1a65486f6c79f15309 23-May-2014 Alan Viverette <alanv@google.com> am e11794a2: Merge "Update switch, checkbox, radio button, button, and toggle button" into lmp-preview-dev

* commit 'e11794a2c1af70a265b6476ce3f3587814e9f0b3':
Update switch, checkbox, radio button, button, and toggle button
fd6e411767735478ee0f69ba01d77def4c6b2627 23-May-2014 Alan Viverette <alanv@google.com> Add support for setColorFilter in VectorDrawable

Also cleans up inflation so that we can apply themes more easily.

Change-Id: I56decb29fe987286a38fc0aa96f95952cf67c120
ndroid/graphics/drawable/VectorDrawable.java
0fa2bd699ab5539c0ce6b79eb6b4b681734b8bb5 05-May-2014 Leon Scroggins III <scroggo@google.com> DO NOT MERGE Inspect SkShader to determine hw shader.

cherry-pick of Iaa7189178bda1c55f96da044d2a9fa602ba36034

Instead of duplicating internal info about SkShader, inspect the
SkShader installed on the SkPaint.

core/java/android/view/GLES20Canvas.java:
Remove setupModifiers, nResetModifiers, and nSetupShader.

core/jni/android/graphics/Shader.cpp:
Remove calls to create/destroy the (previously) attached SkiaShader.

core/jni/android_view_GLES20Canvas.cpp:
Remove native code for setupShader and resetModifiers.

graphics/java/android/graphics/BitmapShader.java:
graphics/java/android/graphics/ComposeShader.java:
graphics/java/android/graphics/LinearGradient.java:
graphics/java/android/graphics/RadialGradient.java:
graphics/java/android/graphics/Shader.java:
graphics/java/android/graphics/SweepGradient.java:
Remove code keeping track of native SkiaShader.

libs/hwui/Caches.h:
Include Extensions.h.

libs/hwui/DeferredDisplayList.cpp:
Compare shaders on the paint, instead of on DrawModifiers.

libs/hwui/DisplayList.cpp:
libs/hwui/DisplayList.h:
Remove vector of SkiaShaders.

libs/hwui/DisplayListOp.h:
Access the SkShader on mPaint.
Remove SetupShaderOp and ResetShaderOp.

libs/hwui/DisplayListRenderer.cpp:
libs/hwui/DisplayListRenderer.h:
Remove resetShader, setupShader, refShader, and mShaderMap.

libs/hwui/FontRenderer.cpp:
Pass SkShader to setupDrawShader and setupDrawShaderUniforms.

libs/hwui/OpenGLRenderer.cpp:
libs/hwui/OpenGLRenderer.h:
Add LayerShader, a class inheriting from SkShader, to mimic the
behavior of SkiaLayerShader. Unlike SkiaLayerShader, it can be set on
the SkPaint so it can be inspected later.
Set a LayerShader instead of a SkiaLayerShader.
setupDrawShader and setupDrawShaderUniforms now inspect an SkShader
passed in.
Inspect SkShader instead of mDrawModifiers.mShader.
Remove resetShader and setupShader.
setupDrawColorUniforms now takes a boolean indicating whether there is
a shader.
Add an inline function for accessing the SkShader on an SkPaint.
In setupDrawBlending(Layer*, bool), do not check the shader (which will
never be set), but do check whether the color filter may change the
alpha (newly fixed behavior).
In setupDrawBlending(SkPaint, ...), check the SkShader and whether the
color filter affects alpha (the latter is new behavior).

libs/hwui/Renderer.h:
Remove pure virtual functions setupShader and resetShader.

libs/hwui/ResourceCache.cpp:
libs/hwui/ResourceCache.h:
Remove functions for refing/unrefing shaders.

libs/hwui/SkiaShader.cpp:
libs/hwui/SkiaShader.h:
Much of this code was redundant and has been removed.
Convert structs into class with nothing but static functions for
calling describe/setupProgram.

libs/hwui/TextureCache.cpp:
libs/hwui/TextureCache.h:
Use the SkPixelRef as the key to the bitmap Lru cache, since shader
inspection will provide a different SkBitmap pointer (though it will
hold the correct SkPixelRef with the correct generation ID).

tests/CanvasCompare/src/com/android/test/hwuicompare/DisplayModifier.java:
tests/CanvasCompare/src/com/android/test/hwuicompare/ResourceModifiers.java:
Update manual test to have more shaders: radial, sweep, compose,
invalid compose.

BUG:10650594
Change-Id: I2e7182b3fc28268e7ca82fac6780540b6b45365c
ndroid/graphics/BitmapShader.java
ndroid/graphics/ComposeShader.java
ndroid/graphics/LinearGradient.java
ndroid/graphics/RadialGradient.java
ndroid/graphics/Shader.java
ndroid/graphics/SweepGradient.java
2356c5e69b0911e6334ebf6374217898371be5ac 23-May-2014 Alan Viverette <alanv@google.com> Update switch, checkbox, radio button, button, and toggle button

Add optical inset support to BitmapDrawable with gravity. Fix optical
inset support in DrawableContainer. Fix visibility change support in
AnimatedStateListDrawable. Adds a whole bunch of missing drawable
support to CheckedTextView.

BUG: 15127013
BUG: 15126976
BUG: 15125529
BUG: 15025806
BUG: 14597955
BUG: 14594498
BUG: 15152746
Change-Id: Id2d99e10838d25b6f927ca1e49996c8da8e78ab1
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/DrawableContainer.java
d490aa426090fc358873821b47ef27ead0c97409 23-May-2014 Chris Craik <ccraik@google.com> Merge "Inspect SkShader to determine hw shader."
130d2353edda445b8e36a6b5e4b176fd748035b0 20-May-2014 Deepanshu Gupta <deepanshu@google.com> Layoutlib fixes for L

This adds the new delegates that were missing. This starts the work on
changes related to Minikin Fonts.

There are some changes related to TypedArray that still need to be
fixed.

Change-Id: Ic2397b64aa3f1f48926e849b14689c47d9ee7f8c
ndroid/graphics/FontFamily.java
ndroid/graphics/Typeface.java
d1ad5e62fda248c6d185cde3cb6d9f01a223066c 05-May-2014 Leon Scroggins III <scroggo@google.com> Inspect SkShader to determine hw shader.

Instead of duplicating internal info about SkShader, inspect the
SkShader installed on the SkPaint.

core/java/android/view/GLES20Canvas.java:
Remove setupModifiers, nResetModifiers, and nSetupShader.

core/jni/android/graphics/Shader.cpp:
Remove calls to create/destroy the (previously) attached SkiaShader.

core/jni/android_view_GLES20Canvas.cpp:
Remove native code for setupShader and resetModifiers.

graphics/java/android/graphics/BitmapShader.java:
graphics/java/android/graphics/ComposeShader.java:
graphics/java/android/graphics/LinearGradient.java:
graphics/java/android/graphics/RadialGradient.java:
graphics/java/android/graphics/Shader.java:
graphics/java/android/graphics/SweepGradient.java:
Remove code keeping track of native SkiaShader.

libs/hwui/Caches.h:
Include Extensions.h.

libs/hwui/DeferredDisplayList.cpp:
Compare shaders on the paint, instead of on DrawModifiers.

libs/hwui/DisplayList.cpp:
libs/hwui/DisplayList.h:
Remove vector of SkiaShaders.

libs/hwui/DisplayListOp.h:
Access the SkShader on mPaint.
Remove SetupShaderOp and ResetShaderOp.

libs/hwui/DisplayListRenderer.cpp:
libs/hwui/DisplayListRenderer.h:
Remove resetShader, setupShader, refShader, and mShaderMap.

libs/hwui/FontRenderer.cpp:
Pass SkShader to setupDrawShader and setupDrawShaderUniforms.

libs/hwui/OpenGLRenderer.cpp:
libs/hwui/OpenGLRenderer.h:
Add LayerShader, a class inheriting from SkShader, to mimic the
behavior of SkiaLayerShader. Unlike SkiaLayerShader, it can be set on
the SkPaint so it can be inspected later.
Set a LayerShader instead of a SkiaLayerShader.
setupDrawShader and setupDrawShaderUniforms now inspect an SkShader
passed in.
Inspect SkShader instead of mDrawModifiers.mShader.
Remove resetShader and setupShader.
setupDrawColorUniforms now takes a boolean indicating whether there is
a shader.
Add an inline function for accessing the SkShader on an SkPaint.
In setupDrawBlending(Layer*, bool), do not check the shader (which will
never be set), but do check whether the color filter may change the
alpha (newly fixed behavior).
In setupDrawBlending(SkPaint, ...), check the SkShader and whether the
color filter affects alpha (the latter is new behavior).

libs/hwui/Renderer.h:
Remove pure virtual functions setupShader and resetShader.

libs/hwui/ResourceCache.cpp:
libs/hwui/ResourceCache.h:
Remove functions for refing/unrefing shaders.

libs/hwui/SkiaShader.cpp:
libs/hwui/SkiaShader.h:
Much of this code was redundant and has been removed.
Convert structs into class with nothing but static functions for
calling describe/setupProgram.

libs/hwui/TextureCache.cpp:
libs/hwui/TextureCache.h:
Use the SkPixelRef as the key to the bitmap Lru cache, since shader
inspection will provide a different SkBitmap pointer (though it will
hold the correct SkPixelRef with the correct generation ID).

tests/CanvasCompare/src/com/android/test/hwuicompare/DisplayModifier.java:
tests/CanvasCompare/src/com/android/test/hwuicompare/ResourceModifiers.java:
Update manual test to have more shaders: radial, sweep, compose,
invalid compose.

BUG:10650594

Change-Id: Iaa7189178bda1c55f96da044d2a9fa602ba36034
ndroid/graphics/BitmapShader.java
ndroid/graphics/ComposeShader.java
ndroid/graphics/LinearGradient.java
ndroid/graphics/RadialGradient.java
ndroid/graphics/Shader.java
ndroid/graphics/SweepGradient.java
e7772d313b88e9fd3366670a9c8d1b145edef344 22-May-2014 Alan Viverette <alanv@google.com> Move setTint into Drawable, unhide getDirtyBounds on Drawable

BUG: 15089957
Change-Id: Ib622ba24b3f4bcf430e1d524895ac5cb104a232e
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
190dad431747ccf7e3623e65a933b26fb6ee97d8 22-May-2014 Alan Viverette <alanv@google.com> Merge "Style and asset cleanup"
0a1c6f021be032f5aecb341c2794efb06c0a8a0d 22-May-2014 Alan Viverette <alanv@google.com> Style and asset cleanup

Updates button drawable and colors, cleans up Quantum styles, updates
highlight attribute name and color, fixes popup backgrounds.

Also fixes GradientDrawable opacity check.

Change-Id: I75dd35e815a8a33ec9f0b16e881e774edfb8c092
ndroid/graphics/drawable/GradientDrawable.java
b8fe2fcd71e438b5ea6a85b1e2024ca9dc62b9d1 22-May-2014 Chris Craik <ccraik@google.com> Merge "Define light position (using new lighting spec) in Java"
a22aa8806b571b7cf7aa3f1aaa9918988a2ccc31 22-May-2014 Alan Viverette <alanv@google.com> Merge "Clean up hotspot bounds API"
7ec5b2e5a3da9c69df087311f4e480b45bfaf8c8 22-May-2014 Alan Viverette <alanv@google.com> Merge "Clean up Gradient drawable theming & whitespace"
53a3ed7c46c12c2e578d1b1df8b039c6db690eaa 22-May-2014 Alan Viverette <alanv@google.com> Clean up hotspot bounds API

Change-Id: I7daf7e2d360d761f673aa69a0f925b8076ab19c6
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
17dafdc8d8cb92a03294657d3a6e36c9c546d130 22-May-2014 Alan Viverette <alanv@google.com> Clean up Gradient drawable theming & whitespace

Change-Id: I66c857a71e5b4beaee6a7e6c04959fbacee3cbe1
ndroid/graphics/drawable/GradientDrawable.java
797b95b26bbb7557678af78b9a2a61830158920f 21-May-2014 Chris Craik <ccraik@google.com> Define light position (using new lighting spec) in Java

Also updates the relative shadow strengths.

Change-Id: I6cac7275d38df98aea9f0dda463cd7207102986a
ndroid/graphics/Canvas.java
95b6fd8b7af276069cbc415da3499d5ab4873c32 21-May-2014 Svetoslav <svetoslavganov@google.com> Addressing APIs council feedback

bug:15089461

Change-Id: Ifcb003b114e2e50333bb0ef386d99482f7bfaa6e
ndroid/graphics/pdf/PdfRenderer.java
47a7d61e70230bbed030e8795a17bf43c479616f 21-May-2014 Chris Craik <ccraik@google.com> Merge "Clean up Outline API, method on drawable"
3b5c4272db3e089c4a06d2db2ddf2aee5ebb6281 20-May-2014 Alan Viverette <alanv@google.com> Various API review fixes to resources and drawables

BUG: 15025565
Change-Id: If00c85816f8288338967f7a85453d21f858f5ca7
ndroid/graphics/drawable/Drawable.java
f31512eb17b6327c5f81bfb8a69c3a6119a0dd66 20-May-2014 Alan Viverette <alanv@google.com> Merge "Various API council fixes to drawables"
e5b082d6eb0489e7dbe3159338f8c94c0af61dee 20-May-2014 Alan Viverette <alanv@google.com> Various API council fixes to drawables

BUG: 15089957
Change-Id: Ieaf468bbff092e68f6313d8a5ecccda8b753806d
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
7dc5b41e609d3ff55ca194682832d14a7236fa87 20-May-2014 Chris Craik <ccraik@google.com> Clean up Outline API, method on drawable

bug:15025466
bug:15089680
Change-Id: I8d3b64a0d9dbdbaf679042c8b384d2050323a8e6
ndroid/graphics/Outline.java
ndroid/graphics/drawable/Drawable.java
c80ad99a33ee49d0bac994c1749ff24d243c3862 20-May-2014 Alan Viverette <alanv@google.com> TouchFeedbackDrawable is now RippleDrawable

Change-Id: I59f5f04b73089215c6320560556ac21beb03db06
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/DrawableWrapper.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/RippleDrawable.java
ndroid/graphics/drawable/TouchFeedbackDrawable.java
77bc0a17e8668945548f3b4936e4888ec3eb189e 20-May-2014 ztenghui <ztenghui@google.com> Merge "Remove the versionCode"
e3c45e7a6b2a7d2176aa46ee482e299b54feeb9f 19-May-2014 ztenghui <ztenghui@google.com> Remove the versionCode

Change-Id: I2a77fefd7b14fd3bef0b0c7a142fe88e69883c75
ndroid/graphics/drawable/VectorDrawable.java
ad2f8e334f3ef22d3e412b0660a2e1f996f94116 16-May-2014 Alan Viverette <alanv@google.com> Update ripple behavior, use render thread animation

Change-Id: Ib6bc1e08b05d29606f452961963d58b8fc866746
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/TouchFeedbackDrawable.java
c9ee304c91b5572f0c1cd95e9bd1e4a84e28587d 16-May-2014 Chris Craik <ccraik@google.com> Merge "Round rect outline clipping"
deeda3d337aed1eee218b89a7aba5992ced371f0 06-May-2014 Chris Craik <ccraik@google.com> Round rect outline clipping

Change-Id: Iee9cf4f719f6f1917507b69189ad114fa365917b
ndroid/graphics/Outline.java
1dfa9d98bee6326fe53240dbe7e1b05a75aba109 15-May-2014 Alan Viverette <alanv@google.com> Merge "Simplify attribute extraction for themed Drawables"
ca2624122c4ea4c22f305aec670f7841771c00ee 15-May-2014 Mike Reed <reed@google.com> Merge "document and deprecated Rasterizer"
dbef65f1a170c8abd819a609aeb30797b2407c9a 15-May-2014 Svetoslav <svetoslavganov@google.com> Merge "Adding APIs to render PDF documents."
25f9a3cd27a3d94b97d3d27c018e77a2e784e13b 15-May-2014 Igor Murashkin <iam@google.com> Merge "camera2: Use StreamConfigurationMap for format/size/duration lookup"
091d1ea18a4e38f53c95ad294a0bba54a7c337a6 15-May-2014 Raph Levien <raph@google.com> Merge "Add fallback fonts to system fonts (Minikin)"
9e2b288ba89ad78ba601eef4843831b382a17bd5 15-May-2014 Raph Levien <raph@google.com> Merge "Proper refcounting for Minikin objects"
018646adac62f137fe6b2ad04182cc623a7037e0 15-May-2014 Raph Levien <raph@google.com> Merge "Parsing of XML font configuration files for Minikin"
2836c4722a156ec78d7f4101b394885a354f5dd6 15-May-2014 Raph Levien <raph@google.com> Merge "Start of Minikin integration"
0cfb877f5a0a1bff82d9c3ee969195bf7812c0b5 15-May-2014 Alan Viverette <alanv@google.com> Simplify attribute extraction for themed Drawables

Also fixes a bug in GlowPadView that randomly popped up.

Change-Id: Id20508a44ea02b4a14c8f794de36e13a2c06587c
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/TouchFeedbackDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
f50742b12de14da449de8680791c3ee0f6c4d854 15-May-2014 Ian Rogers <irogers@google.com> am 76ee05d4: am d05c7d26: am bcf76242: Merge "Move FLATTENED_PATTERN to inner class."

* commit '76ee05d4f6a8ddafd2125db69e7560dab7cb2e8a':
Move FLATTENED_PATTERN to inner class.
76ee05d4f6a8ddafd2125db69e7560dab7cb2e8a 15-May-2014 Ian Rogers <irogers@google.com> am d05c7d26: am bcf76242: Merge "Move FLATTENED_PATTERN to inner class."

* commit 'd05c7d265170ca6573bbdd97f3c4aaa8e25a6389':
Move FLATTENED_PATTERN to inner class.
d05c7d265170ca6573bbdd97f3c4aaa8e25a6389 15-May-2014 Ian Rogers <irogers@google.com> am bcf76242: Merge "Move FLATTENED_PATTERN to inner class."

* commit 'bcf76242134317a2f722eab5af2600fe2858f895':
Move FLATTENED_PATTERN to inner class.
5d5d14fd97aa8d7adf00911a9b337b9a88da41cd 15-May-2014 Ian Rogers <irogers@google.com> Move FLATTENED_PATTERN to inner class.

Avoid AOT compilation/initialization in ART failing due to regex.Pattern
requiring native support.

Bug: 14646037

Change-Id: I9d9c7fd9ed9fab7e21d37f9b31c00d037fc5a691
ndroid/graphics/Rect.java
9c595174ccaaf3d36315c4a100e47ee4369073f6 12-May-2014 Igor Murashkin <iam@google.com> camera2: Use StreamConfigurationMap for format/size/duration lookup

* Also @hide/@deprecate a bunch of other keys
* Move some classes into android.hardware.camera2.params

Bug: 14628001
Change-Id: I2db490a0849680a133a901403477a147b004fb28
ndroid/graphics/ImageFormat.java
2961769ea94f69c191a2dd785b2504666c7292d0 25-Apr-2014 Svetoslav <svetoslavganov@google.com> Adding APIs to render PDF documents.

We need to render PDF documents for two main use cases. First,
for print preview. Second, for resterizing the PDF document by
a print service before passing it to a printer which does not
natively support PDF (most consumer ones).

Adding PDF rendering APIs improves guarantees for print quality
as the same library is used for preview and rasterization. Also
print vendors do not have to license third-party rendering engines.
Last but not least as the platform uses PDF as its main print
format it should also be able to natively render it.

Change-Id: I57004a435db147663cafea40cf3296465aba7f99
ndroid/graphics/Matrix.java
ndroid/graphics/pdf/PdfDocument.java
ndroid/graphics/pdf/PdfRenderer.java
b7869fb3ff28d8a9aff2552a37a3a42cbfe6a6b3 13-May-2014 ztenghui <ztenghui@google.com> Merge "Remove the group tag."
46e546c28fd52b4dedf0a0fbd313db589cb9048b 12-May-2014 ztenghui <ztenghui@google.com> Remove the group tag.

Since we don't support animation, it is better not to expose the group tag for now,
which will only lead to confusion.
Internally, we keep the group class to represent multiple paths. But we don't
allow multiple groups.

Change-Id: I041ba32dff05ef6b1cd9d5ab1a1717e55a356145
ndroid/graphics/drawable/VectorDrawable.java
363e21b4518d7059638df2821b8a0947f74eaf2c 09-May-2014 Raph Levien <raph@google.com> Add fallback fonts to system fonts (Minikin)

This patch explicitly keeps the list of fallback fonts, and creates
all system fonts including the fallback list as well. At present,
fonts created from assets or directly from files do not have the
fallback list present, so that remains to be done.

This patch affects only builds with USE_MINIKIN defined; otherwise
the fallback font processing in Skia will apply.

Change-Id: I6148e06a45a11f53a6bb2f04c8813df4968ea8c8
ndroid/graphics/Typeface.java
15cf4757dc0099301662f8a26da561434cc07cfa 06-May-2014 Raph Levien <raph@google.com> Proper refcounting for Minikin objects

This patch introduces proper lifecycle maintenance (based on reference
counting) for Minkin objects, particularly FontFamily and
FontCollection. The patch depends on the corresponding Ref and Unref
methods being available in Minikin.

Change-Id: I91935e953d5a522e1adc496f2ce3a598be35de2b
ndroid/graphics/FontFamily.java
9a5b61ccc83303ceeec2059f58c1977af9faa9e3 30-Apr-2014 Raph Levien <raph@google.com> Parsing of XML font configuration files for Minikin

This patch improves Minikin-based font handling, to deal with error
conditions (missing fonts and so on), and also moves the parsing of
fallback_fonts.xml and system_fonts.xml into Java code.

Change-Id: Ib0debdbd56ad3b0196be6d2a35668d711c98f1e5
ndroid/graphics/FontFamily.java
ndroid/graphics/FontListParser.java
ndroid/graphics/Typeface.java
1a73f732f91e97c9c66b808c245ddda36a10e987 31-Jan-2014 Raph Levien <raph@google.com> Start of Minikin integration

This is the current state of the Minikin integration. All changes are
hidden behind USE_MINIKIN #ifdef, so it should be safe to apply. To
play with the Minikin branch, set this in your BoardConfig.mk .

This change also merges in 64-bit changes that were happenening in
parallel.

Change-Id: Idd94553bcbe324c5875d0ff06495c966c3e95b7f
ndroid/graphics/FontFamily.java
ndroid/graphics/Paint.java
ndroid/graphics/Typeface.java
c42bfb95c6b7166b7916057af9df6e20d8c4c8ef 10-May-2014 John Reck <jreck@google.com> Merge "Refactor VirtualLightRefBase & JNI"
9fa4071c4768c63902c6a74a4b480b51a8b95d43 10-May-2014 John Reck <jreck@google.com> Refactor VirtualLightRefBase & JNI

Change-Id: I8e244e7109e59d5be96871b23bb9b1201c7f9eaa
ndroid/graphics/CanvasProperty.java
3c35b57cbbc1b20d609753f24677a305bff88f29 09-May-2014 Mike Reed <reed@google.com> document and deprecated Rasterizer

Change-Id: I02f6a47aeb96b27c3fb9f6d003648f794e3d7cf4
ndroid/graphics/LayerRasterizer.java
ndroid/graphics/Paint.java
ndroid/graphics/Rasterizer.java
5e92c95d847a68178cf6099c801f82dcb7e4fa47 09-May-2014 Alan Viverette <alanv@google.com> Animated state transition drawable

Change-Id: I6c795d55cd7ab9163fdd6fe6ce3771bbd7015d62
ndroid/graphics/drawable/AnimatedStateListDrawable.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/StateListDrawable.java
3b1ae5e40b9bcdec8ecf1cdeb01fd9f834825a58 08-May-2014 Jeff Brown <jeffbrown@google.com> Merge "Improve documentation of setOnFrameAvailableListener."
ba873d21718b0c0bbeabbb3b4796e54073739700 08-May-2014 Jeff Brown <jeffbrown@google.com> Improve documentation of setOnFrameAvailableListener.

Change-Id: I970e5941f3f6975a284d18056238a6877c7acbf2
ndroid/graphics/SurfaceTexture.java
ddbbb8ae8561c9e61becd03faa40997d76ab5a51 06-May-2014 ztenghui <ztenghui@google.com> Further cleaning on animated part of VectorDrawable.

State changed support is gone.
Rename VAnimatedPath.
Remove the obsolete documents.
Update the tests to reflect the API changes.

Change-Id: Icdc19c6519a4e29975877c1d167e61c8fa14a371
ndroid/graphics/drawable/VectorDrawable.java
5b554f010358d8f47e31d92a42aa3edc4a71ec47 08-May-2014 Derek Sollenberger <djsollen@google.com> Merge "Avoid caching shadow properties in Java & HWUI."
531fecca1c55d2f60977a57f5eb546d4d202fb97 08-May-2014 Florin Malita <fmalita@google.com> Merge "Encapsulate Canvas.mNativeCanvas"
c29a0a4664a4b9871fadd668b632469a0db240b9 31-Mar-2014 Derek Sollenberger <djsollen@google.com> Avoid caching shadow properties in Java & HWUI.

bug: 10650594
Change-Id: I6f57df002710bb0567ed7e53fc0bfe96cfd504b8
ndroid/graphics/Paint.java
ndroid/graphics/drawable/ShapeDrawable.java
c677675e9c465dc1de21ecf2e0421835c7eb55b4 07-May-2014 Florin Malita <fmalita@google.com> Encapsulate Canvas.mNativeCanvas

Currently, the native canvas is accessed/manipulated from several
unrelated classes.

In order to facilitate SaveFlags emulation, this CL encapsulates
the field and refactors its external users.

Two main changes:

* new getNativeCanvas() getter for use in Java-level clients.
* JNI canvas swappers (GraphicsBuffers, Surface, TextureView &
AssetAtlasService) are refactored based on the exising/equivalent
safeCanvasSwap() Canvas method.

Change-Id: I966bd4898f0838fb3699e226d3d3d51e0224ea97
ndroid/graphics/Camera.java
ndroid/graphics/Canvas.java
ndroid/graphics/NinePatch.java
ndroid/graphics/Picture.java
c7282e57cd01f1576baac04356bf99bee34e4c18 07-May-2014 Jeff Brown <jeffbrown@google.com> Fix crash due to texture view callback threading invariants.

Allow the client of a SurfaceTexture to specify the Handler to
which the update callback should be directed to avoid unnecessary
scheduling ping-pong between threads.

Fixed an invalid assumption in TextureView that it is attached
to the main looper which could result in a crash under certain
circumstances. In normal app processes, it is true that TextureViews
must be created on the main looper since hardware rendering is
currently only supported on the main looper. However, in the
system server, UI components run a different thread. Although
hardware rendering is normally disabled in the system server,
it may be enabled for certain developer features.

Bug: 14445309
Change-Id: I5ae17ad018b9ef05ba87ec2f972c7c82e2bca70a
ndroid/graphics/SurfaceTexture.java
0b3a7061881d0ea7ba6e3027d599076dc0e9ecc9 06-May-2014 ztenghui <ztenghui@google.com> Merge "First step on API cleaning on the VectorDrawable to disable animation support"
498213a265e05134b4a4fbf93dce69de1a47973c 06-May-2014 ztenghui <ztenghui@google.com> First step on API cleaning on the VectorDrawable to disable animation support

Cleaning on the API level, and related tests.
The animated icon will be only showing the initial state.

TODO: Deep clean on the functionality part and attributes.

Change-Id: I5723bc5b64f796c3a273d74bde02095751160a88
ndroid/graphics/drawable/VectorDrawable.java
223b1e0ba7d39a91fa5acc2248341732e8c519e9 03-May-2014 Alan Viverette <alanv@google.com> Merge "Fix ripple cancel"
40c37349390be0b3a69c8799847144a8b391a15c 03-May-2014 Alan Viverette <alanv@google.com> Fix ripple cancel

BUG: 14495933
Change-Id: Ie3498f35705b70e4c059ff86250cef4746f174da
ndroid/graphics/drawable/Ripple.java
94814218d2313a989a5a8969f633e3fc33e43071 18-Apr-2014 Igor Murashkin <iam@google.com> camera2: Add camera-specific data types used for metadata key/value

Adds new public API classes:
* InputOutputFormatsMap
* LensShadingMap
* RggbChannelVector
* StreamConfigurationMap
* TonemapCurve

Adds new @hide classes:
* StreamConfiguration
* StreamConfigurationDuration

Minor changes:
* CameraDevice (doc only)
* Preconditions (new @hide function)

Change-Id: I2f3757e2fe9d63e710f51469c650377165fd6631
ndroid/graphics/ImageFormat.java
ndroid/graphics/PixelFormat.java
52244fff29042926e21fa897ef5ab11148e35299 02-May-2014 John Reck <jreck@google.com> Add CanvasProperty for drawCircle

Change-Id: Icbcc030f5033d2094e567d7c519b9d672f2aac1c
ndroid/graphics/CanvasProperty.java
de399397947c5379c61a1003c017b96accbbf545 02-May-2014 Alan Viverette <alanv@google.com> Support for list selector ripple during arrow movement & drag

BUG: 14231774
BUG: 14230395
Change-Id: I23efbc88c3f05b3f323e47bcb34f55ff70ad6828
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/TouchFeedbackDrawable.java
53d1cfe2d073bff7c7771d5f7dd9108062ddc706 01-May-2014 Alan Viverette <alanv@google.com> Cleaning up TouchFeedbackDrawable and Ripple APIs

Change-Id: I73ce0507ce98140c01fe77cc277b0fea75350be9
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/TouchFeedbackDrawable.java
323596de4efc46149719b41de5a9f668d7f3f784 28-Apr-2014 Alan Viverette <alanv@google.com> Pull out dirty bounds before nulling ripples

BUG: 14378485
Change-Id: I286374db9865d2338852fd0df896928099a8eb24
ndroid/graphics/drawable/TouchFeedbackDrawable.java
d1ca75bffef070f62ab70ed514f7f91824f73cbc 28-Apr-2014 Alan Viverette <alanv@google.com> Quantum ripple for ListView selector

Also fixes row clipping and ripple alpha channel. Only supports showing
ripple on a single list row -- multiple rows for focus traversal and
drag-to-open are coming soon.

BUG: 13212804
BUG: 14257108
Change-Id: Ided15611dc868a513e8d2a994723cdf57b0d206c
ndroid/graphics/drawable/TouchFeedbackDrawable.java
7979388d4f7d5d9dbfcf7e1cc4709f8088c034ae 25-Apr-2014 Chris Craik <ccraik@google.com> Support Oval GradientDrawable outlines, and ShapeDrawable

Change-Id: Ifc9e55757d3325cb28a1a812ec696512d4a18b39
ndroid/graphics/Outline.java
ndroid/graphics/Path.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
ndroid/graphics/drawable/shapes/OvalShape.java
ndroid/graphics/drawable/shapes/RectShape.java
ndroid/graphics/drawable/shapes/RoundRectShape.java
ndroid/graphics/drawable/shapes/Shape.java
07f0b8ee730be00a2a4bccf797bd8cb71e556546 25-Apr-2014 Chris Craik <ccraik@google.com> Merge "Refactor Drawable outline production, flesh out Outline methods"
e6a39b12656ab8d5c77d8366b24aa6410fd42e11 24-Apr-2014 Chris Craik <ccraik@google.com> Refactor Drawable outline production, flesh out Outline methods

Change-Id: I1b8c25384b5f123e86cf5e0b2270eb741bc3159b
ndroid/graphics/Outline.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/GradientDrawable.java
4d1c1538e2422d0a5b19ad1cd2fb353ed6279a88 24-Apr-2014 Chris Craik <ccraik@google.com> Add floats-only drawRoundRect to Canvas

Change-Id: Ib0033a2d2486a808a44984ec4adf7fef76d9ea17
ndroid/graphics/Canvas.java
717f39c7d98c7e4b08f7bb88102c720cb8990004 24-Apr-2014 Chris Craik <ccraik@google.com> Merge "Clip TouchFeedbackDrawable effect to receiver Outline"
3f085429fd47ebd32ac2463b3eae2a5a6c17be25 16-Apr-2014 Chris Craik <ccraik@google.com> Clip TouchFeedbackDrawable effect to receiver Outline

Projected RenderNodes are now wrapped with a ClipRect or masked
SaveLayer, so that they are clipped to the outline of the projection
receiver surface.

Change-Id: I1d4afc1bb5d638d650bc0b1dac51a498f216773e
ndroid/graphics/drawable/TouchFeedbackDrawable.java
40619ae8016248979c0147f6bcc9bfd41f07bb4a 23-Apr-2014 Alan Viverette <alanv@google.com> Prevent new ripples when max reached

BUG: 14270202
Change-Id: I53b0522a175eca043ba1cf007377312d03fd8f6d
ndroid/graphics/drawable/TouchFeedbackDrawable.java
70ad9bc03341cc0a5b8d6c9c1f43afac6bcc9c62 23-Apr-2014 Alan Viverette <alanv@google.com> Fix null and bounds checks

BUG: 14271950
BUG: 14271753
BUG: 14270202
Change-Id: I8708107d3803b170a323f584a268ea6b096458ce
ndroid/graphics/drawable/TouchFeedbackDrawable.java
61956606818918194a38e045a8e35e7108480e5e 23-Apr-2014 Alan Viverette <alanv@google.com> Add ripple to switches, radio buttons, check boxes, seek bars

BUG: 14231772
Change-Id: Ie40eac9f68815294460175965a999dd75f4144b5
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/TouchFeedbackDrawable.java
c3f35b01b5a21e110ca4eedf09c8c6164ab85dfb 22-Apr-2014 Alan Viverette <alanv@google.com> Add touch feedback to edit text

Change-Id: Id25692bfa40f5145d6ca807111bbd5d0c4774d07
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/TouchFeedbackDrawable.java
307ad09228ebf70f1b456f5f00540c0126277850 18-Apr-2014 Alan Viverette <alanv@google.com> Add alpha to bitmap, nine patch drawable, fix container hot spots

Also fixes primary text disabled state alpha.

BUG: 13818888
Change-Id: I9ae2e25216014177c2dac24f5c9095df87724a43
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/TouchFeedbackDrawable.java
908a228070678e901ff1775fdd1219f882e2d9fe 18-Apr-2014 Chris Craik <ccraik@google.com> Merge "Add convenience methods to encourage usage of ALL_SAVE_FLAG"
c306ad61a791bae34ed83b339f27cb67a1d91b53 17-Apr-2014 Chris Craik <ccraik@google.com> Add convenience methods to encourage usage of ALL_SAVE_FLAG

Change-Id: I7a3bb2b83ca0463282764898e755b5f1a71ac557
ndroid/graphics/Canvas.java
0613657426aecb7ed6141c133f100baf24166ae0 17-Apr-2014 Raph Levien <raph@google.com> Merge changes Ia693f512,If3b7d41f

* changes:
Enable elegant text metrics in Quantum theme
Add elegantTextHeight text appearance attribute
53c0077256afebb0312f01ef4f60a7445da1f5d9 14-Apr-2014 Raph Levien <raph@google.com> Add elegantTextHeight text appearance attribute

This patch adds an elegantTextHeight text appearance attribute and
plumbs it through to the paint. This attribute selects the elegant
variant of fonts (when appropriate, which is typically Arabic and indic
scripts), and also specifies larger vertical metrics, to avoid clipping.

The intent is for this to be the default for quantum themes, but this
patch doesn't change any default behavior, just adds the attribute.

The larger vertical metrics are applied to top and bottom, but should
not affect line spacing in the common case. Also, with the setting,
metrics are no longer dependent on the font, so setting a custom font
will preserve layout and spacing.

Change-Id: If3b7d41f141deff50ca078f479ca90c2aa07829a
ndroid/graphics/Paint.java
f805b40c44769a751d10d404e8ea778a23d5a51a 17-Apr-2014 Alan Viverette <alanv@google.com> Merge changes Ia2bf4d17,I8242523d

* changes:
Fix alert dialog alignment and touch feedback masking
Fix VectorDrawable states
ddd4a9b9c329274d56a72d84f11dc0148215c406 17-Apr-2014 Chris Craik <ccraik@google.com> Merge "Revert "Add convenience methods, to encourage usage of ALL_SAVE_FLAG""
091ddb1374e3bcdac129c1df5ef2555cf5c2183e 17-Apr-2014 Chris Craik <ccraik@google.com> Revert "Add convenience methods, to encourage usage of ALL_SAVE_FLAG"

This reverts commit 39b7353acacf08a3c0204a9ec122fff420e53310.

Change-Id: I732eab8a2843dd23c86bd1526ec95db5352d39a0
ndroid/graphics/Canvas.java
0932cf87c131f9238538fd7137b282adbe71dc37 17-Apr-2014 Chris Craik <ccraik@google.com> Merge "Deprecate color array drawBitmap methods"
2632f19728e388b85ecb77095bbb4b0aa18b75e2 17-Apr-2014 Chris Craik <ccraik@google.com> Merge "Add convenience methods, to encourage usage of ALL_SAVE_FLAG"
cd23df6a08cf7a9bdee11e703f40bca5904d779d 17-Apr-2014 Chris Craik <ccraik@google.com> Deprecate color array drawBitmap methods

Change-Id: I3339214ddaa7a32e9ddbbb1a074fa98e393eaadf
ndroid/graphics/Canvas.java
39b7353acacf08a3c0204a9ec122fff420e53310 17-Apr-2014 Chris Craik <ccraik@google.com> Add convenience methods, to encourage usage of ALL_SAVE_FLAG

Change-Id: I29aefd70071ff49a259db5c06dded3cd531f6ef1
ndroid/graphics/Canvas.java
dccbe8b02a34a3c78028a31ee158d4d2818c72ba 17-Apr-2014 Alan Viverette <alanv@google.com> Fix alert dialog alignment and touch feedback masking

BUG: 13905057
Change-Id: Ia2bf4d170370c83f4ea863ecae24fffecc6fc020
ndroid/graphics/drawable/TouchFeedbackDrawable.java
70802d2501dd5607ca0f38d7aa36771d9e0c7b20 17-Apr-2014 Alan Viverette <alanv@google.com> Fix VectorDrawable states

BUG: 14083130
Change-Id: I8242523d9a4acd499154d2e7b9b9b52a3f1f742d
ndroid/graphics/drawable/VectorDrawable.java
a09695f59c06256663f3a46546fbcdd6da10f180 17-Apr-2014 Jason Sams <jsams@google.com> am 38f407cb: Merge "RenderScript bicubic resize intrinsic [DO NOT MERGE]" into klp-modular-dev

* commit '38f407cb1daca91af82943c931593d11a6c84b1c':
RenderScript bicubic resize intrinsic [DO NOT MERGE]
d666d92b80d72bed1d576857d460ce4d52184e70 17-Apr-2014 Jason Sams <jsams@google.com> RenderScript bicubic resize intrinsic [DO NOT MERGE]


Change-Id: Icebfb3137aacddce0705834c6d4d2547c709cb0a
ndroid/renderscript/ScriptIntrinsicResize.java
d20974bd51852c71114b6e0e4ffdc3613a4d90aa 17-Apr-2014 Alan Viverette <alanv@google.com> Clean up VectorDrawable formatting

Change-Id: I9110f6ddeda9a811e466e58e451fa95eca08e72e
ndroid/graphics/drawable/VectorDrawable.java
4554a6a5137d8e9bdfb623ad84ff344a48b7eb9d 16-Apr-2014 Alan Viverette <alanv@google.com> Implement jumpToCurrentState() in VectorDrawable

BUG: 14083130
Change-Id: Ie1842b2367d1f24d18fdbc71963e077a1805de9b
ndroid/graphics/drawable/VectorDrawable.java
175f3c892c2c0bd64e32484a2b430e7c59907243 12-Apr-2014 ztenghui <ztenghui@google.com> Make sure control points are in absolute coordinates

Change-Id: I1b90fe39f9dc77e1a1b7b4b512cd11f5734fbf8f
ndroid/graphics/drawable/VectorDrawable.java
d30688f0a0a75743df247831688efcbe2fa62cc4 11-Apr-2014 Alan Viverette <alanv@google.com> Fix support for TouchFeedbackDrawable tint mode

Change-Id: I86bff1c5e69d9a193deb52559948b20ddca99751
ndroid/graphics/drawable/TouchFeedbackDrawable.java
8a5c99c9e91fc86875f3c11f621a9e8a50c5831b 11-Apr-2014 ztenghui <ztenghui@google.com> Merge "Fix path interpretation on curves"
4b1a7c203d5e32c8b2dc7f4f54f28559ca31860a 10-Apr-2014 Alan Viverette <alanv@google.com> Fix build breakage

Change-Id: I73d9ff5f38986b7acf83b85c1989203f472bc5fd
ndroid/graphics/drawable/VectorDrawable.java
4b3988d159e1c9faa2a7e16c9aca9951264bb429 10-Apr-2014 Alan Viverette <alanv@google.com> Cleaning up VectorDrawable

Use argb evaluation method from animation package, lazily create paint,
set default for stroke line cap and join. Fix scaling to bounds. Fix
drawable in test app.

Change-Id: I245d5d6acc6ba9806743ab2bf9bf99aff3649c39
ndroid/graphics/drawable/VectorDrawable.java
33ed52eff4b41f88858874e1af7723277a041b56 09-Apr-2014 ztenghui <ztenghui@google.com> Fix path interpretation on curves

Mostly about the shorthand for quadratic / cubic curve.

We now comply with the spec, which said the behavior should depend on the
previous command.
At the same time, make sure our current point and current control point info
are always in absolute coordinates, not a mix of absolute and relative.
CTS test will be added to monitor this behavior.

Note: Chrome / Firefox are following this rule, while Linux OS / Batik are not.

bug:13913405

Change-Id: I9f8168ed97f87c754c79588984f1f199507b0377
ndroid/graphics/drawable/VectorDrawable.java
514d4aaf53abf6671b0fe8be6d8a2d6b2a69b887 09-Apr-2014 Alan Viverette <alanv@google.com> Merge "Update supported Drawable tinting modes and docs"
2f8ba8f7fad2b608102a9282219aaea2223e94f5 09-Apr-2014 Alan Viverette <alanv@google.com> Update supported Drawable tinting modes and docs

Change-Id: I9c20d2bc4dc499f91c21a348871cf209c1065ba6
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/TouchFeedbackDrawable.java
7f1ab7a43fd7e65bbd7460334014ecc73dbb1b8d 09-Apr-2014 Alan Viverette <alanv@google.com> Theming for more VectorDrawable attrs, add attrs to test app

BUG: 13878079
Change-Id: Ibcc8d67446c44cd8f681230fc484c7dc7411ffab
ndroid/graphics/drawable/VectorDrawable.java
860126b78aa4d6e8db5208c7f96764a8556cf95f 09-Apr-2014 Alan Viverette <alanv@google.com> Make Drawable hotspot APIs public

Change-Id: I8377ed735f73f7083636947aa08a5427f1dc3bf6
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableWrapper.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/TouchFeedbackDrawable.java
ndroid/graphics/drawable/VectorDrawable.java
5c981a100ef30d2925588b69f8b9fe349ee5bfde 08-Apr-2014 Alan Viverette <alanv@google.com> Fix some vector drawable documentation, clean up fields

Change-Id: Iade0323b0ec2d3f8b609f24d89252608dfe40735
ndroid/graphics/drawable/VectorDrawable.java
9453b7cfd4bbb35467bd7f947f850bd154982fce 08-Apr-2014 Alan Viverette <alanv@google.com> Color theming for VectorDrawable, general clean up

BUG: 13878079
Change-Id: I831d26fe3a2658161fc24e947bce382d0be6b548
ndroid/graphics/drawable/VectorDrawable.java
e106ac7f7c28cd8711e533810e4b3218adadc40f 07-Apr-2014 Alan Viverette <alanv@google.com> Fix sharing of child bounsd within touch feedback drawable

Change-Id: I13f2f32fb618f07bd967d98d6369399f1d790125
ndroid/graphics/drawable/TouchFeedbackDrawable.java
cc11f15f76a62ded3e403cb2bc818c6aa5bf261c 31-Mar-2014 Leon Scroggins <scroggo@google.com> Update to call new Skia APIs.

I816129d49c0118453222916f3c818eccac33663d merges a new version of
Skia that updates various APIs. Call the new ones.

SkBitmap::copyTo now takes an SkColorType instead of an
SkBitmap::Config, so do the conversion with
SkBitmapConfigToColorType or use the enum when it makes sense.

Call SkImageDecoder::decodeSubset instead of (deprecated)
SkImageDecoder::decodeRegion.

Override SkCanvas::ClipVisitor::clipRRect in ClipCopier.

In Canvas::clip calls, call SkCanvas::isClipEmpty(), which was
previously called inside the clip call, to determine the return value.

For various SkPaint effects, call the new factories (as the constructors
have been made protected).

Implement SkJavaOutputStream::bytesWritten(), overriding a new pure
virtual function on SkWStream.

Update Matrix calls to always return true (since SkMatrix calls no
longer return a value).

Depends on I816129d49c0118453222916f3c818eccac33663d (skia).

Change-Id: I5cdcea827ebff587df0bbddc0965e3e0fbf48002
ndroid/graphics/Matrix.java
a0a09e88ddd3292ec19cb2dcb1847348df3d16d1 03-Apr-2014 ztenghui <ztenghui@google.com> Merge "Clean up on VectorDrawable."
45dc35b3c9e7e1494c09f4ed167426da6d376a7d 03-Apr-2014 Alan Viverette <alanv@google.com> Fix dialog style, selectable item bg pinning, and pressed state

BUG: 13746931
Change-Id: I31c2959f3e773a3aeb66ba5842d8d6fbb288acc1
ndroid/graphics/drawable/Drawable.java
fba3bad3870d607ecaed4f147788885c841c2ab3 03-Apr-2014 ztenghui <ztenghui@google.com> Clean up on VectorDrawable.

Rename the test from DynamicDrawableTest to VectorDrawableTest.
Remove duplicate function calls in the test.
Fix comments in VectorDrawable

Change-Id: I1ef87137088ccc10b1abdb40ca368345d9dbadab
ndroid/graphics/drawable/VectorDrawable.java
177dffd869ff1f5bdf816faead01a7dc4980bf75 01-Apr-2014 ztenghui <ztenghui@google.com> Getting the version information into the VectorDrawable

This will allow version controling for later API improvement.
We will only support version 1 so far.

Change-Id: I322e63f6cff157ebb6df5d80625c39bf96ff3659
ndroid/graphics/drawable/VectorDrawable.java
411873953e63c29e9ce9d98f93a97a5d6dd9f82b 31-Mar-2014 SeongJae Park <sj38.park@gmail.com> fix trivial typo: s/meansure/measure

Change-Id: I6d879a03f23fc9ad69b1d676bf7a0a08c1124524
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
ndroid/graphics/PathMeasure.java
fe710551cfd98ce90f331e3b9a240d46f303f7b1 31-Mar-2014 Craig Stout <cstout@google.com> am ecaea7e6: Merge "Force refresh of stateful when a child drawable is changed." into klp-modular-dev

* commit 'ecaea7e60c0992ac295163f55c1f986a46eef008':
Force refresh of stateful when a child drawable is changed.
1c4e36c973ae89b1793bd557405bab958fffeea8 31-Mar-2014 Alan Viverette <alanv@google.com> Clean up LayerDrawable, ensure cached values are cleared on changes

Change-Id: I9a652475b6ad66379b1298bf53cd5dcb1a1dd37b
ndroid/graphics/drawable/LayerDrawable.java
5b15b1717ef95ef8c91f8587fee1f789aec6ae49 11-Dec-2013 Shuhrat Dehkanov <k@efir.uz> Correct typo in doc comment

Changed "will" to "with"
(will null Options -> with null Options)

Change-Id: I3bbfb953d8e783ca6335247463007cbee722a28e
Signed-off-by: Shuhrat Dehkanov <k@efir.uz>
ndroid/graphics/BitmapFactory.java
e3eb8ec0b780ef2603917a1c8d8ade55658755bb 27-Mar-2014 Alan Viverette <alanv@google.com> Allow a null tint in TouchFeedbackDrawable

This ensures we won't crash if a Quantum drawable is inflated in a
Holo theme, but it won't look correct, so don't do that.

BUG: 13677025
Change-Id: I30cbff36bf3746543240d4c96cc57776874566d8
ndroid/graphics/drawable/TouchFeedbackDrawable.java
5ed67222feca0d32bfb423b9bb50ba235d1b8394 27-Mar-2014 Craig Stout <cstout@google.com> Force refresh of stateful when a child drawable is changed.

Change-Id: Ie17d4c8bceae385e597f3006fcd456be9ef53b97
ndroid/graphics/drawable/LayerDrawable.java
776abc24cdd18610232a50b997cce3cffa74609b 07-Mar-2014 Adam Lesinski <adamlesinski@google.com> Uses VMRuntime.newUnpaddedArray for ideal array sizes

Bug:13028925

Change-Id: I0a9301248b10a339afbdc5e4ffe3310ac4fa1fb7
ndroid/graphics/TemporaryBuffer.java
2c5d6d742a35885820c33364fec65a7e163fbbf8 27-Mar-2014 Alan Viverette <alanv@google.com> Merge "Separate ripple animation logic, remove RevealDrawable"
abb7d134c02ac60091108c491dafb00877093170 25-Feb-2014 John Hoford <hoford@google.com> add Dynamic Drawable (vector graphics for Icons)

Change-Id: Id44b7f6d1b8dd073b8ed35e2142a380550f2449b
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/VectorDrawable.java
47bf0d95ef6c9ac68773567d503749c874a07f2f 27-Mar-2014 Alan Viverette <alanv@google.com> Separate ripple animation logic, remove RevealDrawable

Change-Id: I9d0370cea288e6caf518209b5bc94a66a0f9176f
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/RevealDrawable.java
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/TouchFeedbackDrawable.java
c21929c710949a48790fa2701c47cedfabb7b9dc 25-Mar-2014 Chris Craik <ccraik@google.com> Merge "Fix doc build"
f975823773ffddde476e8a8563702f5acc45ab6c 25-Mar-2014 Chris Craik <ccraik@google.com> Fix doc build

Change-Id: I18627229be3e8e242e469af83e7e5ae580b03707
ndroid/graphics/Outline.java
803d91b2b2eef42e1ebe088613f83e555d2bfd04 25-Mar-2014 Tim Kilbourn <tkilbourn@google.com> Fix NPE when inflating GradientDrawables.

Change-Id: If624d6efac61dabe6009ee4368ad7b119e1d4dcd
ndroid/graphics/drawable/GradientDrawable.java
840dede901e6247f3bb55009c1500f8623829375 25-Mar-2014 Alan Viverette <alanv@google.com> Unhide touch feedback drawable and wrapper

Change-Id: I98926d4adfb6e8c6130b31c8f4534a1a382d0f3b
ndroid/graphics/drawable/DrawableWrapper.java
ndroid/graphics/drawable/TouchFeedbackDrawable.java
52b999f0721b53e9c6e18a4bd664e89aeb65b2d5 25-Mar-2014 Alan Viverette <alanv@google.com> Implement APIs for obtaining, caching themed Drawables

When Drawables are inflated during preload (or otherwise without a theme)
they cache their themeable attributes in their constant state as an array
keyed on attribute index. Drawables inflated with a theme will simply
resolve theme attributes as part of normal inflation, and they will not
cache any themeable attributes.

Drawables obtained from Resources are pulled from theme-specific cache
when possible. If an unthemed Drawable exists in the preload cache, a
new constant state will be obtained for the Drawable and the theme will
be applied by resolving the cached themeable attributes and overwriting
their respective constant state properties. If no cached version exists,
a new Drawable is inflated against the desired theme.

Constant states from themed drawables may be cached if the applied theme
is "pure" and was loaded from a style resource without any subsequent
modifications.

This CL does not handle applying themes to several Drawable types, but it
fully supports BitmapDrawable, GradientDrawable, NinePatchDrawable,
ColorDrawable, and TouchFeedbackDrawable.

BUG: 12611005
Change-Id: I4e794fbb62f7a371715f4ebdf946ee5f9a5ad1c9
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/LevelListDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/RevealDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
ndroid/graphics/drawable/TouchFeedbackDrawable.java
ndroid/graphics/drawable/TransitionDrawable.java
76c30ce3c1d8f1a818502aaea2c42c84d6bd3f92 24-Mar-2014 Chris Craik <ccraik@google.com> Merge "Rework Outline API, remove isolatedZVolume remnants"
1e1f4d705edaad3700b49c730bc8a22c522cb46b 24-Mar-2014 John Reck <jreck@google.com> am 02e99e27: am ae316643: am aff40e25: am fc603ca6: am abf701e6: Merge "Eliminate mHasAlpha" into klp-dev

* commit '02e99e272dbfedf5d9ba1ae91fa2b83cab5b3d07':
Eliminate mHasAlpha
b49f446c98096c4790a11d9b5bc83a4e585278c9 20-Mar-2014 Chris Craik <ccraik@google.com> Rework Outline API, remove isolatedZVolume remnants

Change-Id: I30c2fe832dcb98fa6329b1a595b3d3aafbdcad6b
ndroid/graphics/Outline.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/GradientDrawable.java
ae31664390a95b1a0b80bf7aa246b8413b469ea7 21-Mar-2014 John Reck <jreck@google.com> am aff40e25: am fc603ca6: am abf701e6: Merge "Eliminate mHasAlpha" into klp-dev

* commit 'aff40e25e8f16c3ecd20376901d7062774850023':
Eliminate mHasAlpha
aff40e25e8f16c3ecd20376901d7062774850023 21-Mar-2014 John Reck <jreck@google.com> am fc603ca6: am abf701e6: Merge "Eliminate mHasAlpha" into klp-dev

* commit 'fc603ca6b518777a7e4dc391bc771e5609ab3ab5':
Eliminate mHasAlpha
48a851f66b87b355fbdf1d048aef4d5465594ad7 21-Mar-2014 John Reck <jreck@google.com> am fc603ca6: am abf701e6: Merge "Eliminate mHasAlpha" into klp-dev

* commit 'fc603ca6b518777a7e4dc391bc771e5609ab3ab5':
Eliminate mHasAlpha
fc603ca6b518777a7e4dc391bc771e5609ab3ab5 21-Mar-2014 John Reck <jreck@google.com> am abf701e6: Merge "Eliminate mHasAlpha" into klp-dev

* commit 'abf701e6751aed487d4ed0986e0fae8810c3658f':
Eliminate mHasAlpha
91f0a455bb6670b59b8d15cc7a9adb0e6d7f146d 21-Mar-2014 John Reck <jreck@google.com> Eliminate mHasAlpha

Bug: 13580771

The cached value mHasAlpha on Bitmap could get out of sync with the
real value stored in the SkBitmap. Fix this by just eliminating the
cached value. This adds an extra JNI call in copy(), createBitmap(),
and setPremultiplied(), none of which are going to be significantly
impacted by the extra JNI call.

Change-Id: I4fce069a77d9b3bbb47dde04275ff8510ce7e4f0
ndroid/graphics/Bitmap.java
72191f3dc186e7dbe36096fdadad6845c735f8a8 18-Mar-2014 Dan Stoza <stoza@google.com> Merge "Remove deprecated BufferQueue constructor"
c4c484c6a77b6b88030f1cb7e810918d8ad92146 18-Mar-2014 Ben Murdoch <benm@google.com> am e9529bc4: am d292aac5: am 889a1ddd: Fix JavaDoc

* commit 'e9529bc4cb28176fddf1e7916c7791e5974f2fc3':
Fix JavaDoc
f168e4c46cf8102263b7c92807d35b19d827339a 18-Mar-2014 Doug Zongker <dougz@android.com> resolved conflicts for merge of a1ca303a to master

Change-Id: I37ef6102fd79e396fa3e50d6c012a667488a306d
d292aac5eb48f6970ba4795265bd45761c063209 17-Mar-2014 Ben Murdoch <benm@google.com> am 889a1ddd: Fix JavaDoc

* commit '889a1ddd00b74933d5f7daa651d98133bcb034ba':
Fix JavaDoc
889a1ddd00b74933d5f7daa651d98133bcb034ba 17-Mar-2014 Ben Murdoch <benm@google.com> Fix JavaDoc

Change-Id: I20d0b1544ba88c694b950ef6062f93c65b16d371
ndroid/graphics/Bitmap.java
966bfa8df40d3d27bacdb2d9f8eb05c3eebafd01 17-Mar-2014 Torne (Richard Coles) <torne@google.com> am 01252217: Merge "Fix javadoc." into klp-modular-dev

* commit '01252217a5d779c885645028a5df70215e7be4f4':
Fix javadoc.
5aa9c5a77ba498108f7395df1865ee34eacebf49 17-Mar-2014 Torne (Richard Coles) <torne@google.com> Fix javadoc.

Fix javadoc reference missing a #

Bug: 13246311
Change-Id: Ifc06234943339250feb5b4f2077af03c35be076e
ndroid/graphics/Bitmap.java
96978ee290ea0ef666c49ffa8733a8c74304c9f1 17-Mar-2014 Leon Scroggins III <scroggo@google.com> am f8d8777d: Update framework to use M33 Skia. DO NOT MERGE

* commit 'f8d8777dddf91c741981b4f795f2fb2b1d81c1b6':
Update framework to use M33 Skia. DO NOT MERGE
f8d8777dddf91c741981b4f795f2fb2b1d81c1b6 03-Dec-2013 Leon Scroggins III <scroggo@google.com> Update framework to use M33 Skia. DO NOT MERGE

(These CLs are already in master.)

Bug: 13246311

This cherry-picks 7 CLs:

-----------------------------------------------------------------------

Remove calls to deprecated SkBitmap::setIsOpaque()

setIsOpaque() has been removed from ToT Skia.

Update setters for mIsPremultiplied and hasAlpha to take the
other into consideration.

cherry-pick from: I1b36b0b0ce7126031eb7b769b563c17dcd4b306a

-----------------------------------------------------------------------

Merge AssetStream with AssetStreamAdaptor.

Add enums to the constructor for AssetStreamAdaptor to choose the
different behaviors used by the (former) two different classes.

The old clients of AssetStream now get the following features of
AssetStreamAdaptor
- Debugging statements on error.
- The stream is an SkStreamRewindable.
- getLength() returns the correct value, and the old way of getting
the length (read(NULL, 0)) is no longer implemented, since it is
no longer used.
- isAtEnd() returns the correct value. ToT Skia makes it pure virtual,
so some implementation is necessary.

cherry-pick from: I2a5395914e4f53830aaefee396556459083a1c56

-----------------------------------------------------------------------

Deprecate Android-specific SkPaint functions.

The following functions were problematic:
const SkGlyph& getUnicharMetrics(SkUnichar, const SkMatrix*);
const SkGlyph& getGlyphMetrics(uint16_t, const SkMatrix*);
const void* findImage(const SkGlyph&, const SkMatrix*);

Replacing them with calls through SkGlyphCache solved a nasty crash
bug, so they have all been deprecated.

Bug: 11968757
cherry-pick from: Id746315d41aec5b211b78b172a883c2061130f08

-----------------------------------------------------------------------

pass SkGlyphCache into updateGlyphCache()

Doing so prevents us from double-locking the glyph cache, thereby
effectively locking ourselves out of reusing work that we'd just done.

Bug: 11968757
cherry-pick from: I5c552f2d0bbe30af2ce9054ba684e7da756a0d89

-----------------------------------------------------------------------

Updates to the Skia API needed to merge the WebView m33 version of Skia.

cherry-pick from: I0f63b53f2aae58871413b132742fc84138f069a3

Bugfix for screenshots (recent apps) due to incorrect rowBytes computation

bug: 12915192
cherry-pick from: I4d5fe2a2f75baf66099e0970fb646686a1992714

-----------------------------------------------------------------------

Fix bug in AndroidPixelRef where we did not store the correct imageInfo for a recycled bitmap.

cherry-pick from: I882483b78886e2f19fa4e43a86e69f5a82b3b7e5

-----------------------------------------------------------------------

Change-Id: Ie2b731a9f0795802418cfecddb4b684c92c64d33

Conflicts:
core/jni/android/graphics/Bitmap.cpp
core/jni/android/graphics/Graphics.cpp
core/jni/android/graphics/Typeface.cpp
graphics/java/android/graphics/Bitmap.java
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
0ebc6b378dca76b3253b10cf17c3a38a0a50c073 13-Mar-2014 Jason Sams <jsams@google.com> Force merge of remaining KLP changes to fix build.

Change-Id: I389a23c6615663c325980fcb30350ea6635d2d17
ndroid/renderscript/RenderScript.java
fc15f899b86aa39bd32e3d38a9f5369ee8f0e2c8 13-Mar-2014 Jason Sams <jsams@google.com> Fix build issues from bad merge

Change-Id: I6ebac7c87b807a8ed2fbeac895c1db8b199f715a
ndroid/renderscript/BaseObj.java
632c915ce8675033bbb7d356239d16594b26dffb 13-Mar-2014 Jason Sams <jsams@google.com> resolved conflicts for merge of 780d57b8 to klp-modular-dev

Change-Id: Idf2f939c25c342fff98da6b83be875d7708deba0
280db65032fe0ed6897bc33c627ae176daecb1c2 13-Mar-2014 Jason Sams <jsams@google.com> am e14d5e90: am 5757bf89: Add hidden minor version ID for support lib workarounds.

* commit 'e14d5e901172559a5e18077bde3ccafd03e8a6e2':
Add hidden minor version ID for support lib workarounds.
0dc146be5a6cd0c33910d5b18885df46873a93cb 12-Mar-2014 Dan Stoza <stoza@google.com> Remove deprecated BufferQueue constructor

Bug: 13415624
Change-Id: Ib9788bca98fca22e0e4d81756d4aa3b29d5d5af2
ndroid/graphics/SurfaceTexture.java
ba346f9d8d681c3c8166609382eb882e538b9b05 11-Mar-2014 Alan Viverette <alanv@google.com> Unify touch feedback drawable and reveal drawable

BUG: 13030730
Change-Id: I65a50a00bd76b80bb242b1573b89e443e2e143fe
ndroid/graphics/drawable/DrawableWrapper.java
ndroid/graphics/drawable/TouchFeedbackDrawable.java
780d57b81ac1a9af6ae533f5039cd91a662b49f4 11-Mar-2014 Jason Sams <jsams@google.com> am cf8573c1: Fix destruction issues relating to AllocationAdapter.

* commit 'cf8573c15456c4581b691c7380722ea6dccf11c5':
Fix destruction issues relating to AllocationAdapter.
e14d5e901172559a5e18077bde3ccafd03e8a6e2 11-Mar-2014 Jason Sams <jsams@google.com> am 5757bf89: Add hidden minor version ID for support lib workarounds.

* commit '5757bf89c44e7a4805340b5634bec13a1caf39f8':
Add hidden minor version ID for support lib workarounds.
0165db3802f0fafe0ad86b7699be7adaea6686da 11-Mar-2014 Jason Sams <jsams@google.com> am ff7256e7: Fix destruction issues relating to AllocationAdapter.

* commit 'ff7256e757502279b1777127a12eba235be679ae':
Fix destruction issues relating to AllocationAdapter.
cf8573c15456c4581b691c7380722ea6dccf11c5 10-Mar-2014 Jason Sams <jsams@google.com> Fix destruction issues relating to AllocationAdapter.

bug 13170046

Change-Id: I2a2ba3cbd7d08c659ed8958fbcc01919e36e86b0
ndroid/renderscript/AllocationAdapter.java
ndroid/renderscript/BaseObj.java
5757bf89c44e7a4805340b5634bec13a1caf39f8 10-Mar-2014 Jason Sams <jsams@google.com> Add hidden minor version ID for support lib workarounds.

bug 13170046

Change-Id: I0c77901752e9a0b10bd5be62311c79a0ab7128e5
ndroid/renderscript/RenderScript.java
ff7256e757502279b1777127a12eba235be679ae 10-Mar-2014 Jason Sams <jsams@google.com> Fix destruction issues relating to AllocationAdapter.

bug 13170046

Change-Id: I922b19c086b675949c6fae66c6dcb4c8af3b715f
ndroid/renderscript/BaseObj.java
ndroid/renderscript/RenderScript.java
6bf9ef8c06c3c4be9df094a2deaaa76c5da4606b 07-Mar-2014 Leon Scroggins III <scroggo@google.com> am 87e9e744: am 92a32832: DO NOT MERGE - Fix Javadoc build break.

* commit '87e9e744ed7acc554a6b4c7dd90fab376eabb30b':
DO NOT MERGE - Fix Javadoc build break.
42ae4cf2ce5ba02c2211813452badc07eab33735 07-Mar-2014 Leon Scroggins III <scroggo@google.com> Merge "resolved conflicts for merge of 8d3281f5 to klp-dev-plus-aosp" into klp-dev-plus-aosp
e898f14cd55598aff2630582d24aa33a868b7733 07-Mar-2014 Narayan Kamath <narayan@google.com> am b90fc64b: am f44a3f1e: Merge "Use long for pointers in EmojiFactory and PdfDocument"

* commit 'b90fc64b030ee50bda9a0dabb5247660b70d6659':
Use long for pointers in EmojiFactory and PdfDocument
dbe1aaa6a8f7004676a1796630feff66fb75e990 07-Mar-2014 Tim Murray <timmurray@google.com> am 16e9362e: am 8fced317: Merge "Move RenderScript from graphics/ to new fw/base subdirectory rs."

* commit '16e9362e5f5b4f09a46198218380bb386fee28e5':
Move RenderScript from graphics/ to new fw/base subdirectory rs.
ac68141753af760798e831ecfbf997f6a92b13ea 07-Mar-2014 Tim Murray <timmurray@google.com> am 8df3ea66: am b4cf2a2a: Merge "Convert Java/JNI to 64-bit, part 2."

* commit '8df3ea66994e96d72040c44099dd2d74ba15ec67':
Convert Java/JNI to 64-bit, part 2.
516f72448a4324aaa19133557e15e42b1f11d83d 07-Mar-2014 Tim Murray <timmurray@google.com> am 72d637e2: am e22e268e: Merge changes If93a5d78,I1957f7ac

* commit '72d637e297a143e5b18c8e8f4eb85695ed6b10f1':
Convert Java/JNI to 64-bit, part 1.
Add long/double read support.
b0cb2bb53f674e621efa268b630e7021cd95ab47 07-Mar-2014 Tim Murray <timmurray@google.com> am bccee732: am 61eb6b55: Merge "Use Object + type in place of specific array"

* commit 'bccee732b53d06c0e983b3f325e0d9ad889de134':
Use Object + type in place of specific array
5a00a96482f5d1530bb17e372f9da8fe8883ad19 07-Mar-2014 Tim Murray <timmurray@google.com> am 69914882: am e559d7ee: Merge "Utility API for creating types."

* commit '69914882509b8ad81c23eadd1ebae53fb532042b':
Utility API for creating types.
f9b86add00b7387c334a669aa9bbf4cc89496246 07-Mar-2014 Tim Murray <timmurray@google.com> am 271c3b74: am b1c1518e: Merge "Remove old hidden API."

* commit '271c3b7499f53f6e7e168d68910efda5cc19f5fd':
Remove old hidden API.
cccdf29d86e42765b6924aa39f450d72f971e30b 07-Mar-2014 Tim Murray <timmurray@google.com> am 9bad32c3: am aea3b581: Merge "Remove hidden API setSurfaceTexture."

* commit '9bad32c3830e45615a6b71e3f80ca7b95ef638b5':
Remove hidden API setSurfaceTexture.
e648c19bf33ce78b3f67b7ffd95c92fd6996c418 07-Mar-2014 Leon Scroggins III <scroggo@google.com> resolved conflicts for merge of 8d3281f5 to klp-dev-plus-aosp

Change-Id: If2855ff4f7a1e7645c69af378955868f44187376
87e9e744ed7acc554a6b4c7dd90fab376eabb30b 06-Mar-2014 Leon Scroggins III <scroggo@google.com> am 92a32832: DO NOT MERGE - Fix Javadoc build break.

* commit '92a3283286df3a6c2a27ecde8eddf23abbb87de9':
DO NOT MERGE - Fix Javadoc build break.
92a3283286df3a6c2a27ecde8eddf23abbb87de9 15-Jan-2014 Leon Scroggins III <scroggo@google.com> DO NOT MERGE - Fix Javadoc build break.

Remove links to non-specific function name.

Bug: 13246311

Change-Id: I5643074149d0a511bd760d638751c44e3ec4c557
(cherry picked from commit 2bc49ca96eb786f66dc2b9573e1f09bdb2d82d5e)
ndroid/graphics/Bitmap.java
8d3281f5f7a880b996e50d291ebb7154a486eb6c 06-Mar-2014 Leon Scroggins III <scroggo@google.com> am ee008d42: Merge "Update framework to use M33 Skia. DO NOT MERGE" into klp-dev

* commit 'ee008d4264a95bba5f90b17856fc06fa29a6f12c':
Update framework to use M33 Skia. DO NOT MERGE
5e49b497ae2019586937aae0e8159292363728b5 03-Dec-2013 Leon Scroggins III <scroggo@google.com> Update framework to use M33 Skia. DO NOT MERGE

(These CLs are already in master.)

Bug: 13246311

This cherry-picks 7 CLs:

-----------------------------------------------------------------------

Remove calls to deprecated SkBitmap::setIsOpaque()

setIsOpaque() has been removed from ToT Skia.

Update setters for mIsPremultiplied and hasAlpha to take the
other into consideration.

cherry-pick from: I1b36b0b0ce7126031eb7b769b563c17dcd4b306a

-----------------------------------------------------------------------

Merge AssetStream with AssetStreamAdaptor.

Add enums to the constructor for AssetStreamAdaptor to choose the
different behaviors used by the (former) two different classes.

The old clients of AssetStream now get the following features of
AssetStreamAdaptor
- Debugging statements on error.
- The stream is an SkStreamRewindable.
- getLength() returns the correct value, and the old way of getting
the length (read(NULL, 0)) is no longer implemented, since it is
no longer used.
- isAtEnd() returns the correct value. ToT Skia makes it pure virtual,
so some implementation is necessary.

cherry-pick from: I2a5395914e4f53830aaefee396556459083a1c56

-----------------------------------------------------------------------

Deprecate Android-specific SkPaint functions.

The following functions were problematic:
const SkGlyph& getUnicharMetrics(SkUnichar, const SkMatrix*);
const SkGlyph& getGlyphMetrics(uint16_t, const SkMatrix*);
const void* findImage(const SkGlyph&, const SkMatrix*);

Replacing them with calls through SkGlyphCache solved a nasty crash
bug, so they have all been deprecated.

Bug: 11968757
cherry-pick from: Id746315d41aec5b211b78b172a883c2061130f08

-----------------------------------------------------------------------

pass SkGlyphCache into updateGlyphCache()

Doing so prevents us from double-locking the glyph cache, thereby
effectively locking ourselves out of reusing work that we'd just done.

Bug: 11968757
cherry-pick from: I5c552f2d0bbe30af2ce9054ba684e7da756a0d89

-----------------------------------------------------------------------

Updates to the Skia API needed to merge the WebView m33 version of Skia.

cherry-pick from: I0f63b53f2aae58871413b132742fc84138f069a3

Bugfix for screenshots (recent apps) due to incorrect rowBytes computation

bug: 12915192
cherry-pick from: I4d5fe2a2f75baf66099e0970fb646686a1992714

-----------------------------------------------------------------------

Fix bug in AndroidPixelRef where we did not store the correct imageInfo for a recycled bitmap.

cherry-pick from: I882483b78886e2f19fa4e43a86e69f5a82b3b7e5

-----------------------------------------------------------------------

Change-Id: Ie2b731a9f0795802418cfecddb4b684c92c64d33
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
5be83edd15e11420287cc0af93a95d5a6dfae68f 04-Mar-2014 Chris Craik <ccraik@google.com> Add Path.isConvex, and force View outlines to be convex

Change-Id: Idf3f1ee44240d77f7a7ddd0da898da8aa5d41864
ndroid/graphics/Path.java
af7c240b99506d2c81a72be738eb270ecaa39699 27-Feb-2014 Alan Viverette <alanv@google.com> Restore getTintMode() method on BitmapDrawable

Change-Id: I8fffc90ce3f0811d75b517d2dfc71de731188da6
ndroid/graphics/drawable/BitmapDrawable.java
09ceac298cc12471e4575fe49f97766c1ed7b2a1 27-Feb-2014 Alan Viverette <alanv@google.com> Clean up tint API

Change-Id: I56056e7596840c563f5332922d63e8893a0cac17
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
2cc13d0ef11a4dda0265c2348c6861ab74cab82e 27-Feb-2014 Alan Viverette <alanv@google.com> Fix shape drawable constructor

Change-Id: Ibb2c1993faf9d2baae3130f334475aa07fbe9015
ndroid/graphics/drawable/ShapeDrawable.java
813d85b82cb7cbaa5dbe05496d1038caa17a1698 27-Feb-2014 Alan Viverette <alanv@google.com> Fix progress bar tinting, add tint support to ShapeDrawable

Cleans up APIs a little, since I think we may want to add tinting
modes beyond what Porter-Duff can provide. Plus we don't actually
support some of the Porter-Duff modes in hardware.

Change-Id: I2cea1b737cc93607a24842c54eb9f0d8346b29d4
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
a77cf8735432daddb233164f41103a0ff38408bb 25-Feb-2014 John Spurlock <jspurlock@google.com> Merge "Tabs -> spaces in frameworks/base."
8a985d24ce9a38f40ed88fecbdcd0e75e3a68f44 25-Feb-2014 John Spurlock <jspurlock@google.com> Tabs -> spaces in frameworks/base.

Change-Id: I5a84e8e93ac99b5ed0212b37bf66efa5e53864be
ndroid/graphics/LayerRasterizer.java
ndroid/graphics/LinearGradient.java
ndroid/graphics/RadialGradient.java
b644a3b84521e2155a5af985a4d4ed305474e567 17-Jan-2014 Derek Sollenberger <djsollen@google.com> Updates to the Skia API needed to merge the WebView m33 version of Skia.

This is a cherry-pick of 2 CLs:

21969a2b26945da3fd86aef7c93479e4fb359a65
c7a581cf7691db5c61e6694aa51daaa994004bd9

Change-Id: I6fd9366fbba0a336de1df794be9497983bfd13ae
ndroid/graphics/Bitmap.java
12b97f5d2b15194ed6673c9838b13c8312157709 24-Feb-2014 Alan Viverette <alanv@google.com> Change colorFilterColor to tint, allow use of ColorStateList

BUG: 13149901
Change-Id: I6487bec372cb74db53d7bbdfa35de071764763b0
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/TouchFeedbackDrawable.java
cb29189c29a553a8005044f32de37a610f2857db 20-Feb-2014 Alan Viverette <alanv@google.com> Fix density in touch feedback drawable

Change-Id: I90b08aea9f5ba0a29ae5328960bacebc6c2099d8
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/TouchFeedbackDrawable.java
7f610fed107b158c144dca1b20a44ee91eb8c934 19-Feb-2014 Alan Viverette <alanv@google.com> Fix for reveal animated drawables

Includes fixes for RevealDrawable clipping, touch feedback constant
state, and action bar background display lists.

BUG: 13065159
Change-Id: Ie4bf03f59da69047e18a8fe9233c3d24b0160576
ndroid/graphics/drawable/RevealDrawable.java
ndroid/graphics/drawable/TouchFeedbackDrawable.java
b32b8a52a3aa2d9d7b5ffaea28e0e31cb077f5e0 14-Feb-2014 Alan Viverette <alanv@google.com> Fix gradient radius type

BUG: 13029355
Change-Id: I5139d5da592b8bbf420a31895ae50c365538b9cf
ndroid/graphics/drawable/GradientDrawable.java
861621eb8a3bd8896bc00c4c5bc8af6816215e21 12-Feb-2014 Alan Viverette <alanv@google.com> Fix gradient radius attribute to match documentation

BUG: 12191666
Change-Id: I62de3296500543797c595eeee15aa250e5b1511a
ndroid/graphics/drawable/GradientDrawable.java
a1cffb429c57eb961282160ae4631d70bfa55204 11-Feb-2014 Narayan Kamath <narayan@google.com> am d350af96: am b90fc64b: am f44a3f1e: Merge "Use long for pointers in EmojiFactory and PdfDocument"

* commit 'd350af9695018e81f85600fb7dd906003cbaf62e':
Use long for pointers in EmojiFactory and PdfDocument
d350af9695018e81f85600fb7dd906003cbaf62e 11-Feb-2014 Narayan Kamath <narayan@google.com> am b90fc64b: am f44a3f1e: Merge "Use long for pointers in EmojiFactory and PdfDocument"

* commit 'b90fc64b030ee50bda9a0dabb5247660b70d6659':
Use long for pointers in EmojiFactory and PdfDocument
f44a3f1e00e38b09f70efed3eaf771871435e478 11-Feb-2014 Narayan Kamath <narayan@google.com> Merge "Use long for pointers in EmojiFactory and PdfDocument"
76d3a1b8d035d27bc80b0f2fc480a903bd001514 10-Dec-2013 Derek Sollenberger <djsollen@google.com> Removing SkiaColorFilter and inspecting the native object directly.

bug: 10650594
Change-Id: I4fcf66d008765afa0e35d011f58bc792183cb74f
ndroid/graphics/ColorFilter.java
ndroid/graphics/ColorMatrixColorFilter.java
ndroid/graphics/LightingColorFilter.java
ndroid/graphics/PorterDuffColorFilter.java
d5154ec2bc7e7c0bdfd14fc784912d390afe43cc 06-Feb-2014 Alan Viverette <alanv@google.com> Add prototype for borderless touch feedback drawable

Change-Id: I6366855b1fb838aa077bc6bdb62adc2134c51dca
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/Ripple.java
ndroid/graphics/drawable/TouchFeedbackDrawable.java
87980f9a7383fa4150f9c037ed34c37677f97f97 05-Feb-2014 Alan Viverette <alanv@google.com> Adds hotspot support to LayerDrawable and InsetDrawable

Change-Id: Id17f460c8e4e0a6bf9fd39a4a7b8c79fa2df8d29
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
a8b2edec93beeaa76b3cfc93bb9cb3e19fc34add 04-Feb-2014 Alan Viverette <alanv@google.com> Clean up RotateDrawable, add getters and setters for XML properties

Change-Id: I1bb174e981fb6df910fee3a9d596c0249282928c
ndroid/graphics/drawable/RotateDrawable.java
2905039d523610c5253b247dd77292c7bda830b7 03-Feb-2014 Tim Murray <timmurray@google.com> am 16e9362e: am 8fced317: Merge "Move RenderScript from graphics/ to new fw/base subdirectory rs."

* commit '16e9362e5f5b4f09a46198218380bb386fee28e5':
Move RenderScript from graphics/ to new fw/base subdirectory rs.
47f295e8cb26991fe4b1d5f0a218222a0728d9a2 03-Feb-2014 Tim Murray <timmurray@google.com> am 8df3ea66: am b4cf2a2a: Merge "Convert Java/JNI to 64-bit, part 2."

* commit '8df3ea66994e96d72040c44099dd2d74ba15ec67':
Convert Java/JNI to 64-bit, part 2.
041c77ac440efc6c61b7d1f68b885ad3a8015237 03-Feb-2014 Tim Murray <timmurray@google.com> am 72d637e2: am e22e268e: Merge changes If93a5d78,I1957f7ac

* commit '72d637e297a143e5b18c8e8f4eb85695ed6b10f1':
Convert Java/JNI to 64-bit, part 1.
Add long/double read support.
923da98f792d97638f78f311ac80cac53e306408 03-Feb-2014 Tim Murray <timmurray@google.com> am bccee732: am 61eb6b55: Merge "Use Object + type in place of specific array"

* commit 'bccee732b53d06c0e983b3f325e0d9ad889de134':
Use Object + type in place of specific array
4e5e654e7aac2212e40915df16fe6ad8598fb4bc 03-Feb-2014 Tim Murray <timmurray@google.com> am 69914882: am e559d7ee: Merge "Utility API for creating types."

* commit '69914882509b8ad81c23eadd1ebae53fb532042b':
Utility API for creating types.
b0a79d35929d874628c3e0add672eff498e26b83 03-Feb-2014 Tim Murray <timmurray@google.com> am 271c3b74: am b1c1518e: Merge "Remove old hidden API."

* commit '271c3b7499f53f6e7e168d68910efda5cc19f5fd':
Remove old hidden API.
a392cdf375e4f43bea8c5398ed2b3bc993a31a77 03-Feb-2014 Tim Murray <timmurray@google.com> am 9bad32c3: am aea3b581: Merge "Remove hidden API setSurfaceTexture."

* commit '9bad32c3830e45615a6b71e3f80ca7b95ef638b5':
Remove hidden API setSurfaceTexture.
c8577b384a0e0e04eed6d05660e013b5db47b7f2 31-Jan-2014 Alan Viverette <alanv@google.com> Merge "Revert "Cache display lists for Drawables""
16f1d81d47beb1e04504a76de66e2919dde08c33 31-Jan-2014 Alan Viverette <alanv@google.com> Revert "Cache display lists for Drawables"

This reverts commit c062c7003f34999632fe4ad721dcd47cd71b2159.

Change-Id: I96d4f0482b927101f52140b667f4c38ffc8687f5
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/PictureDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
40df78153987409dbf299b84da9784b69029e184 31-Jan-2014 Alan Viverette <alanv@google.com> Simplify GradientDrawable's use of ColorStateList

BUG: 12816352
Change-Id: Icff432ee5d460ca733866185b8bf61fd50248cfc
ndroid/graphics/drawable/GradientDrawable.java
355707e4f665904e31d9f5fcff1e3921f7db8cdd 17-Dec-2013 Tim Murray <timmurray@google.com> Move RenderScript from graphics/ to new fw/base subdirectory rs.

Change-Id: I30b6633578f063840e1bdbcc9ba513b727912a6d
ndroid/renderscript/Allocation.java
ndroid/renderscript/AllocationAdapter.java
ndroid/renderscript/BaseObj.java
ndroid/renderscript/Byte2.java
ndroid/renderscript/Byte3.java
ndroid/renderscript/Byte4.java
ndroid/renderscript/Double2.java
ndroid/renderscript/Double3.java
ndroid/renderscript/Double4.java
ndroid/renderscript/Element.java
ndroid/renderscript/FieldPacker.java
ndroid/renderscript/FileA3D.java
ndroid/renderscript/Float2.java
ndroid/renderscript/Float3.java
ndroid/renderscript/Float4.java
ndroid/renderscript/Font.java
ndroid/renderscript/Int2.java
ndroid/renderscript/Int3.java
ndroid/renderscript/Int4.java
ndroid/renderscript/Long2.java
ndroid/renderscript/Long3.java
ndroid/renderscript/Long4.java
ndroid/renderscript/Matrix2f.java
ndroid/renderscript/Matrix3f.java
ndroid/renderscript/Matrix4f.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/Path.java
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramFragmentFixedFunction.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/ProgramVertexFixedFunction.java
ndroid/renderscript/RSDriverException.java
ndroid/renderscript/RSIllegalArgumentException.java
ndroid/renderscript/RSInvalidStateException.java
ndroid/renderscript/RSRuntimeException.java
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RSTextureView.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/Sampler.java
ndroid/renderscript/Script.java
ndroid/renderscript/ScriptC.java
ndroid/renderscript/ScriptGroup.java
ndroid/renderscript/ScriptIntrinsic.java
ndroid/renderscript/ScriptIntrinsic3DLUT.java
ndroid/renderscript/ScriptIntrinsicBlend.java
ndroid/renderscript/ScriptIntrinsicBlur.java
ndroid/renderscript/ScriptIntrinsicColorMatrix.java
ndroid/renderscript/ScriptIntrinsicConvolve3x3.java
ndroid/renderscript/ScriptIntrinsicConvolve5x5.java
ndroid/renderscript/ScriptIntrinsicHistogram.java
ndroid/renderscript/ScriptIntrinsicLUT.java
ndroid/renderscript/ScriptIntrinsicYuvToRGB.java
ndroid/renderscript/Short2.java
ndroid/renderscript/Short3.java
ndroid/renderscript/Short4.java
ndroid/renderscript/Type.java
ndroid/renderscript/package.html
7a629fac82f88126642081b4474879f6a883e313 19-Nov-2013 Tim Murray <timmurray@google.com> Convert Java/JNI to 64-bit, part 2.

This changes BaseObj to support 64-bit IDs. There are a few caveats:

1. Since it is deprecated, RSG will not support 64-bit.
2. Currently, methods that pass arrays of IDs to the driver are not supported in 64-bit. This will be fixed in a later CL.

bug 11332320

Change-Id: If0dbecc8b285e260f767e441e05088b6a1b749a2
ndroid/renderscript/Allocation.java
ndroid/renderscript/AllocationAdapter.java
ndroid/renderscript/BaseObj.java
ndroid/renderscript/Element.java
ndroid/renderscript/FieldPacker.java
ndroid/renderscript/FileA3D.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/Path.java
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramFragmentFixedFunction.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/ProgramVertexFixedFunction.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/Script.java
ndroid/renderscript/ScriptGroup.java
ndroid/renderscript/ScriptIntrinsic.java
ndroid/renderscript/ScriptIntrinsic3DLUT.java
ndroid/renderscript/ScriptIntrinsicBlend.java
ndroid/renderscript/ScriptIntrinsicBlur.java
ndroid/renderscript/ScriptIntrinsicColorMatrix.java
ndroid/renderscript/ScriptIntrinsicConvolve3x3.java
ndroid/renderscript/ScriptIntrinsicConvolve5x5.java
ndroid/renderscript/ScriptIntrinsicHistogram.java
ndroid/renderscript/ScriptIntrinsicLUT.java
ndroid/renderscript/ScriptIntrinsicYuvToRGB.java
ndroid/renderscript/Type.java
a78e9adb864e27f54d82f325eb6148302cd03914 15-Nov-2013 Tim Murray <timmurray@google.com> Convert Java/JNI to 64-bit, part 1.

This converts context and device storage to use long instead of int.

bug 11332320

Change-Id: If93a5d78385d3004d5e709762b78bd1d3538088d
ndroid/renderscript/RenderScript.java
29868dfae26550a9541008b3e9b12fe2c58e1c7e 07-Nov-2013 Jason Sams <jsams@google.com> Add long/double read support.

Change-Id: I1957f7ac18262a3004a4adcb7c31055212e483c2
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
6fcf2e196b7ad3503ddab1ed9105ab4beed75760 06-Nov-2013 Jason Sams <jsams@google.com> Use Object + type in place of specific array

Changed to avoid the explosion of entry points in the JNI layer.

Change-Id: I7d6cc565c8853b06560eb891fdd5e8acf05c9779
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
4b7f37891b0d942a0bdc27ed8e92288a5509ae4f 10-Oct-2013 Jason Sams <jsams@google.com> Utility API for creating types.

Change-Id: I3263cb4440ef3a60cd418f0559b8c5638a9b8bf3
ndroid/renderscript/Type.java
2e059735607b99acfb480db07ab16c3a292f3501 26-Sep-2013 Jason Sams <jsams@google.com> Remove old hidden API.

This was never shipped and long since replaced by ioReceive().

Change-Id: Ieba7fd4305c2c561cc36154c57414783e4bf502b
ndroid/renderscript/Allocation.java
1887d523a52ee81f9e047e176aa8b67f52033035 25-Sep-2013 Jason Sams <jsams@google.com> Remove hidden API setSurfaceTexture.

Change-Id: Ib6a3c5b84550932168f314375e74059507fc01ae
ndroid/renderscript/Allocation.java
56f57ccbd4fbbf4d572cc966d1cb76d7ae7ad334 31-Jan-2014 George Mount <mount@google.com> Revert "Add Path trimming."

Bug 12489442
This reverts commit 7fe03a267e6edb65142444765ce29ad5ff126052.

Change-Id: Idf434d79683e170364838388c7933a8591f7f4d3
ndroid/graphics/Path.java
cdf34469b3a49b73ffa4ab2766b55d7c0946fab1 23-Jan-2014 Ashok Bhat <ashok.bhat@arm.com> Use long for pointers in EmojiFactory and PdfDocument

Change-Id: I275c9ce390dd9e01f772e2044c74cebdb0701de6
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
ndroid/graphics/pdf/PdfDocument.java
1e7011fb2903b6b10a78890b2f85ca026e49b168 29-Jan-2014 Narayan Kamath <narayan@google.com> Merge "Path.native_trim should return long, not int."
11f66d0874669cb23be87202f84b98be9ea7bbc8 29-Jan-2014 Narayan Kamath <narayan@google.com> am 1caea796: am c74f7619: am cdc095ae: am 7be33110: am d4ccffd3: Merge "AArch64: Use long for pointers in graphics/Interpolator"

* commit '1caea796c9f3154048c02db6f46c458e8a80c32c':
AArch64: Use long for pointers in graphics/Interpolator
c42de09a947fa511cc75a624c40b2d2816b8c0ee 29-Jan-2014 Narayan Kamath <narayan@google.com> am 67ac8120: am 0cc4bb1f: am e4fc5c17: am 74db9ddb: am 887b1ca8: Merge "AArch64: Use long for pointers in SurfaceTexture"

* commit '67ac8120bf4e01b1de9d46673142d7fb92615616':
AArch64: Use long for pointers in SurfaceTexture
cdc095ae4850d9ffd08de0d6e8828949603fcdd1 29-Jan-2014 Narayan Kamath <narayan@google.com> am 7be33110: am d4ccffd3: Merge "AArch64: Use long for pointers in graphics/Interpolator"

* commit '7be33110ea3e1a032ee3aa7c50f1dedf52fcab25':
AArch64: Use long for pointers in graphics/Interpolator
e4fc5c17c092a77e0647e01e93a6b0e806c27692 29-Jan-2014 Narayan Kamath <narayan@google.com> am 74db9ddb: am 887b1ca8: Merge "AArch64: Use long for pointers in SurfaceTexture"

* commit '74db9ddb341d9d7dafe36b2bc74e3aaf50dd3160':
AArch64: Use long for pointers in SurfaceTexture
d4ccffd3ba7f7c27ddfc56231cf7f2424842b1e3 29-Jan-2014 Narayan Kamath <narayan@google.com> Merge "AArch64: Use long for pointers in graphics/Interpolator"
887b1ca87941095797a246b2d68ec2626a7cfc43 29-Jan-2014 Narayan Kamath <narayan@google.com> Merge "AArch64: Use long for pointers in SurfaceTexture"
e55bc7f1575fc5dacac70c4cb209e6aa0c582e71 29-Jan-2014 Narayan Kamath <narayan@google.com> Path.native_trim should return long, not int.

Change-Id: Idafc4c58eb86ad1af614d31f8cb05216bd869482
ndroid/graphics/Path.java
be674bf688fec9ce4ec04e77c93644be8253d273 28-Jan-2014 Narayan Kamath <narayan@google.com> am 23abbfbb: am 154614ab: Merge "AArch64: Use long for pointers in graphics/Camera"

* commit '23abbfbb814501b825edc056027270f03f39506b':
AArch64: Use long for pointers in graphics/Camera
7ae1726d0b962878cce4c1fe6c814a315f253293 28-Jan-2014 Narayan Kamath <narayan@google.com> am aa9ba887: am 6e09eb4c: Merge "AArch64: Make graphics classes 64-bit compatible"

* commit 'aa9ba887371e875ffbde49f43fa12bb5f123425b':
AArch64: Make graphics classes 64-bit compatible
5753b45516607988d5e84fee448d020911dde5d1 13-Jan-2014 Ashok Bhat <ashok.bhat@arm.com> AArch64: Use long for pointers in graphics/Camera

For storing pointers, long is used in
android/graphics/Camera class, as native
pointers can be 64-bit.

In addition, some minor changes have been done
to conform with standard JNI practice (e.g. use of
jint instead of int in JNI function prototypes)

Change-Id: Ic05ebf2051a225a1638a43f476bab6176c0b5c38
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
ndroid/graphics/Camera.java
a0398430fcf365fba6e42ad0bdca2fbf45ed6fe0 20-Jan-2014 Ashok Bhat <ashok.bhat@arm.com> AArch64: Make graphics classes 64-bit compatible

Changes in this patch include

[x] Long is used to store native pointers as they can
be 64-bit.

[x] Some minor changes have been done to conform with
standard JNI practice (e.g. use of jint instead of int
in JNI function prototypes)

[x] AssetAtlasManager is not completely 64-bit compatible
yet. Specifically mAtlasMap member has to be converted
to hold native pointer using long. Added a TODO to
AssetAtlasManager.java to indicate the change required.

Change-Id: I940433f601c6db998c1a8ffff338f5361200d5ed
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Craig Barber <craig.barber@arm.com>
Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
ndroid/graphics/AvoidXfermode.java
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
ndroid/graphics/BitmapShader.java
ndroid/graphics/BlurMaskFilter.java
ndroid/graphics/Canvas.java
ndroid/graphics/ColorFilter.java
ndroid/graphics/ColorMatrixColorFilter.java
ndroid/graphics/ComposePathEffect.java
ndroid/graphics/ComposeShader.java
ndroid/graphics/CornerPathEffect.java
ndroid/graphics/DashPathEffect.java
ndroid/graphics/DiscretePathEffect.java
ndroid/graphics/DrawFilter.java
ndroid/graphics/EmbossMaskFilter.java
ndroid/graphics/LargeBitmap.java
ndroid/graphics/LayerRasterizer.java
ndroid/graphics/LightingColorFilter.java
ndroid/graphics/LinearGradient.java
ndroid/graphics/MaskFilter.java
ndroid/graphics/Matrix.java
ndroid/graphics/NinePatch.java
ndroid/graphics/Paint.java
ndroid/graphics/PaintFlagsDrawFilter.java
ndroid/graphics/Path.java
ndroid/graphics/PathDashPathEffect.java
ndroid/graphics/PathEffect.java
ndroid/graphics/Picture.java
ndroid/graphics/PixelXorXfermode.java
ndroid/graphics/PorterDuffColorFilter.java
ndroid/graphics/PorterDuffXfermode.java
ndroid/graphics/RadialGradient.java
ndroid/graphics/Rasterizer.java
ndroid/graphics/Region.java
ndroid/graphics/RegionIterator.java
ndroid/graphics/Shader.java
ndroid/graphics/SumPathEffect.java
ndroid/graphics/SweepGradient.java
ndroid/graphics/TableMaskFilter.java
ndroid/graphics/Typeface.java
ndroid/graphics/Xfermode.java
36bef0bf30d6bae48cf3837df351075ca4fce654 20-Jan-2014 Ashok Bhat <ashok.bhat@arm.com> AArch64: Make graphics classes 64-bit compatible

This a merger of two commits submitted to AOSP by
the following authors:

ashok.bhat@arm.com, david.butcher@arm.coma
craig.barber@arm.com, kevin.petit@arm.com and
marcus.oakland@arm.com

Due to the very large number of internal conflicts, I
have chosen to cherry-pick this change instead
of letting it merge through AOSP because the merge
conflict resolution would be very hard to review.

Commit messages below:

================================================
AArch64: Make graphics classes 64-bit compatible

Changes in this patch include

[x] Long is used to store native pointers as they can
be 64-bit.

[x] Some minor changes have been done to conform with
standard JNI practice (e.g. use of jint instead of int
in JNI function prototypes)

[x] AssetAtlasManager is not completely 64-bit compatible
yet. Specifically mAtlasMap member has to be converted
to hold native pointer using long. Added a TODO to
AssetAtlasManager.java to indicate the change required.

Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Craig Barber <craig.barber@arm.com>
Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>

==================================================================

AArch64: Use long for pointers in graphics/Camera

For storing pointers, long is used in
android/graphics/Camera class, as native
pointers can be 64-bit.

In addition, some minor changes have been done
to conform with standard JNI practice (e.g. use of
jint instead of int in JNI function prototypes)

Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>

===================================================================

Change-Id: Id5793fa0ebc17ee8b1eecf4b3f327977fdccff71
ndroid/graphics/AvoidXfermode.java
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
ndroid/graphics/BitmapShader.java
ndroid/graphics/BlurMaskFilter.java
ndroid/graphics/Camera.java
ndroid/graphics/Canvas.java
ndroid/graphics/ColorFilter.java
ndroid/graphics/ColorMatrixColorFilter.java
ndroid/graphics/ComposePathEffect.java
ndroid/graphics/ComposeShader.java
ndroid/graphics/CornerPathEffect.java
ndroid/graphics/DashPathEffect.java
ndroid/graphics/DiscretePathEffect.java
ndroid/graphics/DrawFilter.java
ndroid/graphics/EmbossMaskFilter.java
ndroid/graphics/LargeBitmap.java
ndroid/graphics/LayerRasterizer.java
ndroid/graphics/LightingColorFilter.java
ndroid/graphics/LinearGradient.java
ndroid/graphics/MaskFilter.java
ndroid/graphics/Matrix.java
ndroid/graphics/NinePatch.java
ndroid/graphics/Paint.java
ndroid/graphics/PaintFlagsDrawFilter.java
ndroid/graphics/Path.java
ndroid/graphics/PathDashPathEffect.java
ndroid/graphics/PathEffect.java
ndroid/graphics/Picture.java
ndroid/graphics/PixelXorXfermode.java
ndroid/graphics/PorterDuffColorFilter.java
ndroid/graphics/PorterDuffXfermode.java
ndroid/graphics/RadialGradient.java
ndroid/graphics/Rasterizer.java
ndroid/graphics/Region.java
ndroid/graphics/RegionIterator.java
ndroid/graphics/Shader.java
ndroid/graphics/SumPathEffect.java
ndroid/graphics/SweepGradient.java
ndroid/graphics/TableMaskFilter.java
ndroid/graphics/Typeface.java
ndroid/graphics/Xfermode.java
cd53c257e3e75325eba70f5e52ecadfc1b2bf567 27-Jan-2014 Chris Craik <ccraik@google.com> Disable Drawable DisplayLists

bug:12581401
bug:12758460

DisplayLists of drawables aren't being cleared out correctly, and will
incorrectly store state across configuration changes. Disable them
temporarily until this is fixed.

Change-Id: Ic09f0674d30476127316cfb4ffe45eb34cc15aa0
ndroid/graphics/drawable/Drawable.java
7023df08f14ec5dee76ac54c03e870f84e297636 27-Jan-2014 Narayan Kamath <narayan@google.com> Revert "AArch64: Make graphics classes 64-bit compatible"

This reverts commit 18b4cbeedef21c1fa666a110a157bab66edff976.

Change-Id: I0c52983a3ab1ace3ff743de546a43eca28e5cb0e
ndroid/graphics/AvoidXfermode.java
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
ndroid/graphics/BitmapShader.java
ndroid/graphics/BlurMaskFilter.java
ndroid/graphics/Camera.java
ndroid/graphics/Canvas.java
ndroid/graphics/ColorFilter.java
ndroid/graphics/ColorMatrixColorFilter.java
ndroid/graphics/ComposePathEffect.java
ndroid/graphics/ComposeShader.java
ndroid/graphics/CornerPathEffect.java
ndroid/graphics/DashPathEffect.java
ndroid/graphics/DiscretePathEffect.java
ndroid/graphics/DrawFilter.java
ndroid/graphics/EmbossMaskFilter.java
ndroid/graphics/LargeBitmap.java
ndroid/graphics/LayerRasterizer.java
ndroid/graphics/LightingColorFilter.java
ndroid/graphics/LinearGradient.java
ndroid/graphics/MaskFilter.java
ndroid/graphics/Matrix.java
ndroid/graphics/NinePatch.java
ndroid/graphics/Paint.java
ndroid/graphics/PaintFlagsDrawFilter.java
ndroid/graphics/Path.java
ndroid/graphics/PathDashPathEffect.java
ndroid/graphics/PathEffect.java
ndroid/graphics/Picture.java
ndroid/graphics/PixelXorXfermode.java
ndroid/graphics/PorterDuffColorFilter.java
ndroid/graphics/PorterDuffXfermode.java
ndroid/graphics/RadialGradient.java
ndroid/graphics/Rasterizer.java
ndroid/graphics/Region.java
ndroid/graphics/RegionIterator.java
ndroid/graphics/Shader.java
ndroid/graphics/SumPathEffect.java
ndroid/graphics/SweepGradient.java
ndroid/graphics/TableMaskFilter.java
ndroid/graphics/Typeface.java
ndroid/graphics/Xfermode.java
18b4cbeedef21c1fa666a110a157bab66edff976 20-Jan-2014 Ashok Bhat <ashok.bhat@arm.com> AArch64: Make graphics classes 64-bit compatible

This a merger of two commits submitted to AOSP by
the following authors:

ashok.bhat@arm.com, david.butcher@arm.coma
craig.barber@arm.com, kevin.petit@arm.com and
marcus.oakland@arm.com

Due to the very large number of internal conflicts, I
have chosen to cherry-pick this change instead
of letting it merge through AOSP because the merge
conflict resolution would be very hard to review.

Commit messages below:

================================================
AArch64: Make graphics classes 64-bit compatible

Changes in this patch include

[x] Long is used to store native pointers as they can
be 64-bit.

[x] Some minor changes have been done to conform with
standard JNI practice (e.g. use of jint instead of int
in JNI function prototypes)

[x] AssetAtlasManager is not completely 64-bit compatible
yet. Specifically mAtlasMap member has to be converted
to hold native pointer using long. Added a TODO to
AssetAtlasManager.java to indicate the change required.

Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Craig Barber <craig.barber@arm.com>
Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>

==================================================================

AArch64: Use long for pointers in graphics/Camera

For storing pointers, long is used in
android/graphics/Camera class, as native
pointers can be 64-bit.

In addition, some minor changes have been done
to conform with standard JNI practice (e.g. use of
jint instead of int in JNI function prototypes)

Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>

===================================================================

Change-Id: Ib3eab85ed97ea3e3c227617c20f8d213f17d4ba0
ndroid/graphics/AvoidXfermode.java
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
ndroid/graphics/BitmapShader.java
ndroid/graphics/BlurMaskFilter.java
ndroid/graphics/Camera.java
ndroid/graphics/Canvas.java
ndroid/graphics/ColorFilter.java
ndroid/graphics/ColorMatrixColorFilter.java
ndroid/graphics/ComposePathEffect.java
ndroid/graphics/ComposeShader.java
ndroid/graphics/CornerPathEffect.java
ndroid/graphics/DashPathEffect.java
ndroid/graphics/DiscretePathEffect.java
ndroid/graphics/DrawFilter.java
ndroid/graphics/EmbossMaskFilter.java
ndroid/graphics/LargeBitmap.java
ndroid/graphics/LayerRasterizer.java
ndroid/graphics/LightingColorFilter.java
ndroid/graphics/LinearGradient.java
ndroid/graphics/MaskFilter.java
ndroid/graphics/Matrix.java
ndroid/graphics/NinePatch.java
ndroid/graphics/Paint.java
ndroid/graphics/PaintFlagsDrawFilter.java
ndroid/graphics/Path.java
ndroid/graphics/PathDashPathEffect.java
ndroid/graphics/PathEffect.java
ndroid/graphics/Picture.java
ndroid/graphics/PixelXorXfermode.java
ndroid/graphics/PorterDuffColorFilter.java
ndroid/graphics/PorterDuffXfermode.java
ndroid/graphics/RadialGradient.java
ndroid/graphics/Rasterizer.java
ndroid/graphics/Region.java
ndroid/graphics/RegionIterator.java
ndroid/graphics/Shader.java
ndroid/graphics/SumPathEffect.java
ndroid/graphics/SweepGradient.java
ndroid/graphics/TableMaskFilter.java
ndroid/graphics/Typeface.java
ndroid/graphics/Xfermode.java
12b61f20a4cdab84b28f153e48c4dcbe82ab6f0a 18-Jan-2014 Alan Viverette <alanv@google.com> Prevent RevealDrawable from drawing mask when layer is empty

Compositing the mask layer into an empty layer using SRC_IN will
actually composite into the layer UNDER the empty layer.

Change-Id: I5ba434b0d7e6a5bc707fe842a5db82ae33066912
ndroid/graphics/drawable/RevealDrawable.java
ndroid/graphics/drawable/Ripple.java
4d7f9450663468abf5e41e24b7d3b1d5c3ea6143 16-Jan-2014 Narayan Kamath <narayan@google.com> am 8492e88a: am 077386db: am 6b81bfd1: am caea42fd: am 98002dfb: Merge "AArch64: Use long for pointers in graphics/PathMeasure"

* commit '8492e88a23ee4ac32f05b277654e0f9455fefa9b':
AArch64: Use long for pointers in graphics/PathMeasure
6606d16e097480e061546306cc95a729f5dccae8 16-Jan-2014 Narayan Kamath <narayan@google.com> am 6706888e: am 775667c0: am 03e8be75: am 8796ab7f: am bb35356d: Merge changes Id54087dd,I946325e4,I2a2b2e68

* commit '6706888e24aee04c2c914c44e5ef5b1510cf8013':
AArch64: Use long for pointers in BitmapRegionDecoder
AArch64: Use long for pointers in Movie class
AArch64: Add AssetInputStream.getNativeAsset
6b81bfd10f63c166ff6e4afb0f267ce9e5275366 16-Jan-2014 Narayan Kamath <narayan@google.com> am caea42fd: am 98002dfb: Merge "AArch64: Use long for pointers in graphics/PathMeasure"

* commit 'caea42fd2daabedaed383105e10c11150f52b7df':
AArch64: Use long for pointers in graphics/PathMeasure
03e8be757d2703d52fad3fd153c6bcf0b13ed1d1 16-Jan-2014 Narayan Kamath <narayan@google.com> am 8796ab7f: am bb35356d: Merge changes Id54087dd,I946325e4,I2a2b2e68

* commit '8796ab7f22d3e9f5b85571e8851851c023416f96':
AArch64: Use long for pointers in BitmapRegionDecoder
AArch64: Use long for pointers in Movie class
AArch64: Add AssetInputStream.getNativeAsset
a2f9042f4eec167bad04ba8923723cd9458699b5 13-Jan-2014 Ashok Bhat <ashok.bhat@arm.com> AArch64: Use long for pointers in graphics/Interpolator

For storing pointers, long is used in
android/graphics/Interpolator class, as native
pointers can be 64-bit.

In addition, some minor changes have been done
to conform with standard JNI practice (e.g. use
of jint instead of int in JNI function prototypes)

Change-Id: I1e181476a4fe5273ff190cf34c4a7487aa1aecf4
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
ndroid/graphics/Interpolator.java
72aa313ff4c91e7b2aae3d37067f9201b2b0fdbe 13-Jan-2014 Ashok Bhat <ashok.bhat@arm.com> AArch64: Use long for pointers in SurfaceTexture

Long is used in SurfaceTexture class to store
pointers as native pointers can be 64-bit.

In addition, some minor changes have been done
to conform with standard JNI practice (e.g. use
of jint instead of int in JNI function prototypes)

Change-Id: I771aa62c42bc865e644c63fd48f309782dd03e73
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Kévin PETIT <kevin.petit@arm.com>
ndroid/graphics/SurfaceTexture.java
98002dfb60a20caf62d6682659547c042a4a3342 16-Jan-2014 Narayan Kamath <narayan@google.com> Merge "AArch64: Use long for pointers in graphics/PathMeasure"
c8f0b11cc42e1713e75d54beb651b83c93cf5270 15-Jan-2014 Chet Haase <chet@google.com> Fix bug in PathMeasure with trimmed paths

Logic in the hardware renderer optimizes path rendering for simple
paths that consist of only rectangles. Any operation on the path that
adds any other primitive sets the simplicity flag to false appropriately.
PathMeasure.getSegment(), however, avoids those code paths and never sets
the mIsSimple flag at all, so it returns its original value (true, if the
path was simply constructed with no operations before being used in the
getSegment() call).

The fix is to avoid the optimization for paths used in getSegment(), since
it's not clear what operations will end up in the path and it's likely not
going to be just simple rectangles in any case.

Issue #12533902 PathMeasure.getSegment is broken

Change-Id: I71e77207e4d5c649c326557d33eba31e9b0fd45e
ndroid/graphics/PathMeasure.java
2bc49ca96eb786f66dc2b9573e1f09bdb2d82d5e 15-Jan-2014 Leon Scroggins III <scroggo@google.com> Fix Javadoc build break.

Remove links to non-specific function name.

Change-Id: I5643074149d0a511bd760d638751c44e3ec4c557
ndroid/graphics/Bitmap.java
8790be6de3644e332ec6a17c855da89ffc13a9bf 03-Dec-2013 Leon Scroggins III <scroggo@google.com> Remove calls to deprecated SkBitmap::setIsOpaque()

setIsOpaque() has been removed from ToT Skia.

Update setters for mIsPremultiplied and hasAlpha to take the
other into consideration.

Change-Id: I1b36b0b0ce7126031eb7b769b563c17dcd4b306a
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
b091d47a2e31a30581aa210419ff09bcc8715cdf 08-Jan-2014 Ashok Bhat <ashok.bhat@arm.com> AArch64: Use long for pointers in BitmapRegionDecoder

For storing pointers, long is used in BitmapRegionDecoder
class, as native pointers can be 64-bit.

In addition, some minor changes have been done
to conform with standard JNI practice (e.g. use
of jint instead of int in JNI function prototypes)

In addition, Graphics.cpp has been changed to work
with modified BitmapRegionDecoder.

Change-Id: Id54087dd3bfb29577e8b762e70946793369dc701
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
ndroid/graphics/BitmapRegionDecoder.java
dcaf5593ddbfe8e1cacaf07813b1e827ba4dba8c 08-Jan-2014 Ashok Bhat <ashok.bhat@arm.com> AArch64: Use long for pointers in Movie class

For storing pointers, long is used in Movie class,
as native pointers can be 64-bit.

In addition, some minor changes have been done
to conform with standard JNI practice (e.g. use
of jint instead of int in JNI function prototypes)

Change-Id: I946325e4af6cb9282012bebdaee89e1117d8797b
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
ndroid/graphics/Movie.java
c6c243bf01fe74c8f2fe266c3540822324bee0ea 15-Jan-2014 Alan Viverette <alanv@google.com> Merge "Propagate first call to DrawableContainer.setAlpha() to children"
34bd56b546bce47422a430d9d7806dc3cb4254bf 15-Jan-2014 Alan Viverette <alanv@google.com> Propagate first call to DrawableContainer.setAlpha() to children

BUG: 12530662
Change-Id: Idd972698d1a6805cb9f66ba4c2ddde97e1f8d2ca
ndroid/graphics/drawable/DrawableContainer.java
c062c7003f34999632fe4ad721dcd47cd71b2159 15-Jan-2014 Alan Viverette <alanv@google.com> Cache display lists for Drawables

Change-Id: I86e2dd4cd4ac8871f4131450cb9082c2b8de2eed
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/PictureDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
ee779ea446dd1161ba2fc50356edd5722454f141 13-Jan-2014 Alan Viverette <alanv@google.com> Fixing LayerDrawable methods for find layer and invalidate

BUG: 12475487
BUG: 12475575
Change-Id: I98eb2674a5090a20cae1cd69db6022859dcab36c
ndroid/graphics/drawable/LayerDrawable.java
0c10cc6052dc279f020e4adf069961e6e8f9dd6e 10-Jan-2014 Ashok Bhat <ashok.bhat@arm.com> AArch64: Use long for pointers in graphics/PathMeasure

For storing pointers, long is used in
android/graphics/PathMeasure class, as native
pointers can be 64-bit.

In addition, some minor changes have been done
to conform with standard JNI practice (e.g. use
of jint instead of int in JNI function prototypes)

Change-Id: I4599a9d5f7dcf9c39838db96d9033059114d3a49
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
ndroid/graphics/PathMeasure.java
6ae1bdebf308d3f857d586debbdd3c034ca85bb7 10-Jan-2014 Alan Viverette <alanv@google.com> Merge "Revert "Fixing Drawable methods for find by layer ID and invalidation callback""
218974915a25b2f9dd2e9543aceda16b26505280 10-Jan-2014 Alan Viverette <alanv@google.com> Revert "Fixing Drawable methods for find by layer ID and invalidation callback"

This reverts commit 8f164f64ec55a973fc043de932d853dd41772e4e.

Change-Id: I35637dee7b58c77387f375de585713ff76d4dd87
ndroid/graphics/drawable/LayerDrawable.java
7682e0396438320226408f23fc4bf04993d24f69 10-Jan-2014 Alan Viverette <alanv@google.com> Merge "Fixes for DrawableContainer, LayerDrawable"
8f164f64ec55a973fc043de932d853dd41772e4e 10-Jan-2014 Alan Viverette <alanv@google.com> Fixing Drawable methods for find by layer ID and invalidation callback

BUG: 12475487, 12475575
Change-Id: Icbf11c76eaf9357fe2076bf60f7e448db65bc835
ndroid/graphics/drawable/LayerDrawable.java
729427d451bc4d4d268335b8dc1ff6404bc1c91e 07-Jan-2014 Alan Viverette <alanv@google.com> Fixes for DrawableContainer, LayerDrawable

Only propagate DrawableContainer color filter, alpha when explicitly
modified. Invalidate LayerDrawable padding when child inset modified.

Change-Id: I27c6fe3c2d71b92bfbc54cc829e1efc7bc35e566
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/LayerDrawable.java
e2802755b1a956466d0293ded6891afd8b2d149e 08-Jan-2014 Alan Viverette <alanv@google.com> Merge "Add support for specifying Drawable color filter in XML"
d9e788c4f0528e46db4a035cfac043736becb0d1 07-Jan-2014 Alan Viverette <alanv@google.com> Add support for specifying Drawable color filter in XML

BUG: 12178044
Change-Id: Ie118aebf56bb4580c97b625e20f4e76bed4b6f6f
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/NinePatchDrawable.java
197315e39056edd0ceca5a14f4262c53a6c6e515 04-Jan-2014 Alan Viverette <alanv@google.com> Use layers for reveal drawable

Change-Id: I82887bb0a3994127ec0bd43ac017d51901a40488
ndroid/graphics/drawable/RevealDrawable.java
638fcf0df696fc582e5dd06b2e020972e286cc6e 17-Dec-2013 Tim Murray <timmurray@google.com> Merge "Move RenderScript from graphics/ to new fw/base subdirectory rs."
223622a50db319d634616311ff74267cf49679e7 17-Dec-2013 Alan Viverette <alanv@google.com> Add reveal drawable, APIs for forwarding Drawable focus and touch

Hotspot APIs are hidden pending finalization of how we handle IDs.

BUG: 11416827
Change-Id: Iecacb4b8e3690930d2d805ae65a50cf33482a218
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/RevealDrawable.java
ndroid/graphics/drawable/Ripple.java
d1576fb039f018ea4d55abbb2c03d542011be399 17-Dec-2013 Tim Murray <timmurray@google.com> Move RenderScript from graphics/ to new fw/base subdirectory rs.

Change-Id: I30b6633578f063840e1bdbcc9ba513b727912a6d
ndroid/renderscript/Allocation.java
ndroid/renderscript/AllocationAdapter.java
ndroid/renderscript/BaseObj.java
ndroid/renderscript/Byte2.java
ndroid/renderscript/Byte3.java
ndroid/renderscript/Byte4.java
ndroid/renderscript/Double2.java
ndroid/renderscript/Double3.java
ndroid/renderscript/Double4.java
ndroid/renderscript/Element.java
ndroid/renderscript/FieldPacker.java
ndroid/renderscript/FileA3D.java
ndroid/renderscript/Float2.java
ndroid/renderscript/Float3.java
ndroid/renderscript/Float4.java
ndroid/renderscript/Font.java
ndroid/renderscript/Int2.java
ndroid/renderscript/Int3.java
ndroid/renderscript/Int4.java
ndroid/renderscript/Long2.java
ndroid/renderscript/Long3.java
ndroid/renderscript/Long4.java
ndroid/renderscript/Matrix2f.java
ndroid/renderscript/Matrix3f.java
ndroid/renderscript/Matrix4f.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/Path.java
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramFragmentFixedFunction.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/ProgramVertexFixedFunction.java
ndroid/renderscript/RSDriverException.java
ndroid/renderscript/RSIllegalArgumentException.java
ndroid/renderscript/RSInvalidStateException.java
ndroid/renderscript/RSRuntimeException.java
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RSTextureView.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/Sampler.java
ndroid/renderscript/Script.java
ndroid/renderscript/ScriptC.java
ndroid/renderscript/ScriptGroup.java
ndroid/renderscript/ScriptIntrinsic.java
ndroid/renderscript/ScriptIntrinsic3DLUT.java
ndroid/renderscript/ScriptIntrinsicBlend.java
ndroid/renderscript/ScriptIntrinsicBlur.java
ndroid/renderscript/ScriptIntrinsicColorMatrix.java
ndroid/renderscript/ScriptIntrinsicConvolve3x3.java
ndroid/renderscript/ScriptIntrinsicConvolve5x5.java
ndroid/renderscript/ScriptIntrinsicHistogram.java
ndroid/renderscript/ScriptIntrinsicLUT.java
ndroid/renderscript/ScriptIntrinsicYuvToRGB.java
ndroid/renderscript/Short2.java
ndroid/renderscript/Short3.java
ndroid/renderscript/Short4.java
ndroid/renderscript/Type.java
ndroid/renderscript/package.html
083f5518d73e15d70ceb5c0cbc1370eda1928252 17-Dec-2013 Alan Viverette <alanv@google.com> Fix stroke color in GradientState.initializeWithState()

BUG: 12175674
Change-Id: I084339fd3c31a9b49f5875c9d3bac8f50cd027ca
ndroid/graphics/drawable/GradientDrawable.java
7fe03a267e6edb65142444765ce29ad5ff126052 23-Nov-2013 George Mount <mount@google.com> Add Path trimming.

Change-Id: Iafcf127a5136883ad4c0185d3c15f96d67f38d0d
ndroid/graphics/Path.java
89417177d50469b6f0a0b1d10f2b64900ca79a33 06-Dec-2013 Alan Viverette <alanv@google.com> Fix typo in LayerDrawable

Change-Id: I6c73cb90d0c161d29e8d41c54850d66840c947d7
ndroid/graphics/drawable/LayerDrawable.java
ebcb32f58a6220802ca129ea33f47b4b69931a10 05-Dec-2013 The Android Open Source Project <initial-contribution@android.com> Merge commit 'bac61807d3bcfff957b358cb9ad77850bd373689' into HEAD

Change-Id: I29374270c8e0c2f2859efaf1d55af9f73da0f8d7
ad7d65daed314adc4e51c206e42e4062a3e4ab20 05-Dec-2013 Alan Viverette <alanv@google.com> Merge "Add stacked padding mode to LayerDrawable"
5b10a723b0aa2eddf37262a30bb5cc9fb6fbbd9c 05-Dec-2013 Alan Viverette <alanv@google.com> Add stacked padding mode to LayerDrawable

General cleanup of LayerDrawable for readability's sake.

BUG: 11695507
Change-Id: Id7811b3c168ef68134d53b93fe9ac36dc9440566
ndroid/graphics/drawable/LayerDrawable.java
7c263c6ee7433d425aa5f69e7eaeeade027dec2f 03-Dec-2013 Alan Viverette <alanv@google.com> Handle null argument to GradientDrawable.setColor() and setStroke()

BUG: 11966834
Change-Id: I5d17bd846b95eceaa7aa1dff64a3e6886f7e6539
ndroid/graphics/drawable/GradientDrawable.java
d786a1900e94c4f0c919b50b44667cea32fd2939 02-Dec-2013 Katie McCormick <kmccormick@google.com> resolved conflicts for merge of 37e4c405 to master

Change-Id: I7df89be84384369ef5e89bb3b924ca38c1b5d9bd
afb02269cfaed56240f695101ba599beae0c5952 28-Nov-2013 Jason Sams <jsams@google.com> Merge commit '1ccc6633' into manualmerge

Conflicts:
graphics/java/android/renderscript/Double2.java
graphics/java/android/renderscript/Double3.java
graphics/java/android/renderscript/Double4.java
graphics/java/android/renderscript/Float2.java
graphics/java/android/renderscript/Float3.java
graphics/java/android/renderscript/Float4.java
graphics/java/android/renderscript/Int2.java
graphics/java/android/renderscript/Int3.java
graphics/java/android/renderscript/Int4.java
graphics/java/android/renderscript/Long2.java
graphics/java/android/renderscript/Long3.java
graphics/java/android/renderscript/Long4.java
graphics/java/android/renderscript/Short2.java
graphics/java/android/renderscript/Short3.java
graphics/java/android/renderscript/Short4.java

Change-Id: Ib9e940bc7d62764020eea7639d7158af707eb33f
1622981ca44693152e3f95e93a8e22a2216f65a1 27-Nov-2013 Ying Wang <wangying@google.com> Fix sdk build.

Change-Id: I11471213826b212b99c0ddba89a7f4cef110fcc4
ndroid/renderscript/Allocation.java
37e4c405a6136f90e5a8d4fc512cf7f551eb0c56 26-Nov-2013 Katie McCormick <kmccormick@google.com> am 484b57a5: am 9d0a88bd: Merge "Doc updates: Javadoc fixes" into klp-docs

* commit '484b57a5655f28967e0062f578f38535dff52323':
Doc updates: Javadoc fixes
484b57a5655f28967e0062f578f38535dff52323 26-Nov-2013 Katie McCormick <kmccormick@google.com> am 9d0a88bd: Merge "Doc updates: Javadoc fixes" into klp-docs

* commit '9d0a88bd4e07deac01d7759b70cdf160456be1c0':
Doc updates: Javadoc fixes
f2ef28d840647d2f16792313bdc22b2114a5df6a 26-Nov-2013 Katie McCormick <kmccormick@google.com> Doc updates: Javadoc fixes

Change-Id: I82381056f9f13e53ab8a0525f5a53bf98674c052
ndroid/graphics/ColorMatrix.java
1ccc6633bf47c95601cc13a2566c702bb8d986cd 26-Nov-2013 Jason Sams <jsams@google.com> am 9e6d8f04: Merge "Adding operations to reflected Renderscript class"

* commit '9e6d8f04940fd710ae858ff7ee4df43eb03ea85e':
Adding operations to reflected Renderscript class
3042d2692ff6cd7597f1f66bfd9350b825b5502a 26-Nov-2013 Jason Sams <jsams@google.com> Generic object based data copy.

This change consolidates the copy paths to Object based.
The runtime now uses reflection to identify the type of
array present. This adds support for long/double and reduces
the amount of code present. We could also support arrays of vectors
or objects in the future with this mechanism.


Change-Id: I2297c1c01fbe6a64c375d6368f25d7db781ea788
ndroid/renderscript/Allocation.java
9e6d8f04940fd710ae858ff7ee4df43eb03ea85e 26-Nov-2013 Jason Sams <jsams@google.com> Merge "Adding operations to reflected Renderscript class"
84379677339b4a7a78be377e1c96d0da966e49cf 20-Nov-2013 Tim Murray <timmurray@google.com> Merge "Convert Java/JNI to 64-bit, part 2."
5d958998811d6e291e2eff86033083548b47ac2c 20-Nov-2013 John Spurlock <jspurlock@google.com> Merge "Remove unused imports from frameworks/base."
460a04971c494fec39ffcb38e873bb8fdd82d113 19-Nov-2013 Tim Murray <timmurray@google.com> Convert Java/JNI to 64-bit, part 2.

This changes BaseObj to support 64-bit IDs. There are a few caveats:

1. Since it is deprecated, RSG will not support 64-bit.
2. Currently, methods that pass arrays of IDs to the driver are not supported in 64-bit. This will be fixed in a later CL.

bug 11332320

Change-Id: If0dbecc8b285e260f767e441e05088b6a1b749a2
ndroid/renderscript/Allocation.java
ndroid/renderscript/AllocationAdapter.java
ndroid/renderscript/BaseObj.java
ndroid/renderscript/Element.java
ndroid/renderscript/FieldPacker.java
ndroid/renderscript/FileA3D.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/Path.java
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramFragmentFixedFunction.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/ProgramVertexFixedFunction.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/Script.java
ndroid/renderscript/ScriptGroup.java
ndroid/renderscript/ScriptIntrinsic.java
ndroid/renderscript/ScriptIntrinsic3DLUT.java
ndroid/renderscript/ScriptIntrinsicBlend.java
ndroid/renderscript/ScriptIntrinsicBlur.java
ndroid/renderscript/ScriptIntrinsicColorMatrix.java
ndroid/renderscript/ScriptIntrinsicConvolve3x3.java
ndroid/renderscript/ScriptIntrinsicConvolve5x5.java
ndroid/renderscript/ScriptIntrinsicHistogram.java
ndroid/renderscript/ScriptIntrinsicLUT.java
ndroid/renderscript/ScriptIntrinsicYuvToRGB.java
ndroid/renderscript/Type.java
6090995951c6e2e4dcf38102f01793f8a94166e1 19-Nov-2013 John Spurlock <jspurlock@google.com> Remove unused imports from frameworks/base.

Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
ndroid/graphics/LargeBitmap.java
ndroid/graphics/drawable/PictureDrawable.java
ndroid/graphics/drawable/shapes/ArcShape.java
ndroid/renderscript/Allocation.java
ndroid/renderscript/AllocationAdapter.java
ndroid/renderscript/BaseObj.java
ndroid/renderscript/Byte2.java
ndroid/renderscript/Byte3.java
ndroid/renderscript/Byte4.java
ndroid/renderscript/Double2.java
ndroid/renderscript/Double3.java
ndroid/renderscript/Double4.java
ndroid/renderscript/Element.java
ndroid/renderscript/FieldPacker.java
ndroid/renderscript/FileA3D.java
ndroid/renderscript/Float2.java
ndroid/renderscript/Float3.java
ndroid/renderscript/Float4.java
ndroid/renderscript/Font.java
ndroid/renderscript/Int2.java
ndroid/renderscript/Int3.java
ndroid/renderscript/Int4.java
ndroid/renderscript/Long2.java
ndroid/renderscript/Long3.java
ndroid/renderscript/Long4.java
ndroid/renderscript/Matrix2f.java
ndroid/renderscript/Matrix3f.java
ndroid/renderscript/Matrix4f.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/Path.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramFragmentFixedFunction.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/ProgramVertexFixedFunction.java
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RSTextureView.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/Sampler.java
ndroid/renderscript/ScriptC.java
ndroid/renderscript/ScriptGroup.java
ndroid/renderscript/ScriptIntrinsic3DLUT.java
ndroid/renderscript/ScriptIntrinsicBlur.java
ndroid/renderscript/ScriptIntrinsicColorMatrix.java
ndroid/renderscript/ScriptIntrinsicConvolve3x3.java
ndroid/renderscript/ScriptIntrinsicConvolve5x5.java
ndroid/renderscript/ScriptIntrinsicHistogram.java
ndroid/renderscript/ScriptIntrinsicLUT.java
ndroid/renderscript/Short2.java
ndroid/renderscript/Short3.java
ndroid/renderscript/Short4.java
ndroid/renderscript/Type.java
34d8519de44f301ce0b7196e248e58345d3cd35a 20-Nov-2013 George Mount <mount@google.com> Merge "Add animations along a Path."
c96c7b2e54965e30c8fb82295f1ca9f891ebd5e7 23-Aug-2013 George Mount <mount@google.com> Add animations along a Path.

Change-Id: If03bd10a3961ff874e33489e1253146b8dadca33
ndroid/graphics/Path.java
eff663f391fa4f119685d5c14489b94661ea126f 15-Nov-2013 Tim Murray <timmurray@google.com> Convert Java/JNI to 64-bit, part 1.

This converts context and device storage to use long instead of int.

bug 11332320

Change-Id: If93a5d78385d3004d5e709762b78bd1d3538088d
ndroid/renderscript/RenderScript.java
180979f76b0c99cd7053a44692f6408721b74bce 15-Nov-2013 John Spurlock <jspurlock@google.com> Fix logic problems in AnimationDrawable and View.

1. View now checks both queues when unscheduling runnables,
fixing the case where work was scheduled pre-attach, and unscheduled
post-attach.

2. AnimationDrawable avoids posting duplicate runnables when rescheduling
itself.

3. Decouple is-animation-running state from current frame pointer in
AnimationDrawable. Some calls init to the first frame, but do not
kick off the animation.

4. Remove workaround in SystemUI's AnimatedImageView (status bar icon)
now that the underlying framework issues are fixed.

Bug:11694594
Change-Id: I77ca6bd80262f7edcf980b2d7efc2592f8051f29
ndroid/graphics/drawable/AnimationDrawable.java
aff6ea9516ebb4c7e5bf487f7c867f31e8fbbd96 18-Nov-2013 Raph Levien <raph@google.com> Merge "Initial integration of Minikin to framework"
a033630e805c407080221e20b236b6054f324670 23-May-2013 Raph Levien <raph@google.com> Initial integration of Minikin to framework

With this patch, framework does at least some of its text rendering
using Minikin instead of TextLayoutCache. There's a lot of stuff broken
and not yet implemented, but the phone will boot.

Changes are hidden behind USE_MINIKIN, which should be set in
BoardConfig.mk for the brave. Without that, there are changes to
signatures in JNI methods and so on, but shouldn't be any visible
changes.

This commit also introduces a new abstraction for Typeface:

The new TypefaceImpl abstraction represents the functionality that
corresponds to a Java Typeface object. Currently it is backed by
SkTypeface, but in the migration to Minikin it is a FontCollection
combined with a FontStyle. This patch introduces a USE_MINIKIN
preprocessor switch, so there is no substantial change to existing
Skia-based code, but which lets us start replacing the implementation
with the Minikin version.

Change-Id: I532c4c2d32d4f4c1f349dc1db37caa112af587ea
ndroid/graphics/Canvas.java
ndroid/graphics/Paint.java
ndroid/graphics/Typeface.java
616dd4780fb515c596f2764f7e35a30401f7b063 15-Nov-2013 Alan Viverette <alanv@google.com> Use correct state list for obtaining stroke color

BUG: 11696411
Change-Id: Ia9ad70cbceae18923fc79db8f07223fb0d41ae81
ndroid/graphics/drawable/GradientDrawable.java
21659ac4c83d272f3ffd2f9b6333acbe5f0b02a1 07-Nov-2013 Jason Sams <jsams@google.com> Add long/double read support.

Change-Id: I1957f7ac18262a3004a4adcb7c31055212e483c2
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
2ee011a3c4debc410cbc3f61a3de44616cc32496 11-Nov-2013 John Reck <jreck@google.com> Merge "Always do simple path detection"
02a2aab57c71f1058348cec0fc3a6aaa07250bc9 08-Nov-2013 John Reck <jreck@google.com> Always do simple path detection

HardwareRenderer.isAvailable() only returns false under an emulator
As such eliminate Path's dependency on the HardwareRenderer by
always doing simple path detection. The only drawback is a bit of
wasted work in the emulator.

Change-Id: I89d452bd24a6c6751ed8017c13a9e97f8a1a940d
ndroid/graphics/Path.java
765c9dfd54a57a062ce9702eb843b3d2dea716e7 08-Nov-2013 Svetoslav <svetoslavganov@google.com> am ebd616e8: am 134631b9: am 90242fe5: Merge "Switch to the new Skia PDF generation APIs." into klp-dev

* commit 'ebd616e88dab185bbf5b309d29c92a9eea9817e0':
Switch to the new Skia PDF generation APIs.
134631b9078df0b9277fb3b8319bf3b85f690727 08-Nov-2013 Svetoslav <svetoslavganov@google.com> am 90242fe5: Merge "Switch to the new Skia PDF generation APIs." into klp-dev

* commit '90242fe5581c8f665c09337a0971a7c3fc908f7c':
Switch to the new Skia PDF generation APIs.
90242fe5581c8f665c09337a0971a7c3fc908f7c 08-Nov-2013 Svetoslav <svetoslavganov@google.com> Merge "Switch to the new Skia PDF generation APIs." into klp-dev
8e0fb6e9c3cf8d73449ae63757a675f00b9aa820 08-Nov-2013 Fabrice Di Meglio <fdimeglio@google.com> am 4833a6ce: am e34c4770: am 435c0ee1: Merge "Fix bug #11537133 Hideycling looks broken (KOT36), missing left padding" into klp-dev

* commit '4833a6ce44becf0d73e9727da64d8c7bd0f89549':
Fix bug #11537133 Hideycling looks broken (KOT36), missing left padding
35aacf2eb325d24c67d01f4dbd706ed26ab9e8c3 07-Nov-2013 Svetoslav <svetoslavganov@google.com> Switch to the new Skia PDF generation APIs.

The new Skia PDF generation APIs are a small extension to
the code that converts drawing commands to PDF (SkPDFDevice)
and this new functionality is exposed via new APIs. This
change switches to using these new APIs allowing us to
capitalize on the new perspective support for PDF
generation.

bug:11561776

Change-Id: Ief61f7ff6a5a22c27d3acbe99a48910cb679f594
ndroid/graphics/pdf/PdfDocument.java
e34c477060bf7e212177029598bea0b04adc6f80 07-Nov-2013 Fabrice Di Meglio <fdimeglio@google.com> am 435c0ee1: Merge "Fix bug #11537133 Hideycling looks broken (KOT36), missing left padding" into klp-dev

* commit '435c0ee10af132937dc0a22c39380624e6efd5ab':
Fix bug #11537133 Hideycling looks broken (KOT36), missing left padding
435c0ee10af132937dc0a22c39380624e6efd5ab 07-Nov-2013 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #11537133 Hideycling looks broken (KOT36), missing left padding" into klp-dev
badb59cd5d2a2905494964889f002a277211000a 07-Nov-2013 Newton Allen <newt@google.com> am 47feee53: Merge "Fix some documentation typos." into klp-docs

* commit '47feee535f9e4e77165b93b6b9f10379e7aa4bbd':
Fix some documentation typos.
a2801c5f642b6a2585fdeb7921eb9104db8956f2 07-Nov-2013 Chris Craik <ccraik@google.com> am 4899398d: am baba771c: am 47742d4b: Merge "Fix NPE with inPurgeable Bitmaps in getAllocationByteCount" into klp-dev

* commit '4899398dcad50d1b9734ca5f8959712f42f72b02':
Fix NPE with inPurgeable Bitmaps in getAllocationByteCount
f7a93ef3847258157d144dfefaa5757128cc807d 07-Nov-2013 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #11537133 Hideycling looks broken (KOT36), missing left padding

- enforce the Drawable boolean getPadding(Rect) contract for NinePatchDrawable
and DrawableContainer.

- as NinePatchDrawable was not enforcing it, the consequence was that the
mUserPaddingLeftInitial / mUserPaddingRitghInitial were reset to "0" (even
if they got the correct value before the reset).

Change-Id: I1efe7fad5f89c0ca47f90189f6d89940e0e9c6ae
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/NinePatchDrawable.java
4899398dcad50d1b9734ca5f8959712f42f72b02 07-Nov-2013 Chris Craik <ccraik@google.com> am baba771c: am 47742d4b: Merge "Fix NPE with inPurgeable Bitmaps in getAllocationByteCount" into klp-dev

* commit 'baba771c85ec4a8d56e07c0d963c663a99cfa0e3':
Fix NPE with inPurgeable Bitmaps in getAllocationByteCount
47742d4bb004a51c045d443024a36d784cd38d9b 07-Nov-2013 Chris Craik <ccraik@google.com> Merge "Fix NPE with inPurgeable Bitmaps in getAllocationByteCount" into klp-dev
222f2ad294c9046b62af5e059f8b409aec044ce9 06-Nov-2013 Chris Craik <ccraik@google.com> Fix NPE with inPurgeable Bitmaps in getAllocationByteCount

bug:11556330
Change-Id: I430136ea15baeb60adfb9bb2acdde9505ce707fe
ndroid/graphics/Bitmap.java
b7189d2f35a9c083e9a668cca555071fc8106750 06-Nov-2013 Jason Sams <jsams@google.com> Merge "Use Object + type in place of specific array"
e729a9400f3ed2234a95a53aadb3420b76436d63 06-Nov-2013 Jason Sams <jsams@google.com> Use Object + type in place of specific array

Changed to avoid the explosion of entry points in the JNI layer.

Change-Id: I7d6cc565c8853b06560eb891fdd5e8acf05c9779
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
feafc99bdf03983fc252d19a1da8c57d4cfbf042 06-Nov-2013 John Spurlock <jspurlock@google.com> am fc5ef04e: am e88d14a8: am 9d383ece: Merge "Fix recent regression in DrawableContainer." into klp-dev

* commit 'fc5ef04e4d1e3eca1d807d00f12a3f84f8028b8b':
Fix recent regression in DrawableContainer.
fc5ef04e4d1e3eca1d807d00f12a3f84f8028b8b 06-Nov-2013 John Spurlock <jspurlock@google.com> am e88d14a8: am 9d383ece: Merge "Fix recent regression in DrawableContainer." into klp-dev

* commit 'e88d14a8b8101248ce0a3b3b00993fd1393f6be2':
Fix recent regression in DrawableContainer.
9d383ece52620b0358bcfae7f2102b64acd1d5cb 06-Nov-2013 John Spurlock <jspurlock@google.com> Merge "Fix recent regression in DrawableContainer." into klp-dev
918997738383a847e3e019c24ec1b4f4ad39c43e 06-Nov-2013 Adam Koch <akoch@google.com> am 66e47c5f: am 0c5268c3: am be0b05a0: Merge "Doc fix: add more detail to BitmapFactory.Options.inPurgeable flag. Bug: 6064760" into klp-dev

* commit '66e47c5feca7425b0f2afbe3b4abb513b4f05279':
Doc fix: add more detail to BitmapFactory.Options.inPurgeable flag. Bug: 6064760
66e47c5feca7425b0f2afbe3b4abb513b4f05279 06-Nov-2013 Adam Koch <akoch@google.com> am 0c5268c3: am be0b05a0: Merge "Doc fix: add more detail to BitmapFactory.Options.inPurgeable flag. Bug: 6064760" into klp-dev

* commit '0c5268c3595ca029919df55453a2607cca06b361':
Doc fix: add more detail to BitmapFactory.Options.inPurgeable flag. Bug: 6064760
57c9886d4bbe8af0391b397e74a54d7ac7f1ebb6 05-Nov-2013 Adam Koch <akoch@google.com> Doc fix: add more detail to BitmapFactory.Options.inPurgeable flag.
Bug: 6064760

Change-Id: I3fd833a3205be451ff6548fab3555d170c9c570e
(cherry picked from commit e1693df494dbdedfb5eac56bf59f86afc893b778)
ndroid/graphics/BitmapFactory.java
be0b05a028ebc1b49ed32b79d53af384106c31a3 06-Nov-2013 Adam Koch <akoch@google.com> Merge "Doc fix: add more detail to BitmapFactory.Options.inPurgeable flag. Bug: 6064760" into klp-dev
f68bb66c6ec239790ba18b8d078eb7ab4894fdc3 05-Nov-2013 John Spurlock <jspurlock@google.com> Fix recent regression in DrawableContainer.

Ensure optical insets are never null.

Bug:11537082
Change-Id: Ib75be83909fac612ae947f501835285cd8a79862
ndroid/graphics/drawable/DrawableContainer.java
e1693df494dbdedfb5eac56bf59f86afc893b778 05-Nov-2013 Adam Koch <akoch@google.com> Doc fix: add more detail to BitmapFactory.Options.inPurgeable flag.
Bug: 6064760

Change-Id: I3fd833a3205be451ff6548fab3555d170c9c570e
ndroid/graphics/BitmapFactory.java
93c9093a32876f97a3c6c1a70538e650f3d02ec1 05-Nov-2013 Fabrice Di Meglio <fdimeglio@google.com> am 641bac8e: am 073041c3: am f48bcd5b: Merge "Fix bug #11256076 Spinner text is too close from the opening triangle in RTL Locales" into klp-dev

* commit '641bac8e21673a2d526b9c0ccf28d5fd08bd6994':
Fix bug #11256076 Spinner text is too close from the opening triangle in RTL Locales
641bac8e21673a2d526b9c0ccf28d5fd08bd6994 05-Nov-2013 Fabrice Di Meglio <fdimeglio@google.com> am 073041c3: am f48bcd5b: Merge "Fix bug #11256076 Spinner text is too close from the opening triangle in RTL Locales" into klp-dev

* commit '073041c3708b5856a027d32c93c6945e2266336e':
Fix bug #11256076 Spinner text is too close from the opening triangle in RTL Locales
fadfbf1ae0fdad87a2e8ed31904e59251ff9ffad 05-Nov-2013 Alan Viverette <alanv@google.com> Merge "Add support for using ColorStateList as GradientDrawable's stroke"
f48bcd5b68613b0a4ff0162091047fb9465b5290 05-Nov-2013 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #11256076 Spinner text is too close from the opening triangle in RTL Locales" into klp-dev
a211dd28b93473c452d68432c602d5209b01c178 04-Nov-2013 Alan Viverette <alanv@google.com> Add support for using ColorStateList as GradientDrawable's stroke

Refactors isOpaque() so that ColorStateList APIs previously added
on master branch are no longer needed.

Change-Id: I104c9a14ef81db6c4cf141e8fd0ebbd20bd52ee9
ndroid/graphics/drawable/GradientDrawable.java
ff236f5fc1a088b1210d37a67b0e88b06c0fbdb2 13-Aug-2013 Newton Allen <newt@google.com> Fix some documentation typos.

Change-Id: I0360d468d54d970c87f313e24e50965245206f28
(cherry picked from commit c502744f2ddcc80a34f5197b5d2c0d701c7d6e71)
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
ndroid/graphics/drawable/Drawable.java
52e3393afd1f6b6351357d6a45df7097ba3579f8 01-Nov-2013 Newton Allen <newt@google.com> Merge "Fix some documentation typos."
78da147d426c80baac63aeaf521f112d8c4c1d2d 31-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Update the PdfDocument docs with unsupported operations.

The PDF generating canvas we use does not yet support all
drawing operations. This change adds docs which operations
are not yet supported.

Change-Id: I8d5ee8c1e2a473ba783b5e62f23ab90a54bbf106
(cherry picked from commit 8db45b844b5482cf61839404c0f6847e053de817)
ndroid/graphics/pdf/PdfDocument.java
5b0e9797b13bb12bd5187e921d688c0d78d8c157 31-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> am 8c33d89c: am 41dd5233: am 8856af5a: Merge "Update the PdfDocument docs with unsupported operations." into klp-dev

* commit '8c33d89cc7bf21883c2059497b9f296c389eb363':
Update the PdfDocument docs with unsupported operations.
8db45b844b5482cf61839404c0f6847e053de817 31-Oct-2013 Svetoslav Ganov <svetoslavganov@google.com> Update the PdfDocument docs with unsupported operations.

The PDF generating canvas we use does not yet support all
drawing operations. This change adds docs which operations
are not yet supported.

Change-Id: I8d5ee8c1e2a473ba783b5e62f23ab90a54bbf106
ndroid/graphics/pdf/PdfDocument.java
c502744f2ddcc80a34f5197b5d2c0d701c7d6e71 13-Aug-2013 Newton Allen <newt@google.com> Fix some documentation typos.

Change-Id: I0360d468d54d970c87f313e24e50965245206f28
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
ndroid/graphics/drawable/Drawable.java
519494e207322581075c8ea884fde9d33bb9209e 28-Oct-2013 Alan Viverette <alanv@google.com> Add support for using ColorStateList in GradientDrawable

BUG: 11373225
Change-Id: Ie62f1546e8694822aadafe9ef1e57ce458a363d6
ndroid/graphics/drawable/GradientDrawable.java
6a5875cf96a6eebf4ef2e176176868ecbf17122f 10-Sep-2013 Matthieu Delahaye <matthieu@multicorewareinc.com> Adding operations to reflected Renderscript class

Renderscript expose its native types back to the Android
system through a set of classes defined within the renderscript
package. These classes provides no easy mean to manipulate
data they represent. It would be convinient to be able to manipulate
the data stored within an allocation via these classes directly
instead of having to marshall them into native Java objects.

This commit adds such operations to the existing exposed vector types.

Change-Id: I1845df1368a82f0d39b36416c83938c7160f6a3f
ndroid/renderscript/Byte2.java
ndroid/renderscript/Byte3.java
ndroid/renderscript/Byte4.java
ndroid/renderscript/Double2.java
ndroid/renderscript/Double3.java
ndroid/renderscript/Double4.java
ndroid/renderscript/Float2.java
ndroid/renderscript/Float3.java
ndroid/renderscript/Float4.java
ndroid/renderscript/Int2.java
ndroid/renderscript/Int3.java
ndroid/renderscript/Int4.java
ndroid/renderscript/Long2.java
ndroid/renderscript/Long3.java
ndroid/renderscript/Long4.java
ndroid/renderscript/Short2.java
ndroid/renderscript/Short3.java
ndroid/renderscript/Short4.java
600d7dd1c6d9d1ff81b71085eff2a6be50d6f36c 16-Oct-2013 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #11256076 Spinner text is too close from the opening triangle in RTL Locales

Background Drawable padding was not taken into account in RTL Locales

- make sure the Drawables are resolved before resolving padding
- during padding resolution take care about background padding

Change-Id: Ib0c722adf5341ab4fa2182a0d0ac2ca639e85cfc
ndroid/graphics/drawable/DrawableContainer.java
cd925885283396c0379ec2dcaa94e318993f40f8 07-Oct-2013 Eino-Ville Talvala <etalvala@google.com> DO NOT MERGE: Hide new camera API.

Not yet ready.

Bug: 11141002

Change-Id: I4704bffb9ba36af47a66dc5b49cbba00be623aae
ndroid/graphics/ImageFormat.java
ec44e5dc2f961c4f728babdd17bc4f2b7742750f 10-Oct-2013 Jason Sams <jsams@google.com> Utility API for creating types.

Change-Id: I3263cb4440ef3a60cd418f0559b8c5638a9b8bf3
ndroid/renderscript/Type.java
390ec00c6693fb20004f357901beae919a79329f 26-Sep-2013 Jason Sams <jsams@google.com> Remove old hidden API.

This was never shipped and long since replaced by ioReceive().

Change-Id: Ieba7fd4305c2c561cc36154c57414783e4bf502b
ndroid/renderscript/Allocation.java
80da140cc4ce2df529bae92d379ed8598acf356c 08-Oct-2013 Adam Powell <adamp@google.com> am 266b3026: am 20ba658b: am 31049d76: Use SCREEN Xfermode for keyguard badges; update SeekBar

* commit '266b3026c42ed3ba0feedd9abe3e3bb6932c2f23':
Use SCREEN Xfermode for keyguard badges; update SeekBar
31049d76c55b18a6d9993f0d9687598740b16014 07-Oct-2013 Adam Powell <adamp@google.com> Use SCREEN Xfermode for keyguard badges; update SeekBar

Plumb through the necessary API features through Drawables and
ImageView but leave it hidden for now pending future API review and
plumbing through the rest of the framework Drawable implementations.

Update SeekBar assets used for keyguard transport control.

Set selected status directly instead of finding views by id.

Bug 10531608
Bug 10784913

Change-Id: Ia38bd04ad1bc26e9e6da1dda8a374c9ba3ceccb3
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/Drawable.java
bd03b9f17fca6df7ed305cbe14b995032d461ffa 08-Oct-2013 Mike Klein <mtklein@google.com> am 3dd81450: am aa24442e: am d0f379c1: Preserve fill type in Path.reset().

* commit '3dd81450be76ef4b1d8737ec4bce34e7415a60e3':
Preserve fill type in Path.reset().
d0f379c1976c600313f1f4c39f2587a649e3a4fc 02-Oct-2013 Mike Klein <mtklein@google.com> Preserve fill type in Path.reset().

Bug: 10838355
Change-Id: I7bdecb945fc35dfed02d37745678ae7bda906628
ndroid/graphics/Path.java
322594c4a40749a7ca193475f17f90319f4f4973 02-Oct-2013 Jeff Sharkey <jsharkey@android.com> am 6d7de848: am 1fc9eb78: am 16326f70: Merge "Fix animations, padding in RTL mode." into klp-dev

* commit '6d7de848d7c4f8c6556c05dab79eb532874a82b3':
Fix animations, padding in RTL mode.
ee3e1603fdbbe24b0cbf3cb85c456696cf3b7941 02-Oct-2013 Jeff Sharkey <jsharkey@android.com> Fix animations, padding in RTL mode.

Show directory animations coming in from left-side when in RTL
language. Also fix NinePatchDrawable to correctly mirror its padding
when auto-mirrored, and fix InsetDrawable to propagate the layout
direction to the wrapped Drawable.

Bug: 10987190, 11030793
Change-Id: I1213802a07d0c4ced93438df1e6ddf5aed3df677
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
8d860332984305cf3cd10194b03b3859be7fb361 30-Sep-2013 Victoria Lease <violets@google.com> am a4eb894a: Merge "clarify Paint flag docs" into klp-dev

* commit 'a4eb894a55b07eeddb05d47558e6b2838d56af08':
clarify Paint flag docs
a4eb894a55b07eeddb05d47558e6b2838d56af08 26-Sep-2013 Victoria Lease <violets@google.com> Merge "clarify Paint flag docs" into klp-dev
8dc7d5ea2680b7e397d2cdb7f83427d2c86c9de7 25-Sep-2013 Victoria Lease <violets@google.com> clarify Paint flag docs

Bug: 10460797
Change-Id: Iae622b302cad3dc788f512b472e3a59ec227a8d7
ndroid/graphics/Paint.java
afbd777fdaf4ecc6c483c45fc8f8206a119574cc 26-Sep-2013 Leon Scroggins III <scroggo@google.com> am ae1e8855: am 8e4b16d6: Merge "Update docs to state that mark is no longer called." into klp-dev

* commit 'ae1e88553fa628dbf22aa5ed2659f5ea2c12793a':
Update docs to state that mark is no longer called.
321bc46b3c885a806f2e7e29db8212f7ea6c8670 25-Sep-2013 Leon Scroggins III <scroggo@google.com> Update docs to state that mark is no longer called.

BUG:6493544

Change-Id: I97a4d90ce2efcd12f8f1cc5b545f822f8e5a5ab0
ndroid/graphics/BitmapFactory.java
ndroid/graphics/BitmapRegionDecoder.java
3a1b8e41162e3a01627b077aab2599353a07779d 25-Sep-2013 Jason Sams <jsams@google.com> Remove hidden API setSurfaceTexture.

Change-Id: Ib6a3c5b84550932168f314375e74059507fc01ae
ndroid/renderscript/Allocation.java
6e1e8b17c575bc6a115bcbbec47040d5f58740b7 20-Sep-2013 Svetoslav <svetoslavganov@google.com> am c0e1ae01: am facc08c7: Merge "Move PdfDocument to android.graphics.pdf" into klp-dev

* commit 'c0e1ae0176b2ce23ea1b19883507cd920712289a':
Move PdfDocument to android.graphics.pdf
6811f4e92cbb64e72a0d13eb9b99b5894bd59c76 19-Sep-2013 Svetoslav <svetoslavganov@google.com> Move PdfDocument to android.graphics.pdf

1. Move PdfDocument to android.graphics.pdf.

2. Changed the PdfDocument as per API concil request.

3. Updated the documentation.

bug:10461180
bug:10552565
bug:10681585
bug:10552336

Change-Id: I08e15b34cf37bb064248c887e6f59808019cafe8
ndroid/graphics/pdf/PdfDocument.java
ndroid/graphics/pdf/package.html
44f65cb5fd3b36dbf06f76da62cd6c495358985b 18-Sep-2013 Leon Scroggins III <scroggo@google.com> am 2e4e9889: am 3490228e: Merge "Use a native buffer for decoding images." into klp-dev

* commit '2e4e98895b17ef248f5071202a3610ac715eaf0e':
Use a native buffer for decoding images.
7315f1baee19476363235127bc1438e2a291fa15 11-Sep-2013 Leon Scroggins III <scroggo@google.com> Use a native buffer for decoding images.

Fixes BUG:10725383

Depends on https://googleplex-android-review.git.corp.google.com/#/c/357300/
in external/skia.

In the previous fix for BUG:8432093 and BUG:6493544
(https://googleplex-android-review.googlesource.com/#/c/346191/),
instead of calling mark on the provided input stream, we
copied the entire stream in native code (except in one case;
more details below), allowing rewind no matter how much of
the stream had been read. This was because two decoders
may rewind after reading an arbitrary amount of the stream:
SkImageDecoder_wbmp and SkImageDecoder_libjpeg.

It turns out that the jpeg decoder does not need this rewind
after arbitrary length (it is a failure recovery case, and
libjpeg has a default recovery we can use - the above referenced
CL in Skia uses the default).

Although the wbmp decoder could read any amount given a
stream with the "right" data, and then return false, such a
stream would not be a valid stream of another format, so it
is okay for this rewind to fail.

Further, the previous fix was inefficient in the common case
where the caller decodes just the bounds, resets, then decodes
the entire image (since we have copied the entire stream twice).
The copy also resulted in the crashes seen in BUG:10725383.

In this CL, buffer only the amount of input needed by
SkImageDecoder::Factory to determine the type of image decoder
needed. Do not mark the input stream provided by the caller,
so their mark (if any) can remain in tact. The new Skia class
SkFrontBufferedStream allows buffering just the beginning
of the stream.

core/jni/android/graphics/BitmapFactory.cpp:
Instead of calling GetRewindableStream (which has been removed),
call CreateJavaInputStreamAdaptor. Then wrap it in an
SkFrontBufferedStream, with a large enough buffer to determine
which type of image is used.

core/jni/android/graphics/CreateJavaOutputStreamAdaptor.h:
core/jni/android/graphics/CreateJavaOutputStreamAdaptor.cpp:
Remove mark, markSupported, and rewind. CreateJavaInputStreamAdaptor
now turns an SkStream which is not rewindable. If the caller
needs rewind that needs to be handled differently (for example,
by using SkFrontBufferedStream, as is done in BitmapFactory and
Movie.
Remove RewindableJavaStream and GetRewindableStream.
Remove code specific to ByteArrayInputStream, which makes slow
JNI calls. Instead, depend on the caller to buffer the input
in the general case. There is no reason to special case this
stream (especially since we already have decodeByteArray).
Remove CheckForAssetStream, which is now always special cased
in Java.

core/jni/android/graphics/Movie.cpp:
Call CreateJavaInputStreamAdaptor and use an SkFrontBufferedStream.
Add a native function for decoding an Asset, and remove old
call to CheckForAssetStream.

graphics/java/android/graphics/BitmapFactory.java:
Write a helper function for decoding a stream to consolidate
common code.
Buffer enough of the input so that SkImageDecoder::Factory
can rewind after having read enough to determine the type.
Unlike the old code, do NOT mark the caller's stream. This is
handled in native code. The caller's mark (if any) is left alone.

graphics/java/android/graphics/Movie.java:
Check for an Asset stream before passing to native, and
call a native function for handling the asset directly.

BUG:6493544
BUG:8432093
BUG:10725383

Change-Id: Ide74d3606ff4bb2a8c6cdbf11bae3f96696f331a
ndroid/graphics/BitmapFactory.java
ndroid/graphics/Movie.java
b6a3ef18342e6671d9674312b66a015d6caa80ed 13-Sep-2013 Tor Norbye <tnorbye@google.com> Merge "Add typedefs and nullness annotations."
33069f40e5ba5a8c036671a67668b6bdfe6eb3a9 12-Sep-2013 Igor Murashkin <iam@google.com> am 47869404: am 2cad64c0: Merge "Surface: Change OutOfResourcesException to be a runtime exception" into klp-dev

* commit '47869404cb8233c536a0a5d2c5ce4d0089e39882':
Surface: Change OutOfResourcesException to be a runtime exception
d9273d6f289d9b55da3fd0db2f659fdfb48106a8 31-May-2013 Tor Norbye <tnorbye@google.com> Add typedefs and nullness annotations.

This changeset adds in typedef annotations (custom annotations
marked with @IntDef) for various int parameters and return values
in the API. It also adds nullness annotations for cases where the
documentation explicitly mentioned null policy, or where it was
blindingly obvious from the context. Also fixed some typos in the
documentation.

Change-Id: Ica27c01368895818e26237544edd8483007155bb
ndroid/graphics/drawable/Drawable.java
2cad64c0fbeba07bb546674e19cfb0166d7ec332 11-Sep-2013 Igor Murashkin <iam@google.com> Merge "Surface: Change OutOfResourcesException to be a runtime exception" into klp-dev
4669a5d2783efbd30a0fa32cf22185f61c3d1215 10-Sep-2013 John Reck <jreck@google.com> am 8eb3ece8: am 1d2daa78: Merge "Remove FD optimization case for decodeStream" into klp-dev

* commit '8eb3ece8eeaea4dc06c5b3854d8fd9efea4ef5fc':
Remove FD optimization case for decodeStream
1d2daa7809b58c226410c0060d7837de0a29888a 10-Sep-2013 John Reck <jreck@google.com> Merge "Remove FD optimization case for decodeStream" into klp-dev
319cc55c0288af4cea9b6a9ae1082cf15ed525c1 10-Sep-2013 Stephen Hines <srhines@google.com> am 9b448989: am e3d0f022: Merge "Don\'t set Allocation mSize when we have no Type." into klp-dev

* commit '9b4489897974db2a7a6d9e19b4de2817bbb4755a':
Don't set Allocation mSize when we have no Type.
e3d0f022826a2a16e64dc9b5353a2a514393881b 10-Sep-2013 Stephen Hines <srhines@google.com> Merge "Don't set Allocation mSize when we have no Type." into klp-dev
a86ab640f7bb0bf3cb4eaed80473ca8c5d131903 30-Aug-2013 Igor Murashkin <iam@google.com> Surface: Change OutOfResourcesException to be a runtime exception

- Deprecates SurfaceTexture.OutOfResourcesException, it wasn't used
- Make all JNI code throw only Surface.OutOfResourcesException
- Get rid of redundant SurfaceControl.OutOfResourcesException

Bug: 10566539
Change-Id: I58126260771b9ccff6a69c672ce7719b9f98138d
ndroid/graphics/SurfaceTexture.java
88990da58d0231b5a1b9a27b32c37839e95c7487 10-Sep-2013 Stephen Hines <srhines@google.com> Don't set Allocation mSize when we have no Type.

Bug: 10667740

A3D creates Allocations before knowing the underlying Type (and thus size).
Moving the mSize calculation to be conditional for concrete Allocations
eliminates the bug. In the future, we could let A3D dynamically update the
Allocation size if it is necessary to improve heap behavior.

Change-Id: I520246806b6ead0387a1a41372dade1a6e7c2271
ndroid/renderscript/Allocation.java
5835157d762a5b6bffe3d892c588ebc475bccb44 10-Sep-2013 John Reck <jreck@google.com> Remove FD optimization case for decodeStream

Bug: 10677727
The problem is that the FileInputStream may be wrapping a pipe or
AssetFileDescriptor which fails if handed to decodeFileDescriptor.
The problem is that AFDs can start in the middle of a file, whereas
decodeFileDescriptor assumes it can mmap() the FD and start at
the beginning.

Change-Id: I98a3c5f789865145e25a99b32d205e290808c1cf
ndroid/graphics/BitmapFactory.java
5b4b94ca598046a162ea81cce1225324aaf9cfd5 10-Sep-2013 Andy McFadden <fadden@android.com> am 324738e7: am 440f4dfa: Merge "Fix pixel test" into klp-dev

* commit '324738e700c7cce33eec2e0d7f6f2e86a91def7a':
Fix pixel test
440f4dfac89c113b41f1a7259306b90b0cde8768 10-Sep-2013 Andy McFadden <fadden@android.com> Merge "Fix pixel test" into klp-dev
ebc6c4bb179ac3cafcf17a396abd199198079636 09-Sep-2013 Chris Craik <ccraik@google.com> am 177718a7: am f25fceef: Merge "Update doc for BitmapFactory.Options to include BitmapRegionDecoder" into klp-dev

* commit '177718a7d2fa22ee8b982b1c19d4db50beb5790b':
Update doc for BitmapFactory.Options to include BitmapRegionDecoder
5d2cace4c5445915c9ea040518c59d85cfcd6b4b 09-Sep-2013 Andy McFadden <fadden@android.com> Fix pixel test

A deprecated format was dropped entirely.

Bug 10666734

Change-Id: I6b64bd27db8965a1696d72387232b7de4bce6574
ndroid/graphics/PixelFormat.java
352919efd02808f0d6222f7a2cc657f3455c2049 07-Sep-2013 Chris Craik <ccraik@google.com> Update doc for BitmapFactory.Options to include BitmapRegionDecoder

bug:9987022
Change-Id: I1a4e187e1c35a7758b70f69a0a25914597920e8f
ndroid/graphics/BitmapFactory.java
672fcd5c9a90ed4e133d441fee3b0130c7acd769 05-Sep-2013 Chet Haase <chet@google.com> am 04f31501: am a9fa33b3: Merge "Change build version from KEY_LIME_PIE to KITKAT" into klp-dev

* commit '04f31501602a87ae9526983f4a92e623b4d68bb3':
Change build version from KEY_LIME_PIE to KITKAT
e8222dddaf2e3da14380101e818d4254899e0c0d 05-Sep-2013 Chet Haase <chet@google.com> Change build version from KEY_LIME_PIE to KITKAT

Issue #10631619 Change build version to KitKat

Change-Id: I6ad13f6169ad74204078d36929479998b498ad8b
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
d2c576dba1ff4d4bdedabb179753724ce5ebe6ba 05-Sep-2013 Tim Murray <timmurray@google.com> am 4965dbc3: am d2676f9b: Merge "Add YUV element convenience function." into klp-dev

* commit '4965dbc3149b1b1b4ff16b8da60cd31aed1c6e15':
Add YUV element convenience function.
d2676f9bd93c333ae2c7f3ca284d0fef5a7e146b 05-Sep-2013 Tim Murray <timmurray@google.com> Merge "Add YUV element convenience function." into klp-dev
932e78e9903342e3494983fd3463084caab4ba42 03-Sep-2013 Tim Murray <timmurray@google.com> Add YUV element convenience function.

Change-Id: Ie67dfba6a4c4f1913875ad9817c53e45d56809ae
ndroid/renderscript/Element.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/ScriptIntrinsicYuvToRGB.java
b6c4324fba7b71e6f8aa46ab8ad6bdb0f02d29ee 04-Sep-2013 Romain Guy <romainguy@google.com> am 9a160a52: am e182bfd4: Merge "Prevent NPE when cloning gradients Bug #10436856" into klp-dev

* commit '9a160a52b9edfc32e2fe444b3925534ae21ed5bc':
Prevent NPE when cloning gradients Bug #10436856
e182bfd4dcf35d5009bcae72356b999b5ead0433 04-Sep-2013 Romain Guy <romainguy@google.com> Merge "Prevent NPE when cloning gradients Bug #10436856" into klp-dev
9622adf6e8028aebd57213371c4f2c6c26fc63e5 04-Sep-2013 Romain Guy <romainguy@google.com> Prevent NPE when cloning gradients
Bug #10436856

Change-Id: I98cbce941a06842112b8caa3753a3fa32b227da9
ndroid/graphics/LinearGradient.java
ndroid/graphics/RadialGradient.java
ndroid/graphics/SweepGradient.java
083cdca013ec10a56f5b48a9461cb5b841fa61f1 03-Sep-2013 Romain Guy <romainguy@google.com> am 3d179241: am 3e8105e2: Merge "Update Bitmap.Config.ARGB_4444 documentation Bug #10510122" into klp-dev

* commit '3d179241bfbdeb4e293d2b773cfe6a586158d4b0':
Update Bitmap.Config.ARGB_4444 documentation Bug #10510122
3e8105e212e65005c0ef0ecc345b47eb0bf129bd 03-Sep-2013 Romain Guy <romainguy@google.com> Merge "Update Bitmap.Config.ARGB_4444 documentation Bug #10510122" into klp-dev
25ba1c86945a441428194d9ebcabbf31be75a45a 03-Sep-2013 Romain Guy <romainguy@google.com> Update Bitmap.Config.ARGB_4444 documentation
Bug #10510122

ARGB_4444 is deprecated and always replaced with ARGB_8888.

Change-Id: I0da96216af701a7df00ad35913066fbfa997d790
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
c8502215007b665ca5ff1079a8b166a6344e6d22 30-Aug-2013 Jason Sams <jsams@google.com> am a2c13b3a: am c2b582c0: Merge "Cleanup API typo" into klp-dev

* commit 'a2c13b3a08b4b5a8f340cdedfd56557699dcb177':
Cleanup API typo
a49e89d2288827e2c96bc006e1e4893d22b41f3b 30-Aug-2013 Jason Sams <jsams@google.com> Cleanup API typo

bug 10548782

Change-Id: I3654b7d1f8ea10eb51006804248cc2a7d20eabb0
ndroid/renderscript/ScriptIntrinsicColorMatrix.java
ndroid/renderscript/ScriptIntrinsicHistogram.java
7407850c8a0784b44212fefbdbc69385d00e5bd2 29-Aug-2013 Jason Sams <jsams@google.com> am 1a81725e: am 6b115980: Merge "Unhide USAGE_IO_INPUT functions" into klp-dev

* commit '1a81725ececffe68af466d1f8dcea56b86a84247':
Unhide USAGE_IO_INPUT functions
6b115980483ec20cc3f7817c76dfea18c49a48f3 29-Aug-2013 Jason Sams <jsams@google.com> Merge "Unhide USAGE_IO_INPUT functions" into klp-dev
42ef238208679813daa204bf110f776ab02c2beb 29-Aug-2013 Jason Sams <jsams@google.com> Unhide USAGE_IO_INPUT functions

Change-Id: I9c1a7e5d65adee133b99b9a94729ab0b3d5a097f
ndroid/renderscript/Allocation.java
f7142e3e8bfba982ad73a7c7a6a992491b7cfb43 29-Aug-2013 Leon Scroggins III <scroggo@google.com> am af172519: am 4b299312: Merge "Replace stream wrap-function w/ more specific ones" into klp-dev

* commit 'af1725190fbb8dd7c29726f8b7c072f3af734aed':
Replace stream wrap-function w/ more specific ones
4b2993123bf9a1c56d0a16b032612834dd418520 29-Aug-2013 Leon Scroggins III <scroggo@google.com> Merge "Replace stream wrap-function w/ more specific ones" into klp-dev
dd5745b7c71e8c6bd6d4c95f6c1981899ac67538 28-Aug-2013 Alan Viverette <alanv@google.com> am c6de5c74: am 236ae4f2: Merge "Set alpha channel correctly when recomputing gradient" into klp-dev

* commit 'c6de5c74e1e5dd92c011a1f060e26e10b15ffb77':
Set alpha channel correctly when recomputing gradient
4d971c1fa0c71400ff1e843b8d8b4826d0aece16 28-Aug-2013 Alan Viverette <alanv@google.com> Set alpha channel correctly when recomputing gradient

The alpha channel is applied by modulateAlpha(). Setting it to
mAlpha in ensureValidRect() locked the maximum alpha channel to
whatever value was set before layout. Setting it to BLACK
ensures it can be modulated later.

BUG: 10514848
Change-Id: If7a824410a66f1e9b648e20ee627bdf99a42ae78
ndroid/graphics/drawable/GradientDrawable.java
ca32021b43f326af7d3f4ae041f8db297f98a518 20-Aug-2013 Leon Scroggins III <scroggo@google.com> Replace stream wrap-function w/ more specific ones

The current stream wrapper returns a potentially incorrect
value for a call to getLength(), is typically copied into
another stream (not always in the same way), and doesn't
always take advantage of its underlying data (like when it
is an Asset). The overall goal of this CL is to provide the
caller with something that is ready to use, depending on
what is asked for. If a copy is desired, the copy is made
before being returned to the caller.

core/jni/android/graphics/Bitmap.cpp:

Include SkStream.h, since it is no longer included by
CreateJavaOutputStreamAdaptor's header file.

core/jni/android/graphics/BitmapFactory.cpp:

Pass an SkStreamRewindable to decoding functions, as Skia
decoders will be updated to only take an SkStreamRewindable
(which makes more sense because they require rewinding).

Call the more specific GetRewindableStream to get a
rewindable stream.

Remove copyAssetToStream which has been moved to Utils.

In nativeDecodeAsset, pass forcePurgeable as allowPurgeable
in doDecode. Technically the old code worked, but it checked
the BitmapOptions again.

Remove getFDSize, which is no longer used.

core/jni/android/graphics/BitmapRegionDecoder.cpp:

Remove redundant buildSkMemoryStream. nativeNewInstanceFromStream
now calls CopyJavaInputStream, which handles the copy.

Copy the Asset directly, using common code, rather than creating
an AssetStreamAdaptor to copy.

core/jni/android/graphics/CreateJavaOutputStreamAdaptor.cpp:
core/jni/android/graphics/CreateJavaOutputStreamAdaptor.h:

Provide new interfaces to access data from a Java InputStream.
The new interfaces are more specific about what type of stream
is desired.

Use forward declarations where possible.

Remove doSize, which gives a misleading answer to the question
of how long the entire stream is.

TODO: Only call FindClass etc once.

core/jni/android/graphics/Movie.cpp:

Check for an asset stream, and use it if possible. Then call
GetRewindableStream if there is not an asset.
Remove the memory leak. Call DeleteLocalRef to delete the
allocated memory.

core/jni/android/graphics/Picture.cpp:

Call the new interface.

core/jni/android/graphics/Utils.cpp:
core/jni/android/graphics/Utils.h:

Make AssetStreamAdaptor inherit from SkStreamRewindable so it
can be passed to Skia decoding functions once they require it.

Add CopyAssetToStream (moved from BitmapFactory.cpp) so it can
be used by multiple files.

graphics/java/android/graphics/BitmapFactory.java:

Remove the call to mark, which is now done natively.

Remove the BufferedInputStream. Mark/reset is now handled
by native code.

Allow decodeStream to handle a FileInputStream by using the
FileDescriptor, if it is seekable. In decodeFileDescriptor,
call nativeDecodeStream instead of decodeStream so this new
functionality will not loop.

Call setDensityFromOptions in decodeFileDescriptor.

graphics/java/android/graphics/BitmapRegionDecoder.java:

Remove the BufferedInputStream. Mark/reset is now handled
by native code.

TODO: ADD TESTS!

Requires https://googleplex-android-review.googlesource.com/#/c/344317/

BUG=https://b.corp.google.com/issue?id=8432093

Change-Id: I4419b70b3482325c98ecc673dbfc4613f1b18581
ndroid/graphics/BitmapFactory.java
ndroid/graphics/BitmapRegionDecoder.java
61cc40bedc00d984883d42093795173f5c2adb04 27-Aug-2013 Tim Murray <timmurray@google.com> am 493a4c85: am c264e044: Merge "Add garbage collection hooks" into klp-dev

* commit '493a4c85cd6476a9b932a3146421eab0f662113a':
Add garbage collection hooks
c264e0440076ccca4be6ec66e33bcd7f8a1ae5b3 24-Aug-2013 Tim Murray <timmurray@google.com> Merge "Add garbage collection hooks" into klp-dev
2f2472c42be8e80f00019594036744d902e09dcb 22-Aug-2013 Tim Murray <timmurray@google.com> Add garbage collection hooks

bug 10428172

Change-Id: I6365aa58bbc99aa134e1f261a5819e07a7d70fb0
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
ed2515e853a0440555d76b2b935086211107dcef 21-Aug-2013 Chris Craik <ccraik@google.com> am 908d9bfa: am dc70afae: Merge "Add inPremutiplied option to BitmapFactory.Options, functionality in Bitmap" into klp-dev

* commit '908d9bfafd576755d06f0566fc4cac3831476f63':
Add inPremutiplied option to BitmapFactory.Options, functionality in Bitmap
1abf5d62429e5a9329520b2f7c2b5a5e7a8e72ec 16-Aug-2013 Chris Craik <ccraik@google.com> Add inPremutiplied option to BitmapFactory.Options, functionality in Bitmap

bug:2248948

Change-Id: I8fdd649332667598504a1076d5a447572bd53086
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
ndroid/graphics/Canvas.java
4e802a78e6e448eddffd429a1a546597cd79dbc0 21-Aug-2013 Eino-Ville Talvala <etalvala@google.com> am 948e200e: am 9fac8a6a: Merge "Renderscript: Allow YUV_420_888 as a YUV type." into klp-dev

* commit '948e200e2d281c4547faac2f2a429c4aa73a010b':
Renderscript: Allow YUV_420_888 as a YUV type.
9fac8a6a4a47bf7b72d6c759c6f605b1806f925a 21-Aug-2013 Eino-Ville Talvala <etalvala@google.com> Merge "Renderscript: Allow YUV_420_888 as a YUV type." into klp-dev
13656743cc21bac43676568314366497346713ee 20-Aug-2013 Romain Guy <romainguy@google.com> Make color filters mutable

Change-Id: I3d035d24a75e09db13d136a22bd7dbd326d0ce36
ndroid/graphics/ColorFilter.java
ndroid/graphics/ColorMatrix.java
ndroid/graphics/ColorMatrixColorFilter.java
ndroid/graphics/LightingColorFilter.java
ndroid/graphics/PorterDuffColorFilter.java
e78044a9e3df7e45b2d5b6f43d3465c5588f8457 14-Aug-2013 Mike Klein <mtklein@google.com> am bc37c299: am be925721: Remove comment that\'s only relevant for the underlying SkMatrix. Matrix has constructors.

* commit 'bc37c2991779b7c9372e5cbc3bd177273aae5644':
Remove comment that's only relevant for the underlying SkMatrix. Matrix has constructors.
ccadaf1eb48c70a3eb5722ecbd0144d165bcd963 14-Aug-2013 Eino-Ville Talvala <etalvala@google.com> Renderscript: Allow YUV_420_888 as a YUV type.

Change-Id: I1ed731103a49a814f9a049ecd01be98261b6d06b
ndroid/renderscript/Type.java
be925721a5eef487a70baa8b0905e423c639e176 14-Aug-2013 Mike Klein <mtklein@google.com> Remove comment that's only relevant for the underlying SkMatrix. Matrix has constructors.

bug: 8470620

Change-Id: I00063dc03f752955c27c73e9c59b0496a1795924
ndroid/graphics/Matrix.java
e74d0d0bf248bdfcd60089543838475d200b59dc 13-Aug-2013 Romain Guy <romainguy@google.com> am 820726d7: am 9955699d: Merge "Camera.applyToCanvas() now works with hardware canvases" into klp-dev

* commit '820726d7c6fa46203585025ac7fddff8f19ed0f3':
Camera.applyToCanvas() now works with hardware canvases
7fbbc3c9c3dc25c2bc78bba6fd267bfd99c96b2b 13-Aug-2013 Romain Guy <romainguy@google.com> Camera.applyToCanvas() now works with hardware canvases

Change-Id: I7f06b2a74ccc1941d51e12a0417028e094c1b669
ndroid/graphics/Camera.java
e95e421cbee32e53889dc91b92c02ee6141d17c0 12-Aug-2013 Romain Guy <romainguy@google.com> am 98e50c50: am 964f2b30: Merge "Update Bitmap.createBitmap() documentation" into klp-dev

* commit '98e50c50f52b045d944df2eee0987d06eb1af07d':
Update Bitmap.createBitmap() documentation
790552b240c05d58407f7c14acba656b2e85c523 12-Aug-2013 Romain Guy <romainguy@google.com> Update Bitmap.createBitmap() documentation

Change-Id: Ic2efed6cc03c8b2c2d9810b7ab645b0b98b91e1f
ndroid/graphics/Bitmap.java
4362383027a490626f8425d980f7607f04ce37bf 10-Aug-2013 Fabrice Di Meglio <fdimeglio@google.com> am b945d80c: am 5af4edef: Merge "Fix bug #10205316 CTS (KLP): android.graphics tests are failing" into klp-dev

* commit 'b945d80c9bb91b90e48add2a4f665de02c63e28c':
Fix bug #10205316 CTS (KLP): android.graphics tests are failing
5af4edef084f4d3f94af71acca53c68929e82008 09-Aug-2013 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #10205316 CTS (KLP): android.graphics tests are failing" into klp-dev
40bac4107d682eb32658951e4d1949366b1f1dbf 09-Aug-2013 Romain Guy <romainguy@google.com> am ac322988: am 00312300: Remove an unnecessary allocation

* commit 'ac322988339d98665eff9f5937caff9a4eadd9d2':
Remove an unnecessary allocation
5abec6ec5f16feec471bd8af3be4e763571c1cd2 09-Aug-2013 Jonathan Dixon <joth@google.com> am de3ff4b4: am 42773328: Merge "Refactor Canvas.drawPicture() to delegate to Picture" into klp-dev

* commit 'de3ff4b4859a92a19d84b33f5a93a0b3454698e6':
Refactor Canvas.drawPicture() to delegate to Picture
003123004f7b23b3dc472d5c40b8c1a16df37a54 09-Aug-2013 Romain Guy <romainguy@google.com> Remove an unnecessary allocation

Also remove dead code from OpenGLRenderer.cpp

Change-Id: I7eb54ca19e77ee3c32f1fe9513a031e6b2e115cf
(cherry picked from commit 5c7d5ab878b26f855175a3305a14ac12fcacf25e)
ndroid/graphics/Canvas.java
41207bce2a13c77bf03a05524ba3b3c59f486cc0 09-Aug-2013 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #10205316 CTS (KLP): android.graphics tests are failing

- fix null Shader case during copy

Related to https://googleplex-android-review.googlesource.com/#/c/336815/7

Change-Id: I920d6bb181ddb92d6f771e5060fd1858430e71ad
ndroid/graphics/Paint.java
667fe1039feae068d3333de8fb7115313f4a517b 03-Aug-2013 Jonathan Dixon <joth@google.com> Refactor Canvas.drawPicture() to delegate to Picture

Bug: 9814370

To allow WebView.capturePicture() to return a subclass, we need to
ensure the subclass is always consulted when being drawn into a canvas.

Change-Id: Ia0357f95b6fafb3ac81e6bcfaef05739e619897a
ndroid/graphics/Canvas.java
be6f592ce23cb31f08b7b7908c5f079a3ccd93d7 08-Aug-2013 Chris Craik <ccraik@google.com> Merge "Better explain outWidth/Height use with inJustDecodeBounds"
52a9a10b6b8c7b7a9f97777541841b94d4fd9754 02-Aug-2013 Mathias Agopian <mathias@google.com> Clearly separate consumer and producer interfaces

Bug: 9265647
Change-Id: Ic68e91788d0a05251e1d2fb9f9d4de403c7099bf
ndroid/graphics/SurfaceTexture.java
544333b39ec612e0e3426d3ef90b21761ea0d751 05-Aug-2013 Chris Craik <ccraik@google.com> Better explain outWidth/Height use with inJustDecodeBounds

Change-Id: I81d2d63a1dd0792ca11a157b30152496b16e4c8d
ndroid/graphics/BitmapFactory.java
f2ce9f994a0dba5e3d97b5d4ae97eddb0008b7b5 05-Aug-2013 Elliott Hughes <enh@google.com> am eab8e18d: am 8a736129: Merge "If graphics wants ASCII lowercasing, it needs to ask for it."

* commit 'eab8e18d8f6f34a9d35fbb120148956789ad48a2':
If graphics wants ASCII lowercasing, it needs to ask for it.
eab8e18d8f6f34a9d35fbb120148956789ad48a2 05-Aug-2013 Elliott Hughes <enh@google.com> am 8a736129: Merge "If graphics wants ASCII lowercasing, it needs to ask for it."

* commit '8a736129faa9e41b5f33c42bbeae1f68cb42d38f':
If graphics wants ASCII lowercasing, it needs to ask for it.
b7645acfd929911adeeea44334a3168dd0a0cf8b 03-Aug-2013 Igor Murashkin <iam@google.com> Merge "graphics: Update ImageFormat#YUV_420_888 javadoc"
7a600ff65fa79696a2668c7d33101b6ac6696f04 01-Aug-2013 Igor Murashkin <iam@google.com> graphics: Update ImageFormat#YUV_420_888 javadoc

* Make it clear that the Y-plane is not interleaved for YUV_420_888
* Make it clear that the U/V plane have the same stride
* Make it clear what the order of Y/U/V planes is

Change-Id: Id85d7c68e84382149dbf0e8b4e965ba2988326fe
ndroid/graphics/ImageFormat.java
aeb60fb86fc572500239c6f6684d1eb71e3ae35b 02-Aug-2013 Elliott Hughes <enh@google.com> If graphics wants ASCII lowercasing, it needs to ask for it.

http://elliotth.blogspot.com/2012/01/beware-convenience-methods.html

Bug: https://code.google.com/p/android/issues/detail?id=58359
Change-Id: I13c106985302335dbb15bb9176d35ec6b4546d4e
ndroid/graphics/Color.java
3f5a90b2fbba2a83a8a2c5babd5d466a5e0ad2aa 25-Jun-2013 Fabrice Di Meglio <fdimeglio@google.com> Add automatic Drawable mirroring capability when in RTL layout direction

- default value is "no mirroring"
- introduce android:autoMirrored as a new attribute for Drawable,
BitmapDrawable, LayerDrawable, StateListDrawable and NinePatchDrawable
- setting android:autoMirrored="true" means that the drawable will
be mirrored when the layout direction is RTL (right-to-left)
- also fix an issue with ImageView drawable layout direction not
updated correctly when RTL properties were changed

See bug #7034321 Need Drawable RTL support

Change-Id: If595ee5106c786f38e786d3a032e182f784a9d97
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
851761574a775c6447ab2393d1ba42568ba08c1b 01-Aug-2013 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix Paint Shader copy"
e3c526f4f603e83c5fa8b9e399506b085f5648b7 31-Jul-2013 Fabrice Di Meglio <fdimeglio@google.com> Fix Paint Shader copy

- Paint.setClassVariablesFrom(Paint paint) was using the same Shader
for the copy as the initial Paint. Make sure that we are using a copy.
- implement a copy() API for shaders

See bug #7034321 Need Drawable RTL support

Change-Id: I4b9cee386edc72ad670723266333b85f4d2b0ab8
ndroid/graphics/BitmapShader.java
ndroid/graphics/ComposeShader.java
ndroid/graphics/LinearGradient.java
ndroid/graphics/Paint.java
ndroid/graphics/RadialGradient.java
ndroid/graphics/Shader.java
ndroid/graphics/SweepGradient.java
5d3dff1d66f99fbd5bef9178e62d789119c02ad1 01-Aug-2013 Romain Guy <romainguy@google.com> Merge "Add missing alpha channel to built-in colors"
86d3e03d381bff8c107e3def31cf37f4851f827c 01-Aug-2013 Romain Guy <romainguy@google.com> Add missing alpha channel to built-in colors

Change-Id: I911c17b623513b2715668d0f91604b28c32a969a
ndroid/graphics/Color.java
1e546815bbb736c50679a8aefc25f48561026fc5 25-Jun-2013 Victoria Lease <violets@google.com> Support RGBA fonts and bitmap fonts (and RGBA bitmap fonts)

Quite a few things going on in this commit:

- Enable bitmap strikes by default in Paint objects.

The SkPaint parameter that enables bitmap strikes was not previously
included in DEFAULT_PAINT_FLAGS. This effectively disabled bitmap
fonts. Oops! It's for the best, though, as additional work was needed
in Skia to make bitmap fonts work anyway.

- Complain if TEXTURE_BORDER_SIZE is not 1.

Our glyph cache code does not currently handle any value other than 1
here, including zero. I've added a little C preprocessor check to
prevent future engineers (including especially future-me) from
thinking that they can change this value without updating the related
code.

- Add GL_RGBA support to hwui's FontRenderer and friends

This also happened to involve some refactoring for convenience and
cleanliness.

Bug: 9577689
Change-Id: I0abd1e5a0d6623106247fb6421787e2c2f2ea19c
ndroid/graphics/Paint.java
6d64d5ab84a66f98633acf740414a8848feaa14b 31-Jul-2013 Romain Guy <romainguy@google.com> Merge "Add missing InsetDrawable.getDrawable() method"
84956d53f1e86b8c000f8994ea9040b71a30e321 30-Jul-2013 Romain Guy <romainguy@google.com> Add missing InsetDrawable.getDrawable() method

Change-Id: I216b0e8a327f495fd83ebac79013418dbae007b9
ndroid/graphics/drawable/InsetDrawable.java
2f1a2e423e0fbb64467d6fcfa4e82c6384f31210 26-Jul-2013 Eino-Ville Talvala <etalvala@google.com> Camera2 API: Rename package to android.hardware.camera2

Change-Id: I77b7939e199f9fe8e12a59393c24cff08097448c
ndroid/graphics/ImageFormat.java
56fbb6362b6a0f17804d33af913b720f21c884c5 30-Jul-2013 Romain Guy <romainguy@google.com> Merge "Add path ops API"
8018c8db8221aa604b3c083e09d173cc27e53d83 30-Jul-2013 Romain Guy <romainguy@google.com> Add path ops API

Path ops can be used to combine two paths instances in a single path
object. The following operations can be used:

- Difference
- Reverse difference
- Union
- XOR
- Intersection

To use the API:

Path p1 = createCircle();
Path p2 = createRect();

Path result = new Path();
result.op(p1, p2, Path.Op.DIFFERENCE);

This code will subtract the rectangle from the circle and generate
the resulting path in "result."

Change-Id: Ic25244665b6691a7df0b0002a09da73d937b553b
ndroid/graphics/Path.java
d979208974d995438ebd51e8070eaeabf63461db 27-Jul-2013 Jason Sams <jsams@google.com> Relax restriction on Colormatrix and add Add step.

Change-Id: Iccb519bb40f58f02346b5c0a10c1378cb853e3f8
ndroid/renderscript/ScriptIntrinsicColorMatrix.java
cb92a8d9428c2e4a9f038cd5f10e9d61bf265cd4 28-Jul-2013 Mathias Agopian <mathias@google.com> fix SDK build

Change-Id: I41c19740b8f0532dbd6184e13bae43a13aaa46e2
ndroid/graphics/SurfaceTexture.java
e591b49de038a9942cbcc77540c03e85c96e3dcb 25-Jul-2013 Mathias Agopian <mathias@google.com> single buffer mode for SurfaceTexture

Bug: 9891035
Change-Id: Ib9cc2b64f7ff3c084ef1d7db442db8e7a24a923d
ndroid/graphics/SurfaceTexture.java
9f213c8b648c06e781911c12d6c12f6a6606f6d2 26-Jul-2013 Mathias Agopian <mathias@google.com> Merge changes I487d4eef,Ia750811f

* changes:
get rid of PixelFormatInfo and simplify things
get rid of PIXEL_FORMAT_A_8
2ca204e4c0ba805c8fa0db79eeac9608d01cf5b4 26-Jul-2013 Mathias Agopian <mathias@google.com> get rid of PixelFormatInfo and simplify things

Change-Id: I487d4eef7db0095ace4babf5bb100a8769711257
ndroid/graphics/PixelFormat.java
a06cba19c98c15547d2dc361359cf6f955ec2588 25-Jul-2013 Scott Main <smain@google.com> am 8d9a4bd1: am 174dd066: Merge "remove link to renderscript support library" into jb-mr2-ub-dev

* commit '8d9a4bd1eb09cc795bf96c4f3a2824f9642c70e4':
remove link to renderscript support library
d2d43b9647aa02e4f114d993364d7c686d99187b 24-Jul-2013 Scott Main <smain@google.com> remove link to renderscript support library

Change-Id: If8e693239b92058c0a2928e0811870bec3a150fe
ndroid/renderscript/package.html
9c2cde0583d02ba7551877dbe7a5ecaee6defb56 23-Jul-2013 Chris Craik <ccraik@google.com> Use IllegaleStateException to be consistent with rest of Bitmap class

Change-Id: Idd1c77f92eafa8a43619d27a9567382447540e5f
ndroid/graphics/Bitmap.java
d84feebba428d2f5adc021353ae24d3d2737220a 20-Jul-2013 Mathias Agopian <mathias@google.com> Merge "update to new Consumer APIs"
ef5498edf62eb439b4c3f980422c3513e23b5ee9 19-Jul-2013 Chris Craik <ccraik@google.com> Merge "Add reconfigure method to Bitmap"
c84d203da21c3ae3ded94c79c035d41b27809b3b 13-Jul-2013 Chris Craik <ccraik@google.com> Add reconfigure method to Bitmap

bug:9797004

Grants a means to reuse a bitmap's allocation for different
width/height/Config without going through
BitmapFactoryOptions.inBitmap

Change-Id: Ib62319f3bd96c451fc1636288adf06a8275b4e3d
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
e32632682ca9207bd247ca27012cf670b5c23f54 17-Jul-2013 Mathias Agopian <mathias@google.com> update to new Consumer APIs

Change-Id: I8649f3add40e0aeeeb0396b98e2cb93312e8e990
ndroid/graphics/SurfaceTexture.java
4e7b772b733593fbe25c733e95b8dcea293234b6 16-Jul-2013 Romain Guy <romainguy@google.com> Fix crashes in setMatrix() and concat()

setMatrix() was crashing in native code, only with hw acceleration on.
concat() would throw a NullPointerException. It now ignores null matrices.

Change-Id: Iebd8b410a957d2ba501570c6fbb3f680ff4a1a23
ndroid/graphics/Canvas.java
787e35793f47abdb6cc10f328cd58d362c7bd250 12-Jul-2013 Romain Guy <romainguy@google.com> Trace bitmaps decoding

Also remove dead code

Change-Id: Ie931b21858ccbe6ee4def54caf028fd2aed23317
ndroid/graphics/BitmapFactory.java
e68720ee154cc98fb6067cc63d333e3f809244dc 10-Jul-2013 Andy McFadden <fadden@android.com> Merge "Minor fixes to android.graphics.Matrix"
73b81e75dfcdba048f294cf154ed9005a6581bd4 10-Jul-2013 Andy McFadden <fadden@android.com> Minor fixes to android.graphics.Matrix

Tweaked equals() and finalize(), introduced trivial hashCode().

(Also picked up a handful of automatic trailing-space removals.)

Bug 9756081

Change-Id: I4639cf1e970a16179fa6c0d24785f4d0dfbe58ed
ndroid/graphics/Matrix.java
0c20c3898a533b7b76f60827cb6ea02e17c5953d 02-Jul-2013 Chris Craik <ccraik@google.com> Use global references for Bitmap AndroidPixelRefs

bug:9621717

Because we're no longer holding onto Bitmaps Java side during
DisplayList lifetime, use global refs to keep the backing byte arrays
around.

Adds back bitmap buffer passing + native ref management removed by
3b748a44c6bd2ea05fe16839caf73dbe50bd7ae9

Adds back globalRef-ing removed by
f890fab5a6715548e520a6f010a3bfe7607ce56e

Change-Id: Ia59ba42f05bea6165aec2b800619221a8083d580
ndroid/graphics/Bitmap.java
ec6221e555ddddc7dd8ff7d01cab1cee98ddbb91 28-Jun-2013 Jason Sams <jsams@google.com> Merge "Add 2,3 vectors to allowed intrinsic list."
d93fdb77d84aa3f2c427034cf17e72941f3c3418 28-Jun-2013 Jason Sams <jsams@google.com> Add 2,3 vectors to allowed intrinsic list.

Change-Id: Iafd90ef4337076ed9d1e335c16272a0517f846b3
ndroid/renderscript/ScriptIntrinsicConvolve3x3.java
ndroid/renderscript/ScriptIntrinsicConvolve5x5.java
e3b0a0117a2ab4118f868a731b238fe8f2430276 27-Jun-2013 Romain Guy <romainguy@google.com> Refcount 9-patches and properly handle GC events

This change adds refcounting of Res_png_9patch instances, the native
data structure used to represent 9-patches. The Dalvik NinePatch class
now holds a native pointer instead of a Dalvik byte[]. This pointer
is used whenever we need to draw the 9-patch (software or hardware.)

Since we are now tracking garbage collection of NinePatch objects
libhwui's PatchCache must keep a list of free blocks in the VBO
used to store the meshes.

This change also removes unnecessary instances tracking from
GLES20DisplayList. Bitmaps and 9-patches are refcounted at the
native level and do not need to be tracked by the Dalvik layer.

Change-Id: Ib8682d573a538aaf1945f8ec5a9bd5da5d16f74b
ndroid/graphics/NinePatch.java
f296dca95f09be9832b5dcc79717986525d2b6cb 24-Jun-2013 Romain Guy <romainguy@google.com> (Small) 9patch drawing improvements

Save a bit of memory in meshs generated from native code
Avoid an extra if/else when drawing with hardware accelration on

Change-Id: I31a4550bde4d2c27961710ebcc92b66cd71153cc
ndroid/graphics/Canvas.java
ndroid/graphics/NinePatch.java
ff4adde5737be08d3e2d03fbe588c591d27d4a74 10-Jun-2013 Svetoslav Ganov <svetoslavganov@google.com> Generate PDF from Canvas.

This change adds simple APIs that enable an Android application
to generate a PDF document by drawing content on a canvas.

Change-Id: Ibac93d7c37b01a376ce7c48238657d8c7698d588
ndroid/graphics/Canvas.java
9274384ff0087300ce7c9758c800f071dcee285b 19-Jun-2013 Jason Sams <jsams@google.com> Fix docs

Change-Id: Ie6563f633481951d97f319aefd282b15c049e281
ndroid/renderscript/ScriptIntrinsicHistogram.java
1a3edb00c5d08f9b82238667adb434fe50cb3f99 19-Jun-2013 Jason Sams <jsams@google.com> Update histogram docs.

Change-Id: I6cfedb5cac459befb083f352f43ed33f4418145a
ndroid/renderscript/ScriptIntrinsicHistogram.java
048c978ae599ecc9e00d68040ae9fd8a9d46df64 18-Jun-2013 Jason Sams <jsams@google.com> Allow single channel and float convolve.

Change-Id: If448ea2ae38de2f8b95fc884ea0dbf8222964012
ndroid/renderscript/ScriptIntrinsicConvolve3x3.java
ndroid/renderscript/ScriptIntrinsicConvolve5x5.java
8ace2acbf16deb300a58e13fab5bbd28ff2d808c 19-Jun-2013 Jason Sams <jsams@google.com> Add support for vec2 histogram

Change-Id: I30ab758a44485a8ea30043c4cd782c3560074c58
ndroid/renderscript/ScriptIntrinsicHistogram.java
109c46b8eaff88d7f0106ec9ca059f9cd09b0664 19-Jun-2013 Jason Sams <jsams@google.com> Merge "Add histogram intrinsic"
01e9f90576f356905b392e3bbff0ad442988180f 18-Jun-2013 Jason Sams <jsams@google.com> Add histogram intrinsic

Change-Id: I67bcaaef033d8770047923e8243e739010238539
ndroid/renderscript/ScriptIntrinsicHistogram.java
1eb818e5b3481ee1c9722ad6b7bd925afdadb441 14-Jun-2013 Zhijun He <zhijunhe@google.com> Add Y8 and Y16 image format

These APIs are hidden. Also correct the value of RAW_SENSOR.

Bug: 9254294
Change-Id: Ic6271f5f6bfcfdd8b545d69a9a2154241c34d73b
ndroid/graphics/ImageFormat.java
f390f770ee570f1f4def41b165cb9492e381be40 14-Jun-2013 Alan Viverette <alanv@google.com> Postpone creating new drawables for DrawableContainerState.

When creating a DrawableContainerState from a constant state, calls to
ConstantState.newDrawable() are postponed and made as they are needed.

Bug: 9280861
Change-Id: I03c93a43ee00aca3ff618d66d7f507f1722538d1
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/StateListDrawable.java
b2675542c2f414154125b534767ae0903fba581e 12-Dec-2012 Eino-Ville Talvala <etalvala@google.com> Initial commit of new camera API, mostly just the interface.

- New core API classes in android.hardware.photography
- android.media.Image and android.media.ImageReader classes for
application access to direct hardware image buffers.
- Additions to android.graphics.ImageFormat to describe new image
types needed by new camera API.
- Some documentation included; very little implementation.

Bug: 9111736
Change-Id: I0680f35944d1cb8845b7dc0c67edc8c0f0864573
ndroid/graphics/ImageFormat.java
81056427e8d710acdf471a2d6a91bc0298357cce 07-Jun-2013 Romain Guy <romainguy@google.com> Merge "Remove unnecessary Rect, better reuse of NinePatch objects"
f3187b7df158d2de36955ddcc666ba4b8544a2ce 07-Jun-2013 Romain Guy <romainguy@google.com> Remove unnecessary Rect, better reuse of NinePatch objects

Cloning drawables (which happens a lot) was creating copies of NinePatch
objects, which would cause the hardware renderer to generate more meshes
than necessary. Also avoid keeping a String we don't need (it was interned
but still.) Last but not least, remove 1 RectF per NinePatch in the system.

Change-Id: If4dbfa0c30892c9b00d68875e334fd5c2bde8b94
ndroid/graphics/Canvas.java
ndroid/graphics/NinePatch.java
ndroid/graphics/drawable/NinePatchDrawable.java
34bff87b32a10f6267e76a7de0b287eb6a4633f9 06-Jun-2013 Chris Craik <ccraik@google.com> Merge "Add support for post-decode density scaling with reuse"
b33d778e9c0bcc68662d0457561cbc416b5b6f3c 06-Jun-2013 Alan Viverette <alanv@google.com> Merge "Deprecate DrawableStateList.getChildren() and add getChild()."
1e97ceb46991183a9286bb5ed8308e718e346c1f 06-Jun-2013 Chris Craik <ccraik@google.com> Merge "Support all formats for BitmapFactory.Options.inBitmap"
72146433322588c1116ee06c27ac758ad09d869c 06-Jun-2013 Alan Viverette <alanv@google.com> Deprecate DrawableStateList.getChildren() and add getChild().

Moves from exposing the internal structure of a drawable state list
to only exposing the data. Adds getCapacity() and mutate() as
package-private APIs to support various drawable subclasses.

Change-Id: Id08743f979287e1a305f069ccc3c0085a7da6f7b
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/LevelListDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
905e8246ef0bd20ee28d81ce3da0c5e5fc8e3913 05-Jun-2013 Chris Craik <ccraik@google.com> Add support for post-decode density scaling with reuse

Also, simplifies scaling path, removing java variant - we always do
the scaling in native, which has the benefit of avoiding non-native
temporary allocations

Change-Id: I39c2219f5d77a267719629704e65611cf4388a82
ndroid/graphics/BitmapFactory.java
3f4579fbe44d95c7b0e5850446b929d70a4a85c5 05-Jun-2013 Tim Murray <timmurray@google.com> am 379641a7: am ea45ab6f: Merge "Improve RS documentation." into jb-mr2-dev

* commit '379641a7ef09e1d7fab34d3027c5809fb2bc21ad':
Improve RS documentation.
c11e25c4e653124def1fb18e203b894f42106cbe 09-Apr-2013 Tim Murray <timmurray@google.com> Improve RS documentation.

bug 8570568
Change-Id: I465fcc8ec3e2cc892dc3cb0067aacf5224338102
ndroid/renderscript/Allocation.java
ndroid/renderscript/AllocationAdapter.java
ndroid/renderscript/BaseObj.java
ndroid/renderscript/Byte2.java
ndroid/renderscript/Byte3.java
ndroid/renderscript/Byte4.java
ndroid/renderscript/Double2.java
ndroid/renderscript/Double3.java
ndroid/renderscript/Double4.java
ndroid/renderscript/Element.java
ndroid/renderscript/FieldPacker.java
ndroid/renderscript/FileA3D.java
ndroid/renderscript/Float2.java
ndroid/renderscript/Float3.java
ndroid/renderscript/Float4.java
ndroid/renderscript/Font.java
ndroid/renderscript/Int2.java
ndroid/renderscript/Int3.java
ndroid/renderscript/Int4.java
ndroid/renderscript/Long2.java
ndroid/renderscript/Long3.java
ndroid/renderscript/Long4.java
ndroid/renderscript/Matrix2f.java
ndroid/renderscript/Matrix3f.java
ndroid/renderscript/Matrix4f.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/RSDriverException.java
ndroid/renderscript/RSIllegalArgumentException.java
ndroid/renderscript/RSInvalidStateException.java
ndroid/renderscript/RSRuntimeException.java
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/Sampler.java
ndroid/renderscript/Script.java
ndroid/renderscript/ScriptC.java
ndroid/renderscript/ScriptGroup.java
ndroid/renderscript/ScriptIntrinsic3DLUT.java
ndroid/renderscript/ScriptIntrinsicBlend.java
ndroid/renderscript/ScriptIntrinsicBlur.java
ndroid/renderscript/ScriptIntrinsicColorMatrix.java
ndroid/renderscript/ScriptIntrinsicConvolve3x3.java
ndroid/renderscript/ScriptIntrinsicConvolve5x5.java
ndroid/renderscript/ScriptIntrinsicLUT.java
ndroid/renderscript/ScriptIntrinsicYuvToRGB.java
ndroid/renderscript/Short2.java
ndroid/renderscript/Short3.java
ndroid/renderscript/Short4.java
ndroid/renderscript/Type.java
ndroid/renderscript/package.html
7e8c03c0fed64c73a4f0cfb96a2c6905b348a143 03-Jun-2013 Chris Craik <ccraik@google.com> Support all formats for BitmapFactory.Options.inBitmap

bug:9194265

Instead of using custom code in skia to avoid allocations, use a
custom allocator that reuses the allocations from the inBitmap.

In order to avoid inconsistent state, the decode is done in a
separate bitmap and swapped into the existing native bitmap.

Eventually, we'd like to support inScaled=true completely avoiding
java allocations.

Change-Id: Ic4a2f2373b100a80a32c1cdebb7bcb726711c8a7
ndroid/graphics/BitmapFactory.java
1b1c39d773e7ebf8cb2dca62b3ed1a0727c268e1 01-Jun-2013 Jason Sams <jsams@google.com> am d19068a7: am 413adc92: Merge "Fix free after use with createFromBitmapResource" into jb-mr2-dev

* commit 'd19068a7d28d129f5a1a1be478e972b40cea04eb':
Fix free after use with createFromBitmapResource
3ece2f3268a0629383b37604d0712e3f48968ad9 31-May-2013 Jason Sams <jsams@google.com> Fix free after use with createFromBitmapResource

Bug 9227350

Change-Id: Iee7610a9bf3d9d1baf14b968aed2a7d0876d2af7
ndroid/renderscript/Allocation.java
54999da4b6aaf0167f37f0eec987a670254b775f 31-May-2013 Romain Guy <romainguy@google.com> Remove MipmapDrawable

It's a hidden API that nobody uses.

Change-Id: Ie0ecbc45cd191a595e53fe8765defe6f2aa7e3f6
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/MipmapDrawable.java
9f58361e98be7386a4eadd3aa254e9b7d09d0a3b 21-May-2013 Chris Craik <ccraik@google.com> Support larger bitmaps in BitmapFactory.Options.inBitmap

bug:8121994

Adds a new distiction between bitmap size and the allocation
(pixel ref/buffer) used to store its data.

BitmapFactory.inBitmap will allow a bitmap to be reinitialized with
new data if the bitmap being decoded is (after sampleSize) equal or
smaller.

Change-Id: I747750a735c858882df3af74fca6cdc46f2a9f81
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
ccccc44b13a5e5407fb87461d33a5db9672499c5 25-May-2013 Romain Guy <romainguy@google.com> am ac629ee8: am 529a9e39: Merge "TransitionDrawable should not become a LayerDrawable Bug #9057757" into jb-mr2-dev

* commit 'ac629ee86d9e60e35098d8e731a35fc36b3bf3d5':
TransitionDrawable should not become a LayerDrawable Bug #9057757
529a9e391e386aac37ea722d2517d376968b3d31 25-May-2013 Romain Guy <romainguy@google.com> Merge "TransitionDrawable should not become a LayerDrawable Bug #9057757" into jb-mr2-dev
90e10cc58690678937575b54e1b20b899445d0e4 25-May-2013 Romain Guy <romainguy@google.com> TransitionDrawable should not become a LayerDrawable
Bug #9057757

Calling TransitionDrawable.mutate() would turn it into a LayerDrawable,
causing it to draw all its children on screen at the same time.

Change-Id: I5efa87c43114a9c817719f08890ce41965f3220a
ndroid/graphics/drawable/LayerDrawable.java
6d7a53cbddbffba30f7e9f82ced9c1ab46214f5a 24-May-2013 Tim Murray <timmurray@google.com> Add support to Java for RS tracing.

Change-Id: I95c365345fea3a1e132a7eb2270d541be0745d02
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
d04aaa97c94792dca662ada28b5c5d2e4289e240 13-May-2013 Fabrice Di Meglio <fdimeglio@google.com> am ddd02537: am b4426f15: Merge "Fix bug #8858012 layer-list\'s bitmap item\'s start/end gravity is incorrect on RTL under certain conditions" into jb-mr2-dev

* commit 'ddd02537a3fb499a82097453535194f4e29583dc':
Fix bug #8858012 layer-list's bitmap item's start/end gravity is incorrect on RTL under certain conditions
b4426f155fffdfc549a633493e4f2ee09d78c715 13-May-2013 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #8858012 layer-list's bitmap item's start/end gravity is incorrect on RTL under certain conditions" into jb-mr2-dev
731ba6649a40529657aa68f93e6febe7d98b4f3b 11-May-2013 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #8858012 layer-list's bitmap item's start/end gravity is incorrect on RTL under certain conditions

- set correct layout direction for Drawable

Change-Id: Ic8968acadbc7c9aa0bb68dd4dfbe09aa4e7cfa62
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
119143de98a289d02937b0392c7665c7236a5970 11-May-2013 Tim Murray <timmurray@google.com> am 9917c1e2: am 17502c4b: Merge "Remove extraneous logging." into jb-mr2-dev

* commit '9917c1e2e9ba8a0bd4f29ce05844cd539c3a41b9':
Remove extraneous logging.
da67debe22159fdf0bbeca6340766ebe2b8e67a3 09-May-2013 Tim Murray <timmurray@google.com> Remove extraneous logging.

bug 8888887

Change-Id: I68d01c2ba649257be1577d53f330ad28d3b57011
ndroid/renderscript/RenderScript.java
ndroid/renderscript/ScriptC.java
0c8c0add4e552fe910d787c2aa9253749b1c7b48 09-May-2013 Derek Sollenberger <djsollen@google.com> am c195ef73: am bee78812: Merge "Fix bug where we incorrectly clipped the bounds to the device size." into jb-mr2-dev

* commit 'c195ef73445c3ba605355798b9f1f9a78bc52f11':
Fix bug where we incorrectly clipped the bounds to the device size.
708144e828b1a549567ce50cd8ed3cda62930501 09-May-2013 Derek Sollenberger <djsollen@google.com> Fix bug where we incorrectly clipped the bounds to the device size.

This CL also updates the documenation to make it clear that the API
returns in local space, not clipped to the size of the bitmap/device.

bug: 8747526
Change-Id: I389844672ce955341863f9940c3b401ab00dc1dc
ndroid/graphics/Canvas.java
07da9df62bdd22acda0a49d239443f0b07d994f7 09-May-2013 Derek Sollenberger <djsollen@google.com> am e3326143: am 2c76016c: Merge "Fix error where clips/matrices are incorrectly transferred." into jb-mr2-dev

* commit 'e3326143c63e791863c1fd95599fb9db74fb4eed':
Fix error where clips/matrices are incorrectly transferred.
3bd9a6dc6b30ed0ce40ca9087ca0f4b1ca789100 08-May-2013 Derek Sollenberger <djsollen@google.com> Fix error where clips/matrices are incorrectly transferred.

In these cases the caller passes in a NULL bitmap and expects it
to clear the canvas state. This change preserves that behavior.

bug: 8738494
Change-Id: I7ebf6a74bab3c2822849a3404de3828fec8d3084
ndroid/graphics/Canvas.java
3b748a44c6bd2ea05fe16839caf73dbe50bd7ae9 18-Apr-2013 Romain Guy <romainguy@google.com> Pack preloaded framework assets in a texture atlas

When the Android runtime starts, the system preloads a series of assets
in the Zygote process. These assets are shared across all processes.
Unfortunately, each one of these assets is later uploaded in its own
OpenGL texture, once per process. This wastes memory and generates
unnecessary OpenGL state changes.

This CL introduces an asset server that provides an atlas to all processes.

Note: bitmaps used by skia shaders are *not* sampled from the atlas.
It's an uncommon use case and would require extra texture transforms
in the GL shaders.

WHAT IS THE ASSETS ATLAS

The "assets atlas" is a single, shareable graphic buffer that contains
all the system's preloaded bitmap drawables (this includes 9-patches.)
The atlas is made of two distinct objects: the graphic buffer that
contains the actual pixels and the map which indicates where each
preloaded bitmap can be found in the atlas (essentially a pair of
x and y coordinates.)

HOW IS THE ASSETS ATLAS GENERATED

Because we need to support a wide variety of devices and because it
is easy to change the list of preloaded drawables, the atlas is
generated at runtime, during the startup phase of the system process.

There are several steps that lead to the atlas generation:

1. If the device is booting for the first time, or if the device was
updated, we need to find the best atlas configuration. To do so,
the atlas service tries a number of width, height and algorithm
variations that allows us to pack as many assets as possible while
using as little memory as possible. Once a best configuration is found,
it gets written to disk in /data/system/framework_atlas

2. Given a best configuration (algorithm variant, dimensions and
number of bitmaps that can be packed in the atlas), the atlas service
packs all the preloaded bitmaps into a single graphic buffer object.

3. The packing is done using Skia in a temporary native bitmap. The
Skia bitmap is then copied into the graphic buffer using OpenGL ES
to benefit from texture swizzling.

HOW PROCESSES USE THE ATLAS

Whenever a process' hardware renderer initializes its EGL context,
it queries the atlas service for the graphic buffer and the map.

It is important to remember that both the context and the map will
be valid for the lifetime of the hardware renderer (if the system
process goes down, all apps get killed as well.)

Every time the hardware renderer needs to render a bitmap, it first
checks whether the bitmap can be found in the assets atlas. When
the bitmap is part of the atlas, texture coordinates are remapped
appropriately before rendering.

Change-Id: I8eaecf53e7f6a33d90da3d0047c5ceec89ea3af0
ndroid/graphics/Atlas.java
ndroid/graphics/Bitmap.java
ndroid/graphics/Canvas.java
ndroid/graphics/NinePatch.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
3fc184cf6e6f3e1d3e3360be11c76e0d081afaa1 26-Apr-2013 Scott Main <smain@google.com> am 01e48e7d: am 22f6a60e: Merge "add docs for new attributes, including account restriction for restricted profiles" into jb-mr2-dev

* commit '01e48e7d1541920ece358257e4c2481936497835':
add docs for new attributes, including account restriction for restricted profiles
b40c1fdaee6e6cabea8d1ed78f56d5b6bd133cfb 23-Apr-2013 Scott Main <smain@google.com> add docs for new attributes, including account restriction for restricted profiles

Change-Id: I737ea55bfa58562b1b384e52626e95b479759376
ndroid/graphics/drawable/BitmapDrawable.java
0f59d6d34e2a22b263a7787fcb1d2d519cb6a3c3 21-Apr-2013 Stephen Hines <srhines@google.com> am 4a84af89: am b322f994: Merge "Add new error code for Debug Context work." into jb-mr2-dev

* commit '4a84af896c830d6ef613d1baa607d472cf865073':
Add new error code for Debug Context work.
b322f99476574546cad638ed8e2866ec106d51fc 20-Apr-2013 Stephen Hines <srhines@google.com> Merge "Add new error code for Debug Context work." into jb-mr2-dev
6a341fc793db2ea1360332720644df018f2c279f 19-Apr-2013 Jason Sams <jsams@google.com> am dd240d9a: am 0935f258: Merge "Updating API based on feedback" into jb-mr2-dev

* commit 'dd240d9a30578930bbf63b6bd9998e940dd16160':
Updating API based on feedback
f64cca905c45fcc74aacf78e6510e133385110cf 19-Apr-2013 Jason Sams <jsams@google.com> Updating API based on feedback

bug 8656887

This hides the methods used to support Camera
Fixes the oversight in LaunchControl
Documents some missing functions




Change-Id: I5b19b65dd5ddf9917100192c180bb63d89c80679
ndroid/renderscript/Allocation.java
ndroid/renderscript/FieldPacker.java
ndroid/renderscript/Script.java
42028a87568c2b7b5ff3691df7c345bbc5802ade 18-Apr-2013 Stephen Hines <srhines@google.com> Add new error code for Debug Context work.

Bug: 7343201

This error type is less severe when running under the debug context,
allowing developers to use RSErrorHandler to respond to errors like
out-of-bounds native accesses.

Change-Id: I79c87d1956c94833546f0f638ffa1aafecae49cd
ndroid/renderscript/RenderScript.java
e8ed1eeb3f336c749c4ddbf88c50de6b1e41ff9b 15-Apr-2013 Jason Sams <jsams@google.com> am 4b87c54b: am 097ed01a: Merge "Revert GC thread changes" into jb-mr2-dev

* commit '4b87c54b06ed6834785ea06e066bb1e988a76973':
Revert GC thread changes
f38c6ab76a824e45c0491b753d5b88f8e337e3a3 15-Apr-2013 Jason Sams <jsams@google.com> am c4294ed2: am 330a9fe3: Merge "Unhide new RS APIs." into jb-mr2-dev

* commit 'c4294ed2f1de5c89b5e283942e0d5f8cd8822bfb':
Unhide new RS APIs.
9bf189228fdb0ec14b284f8bd543d5f9137997cc 14-Apr-2013 Jason Sams <jsams@google.com> Revert GC thread changes

This is not quite a straight revery, some manual edits were necessary.

The original CL didn't undergo sufficient design review or testing. Revert until the regressions can be sorted out.

Bug 8585185


This reverts commit 6dacf8355a0692b52c49f603f43317772cb36175

This reverts commit f8c033db1edf36a0ab09568c3142054f0be2d1a1

Change-Id: Ie7215bdf881332e822603547e92f810f595077fc
ndroid/renderscript/Allocation.java
ndroid/renderscript/BaseObj.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/ScriptC.java
02d56d90e01e20db8424de94a14fe59dc94f19c0 13-Apr-2013 Jason Sams <jsams@google.com> Unhide new RS APIs.

This exposes the fast path handling of YUV data.

bug 8566866

Change-Id: Iaa3700100db61dd51d16d80ea8ae22f2dcc41bb0
ndroid/renderscript/RenderScript.java
ndroid/renderscript/ScriptIntrinsic3DLUT.java
ndroid/renderscript/Type.java
de1fae77b6947c8696229ca113a812bc0b79e821 13-Apr-2013 Dianne Hackborn <hackbod@google.com> am 00c4c670: am 301e95f2: Merge "Add a little more resource load tracing." into jb-mr2-dev

* commit '00c4c67069b9d13005ae072b8744c728aa73f99a':
Add a little more resource load tracing.
0acc1931d364fabb32e2051f58bfbbc5f2505176 13-Apr-2013 Dianne Hackborn <hackbod@google.com> Add a little more resource load tracing.

Change-Id: Id797adb67ab411d5b1a1c223863d3bb4655d10b1
ndroid/graphics/drawable/Drawable.java
d7fec6edade22f2ca2ce33d65b0d2f08efc0eddc 12-Apr-2013 Tim Murray <timmurray@google.com> am f151a541: am d6b8a035: Merge "Add support for synchronous get()." into jb-mr2-dev

* commit 'f151a5411eb6afd104daac10b3e43f5e3a60c61d':
Add support for synchronous get().
d6b8a035337e096f8d313b70f2178f4ec54ba2e4 12-Apr-2013 Tim Murray <timmurray@google.com> Merge "Add support for synchronous get()." into jb-mr2-dev
e1f8089a94a5c2bc271a1c23c1e07ff92b551ea8 12-Apr-2013 Tim Murray <timmurray@google.com> am 5c18ff0f: am 869d2735: Merge "Fix issues with GC thread." into jb-mr2-dev

* commit '5c18ff0f2b9eab8481acfe13603e253e9c16fb32':
Fix issues with GC thread.
869d273503adbccfae3bac7425649f2e1d2aefad 12-Apr-2013 Tim Murray <timmurray@google.com> Merge "Fix issues with GC thread." into jb-mr2-dev
6dacf8355a0692b52c49f603f43317772cb36175 12-Apr-2013 Tim Murray <timmurray@google.com> Fix issues with GC thread.

bug 8600533

Change-Id: I356902ee9897daeb2c1090815beeb572234c81e7
ndroid/renderscript/RenderScript.java
5a1513657269c65ca9e25fe9dc203491efd83ea4 12-Apr-2013 Jason Sams <jsams@google.com> am 4e9ce36e: am c876cc49: Fix docs typo in YUV code

* commit '4e9ce36ee03a2a27f6f80c460385a748566cde41':
Fix docs typo in YUV code
c876cc49947332a538d23d28eca25a76b8f33e93 12-Apr-2013 Jason Sams <jsams@google.com> Fix docs typo in YUV code

bug 8566866

Change-Id: I9da6d237b0a109b2c0799a41e531a0344cc19d40
ndroid/renderscript/Allocation.java
ca22277d334baf077127a1dd84d1b3a048cba778 12-Apr-2013 Jason Sams <jsams@google.com> am d4b1b98d: am a2f289a4: Merge "USAGE_IO_INPUT buffer notifications" into jb-mr2-dev

* commit 'd4b1b98dfd9090cf8ccf7e713d0cca9049cb10a2':
USAGE_IO_INPUT buffer notifications
a2f289a40db821c1961e16c2f4acc5785dbb3394 12-Apr-2013 Jason Sams <jsams@google.com> Merge "USAGE_IO_INPUT buffer notifications" into jb-mr2-dev
739c8263a10d34f5acba7fce2052012d1545d10b 12-Apr-2013 Jason Sams <jsams@google.com> USAGE_IO_INPUT buffer notifications

Change-Id: I6ec0508089029da9ed118127f0c13b7b189ef5e9
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
b735e1d426d65007011a3d915ea8e2cdd0002ecb 12-Apr-2013 Fabrice Di Meglio <fdimeglio@google.com> am 70d2c773: am f5c757c6: Merge "More fix for bug #8159072 Spinner widget should be RTL\'ized" into jb-mr2-dev

* commit '70d2c77320287d97fa2d90cc60f85e1706bffb1b':
More fix for bug #8159072 Spinner widget should be RTL'ized
f5c757c6292fb2623757ef73020d3730ead063d7 12-Apr-2013 Fabrice Di Meglio <fdimeglio@google.com> Merge "More fix for bug #8159072 Spinner widget should be RTL'ized" into jb-mr2-dev
7c4caadb939b1563328251c156262c179a685c70 11-Apr-2013 Tim Murray <timmurray@google.com> Add support for synchronous get().

bug 8599910

Change-Id: I0e7c52350cc1abb14a5ed59bb92e8e0346209d53
ndroid/renderscript/Allocation.java
ndroid/renderscript/FieldPacker.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Script.java
dc25d25333d3fac96dccfb9bd31d2474d6bc2d78 10-Apr-2013 Fabrice Di Meglio <fdimeglio@google.com> More fix for bug #8159072 Spinner widget should be RTL'ized

- fix DrawableContainerState.getChangingConfigurations() to take care about its children
- make Resources.verifyPreloadConfig() return false when the changing configuration
contains layout direction bits (this is when a Drawable is having different version
for LTR and RTL layout directions)
- use constant state instead of the resource type value for checking if we can
preload the drawable
- fix typo

Change-Id: Idd64caf0fbe0f5cfd5ffe09343e84bafa9446ea5
ndroid/graphics/drawable/DrawableContainer.java
5e8b65d498fc63fd334da261f0ee6613538f4652 11-Apr-2013 Tim Murray <timmurray@google.com> am 4e8a3bcf: am 3eba934a: Merge "Clean up USAGE_SHARED and add syncing for USAGE_SHARED." into jb-mr2-dev

* commit '4e8a3bcf03cdaeba6ea2f7cbbbb55c7b10c19e9c':
Clean up USAGE_SHARED and add syncing for USAGE_SHARED.
3eba934a2747f71fa0aba2e1949567c786265359 11-Apr-2013 Tim Murray <timmurray@google.com> Merge "Clean up USAGE_SHARED and add syncing for USAGE_SHARED." into jb-mr2-dev
ccdeb2f993efe64def9e99bdc1255a6c99230112 10-Apr-2013 Tim Murray <timmurray@google.com> am f3860953: am a8aa6880: Merge "Add GC thread to RSGL." into jb-mr2-dev

* commit 'f38609536f27e8e6971869bf63d744bf12a60163':
Add GC thread to RSGL.
a8aa6880e4f117a265538dd55516a3f69c1c289b 10-Apr-2013 Tim Murray <timmurray@google.com> Merge "Add GC thread to RSGL." into jb-mr2-dev
fb32993a457088d0c7df101ef1f1a56a3b928203 10-Apr-2013 Tim Murray <timmurray@google.com> Add GC thread to RSGL.

bug 8585185

Change-Id: I06df29c3be831d6cd53fa8913ba3731f29c137d1
ndroid/renderscript/RenderScriptGL.java
4e8cf0c83c974d606812f2d152d7ae9db01570a6 10-Apr-2013 Stephen Hines <srhines@google.com> resolved conflicts for merge of 0664479a to master

Change-Id: Ia2cb081d575dbf2bf041143f1c4f553ecd2c24f3
7d25a829d3da96fb6ac0d285aa1bfb2022271bee 10-Apr-2013 Stephen Hines <srhines@google.com> Defer RS cache creation until a ScriptC is built.

Bug: 8582926
Change-Id: If017f41382f023f8f6ddd78ba198402d427c95f8
ndroid/renderscript/RenderScript.java
ndroid/renderscript/ScriptC.java
d351e3b12e0d53dcb23935fa61ea00f42b500531 10-Apr-2013 Jason Sams <jsams@google.com> am dfbd6eae: am d7094ea2: Merge "Fix docs with deprecated resize1D" into jb-mr2-dev

* commit 'dfbd6eae7bd2b1b7420f819459464ef64f9912bb':
Fix docs with deprecated resize1D
60799fb74baba4c2cbf56ee2b5985a43ff83d6f7 10-Apr-2013 Jason Sams <jsams@google.com> Fix docs with deprecated resize1D

Change-Id: Id1774e1e8be1c1600efaa535cf330e659addb703
ndroid/renderscript/Allocation.java
171af247589f63fffee37a0e81a975afb62279a2 10-Apr-2013 Jason Sams <jsams@google.com> am fd38ca2c: am 07c6fa12: Merge "Implement RS GC worker thread." into jb-mr2-dev

* commit 'fd38ca2cdcaa07800058a12622896cdd9d2e2189':
Implement RS GC worker thread.
2c128082c65d696fc1ae71c098ab3f47c411a554 10-Apr-2013 Jason Sams <jsams@google.com> am 84882711: am 808723f2: Merge "Cleanup Allocation and add 3D copies." into jb-mr2-dev

* commit '84882711fcb7f54bfa4b0f6f28b70bbe35e24487':
Cleanup Allocation and add 3D copies.
07c6fa123da8c7a25edab751543d96fea1dd57f6 10-Apr-2013 Jason Sams <jsams@google.com> Merge "Implement RS GC worker thread." into jb-mr2-dev
78e64945602fc9df6f4e3f8050a794b17ba0f22c 10-Apr-2013 Tim Murray <timmurray@google.com> Clean up USAGE_SHARED and add syncing for USAGE_SHARED.

bug 8567006

Change-Id: Ie9c01eeccdd3fa0a81893314dfbce7c012d3f7d3
ndroid/renderscript/Allocation.java
f8c033db1edf36a0ab09568c3142054f0be2d1a1 09-Apr-2013 Tim Murray <timmurray@google.com> Implement RS GC worker thread.

Bug 8579360

Change-Id: I98a5509b68e592bcbb4958f2ca72c236a22910b5
ndroid/renderscript/Allocation.java
ndroid/renderscript/BaseObj.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/ScriptC.java
b05d689653b1bc94836f716f29e9578677c29075 10-Apr-2013 Jason Sams <jsams@google.com> Cleanup Allocation and add 3D copies.

bug 8567058

Change-Id: Ib05ff3de851bccfea1531ca6c1801153632a2a85
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
f736239c7218c1ee5f4d1649b3c87f462ed6e88f 06-Apr-2013 Tim Murray <timmurray@google.com> am e7abcc7d: am bdc87d50: Merge "Remove all public mention of RS graphics from docs." into jb-mr2-dev

* commit 'e7abcc7d49231435607847691f1b1abc5d49c781':
Remove all public mention of RS graphics from docs.
a90842283e322b1210e2bea5850b05177e3d87af 06-Apr-2013 Tim Murray <timmurray@google.com> Remove all public mention of RS graphics from docs.

Change-Id: Ie43b5fb0353149aa9af433b6f5c5141349388ea0
ndroid/renderscript/FileA3D.java
ndroid/renderscript/Font.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramFragmentFixedFunction.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/ProgramVertexFixedFunction.java
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RSTextureView.java
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/package.html
e4d9a01bfc7451afff1ed399a5801c7aa2af2831 29-Mar-2013 Dan Morrill <morrildl@google.com> Phase 1 of refactoring SystemServer.

SystemServer is currently a monolithic class that brings up key system
services. This change is the first phase of refactoring it to be more
configurable. Specifically, it adds a set of on/off switches used to control
startup of individual services. Future plans include finer grained controls
and a more explicit and consistent startup sequence for these services.

Change-Id: I7299f5ce7d7b74a34eb56dffb788366fbc058532
ndroid/renderscript/RenderScript.java
52044825aa153a447928ada15deeb1497d2cb4d9 01-Apr-2013 Tim Murray <timmurray@google.com> am 28c2246f: am 4134ce33: Merge "Fix blur intrinsic creation." into jb-mr2-dev

* commit '28c2246f0baf4357f1205202089a6c949d62aa79':
Fix blur intrinsic creation.
4134ce3386e791bd2e024677197e36a3b4768dbb 01-Apr-2013 Tim Murray <timmurray@google.com> Merge "Fix blur intrinsic creation." into jb-mr2-dev
bddc7ffb5203602e6e84941b1840aef5d606bcb4 01-Apr-2013 Tim Murray <timmurray@google.com> Fix blur intrinsic creation.

Change-Id: Iaf54c7395d447eec94d8b6c12986fa8d16c030f5
ndroid/renderscript/ScriptIntrinsicBlur.java
ndroid/renderscript/ScriptIntrinsicColorMatrix.java
ndroid/renderscript/ScriptIntrinsicConvolve3x3.java
3395e1254143c1242d09ddc9e3ddc6c50ecbed49 29-Mar-2013 Victoria Lease <violets@google.com> am fef08dc1: am a4b68908: Merge "bidiFlags != SkPaint::Flags" into jb-mr2-dev

* commit 'fef08dc1c23fc3c7582e36df10d8a12acd22fb62':
bidiFlags != SkPaint::Flags
a4b68908bdfefdf6c79a8b2c3d7bda00c543532f 29-Mar-2013 Victoria Lease <violets@google.com> Merge "bidiFlags != SkPaint::Flags" into jb-mr2-dev
93baebfb452bf41c97b21d54316f461af31c13f6 29-Mar-2013 kmccormick <kmccormick@google.com> am 0aeb824b: am af7c60be: am a25c43f5: am 3121868c: am 38e94e9f: am 4d0beb7e: am 4f414b79: Doc update: fix incorrect enum

* commit '0aeb824b4a688ba74015e53b5bf975d66e3b8137':
Doc update: fix incorrect enum
af7c60be4d18381bfd70b079f1c57480b0c3aea8 29-Mar-2013 kmccormick <kmccormick@google.com> am a25c43f5: am 3121868c: am 38e94e9f: am 4d0beb7e: am 4f414b79: Doc update: fix incorrect enum

* commit 'a25c43f5545c7d9b7e94f2bb10d64ed7d7302b49':
Doc update: fix incorrect enum
a25c43f5545c7d9b7e94f2bb10d64ed7d7302b49 29-Mar-2013 kmccormick <kmccormick@google.com> am 3121868c: am 38e94e9f: am 4d0beb7e: am 4f414b79: Doc update: fix incorrect enum

* commit '3121868cb860eb47182fcbae5d55667af51afb5a':
Doc update: fix incorrect enum
4f414b7949a969c1e1cb0597155bca1d3aa2c455 29-Mar-2013 kmccormick <kmccormick@google.com> Doc update: fix incorrect enum

"Bug: 4980236"

Change-Id: I39f8f429574a9916c5fffc5b2e4ec4715ec48803
ndroid/graphics/DashPathEffect.java
626d3c228116103e95d4429b06dad70f9812561a 27-Mar-2013 Victoria Lease <violets@google.com> bidiFlags != SkPaint::Flags

We've a number of native functions in the text layout path that take
a bidiFlags argument. We've a number of callers of those functions
passing in SkPaint::Flags in that slot. This completely breaks text
directionality for the affected functions, as
SkPaint::kAntiAlias_Flag happens to share values with kBidi_RTL,
resulting in anti-aliased SkPaints measuring text as if it were RTL,
and non-anti-aliased SkPaints measuring text as if it were LTR,
regardless of the actual text directionality. Oops!

To address the issue, this commit replaces erroneous calls to
SkPaint.getFlags() with the value of Paint.mBidiFlags, and includes
the necessary plumbing to get that value where it needs to be.

Bug: 8471481
Change-Id: I2d04b70defed3130fc1ad13f4c9098f5fce4ffde
ndroid/graphics/Paint.java
da1365396454c6bf04b6e5a6a712d86472349640 27-Mar-2013 Tim Murray <timmurray@google.com> am 25440d39: am 8ff0201a: Merge "Revert "Remove all public mention of RS graphics from docs."" into jb-mr2-dev

* commit '25440d39ed679c33303fc23ada0b862fda4d5444':
Revert "Remove all public mention of RS graphics from docs."
8ff0201ad0354b6c43aebac6075298ee847c42ef 27-Mar-2013 Tim Murray <timmurray@google.com> Merge "Revert "Remove all public mention of RS graphics from docs."" into jb-mr2-dev
275812c2bb09a82efd7ea8d90b57c99ff51eab0a 27-Mar-2013 Tim Murray <timmurray@google.com> Revert "Remove all public mention of RS graphics from docs."

This reverts commit d72f932b8cbf461ebb79c249ce92b9b811122190

Change-Id: I056b13d0b2beb508e4215bc0d289cf3e76a3a986
ndroid/renderscript/FileA3D.java
ndroid/renderscript/Font.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramFragmentFixedFunction.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/ProgramVertexFixedFunction.java
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RSTextureView.java
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/package.html
40f897a3126ff2f8b2428e834f3fb2925db7db05 27-Mar-2013 Tim Murray <timmurray@google.com> am 0e39ae10: am 8565520b: Merge "Remove all public mention of RS graphics from docs." into jb-mr2-dev

* commit '0e39ae1073c38afbce02f8470dcc717fd91f9751':
Remove all public mention of RS graphics from docs.
8565520b85bd42bc57adc551c4a72bc3f5b0025a 27-Mar-2013 Tim Murray <timmurray@google.com> Merge "Remove all public mention of RS graphics from docs." into jb-mr2-dev
c2f93ee201ec040bef69e09f1b1f83ee2ea49790 26-Mar-2013 Jason Sams <jsams@google.com> am 8b8ca344: am f3f0e155: Merge "Add yuv get" into jb-mr2-dev

* commit '8b8ca344b2ecea032fd2ba3619c3987cbcbcb5ea':
Add yuv get
5a722cf8b2dc7c6b4acc937a6d68bc88e1702d78 26-Mar-2013 Jason Sams <jsams@google.com> Add yuv get

Change-Id: I6df5c0a8129283c0ad600b232790da10c395b479
ndroid/renderscript/Type.java
d72f932b8cbf461ebb79c249ce92b9b811122190 14-Mar-2013 Tim Murray <timmurray@google.com> Remove all public mention of RS graphics from docs.

Change-Id: I50b29c89ae80ba3ae7b12dc60fee8585e17ed560
ndroid/renderscript/FileA3D.java
ndroid/renderscript/Font.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramFragmentFixedFunction.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/ProgramVertexFixedFunction.java
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RSTextureView.java
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/package.html
22fc72c8a8a2ddd3665fe509bf0990c3a01bae77 21-Mar-2013 Chet Haase <chet@google.com> am bcba9442: am 10c4d99f: Merge "Manage drawable invalidation automatically for Overlays" into jb-mr2-dev

* commit 'bcba9442d4066c9e34ee7a9f050b2858465e052a':
Manage drawable invalidation automatically for Overlays
10c4d99f04a399c78529d0ae66c1785b26a125c3 21-Mar-2013 Chet Haase <chet@google.com> Merge "Manage drawable invalidation automatically for Overlays" into jb-mr2-dev
633326e29f008d2b86e523cfeedcbb2a0883181f 21-Mar-2013 Chet Haase <chet@google.com> Manage drawable invalidation automatically for Overlays

Drawables added to a view's Overlay will now cause the Overlay to
be invalidated via the normal drawable-invalidation mechanism. That is,
changes to any of the drawables in the overlay should cause invalidation of
the proper area of the overlay and thus the hostView, causing the appropriate
area to be redrawn.

Also, fixed a bug in drawable invalidation so that bounds changes will now
correctly invalidate both the old and new bounds areas.

Issue #8350510 Add APIs needed for future animation capabilities

Change-Id: Icae5fa0e420232ee17dc39be10084345bae8dbd8
ndroid/graphics/drawable/Drawable.java
3807312e9b4a8022f370ad7c09604c6379f567a0 20-Mar-2013 Fabrice Di Meglio <fdimeglio@google.com> am 0bcec06b: am 19eceaad: Merge "Fix bug #8437358 Clean any ICU related code from TextLayout / Paint and their dependencies" into jb-mr2-dev

* commit '0bcec06b24e7bc67ab4922f6bb18e6bc7737ba69':
Fix bug #8437358 Clean any ICU related code from TextLayout / Paint and their dependencies
665f02c66702b77db25e950ff433230186bc3243 20-Mar-2013 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #8437358 Clean any ICU related code from TextLayout / Paint and their dependencies

- remove the ICU related methods and update the methods using the "reserved" argument
- update to CTS in another CL too

Change-Id: I5509736568c342d9d17bfeafc17951117ab5d3cc
ndroid/graphics/Paint.java
f5472fc8caae80bdecca32f613c22b5e5f8f314c 15-Mar-2013 Chet Haase <chet@google.com> am 2c250474: am e8918c57: Merge "Fix errors in Canvas.EdgeType docs" into jb-mr2-dev

* commit '2c2504744e2659af9fa8df68eb93de290e99b82d':
Fix errors in Canvas.EdgeType docs
e8918c57bde0152a109ac05386b21c8127523018 15-Mar-2013 Chet Haase <chet@google.com> Merge "Fix errors in Canvas.EdgeType docs" into jb-mr2-dev
d320001807168f5565bab9807ef13c111096bbb3 15-Mar-2013 Chet Haase <chet@google.com> Fix errors in Canvas.EdgeType docs

Issue #7722363 Fix Canvas EdgeType docs

Change-Id: I2908ff22879eb5996da73a37dae1a4cabf82fffb
ndroid/graphics/Canvas.java
f72b5c920aa47d94310a8cdd658e5255712b7293 15-Mar-2013 Fabrice Di Meglio <fdimeglio@google.com> am cf60cc9a: am 261f82ca: Merge "Revert "Clean Paint.mBidiFlags as it is no longer used"" into jb-mr2-dev

* commit 'cf60cc9adedf032c6c97cd2cbb9ff211deaaf3ae':
Revert "Clean Paint.mBidiFlags as it is no longer used"
c50fbd053167b1dbcf596b676374911576764e2e 15-Mar-2013 Fabrice Di Meglio <fdimeglio@google.com> am 42490501: am fe099074: Merge "Revert "fix argument mismatches in Paint JNI"" into jb-mr2-dev

* commit '424905012677ad35aff9a4b903f208647d4509ba':
Revert "fix argument mismatches in Paint JNI"
da12f389eb4be0c08ca3fa9ca7663f4977858df5 15-Mar-2013 Fabrice Di Meglio <fdimeglio@google.com> Revert "Clean Paint.mBidiFlags as it is no longer used"

This reverts commit 6d9fe5bd22b531bfce69b146254a4791c76acddc.
ndroid/graphics/Canvas.java
ndroid/graphics/Paint.java
a4bf8114a73371b51a0eba9d5d61dfeb597a1abb 15-Mar-2013 Fabrice Di Meglio <fdimeglio@google.com> Revert "fix argument mismatches in Paint JNI"

This reverts commit b61fb10fe435b74a761e82f517abd0320f22193e.
ndroid/graphics/Paint.java
fbde30877f1f0e9312d98bdad4f45540e31114da 09-Mar-2013 Chet Haase <chet@google.com> Merge "add getAlpha() to Drawable"
b1af7f3d4be6cd6bc6e1e805f22c209e19bf928f 08-Mar-2013 Chet Haase <chet@google.com> add getAlpha() to Drawable

Drawable has setAlpha(int), but no getAlpha() (although some subclasses have added the
method). This makes it more tedious to use the property. For example, animations that wish to
animate this property must explicitly give it a start value since this value cannot be queried
from the object.

The trick is that setAlpha(int) is abstract, only implemented by subclasses. We cannot take this
approach for getAlpha(), as we would break all subclasses of Drawable until they implemented the
method. Instead, we'll add a default method which returns an invalid value, making it easier for
clients of the method to detect whether the value is valid.

All subclasses of Drawble in frameworks have been changed to add an override of getAlpha() when
appropriate.

Issue #7485875 Drawables is missing getAlpha()

Change-Id: I06b6e35f1a56d202838eca44759c85c82595020a
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
1e645d29250731c6e34040940c59f1033213ad3e 08-Mar-2013 Jason Sams <jsams@google.com> Fix typo

Change-Id: I4e4d3aec62d1400f90a10802148ef875b5a268ef
ndroid/renderscript/ScriptIntrinsic3DLUT.java
25a3b1ddeb470737ba8d05baabd6f3e5ad394ab0 05-Mar-2013 Adam Koch <akoch@google.com> am cc3fec69: am 0c8dfd7d: am 1061c578: am 095aa4b6: am 1a5bec01: Merge "Doc fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653" into jb-mr1-dev

* commit 'cc3fec699d9fdf57a080106e6ca7b3ae845f1446':
Doc fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653
e43d5714fc4b06ebab0340c92aebb79190278573 05-Mar-2013 Adam Koch <akoch@google.com> am 1a5bec01: Merge "Doc fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653" into jb-mr1-dev

* commit '1a5bec0127ca4584008a1ab9e1ce49e671f8387c':
Doc fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653
cc3fec699d9fdf57a080106e6ca7b3ae845f1446 05-Mar-2013 Adam Koch <akoch@google.com> am 0c8dfd7d: am 1061c578: am 095aa4b6: am 1a5bec01: Merge "Doc fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653" into jb-mr1-dev

* commit '0c8dfd7d281d037df3d427ccb6bf4642b2617a63':
Doc fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653
095aa4b611472f64bdbd1499d05b747cebc3f792 05-Mar-2013 Adam Koch <akoch@google.com> am 1a5bec01: Merge "Doc fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653" into jb-mr1-dev

* commit '1a5bec0127ca4584008a1ab9e1ce49e671f8387c':
Doc fix: update BitmapFactory.Options.inSampleSize javadoc Bug: 8250653
836f93dc5f00536baa56f7c035c424a130f9c2a3 05-Mar-2013 Romain Guy <romainguy@google.com> Merge "Never resize a Bitmap down to 0 at load time Bug #8313929" into jb-mr2-dev
fe28ef84f253190faaecf6fa3848898e41212ddb 05-Mar-2013 Romain Guy <romainguy@google.com> Never resize a Bitmap down to 0 at load time
Bug #8313929

Change-Id: Ic9b691319f162228c72ad1afed4dfe0b4181c422
ndroid/graphics/BitmapFactory.java
3e7dbf5373732459b74fd698a6912d6115ed2870 04-Mar-2013 Chris Craik <ccraik@google.com> Merge "Document that degenerate lines wont be drawn" into jb-mr2-dev
a5ef27da958acb84014b9f6ca4622c02be02fe22 04-Mar-2013 Chris Craik <ccraik@google.com> Document that degenerate lines wont be drawn

bug:7658830

Skia and the HW acceleration path don't render anything for degenerate
lines.

Change-Id: I5ea6fe8f16533e5045a7cd10475f4240f6c311b6
ndroid/graphics/Canvas.java
cdac497289fd2c39a352f6167dae3f77cc608cb8 22-Feb-2013 Derek Sollenberger <djsollen@google.com> Deprecate read/write Pictures to streams.

bug: 8241089
Change-Id: I435a534f5110cb2b8aba87c047b509020a22fd67
ndroid/graphics/Canvas.java
ndroid/graphics/Picture.java
cccd6c67db8c610bcaa469e0e1b808eb98807453 01-Mar-2013 Chris Craik <ccraik@google.com> Merge "Avoid trying to draw invisible ShapeDrawables" into jb-mr2-dev
f0e06784609bd3a62cbf86499b4348f4521b6de6 01-Mar-2013 Chris Craik <ccraik@google.com> Avoid trying to draw invisible ShapeDrawables

This avoids work when a drawable is declared with @android:color/transparent

Change-Id: I1b6d3b22751e378be047a5538dfd4d4baab3c03a
ndroid/graphics/drawable/ShapeDrawable.java
abd5db9d37839bb47c77e03b28d00042582fbfe2 28-Feb-2013 Tim Murray <timmurray@google.com> Add support and better exceptions for Bitmaps with a null config.

Bug: 8263427
Change-Id: I4181402e4739c6a40591f1e1416fca98643ecc57
ndroid/renderscript/Allocation.java
8e04840f38a16f806754dfca3de50c2548e67913 26-Feb-2013 Victoria Lease <violets@google.com> round subpixels up to next integer in measureText DO NOT MERGE

A common source of layout bugs we're seeing these days involves the
output of measureText() being fed into StaticLayout's constructor.
measureText() returns subpixel-accurate values, but StaticLayout only
takes integral bounds, resulting in the subpixel portion of the
bounds being truncated. This leaves StaticLayout with insufficient
space to layout the text that was just measured, causing all manner
of unexpected line breaks.

This could be causing issues elsewhere, as well. Until our text
pipeline is fully subpixel-perfect, it's best that measureText
guarantee that the value it returns will be sufficient to contain
the text, even if cast to int.

Cherry-pick of Ib84947f0d0a1229287f5b19b99e7efd40f5317f7

Bug: 8164205
Change-Id: I69795ba5770112c0a3d0e752158076a8d1646b1a
ndroid/graphics/Paint.java
add26dca07cc5a5c935bc68f57bee2c1cd96a79e 23-Feb-2013 Jason Sams <jsams@google.com> add support for debug and profile contexts.

Change-Id: I759e54e365a344a93d725eb4fa70a2c4c98bf05a
ndroid/renderscript/RenderScript.java
fa5cb40793f6765b1f09e1253703f8bdfb7a825a 22-Feb-2013 Jason Sams <jsams@google.com> Merge "Fix build break."
c089c2fc00054d6dde24b98e78226923a5364564 22-Feb-2013 Jason Sams <jsams@google.com> Fix build break.

Change-Id: I362c96787482bc8daee7dd4a01817ab7ed79b730
ndroid/renderscript/Allocation.java
ec39a94ac299e57c800a82814651c713f3a5f5c7 22-Feb-2013 Jason Sams <jsams@google.com> Merge "Implement USAGE_IO_INPUT"
72226e0543461133b9e177a3e78ae50b0c65e797 22-Feb-2013 Jason Sams <jsams@google.com> Implement USAGE_IO_INPUT

Change-Id: Id5b9e3d0a17e4df15eec36d542fde6dc626138b2
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
758333d70a749fb50276057abc585cbc0decc8d4 22-Feb-2013 Adam Koch <akoch@google.com> Doc fix: update BitmapFactory.Options.inSampleSize javadoc
Bug: 8250653

Change-Id: I7187372ab3c742b9395d119a7425f60f071dbb4e
ndroid/graphics/BitmapFactory.java
1b63e60abd3082f539b4e1f4562eec2005383ba5 21-Feb-2013 Derek Sollenberger <djsollen@google.com> Fix use case where the Java Canvas is reused.

When provided with a new bitmap device the canvas will retain
certain information such as it's matrix and clip.

bug: 8167188
Change-Id: I20ac8a24eebc85fb7c147504a103ce9a95b530b3
ndroid/graphics/Canvas.java
c4ca87f0f4034d4b987084d2b62ed7e5e0430557 20-Feb-2013 Chris Craik <ccraik@google.com> am 8a47d8ea: Merge "Clean up clipping and deferral logic"

* commit '8a47d8eaec26d0937aee94a057f561f246748339':
Clean up clipping and deferral logic
5d11676414b3606792e23c269cf75b44faa1a2af 20-Feb-2013 Chris Craik <ccraik@google.com> Clean up clipping and deferral logic

bug:8037003

-Merges replay methods
-Bounds checking for DrawBitmapMesh, DrawRects and DrawDisplayList
-Use clip as bounds for otherwise unbounded draw operations

Clip-as-bounds is correct for drawColor and functor, but other draw
operations (pos text, text on path, and layers) still need true bounds
calculation

Change-Id: I5d5149d2c624f01e3fe46628bf156e835e69b9d5
ndroid/graphics/Canvas.java
ece85f3b049141164586df286c9afda388bb8a3b 16-Feb-2013 Jason Sams <jsams@google.com> am 840b5069: Merge "Support typed YUV allocations."

* commit '840b5069707c6f39ec06231dacbcbe8159d581c1':
Support typed YUV allocations.
840b5069707c6f39ec06231dacbcbe8159d581c1 16-Feb-2013 Jason Sams <jsams@google.com> Merge "Support typed YUV allocations."
5db25eda73b85338e4e0e70178b9650509a42bb3 16-Feb-2013 Tim Murray <timmurray@google.com> am ab7a2919: Merge "Add MIRRORED_REPEAT."

* commit 'ab7a2919a321af21b234d8db14748624c1b13634':
Add MIRRORED_REPEAT.
ab7a2919a321af21b234d8db14748624c1b13634 16-Feb-2013 Tim Murray <timmurray@google.com> Merge "Add MIRRORED_REPEAT."
dd6c8b34f172ba699954e4d3095dba8c0fd5e930 16-Feb-2013 Jason Sams <jsams@google.com> Support typed YUV allocations.

Change-Id: I56e7a318dc979f0b7454fcfa5773ea6d95bbaeaa
ndroid/renderscript/Element.java
ndroid/renderscript/Type.java
6b9b2caf2bf977508e223792bb5eba75091c232d 15-Feb-2013 Tim Murray <timmurray@google.com> Add MIRRORED_REPEAT.

Change-Id: I7565da24912a3c33d8f824da9ea0899a423d3c40
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Sampler.java
c85637f0e60964af101a9c43a1ae92ee2d1be168 15-Feb-2013 Victoria Lease <violets@google.com> am c69bce2e: Merge "fix argument mismatches in Paint JNI"

# Via Android (Google) Code Review (1) and Victoria Lease (1)
* commit 'c69bce2e41c70da35e1b6a2ab5ec44469ab14c80':
fix argument mismatches in Paint JNI
b61fb10fe435b74a761e82f517abd0320f22193e 15-Feb-2013 Victoria Lease <violets@google.com> fix argument mismatches in Paint JNI

Paint.getTextRunCursor() no longer has a "flags" argument on the Java
side. The native side, however, still had the argument, and was being
called with misaligned arguments, causing all manner of madcap fun.

Also, the version of Paint.getTextRunCursor() that took String as an
argument needed to lose the "flags" argument, as well, to prevent an
infinite loop in the CharSequence version of the function, which was
supposed to be calling the String version but was actually calling
itself.

Bug: 8201224
Change-Id: Iad0dabaf81185f29a082566cc64590f2ba9bc31c
ndroid/graphics/Paint.java
c932760f667cf56ca7a1aeffde505745dc3632e1 14-Feb-2013 Chris Craik <ccraik@google.com> Merge "Revert "Merge remote-tracking branch 'goog/master-chromium' into 'goog/master'" DO NOT MERGE"
9b10e27d60765b36271848e87230e8c6ca4b1ed2 14-Feb-2013 Stephen Hines <srhines@google.com> Merge "Add rsnScriptForEachClipped() implementation with no param array."
0c33ecd209d884a9a2b9ad807cb798583b890a08 13-Feb-2013 Fabrice Di Meglio <fdimeglio@google.com> Merge "Clean Paint.mBidiFlags as it is no longer used"
7c1a49f5f5ed6613d736464bf5001b777e89ced2 13-Feb-2013 Chris Craik <ccraik@google.com> Revert "Merge remote-tracking branch 'goog/master-chromium' into 'goog/master'" DO NOT MERGE

This reverts commit 6c0307dd0aefe9a08794b155fc03ee60ebd14f25, reversing
changes made to a2cd828b749c444d55c2c41c7dbb85088ff94b9f.

Conflicts:
packages/SystemUI/res/values-sv/strings.xml

Change-Id: Ia178efe8b14751583d47b2826bfe3d3d5463dd2e
ndroid/graphics/Canvas.java
ndroid/graphics/Path.java
ndroid/graphics/Typeface.java
dac6ed0b69b23ab25757085dd5ce68092516ee2f 13-Feb-2013 Stephen Hines <srhines@google.com> Add rsnScriptForEachClipped() implementation with no param array.

JNI doesn't let us pass down a NULL parameter array (from the usrData part
of our reflection). In this case, we simply clone our existing function, but
remove the offending array parameter.

Change-Id: Ib1d6e202f2a55ba8922eec3da5a93d8daa882250
ndroid/renderscript/RenderScript.java
43aed48facaf8a177b84cf3ae580cabe48f2774a 13-Feb-2013 Tim Murray <timmurray@google.com> Merge "Pass through null LaunchOption structs to standard forEach."
ba9dd06176cf833898832861114e225fdb428ea0 13-Feb-2013 Tim Murray <timmurray@google.com> Pass through null LaunchOption structs to standard forEach.

Change-Id: I4dcde6996400207c7e361ff4b7723ec7db832e80
ndroid/renderscript/Script.java
aa5d5b1931b0e83f5a3134aaf469ff9cd5b24ee2 12-Feb-2013 Stephen Hines <srhines@google.com> Merge "Check Element in all API levels for copy2DRangeFrom()."
004158032af4d930c10d224f63cd915f24f4abd8 12-Feb-2013 Stephen Hines <srhines@google.com> Merge "Fix copyFrom() to use proper dimensions for copying."
d25d037890a8af7e04f1e6c75e5508566fbc8105 12-Feb-2013 Jason Sams <jsams@google.com> Merge "Add FieldPacker contructor that accepts external storage."
6d9fe5bd22b531bfce69b146254a4791c76acddc 12-Feb-2013 Fabrice Di Meglio <fdimeglio@google.com> Clean Paint.mBidiFlags as it is no longer used

See bug #7623824

Change-Id: Ie2f9422821f6dcc73c99e8695f448e966b587b1d
ndroid/graphics/Canvas.java
ndroid/graphics/Paint.java
5f528becb09b0956bcad15b32639f87b87f40f13 09-Feb-2013 Stephen Hines <srhines@google.com> Check Element in all API levels for copy2DRangeFrom().

Change-Id: I561317671a16888fc9f35908ab1ae1489a14fc6c
ndroid/renderscript/Allocation.java
a9a7b3740598c79792cbcebca6a00d1595324ae9 09-Feb-2013 Stephen Hines <srhines@google.com> Fix copyFrom() to use proper dimensions for copying.

This change actually fixes several bugs related to stride:

* copyFrom() needs to call the 2D or 1D version, depending on the dimensions
of the corresponding Allocation.
* Add an internal-only copy2DRangeFromUnchecked(), since we don't really
want to expose it as another public API (only via copyFromUnchecked()).
* Call the proper 1D/2D version in copyFromUnchecked() based on the
Allocation dimensions.
* Add Element checks to the "checked" copy2DRangeFrom() routines.

Change-Id: I690706d36884ee749bf90937c715855f6c07368c
ndroid/renderscript/Allocation.java
97dcc20e6d6fcce712ab1101bfe03c74aa2b6682 08-Feb-2013 Romain Guy <romainguy@google.com> Merge "Deprecate useless BitmapDrawable constructor Bug #2590549"
7ac40e38696aa74d7b7938add8fdbc47180ae424 08-Feb-2013 Romain Guy <romainguy@google.com> Deprecate useless BitmapDrawable constructor
Bug #2590549

Change-Id: Icb45bf2d9836c43ed0825105f64d7b98afcdcdac
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/Drawable.java
5b08a2dc780a26e1557cfb4806de91f9f6bfb855 08-Feb-2013 Jason Sams <jsams@google.com> Add FieldPacker contructor that accepts
external storage.

Change-Id: I9c796f925802b202eae7e0fe1750a10140ef4a47
ndroid/renderscript/FieldPacker.java
eb8c29cb7ece3f4b7ad18e5393b07fa7418a541c 07-Feb-2013 Tim Murray <timmurray@google.com> Add API entry points for clipped kernels.

Change-Id: Idf474a5ac391c41e9215cd2f03e7f8c4bfb875fa
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Script.java
3c6721899ea903ed278feac1e76a97137fa9d0c3 07-Feb-2013 Jason Sams <jsams@google.com> Merge "Implement rs.sendMessage()"
e68c1ce1d41ac43b0d59015f3556ca20bf7e4548 06-Feb-2013 Scott Main <smain@google.com> am 11f1c5b8: am b3a57191: am 0a00de11: am 805d2e2d: am 00f49084: Merge "docs: fix renderscript links that currently require redirect" into jb-mr1-dev

# Via Android Git Automerger (4) and others
* commit '11f1c5b89a98cb6794f2b1f158b8c22e38af975f':
docs: fix renderscript links that currently require redirect
11f1c5b89a98cb6794f2b1f158b8c22e38af975f 06-Feb-2013 Scott Main <smain@google.com> am b3a57191: am 0a00de11: am 805d2e2d: am 00f49084: Merge "docs: fix renderscript links that currently require redirect" into jb-mr1-dev

# Via Android Git Automerger (3) and others
* commit 'b3a57191e62e0c394ba4a3448770853a1fb7ac3b':
docs: fix renderscript links that currently require redirect
805d2e2d98fa8749d6ae38650c77c79611174944 06-Feb-2013 Scott Main <smain@google.com> am 00f49084: Merge "docs: fix renderscript links that currently require redirect" into jb-mr1-dev

# Via Android (Google) Code Review (1) and Scott Main (1)
* commit '00f490844d89b146e5490204a5a483834950c489':
docs: fix renderscript links that currently require redirect
23e500d168e8d649305445f6c1d2b49d8d2c00fd 06-Feb-2013 Derek Sollenberger <djsollen@google.com> Merge "Merge remote-tracking branch 'goog/master-chromium' into 'goog/master'"
455d64426615e5d269a3bd05cd91b67c3811fcdf 06-Feb-2013 Jason Sams <jsams@google.com> Implement rs.sendMessage()

Change-Id: Ib4f4bb7bb4f697d0b5405ad55721394ed2456c65
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
a4b7bc97862e01d38b483524f1d1cf433d29e294 06-Feb-2013 Jason Sams <jsams@google.com> Log non-fatal RS errors.

Change-Id: I3e58b89453af8955ba9df825ec143e793890f44a
ndroid/renderscript/RenderScript.java
b47fa1699a02a96d5da8e175966e9584c6bd5565 05-Feb-2013 Scott Main <smain@google.com> docs: fix renderscript links that currently require redirect

Change-Id: Ie12ff2c4be5ca22ac43dfe3a16868c7bef8e4ae8
ndroid/renderscript/Allocation.java
ndroid/renderscript/Element.java
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/Type.java
ndroid/renderscript/package.html
7f2e4efa96c6e3ab636c5e70b5fc09b0153d30e8 04-Feb-2013 Michael Jurka <mikejurka@google.com> am c24b1448: Merge "Don\'t mark recycled bitmaps as immutable"

# Via Android (Google) Code Review (1) and Michael Jurka (1)
* commit 'c24b14481527e2f87ddb3a156b8217d32c645b10':
Don't mark recycled bitmaps as immutable
c24b14481527e2f87ddb3a156b8217d32c645b10 04-Feb-2013 Michael Jurka <mikejurka@google.com> Merge "Don't mark recycled bitmaps as immutable"
afce5a4008c494f6384e1b6b2fb4f13d33e917cb 04-Feb-2013 Michael Jurka <mikejurka@google.com> Don't mark recycled bitmaps as immutable

Helps avoid Bitmap allocations in apps that use a
pool of bitmaps and recycle them

Change-Id: I787455a5207bf90d6ed9f1622e0f7f7e1a4a6704
ndroid/graphics/BitmapFactory.java
d0351a67f17d93038c17955381c5eff3d0679268 04-Feb-2013 Derek Sollenberger <djsollen@google.com> am 1bce2db3: Merge "Fix return type mismatch in Region\'s JNI code."

# Via Android (Google) Code Review (1) and Derek Sollenberger (1)
* commit '1bce2db3b4ac17156066646171c82731c87aa4d1':
Fix return type mismatch in Region's JNI code.
250f8ef24830498c2e1753d3a562ae50e609815b 01-Feb-2013 Derek Sollenberger <djsollen@google.com> Fix return type mismatch in Region's JNI code.

bug: 7620006
Change-Id: Iddca9b3739b0c116a80a900e06cede338b868e17
ndroid/graphics/Region.java
5a2cae1cb84c03ec889c7099b6c103a8fefb370f 30-Jan-2013 Kenny Root <kroot@android.com> am 29449a3d: am 781bcd68: am c3ee1d9a: am 7ad885e2: Merge "One more fix for incorrect indices."

# By Stephen Hines
# Via Android Git Automerger (3) and others
* commit '29449a3da7d859e8273612527949e0a200b8e798':
One more fix for incorrect indices.
29449a3da7d859e8273612527949e0a200b8e798 30-Jan-2013 Kenny Root <kroot@android.com> am 781bcd68: am c3ee1d9a: am 7ad885e2: Merge "One more fix for incorrect indices."

# By Stephen Hines
# Via Android Git Automerger (2) and others
* commit '781bcd68ce7d701f5d36dd0d1b07d51ef937f0bc':
One more fix for incorrect indices.
c3ee1d9aea36bb7c33dee6211905d4c1ab2681a1 30-Jan-2013 Kenny Root <kroot@android.com> am 7ad885e2: Merge "One more fix for incorrect indices."

# By Stephen Hines
# Via Gerrit Code Review (1) and Stephen Hines (1)
* commit '7ad885e2e6c845dbec4f16cd71e859240741dbf9':
One more fix for incorrect indices.
0e1d11fc133aeb6aaeb4acbe1eecb71863e36f1e 23-Jan-2013 Christopher Tate <ctate@android.com> am 7b3b2cfc: am e93ca308: am 0e95685f: am b5a72043: Merge "Fix array index oob in Matrix3f.loadRotate()."

* commit '7b3b2cfc29081605a419c266227b88d9a27c37cb':
Fix array index oob in Matrix3f.loadRotate().
7b3b2cfc29081605a419c266227b88d9a27c37cb 23-Jan-2013 Christopher Tate <ctate@android.com> am e93ca308: am 0e95685f: am b5a72043: Merge "Fix array index oob in Matrix3f.loadRotate()."

* commit 'e93ca308c8792b231ec921ba8a00e6c78e87f9ad':
Fix array index oob in Matrix3f.loadRotate().
0e95685ff49c4d189464170cc03d2d74f23da475 23-Jan-2013 Christopher Tate <ctate@android.com> am b5a72043: Merge "Fix array index oob in Matrix3f.loadRotate()."

* commit 'b5a7204313447101ad80c0c6015e930f1e6b1013':
Fix array index oob in Matrix3f.loadRotate().
3983754bbba587512dce6ff20a4145b311c15027 23-Jan-2013 Stephen Hines <srhines@google.com> One more fix for incorrect indices.

Change-Id: I283f2f09cd0a17eefed4a763b08df856bbae76b3
ndroid/renderscript/Matrix3f.java
0ce7cdaffdc039c035e7eea80f4b89fc0b4e7ee5 23-Jan-2013 Stephen Hines <srhines@google.com> Fix array index oob in Matrix3f.loadRotate().

https://code.google.com/p/android/issues/detail?id=42860

Change-Id: Idbf18576da3ad5b84b4209147dad34cc2f9044d2
ndroid/renderscript/Matrix3f.java
70336dd0eb4d06004687bfdeda0047b5675433e3 18-Jan-2013 Derek Sollenberger <djsollen@google.com> Update enum value to match those in the native header.

Change-Id: Idfb921ecd138baa8570ac1e92bdeb291dbf9207e
ndroid/graphics/Path.java
edd9f42499365b5ac30e498a8fe7093fcd632274 10-Jan-2013 Jason Sams <jsams@google.com> am daa944a1: Merge "Add YUV allocation creation."

* commit 'daa944a167c3e7365ea6f9b6712950edd5ca2dd4':
Add YUV allocation creation.
6a6852cfcb3e82e18f2a6ff7a7f9378ce22b57e2 09-Jan-2013 Jason Sams <jsams@google.com> am 16ad1770: Merge "Add 3D LUT intrinsic java class"

* commit '16ad17705eb22bb02a551cddd68f65b8addaa4d6':
Add 3D LUT intrinsic java class
b109cc78616abee7291eb42094cd156b5db3355d 08-Jan-2013 Jason Sams <jsams@google.com> Add YUV allocation creation.

Change-Id: I0d1ff72f60481eb9c28cf058eab72e689494d14b
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Type.java
40f1fa6ed699b885e3270faf88085ed78f54a2f4 08-Jan-2013 Jason Sams <jsams@google.com> Add 3D LUT intrinsic java class

Add test for 3D LUT

Change-Id: I52bc20fd5458afda6de0a6015e9c8bc6a4970055
ndroid/renderscript/ScriptIntrinsic3DLUT.java
fc615a0f643408956fc0dc1b997871e2b27cee7e 20-Dec-2012 Derek Sollenberger <djsollen@google.com> Remove calls to SkCanvas::setBitmapDevice()

Change-Id: Ib0aa2f65b77802b105c0e8a9d7cdde2e863d3673
ndroid/graphics/Canvas.java
cdb87536f5e88a97890c2018921d7e728d76770e 03-Jan-2013 Jason Sams <jsams@google.com> am 18483a48: Merge "Cleanup imports."

* commit '18483a482a129276f462bbcccf9dbad21b29a4bd':
Cleanup imports.
232f4214cf699c6d20343aea550ccf0aeba2f13f 03-Jan-2013 Jason Sams <jsams@google.com> am 256377e7: Merge "yuv"

* commit '256377e7469a6fbc930727a19ea4a00ca886d6dd':
yuv
ef308ed9b3d7c5a91337f858a0abe1396a5a5800 02-Jan-2013 Jason Sams <jsams@google.com> Cleanup imports.

Change-Id: I72690651e895ad7bafa57ccc7261eaa1168923bd
ndroid/renderscript/ScriptIntrinsic.java
ndroid/renderscript/ScriptIntrinsicColorMatrix.java
ndroid/renderscript/ScriptIntrinsicConvolve3x3.java
ndroid/renderscript/ScriptIntrinsicLUT.java
8140d7b0f62a6e5b54e318c959f2d501f7ee6784 14-Dec-2012 Jason Sams <jsams@google.com> yuv

Change-Id: I3e99740250f1a3cb356bf6906528abc71f8cee2e
ndroid/renderscript/Element.java
ndroid/renderscript/Type.java
41cc867fdaaa932cd68740b18024a249436300f4 28-Dec-2012 Jason Sams <jsams@google.com> am 69bf687e: Merge "Add API support for 3D allocations."

* commit '69bf687e5335db07d32fd68438ff64e18b9e9e8a':
Add API support for 3D allocations.
69bf687e5335db07d32fd68438ff64e18b9e9e8a 28-Dec-2012 Jason Sams <jsams@google.com> Merge "Add API support for 3D allocations."
d1c306a9e66f8e541f866a6f3740959ed8cc70a6 28-Dec-2012 Jason Sams <jsams@google.com> Add API support for 3D allocations.

Change-Id: I19c525f90135d83caec545e77e8f61a957d220ee
ndroid/renderscript/Type.java
9813e1729655fc34345e2898278f4382fa347f8c 20-Dec-2012 Stephen Hines <srhines@google.com> am 696a5e04: Merge "We can only optimize bitmaps that have USAGE_SHARED."

* commit '696a5e04ea43ed601f2c21555e3c475e690a37a7':
We can only optimize bitmaps that have USAGE_SHARED.
d34dc85f8f6d095f4c65a6f75477230ec2f19578 20-Dec-2012 Stephen Hines <srhines@google.com> We can only optimize bitmaps that have USAGE_SHARED.

Change-Id: I1149a9e25738da5ee348e3c18e7fdd7c1948e89e
ndroid/renderscript/Allocation.java
403afae1033fe045cc6159e9504fbcc06ab18846 19-Dec-2012 Tim Murray <timmurray@google.com> am 0562a0dc: Merge "Add USAGE_SHARED for Allocations."

* commit '0562a0dcc1bcbda59c753e659fbb2f9c3cd76869':
Add USAGE_SHARED for Allocations.
0562a0dcc1bcbda59c753e659fbb2f9c3cd76869 19-Dec-2012 Tim Murray <timmurray@google.com> Merge "Add USAGE_SHARED for Allocations."
00bb454bd0b26c05e1dea5651b5edfd9c69ef2e0 18-Dec-2012 Tim Murray <timmurray@google.com> Add USAGE_SHARED for Allocations.

Change-Id: I61efafffaa649df68762d9ae29e029cd1e1bc6bc
ndroid/renderscript/Allocation.java
2fa54cef47887808d006f473a7d4f8dd5fb76704 19-Dec-2012 Derek Sollenberger <djsollen@google.com> Merge "Update framework to support r5967 of Skia." into master-chromium
d47f7d8b5fe3a3861d7cbdc5f912235407823c8e 18-Dec-2012 Andy McFadden <fadden@android.com> Rename ISurfaceTexture and SurfaceTexture

The C++ class names don't match what the classes do, so rename
ISurfaceTexture to IGraphicBufferProducer, and SurfaceTexture to
GLConsumer.

Bug 7736700

Change-Id: I08e677faf2ebb418ef131d0a8008e01037db0e50
ndroid/graphics/SurfaceTexture.java
eef623900c44f2629aae87db188363623ef46592 17-Dec-2012 Tim Murray <timmurray@google.com> Merge "Add struct for controlling clipping in Java."
fbfaa853630edfca25eaa840f92035713eef13ba 15-Dec-2012 Tim Murray <timmurray@google.com> Add struct for controlling clipping in Java.

Change-Id: Iac747e492c680530553909b0389b230fbc654e30
ndroid/renderscript/Script.java
545252f4fde6fbb70b07e97a120c7d1405758017 11-Dec-2012 Svetoslav Ganov <svetoslavganov@google.com> Refactoring of the screen magnification feature.

1. This patch takes care of the case where a magnified window is covering an unmagnigied
one. One example is a dialog that covers the IME window.

bug:7634430

2. Ensuring that the UI automator tool can connect and correctly dump the screen.

bug:7694696

3. Removed the partial implementation for multi display magnification. It adds
unnecessary complexity since it cannot be implemented without support for
input from multiple screens. We will revisit when necessary.

4. Moved the magnified border window as a surface in the window manager.

5. Moved the mediator APIs on the window manager and the policy methods on the
WindowManagerPolicy.

6. Implemented batch event processing for the accessibility input filter.

Change-Id: I4ebf68b94fb07201e124794f69611ece388ec116
ndroid/graphics/Region.java
ca79cf69d09efa0c327e9b1237d86a119aea5da7 14-Aug-2012 Derek Sollenberger <djsollen@google.com> Update framework to support r5967 of Skia.

bug: 6906025
Change-Id: Iefdb830ec3aa2ab3472c1c142484a7aa21788a15
ndroid/graphics/Canvas.java
ndroid/graphics/Typeface.java
a314551d69098537337c970da615a8f8af58e1f1 05-Dec-2012 Tim Murray <timmurray@google.com> Add support for Bitmap-backed Allocations in Java.

Change-Id: Iab38a275aa6cdac91c76fa0d134fbc1e8f387913
Bug: 7256604
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
507a2d985299f2c4eca9f378c2190f73518c2d6f 28-Nov-2012 Adam Powell <adamp@google.com> am c87b053b: am b29dc7e3: am f3a39f2d: Merge "Remove overzealous mutate() sanity check in LayerDrawable" into jb-mr1.1-dev

* commit 'c87b053bf92bf39644b554673bc4480606df57e3':
Remove overzealous mutate() sanity check in LayerDrawable
c87b053bf92bf39644b554673bc4480606df57e3 28-Nov-2012 Adam Powell <adamp@google.com> am b29dc7e3: am f3a39f2d: Merge "Remove overzealous mutate() sanity check in LayerDrawable" into jb-mr1.1-dev

* commit 'b29dc7e37bc110894cd6287f071f6ba0e4d800a7':
Remove overzealous mutate() sanity check in LayerDrawable
dccf9337e6c549cf0bf413dace0fee68589f628f 27-Nov-2012 Romain Guy <romainguy@google.com> Merge "Add support for face attribute to HTML string resources Bug #7480719"
a8f6d5f0720f400b6f59b0809aaefea83c5f51d4 27-Nov-2012 Romain Guy <romainguy@google.com> Add support for face attribute to HTML string resources
Bug #7480719

This change also adds the alias "color" for the attribute "fgcolor".
This change also unifies HTML colors parsing between the Html class
and StringBlock for consistency.

Change-Id: I696a6e080387901d88e9baf7cb989b892f14b9db
ndroid/graphics/Color.java
a1dcc992ffedb9a44f2072a8100eed15a7ca93b2 27-Nov-2012 Romain Guy <romainguy@google.com> Undeprecate linear text API

Hardware renderer support pending, but this API should not have
been deprecated in the first place.

Change-Id: I062dac6d65dffb5369e65d55ea159594a0971b59
ndroid/graphics/Paint.java
bb53dad63b4a1da04b01cdc9f4b0a98b7623a824 27-Nov-2012 Adam Powell <adamp@google.com> Remove overzealous mutate() sanity check in LayerDrawable

Child drawables of a LayerDrawable should be able to mutate() as a
no-op even if they !canConstantState.

Bug 7622311

Change-Id: I32c00961310f23aaf9ad868c419cbefb9d27a1d2
ndroid/graphics/drawable/LayerDrawable.java
f6e7b2089dcde81b92617102fa78b4104df29433 27-Nov-2012 Romain Guy <romainguy@google.com> Merge "Add new mipMap attribute to BitmapDrawable"
5769fcd88a6b53aa9394d869a9428c80e61a1565 27-Nov-2012 Romain Guy <romainguy@google.com> Add new mipMap attribute to BitmapDrawable

This attribute can be used to enable/disable mipmapping on bitmaps.
See Bitmap.setHasMipMap() for details.

Change-Id: I13cc800a258b6876a94e2a9605dcec4ea4f1ea48
ndroid/graphics/drawable/BitmapDrawable.java
fdb36725acf0c5b8e540ed1522e02196018c45bb 27-Nov-2012 Jason Sams <jsams@google.com> Merge "Add single channel blur test."
425c3da61ad39f5dd4aaba9fd0235f46ff079245 27-Nov-2012 Jonathan Dixon <joth@google.com> Fix typo in exception message

Change-Id: I85390d7ceae8f89aadd808600a920a1401ef1c3a
ndroid/graphics/SurfaceTexture.java
34583fcb9a9926c4d0e2f8e0d9102edc4d19c371 26-Nov-2012 Romain Guy <romainguy@google.com> Merge "Clarify Bitmap.copyTo/FromPixelBuffer documentation"
1f58497e7dbab1b16e97c73b65559b852d0c2803 26-Nov-2012 Romain Guy <romainguy@google.com> Clarify Bitmap.copyTo/FromPixelBuffer documentation

Change-Id: Ifb410df392a5ad6c83d6744e19aad13b9a4e811d
ndroid/graphics/Bitmap.java
d9c9f894b9be586b6806162389ba2701c1ce213a 26-Nov-2012 Chet Haase <chet@google.com> am cae3eb91: am 946facaa: am a004ff88: Merge "Use correct alpha value when a color is not set on a GradientDrawable." into jb-mr1.1-dev

* commit 'cae3eb91e159a48e2b4ec9ee6339a40212435c2f':
Use correct alpha value when a color is not set on a GradientDrawable.
cae3eb91e159a48e2b4ec9ee6339a40212435c2f 26-Nov-2012 Chet Haase <chet@google.com> am 946facaa: am a004ff88: Merge "Use correct alpha value when a color is not set on a GradientDrawable." into jb-mr1.1-dev

* commit '946facaae149b4408b9b79d2804f4ee2e80c849b':
Use correct alpha value when a color is not set on a GradientDrawable.
a004ff880e103832af4ba069e7176c18b96b62d9 26-Nov-2012 Chet Haase <chet@google.com> Merge "Use correct alpha value when a color is not set on a GradientDrawable." into jb-mr1.1-dev
458bf39e4cf9297d84a39413fcd2caa9fb81c006 26-Nov-2012 Romain Guy <romainguy@google.com> am 713bebda: am 6225b881: am 18bbcf7f: Merge "Copy missing state in DrawableContainer" into jb-mr1.1-dev

* commit '713bebdac508bb8e6fb0866f4cae873806dad459':
Copy missing state in DrawableContainer
8508d7ef6364920e02970f4264dde098762f1842 26-Nov-2012 Romain Guy <romainguy@google.com> am eb673855: am f57eaa02: am ce180c10: Merge "Cleanup: add PointF.toString()/equals()/hashcode()" into jb-mr1.1-dev

* commit 'eb673855a2204e81108bfe3f481a32a347b61db9':
Cleanup: add PointF.toString()/equals()/hashcode()
713bebdac508bb8e6fb0866f4cae873806dad459 26-Nov-2012 Romain Guy <romainguy@google.com> am 6225b881: am 18bbcf7f: Merge "Copy missing state in DrawableContainer" into jb-mr1.1-dev

* commit '6225b881875e2ae3f84b7fa2e9e090f018f32972':
Copy missing state in DrawableContainer
eb673855a2204e81108bfe3f481a32a347b61db9 26-Nov-2012 Romain Guy <romainguy@google.com> am f57eaa02: am ce180c10: Merge "Cleanup: add PointF.toString()/equals()/hashcode()" into jb-mr1.1-dev

* commit 'f57eaa02ea00e538d3d5dc2b4a39831ac3e07db8':
Cleanup: add PointF.toString()/equals()/hashcode()
18bbcf7f688be41d858b2ac2dd51e7d86371aecb 26-Nov-2012 Romain Guy <romainguy@google.com> Merge "Copy missing state in DrawableContainer" into jb-mr1.1-dev
813680780f365648b39873fa26dfae0123d51aed 21-Nov-2012 Chet Haase <chet@google.com> Use correct alpha value when a color is not set on a GradientDrawable.

A previous fix ensured that color filters would have a default (black) color to
interact with if no color was set on the GradientDrawable object. However, that fix
assumed an opaque alpha value, which is not always the case. Specifically, calling
setImageAlpha() on an ImageView with a shape drawable source (as in the bug here)
caused the alpha to be set to a translucent value, which was then ignored in the fix
above.

The fix is to account for the current alpha value of the GradientDrawable object
when setting the color used by the paint object.

Issue #7592193 ImageView.setImageAlpha() broken when colorFilter is in use

Change-Id: Ie622ffca776fdd8731ced78ce1f683ca6a51dec8
ndroid/graphics/drawable/GradientDrawable.java
9f8af6546deb26d8bddb0c1b23d554fe5380b9d3 21-Nov-2012 Romain Guy <romainguy@google.com> Cleanup: add PointF.toString()/equals()/hashcode()

PointF was missing these methods found in Point.

This change also properly implements equals() and hashcode() for
Point to match the PointF implementations.

Change-Id: Ic97280fb9f8c7011d8a13103c67d6e898adf00c0
ndroid/graphics/Point.java
ndroid/graphics/PointF.java
fa9b396dbc58990c729fecabbad9e74257bef556 21-Nov-2012 Romain Guy <romainguy@google.com> Copy missing state in DrawableContainer

The copy constructor of DrawableContainerState was not properly
copying all the state. This change adds the missing two fields
that should be copied over.

Change-Id: Ic92ba17ccf8fb3c8cbb5ead18690287da21c48a4
ndroid/graphics/drawable/DrawableContainer.java
1fc3c5f22fd0997e061b0c9cf27de03e9b267797 20-Nov-2012 Chris Craik <ccraik@google.com> am 29fd706a: am d5f2a8d9: am 89ac38bf: Merge "Add missing variable copies in Path copy constructor" into jb-mr1.1-dev

* commit '29fd706aa1a59d542b30672a3a5d6d9cf6c34980':
Add missing variable copies in Path copy constructor
29fd706aa1a59d542b30672a3a5d6d9cf6c34980 20-Nov-2012 Chris Craik <ccraik@google.com> am d5f2a8d9: am 89ac38bf: Merge "Add missing variable copies in Path copy constructor" into jb-mr1.1-dev

* commit 'd5f2a8d9ee4e5ef3eeece3376ed414d83919fccf':
Add missing variable copies in Path copy constructor
8150941098bcb44bbbb023c1f67760d69b31a16c 17-Nov-2012 Jason Sams <jsams@google.com> Add single channel blur test.

Change-Id: Iec63132ab4d88290ae1bf0d71431d4fe6ec6dd25
ndroid/renderscript/ScriptIntrinsicBlur.java
fa0853e0b92617128531188edd6a749a72b86432 17-Nov-2012 Chris Craik <ccraik@google.com> Add missing variable copies in Path copy constructor

bug:7564602

Also, clear isSimplePath flag for possible translates, since rect drawing path
doesn't support them

Change-Id: Ibb4a3e87ace0feb16bce1c6032016c5f4643f8d6
ndroid/graphics/Path.java
7b172a49a90ea6784dbfe0002474f9d4fd4ace1a 07-Nov-2012 Kenny Root <kroot@google.com> am 58ed5d74: am 768d9e1a: Merge "Correct executable bit for source files"

* commit '58ed5d748c0b9b64845975ef5844ad313de7c3f6':
Correct executable bit for source files
58ed5d748c0b9b64845975ef5844ad313de7c3f6 07-Nov-2012 Kenny Root <kroot@google.com> am 768d9e1a: Merge "Correct executable bit for source files"

* commit '768d9e1a72ceee7d4a5f608776b87b62d6ce4a04':
Correct executable bit for source files
3a084af2e90849aaa8beb3a610189e3399c63ea0 07-Nov-2012 Kenny Root <kroot@google.com> Correct executable bit for source files

Many media files and source code files were marked as executable in Git.
Remove those.

Also a shell script and python script were not marked as executable.

Change-Id: Ieb51bafb46c895a21d2e83696f5a901ba752b2c5
ndroid/graphics/Bitmap.aidl
1a94c7db9fc78e8e7a9d48546622776d27a79a6a 05-Nov-2012 Igor Murashkin <iam@google.com> Merge "Updated android.graphics.SurfaceTexture to use wp for FrameAvailableListener"
097d818cebe3c7a4a80b009e9e52d8d84a6f792b 01-Nov-2012 Raph Levien <raph@google.com> am 06da2423: am 54385d91: am c01d1045: Merge "Fix for bug 7400445 regression in background drawable" into jb-mr1-dev

* commit '06da2423c55bc2a61b42cdc34c0c20800fdd4977':
Fix for bug 7400445 regression in background drawable
39824f685c33f8aabbe9526b4cc79b7411e8b37f 31-Oct-2012 Raph Levien <raph@google.com> Fix for bug 7400445 regression in background drawable

The opacity calculation for a gradient drawable of shape must take
rounded corners into account - if the corner radius is nonzero, then the
shape is translucent rather than opaque. Previously the code always
assumed that such rectangles were fully opaque, which led to the
background (visible behind the rectangle) not getting drawn.

This patch simply checks for corner radius in addition to shape and
computes opacity as translucent in the nonzero case.

Change-Id: Iaf4d24abc6ecf49f85c82972b8f998700c83295e
ndroid/graphics/drawable/GradientDrawable.java
c99db2bc460cc795947d99076da380e22a21e493 29-Oct-2012 Igor Murashkin <iam@google.com> Updated android.graphics.SurfaceTexture to use wp for FrameAvailableListener

Bug: 7425644
Change-Id: I7ccdc0ef421df7240d6cff9222c37411b1ecaf01
ndroid/graphics/SurfaceTexture.java
aaee13176efb494d28531ae3e2e7ae71c4627dcf 23-Oct-2012 Chet Haase <chet@google.com> am 85c1aef9: am 6534dd02: am 74261d84: Merge "Don\'t null the reference to Bitmap pixels until we\'re really ready" into jb-mr1-dev

* commit '85c1aef929b40f6fae31938b9c71160865d67f81':
Don't null the reference to Bitmap pixels until we're really ready
547e66531d521eb1eadac87edb0f79f8c2f1bbe0 23-Oct-2012 Chet Haase <chet@google.com> Don't null the reference to Bitmap pixels until we're really ready

A change in the VM triggers a native memory error more aggressively than before,
showing that there's a bug in the logic of recycling bitmaps. Since the pixel
memory is allocated on the Java heap, nulling out the reference to that memory
in the Java level Bitmap object can cause that memory to get collected at any time.
Meanwhile, we may have a reference to that memory at the native level for rendering
purposes, causing an error if/when we access that memory after it has been collected
by the VM.

The fix is to avoid setting the reference to the pixels to null unless we are
not referring to it in native code. This is determined at the time we call
recycle() - we return a boolean to indicate whether the native code is still
using the memory. if not, the Java code can null out the reference and allow the
VM to collect it. Otherwise, it will get collected later when the encompassing
Bitmap object is collected.

Issue #7339156 HTML5 tests crash the app (Vellamo)

Change-Id: I3a0d6b9a6c5dd3b86cc2b0ff7719007e774b5e3c
ndroid/graphics/Bitmap.java
ef9f40f11e252d67cede28fea3a3df4880531dcd 17-Oct-2012 Romain Guy <romainguy@google.com> am b7b30eb0: am fa71ba2c: am 1b85122b: Merge "Add API to enable mipmaps on Bitmap Bug #7353771" into jb-mr1-dev

* commit 'b7b30eb0577e794c744a1e3e3079325f73081c3d':
Add API to enable mipmaps on Bitmap Bug #7353771
1b85122bd22c4528679ae8bd67077dfc2fdf1847 17-Oct-2012 Romain Guy <romainguy@google.com> Merge "Add API to enable mipmaps on Bitmap Bug #7353771" into jb-mr1-dev
713e1bb9df6bdfc21bd5c40d1a6ecf6c822a4be5 17-Oct-2012 Romain Guy <romainguy@google.com> Add API to enable mipmaps on Bitmap
Bug #7353771

This API can be used when scaling large images down to a small size
to get nicer looking results.

Change-Id: If09087eed36077eee5355f6047a3ca67747d7d9e
ndroid/graphics/Bitmap.java
7e7b99ca93f0a3c16876ac82fdaf6d7eb0ea694c 16-Oct-2012 Jason Sams <jsams@google.com> am f5e768c4: am 06b9df47: am 61759d99: Merge "Convert one more bind() -> setVar()." into jb-mr1-dev

* commit 'f5e768c46dfaa7266a25cf9ea778479b5d493dc1':
Convert one more bind() -> setVar().
5b4f8f90fd9bb05ea3d8e57ce5217054c5b3406f 16-Oct-2012 Stephen Hines <srhines@google.com> Convert one more bind() -> setVar().

Bug: 7318821
Change-Id: I215c70a99c81e560a73412b2263fed39a0fdae03
ndroid/renderscript/ScriptIntrinsicLUT.java
885934ff45f35ac4b1b93c3a34176e598d51a7a0 16-Oct-2012 Jason Sams <jsams@google.com> am 749c179e: am 8d0c431a: am 009d5413: Merge "Fix bugs in scriptGroup." into jb-mr1-dev

* commit '749c179ed5a1cdb2f6742fbe3bb491404a19acca':
Fix bugs in scriptGroup.
e6a7886674c167b4e17f6dc72d41d5b9c604cdd1 16-Oct-2012 Jason Sams <jsams@google.com> Fix bugs in scriptGroup.

Intrinsics were treating inputs as fields rather than varObjs.
This would generate a lot of extra work for the reflection
layers. Also we would like to deprecate this path in the future.

bug 7318821

Change-Id: I81e8c562ba05aae5d085d5c08e91e2c4877265c5
ndroid/renderscript/ScriptIntrinsicBlur.java
ndroid/renderscript/ScriptIntrinsicConvolve3x3.java
ndroid/renderscript/ScriptIntrinsicConvolve5x5.java
ndroid/renderscript/ScriptIntrinsicYuvToRGB.java
1592c79a4078bd94281b5c823f5b676a439f6746 13-Oct-2012 Jason Sams <jsams@google.com> am bc265564: am 08dd6d1f: am 56754193: Merge "Fix cycle detection for SGs." into jb-mr1-dev

* commit 'bc265564746f7321e1d8277449a90c9e8e4ad824':
Fix cycle detection for SGs.
091f7ccf9a97aed94383370666b592a57a1b9400 12-Oct-2012 Tim Murray <timmurray@google.com> Fix cycle detection for SGs.

bug 7318821

Change-Id: I695d7230551d8512c6c3f0c31c57f12498da7036
ndroid/renderscript/ScriptGroup.java
5ce5cdb6ac4f5b0705f4ff8cf4fd0101578d40d1 12-Oct-2012 Romain Guy <romainguy@google.com> am 6aa40ac5: am fa6e9cf6: am 86ad8662: Merge "Don\'t scale bitmaps to an empty size when targetDpi=0 Bug #7334217" into jb-mr1-dev

* commit '6aa40ac59516d4286b2013e33b9f37633ec0fe91':
Don't scale bitmaps to an empty size when targetDpi=0 Bug #7334217
86ad866283dc05c2adb8f673510e8b45b0b5ee5f 12-Oct-2012 Romain Guy <romainguy@google.com> Merge "Don't scale bitmaps to an empty size when targetDpi=0 Bug #7334217" into jb-mr1-dev
0b68477f8287fe5ddac1beb1c9d0811ded034dad 12-Oct-2012 Romain Guy <romainguy@google.com> Don't scale bitmaps to an empty size when targetDpi=0
Bug #7334217

Change-Id: I8d232a835580ffbf85334e0a3580e8d8240c8570
ndroid/graphics/Bitmap.java
07fd8b4fc5981783f5ab3fa81c3a574d1ef39124 11-Oct-2012 Tim Murray <timmurray@google.com> am b97bf6c4: am ab01a9e4: am b2d55225: Merge "Add DAG validation for ScriptGroups." into jb-mr1-dev

* commit 'b97bf6c458689a5e4284b902f0c012b4ebe273b0':
Add DAG validation for ScriptGroups.
b2d552259ebe254fe3fc830e71caadef9d72a778 11-Oct-2012 Tim Murray <timmurray@google.com> Merge "Add DAG validation for ScriptGroups." into jb-mr1-dev
2a603897c6fdeba553051eedb911ec3b0b794530 10-Oct-2012 Tim Murray <timmurray@google.com> Add DAG validation for ScriptGroups.

bug 7318821

Change-Id: If13cfe7a9f214ab253236bd52dd96df7b07aa14e
ndroid/renderscript/ScriptGroup.java
91d7b4f3267238c0850d27aa31317c88fc9e3075 10-Oct-2012 Marco Nelissen <marcone@google.com> am 0419ebaf: am 450b713e: am 437e9cc3: Merge "Adjust buffer position after copying" into jb-mr1-dev

* commit '0419ebafbac72ccbcb53a68b24e29265962f50fd':
Adjust buffer position after copying
55adc145d460be4b21de0d77be1f6076c3591e3c 08-Oct-2012 Marco Nelissen <marcone@google.com> Adjust buffer position after copying

Make Bitmap.copyPixelsFromBuffer() adjust the buffer's position,
making it consistent with Bitmap.copyPixelsToBuffer().
b/6948775

Change-Id: Ie26f8050b1fb4d19cd39ee1a08b6f652a732fec3
ndroid/graphics/Bitmap.java
f671fb0b35e945e5fc1416603e3b9a1c61d9dab9 03-Oct-2012 Tim Murray <timmurray@google.com> Add copyFrom(Allocation a).

Change-Id: Ibc334326083b5471584dcf1c068e4e810aede20f
ndroid/renderscript/Allocation.java
bc254b959744b21fd8cb9a7bf72ee3d1ae9cbba1 06-Oct-2012 Tim Murray <timmurray@google.com> add resize2D to Java API

Change-Id: I91c0d2292486d63b93f8b07a9ec0137fe020ac21
ndroid/renderscript/Allocation.java
82fa5ffbbc4a0b9842c809d0d4fdbec622819f38 04-Oct-2012 Romain Guy <romainguy@google.com> am bf8d8e73: am 5971d03f: am f7ee2a03: Merge "Fix rendering artifacts on tiled renderers Bug #7275145" into jb-mr1-dev

* commit 'bf8d8e73e4123f529845e88de6d74b62853b9786':
Fix rendering artifacts on tiled renderers Bug #7275145
f7ee2a03c1f930db4b20c04225f496ada97e646b 04-Oct-2012 Romain Guy <romainguy@google.com> Merge "Fix rendering artifacts on tiled renderers Bug #7275145" into jb-mr1-dev
dfab363807b3b44be4032e410f016e0a0d018426 03-Oct-2012 Romain Guy <romainguy@google.com> Fix rendering artifacts on tiled renderers
Bug #7275145

This change fixes ViewRoot and adds extra debug information. It does
not solve the problem entirely. Another CL will.

Change-Id: I7e604ba38aad7f421769783dcbd998d6905ab2d9
ndroid/graphics/drawable/ColorDrawable.java
5020d82cf2c4f23e9325bf2a12dc70021fef4582 04-Oct-2012 Jason Sams <jsams@google.com> am f055f943: am 4bc2bd51: am 833a89c6: Merge "Fix range on blur intrinsic." into jb-mr1-dev

* commit 'f055f94388d540d0588ed1b3e35e37b2d0247f94':
Fix range on blur intrinsic.
833a89c694c3cddd703dab94fbc5f73f2a79149e 04-Oct-2012 Jason Sams <jsams@google.com> Merge "Fix range on blur intrinsic." into jb-mr1-dev
aba58b519f51a3a6b8b77ef8952114c7643b4b4f 03-Oct-2012 Romain Guy <romainguy@google.com> am f265ac2e: am 27fa88dd: am 0e3984b7: Merge "Bring back Netflix progress bar Bug #7274157" into jb-mr1-dev

* commit 'f265ac2e26811561a786a4710ec8d992c05563b5':
Bring back Netflix progress bar Bug #7274157
41c769d9a8858ad20b0a6ed942a1cea19ba59d2d 03-Oct-2012 Romain Guy <romainguy@google.com> Bring back Netflix progress bar
Bug #7274157

Gradients and color filters are multiplied by the paint's color so it
needs to be set to opaque black to have an effect.

Change-Id: Ib5dd1e6185f758f55b57a0f4496dfae98f1a096b
ndroid/graphics/drawable/GradientDrawable.java
31864d76a3624f2c5908218b32bf09051b1b9d24 03-Oct-2012 Jason Sams <jsams@google.com> Fix range on blur intrinsic.

The intrinsic fails when the radius was 0. A blur
of radius 0 is a nop and should be disallowed. Fix the
test to allow sub-pixel radius to be selected.

bug 7273437

Change-Id: I2805674e29d557615eb7ac65c7910d4dffa28b58
ndroid/renderscript/ScriptIntrinsicBlur.java
964175b8623be1fc555ce1bc7ff0fe083a1b77bb 02-Oct-2012 Romain Guy <romainguy@google.com> am 70c68ea5: am 77bcaaad: am 8257124c: Merge "Draw stroked rectangle as meshes instead of textures Bug #7233734" into jb-mr1-dev

* commit '70c68ea5539a968be634ba431595683109153ec4':
Draw stroked rectangle as meshes instead of textures Bug #7233734
cf8675ee176a375f873792684d38a47f78348dff 02-Oct-2012 Romain Guy <romainguy@google.com> Draw stroked rectangle as meshes instead of textures
Bug #7233734

Stroked rectangles were rendered using software generated textures
which would lead to slightly misaligned results. Instead, let's use
the new convex path rendering code that will do the right thing
(and save a lot of bandwidth.)

Change-Id: Ib95ff581e56c1ecead97e4919298e6fd146ca167
ndroid/graphics/drawable/GradientDrawable.java
d847b594e4fa20346d23eede71a1f77575b3cc27 01-Oct-2012 Dianne Hackborn <hackbod@google.com> am eede0f6f: am b4bca666: am 2effc77c: Merge "Update APIs to JB MR1 level 17." into jb-mr1-dev

* commit 'eede0f6fe0957bf559a01d94a1b4f5444b3743b5':
Update APIs to JB MR1 level 17.
302b74c9a20f5590313713ba2395b88b9e79e4e8 01-Oct-2012 Romain Guy <romainguy@google.com> am b9a0a231: am dd2dd7bb: am 955b66d0: Merge "reset() should reset. Otherwise it would be called something else. Bug #7256095" into jb-mr1-dev

* commit 'b9a0a23111b4f82004a6a321e8de9f1ad474e387':
reset() should reset. Otherwise it would be called something else. Bug #7256095
2effc77c9a49f983779dbab656bba490bb7d4ba0 30-Sep-2012 Dianne Hackborn <hackbod@google.com> Merge "Update APIs to JB MR1 level 17." into jb-mr1-dev
fc4947491f785600b8770112fa1d19ece06d42f9 28-Sep-2012 Dianne Hackborn <hackbod@google.com> Update APIs to JB MR1 level 17.

17 is current, resources are fixed, cleanup is done.

Change-Id: I6de446e209f59c5dd5fe1cde311776ab222817ea
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
885d82d4274170873919660550c28df9ee14ca1b 29-Sep-2012 Romain Guy <romainguy@google.com> reset() should reset. Otherwise it would be called something else.
Bug #7256095

Change-Id: I610bbcaccdceaf2b5bb5f9d231283335911d4cd9
ndroid/graphics/Paint.java
fc41a7547f0b0bb4491a37bec7f004baf2778de1 27-Sep-2012 Tim Murray <timmurray@google.com> am 7eee3ce3: am c31c5433: Merge "fix blend intrinsics, add tests" into jb-mr1-dev

* commit '7eee3ce3114a7e0f91f91dc74c26677300c0ec71':
fix blend intrinsics, add tests
74478f73b7ecf5c6bceb214b2704184ad9e2e0ec 26-Sep-2012 Tim Murray <timmurray@google.com> fix blend intrinsics, add tests

Bug: 7190126
Change-Id: If69213377282bf5b412508e7af974a1f8d440287
ndroid/renderscript/ScriptIntrinsicBlend.java
8c549d6ffec427ed3f8f99eb25ffefaf55003893 25-Sep-2012 Philip Milne <pmilne@google.com> Merge "Bug #6110465. Optical bounds support for all ViewGroup subclasses."
f70bb04346707c49f31d5ac4853a6fce555b715e 22-Sep-2012 Jason Sams <jsams@google.com> Add Blend intrinsic.

Change-Id: I6f679c910fc23fe7441e17ad66bcf5f3dd7425a0
ndroid/renderscript/ScriptIntrinsicBlend.java
7b7578184567f4e4f0740ce935cc192765410cca 20-Sep-2012 Philip Milne <pmilne@google.com> Bug #6110465. Optical bounds support for all ViewGroup subclasses.

This CL generalizes the optical bounds support previously contained in the
GridLayout implementation and then incorporates the new form directly into
the base View and ViewGroup implementations. After this change, GridLayout is
returned to an 'optical bounds' unaware state, and all layouts (including non-platform
ones) inherit the ability to perform their layout operation by optical (rather than clip)
bounds using their existing implementations.

The "layoutMode" property of ViewGroup and its associated constants are
made public in this CL.

Change-Id: Ic1bba0e1c6fc14da4aeab0b28c975d562b5f82dd
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/NinePatchDrawable.java
cd77583ed336d10c5625933a565dcadf51705c61 21-Sep-2012 Derek Sollenberger <djsollen@google.com> Ensure that the decoder is thread-safe.

This prevents issues where one thread recycles the decoder while another
thread is in the process of checking the decoder's status or in the process
of decoding a region.

bug: 6880937
Change-Id: I7f755bf2149d03594e528ca79c536713b1447a55
ndroid/graphics/BitmapRegionDecoder.java
55db6865ef708d66fd2382d6e96a845b68030f20 19-Sep-2012 Jason Sams <jsams@google.com> Merge "Clean up and publish the YUV to RGB intrinsic." into jb-mr1-dev
e69e9e6b6e77d6c7b1ba2719b7aa7001bbbabb32 19-Sep-2012 Jason Sams <jsams@google.com> Clean up and publish the YUV to RGB intrinsic.

Change-Id: Iffb346a5d751f0bae123455869bda8db37d542ff
ndroid/renderscript/ScriptIntrinsicYuvToRGB.java
684385ddde2ac0c26de0862390ad713aff3fb149 19-Sep-2012 Romain Guy <romainguy@google.com> mutate() didn't work as advertised
Bug #7162705

Change-Id: I15b2663fa7f1c71a2a3479134b8b7f37bfcbc607
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
29d0aa73a099fde05c506857b5d215cde87b78d6 19-Sep-2012 Romain Guy <romainguy@google.com> Merge "Compute GradientDrawable's opacity correctly" into jb-mr1-dev
e91aa0fa64db892194ba82ec7d41df6fb9185471 19-Sep-2012 Romain Guy <romainguy@google.com> Compute GradientDrawable's opacity correctly

The current implementation of GradientDrawable always assumes the shape needs
to be blended. This causes all windows to be considered translucent by default.
This change recomputes the opacity as needed to ensure windows are marked
opaque when they should.

Change-Id: Iaf291d889a6c5122ab00c9f5781df3e7f61547fa
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/GradientDrawable.java
8b3560d3e68d6e596bc22b117b049e15cc7e1b3b 18-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #7172972 API REVIEW: android.graphics.drawable.Drawable" into jb-mr1-dev
f358260af4cd34961acc13d849819c8b6089f309 18-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #7172972 API REVIEW: android.graphics.drawable.Drawable

- add @hide

Change-Id: I20dca8d7f6a58dfd1dd342135dcff912e08d4ab9
ndroid/graphics/drawable/Drawable.java
08a81583c18a849e442ceeb8d7baeca743fb3be8 18-Sep-2012 Jason Sams <jsams@google.com> Add Kernel, Method, and field IDs
bug 7182873

Change-Id: I066a359bb04027e9376dac088560f042c496b10e
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Script.java
ndroid/renderscript/ScriptGroup.java
ndroid/renderscript/ScriptIntrinsicBlur.java
ndroid/renderscript/ScriptIntrinsicColorMatrix.java
ndroid/renderscript/ScriptIntrinsicConvolve3x3.java
ndroid/renderscript/ScriptIntrinsicConvolve5x5.java
ndroid/renderscript/ScriptIntrinsicLUT.java
80d819033d4687507907f787d47379b7b37eae19 14-Sep-2012 Jason Sams <jsams@google.com> Unhide intrinsics and document API.

Change-Id: I0233245c68f9a08780213062e62cfea6cf909c13
ndroid/renderscript/ScriptIntrinsic.java
ndroid/renderscript/ScriptIntrinsicBlur.java
ndroid/renderscript/ScriptIntrinsicColorMatrix.java
ndroid/renderscript/ScriptIntrinsicConvolve3x3.java
ndroid/renderscript/ScriptIntrinsicConvolve5x5.java
ndroid/renderscript/ScriptIntrinsicLUT.java
dd4b1fec4c93c7417314febecebfd91e916f5ff6 13-Sep-2012 Romain Guy <romainguy@google.com> Don't crash when copying a null Rect
Bug #7158068

Change-Id: I8f5f3ee12b2c4fd1fe28212b0c6de1214f2ce5f9
ndroid/graphics/Rect.java
ndroid/graphics/RectF.java
3a5b8011765906c15b5474b2bc43d80f6746cb45 09-Sep-2012 Jason Sams <jsams@google.com> LUT intrinsic and CrossProcess test.
5x5 convolve and test
Gauss blur and test


Change-Id: Ic2f5d583cbdc1793ec8c8e2beea783d4ec34a57f
ndroid/renderscript/ScriptIntrinsicBlur.java
ndroid/renderscript/ScriptIntrinsicConvolve5x5.java
ndroid/renderscript/ScriptIntrinsicLUT.java
4319079375ef49668ea88e74fb899275d6bbdb19 08-Sep-2012 Jason Sams <jsams@google.com> Merge "Fix doc typo." into jb-mr1-dev
be6024d57140a81883e6c5a27cae56a7d31d10dc 08-Sep-2012 Romain Guy <romainguy@google.com> Merge "Fix crash in ShapeDrawable" into jb-mr1-dev
1558cf1498ecc687532f2dad3de720053dca9309 08-Sep-2012 Romain Guy <romainguy@google.com> Fix crash in ShapeDrawable

Change-Id: Ibc277db46912a73dc3f971f8487baa5eafa8bc84
ndroid/graphics/drawable/ShapeDrawable.java
17fec32bba9da8df2062b52e414435574652ad50 08-Sep-2012 Jason Sams <jsams@google.com> Fix doc typo.

Change-Id: Ib18172ac72886865dc9ae4535a577b2f8f3468e9
ndroid/renderscript/ScriptIntrinsicColorMatrix.java
3f7bbe8cd37aba1be1a80222270057d78a032b54 08-Sep-2012 Jason Sams <jsams@google.com> Merge "Document ColorMatrix intrinsic and add helpers" into jb-mr1-dev
bae1d478964f609f4ed37d629ed3247a12ed312e 07-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix the build" into jb-mr1-dev
c5daf84f6647d3280c59554cd6ec9c2a4f119bfc 07-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix the build

- use fully qualified name for Javadoc

Change-Id: Ic75ce7e19d407dc40c96b585f9fa1827fb614ba1
ndroid/graphics/drawable/Drawable.java
6543c292b2d1cb3547f4565f89b7cb649ad955d6 07-Sep-2012 Romain Guy <romainguy@google.com> Merge "The drawables cache strikes again Bug #7117785" into jb-mr1-dev
8fd5853c1c07c2fd3954b3c5e64702d70af31144 06-Sep-2012 Jason Sams <jsams@google.com> Document ColorMatrix intrinsic and add helpers

Increase size of test image.
Add helpers for greyscale and yuv<>rgb conversions

Change-Id: I6cdd06ae23623b47f5034585ed5d385ff11348ac
ndroid/renderscript/Matrix4f.java
ndroid/renderscript/ScriptIntrinsicColorMatrix.java
ndroid/renderscript/ScriptIntrinsicYuvToRGB.java
0af4b8b0c8b038bca9b4f60eb81f71e186f471ce 12-Jun-2012 Fabrice Di Meglio <fdimeglio@google.com> Make ProgressBar / SeekBar / RatingBar widgets aware of layout direction

- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)

Change-Id: I8d76299090abf6b2b187696b1a83e71d7a44b1ce
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
5f49c3023a512efbef8bc9515d310c7a72be4af2 07-Sep-2012 Romain Guy <romainguy@google.com> The drawables cache strikes again
Bug #7117785

Draawables created from the ConstantState cache found in Resources must be
mutated before they can be safely modified by apps. Failure to do so results
in all drawables sharing the same constant state to be affected by the
modification.

In the case of the bugreport above, the status bar code plays tricks with
a background drawable and modifies its color to implement a fade in/out
effect. This drawable comes from a cached resource (color 0x0) and the
modifications made by the status bar apply to other clients of this drawable,
most notably the recents panel.

This change fixes several things:
- Simplifies colors caching by removing the assetCookie from the key. This
should result in better reuse of cached drawables
- Makes View.setBackgroundColor() honor the mutate() contract
- Ensure StateListDrawable properly mutates its children before modifying
them
- Optimize Bitmap/ColorDrawable to mark them mutated when they are not
created from an existing ConstantSate. The same optimization should be
applied to other drawables in the future

Change-Id: I54adb5d5b914c7d8930bf9b46f7e3f9dcbf4bcab
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
5729fcdf950eb909b0ab90a49af58731ed8f92cd 05-Sep-2012 Jason Sams <jsams@google.com> Add ColorMatrix Intrinsic.

Add better intrinsic testing.
Include reference .rs for each intrinsic.

Change-Id: I327649f16ac8f641c2bd96f7b16f51874a3e820e
ndroid/renderscript/ScriptIntrinsicColorMatrix.java
19e1086df11567be9ee3eaf99fa1fc82c65b2b27 22-Aug-2012 Jason Sams <jsams@google.com> Move the kernel launch to specific intrinsic class.

This allows support of both input types. Kernel source
and global source.

Change-Id: Iea60bebd79c786795eae81c14cbec352b470a9c0
ndroid/renderscript/ScriptIntrinsic.java
ndroid/renderscript/ScriptIntrinsicConvolve3x3.java
6ab97682fd444586ee135912a4210417a1c8781b 10-Aug-2012 Jason Sams <jsams@google.com> Intrinsics test

Change-Id: I1847ad0c9190100eb84f7e052dd9f3bff81dc447
ndroid/renderscript/RenderScript.java
ndroid/renderscript/ScriptIntrinsic.java
ndroid/renderscript/ScriptIntrinsicConvolve3x3.java
ndroid/renderscript/ScriptIntrinsicYuvToRGB.java
423ebcb4dc4881c3a83e8121d5212466287d0d0c 11-Aug-2012 Jason Sams <jsams@google.com> Implement ScriptGroup and add test.

Change-Id: I6ce0479c20f425d501c759c15717aa8b418c3f5f
ndroid/renderscript/ScriptGroup.java
4ff0cf4b83605bff630c4e6f1fabe4f72a3f93a1 06-Aug-2012 Romain Guy <romainguy@google.com> Add new debug tool to track hardware layers updates

You can setprop debug.hwui.show_layers_updates true to flash
hw layers in green when they update. This is also a setting
in the Dev. section of the settings app.

Change-Id: Ibe1d63a4f81567dc1d590c9b088d2e7505df8abf
ndroid/graphics/Bitmap.java
2e5746a7a807c6d9d61af48978695214ef9d6717 04-Aug-2012 Dianne Hackborn <hackbod@google.com> Merge "We can now (kind-of) change screen density on the fly." into jb-mr1-dev
dde331cebd87982faded6818ad5f9927ff994c96 03-Aug-2012 Dianne Hackborn <hackbod@google.com> We can now (kind-of) change screen density on the fly.

Preloaded drawables now have a density associated with them, so we
can load the correct drawable if we are using a different density.

Window manager now formally keeps track of the density for each
screen, allowing it to be overridden like you can already do with
size, and relies on this density to drive itself internally and
the configurations it reports.

There are a new set of Bitmap constructors where you provide a
DisplayMetrics so they can be constructed with the correct density.
(This will be for when you can have different windows in the same
app running at different densities.)

ActivityThread now watches for density changes, and pushes them
to the DENSITY_DEVICE and Bitmap global density values for that
process.

A new am command allows you to change the density.
ndroid/graphics/Bitmap.java
f1c0aeda259dd0dbab4356c909d33fe7e1ca0d2a 03-Aug-2012 Dianne Hackborn <hackbod@google.com> Fix issue #6921726: Prime: Cannot make or receive phone calls...

[NPE at android.graphics.drawable.Drawable.createFromResourceStream]

Change-Id: I223428ffb39e883518aad817227f32851ea18aec
ndroid/graphics/drawable/Drawable.java
908aecc3a63c5520d5b11da14a9383f885b7d126 01-Aug-2012 Dianne Hackborn <hackbod@google.com> Start moving away from DisplayMetrics.DENSITY_DEVICE.

This puts in most of the infrastructure needed to allow us to
switch between different densities at run time. The main remaining
uses of the global are to initialize the Bitmap object (not sure
what to do about that since it doesn't have anything passed in
the constructor to get this information from), and being able to
load drawables if we need a different density than what was preloaded
by zygote.

Change-Id: Ifdbfd6b7a5c59e6aa22e63b95b78d96af3d96848
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
010835d47156b5189b0cfe3ad43ce6a5fbb96d99 11-Jul-2012 Stephen Hines <srhines@google.com> Merge "Fix RS matrix docs regarding row/column and x/y."
ec6f200cd8a882458c57a63e1740731f0563cbcc 11-Jul-2012 Stephen Hines <srhines@google.com> Fix RS matrix docs regarding row/column and x/y.

Change-Id: Ibcb90ee62e458adfa55849fc1bc79257293975fe
ndroid/renderscript/Matrix2f.java
ndroid/renderscript/Matrix3f.java
ndroid/renderscript/Matrix4f.java
3849f93b3c2b29ca3873b602897dccac039a0b98 09-Jul-2012 Romain Guy <romainguy@google.com> Add Bitmap.isPremultiplied()

This change also adds extra information in the documentation about
premultiplied values.

Change-Id: I51aacb8696340d23354ebf6d7284605d1a790b69
ndroid/graphics/Bitmap.java
b8151ecd6ef4faa5c16d0a4c3abb45ec84d1f97a 19-Apr-2012 Amith Yamasani <yamasani@google.com> Add an icon to the user information.

Store the icon in the user folder under /data/system,
similar to how the wallpaper is stored.

Change-Id: Id8ccb55b9e2ba7b4c557505a7f69f04eca1518cf
ndroid/graphics/BitmapFactory.java
b03b434089cf2106c467b2827a65e5c589c91d01 04-Jun-2012 Fabrice Di Meglio <fdimeglio@google.com> Revert "Revert "Clean up layout direction APIs for Drawable""

This reverts commit c96132ff53e5c26f5b0170edd85072006fb2bc70
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/ScaleDrawable.java
c96132ff53e5c26f5b0170edd85072006fb2bc70 02-Jun-2012 Jean-Baptiste Queru <jbq@google.com> Revert "Clean up layout direction APIs for Drawable"

This reverts commit c1da65187a4b9de8f72bd617ef937030187c0a92.
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/ScaleDrawable.java
c1da65187a4b9de8f72bd617ef937030187c0a92 01-Jun-2012 Fabrice Di Meglio <fdimeglio@google.com> Clean up layout direction APIs for Drawable

- see bug #6427629

Change-Id: I3119db3022bba0ee325b6d0d4471bfebd850ec10
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/ScaleDrawable.java
4405a21a6f65beeb06a37ab28ab6315849aefbac 21-May-2012 Owen Lin <owenlin@google.com> am 5558f66e: am cb949887: Merge "Release the constraint on the requested version." into jb-dev

* commit '5558f66efe43654c97b851b67a099df0de5429ad':
Release the constraint on the requested version.
39af624f3135328ec0550888e99f4350572634b5 19-May-2012 Dianne Hackborn <hackbod@google.com> DO NOT MERGE: Remove a few left-over layout direction things.

Change-Id: Id66b171594af939df4716aa0e0baa25fe47eecee
ndroid/graphics/drawable/Drawable.java
3bbcbcd5f908cef5c0bf7078c3352185f1ff6ddc 15-May-2012 Owen Lin <owenlin@google.com> Release the constraint on the requested version.

Allowing to request a region that partially outsides the image.
bug: 5884845

Change-Id: I32344930ab9e2a7f22a706914babb165843e8de7
ndroid/graphics/BitmapRegionDecoder.java
f579c86ae44349b13bbbb8eed431d46a67236b65 14-May-2012 Pin Ting <pinting@google.com> am 4de3c27c: am 59e2a1ea: Merge "Fix typo in javadoc." into jb-dev

* commit '4de3c27cc702c019e7a9304d9e548fc81340ad7e':
Fix typo in javadoc.
852be16790d099f95fb2c4fe7b316455662ee97f 11-May-2012 Pin Ting <pinting@google.com> Fix typo in javadoc.

Change-Id: I0e5d8640764772871e72cb00d117d12f3eaeb64f
ndroid/graphics/Rect.java
ndroid/graphics/RectF.java
7054b486a321ab01e838b48ff98c5b51d8380642 10-May-2012 Dave Burke <daveburke@google.com> am 7156645c: am 2ed09ea4: Merge "GFX api cleanup 2 of 2" into jb-dev

* commit '7156645c58d1489b87cf9ecf00cbb4d073d12534':
GFX api cleanup 2 of 2
3db194e9e0914e6a8eb293faf8bc6ef45829ccdb 09-May-2012 Stephen Hines <srhines@google.com> am 218c0899: am 794db6cb: Merge "GFX api cleanup 1.5 of 2" into jb-dev

* commit '218c0899bdea2395f1fe56e1eecc108b633e0da6':
GFX api cleanup 1.5 of 2
ef63d094118d86d7ce371fd98bd05415d3f17ea2 09-May-2012 Jason Sams <jsams@google.com> am 0916b463: am 48250c27: Merge "GFX api cleanup 1 of 2" into jb-dev

* commit '0916b463598a99400840c5d55a443bee2446b626':
GFX api cleanup 1 of 2
eb39c4bafa72b42c287480fd6aebe9688b6ac8d0 09-May-2012 Stephen Hines <srhines@google.com> am 9d05bd8c: am 1d56afc6: Merge "Revert "Deprecate"" into jb-dev

* commit '9d05bd8c67b6c01436bfdde13ef9fe61cf9f33e9':
Revert "Deprecate"
450743459f383249f0a08e9cdc24ae1745761d4a 09-May-2012 Fabrice Di Meglio <fdimeglio@google.com> am e1b1cdc0: am 92d7f9ff: Merge "Fix bug #6408393 Character corruption is caused when locale is changed" into jb-dev

* commit 'e1b1cdc0d45b23ad65819643ca135783ad17b976':
Fix bug #6408393 Character corruption is caused when locale is changed
d4ca9910982853e50429ea9233f2150ca619b3d8 09-May-2012 Jason Sams <jsams@google.com> GFX api cleanup 2 of 2

Change-Id: Ie928b8ee7d31fcaa26fcad9a2548581bb8395a61
ndroid/renderscript/Mesh.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/RSTextureView.java
ndroid/renderscript/RenderScriptGL.java
e619de6a4e4326b7662b523ea2f403801291d432 09-May-2012 Jason Sams <jsams@google.com> GFX api cleanup 1.5 of 2

Change-Id: Ib31332ae0b7a6059d4971ea616089cd382ef6895
ndroid/renderscript/Mesh.java
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RenderScriptGL.java
65c80f824711f084c4ece9204f543a7809534294 09-May-2012 Jason Sams <jsams@google.com> GFX api cleanup 1 of 2

Change-Id: Ib85784c18b1647e51f1d7cf2a4c956d17e1d2e3c
ndroid/renderscript/Element.java
ndroid/renderscript/FileA3D.java
ndroid/renderscript/Font.java
ndroid/renderscript/ProgramFragmentFixedFunction.java
ndroid/renderscript/ProgramVertexFixedFunction.java
1d56afc6ace90e7cbd32d776b73173ef0dfa95c4 08-May-2012 Stephen Hines <srhines@google.com> Merge "Revert "Deprecate"" into jb-dev
30ca5cd11a23f06f2f8eeaa587685450826f800f 08-May-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #6408393 Character corruption is caused when locale is changed

- free the TextLayoutCache on Locale change

- also free TextLayoutCache when memory is low

Change-Id: I39a37ac8ec3c292cfb1c0eea4bb41ff71897d089
ndroid/graphics/Canvas.java
9c9ad3f8c218954e46aab81f9af7834cea5675ca 08-May-2012 Stephen Hines <srhines@google.com> Revert "Deprecate"

This reverts commit a0c2eb27b408660b02fa248943166d6c7e447908.

Conflicts:

api/current.txt
graphics/java/android/renderscript/Element.java
graphics/java/android/renderscript/Script.java

Change-Id: I3c8fa62b12da95b3dbc842b5284dbed65d3cf963
ndroid/renderscript/Allocation.java
ndroid/renderscript/AllocationAdapter.java
ndroid/renderscript/BaseObj.java
ndroid/renderscript/Byte2.java
ndroid/renderscript/Byte3.java
ndroid/renderscript/Byte4.java
ndroid/renderscript/Double2.java
ndroid/renderscript/Double3.java
ndroid/renderscript/Double4.java
ndroid/renderscript/Element.java
ndroid/renderscript/FieldPacker.java
ndroid/renderscript/FileA3D.java
ndroid/renderscript/Float2.java
ndroid/renderscript/Float3.java
ndroid/renderscript/Float4.java
ndroid/renderscript/Font.java
ndroid/renderscript/Int2.java
ndroid/renderscript/Int3.java
ndroid/renderscript/Int4.java
ndroid/renderscript/Long2.java
ndroid/renderscript/Long3.java
ndroid/renderscript/Long4.java
ndroid/renderscript/Matrix2f.java
ndroid/renderscript/Matrix3f.java
ndroid/renderscript/Matrix4f.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/Path.java
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramFragmentFixedFunction.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/ProgramVertexFixedFunction.java
ndroid/renderscript/RSDriverException.java
ndroid/renderscript/RSIllegalArgumentException.java
ndroid/renderscript/RSInvalidStateException.java
ndroid/renderscript/RSRuntimeException.java
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RSTextureView.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/Sampler.java
ndroid/renderscript/Script.java
ndroid/renderscript/ScriptC.java
ndroid/renderscript/Short2.java
ndroid/renderscript/Short3.java
ndroid/renderscript/Short4.java
ndroid/renderscript/Type.java
b0aa2f53681ffd78b12f393eb7cb72b6ea4be0bb 04-May-2012 Fabrice Di Meglio <fdimeglio@google.com> Hide Paint textLocale APIs - DO NOT MERGE

- fix bug #6441521 Need to @hide Paint setTextLocale / getTextLocale - CJK support

Change-Id: Ic536989243d7028e6f5fce7d60dfef4467bebffb
ndroid/graphics/Paint.java
66388dcb09018933ccd1d38eae563f0890ba4f06 04-May-2012 Fabrice Di Meglio <fdimeglio@google.com> Hide RTL related APIs - DO NOT MERGE

- fix bug #6441155 API review: @hide RTL layout APIs

Change-Id: I13c5ea5f579cecffed9d517f06180ab0576cd26a
ndroid/graphics/drawable/Drawable.java
163a3ae770c290f87347e5b413ec8ff9f128a311 03-May-2012 Eino-Ville Talvala <etalvala@google.com> Merge "Update docs for YV12 format and camera preview callbacks." into jb-dev
951516358e2841d2425f610bcd0175d9960135d2 03-May-2012 Eino-Ville Talvala <etalvala@google.com> Update docs for YV12 format and camera preview callbacks.

- Define stride for YV12 when using it for preview callbacks

- Include equations for calculating stride and start indexes of Y, U,
and V planes for YV12.

- Add more cross-references so that equations are easier to find.

Bug: 6330501
Change-Id: I85a78757ec767d08173b9fe714adb715835244b4
ndroid/graphics/ImageFormat.java
adeb809201fcb77ba2b76a814ae4cdc9dacb326b 20-Apr-2012 Stephen Hines <srhines@google.com> Start passing element/dim information along with FieldPacker.

BUG=6009244

Change-Id: I3c82c8b40c899b875831f53cf0ad82ea36c1a043
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Script.java
9da1b5d0301e8d13be8c96cbd12dcda04fcf7118 01-May-2012 Stephen Hines <srhines@google.com> Unhide FONT.

Change-Id: I86258076817bb8f34ce3bb76031df41c08750f8c
ndroid/renderscript/Element.java
76344241719384f160ee623554f66987d0fcae41 30-Apr-2012 Dianne Hackborn <hackbod@google.com> Fix scaling of layout bounds.

Change-Id: I9d8c8924900fed69030ee3e8d6decee89ca67820
ndroid/graphics/BitmapFactory.java
7a23b49a8ceb07d3fa12c45fd42cd16131fd746a 25-Apr-2012 Philip Milne <pmilne@google.com> Fixes for optical bounds feature.

1. Make the feature opt-in (ViewGroup::layoutMode defaults to CLIP_BOUNDS) without inheritance.
2. Rename COMPONENT_BOUNDS to CLIP_BOUNDS.
3. Rename LAYOUT_BOUNDS to OPTICAL_BOUNDS.
4. Complete GridLayout implementation.
5. Change the default_gap between components to 8dp, to align with the Style Guide.

Change-Id: I8d40dfc5f4ca469f6424eb3ff60d07bec56e3a9f
ndroid/graphics/drawable/NinePatchDrawable.java
a0c2eb27b408660b02fa248943166d6c7e447908 20-Apr-2012 Alex Sakhartchouk <alexst@google.com> Deprecate

Change-Id: Idad2c5ad4f8a30f8cc60d88318f2e1809866d309
ndroid/renderscript/Allocation.java
ndroid/renderscript/AllocationAdapter.java
ndroid/renderscript/BaseObj.java
ndroid/renderscript/Byte2.java
ndroid/renderscript/Byte3.java
ndroid/renderscript/Byte4.java
ndroid/renderscript/Double2.java
ndroid/renderscript/Double3.java
ndroid/renderscript/Double4.java
ndroid/renderscript/Element.java
ndroid/renderscript/FieldPacker.java
ndroid/renderscript/FileA3D.java
ndroid/renderscript/Float2.java
ndroid/renderscript/Float3.java
ndroid/renderscript/Float4.java
ndroid/renderscript/Font.java
ndroid/renderscript/Int2.java
ndroid/renderscript/Int3.java
ndroid/renderscript/Int4.java
ndroid/renderscript/Long2.java
ndroid/renderscript/Long3.java
ndroid/renderscript/Long4.java
ndroid/renderscript/Matrix2f.java
ndroid/renderscript/Matrix3f.java
ndroid/renderscript/Matrix4f.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/Path.java
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramFragmentFixedFunction.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/ProgramVertexFixedFunction.java
ndroid/renderscript/RSDriverException.java
ndroid/renderscript/RSIllegalArgumentException.java
ndroid/renderscript/RSInvalidStateException.java
ndroid/renderscript/RSRuntimeException.java
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RSTextureView.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/Sampler.java
ndroid/renderscript/Script.java
ndroid/renderscript/ScriptC.java
ndroid/renderscript/Short2.java
ndroid/renderscript/Short3.java
ndroid/renderscript/Short4.java
ndroid/renderscript/Type.java
bbd51f1e360b22eece1d74bd65c7e6a0b59dee59 19-Apr-2012 Philip Milne <pmilne@google.com> Share Insets instances between views that have the same background (Drawable)

Change-Id: I47d93ccca6f553b678d25966d10d7a0a97cfa5ea
ndroid/graphics/Insets.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/NinePatchDrawable.java
d1661dcc90cb3efcad75e3fda778f3592bfc5b04 16-Apr-2012 Jamie Gennis <jgennis@google.com> Merge "Unhide new SurfaceTexture & TextureView APIs"
4e1cb3b7942d3ca05918604358b4ef83815ce448 16-Apr-2012 Philip Milne <pmilne@google.com> Merge "Fix for bug 6110465."
33efb231cb92065c40c019319adae36abc413863 14-Apr-2012 Jamie Gennis <jgennis@google.com> Unhide new SurfaceTexture & TextureView APIs

This change unhides the new SurfaceTexture and TextureView APIs that were added
to allow transferring ownership of the SurfaceTexture from the UI framework to
the application.

Change-Id: Ic4b781d907a59e99ff1a5974009305c1f9aee36a
ndroid/graphics/SurfaceTexture.java
1557fd7809078e421f751efc7d2539b3efdc54b2 05-Apr-2012 Philip Milne <pmilne@google.com> Fix for bug 6110465.

Add layout bound metadata to 9-patch files and make layouts take them into account.

This CL contains a proposed API for dealing with layout bounds.

This solution exposes:

1. Class: Insets - for storing layout Insets (and later possibly padding).
2. Methods: View:(get/set)LayoutInsets() - for storing layoutBounds.
3. Methods: ViewGroup:(get/set)LayoutMode() - for controlling layoutMode.

It also iuncudes the changes to GridLayout to support layout bounds.

Change-Id: I60c836b6530b61c5abf37f93ee9c44aad73573f1
ndroid/graphics/Insets.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/NinePatchDrawable.java
2b4bfa5efec7df408b4db127961cfc9aca9e57cf 13-Apr-2012 Jamie Gennis <jgennis@google.com> SurfaceTexture: update API docs

This change updates the SurfaceTexture API docs and modifies the behavior of
the updateTexImage to produce an IllegalStateException when not attached to a
GLES context.

Change-Id: I5a0875927785108960985c567d571d5f7033256a
ndroid/graphics/SurfaceTexture.java
069c4f3f0c8190289d60296ec54fafa56abb4776 13-Apr-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Improve Paint.setTextLocale()"
029b6330380a21787647ed9faa9aa2d6ee93da82 13-Apr-2012 Fabrice Di Meglio <fdimeglio@google.com> Improve Paint.setTextLocale()

Change-Id: Iffc9f8816f48dbd431b3b430a7c48f8d646703f3
ndroid/graphics/Paint.java
ae9a5ca01f4a5385329bf2486f2040eeafefe7aa 13-Apr-2012 Eino-Ville Talvala <etalvala@google.com> Merge "Editing fixes to ImageFormat documentation."
62901af52a118c61579a81c84608c9f1118931a3 13-Apr-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Add Paint.setTextLocale()"
517825f1a9f14f92908bd7859b91b927c2eec6d9 07-Apr-2012 Fabrice Di Meglio <fdimeglio@google.com> Add Paint.setTextLocale()

- will be used for better shaping CJK and other goodies

Change-Id: If64945a337edd915f5ebb88f04b6fd18e92ca587
ndroid/graphics/Paint.java
e267f5f2b0f2059fac3b62e5cc09d46b65fdf200 13-Apr-2012 Stephen Hines <srhines@google.com> Merge "Add missing support for Element.FONT()."
3a2914132146f340511425d7f78540098606b512 12-Apr-2012 Stephen Hines <srhines@google.com> Add missing support for Element.FONT().

Change-Id: Id66676958cc41d934b7f01acd65916f6d777d355
ndroid/renderscript/Element.java
ndroid/renderscript/RenderScript.java
918e840628a0b40a95fd42618f604ea5a44aebae 11-Apr-2012 Alex Sakhartchouk <alexst@google.com> Unhiding J API's for Renderscript.

Change-Id: I8c2d43ccca94549bc6ca1a914106567ccc125503
ndroid/renderscript/Allocation.java
ndroid/renderscript/Element.java
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/ProgramVertexFixedFunction.java
ndroid/renderscript/Sampler.java
9184ec307be30719b2b7bfc3fb3e0a1365ccdf73 11-Apr-2012 Eino-Ville Talvala <etalvala@google.com> Editing fixes to ImageFormat documentation.

Change-Id: I74738a65abc3abbb49825b16f4efe3ac2eb6d28e
ndroid/graphics/ImageFormat.java
335a6625b6540ad21feaeae3a4f593f86e200019 06-Apr-2012 Jamie Gennis <jgennis@google.com> Merge changes Iac9cc917,I8eed4b0d

* changes:
TextureView: add setSurfaceTexture method
SurfaceTexture: add GL context attach & detach
17471d730f20ee785c9c48a99eb331a40550612b 06-Apr-2012 Romain Guy <romainguy@google.com> Fix javadoc

Change-Id: I41315ff2ff1b404de82264e6a56ee46032862a32
ndroid/graphics/Bitmap.java
c6d993077761fc737bbb0f4db44b961a4e7b6bbb 05-Apr-2012 Jamie Gennis <jgennis@google.com> SurfaceTexture: add GL context attach & detach

This change adds Java API support for detaching a SurfaceTexture from one GLES
context and then attaching it to a different one.

Change-Id: I8eed4b0d0e339c11598cb0408d9f4f2d99b3aa06
ndroid/graphics/SurfaceTexture.java
1da8f00a4cc3554b1501f60932e44b5ca56a5e7e 04-Apr-2012 Amith Yamasani <yamasani@google.com> Merge "Embed layout padding in nine patch images"
ec4a50428d5f26a22df3edaf7e5b08f41d5cb54b 04-Apr-2012 Amith Yamasani <yamasani@google.com> Embed layout padding in nine patch images

- Added a new custom PNG chunk that carries the layout padding ints.
- Extract the padding ticks from .9.png images and store in the chunk.
- Load the padding information at runtime into Bitmap and NinePatchDrawable.

- The new chunk is ordered first so that it doesn't cause a problem in older
versions of the platform.

Bug: 6087201

Change-Id: I5de46167a1d44b3ec21065b0c165e594b1dc8399
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
8c8c2400923bd5b0ab1f52adc4f2232dbf690d91 04-Apr-2012 Romain Guy <romainguy@google.com> Merge "Optimize FBOs composition"
e0aa84b7dc087e999e20055dcc04cb6a48d5bd62 04-Apr-2012 Romain Guy <romainguy@google.com> Optimize FBOs composition

Change-Id: Ifc8eada8922509373c0e4c3b2ed75b6f08d098de
ndroid/graphics/Canvas.java
e07694b24f7d12d72b084b6651356681ebd0efd6 04-Apr-2012 Jason Sams <jsams@google.com> Validate context when using RS objects.

BUG=6035422

Change-Id: I8586be0085b36767289e1f634111c0ff076cec3c
ndroid/renderscript/Allocation.java
ndroid/renderscript/AllocationAdapter.java
ndroid/renderscript/BaseObj.java
ndroid/renderscript/Element.java
ndroid/renderscript/FieldPacker.java
ndroid/renderscript/FileA3D.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/Path.java
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramFragmentFixedFunction.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/ProgramVertexFixedFunction.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Script.java
ndroid/renderscript/Type.java
c5f519c5ec57400f04f1d0bdc69f7bfddf47f8cb 30-Mar-2012 Jason Sams <jsams@google.com> Rename ioReceive and ioSend

First checkin of Allocation IO test

Change-Id: I26379e442796caab95a089dbb42b02192f4cc563
ndroid/renderscript/Allocation.java
fb9aa9f3ef11878caaf6fcfb5ea49ffb9f7abf33 29-Mar-2012 Jason Sams <jsams@google.com> Convert from SurfaceTexture to Surface

Change-Id: I2ad4307294d4144999ca0c12ac19849b188243fb
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
36c0f6465896c1ad2f5e4811c275c6aa9f8ae874 23-Mar-2012 Jason Sams <jsams@google.com> Add getSizeBytes and cleanup docs.

Change-Id: I854a41f50378590b58bfbb205906ed4bee440411
ndroid/renderscript/Allocation.java
03d2d00dc8ce40528d232fdf81eb0b05e92023a7 23-Mar-2012 Jason Sams <jsams@google.com> Cleanup Allocation docs and getter funcs.

Change-Id: Ic6fb92e0675d64016f0d471c1d9e5328101e4b36
ndroid/renderscript/Allocation.java
cbe55a1c93056cf2878007ebf823a0ac2ad168b1 23-Mar-2012 Jason Sams <jsams@google.com> Merge "Implement USAGE_IO_INPUT"
fe1d5ffd1b6c4977a9f301997d2ad90e5b049a3b 23-Mar-2012 Jason Sams <jsams@google.com> Implement USAGE_IO_INPUT



Change-Id: Idbf7bb21f5ab673ad77082c5c19921d2b276c04b
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
26e35fca60426ce375a4a0534dbc9964123c76ee 21-Mar-2012 Adam Powell <adamp@google.com> Fix LayerDrawable#mutate

Change-Id: I985b80141ffc96db969eaf36538df938cb093661
ndroid/graphics/drawable/LayerDrawable.java
7b2f8b8fb7064a1d3b6d942b978c30c24c9d7299 20-Mar-2012 Romain Guy <romainguy@google.com> Pre-scale bitmaps on the native heap

Change-Id: I9819b532b89a997ab775b31ffee46445f1d16e20
ndroid/graphics/BitmapFactory.java
caf813fe1ec10dda75cd752cb3ff80872ae7ac0b 16-Mar-2012 Romain Guy <romainguy@google.com> Remove unused private API

Change-Id: Iec9c2bc275fc7376f4e0b0b9c44059c56a9dd173
ndroid/graphics/BitmapFactory.java
a1cff5043d0fbd78fcf9c48e7658e56a5b0c2de3 21-Feb-2012 Chet Haase <chet@google.com> Handle view properties at the native level

Basic functionality of handling View properties (transforms,
left/right/top/bottom, and alpha) at the native DisplayList level.
This logic is disabled for now (via compile-time flags in View.java and
DisplayListRenderer.h) as we continue work on it (there is no advantage
to the new approach until we optimize invalidation and rendering paths
to use the new code path).

Change-Id: I370c8d21fbd291be415f55515ab8dced6f6d51a3
ndroid/graphics/Camera.java
46926698996d3857a650ed535024a88dbeaff1e1 12-Mar-2012 Romain Guy <romainguy@google.com> Don't allocate new typefaces when not needed.

The Typeface.create(Typeface, int) API can be used to create a new
typeface derived from an existing typeface. The implementation would
however create a new Typeface instance on every call, creating
unnecessary garbage in text-heavy applications. This changelist
adds a small cache of derived typefaces to avoid allocations whenever
possible.

Change-Id: Ib7290b3183e372aae12cf66033690e15cd4d0691
ndroid/graphics/Typeface.java
73ba0df14fedefe144808a2a43308811567875be 10-Mar-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Make Drawable RTL APIs public"
06e1ec6462763a2f12ba5fb1c1c826bf393bfacd 10-Mar-2012 Fabrice Di Meglio <fdimeglio@google.com> Make Drawable RTL APIs public

- also optimize imports

Change-Id: I2649a539a5784293d09179981a5d57e900219246
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/ScaleDrawable.java
3b577ddb1bca8b1c1682951fea69de24502bcf5d 09-Mar-2012 Amith Yamasani <yamasani@google.com> Fix a typo in RectF.equals

Change-Id: Idffbf9a324b68f38843049956d1d05d4a64d1345
ndroid/graphics/RectF.java
861d5ecc7cde0bf7f77ce31d5af2d56ee23b3aee 02-Mar-2012 Robert Ly <robertly@google.com> am b962b98b: am 67a15457: am e5e11fd6: Merge "docs: fixing bug 5942573" into ics-mr1

* commit 'b962b98bef33eba634aec41cf9d84527ce9db3bb':
docs: fixing bug 5942573
e5e11fd666d242b099466017c6d9bd23e6d2896d 02-Mar-2012 Robert Ly <robertly@google.com> Merge "docs: fixing bug 5942573" into ics-mr1
dea05e90108d7866bb41c7177cda52c842f7db74 02-Mar-2012 Robert Ly <robertly@google.com> am ca7d7541: am d70eaff4: am 941ff38d: Merge "fix bug 5942522" into ics-mr1

* commit 'ca7d7541c4cad188eb643113e3c3e91e63d21a5e':
fix bug 5942522
b73644a94f090f551e24e2e658756a7ff127dbb2 25-Feb-2012 Jason Sams <rjsams@android.com> Merge "Make compute work without an app context."
1a4e1f3efd077f3a61038aedab84dc84c9c44d19 25-Feb-2012 Jason Sams <rjsams@android.com> Make compute work without an app context.

Change-Id: I644b4711135d6f5d9866b6c2e5e6f6a5ceb1f3d4
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
93d083b6ad4e54032f4525125d750926e2433f87 25-Feb-2012 Jason Sams <rjsams@android.com> Merge "Do RS caching the same way HardwareRenderer does. Eliminates the need for an application context for caching."
a6f338ca5f0c8359d1952167858851dd025e47e2 25-Feb-2012 Jason Sams <rjsams@android.com> Do RS caching the same way HardwareRenderer does.
Eliminates the need for an application context for caching.

Change-Id: I4374738083b5eb4ce983d2cb5409428e3668c423
ndroid/renderscript/RenderScript.java
ndroid/renderscript/ScriptC.java
e9d4c71f47f74ee9a4a490f62769ad010a17d19b 24-Feb-2012 Mathias Agopian <mathias@google.com> deprecate L_8, LA_88 and RGB_332 in sdk

re-add support for pixelformats L_8, LA_88 and RGB_332 in libui
for backward compatibility.

This may or may not fix 6058926

Bug: 6049685
Change-Id: Ic1b8b4cc994522f7fe664da64c0ef76b98bc6d53
ndroid/graphics/PixelFormat.java
a23c4ebe04e97a4f5c4e25fa6c9f37c6244ebfe4 23-Feb-2012 Jason Sams <rjsams@android.com> Merge "start new headers"
cfef12374c15b11b3c2a1041582be9728152e15d 23-Feb-2012 Romain Guy <romainguy@google.com> Perform early intersect to avoid unnecessary draws

Change-Id: I48d61c4488e622f93733d8e53a50c93e6a20166d
ndroid/graphics/Rect.java
f11ffc1178645762b74f945b6c5ee068dc6000d3 22-Feb-2012 Robert Ly <robertly@google.com> docs: fixing bug 5942573

Change-Id: I2479dc8916f98a8bf7dbec95dc29cbd871c51be5
ndroid/renderscript/Mesh.java
9366ce81dbaa1c954911ef1c8d5791bb4a69d89c 22-Feb-2012 Robert Ly <robertly@google.com> fix bug 5942522

Change-Id: Ice16e63b42d5e8c89994d0844f62adaefc8a92a1
ndroid/graphics/drawable/AnimationDrawable.java
f70b0fc880edb7c47d5bcc97edbc125b575bc90d 23-Feb-2012 Jason Sams <rjsams@android.com> start new headers

Change-Id: I950e5db76ecd3afbc7ea2b3ec792e4cb242f57bf

cpp
ndroid/renderscript/Allocation.java
791c0d188a5f06739e689df49585f87939be3bd8 16-Feb-2012 Alex Sakhartchouk <alexst@google.com> Merge "Piping texture names through shader builder. Fixing uint size_t mismatch."
3beb60e67a23b8a7381a7ae16338f793a9ee256a 15-Feb-2012 Stephen Hines <srhines@google.com> Vectors of non-primitive types are not allowed.

BUG=6016669

Change-Id: Ibab2dfc5ce3d9ceb5513e6b5ffc53d5df8b7c6e7
ndroid/renderscript/Element.java
2123b46ba85adb2cfb78068f8368e830640118d3 16-Feb-2012 Alex Sakhartchouk <alexst@google.com> Piping texture names through shader builder.
Fixing uint size_t mismatch.

Change-Id: Ia7c8bd9f829deaa50e1cc381ccd50f29676bbdfb
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramFragmentFixedFunction.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/ProgramVertexFixedFunction.java
ndroid/renderscript/RenderScript.java
f6fb3ab8c02a96391340b1f21a9eb6800171c141 16-Feb-2012 Stephen Hines <srhines@google.com> Merge "Update Element.isCompatible() to work with NONE."
c107b10354566f635fb81467f4537d44f04abc2e 15-Feb-2012 Jason Sams <rjsams@android.com> Merge "Beging IO stream out from allocation to surface texture."
163766cbe798baf8e86eb8201bc6c3def931d59a 15-Feb-2012 Jason Sams <rjsams@android.com> Beging IO stream out from allocation to surface texture.

Change-Id: I4d6b7f7740a896d39b811d6fe7532bb00db62373
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
209481137147e64c72f1d5737085b17736931bda 15-Feb-2012 Stephen Hines <srhines@google.com> Update Element.isCompatible() to work with NONE.

In the past, we used a null reference to signify a user-created Element. The
use of DataType.NONE for user-created Elements thus required an update to our
Element compatibility check.

Change-Id: I3293a645eff85c9040487c22f3a3240862f74350
ndroid/renderscript/Element.java
79952ee29a8fc67b6d76a8db747bb72dd7d6ecd1 15-Feb-2012 Romain Guy <romainguy@google.com> Merge "Clarify documentation of Bitmap.createScaledBitmap/createBitmap Bug #6015472"
f12f6f058f169ead83a546a1c3a51e49452a30b3 15-Feb-2012 Romain Guy <romainguy@google.com> Clarify documentation of Bitmap.createScaledBitmap/createBitmap
Bug #6015472

Change-Id: I6cf9efc2f695928d54a0dfba08b085559574ae14
ndroid/graphics/Bitmap.java
0599d6ede37304bf8f9ecd90dadea7707c160cd8 14-Feb-2012 Stephen Hines <srhines@google.com> Merge "Fix typos/spacing with new APIs."
9069ee88cb62a62395e895eb6b3333a1dfcead73 14-Feb-2012 Stephen Hines <srhines@google.com> Fix typos/spacing with new APIs.

Change-Id: I26b772e8e29b12381042fb50c6dfa9df012b3f63
ndroid/renderscript/Allocation.java
cb66aec0bdd3248c526c3a1113936576a30286cb 10-Feb-2012 Jason Sams <rjsams@android.com> Merge "Start implementing SurfaceTexture streaming into RS allocations."
532efd3ce261f9901bfa51d37377069fe6e8ccdf 10-Feb-2012 Jason Sams <rjsams@android.com> Start implementing SurfaceTexture streaming into RS allocations.

Change-Id: I561fbb63c63371ea59047c07fb2d68c21d16e76b

Conflicts:

libs/rs/rsAllocation.h
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
cc3669ab9ce1ba6862c387839eca6f5fcbd015a1 08-Feb-2012 Justin Ho <justinho@google.com> am fe07b9a2: Merge "Tentative fix for mysteriously recycled bitmap"

* commit 'fe07b9a2ab54305de553332d0ab278fdf7158ae4':
Tentative fix for mysteriously recycled bitmap
4e525a6e5ac7499f79f306e0a418f6f6b72c765d 08-Feb-2012 Romain Guy <romainguy@google.com> Tentative fix for mysteriously recycled bitmap

This code should not be triggered with scale == 1.0f because of the
density comparisons above though.

Change-Id: I9e39e3769a3b6550c97df3b213457947ec1f554b
ndroid/graphics/BitmapFactory.java
0b1ad704f4d66219e4b0e1e87947b4d004d3414f 04-Feb-2012 Stephen Hines <srhines@google.com> am e05bc81c: Merge "We should not throw for non-fatal errors."

* commit 'e05bc81c19838801b91de2642dc275a16dd7cf71':
We should not throw for non-fatal errors.
be74bdd2349095f203ae0fddcc4816bfbd56bc5d 04-Feb-2012 Stephen Hines <srhines@google.com> We should not throw for non-fatal errors.

BUG=5955072

Change-Id: I731242805957a057aaff1ba96a58c69d6e474a59
ndroid/renderscript/RenderScript.java
0a29fe1be19df6d96c1e5df0f1b551a6b14dc60c 03-Feb-2012 Stephen Hines <srhines@google.com> am cc2daede: Merge "Properly recover from failed compilation."

* commit 'cc2daede56257f0f1f490a1aebf5b9b898d9816a':
Properly recover from failed compilation.
cc2daede56257f0f1f490a1aebf5b9b898d9816a 03-Feb-2012 Stephen Hines <srhines@google.com> Merge "Properly recover from failed compilation."
98bea4a3ec6dfd0f5c6ec612b57b122f16f49b7f 02-Feb-2012 Alex Sakhartchouk <alexst@google.com> am 7042613c: Merge "Fix an incorrect assert that doesn\'t account for element array size."

* commit '7042613c653fd0de253f2f659901318902fa4584':
Fix an incorrect assert that doesn't account for element array size.
862dadb7a7aa290e382ca02a376776e0e27987a1 02-Feb-2012 Stephen Hines <srhines@google.com> Properly recover from failed compilation.

BUG=5955072

We used to call delete, which did not update the Context's view of the world,
leading to potential segfaults on Context teardown. This change also enables
exceptions to be thrown when runtime errors are encountered.

Change-Id: If63578efff2d7dd03639da1049c1a5ebc69fde35
ndroid/renderscript/RenderScript.java
bf3c3f2ab1067b647038170cb201cdd1a9a1c6d2 02-Feb-2012 Alex Sakhartchouk <alexst@google.com> Fix an incorrect assert that doesn't account for element array size.

Change-Id: Ibcb5c55d91967603391a1721137d010a85025990
ndroid/renderscript/Allocation.java
6019853bc7b9b1f607544212f982472f4e5ed3f4 31-Jan-2012 Romain Guy <romainguy@google.com> am a403a2e0: Merge "Add GradientDrawable.setColors(int[])"

* commit 'a403a2e0f0d55a709821a6310de849176dc9b426':
Add GradientDrawable.setColors(int[])
8bd9698b66d2e1219931ca1be5f81efaba3ed95a 31-Jan-2012 Romain Guy <romainguy@google.com> Add GradientDrawable.setColors(int[])

This change also updates the documentation to warn the user about which properties
require a call to mutate().

Change-Id: I84717068bf026669e3eef1ae92db665a964fe08a
ndroid/graphics/LinearGradient.java
ndroid/graphics/drawable/GradientDrawable.java
99022a322f4173b4ecde2326a72fcd720293df51 31-Jan-2012 Romain Guy <romainguy@google.com> am b74b84f1: Merge "Proper equals/hashCode impls in Rect and RectF"

* commit 'b74b84f195e7620415784323c7160afadfcbe9c5':
Proper equals/hashCode impls in Rect and RectF
74d7ca133a6db82abba5c0abe443fb001928e72c 31-Jan-2012 Romain Guy <romainguy@google.com> Proper equals/hashCode impls in Rect and RectF

Change-Id: Ief52d84f134018af4dfd19674de12736c056e3f8
ndroid/graphics/Rect.java
ndroid/graphics/RectF.java
68a1df6541a133e2fc5b5f23226fa30d2016ff52 24-Jan-2012 Romain Guy <romainguy@google.com> am 1a54368b: Merge "Add full support for Canvas.setDrawFilter()"

* commit '1a54368b24a8cb88ee56ee746eae45171a43b89e':
Add full support for Canvas.setDrawFilter()
5ff9df658230d49e42c43586997a02d8e4dd417e 24-Jan-2012 Romain Guy <romainguy@google.com> Add full support for Canvas.setDrawFilter()

Change-Id: I0ad35d0603c4eeda469014803be14c1dcdde918c
ndroid/graphics/PaintFlagsDrawFilter.java
767a04d89692813da15cda7f2d3208ca80a945cd 24-Jan-2012 Romain Guy <romainguy@google.com> am e575005f: Merge "Update hardware acceleration doc"

* commit 'e575005f7c7a2ec26662862631ca1d0d1959d6bc':
Update hardware acceleration doc
36d7549181af397cfaf879f46e407e762e0e8cba 24-Jan-2012 Romain Guy <romainguy@google.com> Update hardware acceleration doc

Change-Id: I3bed77b3c4e1eff96fa462e4849f25f38784c415
ndroid/graphics/AvoidXfermode.java
ndroid/graphics/PixelXorXfermode.java
86fcb90f3b126ec8fad178e7fc38c62461fba454 20-Jan-2012 Romain Guy <romainguy@google.com> am 22d41843: Fix the build, for real

* commit '22d418437e44587cb0fba4353515719453269189':
Fix the build, for real
22d418437e44587cb0fba4353515719453269189 20-Jan-2012 Romain Guy <romainguy@google.com> Fix the build, for real

Change-Id: I6263f7e5e3ae2f7efe045f8b464c0ed1b87fc793
ndroid/graphics/DrawFilter.java
dec35b81b7f6dfcd331fadea03cdd9a5ca44d15e 20-Jan-2012 Romain Guy <romainguy@google.com> am 90bd1873: Merge "Fix build"

* commit '90bd18737a5ce16708003363683744cfd0480d83':
Fix build
65447287cb4112cf74483c87be70bcd00b622e2d 20-Jan-2012 Romain Guy <romainguy@google.com> Fix build

Change-Id: I0e0f6a613cdad3ec075da9b84e3532dd492f0162
ndroid/graphics/Canvas.java
3e77e8e59cb2d330b3e2e2da9a516a448ad5f5d9 20-Jan-2012 Romain Guy <romainguy@google.com> am d2f0dcd1: Merge "Remove unused code"

* commit 'd2f0dcd182fbc0423d206919e81f3845fb9b8155':
Remove unused code
68fc1dfce050f1406f751e71cadd1b9fdb0f825c 20-Jan-2012 Romain Guy <romainguy@google.com> Remove unused code

Change-Id: Ife0a43f3cfe64a1e74401b10bf74d37cbeefb5af
ndroid/graphics/Paint.java
4adbee3784feb8a2ea79f17a298ee924ba34aa5f 20-Jan-2012 Romain Guy <romainguy@google.com> am bad12166: Merge "Deprecate unused APIs"

* commit 'bad12166190a7e8087eb5db0ae8df9a4e5843fde':
Deprecate unused APIs
f9d9c065ed75f1196316a9a31f92309f602cef76 20-Jan-2012 Romain Guy <romainguy@google.com> Deprecate unused APIs

Change-Id: I0107e246b632dda96b8b025217936954f1f46283
ndroid/graphics/Canvas.java
ndroid/graphics/Paint.java
ndroid/graphics/Picture.java
205c2c5fb14d8415c59762b2f71385f99ab11b4b 19-Jan-2012 Romain Guy <romainguy@google.com> am e7bdf2d9: Merge "Don\'t crash on Canvas.drawPicture()"

* commit 'e7bdf2d9d0107afadddb6498331cd21be260d23c':
Don't crash on Canvas.drawPicture()
84fce187b0ae79adc5b4e64c26f72c8ed59e9703 19-Jan-2012 Romain Guy <romainguy@google.com> Don't crash on Canvas.drawPicture()

Implementation yet to come but prevent app crashes.

Change-Id: I81d6851ebf776a98e13c606bab272a03aec406ee
ndroid/graphics/Picture.java
c32d232c91bea29de7e13419be2f3c918564b281 17-Jan-2012 Romain Guy <romainguy@google.com> am 11d06a73: Merge "Fix text encoding when drawing with drawPosText in software"

* commit '11d06a73df371be0b11d5cf586e24601d796c048':
Fix text encoding when drawing with drawPosText in software
62b6eaa7f3a8111311a7ee097f278eb55865a499 17-Jan-2012 Romain Guy <romainguy@google.com> Fix text encoding when drawing with drawPosText in software

Change-Id: I0cd8ee526189c38c50953a1a08b50e0b31c55d8c
ndroid/graphics/Canvas.java
615e7cee03d1a53072b0369fa9f247811ac56845 13-Jan-2012 Jason Sams <jsams@google.com> Start implementing SurfaceTexture streaming into RS allocations.

Change-Id: I561fbb63c63371ea59047c07fb2d68c21d16e76b
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
0136a90de90c54882d91b52bb11785f142b7e29e 10-Jan-2012 Romain Guy <romainguy@google.com> am 10b06842: Prevent the GC from destroying the underlying native object

* commit '10b0684296a1fbdc6966f54f77e821a9ce4852ad':
Prevent the GC from destroying the underlying native object
10b0684296a1fbdc6966f54f77e821a9ce4852ad 10-Jan-2012 Romain Guy <romainguy@google.com> Prevent the GC from destroying the underlying native object

Change-Id: I9aaba5d82828af83dad8e6a270d2ab8c92b42be5
ndroid/graphics/PathMeasure.java
d5a62bb802887134ed652b01fa6a3159a5c6ad0e 06-Jan-2012 Alex Sakhartchouk <alexst@google.com> Adding getters to rs program obejcts.

Change-Id: Iff8ccc1835109d303201d6a1adb6e5cbde8ba634
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramVertex.java
a041adcb85838ed5dedd811524a1831f964f0fac 27-Dec-2011 Alex Sakhartchouk <alexst@google.com> Merge "Missing getter and additional tests." into graphics-dev
60deb2d9ba186a89d5d74e45f0e928ebaac6a074 27-Dec-2011 Alex Sakhartchouk <alexst@google.com> Merge "Adding tests for element/mesh getters. Fixing bugs found by tests." into graphics-dev
fc8d7a960ac11eaa9dda07b8166ec935513fcceb 23-Dec-2011 Joe Fernandez <joefernandez@google.com> am 2b072677: am 201469f5: am bb7f590a: Merge "docs: Add developer guide cross-references, Project ACRE, round 4" into ics-mr1

* commit '2b072677538de979961b5bf527109fdab1713731':
docs: Add developer guide cross-references, Project ACRE, round 4
2b072677538de979961b5bf527109fdab1713731 23-Dec-2011 Joe Fernandez <joefernandez@google.com> am 201469f5: am bb7f590a: Merge "docs: Add developer guide cross-references, Project ACRE, round 4" into ics-mr1

* commit '201469f54522436be79d4d6665721049bfc74320':
docs: Add developer guide cross-references, Project ACRE, round 4
3aef8e1d1b2f0b87d470bcccf37ba4ebb6560c45 20-Dec-2011 Joe Fernandez <joefernandez@google.com> docs: Add developer guide cross-references, Project ACRE, round 4

Change-Id: I1b43414aaec8ea217b39a0d780c80a25409d0991
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/renderscript/Allocation.java
ndroid/renderscript/Element.java
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/Type.java
ndroid/renderscript/package.html
fd79e02e0fec8620da7affaadcf275cf0518241a 22-Dec-2011 Alex Sakhartchouk <alexst@google.com> Missing getter and additional tests.

Change-Id: I057dd0a29d2cad40d0a0627b4355faeb82bbc229
ndroid/renderscript/Element.java
3aac0abe7965ce9e2078c7d5796805d83e39df7c 22-Dec-2011 Alex Sakhartchouk <alexst@google.com> Adding tests for element/mesh getters.
Fixing bugs found by tests.

Change-Id: I6592a3b65f16b21255e7788fe8ee8aaafe268638
ndroid/renderscript/Element.java
35afa3d1c3bcd1f0d81d2f0a64a49ef473d2f028 20-Dec-2011 Chet Haase <chet@google.com> am f3bd2f7a: Merge "Fix AnimationDrawable double-start bug"

* commit 'f3bd2f7a3f2eadd5126b1a55ca45bdbffe80ceeb':
Fix AnimationDrawable double-start bug
f7917e656b94ec2adfc3fa826e093665d39748d2 20-Dec-2011 Chet Haase <chet@google.com> Fix AnimationDrawable double-start bug

AnimationDrawable.setVisible(true, true) was not correctly recording
the fact that it had started the animation, so it was possible to call
start(0 immediately afterwards and have two animations running on the
drawable in parallel, resulting in incorrect frame ordering.

Issue #5782773

Change-Id: Ifc328f755a51d10ab76b84006d1999df03d2dca1
ndroid/graphics/drawable/AnimationDrawable.java
f5d8ac7cc35747ef7285ccc196f616b96229def9 16-Dec-2011 Alex Sakhartchouk <alexst@google.com> Element getters.

Change-Id: Ibe570464557eeecad108b4d3cb8f02fad13943de
ndroid/renderscript/Element.java
857d0c7017da763a420e825fffa2f260eb982c97 24-Nov-2011 Jason Sams <jsams@google.com> Private API to support MFF transition.

Change-Id: I17cc9dc46eb37e4397428ba64305b0fd8ed3ae81
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
e679e2ebcfb85a0d26507f7afe7547c986858bc2 17-Nov-2011 Alex Sakhartchouk <alexst@google.com> am e693fa3e: am a962ef29: am 4c593010: Merge "Followup to a bug fix. Addtion of synchronized to the methods triggers an API change. Per council advice, pushing synch block into the function body." into ics-mr1

* commit 'e693fa3e184f7a49f9bf912a0dac057fb339b8a4':
Followup to a bug fix. Addtion of synchronized to the methods triggers an API change. Per council advice, pushing synch block into the function body.
e693fa3e184f7a49f9bf912a0dac057fb339b8a4 17-Nov-2011 Alex Sakhartchouk <alexst@google.com> am a962ef29: am 4c593010: Merge "Followup to a bug fix. Addtion of synchronized to the methods triggers an API change. Per council advice, pushing synch block into the function body." into ics-mr1

* commit 'a962ef2993099e6c5db3809a7e829e43c8cf084a':
Followup to a bug fix. Addtion of synchronized to the methods triggers an API change. Per council advice, pushing synch block into the function body.
af9dcfe641486f6bafbd44d330f6db74c06ea1dc 16-Nov-2011 Alex Sakhartchouk <alexst@google.com> am 5a471818: Merge "Expand RS vector3 types to vector4."

* commit '5a4718183340a108b55eba7bf755b4432153caa1':
Expand RS vector3 types to vector4.
5a4718183340a108b55eba7bf755b4432153caa1 16-Nov-2011 Alex Sakhartchouk <alexst@google.com> Merge "Expand RS vector3 types to vector4."
e60149d2277da53c4a681b7f3971cf13cd4b012b 16-Nov-2011 Alex Sakhartchouk <alexst@google.com> Expand RS vector3 types to vector4.

BUG=5609007

The underlying LLVM implementation for vector3 types does this implicitly. If
RS does not adjust its implementation, we will always be misaligned for any
subsequent data after a vector3 type. We previously inserted padding into the
reflected layers from llvm-rs-cc (hence the skip padding part of this change).
We can safely ignore the padding now that the Java/native code is updated to
use the expanded size. The compiler will also need modification to ensure that
we don't mistakenly skip over any end-of-struct padding.

Fixing the 3 component vector padding problem.

Change-Id: If68af42287deb8f4b28addcd19a9fa314656be44
ndroid/renderscript/Element.java
ndroid/renderscript/Mesh.java
38da5086a65e8065e85bbca3638da752dba1dbe7 15-Nov-2011 Alex Sakhartchouk <alexst@google.com> Followup to a bug fix.
Addtion of synchronized to the methods triggers an API change.
Per council advice, pushing synch block into the function body.

Change-Id: Iaa395d9720bce499259ab750fe97149715e9f271
ndroid/renderscript/RSSurfaceView.java
e13c5c1777a6c0403519e146c9635e6574c36831 15-Nov-2011 Mathias Agopian <mathias@google.com> am d8fa1ad4: am 738d8cae: am c93a151f: Merge "Define, document, and test the behavior of very large SurfaceTextures" into ics-mr1

* commit 'd8fa1ad4523b6c04cab663ff4b65181fc00594d9':
Define, document, and test the behavior of very large SurfaceTextures
8ee964d10e0411e81b593f8d6ac9684dcd679eb1 15-Nov-2011 Alex Sakhartchouk <alexst@google.com> am b14d771c: am f579bb92: am cde433c5: Merge "Fixing a race condition in RSSurfaceView. Bug 5601083 When destroy is called shortly after creation, RS tries to set a surface on a partially destroyed context." into ics-mr1

* commit 'b14d771cf07479e3186a167a219fb2d42d8d4d30':
Fixing a race condition in RSSurfaceView. Bug 5601083 When destroy is called shortly after creation, RS tries to set a surface on a partially destroyed context.
c93a151fde7d616c22b86ae458b3d015e3820d5e 14-Nov-2011 Mathias Agopian <mathias@google.com> Merge "Define, document, and test the behavior of very large SurfaceTextures" into ics-mr1
cde433c5f75fd4ac2ab31e9fc34654750d1e83f8 14-Nov-2011 Alex Sakhartchouk <alexst@google.com> Merge "Fixing a race condition in RSSurfaceView. Bug 5601083 When destroy is called shortly after creation, RS tries to set a surface on a partially destroyed context." into ics-mr1
b89d88f531ee39927f8f554baaae5ecc9101ba9d 10-Nov-2011 Mathias Agopian <mathias@google.com> Define, document, and test the behavior of very large SurfaceTextures

updateTexImage() now throws a runtime exception when its native
counterpart fails

Bug: 5506633

Change-Id: I151a6f685d465966e7df4df624412ab2da62e95f
ndroid/graphics/SurfaceTexture.java
0528bcc7851b4ee1d5e3e36f5d26f7ae61cb8b53 12-Nov-2011 Christopher Tate <ctate@google.com> am 951aa9d8: am 9acae658: am 847fbbea: Merge "Localized optimizations in views and bitmaps" into ics-mr1

* commit '951aa9d8ea71082f4ae4c46c41616e79619401fd':
Localized optimizations in views and bitmaps
1373a8eb581fe3c8e9a036e69042015f98a7e346 11-Nov-2011 Christopher Tate <ctate@google.com> Localized optimizations in views and bitmaps

* Don't call context.getResources() redundantly when unnecessary;
similarly for Resources.getCompatibilityInfo()

* During bitmap creation, don't bother clearing to 0: it's unnecessary
because now that the raw bits are stored in a VM-side byte array, it
was cleared at initialization time. Also, don't use the sanity-
checking public entry point to erase to a color, because we know
that we're by definition in a "legal" path to erase to the initial
contents and don't need to incur the overhead of the (inappropriate)
sanity checking.

Change-Id: Idaca4d64fdecefd5d51337646ead32e1db510e02
ndroid/graphics/Bitmap.java
93c47f10285df8311601fa94ab3c627b0d0cd4be 11-Nov-2011 Alex Sakhartchouk <alexst@google.com> Fixing a race condition in RSSurfaceView. Bug 5601083
When destroy is called shortly after creation, RS tries to set a surface on a partially destroyed context.

Change-Id: I7a382a701efde3264e5cd9b9a9b428ade5eb4a9a
ndroid/renderscript/RSSurfaceView.java
18cd212f192118b098a773405e67ea7bee538e34 11-Nov-2011 Jason Sams <rjsams@android.com> Merge "Path rendering" into graphics-dev
f15ed0124ea7f7f87e4188a1dd15cc4917a62ee9 31-Oct-2011 Jason Sams <rjsams@android.com> Path rendering

Change-Id: I5379a676c9ec6a9b25f21bc1e050053f27e411dd
ndroid/renderscript/Path.java
ndroid/renderscript/RenderScript.java
d211b4882a662409b85a1f90c71e28faa9c54464 09-Nov-2011 Jamie Gennis <jgennis@google.com> Merge "SurfaceTexture: unhide setDefaultBufferSize" into ics-mr1
2aafe742e5d2d63d77c49df032ec580966661597 04-Nov-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: unhide setDefaultBufferSize

Change-Id: Ia4d3e1829339acaecaa7f10023945a432c581d72
ndroid/graphics/SurfaceTexture.java
68d91733c873d80eb107b6e7a46228d9397b373e 03-Nov-2011 Dianne Hackborn <hackbod@google.com> Some optimizations for view inflation.

Change-Id: I8e5e6dda4d4c9776961d4a070549d5753588e582
ndroid/graphics/drawable/NinePatchDrawable.java
74b2b9547329a0b05e0bd5701057696007b854bb 29-Oct-2011 Joe Fernandez <joefernandez@google.com> am 09848bc8: Merge "docs: add developer guide cross references, Project ACRE, round 3" into ics-mr0

* commit '09848bc89de999416e2de82a7693b2deec6bf802':
docs: add developer guide cross references, Project ACRE, round 3
61fd1e8d8c3ccf2d6b7d4af1c19e8f0988d5a1ec 26-Oct-2011 Joe Fernandez <joefernandez@google.com> docs: add developer guide cross references, Project ACRE, round 3

Change-Id: I6125315ecdf0f78dd947c514a9944729d723e95d
ndroid/graphics/Canvas.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
7d5f5e7c8943e043a422ad51c85d4e1684c37e28 18-Oct-2011 Alex Sakhartchouk <alexst@google.com> adding getters to Sampler ProgramRaster, ProgramStore, Element.
Element adds ability to get subelement info. Tests for new stuff.

Change-Id: I4a77b91e4e0e73c95ab28b42c50732a64e71e7b9
ndroid/renderscript/Element.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Sampler.java
098ffcd521cd272ee3a63174759cceeda618d2ef 11-Oct-2011 Romain Guy <romainguy@google.com> Don't call saveLayer() when it's not required
Bug #5435653

saveLayer() can be extremely expensive on some GPU architectures. Avoiding
this call greatly improve the rendering performance of drawables with
strok + fill.

Change-Id: Ib414174ba05d5bad56d942b8e67ab784e7d60b9e
ndroid/graphics/drawable/GradientDrawable.java
85397d8dcbcbe098c805b90fe7779206125e2399 07-Oct-2011 Jason Sams <rjsams@android.com> Simplify the way we get the version info.
Reduces startup overhead.

Change-Id: Id9556dfe553c23bf3f870a524ca5e687bb9fe777
ndroid/renderscript/RenderScript.java
94aaed38467c71a6c804f0e18b41346a4013c25b 23-Sep-2011 Jason Sams <rjsams@android.com> Remove unused fields in ProgramRaster

Change-Id: I70c9d47674c956ec850c178c7aaa9a5e3dd9dffb
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/RenderScript.java
2f2eea704ef82878c7aa909a1f7dbdf19851b0fb 13-Sep-2011 Chet Haase <chet@google.com> Merge "Fix wobbly spinners"
e5cdb6c8394e321266fb8940fdd0c97b2f87b2f3 12-Sep-2011 Chet Haase <chet@google.com> Fix wobbly spinners

Some progress bars use AnimatedRotateDrawable, which suffered
from the same bug as AnimationDrawable (until a recent fix). The
code would not account for the left/top offset of the drawable in its view,
so it would rotate the drawable around the wrong center, causing it to
wobble and not get erased properly.

Change-Id: I3f34f797e595973d9eb1d952d92026c769c7ec0a
ndroid/graphics/drawable/AnimatedRotateDrawable.java
f68832bcc1069c70ef27248da6d82e9f9056955a 12-Sep-2011 Romain Guy <romainguy@google.com> Turn hinting back on

The difference is not obvious when compared to no hinting, and turning
off hinting has undesirable side effects because of the lack of sub-
pixel positioning when rendering text.

Change-Id: If2162ba079f68f33b33aed444e80036fdbf015bb
ndroid/graphics/Paint.java
ddb715b238c098d8b561a44b9687f0bc67a4c141 09-Sep-2011 Dianne Hackborn <hackbod@google.com> Pull animation attributes out of main view class.

These are now in a separate class that is only allocated when
needed by the view.

Change-Id: I9601bb43b3b4bfdabd982b02f7cd7534437b8ac3
ndroid/graphics/Matrix.java
2273b1e4eae27fa60b0b90d16a1891b4526c9b9c 08-Sep-2011 Fabrice Di Meglio <fdimeglio@google.com> Hide RTL related APIs

Change-Id: Idda458fcdebe7afeb9b95e328e552fcbc7939157
ndroid/graphics/drawable/Drawable.java
a1b92c5e8b750d8f5b2dc5ca7e8b4edc97de5575 03-Sep-2011 Adam Powell <adamp@google.com> Fix bug 5231904 - Fix wobbly progress spinners

Make ProgressBar maintain aspect ratio on indeterminate progress drawables.

Make RotateDrawable tolerate left/top bounds != 0.

Change-Id: Iee03030caa98f72a8745f1ae3fb0de108ff663d4
ndroid/graphics/drawable/RotateDrawable.java
41bff38d3060dbcb55133cedaf5d962c3082efc2 30-Aug-2011 Chet Haase <chet@google.com> Tweaks to NotificationPanel animation

The animation that runs when the NotificationPanel appears
used to start, then pause for a long time as the window/surface/layer
was created, then by the time it started to be visible, the animation
was over. This new approach delays starting the animation until the
layer has been drawn, so the animation can actually run a few frames after
that before finishing.

Change-Id: I998f01fd48cb762178021ad99e2b919b58a1ef3f
ndroid/graphics/drawable/ColorDrawable.java
8b5a8b5bed98bd1c048864abcf39dfc3875518cb 01-Sep-2011 Fabrice Di Meglio <fdimeglio@google.com> Merge "Code cleaning"
7d892dcc8a18376f499527a160c6c0ed664e22b1 01-Sep-2011 Fabrice Di Meglio <fdimeglio@google.com> Code cleaning

- remove unused constant
- fix spelling

Change-Id: I0053129b33c2ee472db84e14d4b2ace5d97d20a8
ndroid/graphics/Paint.java
d040edbae968d826aa2c82d382345811a45c646b 31-Aug-2011 Dianne Hackborn <hackbod@google.com> Use floating point window positions.

Gets rid of gapps between windows during animations.

Change-Id: I17d2ef0af214008f0eabd7eb19268f145fe83b39
ndroid/graphics/RectF.java
e7197a996ff9c4a51d32dd2f918aab97d2b191ef 31-Aug-2011 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #5233207 android.graphics.cts.PaintTest#testBreakText fails on IRK56F trygon-userdebug"
0d32b317c2d1cacfa5acd34253cc626d6a776ec0 31-Aug-2011 Jeff Sharkey <jsharkey@android.com> Accessors for frame count and duration.

Bug: 5233703
Change-Id: If6a758540248dc9bff56b64add04984ebd7b6833
ndroid/graphics/drawable/AnimatedRotateDrawable.java
8fa6503feb1954d8c11a0591a567e6acedf7abe9 30-Aug-2011 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #5233207 android.graphics.cts.PaintTest#testBreakText fails on IRK56F trygon-userdebug

- Paint.breakText() API was regressing on the argument validation: a count < 0 is a valid one

Change-Id: I6d09294ee9f21901ba00017ce0d73f757fc7b147
ndroid/graphics/Paint.java
bb66c21f01b42f533878613f57d5894817c32c93 28-Aug-2011 Jeff Sharkey <jsharkey@android.com> Make Paint.set() copy shadow config.

Also unify all Java variable copying into single method.

Change-Id: I8fefa615f6f164ae5662913d612b388b46890089
ndroid/graphics/Paint.java
554366d158a0ec330a339f4343fb0a3164257f1e 24-Aug-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: disable sync-mode SurfaceTextures

This change removes the ability to create a SurfaceTexture that is
capable of operating in synchronous-mode from the public APIs.

Bug: 5167959
Change-Id: I09995832bb9a5f5063a67ddc3e0e1ab124d4e893
ndroid/graphics/SurfaceTexture.java
fc8fa638617efb5695a1f89ea75375faebbe2a40 18-Aug-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5128639: SystemUI grows by 10MB after taking a screenshot

We now do the screenshot in a separate process.

Also change the recents panel to not use hardware acceleration
on lower-end devices. And improve how it gets shown to not
load all data up-front which results in a long delay when you have
lots of recents.

Change-Id: Ia309a90f9939e5405758621b3f7114597bd0c02a
ndroid/graphics/drawable/LayerDrawable.java
f43fa5746ee5b81a6e386d36594094d079ac8160 13-Aug-2011 Dianne Hackborn <hackbod@google.com> Turn off hinting by default for higher density displays.

Also adds an API for apps to control whether hinting is used.

Change-Id: I1a06b06255fbb8d0f02a8ce48c2cd60019088ed3
ndroid/graphics/Paint.java
1213697980d58d4285cc77a5dd80a453f008a077 12-Aug-2011 Justin Ho <justinho@google.com> Merge "Replacing sans serif system font with Roboto"
1ee60119c4fa51ebfa781cf5fdc33f192e8551b8 26-Jul-2011 Ted Bonkenburg <tedbo@google.com> Remove ParcelSurfaceTexture and update MediaPlayer

This removes the ParcelSurfaceTexture class since that functionality has been
folded into Surface.java. The change also updates the MediaPlayer to get rid
of setParcelSurfaceTexture() and modifies setTexture() to use the new Surface
functionality in order to simplify the code.

Change-Id: Iafa75ea3188263928128325d8a726786971b4de4
ndroid/graphics/ParcelSurfaceTexture.aidl
ndroid/graphics/ParcelSurfaceTexture.java
c88ba95921444946443794cbaca5911f1a924720 12-Aug-2011 Xavier Ducrohet <xav@android.com> Merge "Make some methods/fields package private so that layoutlib can access them."
03f156e96f5b1b9427473197c2de3a8454d7039c 12-Aug-2011 Romain Guy <romainguy@google.com> Merge "Remove unnecessary private API"
9d865512f1a39bac6bed612b24023213d5a1fb1d 12-Aug-2011 Romain Guy <romainguy@google.com> Remove unnecessary private API

Change-Id: I2ecb367528ec0691c07153a3d163b82a6ca33fdf
ndroid/graphics/Canvas.java
beb2b5cfdb79ac9147296e3a6bd21970a947a6f4 10-Aug-2011 Christian Robertson <robertsonc@google.com> Replacing sans serif system font with Roboto

Change-Id: Ibe0aa11e2259898e65dc422c7794ab4065a0a90e
ndroid/renderscript/Font.java
7f9f99ea11051614a7727dfb9f9578b518e76e3c 11-Aug-2011 Xavier Ducrohet <xav@android.com> Make some methods/fields package private so that layoutlib can access them.

Change-Id: I4aeadfbaf8a4f6a459fa19937c21ac23d9e5fb64
ndroid/graphics/Bitmap.java
ndroid/graphics/Paint.java
ndroid/graphics/Path.java
ndroid/graphics/Typeface.java
37cc31c6040cf1b304e947eb0fe2d0341a909890 10-Aug-2011 Romain Guy <romainguy@google.com> Merge "Add a return value for SurfaceTextureListener#onSurfaceTextureDestroyed."
402f05530352f34d5320c2d23be43c274d97c4e2 10-Aug-2011 Grace Kloba <klobag@google.com> Add a return value for SurfaceTextureListener#onSurfaceTextureDestroyed.

If returns true, the SurfaceTexture will be released by TextureView.
If returns false, the client needs to release the SurfaceTexture.

Change-Id: I946f71e337ad4170c168854ac27e028b82489c8c
ndroid/renderscript/RSTextureView.java
8984b41665f7ea2f0fdbc8ce00556b9e7762668e 10-Aug-2011 Fabrice Di Meglio <fdimeglio@google.com> Add more Paint text APIs parameters checks

Change-Id: Idd04e9937b821180f46852451405bb9c6d59da37
ndroid/graphics/Paint.java
15c097a1c23105cdc0dd66dd5605ff35467d7118 08-Aug-2011 Fabrice Di Meglio <fdimeglio@google.com> Add more optimizations for Text measuring / breaking / getting advances

- do not go to native if this is not needed (empty or null text)
- do expandMetricsFromPaint() in TextLine when needed instead of calling handleText()
with emty string just for doing expandMetricsFromPaint()

Change-Id: I1f566ccef66cbc990ebbb77ef149899119e37e84
ndroid/graphics/Paint.java
4c7dbc04958cb585a2b68eaa664e816f0d84da9f 08-Aug-2011 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #4584320 Single Line EditText not drawing correctly with spans applied (ICS)

- provide a better fix by still using the full context of the text (versus using the text only)

Change-Id: I542335e98117921d75c191e90a9b2018ca356ac9
ndroid/graphics/Paint.java
253267256997b2bd5cf1c40e1302a4a1240d756f 08-Aug-2011 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #4584320 Single Line EditText not drawing correctly with spans applied (ICS)"
f2ce877c1dde094ab599f0d3103145c9381ab260 06-Aug-2011 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #4584320 Single Line EditText not drawing correctly with spans applied (ICS)

- use correct 0 index for computing advance thru the char buffer (the buffer is created from TextUtils.getChars())
- udpate unit tests

Change-Id: Iaeb07658b79ecdf5e17395d55afb7c84965bb0fc
ndroid/graphics/Paint.java
8f019d63055ad76b94710b7b96e29625173584c4 05-Aug-2011 Stephen Hines <srhines@google.com> Merge "Start using bcinfo components within librs."
09f6d67f37d77853dd19fde79523edc524c7c9cd 04-Aug-2011 Wu-cheng Li <wuchengli@google.com> Merge "Add camera bayer image format."
70fb9085044c5e6f52c33c970d238b764cf2373b 02-Aug-2011 Wu-cheng Li <wuchengli@google.com> Add camera bayer image format.

The API are hidden.

bug:5086073

Change-Id: Ic9a53e5d5007ad3f12a28406ee25098227f14cbc
ndroid/graphics/ImageFormat.java
4382467a80dd12c6362d57edca7f2367f7ae877c 02-Aug-2011 Stephen Hines <srhines@google.com> Start using bcinfo components within librs.

BUG=4942491

Change-Id: I3a46783511c4954bac9eadbbbefe5abf85498c16
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
ec46b4e1ca89d7c3a9ad70ded58da08b5e19f08f 04-Aug-2011 Mathias Agopian <mathias@google.com> Add a 'release' method to the SurfaceTexture public Java API

Bug: 5063618
Change-Id: I689cb0c01c14e597ccfb4eb0972e64fa570bd4e8
ndroid/graphics/SurfaceTexture.java
6311d0a079702b29984c0d31937345be105e1a5e 03-Aug-2011 Dianne Hackborn <hackbod@google.com> Clear the bitmap from the canvas in a lot of places.

Change-Id: I6b2071ac7b348c473b9bdd1b972d095aebbb4fb3
ndroid/graphics/Bitmap.java
b1216dd916e0f5fdec29684120c5bcc904800916 02-Aug-2011 Romain Guy <romainguy@google.com> Copy constructors should actually copy stuff.
Bug #5027094

Change-Id: Iab6bf652e0b9bdd1bbc794e7c4218f46bafdd1a4
ndroid/graphics/Paint.java
ndroid/graphics/drawable/BitmapDrawable.java
0965a3244b4c3009d08db2e084cdcb681ef66d26 02-Aug-2011 Romain Guy <romainguy@google.com> Allow Canvas.setBitmap() to receive a null Bitmap.

Change-Id: I6096f0b44866e532ccd96a29c816bf34d48c1dc2
ndroid/graphics/Canvas.java
34235c6eded32fa6840db7a0f38e0e2905aff8b0 19-Jul-2011 Scott Main <smain@google.com> cherrypick Change-Id: Iaada8d42f97786d393743cd7fc3011da1d21f22e
docs: resolve issue 5044273 and fix markup error

Change-Id: Ic028292245c14cca218ea9ac771f292254577e7c
ndroid/graphics/drawable/AnimationDrawable.java
804b3d76c39eca09cbbd8b7c3fa1718e7ad094cc 27-Jul-2011 Alex Sakhartchouk <alexst@google.com> Merge "Add getName to renderscript base object"
0400b07c6bfc3fca49bc10db0a2040aba8664c8e 26-Jul-2011 Alex Sakhartchouk <alexst@google.com> Add getName to renderscript base object

Change-Id: Ia28f88d2c9d679692778641548fdac08c1041d02
ndroid/renderscript/BaseObj.java
684b23513c9137ddc04b06ac05a4b15be06ad2f4 26-Jul-2011 Jason Sams <rjsams@android.com> Unhide new RS apis.

Change-Id: I83505156bd8a0ffabf0da3aef937693eaee9d9cd
ndroid/renderscript/RSTextureView.java
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/Script.java
46c72507984f32c8b5c86721086b624d73ae859a 18-Jul-2011 Fabrice Di Meglio <fdimeglio@google.com> Merge "Clean test APIs for Harfbuzz support"
796cc96243a57cd1b652bd90c4e7ba7823c6c2fe 16-Jul-2011 Fabrice Di Meglio <fdimeglio@google.com> Clean test APIs for Harfbuzz support

- also update unit tests

Change-Id: I557f61e84c4c4b6165163b783d9c679a6b3b4106
ndroid/graphics/Canvas.java
dafbf247ee4d0c14d501a23612115ab3a1306288 16-Jul-2011 Romain Guy <romainguy@google.com> Remove unused code

Change-Id: I7f7fc6bac03c92087037fc56b78fc43a1e93dae5
om/android/internal/graphics/NativeUtils.java
ac7f69bac34e6fbfc497cbb8f3f5a060bc70df6d 12-Jul-2011 Jason Sams <rjsams@android.com> Merge "Add error checks for AllocationAdapters being used in unsupported ways."
ef72ff220c8bf6c8d7753f30ddaad89d4d8cada9 11-Jul-2011 Logan Chien <loganchien@google.com> Use resource entry name instead of mangled name.

Change-Id: I833fa1b529fe505ce20ede12b7f4b5952a6ac1f0
ndroid/renderscript/ScriptC.java
fcc8fae91e74a24eba8bb20c80d7f29aaf31a828 09-Jul-2011 Romain Guy <romainguy@google.com> Merge "Correctly render nested rectangles with different winding rules."
d4b5795e5efd05be7e482e013dfdec519ad2601e 09-Jul-2011 Romain Guy <romainguy@google.com> Correctly render nested rectangles with different winding rules.

Change-Id: I331d9dc1c17aee62a2fa213692c62a5ba1bb079a
ndroid/graphics/Path.java
48fe534838d8b9d10f98ea2662eec258320ab4e7 08-Jul-2011 Jason Sams <rjsams@android.com> Add error checks for AllocationAdapters being used in unsupported ways.

Change-Id: If6506e04d65a7b3d79203ac7a20a7961368ef04f
ndroid/renderscript/Allocation.java
ndroid/renderscript/AllocationAdapter.java
d015327223e1b333d479e69db64f512a0fe7b6e0 08-Jul-2011 Jason Sams <rjsams@android.com> Merge "Fix more type info caching bugs."
ad37cb26cd8d8a05077152ebc5b841a5629cfbbd 08-Jul-2011 Jason Sams <rjsams@android.com> Fix more type info caching bugs.

Change-Id: I917a1190ec12fe954c9bf51ffd446ef564837e68
ndroid/renderscript/Allocation.java
3055353fd4037e58bb7a7081ca50c0a76935959b 08-Jul-2011 Jason Sams <rjsams@android.com> Merge "Fix defered type creation when loading from A3D."
452a7661e8b06459b75493b441d33244939c1153 08-Jul-2011 Jason Sams <rjsams@android.com> Fix defered type creation when loading from A3D.

Change-Id: I09387c0859dcc9fe77014bc7486109d81742f298
ndroid/renderscript/Allocation.java
e4827389e78770088be1c36b46b8d54922e8689f 08-Jul-2011 Jason Sams <rjsams@android.com> Merge "AllocationAdapter cleanup."
ba862d1544a06528151550be1784a926ee986580 08-Jul-2011 Jason Sams <rjsams@android.com> AllocationAdapter cleanup.

Change-Id: Ia7eb0925e410779bbd6a925af721e3834dcf83f8
ndroid/renderscript/Allocation.java
ndroid/renderscript/AllocationAdapter.java
f61970fc79e9c5cf340fa942597628242361864a 07-Jul-2011 Romain Guy <romainguy@google.com> Add an API to query maximum bitmap/texture size on Canvas.

Change-Id: I2c576c9a4ecad9f33cc6636bcbc29786acdf052d
ndroid/graphics/Canvas.java
03f9435273df3c8d6f342adfc391844a18535adf 02-Jul-2011 Glenn Kasten <gkasten@google.com> Merge "Bug 4571308 Provide correct video frame timestamps"
3cf7cf575138bcbe5b49c32eb4ae401f92e4c8f7 28-Jun-2011 Jamie Gennis <jgennis@google.com> Merge changes I9fb59763,I8b2c6e00

* changes:
SurfaceTexture: consume buffers after err checks
SurfaceTexture: change onFrameAvailable behavior
bd5404d0312752e7c8946e8540129f0d2d97bcd7 27-Jun-2011 Jamie Gennis <jgennis@google.com> SurfaceTexture: change onFrameAvailable behavior

This change alters the conditions under which the onFrameAvailable
callback gets called by the C++ SurfaceTexture class. The new behavior
is to call the callback whenever a frame gets queued that will be
visible to the buffer consumer. This means that buffers queued in
synchronous mode always trigger the callback, as those buffers will
remain pending until they are consumed. Buffers queued in asynchronous
mode will only trigger the callback if there was not previously an
unconsumed buffer pending.

The new behavior means that a consumer should perform a draw operation
exactly once for every onFrameAvailable call that it recieves. This
change also modifies SurfaceFlinger and the SurfaceTexture JNI to
support of the new behavior.

Change-Id: I8b2c6e00961d3d58b11c6af50b555b6e4c5f5b40
ndroid/graphics/SurfaceTexture.java
a2c8a7b5739c1febf8ffbf9461334343bdadab16 27-Jun-2011 Jean-Baptiste Queru <jbq@google.com> am ec5039b3: am 99c070d8: am 4fea5373: Merge "Add WEBP to the list of Image formats that support Compression."

* commit 'ec5039b3720ee9b92fb2a2c6dd9f468d2dcd7172':
Add WEBP to the list of Image formats that support Compression.
5c2faf3dc310b100707eb9e32e1e5ae8ceffd0c6 27-Jun-2011 Glenn Kasten <gkasten@google.com> Bug 4571308 Provide correct video frame timestamps

Change-Id: I0f726817fc02d3e2a4cf82ed801ef977994e6bcc
ndroid/graphics/SurfaceTexture.java
f670be372ba8e23c098e77b3a749b6333af0435d 25-Jun-2011 Jeff Sharkey <jsharkey@android.com> Merge "Finish any enter animation when jumping to state."
a0ac98bd5cb550319221c1d60277e07a9d2e3a91 25-Jun-2011 Jeff Sharkey <jsharkey@android.com> Finish any enter animation when jumping to state.

When jumpDrawablesToCurrentState(), finish any alpha animation in
progress. Fixes bug where drawable with enter fade would remain
transparent until next state change.

Change-Id: Ia087f935566a8d78e0efdcb0a1a2f791db05c70e
ndroid/graphics/drawable/DrawableContainer.java
ec5039b3720ee9b92fb2a2c6dd9f468d2dcd7172 24-Jun-2011 Jean-Baptiste Queru <jbq@google.com> am 99c070d8: am 4fea5373: Merge "Add WEBP to the list of Image formats that support Compression."

* commit '99c070d8eb9f1ff9ea5c38991f15f091040226c2':
Add WEBP to the list of Image formats that support Compression.
0904d0af81e8a0a5404d6c03f4dcea02bea8170d 24-Jun-2011 Grace Kloba <klobag@google.com> Add allowSynchronousMode to SurfaceTexture constructor.

Change-Id: I54f30a3c16bbe6b813f3bcd1d389da5627531304
ndroid/graphics/SurfaceTexture.java
7c1747c13c75eb0197db979d48cb4f9c59d52201 24-Jun-2011 Stephen Hines <srhines@google.com> Merge "Remove verbose logging, update test app and docs."
3d782666d73c3ce0ffb77e71db7309bc3297ecb8 24-Jun-2011 Stephen Hines <srhines@google.com> Remove verbose logging, update test app and docs.

Change-Id: I6659c5e51a747011239128dc2682a5d78aecfa26
ndroid/renderscript/Font.java
0694cfe49a889788e185a265deed0c231fe31f4b 23-Jun-2011 tedbo <tedbo@google.com> Merge "Add method to create a ParcelSurfaceTexture from android.view.Surface."
b950b8e23e18cbe23069b791bca93c8cfbbab5ce 23-Jun-2011 Jamie Gennis <jgennis@google.com> Merge "Fix the issue where onFrameAvailable is not triggered if SurfaceTexture is in sync mode."
2305ac9e4a262ed09fd034ae417e9b1dda4c0ccb 23-Jun-2011 Vikas Arora <vikasa@google.com> Add WEBP to the list of Image formats that support Compression.

Note: The integrator of this change to Android internal code-repo will
have to run one extra step 'make update-api' to update 'api/current.txt'
file corresponding to approved API. The AOSP branch didn't have this
file, hence I could not add the same to this change. The updated file
'api/current.txt' has to be submitted along with this change.

Change-Id: I29909e907a2e82d801e16654322190a808c5bda9
ndroid/graphics/Bitmap.java
cf559377b750271472aa0a717bf3b7d34abc0b39 23-Jun-2011 Grace Kloba <klobag@google.com> Add onSurfaceTextureUpdated to the TextureView listener.

The app needs a way to throttle the producer side. Expose this to enable it.

Change-Id: I04b6a3fc444117a9fc2449fb87c3c834247c8ef1
ndroid/renderscript/RSTextureView.java
4e8a5c922c287ec97fec847194e930f8598a1941 23-Jun-2011 tedbo <tedbo@google.com> Add method to create a ParcelSurfaceTexture from android.view.Surface.

Change-Id: I05e343ab7e327478f60322af9373574b70c148f5
ndroid/graphics/ParcelSurfaceTexture.java
ad4f70306b2089a273635b73a101fe48aa36cbe2 22-Jun-2011 Chet Haase <chet@google.com> Fix flashing artifacts caused by invalidation bugs

Therea re 2 fixes here:
- We sometimes cleared a flag in ViewAncestor too soon that controlled
how invalidated areas were redrawn (related to whether the invalidates
happened on opaque views or not).
- TransitionDrawable was always setting/restoring alpha values on its
drawables every time it was drawn. setAlpha on BitmapDrawable causes
an invalidation, so essentially this was an infinite invalidation/redrawing
loop. The fix was to notice when the animation was done and to simply
draw the appropriate drawable[s].

Change-Id: I1849a5a909b0039a0e9bce0aa3cfc33c50f8f854
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/TransitionDrawable.java
925bcaabde5a21687b51caa7ab329310a819f068 22-Jun-2011 Grace Kloba <klobag@google.com> Fix the issue where onFrameAvailable is not triggered if SurfaceTexture is in sync mode.

If there is more frame after updateTexImage, trigger the listener again.

Change-Id: I1415ae9a914cc8bb139cb369464b1f6a2aa24058
ndroid/graphics/SurfaceTexture.java
dbe03ae5d0f372beee906558af73f32c55382b22 22-Jun-2011 Jason Sams <rjsams@android.com> Merge "Fix bugs in AllocationAdapter."
ee2d809ab099e67698a37f13a42d22eaa2251f77 22-Jun-2011 Jason Sams <rjsams@android.com> Fix bugs in AllocationAdapter.

Change-Id: Ib530fc719de3587f44eed88bd1d16e22dd5af64a
ndroid/renderscript/AllocationAdapter.java
419091185f3c9c2d22c0673daca38c92985244c5 22-Jun-2011 Stephen Hines <srhines@google.com> Merge "Support missing RS vector types."
79ad3f25bc224a86487aa6cf7b2c7ffe617ee77d 21-Jun-2011 Stephen Hines <srhines@google.com> Support missing RS vector types.

Change-Id: I87eae3cc79c3963d5a8edf16cc26eee6d93d81d7
ndroid/renderscript/FieldPacker.java
faa32b33b50ad941f631716dd0915e936bdc3ac5 21-Jun-2011 Jason Sams <rjsams@android.com> First cut at RSTextureView.

Change-Id: I920950f33079b6bb7e48bb8970201ab9737bb021
ndroid/renderscript/RSTextureView.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
3c0618be2fdad66f8d2249bd8b83a436b8aadec4 20-Jun-2011 Stephen Hines <srhines@google.com> Merge "Add support for more vector types to RS."
dc122622307579fa0c46a597aff5a5017617d64c 17-Jun-2011 Stephen Hines <srhines@google.com> Merge "POSITVE -> POSITIVE typo fix"
2b1382de8c50f483b0595b54fd87a482e6eba834 17-Jun-2011 Stephen Hines <srhines@google.com> Merge "Add isCompatible() to RS Element."
f257e513a11cb89a6cf5200ecf5ae14714cdaf39 14-Jun-2011 Stephen Hines <srhines@google.com> Add isCompatible() to RS Element.

BUG=4203264

Change-Id: Id68aead685f6cbc71c2fbe461cb38382e0563f43
ndroid/renderscript/Element.java
20fbd01335f3a41ab78e0bb9f70124665afb1e3b 17-Jun-2011 Stephen Hines <srhines@google.com> POSITVE -> POSITIVE typo fix

Change-Id: Ib26eb35fad0c93543f69f6c200820f04c435c2af
ndroid/renderscript/Allocation.java
ndroid/renderscript/AllocationAdapter.java
ndroid/renderscript/Type.java
e5e0c50f7dfaccc220725c5595080e921ffda1e4 16-Jun-2011 Romain Guy <romainguy@android.com> Properly refcount SurfaceTexture in the JNI layer.

Change-Id: I4b4c8020c13b8d6ce0d302fe42410033bf5785a6
ndroid/graphics/SurfaceTexture.java
e460e6d7181282937fc79119e3271bb8a80cffcf 15-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Merge "Add View.getResolvedLayoutDirection()"
c0053223bedf33581b0830fb87be32c1f26e5372 13-Jun-2011 Fabrice Di Meglio <fdimeglio@google.com> Add View.getResolvedLayoutDirection()

- update Callback2 interface
- update Gravity.getAbsoluteGravity() and Gravity.apply() to be more generic
by changing "boolean isRtl" parameter to "int layoutDirection"
- fix BiDiTests for RTL FrameLayout

Change-Id: I97bb456c22d5fd3ecb34f08564ce4dbed37e7459
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/ScaleDrawable.java
304b1f5497155bcf91e7b855cfab7a675e80bf26 14-Jun-2011 Alex Sakhartchouk <alexst@google.com> Allocation copy functions.

Change-Id: Idce6d44a4f4bb2e399284a40c0f90dc1bff912fd
ndroid/renderscript/Allocation.java
ndroid/renderscript/AllocationAdapter.java
ndroid/renderscript/RenderScript.java
4532c5e49cc0d029c53a3aee3e0b1fdf8ffd2ec4 10-Jun-2011 Jamie Gennis <jgennis@google.com> Merge "Add ParcelSurfaceTexture Java class to enable ISurfaceTexture sharing via Binder."
d54f3f41c4b41955b7b4382a08b97a356b31fde4 10-Jun-2011 Stephen Hines <srhines@google.com> Merge "Override equals()/hashCode() for RS BaseObj."
050316184b01c0d1a01c46afae7429b89a27c31b 07-Jun-2011 tedbo <tedbo@google.com> Add ParcelSurfaceTexture Java class to enable ISurfaceTexture sharing via Binder.

This adds a new ParcelSurfaceTexture.java class that can be instantiated with
a SurfaceTexture and used to send the corresponding ISurfaceTexture interface
to another process via Binder. The ParcelSurfaceTexture java object can then
be used to create an ANativeWindow based on the SurfaceTextureClient interface.

Change-Id: Ie38ea948b866e52f36a6d0f6cde19b54a8546817
ndroid/graphics/ParcelSurfaceTexture.aidl
ndroid/graphics/ParcelSurfaceTexture.java
ndroid/graphics/SurfaceTexture.java
705d2ea63a4b3c2345af83eec9dabdeea29cfa9f 09-Jun-2011 Stephen Hines <srhines@google.com> Override equals()/hashCode() for RS BaseObj.

This will be used by slang reflection to type-check parameters to functions
that are of Allocation types (such as what happens with forEach).

BUG=4203264

Change-Id: I2ba94531bbf53becf7695b253e1faa3dff099894
ndroid/renderscript/BaseObj.java
aece2ccccbf65cfeba642d11fa4bd0c794498f23 06-Jun-2011 Alex Sakhartchouk <alexst@google.com> Merge "Unhiding render target code for renderscript"
85dae045a2c3ac7b9d4bcad7a83ec587d0b7813e 06-Jun-2011 Alex Sakhartchouk <alexst@google.com> Unhiding render target code for renderscript

Change-Id: I32d80e6c49dbda955402f7ddffdb213c70ddbec9
ndroid/renderscript/Allocation.java
6e66725e1cd631007c226e9ea7b99211bd1276e5 05-Jun-2011 Shih-wei Liao <sliao@google.com> Fix the false-alarm bug when we skip to the end, which should be OK.

Fix the bug b/4540617.

Change-Id: I64a77b8c5d89bcd35f81d196928a671c954e9a28
ndroid/renderscript/FieldPacker.java
e27832acc083fa889e86b4c629b6aedd8855ceca 03-Jun-2011 Stephen Hines <srhines@google.com> Improve validation in RS FieldPacker.

Change-Id: I9f6a58048129db4978c893c2dc591b0ed825d05f
ndroid/renderscript/FieldPacker.java
260c77a4f741c3db76057cc4ea2ee54fe335ecf9 02-Jun-2011 Glenn Kasten <gkasten@google.com> Use android.os.Process.THREAD_PRIORITY_* symbols

As part of latency project, searching for and replacing
hard-coded thread priorities by symbols.

Change-Id: I113c07af95f8808b889b665e884b6b41d3440f8d
ndroid/renderscript/RenderScript.java
836c4a58a7f03485ef433dcdb61837cbc0c39735 01-Jun-2011 Stephen Hines <srhines@google.com> Add support for more vector types to RS.

Change-Id: If1bc34ef6670b6b5de3c1b6b3b3325637b8c7b43
ndroid/renderscript/Allocation.java
ndroid/renderscript/Element.java
ndroid/renderscript/RenderScript.java
f5534a0785db9dfa239d8b6c20b011993742d534 27-May-2011 Chet Haase <chet@google.com> Fixes for AnimationDrawable

Set up AnimationDrawable with an initial frame when it is
constructed from code (via addFrame()). This is equivalent to
what is done when it is constructed via xml resources.

Change-Id: I86784a241268aa2d03af8edecbc80a7cc3548e19
ndroid/graphics/drawable/AnimationDrawable.java
6a03640539405afbdefe72894759281b98aa6e6f 23-May-2011 Fabrice Di Meglio <fdimeglio@google.com> Add support for Gravity BEFORE and AFTER

- update layouts
- add Callback2 for RTL aware Drawable
- add unit tests

Change-Id: Ic64d0291e262170aff7297c6580b0b422eaa8d89
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/ScaleDrawable.java
edbfabdb98a2974f973d6c042e6efd547dc02fc5 18-May-2011 Jason Sams <rjsams@android.com> Core to client fifo on sockets.

Change-Id: I3b84a7d4c3c5fa0d764ad4db22dfd142d5cfa95b
ndroid/renderscript/RenderScript.java
f97ed771979162c4a2a75959c57fb793438a3a8b 16-May-2011 Dianne Hackborn <hackbod@google.com> am d90a2c4d: am 1e662c32: Merge "DO NOT MERGE. Integrate from master: Rework display size access." into honeycomb-mr2

* commit 'd90a2c4d4463085155444efb07eba2d6579b444a':
DO NOT MERGE. Integrate from master: Rework display size access.
ac8dea12c17aa047e03a358110aeb60401d36aa2 21-Apr-2011 Dianne Hackborn <hackbod@google.com> DO NOT MERGE. Integrate from master: Rework display size access.

Applications now get the display size from the window manager. No
behavior should be changed yet, this is just prep for some real
changes.

Change-Id: I47bf8b55ecd4476c25ed6482494a7bcc5fae45d2
ndroid/graphics/Point.aidl
ndroid/graphics/Point.java
ndroid/graphics/PointF.aidl
ndroid/graphics/PointF.java
25999a08a6652ff5d7d0973f279f1e92e04b3506 12-May-2011 Alex Sakhartchouk <alexst@google.com> Cleanup mesh creation.

Change-Id: Iaf5e060711dcb6341ac0f337dfb274528cb68d3e
ndroid/renderscript/Mesh.java
ndroid/renderscript/RenderScript.java
a89094aa3bc059c6e03b20b4c5b1ede4582f3da9 05-May-2011 Alex Sakhartchouk <alexst@google.com> Code Cleanup and better Sampler creation method

Change-Id: I9e35081ee6034cb619f43a47f8f22f38977f5d12
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Sampler.java
2698536b3ff60bfee85e47e4a8d4b25fdfdf4db5 04-May-2011 Jason Sams <rjsams@android.com> Fix error checks on compute context creation.
Remove GL init for compute scripts.

Change-Id: I1bce8e4112babf4345fa56a30a9bed753734d8d6
ndroid/renderscript/RenderScript.java
8f0095cd33558e9cc8a440047908e53b68906f5f 03-May-2011 Romain Guy <romainguy@google.com> Allows to render with an OpenGL context inside a TextureView.

Change-Id: I59453f7fc3997f0502a1c5d325d37fed376fabc7
ndroid/graphics/SurfaceTexture.java
e7cb25916c70625e9086386293247ec604753d5c 02-May-2011 Conley Owens <cco3@android.com> am 1eb31b43: am 718516f3: am 9fd8e057: Merge "Fix memory leak of SkMovie class"

* commit '1eb31b434fdc325c55b65ecf1783c63b2fdfa669':
Fix memory leak of SkMovie class
1eb31b434fdc325c55b65ecf1783c63b2fdfa669 30-Apr-2011 Conley Owens <cco3@android.com> am 718516f3: am 9fd8e057: Merge "Fix memory leak of SkMovie class"

* commit '718516f3b73468c480ef8d2283a1c80a6223658d':
Fix memory leak of SkMovie class
17f83df9604ef9239694e8fd5a9efb894fd28453 30-Apr-2011 Conley Owens <cco3@android.com> am 7dcdfd79: am f26ec38c: am 501f7bca: Merge "Eliminating dead logic - bitmap state simply cannot be null here."

* commit '7dcdfd7988d1e57c7a705a2d7294e8bfa2b8afc9':
Eliminating dead logic - bitmap state simply cannot be null here.
7dcdfd7988d1e57c7a705a2d7294e8bfa2b8afc9 29-Apr-2011 Conley Owens <cco3@android.com> am f26ec38c: am 501f7bca: Merge "Eliminating dead logic - bitmap state simply cannot be null here."

* commit 'f26ec38c344af8cf91575b461028a3033b940d49':
Eliminating dead logic - bitmap state simply cannot be null here.
9fd8e0579fb3306f61ba1716b1977562ae3626e1 29-Apr-2011 Conley Owens <cco3@android.com> Merge "Fix memory leak of SkMovie class"
5ac02e73c313935b1af8a536e47f74b616986dfe 28-Apr-2011 Stephen Hines <srhines@google.com> am 697f8b33: am 00df8e23: Merge "Check setName() for null string + fix rsRand()." into honeycomb-mr1

* commit '697f8b331bb339e4db716efbb96e2182aac40255':
Check setName() for null string + fix rsRand().
6e494d3ab606be8c06f8d4930fbec572bbfa15c2 28-Apr-2011 Jason Sams <rjsams@android.com> Add dalvik code for forEach.

Change-Id: I26533fc553315b99b8f177ab62d9735a177b26b0
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Script.java
4658d779e37b0127060438b4cb364c3e0eab5956 20-Apr-2011 Alex Sakhartchouk <alexst@google.com> Check setName() for null string + fix rsRand().

Change-Id: I5e0042930209861e2eb9acc91380e9473dac0997
ndroid/renderscript/BaseObj.java
64e00980a335d86402e2c318bcf19f58d11b8163 26-Apr-2011 Stephen Hines <srhines@google.com> Merge "Start ICS header cleanup and finish type matrix."
e1c6ff4b91072a4071589938c74dd65d66f88fb5 26-Apr-2011 Romain Guy <romainguy@google.com> Make setGradientCenter/Radius work.

The previous implementation would not rebuild the gradient shader
when programmatically changing the shader's properties. Also fixes
the documentation since the gradient center does affect linear
gradients.

Change-Id: I5387188484b862f6835b0da9042b25032e55e792
ndroid/graphics/drawable/GradientDrawable.java
ee6d5cfdff475f6c1119f060b139bdc1b621fa8b 26-Apr-2011 Romain Guy <romainguy@google.com> Copy the solid color when mutating a gradient drawable.

Change-Id: If3eed36b81f54bb5a56eab7784feda3e3786f8fc
ndroid/graphics/drawable/GradientDrawable.java
4a123c4d69a1a73d0e16834700c3fe95034fe66e 26-Apr-2011 Romain Guy <romainguy@google.com> Allow bitmap filtering on NinePatchDrawable.

There's no reason to not allow it anymore.

Change-Id: Id1881784e6abb49f1965af6595a77391b88b426f
ndroid/graphics/drawable/NinePatchDrawable.java
6cc888e77e17ac522f75bf61403307de8ace2ef3 23-Apr-2011 Jason Sams <rjsams@android.com> Start ICS header cleanup and finish type matrix.

Change-Id: If65f96f08c958d330862c543d85dd9d4a0f90e06
ndroid/renderscript/Byte2.java
ndroid/renderscript/Byte3.java
ndroid/renderscript/Byte4.java
ndroid/renderscript/Double2.java
ndroid/renderscript/Double3.java
ndroid/renderscript/Double4.java
ndroid/renderscript/Int2.java
ndroid/renderscript/Int3.java
ndroid/renderscript/Int4.java
ndroid/renderscript/Long2.java
ndroid/renderscript/Long3.java
ndroid/renderscript/Long4.java
ndroid/renderscript/Short2.java
ndroid/renderscript/Short3.java
ndroid/renderscript/Short4.java
0a1413e4bf9dcda2a8abb2287e43f612a7fb2453 22-Apr-2011 Fabrice Di Meglio <fdimeglio@google.com> Clean getTextRunAdvances() APIs

- remove ICU reference in API names
- use a "reserved" int parameter to pass either "0" for Harfbuzz or "1" for "ICU"

Change-Id: I88b4f76feafd203a6999cd7349402fa36a9a4b2a
ndroid/graphics/Paint.java
44bc17c6b517aef35a390c81b5aa79c4f284f744 21-Apr-2011 Dianne Hackborn <hackbod@google.com> Rework display size access.

Applications now get the display size from the window manager. No
behavior should be changed yet, this is just prep for some real
changes.

Change-Id: I2958a6660895c1cba2b670509600014e55ee9273
ndroid/graphics/Point.aidl
ndroid/graphics/Point.java
ndroid/graphics/PointF.aidl
ndroid/graphics/PointF.java
e42143aa575dcb8ab0616080b2e9b4614a1a4167 19-Apr-2011 Jozef BABJAK <jozef.babjak@gmail.com> Eliminating dead logic - bitmap state simply cannot be null here.

Change-Id: I33fdf650b06242efa22ca30b3f7252f6854b42f6
ndroid/graphics/drawable/BitmapDrawable.java
0343a7eb6d7cd2bd44dabe5119e2366e84427c93 08-Apr-2011 Fabrice Di Meglio <fdimeglio@google.com> Merge "TextLayoutCache - add glyphs caching"
fcf2be1846935e7983ea2fe87fdd4d7af27764b6 06-Apr-2011 Fabrice Di Meglio <fdimeglio@google.com> TextLayoutCache - add glyphs caching

- cache glyphs after Harfbuzz shaping
- use "m" prefix for member variables
- add temporary API for drawing text with glyphs
- update BiDiTest app

Change-Id: I619b3f313b15f010018daad21b3e5e486619b4e4
ndroid/graphics/Canvas.java
43a17654cf4bfe7f1ec22bd8b7b32daccdf27c09 07-Apr-2011 Joe Onorato <joeo@google.com> Remove the deprecated things from Config.java. These haven't been working since before 1.0.

Change-Id: Ic2e8fa68797ea9d486f4117f3d82c98233cdab1e
ndroid/renderscript/Mesh.java
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramFragmentFixedFunction.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/ProgramVertexFixedFunction.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/Sampler.java
bd184c55850997a5c5e285357998dadbe95b7b5d 06-Apr-2011 Jason Sams <rjsams@android.com> Cleanup character limits.

Change-Id: Icb127248d6e3a0b662ed3b13c9a6646f4f81129a
ndroid/renderscript/RenderScript.java
331bf9b14b1c5c1e88f5c4092b6e24fae887fb3b 06-Apr-2011 Jason Sams <rjsams@android.com> Seperate ProgramRaster.
Cleanup ProgramRaster and ProgramStore creation.

Change-Id: If25ea74355238d405340f0ccfb8117ad6e1307b7
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/RenderScript.java
78a9f6a8227d1e9b465acb84f8476a30c5af9c13 04-Apr-2011 Alex Sakhartchouk <alexst@google.com> Merge "First draft of fbo in renderscript. Updating samples and benchmark"
ef353dde086a6833471deff4da58a6eaf8a1ef36 31-Mar-2011 Stephen Hines <srhines@google.com> Make BaseObj a public class.

BUG=4156151

Change-Id: Ia5d5ae08ab8e176ad3ca1f38c2c33ef4e9551213
ndroid/renderscript/BaseObj.java
8e90f2bc1fa35a2dc7bd2aab8b8241b628800218 01-Apr-2011 Alex Sakhartchouk <alexst@google.com> First draft of fbo in renderscript.
Updating samples and benchmark

Change-Id: I469bf8b842fca72b59475c8fa024c12cf0e14954
ndroid/renderscript/Allocation.java
ndroid/renderscript/Element.java
eee49c699c035ffba188417489f40d34f587d65c 25-Mar-2011 Fabrice Di Meglio <fdimeglio@google.com> Fix text redering issue where the text was sometimes truncated

- mostly was visible in Settings apps / Wi-Fi networks summary info for each network
- correctly setup the local SkPaint for advances computation
- improve test app for adding live resizing

Change-Id: Ia031fe1b115b521ba55c7e68f2a26300f02e48ca
ndroid/graphics/Paint.java
a3cbe69ae693004b2fa459d95578b4b3189c86fb 30-Mar-2011 Romain Guy <romainguy@google.com> Merge "Move the drawable state to the correct class. Bug #4170455"
2660a3ec8564918a243b1b02e3652c514bc93bfc 30-Mar-2011 Romain Guy <romainguy@google.com> Move the drawable state to the correct class.
Bug #4170455

The state tracking whether the Paint's shader should be rebuilt was kept in the
wrong class. This lead to the Drawable keeping track of the dirty status of the
Paint stored in the ConstantState. This of course does not work properly when
several drawables are inflated form the same ConstantState. This change fixes
the issue by moving the dirty Paint state to the ConstantState class. This is
allowed to work because of the single-thread rule enforced by the UI toolkit.

Change-Id: I9bb31d8e7335d6bb418470b59ae25d9085d7bd23
ndroid/graphics/drawable/BitmapDrawable.java
37c1bbb51a5013f4319447106f834a4a9e0511cb 29-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> am 8ef609ab: am a4206029: am 5d5a0ca5: Merge "Fixing the wrong link in YuvImage JavaDoc."

* commit '8ef609abe56c9872c93fc304037d1e52d4475e5e':
Fixing the wrong link in YuvImage JavaDoc.
8ef609abe56c9872c93fc304037d1e52d4475e5e 29-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> am a4206029: am 5d5a0ca5: Merge "Fixing the wrong link in YuvImage JavaDoc."

* commit 'a4206029cbb8f6c02c47db52f84b7d52e154e35a':
Fixing the wrong link in YuvImage JavaDoc.
08d7778f081aae745e6ad9e5350221b21dbf352e 28-Mar-2011 Kimiyoshi Kusaka <kusaka.kimiyoshi@sharp.co.jp> Fix memory leak of SkMovie class

Movie class doesn't have finalize method.
So memory leak of SkMovie class of native Skia occurs when Movie class is released.
I add finalize method to Movie class (Movie.java) and jni destructor method to SkMovie class (Movie.cpp).

Change-Id: I4dae9dd95f128cbfade50bef978b219ba99321dd
ndroid/graphics/Movie.java
a5d42c857818036375fff2da9f0d0ab34219d773 24-Mar-2011 Eino-Ville Talvala <etalvala@google.com> Merge "NEW_API: Add getTimestamp() to SurfaceTexture."
ee0c116ab2bd5acdfe50db36441cf4784d3a10b4 24-Mar-2011 Romain Guy <romainguy@google.com> Always apply the tile mode.
Bug #4170455

Change-Id: Id537a226a0b59bfa65b54bcea062aa5bf1a730b8
ndroid/graphics/drawable/BitmapDrawable.java
5d5a0ca5ebc3f4f60b5ad2afc161b3b8b33953e7 23-Mar-2011 Brad Fitzpatrick <bradfitz@android.com> Merge "Fixing the wrong link in YuvImage JavaDoc."
aa5eb64a0c0709a05731a934c033f213d6dbcc2f 23-Mar-2011 Fabrice Di Meglio <fdimeglio@google.com> Merge "Use Harfbuzz instead of ICU4C for computing advances"
9f82b580d744ce4baf057b061994394dcf239eed 08-Mar-2011 Fabrice Di Meglio <fdimeglio@google.com> Use Harfbuzz instead of ICU4C for computing advances

- use Harfbuzz shaper for shaping and getting glyphs
- add test app for showing result of drawText() and drawGlyphs()
- add private API in Canvas and Paint for test app

Change-Id: Ia15be216f8636d2d864066e9b7de2f53008c30f6
ndroid/graphics/Canvas.java
ndroid/graphics/Paint.java
e309a0fd2e528039b3c1f1372a9a7095bcd852cc 21-Mar-2011 Eino-Ville Talvala <etalvala@google.com> NEW_API: Add getTimestamp() to SurfaceTexture.

Like getTransformMatrix, getTimestamp provides a timestamp for the
OpenGL texture produced by the latest call to updateTexImage().

Timestamps are measured in nanoseconds, and are monotonically
increasing. Other properties of the timestamps (zero point,
comparability) depend on the source providing frames to the
SurfaceTexture, and need to be documented by the source.

bug:3300707

Change-Id: I380d94926d0e9f1c77bb5c1576b72d5ef4e2eba1
ndroid/graphics/SurfaceTexture.java
e4a06c5fc738bf219f2a495e12a637b2d0871651 17-Mar-2011 Jason Sams <rjsams@android.com> Start seperating out RS compute implementation. Create hal
layer to seperate from runtime.

Change-Id: Idf5c1261be4131690d25c15948e98324e979b4f9
ndroid/renderscript/RenderScript.java
ndroid/renderscript/ScriptC.java
ce06ebfda4bd7c511cef3d98aacf7291a743ea46 17-Mar-2011 Eino-Ville Talvala <etalvala@google.com> Merge "Add support for timestamps into SurfaceTexture."
c5f94d8a4779050125145396ca83fbc862c7ed6b 18-Feb-2011 Eino-Ville Talvala <etalvala@google.com> Add support for timestamps into SurfaceTexture.

API addition: The timestamps are represented as nanoseconds from some
arbitrary time point. Like the SurfaceTexture transform matrix, the
timestamp retrieved by getTimestamp is for the last frame sent to the
GL texture using updateTexImage().

Camera HAL change: Expect vendors to set these timestamps using
native_window_set_buffers_timestamp(). For now, they are
autogenerated by SurfaceTextureClient if set_buffers_timestamp() is
never called, but such timing is likely not accurate enough to pass a
CTS test.

bug:3300707

Change-Id: Ife131a0c2a826ac27342e11b8a6c42ff49e1bea7
ndroid/graphics/SurfaceTexture.java
b4a5f95b8e44d8029827722225ef7f93023ab1b3 17-Mar-2011 Alex Sakhartchouk <alexst@google.com> am 6ff211e0: am 8f6c5226: am 55a9be3d: Merge "Fix for bug 3434228" into honeycomb-mr1

* commit '6ff211e08a7c5d51e3899d10be53878c05c244b5':
Fix for bug 3434228
2c74ad9aae29cc64fece926f353825a7925792c2 17-Mar-2011 Alex Sakhartchouk <alexst@google.com> Fix for bug 3434228

Change-Id: I57973faf782b487e7913a096f0ab6012dc1c9415
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
d50349de17784f924f8cca6ef2fb2708b9fd2ecd 17-Mar-2011 Stephen Hines <srhines@google.com> Merge "Check setName() for null string + typo fixes."
84a97cae1e53400676a4dfd6c7bf75f9ac230fce 16-Mar-2011 Stephen Hines <srhines@google.com> Check setName() for null string + typo fixes.

Change-Id: Ibf5fd3bcf908df8370eac2848e2b329328b9e8d3
ndroid/renderscript/BaseObj.java
ef65bb30ed093d625476b5d77737217fd7750a87 15-Mar-2011 Stephen Hines <srhines@google.com> 2X2 matrix needs 4 float elements.

BUG=4104094

Change-Id: I175bde5839d6f1c56b2fd7499853be723e85120f
ndroid/renderscript/Matrix2f.java
8cecbb5293f73e3f63f2601dda68016762c58a0c 01-Mar-2011 Stephen Hines <srhines@google.com> DO NOT MERGE: Fix typos in RenderScript docs.

Change-Id: Ie5f326c5c682ca7b604328ab25d7402cf01f7890
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
f7d75b34d4b514413c64f502a1cb196bd6e43177 03-Mar-2011 Stephen Hines <srhines@google.com> Merge "Fix typos in RenderScript docs."
98e88ca2dcb8cb6fb3280cd571b917a4c5de191c 03-Mar-2011 Alex Sakhartchouk <alexst@google.com> Merge "Fixing element count bug in renderscript."
971ec7a65ba9523651643aabfdafff7eb0734734 02-Mar-2011 Mathias Agopian <mathias@google.com> Merge changes I9a202210,If26ef8be

* changes:
fix YV12 documentation
reformat file, which contained tabs instead of spaces
58a7775d3e12efdc5aaaf19d0ac5e487d622cf36 01-Mar-2011 Mathias Agopian <mathias@google.com> fix YV12 documentation

Change-Id: I9a2022101930721a3b3bacc95b02ca21d05f21bb
ndroid/graphics/ImageFormat.java
9ea30a69d5c1d5b137b0186116eb74261b3b5a5e 02-Mar-2011 Alex Sakhartchouk <alexst@google.com> Fixing element count bug in renderscript.

Change-Id: I0e795561db00e647d6dd5a9de7d25baf626d01a6
ndroid/renderscript/Type.java
9c4086a6765cca1eb215f9a307038544b295792b 01-Mar-2011 Stephen Hines <srhines@google.com> Fix typos in RenderScript docs.

Change-Id: I4ff14b86551f99ffe984877a3f34b7140511c448
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
525af5d5b0fcd4de9bac2f4be016cdd2f3534a40 01-Mar-2011 Mathias Agopian <mathias@google.com> reformat file, which contained tabs instead of spaces

Change-Id: If26ef8be8c80a7894d256572cb3b9e60742dce57
ndroid/graphics/ImageFormat.java
347697710d033036c533bd6cee409c4b4c19d437 01-Mar-2011 Alex Sakhartchouk <alexst@google.com> Discovered a matrix element bug while writing cts unit tests.

Change-Id: I56709df188a5085611efca804582470340369dc0
ndroid/renderscript/Element.java
858873271250e80a704c29c71ff0578a87bd9d31 23-Feb-2011 Jamie Gennis <jgennis@google.com> Expand on the SurfaceTexture API docs.

This change adds additional documentation explaining how a
SurfaceTexture should be used in OpenGL ES. It describes some of the
limitations of using the GL_TEXTURE_EXTERNAL_OES texture target.

Change-Id: I7424c1b422e4f402e87372e8b361391fbec82c5c
ndroid/graphics/SurfaceTexture.java
dc02e18d154ed6271bbd7bc346de619f2698bd9a 25-Feb-2011 Jamie Gennis <jgennis@google.com> Revert "Merge "Expand on the SurfaceTexture API docs.""

This reverts commit 069d748da85559ffb2d09d181b186b1f71e350e7, reversing
changes made to b607b884bd94d4f75fb4b2ead7457f2027ceb850.
ndroid/graphics/SurfaceTexture.java
069d748da85559ffb2d09d181b186b1f71e350e7 24-Feb-2011 Jamie Gennis <jgennis@google.com> Merge "Expand on the SurfaceTexture API docs."
373ed6fc79e6c41f4b5dbb8eb72363033f2e40b3 24-Feb-2011 Glenn Kasten <gkasten@google.com> Merge "Bug 3438258 Add SurfaceTexture as MediaPlayer sink"
47b8adec3904535c8d8ce2b6e42ecd736f2d90ce 24-Feb-2011 Romain Guy <romainguy@google.com> Add a new Camera API to control the camera's location

Change-Id: Id9a082d2def803eb527e1987875e0d8a22c6e8aa
ndroid/graphics/Camera.java
4a317db43d2bbc992284dd1f651751f13734d017 24-Feb-2011 Romain Guy <romainguy@google.com> More documentation for Canvas.drawArc()

Change-Id: I007a1db94306e05cf4e245f876aa1921f518c113
ndroid/graphics/Canvas.java
ed7894352f8addfe3d0da75cc7fe8bc6fef201dc 24-Feb-2011 Romain Guy <romainguy@google.com> Add dither XML attribute support to Gradient and ShapeDrawable.

Change-Id: I4b60a0ba6766b7e7b176e78dc7f15f8467e2b890
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
cc562a3576a6a8096626387472e05e8bee03352a 09-Feb-2011 Glenn Kasten <gkasten@google.com> Bug 3438258 Add SurfaceTexture as MediaPlayer sink

This change enables the use of a SurfaceTexture in place of a Surface
as the video sink for an android.media.MediaPlayer. The new API
MediaPlayer.setTexture is currently hidden.

This includes:
- New Java and C++ interfaces
- C++ plumbing and implementation (JNI, Binder)
- Stagefright AwesomePlayer and NuPlayer use ANativeWindow
(either Surface or SurfaceTextureClient)

Change-Id: I2b568bee143d9eaf3dfc6cc4533c1bebbd5afc51
ndroid/graphics/SurfaceTexture.java
acf33974b3a870d904e662ae927947460c0d6b3f 23-Feb-2011 Jamie Gennis <jgennis@google.com> Expand on the SurfaceTexture API docs.

This change adds additional documentation explaining how a
SurfaceTexture should be used in OpenGL ES. It describes some of the
limitations of using the GL_TEXTURE_EXTERNAL_OES texture target.

Change-Id: I9d3446a012376166b6c598b827a0aa0e9585d00f
ndroid/graphics/SurfaceTexture.java
39c512b623eff1d7a7b17f68a42723fbda9bf483 23-Feb-2011 Romain Guy <romainguy@google.com> Don't swap bottom left and bottom right corner radii.

Change-Id: If57b6627f67998edc384de15e3d970f8edf18211
ndroid/graphics/BitmapFactory.java
ndroid/graphics/drawable/GradientDrawable.java
f7f9d9c39df22ad6929f001f07588469f77e8bf5 17-Feb-2011 Jesse Wilson <jessewilson@google.com> Expose an API to get a bitmap's size in bytes.

Change-Id: I960c3b02b1ba8d3a8d92aaa98955a159e6f3a228
http://b/3184897
ndroid/graphics/Bitmap.java
8a9f9d880da83877206d0a52d03c784e936d3814 16-Feb-2011 Brian Muramatsu <btmura@google.com> Fix Paint#breakText(char[]..) JavaDoc

The JavaDoc says that if the "...count is negative then the
characters before index are measured in reverse order. This
allows for measuring the end of string."

However, the native code doesn't work its way backwards
from the given index when the count is negative. It always
passes Skia the substring starting from index and the
absolute value of count.

Its better to fix the JavaDoc rather than the behavior, since
this API is public and has been this way for some time. It
is also used by TextUtils.ellipsize indirectly, so its best
to avoid breaking that sensitive code.

Change-Id: I8bd51def6ec98251e355370710eb44f58fb737c4
ndroid/graphics/Paint.java
676b17391fb6583e5df944c36b1bd4c1be835689 14-Feb-2011 Romain Guy <romainguy@google.com> Deprecate ARGB_4444.

It looks awful.
Don't use it.
Use ARGB_8888, it's much better.
If you think you need ARGB_4444, you are wrong.
You are.

Change-Id: I4d6963cf98b6a8fb34cebcd0d24b9fd66b5a0fbf
ndroid/graphics/Bitmap.java
272fc4547b459190310fca3a0c9eb7c02e0b7301 11-Feb-2011 Robert Ly <robertly@google.com> am affeaaed: am bbdc4ce2: Merge "clean up and add javadocs" into honeycomb

* commit 'affeaaed8ef0776455fbecbf70627df3dd842030':
clean up and add javadocs
11518acc8c416023d8c2192b441a1767205676d9 09-Feb-2011 Robert Ly <robertly@google.com> clean up and add javadocs

Change-Id: I7f628106247de887cd91c4a4b4b55d3ebfa700c8
ndroid/renderscript/Allocation.java
ndroid/renderscript/Byte2.java
ndroid/renderscript/Byte3.java
ndroid/renderscript/Byte4.java
ndroid/renderscript/Element.java
ndroid/renderscript/FieldPacker.java
ndroid/renderscript/FileA3D.java
ndroid/renderscript/Float2.java
ndroid/renderscript/Float3.java
ndroid/renderscript/Float4.java
ndroid/renderscript/Font.java
ndroid/renderscript/Int2.java
ndroid/renderscript/Int3.java
ndroid/renderscript/Int4.java
ndroid/renderscript/Long2.java
ndroid/renderscript/Long3.java
ndroid/renderscript/Long4.java
ndroid/renderscript/Matrix2f.java
ndroid/renderscript/Matrix3f.java
ndroid/renderscript/Matrix4f.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramFragmentFixedFunction.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/Sampler.java
ndroid/renderscript/Short2.java
ndroid/renderscript/Short3.java
ndroid/renderscript/Short4.java
ndroid/renderscript/Type.java
ndroid/renderscript/package.html
366a84056c9a695ee6702d9d30bf9f3b521ba7cc 08-Feb-2011 Romain Guy <romainguy@google.com> Expose several useful Bitmap APIs.
Bug #3408073

Bitmap.setHasAlpha() in particular is very useful for applications that use
ARGB_8888 bitmaps but want/need to benefit from an extra speed boost.

Change-Id: I73d081b7e43bd725baffd1a9892c72d8729816f7
ndroid/graphics/Bitmap.java
7fb597df52c7c6569a1c9ebacfb7629cf3dc6dc1 04-Feb-2011 Keiji Ariyama <keiji_ariyama@c-lis.co.jp> Fixing the wrong link in YuvImage JavaDoc.

Change-Id: Ie6334e16424e59b75274ef265f10d26ba484316a
ndroid/graphics/YuvImage.java
2fc941e4650d618ff6e122f28b616d9032ffa134 04-Feb-2011 Romain Guy <romainguy@google.com> Fixes cache misses and extra allocations.
Bug #3421454

Change-Id: If4d5c960a7e4c581a9d213073e658284b4e1c497
ndroid/graphics/Canvas.java
feeea8f07c854e6b0ae2fec3aa2d239c17f32b5b 01-Feb-2011 Romain Guy <romainguy@google.com> Assume ARGB_8888 for unknown configs.
Bug #3327175

Change-Id: If712a255ec65014cd2e007de1e4c6a1d67c19250
ndroid/graphics/Bitmap.java
f6a362a5f65c1470399d869f0c39caac40e561a3 01-Feb-2011 Romain Guy <romainguy@google.com> Don't convert 4444 images to 565.
Bug #3327175

Change-Id: I46d970e41947278f4c2476b347fd2403fe9a05e8
ndroid/graphics/Bitmap.java
5f8b6653e0b5b99097db7d8f41d5251f7b398704 31-Jan-2011 Jamie Gennis <jgennis@google.com> Add SurfaceTexture docs for getTransformMatrix.

Change-Id: Ib08d00525c7932b23ba5066c07c7470f813b74f8
ndroid/graphics/SurfaceTexture.java
e1df07fc5a88da0242a6ade054423ec464c5318f 28-Jan-2011 Gilles Debunne <debunne@google.com> Merge "Fix for an IOOBoundsException in Paint." into honeycomb
3c0f91b0e1312287a271ba890d52cdb8bb75e52d 28-Jan-2011 Jamie Gennis <jgennis@google.com> Merge "Add docs about threading to SurfaceTexture." into honeycomb
1feba8bb02d26225f6ab013d50889a4d2e0c56f3 28-Jan-2011 Gilles Debunne <debunne@google.com> Fix for an IOOBoundsException in Paint.

Bug 3331706

The temporary buffer starts at index 0 and shifts indexes by contextStart.
offset has to be changed accordingly.

Note that I didn't try to reproduce the monkey bug after this fix, but it
seems like a perfect explanation for the exception.

Change-Id: Ie69adc413670caed283bc46effc69f17a102922c
ndroid/graphics/Paint.java
37cec0fc50760fe89614863eded14011f9412534 28-Jan-2011 Jamie Gennis <jgennis@google.com> Add docs about threading to SurfaceTexture.

This is a docs-only change.

Bug: 3362397
Change-Id: I5fad19a8ae112af73b1e235cf3d54bd2179d165a
ndroid/graphics/SurfaceTexture.java
f4f05b8f24183b9e0d6959fe8b71fb88543edd9b 07-Jan-2011 Scott Main <smain@google.com> Update package descriptions with editorial revisions.
Notably, this removes exessive info about resources
from the content package, because it's not a good location
and the info is avilable in the dev guide, but also
added some of the info to the Resources class description.

Change-Id: Ie78af26c9cec66314deb98e53078f48e16c08e70
ndroid/graphics/drawable/package.html
2b1847ea60650a9f68372abe860415f18b55081d 26-Jan-2011 Romain Guy <romainguy@google.com> Remove unused API

Change-Id: I1714fd82a64b752f0350ef4ef9179ce19e089c6a
ndroid/graphics/Canvas.java
a566b7c3aada08d37cf08096c972e3e641bed773 24-Jan-2011 Romain Guy <romainguy@google.com> Fix bitmap meshes to work in display lists.

Change-Id: Ie226d049840942d9ad9cf58e0c19132f49d62a75
ndroid/graphics/Canvas.java
8418474dab412596c44c71497c0f4a3c39de597e 21-Jan-2011 Jason Sams <rjsams@android.com> Merge "fix bug 3375251 Copying arrays of objects would generate an exception due to excessive internal type checking." into honeycomb
ed5bab93c6851dc4143d6e0d23ebf288e026936b 21-Jan-2011 Jason Sams <rjsams@android.com> fix bug 3375251
Copying arrays of objects would generate an exception
due to excessive internal type checking.

Change-Id: Ic89c24962408f1a95dc0385b74618a70d6ff5859
ndroid/renderscript/Allocation.java
a383b3f646cbc1fd870f2694d4fac24340834916 21-Jan-2011 Patrick Dubroy <dubroy@google.com> Update Bitmap.recycle() doc for heap-allocated pixel data
ndroid/graphics/Bitmap.java
99d49118b857df4051a864b35254e275bc8a68b6 21-Jan-2011 Romain Guy <romainguy@google.com> Merge "Add support for drawBitmapMesh()." into honeycomb
5a7b466a2b4b7ced739bd5c31e022de61650545a 21-Jan-2011 Romain Guy <romainguy@google.com> Add support for drawBitmapMesh().

Change-Id: Ic77f9c534bb90dc7b9458299544bd50b8b6ae6a5
ndroid/graphics/Canvas.java
e9f5c1894bb3fd0d86b769329037790a474f14c1 21-Jan-2011 Stephen Hines <srhines@google.com> Properly use Long2 for "UInt2" for FieldPacker.

We were misusing this API, since it requires the additional precision of
the next size up on unsigned versions of types.

Change-Id: Ic3c87f681ac6705ae0b36a3464ce0d63737945fd
ndroid/renderscript/FieldPacker.java
1368436e428e2af1241bf88cb0688f288f96da1c 20-Jan-2011 Jason Sams <rjsams@android.com> Merge "Check and propogate errors from llvm." into honeycomb
9dd9d021896e350df983baf7174d980a43533e69 20-Jan-2011 Jason Sams <rjsams@android.com> Merge "Expose unchecked copyFrom variants." into honeycomb
fdc54a97ee588bbd6c981a5708050fd97f01baec 20-Jan-2011 Jason Sams <rjsams@android.com> Check and propogate errors from llvm.

Change-Id: Id99a724f746d1f64eabcdf67c12646cc32ff8f9d
ndroid/renderscript/ScriptC.java
4fa3eed8e03348e2629abd539b3476a86b44135e 20-Jan-2011 Jason Sams <rjsams@android.com> Expose unchecked copyFrom variants.

Change-Id: I452d082bb4adbd578b6300bf5829dc59e91e517a
ndroid/renderscript/Allocation.java
120856c50a56595c0954ae1bf6f05888386937b9 19-Jan-2011 Joe Onorato <joeo@google.com> Pass SkRegion::toString() through to java.

Change-Id: I3814b491c689313c1f8da811a104d913175f6268
ndroid/graphics/Region.java
d1ac98149737299513da1357e36f68cbb6d74425 19-Jan-2011 Jason Sams <rjsams@android.com> Fix race condition between GC thread and
the teardown of RS. The RS context was going away while
the objects were being deleted within the finializer.

Add more debugging for playCoreCommands.

Change-Id: I391f0b4db948f43f54017b47b062ab47d6a1ef64
ndroid/renderscript/RenderScript.java
4b26247e8b45850afc78e414a7007266dbdc5d18 18-Jan-2011 Owen Lin <owenlin@google.com> Merge "Change to stream decoding mode if the file descriptor cannot support seek." into honeycomb
a9d0d47076ecf2d1739bb3534abc9deead8ebebd 18-Jan-2011 Owen Lin <owenlin@google.com> Change to stream decoding mode if the file descriptor cannot support seek.

bug: 3298498
Change-Id: Id7ae46bf8e885a417753edbd6648332052fee469
ndroid/graphics/BitmapFactory.java
44593df6fa741c22bfc76d1608160f053b91bd05 18-Jan-2011 Alex Sakhartchouk <alexst@google.com> Merge "More docs" into honeycomb
3240339cfe25b95c04871bb78b09d666ad0e7010 18-Jan-2011 Jason Sams <rjsams@android.com> Merge "Add error checks to the copyFrom functions." into honeycomb
ec0d3353b16741c69681577eb43ccfea435eb4ba 18-Jan-2011 Alex Sakhartchouk <alexst@google.com> More docs

Change-Id: I3dfea7d83bf8525efda59cef6fafa854b5aa9fe3
ndroid/renderscript/FileA3D.java
ndroid/renderscript/Matrix2f.java
ndroid/renderscript/Matrix3f.java
ndroid/renderscript/Matrix4f.java
ndroid/renderscript/Mesh.java
1689c3459b27657b6900429ae64ac5323c584ce3 17-Jan-2011 Romain Guy <romainguy@google.com> Merge "Add BitmapFactory.Options.inMutable to load mutable bitmaps." into honeycomb
2361098da3b9d9c3eeed410dc72ba62c0e9177cf 17-Jan-2011 Romain Guy <romainguy@google.com> Add BitmapFactory.Options.inMutable to load mutable bitmaps.

Change-Id: Iaa222127520f3aa55072d44af12ee3477908b876
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
cf18c4788af740773c9b2720a1c4ed5f45454b8e 17-Jan-2011 Jamie Gennis <jgennis@google.com> Merge "Implement SurfaceTexture frame-available callback." into honeycomb
376590d668e22a918439877b55faf075427b13f3 13-Jan-2011 Jamie Gennis <jgennis@google.com> Implement SurfaceTexture frame-available callback.

This change implements the onFrameAvailable callback for the
SurfaceTexture java class. It includes the C++ SurfaceTexture code as
well as the JNI and Java code to enable the callback.

Change-Id: Ifd8b8e7ad46ee70cba6da1c2e96dab8045d1ea30
ndroid/graphics/SurfaceTexture.java
b97b251c26b801b26f2630e3a2e3f93e4088f2c5 17-Jan-2011 Jason Sams <rjsams@android.com> Add error checks to the copyFrom functions.

Change-Id: Iac064c52eb58b05a94fa1c432304c6216256555b
ndroid/renderscript/Allocation.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/ProgramFragmentFixedFunction.java
ndroid/renderscript/ProgramVertexFixedFunction.java
21b4103e42cb0fa004cc4a978f49f63e7668ab0b 17-Jan-2011 Jason Sams <rjsams@android.com> unhide functions used by reflected files for SDK.

Change-Id: I7cfbfa94cb21207cc5c91e08a60a7184da3f583a
ndroid/renderscript/Allocation.java
ndroid/renderscript/Script.java
ndroid/renderscript/ScriptC.java
dd4a1e3825f4f379ba36fd721f78de0101bb1833 15-Jan-2011 Dianne Hackborn <hackbod@android.com> am 7d234fab: Merge "Don\'t drop the drawable cache completely on configuration change"

* commit '7d234fabe61cd5f034fe4ff4484209fbf5130c4d':
Don't drop the drawable cache completely on configuration change
0b08c5cb14e848f41eb33093c3e8198ab416e0ab 15-Jan-2011 Dianne Hackborn <hackbod@google.com> Merge "Don't drop the drawable cache completely on configuration change" into honeycomb
6efd2bad954e0e5bd74916a32f036a0f149dcd4d 13-Jan-2011 Christopher Lais <chris+android@zenthought.org> Don't drop the drawable cache completely on configuration change

There was a lot of fancy code just above the clear to ensure
that drawables that aren't affected by the change are kept,
then the entire array was cleared. This patch removes the
clear, so that the drawables that haven't changed are really
kept, matching the logs, comments and larger part of the code.

This patch also fixes the various constant states to return
correct ChangingConfigurations.

Change-Id: Ic11f6179537318d3de16dc58286989eb62a07f15
Old-Change-Id: I22495e6ed232dfe056207ce5155405af1fa82428
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
0473ff1ef653434a1a0f3c07be00f7ebcbb472ad 14-Jan-2011 Alex Sakhartchouk <alexst@google.com> Removing things that shouldn't be public

Change-Id: I23ea748f7f4ba27307807d7e1d56e49b7c10a827
ndroid/renderscript/Program.java
8d71769b9bc3d0e72b26217d9059ce4473a91fe5 13-Jan-2011 Christopher Lais <chris+android@zenthought.org> Don't drop the drawable cache completely on configuration change

There was a lot of fancy code just above the clear to ensure
that drawables that aren't affected by the change are kept,
then the entire array was cleared. This patch removes the
clear, so that the drawables that haven't changed are really
kept, matching the logs, comments and larger part of the code.

This patch also fixes the various constant states to return
correct ChangingConfigurations.

Change-Id: Ic11f6179537318d3de16dc58286989eb62a07f15
Old-Change-Id: I22495e6ed232dfe056207ce5155405af1fa82428
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
f5c876e82d7cc647ba94d29eb914e64b7977c303 13-Jan-2011 Alex Sakhartchouk <alexst@google.com> Docs plus removing some junk per API review.

Change-Id: I45f995b656754550be68c78e467071d6e59b348f
ndroid/renderscript/Allocation.java
ndroid/renderscript/FileA3D.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramFragmentFixedFunction.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/ProgramVertexFixedFunction.java
ndroid/renderscript/Sampler.java
62cd5c9788abbd5b715ec2a6eaf64dd3945fdbaf 13-Jan-2011 Wei-Ta Chen <weita@google.com> am 61d9ffbf: Merge "Do not merge." into gingerbread

* commit '61d9ffbfd86dfe6bacce431b8ed9eebe1cfd8178':
Do not merge.
9aba2324ac8d7216732b42346bfcaf0be71eb22e 13-Jan-2011 Jamie Gennis <jgennis@google.com> Merge "Add getTransformMatrix to the SurfaceTexture API." into honeycomb
623c54dd1605d802bb6bfdd0d266a191d4f2d88c 13-Jan-2011 Alex Sakhartchouk <alexst@google.com> Documentation

Change-Id: Idb5f87f9d2c0f7fb4677b1b45c232502d66b4668
ndroid/renderscript/Allocation.java
ndroid/renderscript/ProgramStore.java
208a1c68ee21930112a3704bf8c46a9f27d8d04d 13-Jan-2011 Jason Sams <rjsams@android.com> Merge "Implement more of copy2DRange*" into honeycomb
fb9f82ca4f11cf7e43a001f3e6fd1b381cc86210 12-Jan-2011 Jason Sams <rjsams@android.com> Implement more of copy2DRange*

Change-Id: Id6be481c4abc968df27e5bba1ed044262ec0f293
ndroid/renderscript/Allocation.java
b11e3d2b0edb03a5e3ea535d58b0cbe2d920ed16 12-Jan-2011 Stephen Hines <srhines@google.com> Unhide more of the RS APIs.

Change-Id: I7ec5de42680a4184d3a1380ea7c35b6ba3cf13bf
ndroid/renderscript/AllocationAdapter.java
ndroid/renderscript/FileA3D.java
ndroid/renderscript/Font.java
ndroid/renderscript/Long2.java
ndroid/renderscript/Long3.java
ndroid/renderscript/Long4.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/RSDriverException.java
ndroid/renderscript/RSIllegalArgumentException.java
ndroid/renderscript/RSInvalidStateException.java
ndroid/renderscript/RSRuntimeException.java
ndroid/renderscript/RSSurfaceView.java
8f597fdfacd1b9cda6dfebf4f3a1c34d1ffb5b2f 12-Jan-2011 Jason Sams <rjsams@android.com> Merge "Cleanup bitmap uploads Implement standalone mipmap generation." into honeycomb
f7086090cfc8d97b5bd3b4d7801a27af11f7c207 12-Jan-2011 Jason Sams <rjsams@android.com> Cleanup bitmap uploads
Implement standalone mipmap generation.

Change-Id: Ie3a9781bbe50e2f58adca6f184d84fea50e40263
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
cf894c91a9b6c7749c9bb325c9e54336b97df900 12-Jan-2011 Romain Guy <romainguy@google.com> Merge "Fix CTS test. Bug #3345445" into honeycomb
9454fe1080458812db76599dd02a8b91a2e1e8f4 12-Jan-2011 Romain Guy <romainguy@google.com> Fix CTS test.
Bug #3345445

Change-Id: I3e9fa6002d173e6c9182ee5798420829e4bd2e30
ndroid/graphics/Shader.java
27d116085ebbb112ec1fd959763a027ec08f7179 12-Jan-2011 Alex Sakhartchouk <alexst@google.com> Merge "Adding ability to load cubemaps from individual faces." into honeycomb
b0ba48c95ea8768a051100c5adb4c906caa1e080 10-Jan-2011 Jamie Gennis <jgennis@google.com> Add getTransformMatrix to the SurfaceTexture API.

Change-Id: Icd11ed4982220be9d08b00498aef02531610ce1f
ndroid/graphics/SurfaceTexture.java
4b9adfbe7d0cf578b82eb7794c506ad1986854b9 12-Jan-2011 Wei-Ta Chen <weita@google.com> Merge "Correct the API comments." into honeycomb
96d3b5e38301f5d4eff01de8730b6021eb167af9 12-Jan-2011 Wei-Ta Chen <weita@google.com> Correct the API comments.

BitmapRegionDecoder supports PNG as well.

Change-Id: I5f1b95c20c3ae87738f9814cfc16d6a4c5af2bf5
ndroid/graphics/BitmapRegionDecoder.java
25bce3a673afef6a7858270afae4395b4ab53de3 24-Dec-2010 Wei-Ta Chen <weita@google.com> Do not merge.

Backport changes related to BitmapRegionDecoder from HoneyComb to
Gingerbread.

Bug: 3309014

////////////////////////////////////////////////////
This is a combination of 7 commits.
Revert "Do not merge."

This reverts commit f7681f84918c27f6a626681ce37ed2a236c44e82.

Change-Id: I46fd710600b1649773eaea2d9abc2b21a592f9a6

Fix a initialization bug in BitmapRegionDecoder.

Change-Id: I6c1151fd34970a84d4de52d664d9a5dc464892c5

Fix segfault when tring to throw IOException.

Change-Id: I530cc4409ba4ca17cec933afad077c5f60ba554f

Fix 3122139, where previewing an attachment for the second time will
fail.

Use AutoFDSeek to mark and restore the position before we read data from
the descriptor.

Change-Id: I3d4f012dce486e19b113bc90a98b94031cfa8195

Add inPreferQualityOverSpeed into BitmapFactory.Options.

The new field allows a developer to use a more accurate by
slightly slower IDCT method in JPEG decode. This in turns improves the
quality of the reconstructed image.

The field by default is not set and thus does not affect existing
applications.

Bug: 3238925
Change-Id: I93d55b7226e47a43e639325cd1a677694d6f2ee4

Unhide inPreferQualityOverSpeed in BitmapFactory.Options.

The new field allows a developer to use a more accurate by
slightly slower IDCT method in JPEG decode. This in turns improves the
quality of the reconstructed image.

The field by default is not set and thus does not affect existing
applications.

Bug: 3238925

Related changes: https://android-git.corp.google.com/g/#change,83291 and
https://android-git.corp.google.com/g/#change,83294

Change-Id: I969f5c413f9b2179454aeb90e18ae8222ee583b4

Correct the API comments.

BitmapRegionDecoder supports PNG as well.
ndroid/graphics/BitmapFactory.java
ndroid/graphics/BitmapRegionDecoder.java
252c07802f7039f15f723751162e64a6621e6998 12-Jan-2011 Jason Sams <rjsams@android.com> Add error checks to bitmap uploads.
Fix java side calculation for pixel sizes.

Change-Id: I2636db2ccdc9a330214fe9d8b26617b33e52ec8e
ndroid/renderscript/Allocation.java
ndroid/renderscript/Element.java
dcc231955d81c66309ce97cca05a25f79ee7d5ea 11-Jan-2011 Alex Sakhartchouk <alexst@google.com> Adding ability to load cubemaps from individual faces.

Change-Id: Ic8b6693f625c181e031d4393ba8fac40049da88b
ndroid/renderscript/Allocation.java
3b703f2d11f20efaa953ad31d6c97fe3561efb03 11-Jan-2011 Romain Guy <romainguy@google.com> Hide Canvas.getGL()

Change-Id: I6d81cf9f43ce0c990fe30b3b3159c95ac738ae79
ndroid/graphics/Canvas.java
fe852e216fdfab20e7b3d3e55247f70634d267b9 11-Jan-2011 Alex Sakhartchouk <alexst@google.com> Updating cubemap loading code.

Change-Id: I93bb00e5fd1ccc622d17eba70a510664c2093723
ndroid/renderscript/Allocation.java
67e3d206ca80dd97309ca63169503088cb509bde 09-Jan-2011 Jason Sams <rjsams@android.com> Hide and delete some code that should not be public.

Change-Id: Ibe201c235fc81ef1fecb120d6049d6e56222462c
ndroid/renderscript/Script.java
ndroid/renderscript/ScriptC.java
6c191768f112d17f926e9b3bf5ed581af7273cb8 09-Jan-2011 Alex Sakhartchouk <alexst@google.com> Merge "Adding comments to the renderscript program classes." into honeycomb
df27202debdc2573b7882405010fba31ee4d46e6 09-Jan-2011 Alex Sakhartchouk <alexst@google.com> Adding comments to the renderscript program classes.

Change-Id: I989575951df1218c1e753dfa12193d560266bf11
ndroid/renderscript/Mesh.java
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramFragmentFixedFunction.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/ProgramVertexFixedFunction.java
fa445b9353972735d8d65e8a936786b1afe9886d 08-Jan-2011 Jason Sams <rjsams@android.com> Cleanup subdata apis

Change-Id: I70d0d5e4ca2b42f3a9cbf854fe47917cee8f46df
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
b0253ea6969bdd27bf574e0da7fa91aa6d09f44f 07-Jan-2011 Alex Sakhartchouk <alexst@google.com> Additional loading methods for fonts and a3d files.
Cleaned up error messages.

Change-Id: Id33b7149671df23c37cc11375d844a7837dac750

Change-Id: I6663ce54f7b9bbaf285935ca658d93ba417f8179
ndroid/renderscript/FileA3D.java
ndroid/renderscript/Font.java
ndroid/renderscript/RenderScript.java
6714efc5e0c52953b65e774de0003e22377e7d39 20-Dec-2010 Jamie Gennis <jgennis@google.com> Add the SurfaceTexture java class.

This class exposes to Java the application-side interface to the
SurfaceTexture C++ class.

Change-Id: I0dba42aad90257c7adbde6fa362658c0717b70d0
ndroid/graphics/SurfaceTexture.java
70588bf864f961974c93aace7586d3e2773a54a8 05-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of 3a2c6bf0 to master

Change-Id: I1963d8fc391bb84de1054f2b20ce4e082d764cbe
3a2c6bf0fcae9421cccf113ff972df7aaeb6d3e9 05-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> am 69ea4e15: Documentation fixes found over vacation hacking.

* commit '69ea4e15e52c456537575d21443ac1efdb03a902':
Documentation fixes found over vacation hacking.
69ea4e15e52c456537575d21443ac1efdb03a902 05-Jan-2011 Brad Fitzpatrick <bradfitz@android.com> Documentation fixes found over vacation hacking.

Change-Id: I28900026465d66d950cf4f05f0c202b46c3c2d43
ndroid/graphics/drawable/Drawable.java
cfc2330c4eb42c8e71d00d1a13e84089adcbd595 05-Jan-2011 Jason Sams <rjsams@android.com> fix build

Change-Id: I4991e3e11b2f44328ee272dcb498c6b9fd90c5ee
ndroid/renderscript/Type.java
334108b56c60ecb0aec25b63708aa2f9668e2926 05-Jan-2011 Jason Sams <rjsams@android.com> Random cleanup

Change-Id: Ife6f19d51e8229b6cf1ca8689df7baba2fcb4dc9
ndroid/renderscript/Dimension.java
ndroid/renderscript/RenderScriptGL.java
a23d4e792cb13090c540edfdd5cee03799bb9d48 05-Jan-2011 Jason Sams <rjsams@android.com> unhide renderscript

Change-Id: I44dd19aec0a994316da22ea8bea01b9962f54680

api update

Change-Id: I77f5365b8b7a919cd572ceb65a9ab3871b9495d0
ndroid/renderscript/Allocation.java
ndroid/renderscript/BaseObj.java
ndroid/renderscript/Byte2.java
ndroid/renderscript/Byte3.java
ndroid/renderscript/Byte4.java
ndroid/renderscript/Element.java
ndroid/renderscript/FieldPacker.java
ndroid/renderscript/Float2.java
ndroid/renderscript/Float3.java
ndroid/renderscript/Float4.java
ndroid/renderscript/Int2.java
ndroid/renderscript/Int3.java
ndroid/renderscript/Int4.java
ndroid/renderscript/Matrix2f.java
ndroid/renderscript/Matrix3f.java
ndroid/renderscript/Matrix4f.java
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramFragmentFixedFunction.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/ProgramVertexFixedFunction.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/Sampler.java
ndroid/renderscript/Script.java
ndroid/renderscript/ScriptC.java
ndroid/renderscript/Short2.java
ndroid/renderscript/Short3.java
ndroid/renderscript/Short4.java
ndroid/renderscript/Type.java
6b1f6e6ac1d8c8cff778ee161f430e077a82082e 05-Jan-2011 Romain Guy <romainguy@google.com> Merge "Keep a reference to the local matrix. Bug #3299324"
a9ebfa6bcce62d7fee69693fe3dee6027afd3f0e 05-Jan-2011 Romain Guy <romainguy@google.com> Keep a reference to the local matrix.
Bug #3299324

This is needed for ADT, which does not rely on Skia's reference counting
to correctly keep track of the native objects.

Change-Id: Ia2fc5c1ec2b80bad226bc549fefc6bb064784609
ndroid/graphics/Shader.java
b341df446ba852d6c092da7f76dc5b8d685047e7 04-Jan-2011 Michael Jurka <mikejurka@google.com> Merge "Fixed bug with reverseTransition"
69011ff5e1e306d7f3e635be1b3681b622c51d67 30-Dec-2010 Jason Sams <rjsams@android.com> Merge "Move adapter2D to a derived class from Allocation."
49a05d7b82956009f03acbb92a064eed054eb031 29-Dec-2010 Jason Sams <rjsams@android.com> Move adapter2D to a derived class from Allocation.

Change-Id: I7e9d8b0028ba95956476f253da38dbe64564d0da
ndroid/renderscript/Allocation.java
ndroid/renderscript/AllocationAdapter.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Type.java
b3b89f63af148031817c046ba8023b76241c1e7c 29-Dec-2010 Alex Sakhartchouk <alexst@google.com> Fixing a bug in the load function.

Change-Id: Ie5e72836dec7f77d42c8cb9afb8c3d5591ff35a7
ndroid/renderscript/Matrix2f.java
ndroid/renderscript/Matrix3f.java
ndroid/renderscript/Matrix4f.java
b4d7bb6872f523b4318144202e119766ed9054ed 21-Dec-2010 Alex Sakhartchouk <alexst@google.com> API cleanup for renderscript. This will be a multiproject commit.

Change-Id: Ida62d3a155285a20725be9daa62217faef1c3734
ndroid/renderscript/FieldPacker.java
ndroid/renderscript/Matrix2f.java
ndroid/renderscript/Matrix3f.java
ndroid/renderscript/Matrix4f.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/Primitive.java
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramFragmentFixedFunction.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/ProgramVertexFixedFunction.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Sampler.java
65e293273a2bd1598af46e3a070733bfc5688ac3 21-Dec-2010 Michael Jurka <mikejurka@google.com> Fixed bug with reverseTransition

- calling this multiple times very quickly left the transition showing the wrong drawable
ndroid/graphics/drawable/TransitionDrawable.java
96abab264e4d96071dc169b4828e950c1ae59681 21-Dec-2010 Patrick Dubroy <dubroy@google.com> Merge "Ensure bitmaps aren't freed while referenced from a display list"
f890fab5a6715548e520a6f010a3bfe7607ce56e 20-Dec-2010 Patrick Dubroy <dubroy@google.com> Ensure bitmaps aren't freed while referenced from a display list

Also removes the reference queue finalizers. They aren't necessary
anymore now that Bitmaps are allocated in the heap.
ndroid/graphics/BitmapShader.java
e688213f6f2b2e10eb7a5c70b43fe0c3ad45db81 20-Dec-2010 Jason Sams <rjsams@android.com> Merge "Clean up Allocation buffer object api."
d19524047fa2d12ecd45ebcf69543836e1b45579 20-Dec-2010 Jason Sams <rjsams@android.com> Clean up Allocation buffer object api.

Change-Id: Id3e2391a93a99f4c414a805ee33cfd113242a7e6
ndroid/renderscript/Allocation.java
ndroid/renderscript/Mesh.java
eeca435dc6134a285b9bbb832cd6a1a88f34e85f 20-Dec-2010 Shih-wei Liao <sliao@google.com> Stale cache management to address a P1 bug # 3296131.

Change-Id: I593f35a91c4a14c055828f8989fe01b9e7790039
ndroid/renderscript/RenderScript.java
ndroid/renderscript/ScriptC.java
2118b25ad422e946d4d87e191c5710bfacd7503e 18-Dec-2010 Carl Shapiro <cshapiro@google.com> Eliminate tracked allocations and the inNativeAlloc option.

Change-Id: Ic10b2b41a26925d799e5d1e50be77fc480ec0f17
ndroid/graphics/BitmapFactory.java
e27cdeeecba5b445e307d653d9cb7da007adfac3 17-Dec-2010 Alex Sakhartchouk <alexst@google.com> API reaview cleanup

Change-Id: Ib1aaf81130ffa6b5e6c60096c27c969e8891db3f
ndroid/renderscript/FieldPacker.java
ndroid/renderscript/FileA3D.java
ndroid/renderscript/Font.java
ndroid/renderscript/Matrix2f.java
ndroid/renderscript/Matrix3f.java
ndroid/renderscript/Matrix4f.java
ndroid/renderscript/RenderScript.java
27c1d4debb3848f5accd5673fffeeacad3e61648 16-Dec-2010 Chet Haase <chet@google.com> Fix minor animation and doc issues

Change-Id: I0ea077d9434ac3e22e8600f22ca4a24a6a46965c
ndroid/graphics/Paint.java
e5d3712d9eaef7ebbf142b508bd740414d930cb0 16-Dec-2010 Jason Sams <rjsams@android.com> Remove outdated texture upload functions.

Change-Id: Ie3f9ba64a94425fa96b1924cb4b70dd36b71e294
ndroid/renderscript/Allocation.java
0857196107d55bae312c12b72b115d25d5fee4f9 15-Dec-2010 Alex Sakhartchouk <alexst@google.com> Cleanup and refactoring of an earlier cl.

Change-Id: I5e356ed88375a1620846e0c500659e3b7ead5030
ndroid/renderscript/Sampler.java
6d8eb266dd398abf0511685fdaf98abba3396174 15-Dec-2010 Jason Sams <rjsams@android.com> Fix mipmap bug introduced with Allocation cleanup.
Add syncAll to rsg headers.

Change-Id: I02c953f3fddab3c6f4e98570cdad45a59711bbde
ndroid/renderscript/Allocation.java
82d4a3ab858f0652c6fe76fc429e5f4f9c55fafe 15-Dec-2010 Romain Guy <romainguy@google.com> Merge "Make Drawable.mCallback a WeakReference."
f2a47782f31b58d2d31bd00b50fe43604af8b9c2 15-Dec-2010 Romain Guy <romainguy@google.com> Make Drawable.mCallback a WeakReference.

Many memory leaks occur because of long lived drawables. This should
help.

Change-Id: I2e9e8dee26579ec56e8e73f08f6b1d62be7812d9
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
982b71bf4713d57b0fdb9acaaf9f9465a817aacb 15-Dec-2010 Patrick Dubroy <dubroy@google.com> Merge "Allocate bitmap backing buffers in the Java heap."
e4ac2d6b5723c95e648c489b187ddde449452c13 01-Dec-2010 Patrick Dubroy <dubroy@google.com> Allocate bitmap backing buffers in the Java heap.

Change-Id: I60f6ccff13357c1c518e9d56b02fe0171637edd1
ndroid/graphics/Bitmap.java
ndroid/graphics/Canvas.java
6b32fab1dbfd8bc1cc176557fe0a7b2ebd4966bd 10-Dec-2010 Shih-wei Liao <sliao@google.com> 1. Add Context to a RenderScript or RenderScriptGL instance.
This is to allow RenderScript to better interact with the Android environment.
E.g., per-app cache.
2. Plumbing, testing.
3. Added getApplicationContext in RenderScript.java.

Change-Id: I85edeebe38825e20b2e86f4f4815689dfc332ef9
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/ScriptC.java
d4b23b54445b13dacaafad97d100999abb36ea6f 14-Dec-2010 Jason Sams <rjsams@android.com> More API updates.

Change-Id: I754dc645ac08fa25019eed8fd8b7b3c47f178ff2
ndroid/renderscript/Allocation.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/RenderScript.java
ad3ec1b9cb7885a7c5a18012764d63bdc0cdbb88 13-Dec-2010 Chet Haase <chet@google.com> Merge "Add ability to reuse bitmaps when decoding PNG content"
decc8cd41eca3770c8f5ee13d81b9cd5f0c25ccd 11-Dec-2010 Chet Haase <chet@google.com> Add ability to reuse bitmaps when decoding PNG content

Change-Id: Ic74b62c6280954ff80bcf64f3989a36c7c0b5615
ndroid/graphics/BitmapFactory.java
4ef6650bd05a39a09958ea1db92f120ea4949cb1 11-Dec-2010 Jason Sams <rjsams@android.com> Remove CreateFromBitmapRef and add
CopyTo(bitmap) replacement.

Change-Id: Ib73fb9f4bfe5f468eaf0f8f1bf68a93759eef00d
ndroid/renderscript/Allocation.java
ndroid/renderscript/Element.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
37f74cad46c6f1799aec3c52e8f47598237f43d4 09-Dec-2010 Chet Haase <chet@google.com> Add ability to reuse bitmaps when loading new content

Change-Id: Ic5f5f40ee39787403977fb372b335dc21cf07243
ndroid/graphics/BitmapFactory.java
5476b450e50939940dcf3f15c92335cee2fc572d 09-Dec-2010 Jason Sams <rjsams@android.com> Allocation API update.

Change-Id: I9b4a71f9e94c7d3978f06b7971051ab4f8472503
ndroid/renderscript/Allocation.java
ndroid/renderscript/BaseObj.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Script.java
0e007d7ab9ae4f1be506f4976182609d80d75a5c 07-Dec-2010 Wei-Ta Chen <weita@google.com> Unhide inPreferQualityOverSpeed in BitmapFactory.Options.

The new field allows a developer to use a more accurate by
slightly slower IDCT method in JPEG decode. This in turns improves the
quality of the reconstructed image.

The field by default is not set and thus does not affect existing
applications.

Bug: 3238925

Related changes: https://android-git.corp.google.com/g/#change,83291 and
https://android-git.corp.google.com/g/#change,83294

Change-Id: I969f5c413f9b2179454aeb90e18ae8222ee583b4
ndroid/graphics/BitmapFactory.java
bf6ef8d78fffbce6c1849a4a28fb3f4401ad039e 07-Dec-2010 Jason Sams <rjsams@android.com> API review cleanup.

Change-Id: Ieae7d450308b5637ed4253fe9baed3634c6ed141
ndroid/renderscript/Allocation.java
ndroid/renderscript/BaseObj.java
ndroid/renderscript/Element.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/Sampler.java
ndroid/renderscript/Type.java
953f9094a2ec14594fa8501d5f3e2d9e300b1b62 03-Dec-2010 Wei-Ta Chen <weita@google.com> Add inPreferQualityOverSpeed into BitmapFactory.Options.

The new field allows a developer to use a more accurate by
slightly slower IDCT method in JPEG decode. This in turns improves the
quality of the reconstructed image.

The field by default is not set and thus does not affect existing
applications.

Bug: 3238925
Change-Id: I93d55b7226e47a43e639325cd1a677694d6f2ee4
ndroid/graphics/BitmapFactory.java
8c7a580b34d67fefd5f777c7bd6247b2d3960608 03-Dec-2010 Dianne Hackborn <hackbod@google.com> Some theme cleanup.

- Add new dialog themes without a title bar.
- Add new Theme.Holo.NoActionBar.DialogWhenLarge.
- Remove old Extended and Theme.Light.Holo themes.
- Reorder the public definitions to keep things nice.

Also @hide the MipmapDrawable class.

Change-Id: Ic69a56e9b28aacf441780633f37f0bc6a475d08a
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/MipmapDrawable.java
0bb000931bb841e75903d655552d1626ae158707 03-Dec-2010 Gilles Debunne <debunne@google.com> Fix in vertical measurement in text lines with different text sizes

The last span of the TextLine was defining the FontMetrics, instead of
min/maxing the different values.

Bug 3220698

Change-Id: I7394b1699a15aeee4cc38462d561faf329d3e1f6
ndroid/graphics/Paint.java
2970c499388b4dcd1232cd622a9b80b395eeb2b4 09-Nov-2010 Chet Haase <chet@google.com> various fixes for animations and javadocs

Issues around threading of animations and AnimatorSet bugs are
fixed in this change. Unrelated fixes to javadocs in other
framework classes are also part of the change.

Change-Id: I35f7e03ffdec9143bc2eb155e8f9384798ad35b3
ndroid/graphics/ComposeShader.java
add9d9633205f76cc34f04368b8482c2c369ba63 23-Nov-2010 Jason Sams <rjsams@android.com> More error checks

Change-Id: Id2b9ab7a76bbdf2ed745f5e36e552dc9b101982f
ndroid/renderscript/RenderScript.java
67f2e442a31b8395e3c1951f8e91139ec7f2be99 19-Nov-2010 Alex Sakhartchouk <alexst@google.com> Support for cubemaps.

Change-Id: Iaf6087f614451a8e233b3e5bc49c834ab0ad08ee
ndroid/renderscript/Allocation.java
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/RenderScript.java
a914f340ae5b267dc3ab36c1156c795b8fa18f5d 08-Nov-2010 Shih-wei Liao <sliao@google.com> Add caching support of BCC binaries.

Change-Id: I1e75bb84d88319cb6f1bbe6d907cf6e8ed546142
ndroid/renderscript/RenderScript.java
ndroid/renderscript/ScriptC.java
e70b375c4b9d73d1165a21a421cfd73170cd06cc 18-Nov-2010 Joe Onorato <joeo@google.com> Add an opacity attribute to LayerDrawable that lets you control the opacity directly instead of
collecting the values from the children-- a task that is much harder to get right than we want to
spend startup time on.

Change-Id: Idf5b1d612472c6accfdc935c6a6fadb1eb239a73
ndroid/graphics/drawable/LayerDrawable.java
68f0a32d103d3861103bce3763b222bde99c0a4c 17-Nov-2010 Jason Sams <rjsams@android.com> Merge "Fix ref counting for globals when set from java code."
6f4cf0b8885403ead157ae00fd43cf1282331c23 17-Nov-2010 Jason Sams <rjsams@android.com> Fix ref counting for globals when set from java code.

Change-Id: I415b6ddeaab277e60233e905a6bae357cd5193eb
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Script.java
4bd1a3dbcad2ae424293e276434b45ebee97248d 16-Nov-2010 Jeff Sharkey <jsharkey@android.com> Show Bitmap.Config value when unable to handle.

Part of investigating http://b/3201172.

Change-Id: I76a31c968b4c60beb079349a0722aa9a4ea5921c
ndroid/renderscript/Allocation.java
6af97e1c20df4d7010fafd7059c95d9b4113e4a6 12-Nov-2010 Adam Powell <adamp@google.com> Revised assets for progress bars and indeterminate progress spinners.

Add support in ActionBar for activity-wide progress APIs.

Add ability for progress bars to set a target framerate rather than
the 5fps previously used.

Clean up some more dialog layouts using hardcoded styles rather than
theme attributes.

Change-Id: I8e88c7595e27c0b6f7829b598f2b084ac8501ae3
ndroid/graphics/drawable/RotateDrawable.java
7194a7bacd67105ce8a19cbccb9a9fbd2b4874a7 13-Nov-2010 Jason Sams <rjsams@android.com> Merge "Document RS element and type and add validity checking to type creation."
a1b13ed0912a7e08f9848196b4ca64dcb5db9d0b 12-Nov-2010 Jason Sams <rjsams@android.com> Document RS element and type and add validity checking to type creation.

Change-Id: Ic96c0199e27785b3eabde2c6e95ed514915328e9
ndroid/renderscript/Element.java
ndroid/renderscript/Type.java
d99a7be36ebf5f145bbe7f73e50251f2b3cc5fcb 12-Nov-2010 Jason Sams <rjsams@android.com> Merge "More documentation."
021aad952bee3ac9ee4a98c09f1a012359088dd2 10-Nov-2010 Adam Powell <adamp@google.com> First pass at styling progress bars for Holo.

Added attribute to let scale drawables size based on the intrinsic
width and height as a minimum. This helps prevent artifacts when
some 9-patches are used in situations like progress bars.

Change-Id: I168a232d3225afe9b5578a05a9b8634a1084404c
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
449bb119c954e6beacdfc7074c4d4a8254a07a13 11-Nov-2010 Chet Haase <chet@google.com> Merge "Add invalidation to Drawable when its properties change"
9891e1fce5f29d0421d34aa481037417bd70853d 11-Nov-2010 Chet Haase <chet@google.com> Add invalidation to Drawable when its properties change

invalidateSelf() already exists on Drawable. This triggers a call to
callback listeners so that they know the drawable has been invalidated.
For example, the background drawable on View will cause the View itself
to be invalidated.

Change-Id: I45b231a7600dcf3bc139e4059b7c9940ff49f60c
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/PaintDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
27676fe24be7444a174c15df476e49adc5335d03 11-Nov-2010 Jason Sams <rjsams@android.com> More documentation.

Change-Id: I423ff081edd4dab9173bc13d05850bb39839b6d3
ndroid/renderscript/BaseObj.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
06d69de78845659e6904ae4964e606a7f1a6a4a8 10-Nov-2010 Jason Sams <rjsams@android.com> Continue error check improvements and write some docs.

Change-Id: I345b08490da21d9ee715ff1ddc80c1a816b579f4
ndroid/renderscript/Allocation.java
ndroid/renderscript/BaseObj.java
ndroid/renderscript/Element.java
ndroid/renderscript/FileA3D.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Script.java
ndroid/renderscript/ScriptC.java
ndroid/renderscript/Type.java
1c41517124a90fcfdb95dc069fc492c6fcf1ff25 09-Nov-2010 Jason Sams <rjsams@android.com> Handle user message ID 0
Pass RS runtime errors back to java.
throw exceptions for runtime errors.

Change-Id: Ifcf16cbbf9b98137971dced5076f8a5563eb016c
ndroid/renderscript/RenderScript.java
9d71e2180062931416092f26276a07e55b318f62 09-Nov-2010 Alex Sakhartchouk <alexst@google.com> Moving attrib creation to Mesh. Adding arrays as shader inputs.
Removing fixed size arrays.

Change-Id: I0213e403a2f1283dd43f21bea770aeb059561903
ndroid/renderscript/Mesh.java
ndroid/renderscript/RenderScript.java
afb9965fe883f86374c89baeea5ba7d6dcf2184c 05-Nov-2010 Jason Sams <rjsams@android.com> Merge "More RS exceptions cleanup. Remove some dead code."
c1d6210fb5cc558ccea95a59a2b33bb9015fc7de 04-Nov-2010 Jason Sams <rjsams@android.com> More RS exceptions cleanup.
Remove some dead code.

Change-Id: If97e3fdfe6de7bb28f22e1c5ee748c81cea3db93
ndroid/renderscript/BaseObj.java
ndroid/renderscript/Element.java
ndroid/renderscript/Program.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/Type.java
8ad4b47920a88c6317c270514f0ce7b0b053d0a4 04-Nov-2010 Romain Guy <romainguy@google.com> Merge "Fix possible rendering issue when drawing a path."
1041aded2df45094c36831028245fb7c5e9b67b7 04-Nov-2010 Romain Guy <romainguy@google.com> Fix possible rendering issue when drawing a path.

Change-Id: I25f2e609589f0dd9294bcf7930de6398c0d7e377
ndroid/graphics/drawable/GradientDrawable.java
6b81399aa1aebfcd02a0dff142996d13b75eacb7 04-Nov-2010 Jason Sams <rjsams@android.com> Merge "Update ScriptC constructor to remove depricated param."
3ba02b3d2f6fb49677466a2e93c96f307d2a7a41 04-Nov-2010 Jason Sams <rjsams@android.com> Update ScriptC constructor to remove depricated param.

Change-Id: Id36e325834526c6b5416fd78d5cf4259d7df97e9
ndroid/renderscript/ScriptC.java
079e23575024e103358c982152afb7a720ae1a8a 19-Oct-2010 Dianne Hackborn <hackbod@google.com> Add new fade in/out feature for drawable containers.

This is used to allow list view's pressed and activated indicators
to fade in an out, though of course it can be used elsewhere as well.

There is a lot of complexity in supporting this in list view. The
two main things that are being dealt with:

- When recycling views, we need to make sure that the view's drawable
state doesn't get animated from an old row's state. The recycler
now keeps track of which position a view was last in, and if it is
reused at a new position there is a new View/Drawable API to tell
it to jump to its current state instead of animating.

- For the pressed indicator to fade out, we need to keep displaying it
after it is hidden. There are new variables and code to keep track
of this state, and tweaks in various places to be able to remember
the last selected position and continue updating the drawable bounds
as needed.

Change-Id: Ic96aa1a3c05e519665abf3098892ff2cc4f0ef2f
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/StateListDrawable.java
d5f06300341df0990be3e0b7a26fa49b13c6fc19 03-Nov-2010 Jason Sams <rjsams@android.com> RS Error cleanup.
Thow java exception during init if the
GL driver fails rather than native crash.

Change-Id: Ie96ef5a2ac12e64f9456545d86157c4c95179a8e
ndroid/renderscript/RSDriverException.java
ndroid/renderscript/RSIllegalArgumentException.java
ndroid/renderscript/RSInvalidStateException.java
ndroid/renderscript/RSRuntimeException.java
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/Type.java
7d5411fd3f08326d88142bc8f83ad41405893471 02-Nov-2010 Jason Sams <rjsams@android.com> Merge "Fix race condition in resize that was created when GetType for allocation and Types became async."
d26297fa562d8bb203df1bb5e6ded7f62c56cdb7 02-Nov-2010 Jason Sams <rjsams@android.com> Fix race condition in resize that was created when
GetType for allocation and Types became async.

Change-Id: Ie7036f9481cececf9565d30b25be82480f176ff2
ndroid/renderscript/Allocation.java
70d4ba15b1f0c1133c5aabc86de828b41e482fff 06-Oct-2010 Chet Haase <chet@google.com> Performance optimizations for animations and toolkit

Change-Id: I316a48273a9cbb428a965e4b849b3e5e9e8202f1
ndroid/graphics/drawable/ColorDrawable.java
5585e36a413dcc70a4bdd04063ea31db2519ea8d 29-Oct-2010 Jason Sams <rjsams@android.com> Balls test app.

Change-Id: I842f43e37145f8112120e2bd49925f81c588c40c
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/ScriptC.java
581cc64028e8b8f66cec8105bf530b16d5fb34eb 27-Oct-2010 Alex Sakhartchouk <alexst@google.com> Adding nvidia extension for limited npot support.
Updating a3d loading to be async.

Change-Id: I4be71d2002b9ad6ab8896d63e625f031e6b7ea6c
ndroid/renderscript/FileA3D.java
64eb351cff16db2aeaf2c279fbcce9c6a80d0047 27-Oct-2010 Jason Sams <rjsams@android.com> Merge "Begin adding async allocation creation."
31a7e42f4baa059352f0db119de38428e655eab2 26-Oct-2010 Jason Sams <rjsams@android.com> Begin adding async allocation creation.

Change-Id: I5d1381699e2b334c1d824f357bd6b310a5f79be8

Implement async bitmap upload and clean up types.

Change-Id: Icbe9894e04c1319351c1cd75b0e0017855198f20
ndroid/renderscript/Allocation.java
ndroid/renderscript/Script.java
ad93c2bb63dfc813b2eefa1043aa63afbddce655 23-Oct-2010 Chet Haase <chet@google.com> Optimizing ColorFilter in display lists

Change-Id: Ie4d5e5b0bc45e0ce47bba144049303c270762e54
ndroid/graphics/ColorMatrixColorFilter.java
ndroid/graphics/LightingColorFilter.java
ndroid/graphics/PorterDuffColorFilter.java
98bfe5d02a81c15fff52570178a2edd830701665 19-Oct-2010 Alex Sakhartchouk <alexst@google.com> Some cleanup

Change-Id: Ie10746d2f77318d63101d919214e76f778159fa0
ndroid/renderscript/FileA3D.java
3b9c52ab8c1ab240d2299358d01a8efbe392d111 15-Oct-2010 Jason Sams <rjsams@android.com> Async type creation.

Change-Id: I4d98446fabbf7e8a98c97f85b573a58c8a0c58c2
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Type.java
838c6a15783b3ca9adc1ab49b25043ee272f63de 14-Oct-2010 Alex Sakhartchouk <alexst@google.com> Merge "Changing scenegraph sample to use arrays."
c9332fa3e9e9e0897482a9c26cf9d997e57376b7 13-Oct-2010 Bjorn Bringert <bringert@android.com> Delete unused WebView drag tracking code

This also removes android.graphics.utils.BoundaryPatch
which was only used by the Browser for the unused drag
tracking (and by a demo app that I'm also removing).

Change-Id: I48253ae005ab11cb4c70d132bc1ea4f2692e2bd2
ndroid/graphics/utils/BoundaryPatch.java
0726fd9e835579019f6b23ab50d7b45401e11dbe 14-Oct-2010 Jason Sams <rjsams@android.com> Merge "Begin hooking up SurfaceConfig."
11c8af9ded3a319635b4e91a639a616ec97fc7e3 14-Oct-2010 Jason Sams <rjsams@android.com> Begin hooking up SurfaceConfig.

Change-Id: I328138f29affbed11fcfb5e9ed0872d4ba22d241
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
9e401bcd88a0fdeea96f53cb776e5de7b5b084cb 13-Oct-2010 Alex Sakhartchouk <alexst@google.com> Changing scenegraph sample to use arrays.

Change-Id: Ifa454d503c1445efcad6e31243b65d75e62e3035
ndroid/renderscript/Element.java
41030da16856c8869e1e51d4a0405432fa96614e 13-Oct-2010 Romain Guy <romainguy@google.com> Add a getNativeMatrix() API.

This API can be used by WebView to apply the appropriate transform
on its rendering.

Change-Id: I79aa39a29805f462fb08226370328815e74bdc52
ndroid/graphics/Canvas.java
4bb942083a0d4db746adf95349108dd8ef842e32 13-Oct-2010 Romain Guy <romainguy@google.com> Optimize 9patch rendering.

This change detects empty quads in 9patches and removes them from
the mesh to avoid unnecessary blending.

Change-Id: I4500566fb4cb6845d64dcb59b522c0be7a0ec704
ndroid/graphics/NinePatch.java
9db91243c5ace4421091557b76a0b1cbd2312fec 12-Oct-2010 Romain Guy <romainguy@google.com> Simplify black texture fragment shader.

Change-Id: If2d43f92f4c98ec128692761a670b0f31207a3c0
ndroid/graphics/drawable/NinePatchDrawable.java
52d836332f6aae74ed97fda1b53681f36710af64 12-Oct-2010 Stephen Hines <srhines@google.com> Support for unsigned long and unsigned long long.

Change-Id: I2f9cfb7f352e2e7e7fd49eac42a821c03b5fcb9f
ndroid/renderscript/Element.java
ndroid/renderscript/RenderScript.java
26ae3904e8050eae655722caf93ee5d3f0ab195a 11-Oct-2010 Alex Sakhartchouk <alexst@google.com> Update allocation from bitmap.
GL attribute cleanup in type.

Change-Id: I504dcf6744ad13d65e068e784b6608c999ab48c6
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
031ec58cfc7a20927302a5300eba3f5fc1709b50 11-Oct-2010 Stephen Hines <srhines@google.com> Fix support for 64-bit integers.

Change-Id: I4e2146a5fda41f280ee3f6f685a34f3cff28f05e
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Script.java
2222aa90031604e9752ebc2909303a84139b8b18 11-Oct-2010 Jason Sams <rjsams@android.com> Cleanup error message for null binding address.
Only print the debug if script debugging is enabled.

Change-Id: I72b9c2a73d49987a73b354442e9defec02b93bc6

Implement inner utiliy class to specify surface formats.
Remove boxed bitmap upload functions.

Change-Id: I3ff5ca59e53d02b9d75277afa947ea3d218459eb
ndroid/renderscript/Allocation.java
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
38d509697c7d1f989509281cbd9cfaacf9a20ac3 07-Oct-2010 Alex Sakhartchouk <alexst@google.com> Merge "changing vec4 to vec2 for perf reasons."
d2091639be426574c04f74969fe553162d7a51c9 06-Oct-2010 Alex Sakhartchouk <alexst@google.com> changing vec4 to vec2 for perf reasons.

Change-Id: Ic885a6dc697af4fd82e184158772863673f041bd
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramVertex.java
68159aabb3d116ec06671fef3900be6fab2de502 05-Oct-2010 Jason Sams <rjsams@android.com> Merge "Implement allocation resizing."
5edc608a0749ed4b7074b5c1243043eb722c3c31 05-Oct-2010 Jason Sams <rjsams@android.com> Implement allocation resizing.

Change-Id: Ie38d42419d595cec730a8721cc1321c5edb6b4d6
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
5e9f64ce24b3381ee48f9e12242aba5216f136a4 04-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am b12bfbd4: am eb6e22f2: Merge "Document Bitmap.createScaledBitmap" into gingerbread

Merge commit 'b12bfbd4df985041ab0e584ef5a746328baac038'

* commit 'b12bfbd4df985041ab0e584ef5a746328baac038':
Document Bitmap.createScaledBitmap
95930e13faac8c17dabfaa1478089baa772f091b 04-Oct-2010 Romain Guy <romainguy@google.com> Apply all Canvas transformations to ColorDrawable.

Change-Id: I29252c58224b236d0770ec005da9842990ef2c06
ndroid/graphics/drawable/ColorDrawable.java
b12bfbd4df985041ab0e584ef5a746328baac038 04-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am eb6e22f2: Merge "Document Bitmap.createScaledBitmap" into gingerbread

Merge commit 'eb6e22f29ded58e7e51702c34878fd01e20ff802' into gingerbread-plus-aosp

* commit 'eb6e22f29ded58e7e51702c34878fd01e20ff802':
Document Bitmap.createScaledBitmap
02d9102b3bdebac6989c2b7d12c080fb7c1f8e2b 04-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Document Bitmap.createScaledBitmap

Change-Id: Ife6a42bc08d17c56274e78a1f5d2c100c2fe4dc8
ndroid/graphics/Bitmap.java
2b282d312dfc359258934cb60e2c6bc833bb19a7 04-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am 3d019a37: am 83d52229: Doc fix: duplicate word \'of\'

Merge commit '3d019a374fa41a11fb7b718770076e61235d1c45'

* commit '3d019a374fa41a11fb7b718770076e61235d1c45':
Doc fix: duplicate word 'of'
3d019a374fa41a11fb7b718770076e61235d1c45 04-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am 83d52229: Doc fix: duplicate word \'of\'

Merge commit '83d522290e56f614d0d9373d47c2b54b9e207795' into gingerbread-plus-aosp

* commit '83d522290e56f614d0d9373d47c2b54b9e207795':
Doc fix: duplicate word 'of'
83d522290e56f614d0d9373d47c2b54b9e207795 04-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Doc fix: duplicate word 'of'

Change-Id: I45a4ca443becc2f2cf02cbca2bd61ef2ee590b5c
ndroid/graphics/Canvas.java
42ca268c6ac7f710a438436ae487579bf2403c2c 02-Oct-2010 Stephen Hines <srhines@google.com> Merge "Support for 64-bit integer type."
ef1dac28d3bf98bd61cd9874fb3ccab42105e9b6 02-Oct-2010 Stephen Hines <srhines@google.com> Support for 64-bit integer type.

b/3050131 exported renderscript structures don't appear to support int64_t

Change-Id: I9aea676425b694a3a6457e63e38b00e591847e20
ndroid/renderscript/Element.java
ndroid/renderscript/RenderScript.java
eeac43ad3c9b41c1679f3ab36064fa611106faf2 01-Oct-2010 Wei-Ta Chen <weita@google.com> am f7681f84: Do not merge.

Merge commit 'f7681f84918c27f6a626681ce37ed2a236c44e82' into gingerbread-plus-aosp

* commit 'f7681f84918c27f6a626681ce37ed2a236c44e82':
Do not merge.
f7681f84918c27f6a626681ce37ed2a236c44e82 01-Oct-2010 Wei-Ta Chen <weita@google.com> Do not merge.

Fix 3052285 by not publishing the BitmapRegionDecoder API until the honeycomb release.

Bug: 3052285
Change-Id: Ie339e414c1a5581e1d38684621e0e97162616977
ndroid/graphics/BitmapRegionDecoder.java
be0488db81f6e156c25899cd1001e4d50a513df3 01-Oct-2010 Romain Guy <romainguy@google.com> Merge "Make simple paths made of lines work."
d79991277043d6bdbd90bb63fd8aff73ef9e06a5 01-Oct-2010 Romain Guy <romainguy@google.com> Make simple paths made of lines work.

Bug #3041098

Change-Id: Ife9c3f01ded10e2bb35b1cdf1a54734d8347fee4
ndroid/graphics/Path.java
02f41705199336f808ece50d81585450e7f8f61f 01-Oct-2010 Stephen Hines <srhines@google.com> Finish plumbing for double RS elements.

Change-Id: Ic708dcaeda4966bb2121ecb6834f56cfa68ad58e
ndroid/renderscript/Element.java
ndroid/renderscript/FieldPacker.java
ndroid/renderscript/RenderScript.java
f5b3510c706ed1f7611760dff0c94f2111531c68 30-Sep-2010 Alex Sakhartchouk <alexst@google.com> Adding anisotropic filtering and related samples.

Change-Id: Idb173274417feb5e25bfd64c5e9fa2492a23a17e
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Sampler.java
ab98bb6e8b95bef7415c1ad239be71f93322fbad 24-Sep-2010 Stephen Hines <srhines@google.com> Fix RS bug with message ID 0.

Clamp RSTest list to nice viewable range.

Change-Id: I0909511e16984ec78150cda17c22e22af1fa0cdb
ndroid/renderscript/RenderScript.java
d45a33554ca6c18ed81e45320998b9e4f4680379 15-Sep-2010 Sonia Serafimova <sonia.serafimova@sonyericsson.com> Prevent unhandled exception in NinePatchDrawable

Added null check in computeBitmapSize() to avoid unhandled
exception "java.lang.NullPointerException" at
android.graphics.Rect.<init>(Rect.java:72).

This problem was discovered in the wild.

Change-Id: I9d40629a052f1390e1811288af6209d8cc3f679b
ndroid/graphics/drawable/NinePatchDrawable.java
81859bc3d4d18f558b903db1306e76d0db115cf6 26-Sep-2010 Jean-Baptiste Queru <jbq@google.com> am ca3f968c: am 7d9c73fb: Merge "Prevent unhandled exception in NinePatchDrawable"

Merge commit 'ca3f968c6f0acbf94988d00bf21a82a2e8f49b86'

* commit 'ca3f968c6f0acbf94988d00bf21a82a2e8f49b86':
Prevent unhandled exception in NinePatchDrawable
ca3f968c6f0acbf94988d00bf21a82a2e8f49b86 26-Sep-2010 Jean-Baptiste Queru <jbq@google.com> am 7d9c73fb: Merge "Prevent unhandled exception in NinePatchDrawable"

Merge commit '7d9c73fb6f6f79f7f92b77482a0edbd7b89f2564' into gingerbread-plus-aosp

* commit '7d9c73fb6f6f79f7f92b77482a0edbd7b89f2564':
Prevent unhandled exception in NinePatchDrawable
04b5dd4b04df45eea0b568ac8d7ad5c4903c5cf5 24-Sep-2010 Alex Sakhartchouk <alexst@google.com> Merge "Adding support for all allowed textures. Cleaning up unused code Adding error messages"
b89aaacb2ca9d062e0a17a32e3d4dbf3f6948a17 24-Sep-2010 Alex Sakhartchouk <alexst@google.com> Adding support for all allowed textures.
Cleaning up unused code
Adding error messages

Change-Id: I3a92476738ff7699d49feeafcd3eee6f70621acb
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/RenderScript.java
a23cdda0a5fad7798454ecb05a7855cb9211ea22 23-Sep-2010 Wei-Ta Chen <weita@google.com> am ac487f70: am 6b849e21: Unhide BitmapRegionDecoder.

Merge commit 'ac487f708f7b58dbd4f3021b520c6ed5975daebe'

* commit 'ac487f708f7b58dbd4f3021b520c6ed5975daebe':
Unhide BitmapRegionDecoder.
ac487f708f7b58dbd4f3021b520c6ed5975daebe 23-Sep-2010 Wei-Ta Chen <weita@google.com> am 6b849e21: Unhide BitmapRegionDecoder.

Merge commit '6b849e2123be98eb2a1a25b8abf0b13a279ce952' into gingerbread-plus-aosp

* commit '6b849e2123be98eb2a1a25b8abf0b13a279ce952':
Unhide BitmapRegionDecoder.
6b849e2123be98eb2a1a25b8abf0b13a279ce952 07-Sep-2010 Wei-Ta Chen <weita@google.com> Unhide BitmapRegionDecoder.

1. Rename LargeBitmap to BitmapRegionDecoder
2. Move the instantiations of BitmapRegionDecoder out of BitmapFactory.
3. Remove the use of MemoryFile in BitmapRegionDecoder, since MemoryFile's API had been modified in master. Otherwise, the change will break the master build.
4. Move AssetStreamAdaptor, AutoFDSeek and nullObjectReturn to Utils.h because BitmapFactory.cpp and BitmapRegionDecoder.cpp both need to use these utility functions.

Most of the modifications, except for (2) and (3), were reviewed in https://android-git.corp.google.com/g/#change,64716 .
However, that change broke the master build due to (3) and was reverted eventually.
So, instead of withdrawing this change and waiting for that change to be checked in again, I merge the two changes into one.

Change-Id: I2202c0fbbbd6d6676bbd9637e690023ea4099c40
ndroid/graphics/BitmapFactory.java
ndroid/graphics/BitmapRegionDecoder.java
353a48e8ed90c028fb51fe145dae6113661f03e4 22-Sep-2010 Jason Sams <rjsams@android.com> Merge "Fix two minor RS bugs. 1: index set size was populated with bad value in java, 2: bad error check in uploadToBufferObject."
1bfccb45dfe53da00e0618e5af5062c1e37a6c18 22-Sep-2010 Jason Sams <rjsams@android.com> Fix two minor RS bugs.
1: index set size was populated with bad value in java,
2: bad error check in uploadToBufferObject.

Change-Id: I5946053cdfba0b2fbbaa34d562a9ec53e26ce9f2
ndroid/renderscript/Mesh.java
76f609118574a76b10cb90bcf061b15546bc38ee 22-Sep-2010 Romain Guy <romainguy@google.com> Merge "Add support for circular gradients to the GL renderer."
ddb80bebb0776e6d852aab6e8bba5d5591847a55 21-Sep-2010 Romain Guy <romainguy@google.com> Add support for circular gradients to the GL renderer.

This change also adds full support for local transformation matrices on
sweep and radial gradients.

Change-Id: Id8773bc0766575190e3f3d51984fc5e57b266c3f
ndroid/graphics/RadialGradient.java
7aa150c0967b725850cf27de58f50a25a960b092 21-Sep-2010 Jason Sams <rjsams@android.com> Detect and throw exception for using
objects after explicitly destroying them.

Change-Id: Ic50d6974c80672846140c7f9435ec9468855f0bc
ndroid/renderscript/BaseObj.java
a86c1a622fb61d8157dac9ef3d66084a6ac2f0e0 21-Sep-2010 Stephen Hines <srhines@google.com> Merge "Add support for Float64 (double) to RenderScript."
ee916f14cbd1fe1422c063ce2ef7b185e2bc5c6f 21-Sep-2010 Romain Guy <romainguy@google.com> Add support for SweepGradient in the GL renderer.

Change-Id: I7aa397ed4e34655ead9ba1f5b4ce087665e0f022
ndroid/graphics/Shader.java
ndroid/graphics/SweepGradient.java
ca54ec302f5bddd1674ea1f36cd3b7c540b2fbca 21-Sep-2010 Stephen Hines <srhines@google.com> Add support for Float64 (double) to RenderScript.

Change-Id: Iad1c4adadf657a46aa38a3fad7813927e643e29d
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Script.java
227e68687893253120c2ca3fd82f0cce974611e9 17-Sep-2010 Adam Cohen <adamcohen@google.com> Merge "Adding some documentation to Matrix.mapVectors methods."
3a58ec108bb430b81a328adb2062035f860159b4 17-Sep-2010 Adam Cohen <adamcohen@google.com> Adding some documentation to Matrix.mapVectors methods.

Change-Id: I6c59c40ac9ebd39d9c5fc189917172da983cc766
ndroid/graphics/Matrix.java
a8bf9429b29743b3489817feb21bde2416acc465 16-Sep-2010 Jason Sams <rjsams@android.com> Fix race condition on exit.

Change-Id: I1ae1818122604dde5993b2b8ef702bda5194d87d
ndroid/renderscript/RenderScript.java
279d006b1d194c597a4c6b0a72f66ea6128851fa 15-Sep-2010 Sonia Serafimova <sonia.serafimova@sonyericsson.com> Prevent unhandled exception in NinePatchDrawable

Added null check in computeBitmapSize() to avoid unhandled
exception "java.lang.NullPointerException" at
android.graphics.Rect.<init>(Rect.java:72).

This problem was discovered in the wild.

Change-Id: I8a4729ceadcfc9744f11b8ceafdf24d6de88c645
ndroid/graphics/drawable/NinePatchDrawable.java
c984dd73c6f96d16e11813ae433ef70f7648ae77 14-Sep-2010 Alex Sakhartchouk <alexst@google.com> Shader changes to allow for more flexible constant binding.

Change-Id: Ic66e6e2a371c6e3d5dce1b00f63acab8c09bd110
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramVertex.java
94db0238a3b6cba3cbf0e037af74e898a4741204 10-Sep-2010 Joseph Wen <josephwen@google.com> am 219eb7ec: Merge "Fix bug in JNI BitmapFactory" into gingerbread

Merge commit '219eb7ec8403ef9b98125f2b58cc27669ae69712' into gingerbread-plus-aosp

* commit '219eb7ec8403ef9b98125f2b58cc27669ae69712':
Fix bug in JNI BitmapFactory
2dcfbefbbeac406d16ec379c6430dd9ee9fd23a1 10-Sep-2010 Joseph Wen <josephwen@google.com> Fix bug in JNI BitmapFactory

In nativeCreateLargeBitmapFromFileDescriptor() if the file descriptor
can not be rewinded isShareable should be set to false.

Change-Id: I7dd545c9d52d21c226e11b8921e35a1d9bba9515
ndroid/graphics/BitmapFactory.java
a78eca95ff54989c280405b70d143b0909854409 09-Sep-2010 Gilles Debunne <debunne@google.com> Merge "Progress Dialog documentation example uses onPrepareDialog"
d90f23e24a4d1768d5a7ed0e7072e67af6330a45 09-Sep-2010 Romain Guy <romainguy@google.com> Do not convert 8888 bitmaps to 565 when doing a copy.

Bug #2988077
This change keeps the 8888 format for new bitmaps and also keeps,
when possible, the opaque flag.

Change-Id: Ia61f2e89936916b329212a4c59a7d815c329f84e
ndroid/graphics/Bitmap.java
6e1df0e981c8c588e411b8ad6e55554fe4815655 09-Sep-2010 Gilles Debunne <debunne@google.com> Progress Dialog documentation example uses onPrepareDialog

Change-Id: I7afebdb321e28d8e4b1687ba4f503bde7d6031a0
ndroid/graphics/BitmapFactory.java
7b29804ba2b0db1a627b680b3fe2c5036139513b 08-Sep-2010 Wei-Ta Chen <weita@google.com> am 8fc6f8b2: am 1b214be9: Merge "Revert "Rename LargeBitmap to BitmapRegionDecoder for having a better API."" into gingerbread

Merge commit '8fc6f8b2152564cab6ede025644f9bc3ee61ce16'

* commit '8fc6f8b2152564cab6ede025644f9bc3ee61ce16':
Revert "Rename LargeBitmap to BitmapRegionDecoder for having a better API."
8fc6f8b2152564cab6ede025644f9bc3ee61ce16 08-Sep-2010 Wei-Ta Chen <weita@google.com> am 1b214be9: Merge "Revert "Rename LargeBitmap to BitmapRegionDecoder for having a better API."" into gingerbread

Merge commit '1b214be92ac206d8ac6ef4967db6e2859d91ab49' into gingerbread-plus-aosp

* commit '1b214be92ac206d8ac6ef4967db6e2859d91ab49':
Revert "Rename LargeBitmap to BitmapRegionDecoder for having a better API."
340ce75b446f6a6afc12b0582be3fc34ac3a5364 08-Sep-2010 Wei-Ta Chen <weita@google.com> Revert "Rename LargeBitmap to BitmapRegionDecoder for having a better API."

This reverts commit 50ba3d2c09a9131f3578d271adf2bc8258ca1742.
ndroid/graphics/BitmapRegionDecoder.java
50cb7dc458e65b75fb69a3a3fed972e7ed913703 08-Sep-2010 Wei-Ta Chen <weita@google.com> am a295a390: am b356f8ac: Merge "Rename LargeBitmap to BitmapRegionDecoder for having a better API." into gingerbread

Merge commit 'a295a3908befeb9dd30203c612d95411d68492ed'

* commit 'a295a3908befeb9dd30203c612d95411d68492ed':
Rename LargeBitmap to BitmapRegionDecoder for having a better API.
a295a3908befeb9dd30203c612d95411d68492ed 08-Sep-2010 Wei-Ta Chen <weita@google.com> am b356f8ac: Merge "Rename LargeBitmap to BitmapRegionDecoder for having a better API." into gingerbread

Merge commit 'b356f8acec9fdfd36f01e5cca4fe3a28ecd6e628' into gingerbread-plus-aosp

* commit 'b356f8acec9fdfd36f01e5cca4fe3a28ecd6e628':
Rename LargeBitmap to BitmapRegionDecoder for having a better API.
70d4e5024298f71edb3b04867e05568f5495b4ce 03-Sep-2010 Jason Sams <rjsams@android.com> Add arrays to elements.

Change-Id: I624b03bfc1fd26136afd9305a96026b91b1fad3c
ndroid/renderscript/Element.java
ndroid/renderscript/RenderScript.java
50ba3d2c09a9131f3578d271adf2bc8258ca1742 07-Sep-2010 Wei-Ta Chen <weita@google.com> Rename LargeBitmap to BitmapRegionDecoder for having a better API.

Move AssetStreamAdaptor, AutoFDSeek and nullObjectReturn to Utils.h because
BitmapFactory.cpp and BitmapRegionDecoder.cpp both need to use these utility functions.

Change-Id: I3e60c7fe4abd0289e1384e69a08fd20fe6fb0e10
ndroid/graphics/BitmapRegionDecoder.java
0eb9b77eec4abb201a6c90cf543172df6473a19e 01-Sep-2010 Jason Sams <rjsams@android.com> Merge "Remove functions for reflecting dalvik classes to rs types."
e447a786357c91d7c48f2475605e692de5b12da1 01-Sep-2010 Jason Sams <rjsams@android.com> Remove functions for reflecting dalvik classes to rs types.

Change-Id: I41bc7fd704772d177f8035c04256d0ca63e4398b
Change-Id: I4df3673a1db1e79c309ab4eb41d2145802ed322c
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Type.java
73ea9beaf8eb3d0027e78cbc0ac5e626c3f8deb4 01-Sep-2010 Alex Sakhartchouk <alexst@google.com> Merge "Cleaning up the api"
32fc363c8cbe0cc74c0d02b8173e2076deccb96b 01-Sep-2010 Alex Sakhartchouk <alexst@google.com> Cleaning up the api

Change-Id: I86632cfde07216be7623177516710db5d9a57522
ndroid/renderscript/ProgramRaster.java
49bdaf0293408159df18a1d8540360f9623c40f7 31-Aug-2010 Jason Sams <rjsams@android.com> SubElementData data upload functions.

Change-Id: I5f8c738b5457ae7f6085fc4cd331cf3d13ad75cf
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
da8532c6f48b4c10b5e2ccb9e08690341efa1616 31-Aug-2010 Romain Guy <romainguy@google.com> Add hooks for hardware accelerated WebView.

Change-Id: I907cdec8a67594f87749ac46bda85f04af5a2003
ndroid/graphics/Canvas.java
a41174ecb03331d770614ecc6351cbc890874c28 28-Aug-2010 Alex Sakhartchouk <alexst@google.com> Fixing renderscript uniform binding bugs.
Working on custom shaders.

Change-Id: I0d51e879e1c2b46ef5ab696b35162898f4196fc8
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramVertex.java
1d45c47975ab2a8cef6db5a8976276de31e1e8d0 25-Aug-2010 Jason Sams <rjsams@android.com> Add matrix component types.
Fix potental overflow in script -> java messages.

Change-Id: Ie6fd9dc376be4043fc938a1517106936937689c8
ndroid/renderscript/Element.java
ndroid/renderscript/FieldPacker.java
ndroid/renderscript/RenderScript.java
d36f248eaf06c569010649902df653da1a9e2acc 24-Aug-2010 Alex Sakhartchouk <alexst@google.com> More work on the renderscript sample

Change-Id: Ib1812bbaa38180ca63d6d53c9cc3aeeee4134725
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Sampler.java
104422039b2dc5ced7e341e067a5a80e6534218b 24-Aug-2010 Romain Guy <romainguy@google.com> am 5a14271a: am d6f7f225: Merge "Load bitmaps in the correct format." into gingerbread

Merge commit '5a14271aacb932ba0d52978c939f74e4c685f7d6'

* commit '5a14271aacb932ba0d52978c939f74e4c685f7d6':
Load bitmaps in the correct format.
a1f1174b396cda7bdff469a2e974a737600c5eb0 23-Aug-2010 Alex Sakhartchouk <alexst@google.com> Merge "Renderscript samples. Resolving name conflict in model viewer. Adding fov projection matrix function. Adding helper methods for blending."
32e09b5891da0174f161d99e2d3ebe67d6efa39c 23-Aug-2010 Alex Sakhartchouk <alexst@google.com> Renderscript samples.
Resolving name conflict in model viewer.
Adding fov projection matrix function.
Adding helper methods for blending.

Change-Id: Ibd3f1510436811398787c285845d050158bd6de8
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Sampler.java
d51a933b94ea0f4fc780fb09ef6cd0059e3506c5 22-Aug-2010 Chih-Chung Chang <chihchung@google.com> am 72ecb00a: Merge "Revert "Don\'t recycle native bitmap after the finalizer is called."" into gingerbread

Merge commit '72ecb00a89b7a49eadb9c3bb880102eef97c8eb6' into gingerbread-plus-aosp

* commit '72ecb00a89b7a49eadb9c3bb880102eef97c8eb6':
Revert "Don't recycle native bitmap after the finalizer is called."
601ede9aa3337bb6d54dfb0633b54835421b5720 21-Aug-2010 Chih-Chung Chang <chihchung@google.com> Revert "Don't recycle native bitmap after the finalizer is called."

Bitmap should not be accessed from multiple threads.

This reverts commit 966803ab81f8e9bfefa502fcb533de023825a389.
ndroid/graphics/Bitmap.java
5a14271aacb932ba0d52978c939f74e4c685f7d6 21-Aug-2010 Romain Guy <romainguy@google.com> am d6f7f225: Merge "Load bitmaps in the correct format." into gingerbread

Merge commit 'd6f7f225689ecd33dc54699acc01cfafc781c20d' into gingerbread-plus-aosp

* commit 'd6f7f225689ecd33dc54699acc01cfafc781c20d':
Load bitmaps in the correct format.
f92a0a6d4e95660b0e7ebe259323de17d821c50f 21-Aug-2010 Romain Guy <romainguy@google.com> Load bitmaps in the correct format.

Bug #2936873

Change-Id: Ide93ffd8227cea6c610dde625163ccffb4590e90
ndroid/renderscript/Allocation.java
3a59ddc67c6ad33c01d36338603586f90d94e71b 20-Aug-2010 Chih-Chung Chang <chihchung@google.com> am dc2eabd1: Merge "Don\'t recycle native bitmap after the finalizer is called." into gingerbread

Merge commit 'dc2eabd10847d8e7f016fec5232d40b723ce2828' into gingerbread-plus-aosp

* commit 'dc2eabd10847d8e7f016fec5232d40b723ce2828':
Don't recycle native bitmap after the finalizer is called.
966803ab81f8e9bfefa502fcb533de023825a389 20-Aug-2010 Chih-Chung Chang <chihchung@google.com> Don't recycle native bitmap after the finalizer is called.

If an object A's finalizer calls Bitmap B's recycle() when B's
finalizer is already called, we will have trouble because the
native bitmap is already freed in the finalizer.

Change-Id: Ic0be8ed75fb3aacee9ce6e3d9908178a55151eb9
ndroid/graphics/Bitmap.java
a842d143d2dcad07906830a30deaf0ffce86f5d9 20-Aug-2010 Gilles Debunne <debunne@google.com> am d018a0ce: Merge "Text selection without trackball." into gingerbread

Merge commit 'd018a0ce72124f668d859b19fe3e73f5637d3c7c' into gingerbread-plus-aosp

* commit 'd018a0ce72124f668d859b19fe3e73f5637d3c7c':
Text selection without trackball.
d018a0ce72124f668d859b19fe3e73f5637d3c7c 20-Aug-2010 Gilles Debunne <debunne@google.com> Merge "Text selection without trackball." into gingerbread
b0d6ba1ec4f71b96cab7d1ff62b846d5cf162c4f 18-Aug-2010 Gilles Debunne <debunne@google.com> Text selection without trackball.

Backported from HC.

Squashed commit of the following:

commit af214a595c7a9fdd11a2dc384f7d4665abf751c0
Fixes in TextView's selection.

commit eb9fd59ebe6500a66c2003d46b5802299970ae8d
TextView with Selection Contextual Mode

commit 4c4c338ef355b369ce4b57d6c6fba7ee8f9dddf4
Cosmetic changes around TextView.

commit d4b4b054e87480d984ad18766f5e76553e3080d8
Double and one and a half tap removed from TextView.

commit 897c2847ba1fca8ef01eadadd1bc3de007af3ee5
Selection handlers in TextView

commit 832be74a5394649e28927484d9a86c6d53b430e7
New cursor controller in TextViews.

Change-Id: I01cc64736e2abea605317ee53907a1713617fc17
ndroid/graphics/Rect.java
d88e0680edd88e10870d5f6f303633cea839d686 20-Aug-2010 Romain Guy <romainguy@google.com> am 288471d8: DO NOT MERGE. Load assets in place instead of deferring until draw.

Merge commit '288471d8a57e1c318742cbfc28697877436fdb87' into gingerbread-plus-aosp

* commit '288471d8a57e1c318742cbfc28697877436fdb87':
DO NOT MERGE. Load assets in place instead of deferring until draw.
288471d8a57e1c318742cbfc28697877436fdb87 19-Aug-2010 Romain Guy <romainguy@google.com> DO NOT MERGE. Load assets in place instead of deferring until draw.

Before this change, all framework assets would be decoded at drawing time
outside of zygote. This was forcing all apps to re-decode the assets and
zygote to keep an in-memory copy of each asset. This behavior is now
opt-in by setting the inPurgeable flag on BitmapFactory.Options.

Change-Id: Ief823139163d8071b8ee1267746622faf52eb8ec
ndroid/graphics/BitmapFactory.java
e0cac8402a82f383d4c34eb9481641cdc4b6d14f 19-Aug-2010 Romain Guy <romainguy@google.com> Merge "Load assets in place instead of deferring until draw."
207b3ab604bcbe47fa55f26f358cde60cf8a784d 19-Aug-2010 Romain Guy <romainguy@google.com> Load assets in place instead of deferring until draw.

Before this change, all framework assets would be decoded at drawing time
outside of zygote. This was forcing all apps to re-decode the assets and
zygote to keep an in-memory copy of each asset. This behavior is now
opt-in by setting the inPurgeable flag on BitmapFactory.Options.

Change-Id: Ic703f57adb26b2a701ecff0a653d35a93e26d47c
ndroid/graphics/BitmapFactory.java
646b64cf9d52100ad31e8de45256792b5057cbdb 19-Aug-2010 Romain Guy <romainguy@google.com> Merge "Load opaque assets in RGB-565 until Bitmap.hasAlpha() works properly."
4b7cc6402892a92b820423561d1443d18e25b755 19-Aug-2010 Romain Guy <romainguy@google.com> Load opaque assets in RGB-565 until Bitmap.hasAlpha() works properly.

Change-Id: I1106855e9f2255c1b78fd76a3fe1c116b3c2fb87
ndroid/graphics/BitmapFactory.java
3e5ea4a814fae0162273cfcf8b85e69f4e85ad48 19-Aug-2010 Alex Sakhartchouk <alexst@google.com> Merge "Renderscript samples. Merged two model related projects. Cleanup."
27f50523a45100f3b4861762b6263e0b9ba6e22e 19-Aug-2010 Alex Sakhartchouk <alexst@google.com> Renderscript samples. Merged two model related projects. Cleanup.

Change-Id: I6fdc70420eee7dfecf0b051fd687e5797c6580ce
ndroid/renderscript/Font.java
2ea56efb1fd3d846e02e8fe0189f4f4e352362d8 18-Aug-2010 Jason Sams <rjsams@android.com> Merge "Remove OOB object destruction."
a006b47298539d89dc7a06b54c070cb3e986352a 14-Apr-2010 Bjorn Bringert <bringert@android.com> New API and implementation of DB and memory-backed FDs

This depends on a kernel patch that implements read(2)
in the ashmem driver.

Bug http://b/issue?id=2595601

Change-Id: Ie3b10aa471aada21812b35e63954c1b2f0a7b042
ndroid/graphics/BitmapFactory.java
fb545906ad59b226d7121d0b50debed7f2a2a32f 18-Aug-2010 Jason Sams <rjsams@android.com> Merge "Make java entry points for native fifo synchronized."
d78be37d81f6c1aba75180c7608753a027a881ee 18-Aug-2010 Jason Sams <rjsams@android.com> Remove OOB object destruction.

Change-Id: Icaa06aca4a701ec663c124d3141d9dbb633d7dc1
ndroid/renderscript/BaseObj.java
ndroid/renderscript/RenderScript.java
2e1872fe07cf8952812a417985e6e1f61bdeab5d 18-Aug-2010 Jason Sams <rjsams@android.com> Make java entry points for native fifo synchronized.

Change-Id: I1baf2beb920016f0202042982075cbce1e67df42
ndroid/renderscript/Light.java
ndroid/renderscript/RenderScript.java
1b10d3d23512f9f9a091e1f4c27bb3dc47806f6c 17-Aug-2010 Joseph Wen <josephwen@google.com> am 81dcea60: am f1f48bc7: Do JPEG tile-based decoding.

Merge commit '81dcea6093dfcdadd52982505249a5eacf47a81b'

* commit '81dcea6093dfcdadd52982505249a5eacf47a81b':
Do JPEG tile-based decoding.
81dcea6093dfcdadd52982505249a5eacf47a81b 17-Aug-2010 Joseph Wen <josephwen@google.com> am f1f48bc7: Do JPEG tile-based decoding.

Merge commit 'f1f48bc7f200f54c76b22d845d8ba8419879b375' into gingerbread-plus-aosp

* commit 'f1f48bc7f200f54c76b22d845d8ba8419879b375':
Do JPEG tile-based decoding.
f1f48bc7f200f54c76b22d845d8ba8419879b375 19-Jul-2010 Joseph Wen <josephwen@google.com> Do JPEG tile-based decoding.

Change-Id: I5c1b4ac3c02eb4350ef0ba9a7877b22cfd730cfb
ndroid/graphics/BitmapFactory.java
ndroid/graphics/LargeBitmap.java
1e45aae5de003657e5d18f74d34998f5de5db5b7 14-Aug-2010 Romain Guy <romainguy@google.com> Add drop shadows.

Change-Id: Ic6a72409d4785968d1fbdff229f17ee5c00b240b
ndroid/graphics/Paint.java
04ba60895adb80e4d542e22fae56e147b5eeebdd 13-Aug-2010 Alex Sakhartchouk <alexst@google.com> Merge "Renderscript scenegraph prototype."
094a068bc46f725a7358ff84317cff2ca4528601 13-Aug-2010 Alex Sakhartchouk <alexst@google.com> Renderscript scenegraph prototype.

Change-Id: Ic4daaf6eca8850caf46bd766e148cf12eb6c6ca1
ndroid/renderscript/Float2.java
ndroid/renderscript/Float3.java
ndroid/renderscript/Float4.java
e0b8d3cbf73a3694a24f366ab43488bfaef9da71 13-Aug-2010 Romain Guy <romainguy@google.com> Merge "Fix GC issue, fix local shader transformations."
0ba681bce12d522c5575dfccb5a6ca12f0fba746 13-Aug-2010 Romain Guy <romainguy@google.com> Fix GC issue, fix local shader transformations.

Change-Id: I208bdf89815dcd18dcadd43df932a77362918435
ndroid/graphics/BitmapShader.java
4199175ff34c7c15120c3cc3714d454d84e7afcf 12-Aug-2010 Jason Sams <rjsams@android.com> Merge "Fix field packer bug for U32 data. Fix initial refcounts in allocations. Support null references in allocations."
ee73498ddf896f6ed003e9ce1fab87aefda90173 12-Aug-2010 Jason Sams <rjsams@android.com> Fix field packer bug for U32 data.
Fix initial refcounts in allocations.
Support null references in allocations.

Change-Id: Ifba6406ba750e69737bd77fa7df5d7fb8e27a5b4
ndroid/renderscript/FieldPacker.java
0de9444aa6c25d2c586e8204a6168d10e67376e0 11-Aug-2010 Alex Sakhartchouk <alexst@google.com> Preparing renderscript java code for use with phanton references.
Changing rs_quaternion to be float4

Change-Id: Ibf49f412be8979eaa04cb252b407467eacd9dbf0
ndroid/renderscript/Allocation.java
ndroid/renderscript/BaseObj.java
ndroid/renderscript/Element.java
ndroid/renderscript/FileA3D.java
ndroid/renderscript/Font.java
ndroid/renderscript/Light.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/RenderScriptGL.java
ndroid/renderscript/Sampler.java
ndroid/renderscript/Script.java
ndroid/renderscript/Type.java
6416d5d79299e14204f41bdd9eb1a752315c68b2 11-Aug-2010 Romain Guy <romainguy@google.com> Merge "Fix crash in Market."
3f9b5a253fc8229bd46d53950af9033e0f63c097 11-Aug-2010 Romain Guy <romainguy@google.com> Fix crash in Market.

Bug #2911272

Change-Id: I065e21b9d005ad693e1af1ad82755b5c2ae7b722
ndroid/graphics/ComposeShader.java
0dde1f89a434fef356e12fbbbc3a322dfae3bb0d 11-Aug-2010 Alex Sakhartchouk <alexst@google.com> Merge "Adding quaternion functions to math library."
8918190a198f5a0c602dd5d126e5fab8e537fda0 11-Aug-2010 Romain Guy <romainguy@google.com> Support non-PorterDuff xfermodes with Xfermode.

Change-Id: Icef17b72da2d047a24aaac1ddf5cdae77b40d5b4
ndroid/graphics/ComposeShader.java
ndroid/graphics/PorterDuffXfermode.java
ndroid/graphics/Xfermode.java
facd6fc4be5706f4ca5def9702a69bec94eb6adf 11-Aug-2010 Alex Sakhartchouk <alexst@google.com> Adding quaternion functions to math library.

Change-Id: I692214648892120943ca7d3b00034e27d1c330cf
ndroid/renderscript/Matrix4f.java
a48a1a87ba17f20f7006eaab21dcedf86c015c13 10-Aug-2010 Romain Guy <romainguy@google.com> Fast text selection drawing.

Change-Id: I93fb1312b47bc05345defa9b6cfe47c0658bb329
ndroid/graphics/Path.java
61c8c9c5b2006d18e9310b6521c65b36ffe75ce4 10-Aug-2010 Romain Guy <romainguy@google.com> Fix tons of bugs and add new text rendering support.

Change-Id: I326c66b10784006f6df2f12d38e120cef94cd0d7
ndroid/graphics/Path.java
ndroid/graphics/Region.java
ndroid/graphics/drawable/GradientDrawable.java
02890fd0f98b3b8d98baf0bda1ea906afd723d8b 07-Aug-2010 Romain Guy <romainguy@google.com> Replace Bitmap's finalizers with PhantomReferences.

This change also removes the use of SoftReferences for View's
drawing cache.

A bitmap now creates a PhantomReference enqueued in a reference
queue provided by the new Finalizers class. This queue is polled
from a thread started after forking zygote. That thread is in charge
of clearing the references after GC runs and of calling reclaim()
on them. The reclaim() method is now how finalizers are run.

Note that a PhantomReference cannot be kept in the instance it
refers to, which is why they are kept in a separate List.

Change-Id: If3c1a5e9dc23fa49e34857860d730f5cf5ad5926
ndroid/graphics/Bitmap.java
163935113919a184122b8b3bd672ef08c8df65dc 08-Aug-2010 Romain Guy <romainguy@android.com> Make libhwui entirely optional.

The makefile variable USE_OPENGL_RENDERER must be set to true to compile
libhwui and the related code in the JNI layer.

This change also removes obsolete APIs from Canvas that must not be used
and would be confusing if left in. These APIs were remnants of our first
attempt at an OpenGL renderer for the view hierarchy and had not been
taken out before Android 1.0 was released.

Change-Id: I2475ff1307212bab26c926724f3c508681c7dae1
ndroid/graphics/Canvas.java
de0547c07a65b59d5330588cdd8b1e410a613e9c 08-Aug-2010 Romain Guy <romainguy@android.com> Prevent memory leak with ComposeShader.

Change-Id: I926186c96b3c61085cdb6173d56d3a15a04ac95b
ndroid/graphics/ComposeShader.java
9e044aed219adf52e27629d36f8ff7d670700a52 06-Aug-2010 Romain Guy <romainguy@google.com> Fix NPE in RoundRectShape.

Change-Id: I3cef1b2723e5ebf3583f91b1bfe8121c0f6d253d
ndroid/graphics/drawable/shapes/RoundRectShape.java
7fbcc0492fca03857e3c45064f4aa040af817d55 05-Aug-2010 Romain Guy <romainguy@google.com> Add support for paths.

Rendering is implementing by rasterizing the paths into A8 textures.
This cna be extremely inefficient if the path changes often.

Change-Id: I609343f304ae38e0d319359403ee73b9b5b3c93a
ndroid/graphics/Path.java
518f033b68649c151cc8725ea8c557eae01cc567 05-Aug-2010 Alex Sakhartchouk <alexst@google.com> Adding more matrix math functions.

Fixing build.

Change-Id: Ie0f6724ba063ada94d1d44d99bbe56e21d9bd72f
ndroid/renderscript/Matrix2f.java
ndroid/renderscript/Matrix3f.java
ndroid/renderscript/Matrix4f.java
442a647424e6537e94341654e3ae5d52efd84862 05-Aug-2010 Jason Sams <rjsams@android.com> Support constant and varying colors in ProgramFragment.

Change-Id: I16ce84ff427016f3a1923594efc718eca32dd7f2
ndroid/renderscript/ProgramFragment.java
fb10c16a0528a418053e4b8e75eebe57476b86ef 04-Aug-2010 Alex Sakhartchouk <alexst@google.com> Added ability to set font color.
Propagating the name of meshes and allocations from native a3d to java

Change-Id: If781f55340b5369459610e5e92ea69e240dcd24e
ndroid/renderscript/Allocation.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/RenderScript.java
cf9a44cdf3647c8b31499ad6250f63259c0e34e2 04-Aug-2010 Alex Sakhartchouk <alexst@google.com> Adding matrix class methods.

Change-Id: I597b1b3955e29921394909f302800034571e6a50
ndroid/renderscript/Matrix2f.java
ndroid/renderscript/Matrix3f.java
db1938e0e6ef816e228c815adccebd5cb05f2aa8 03-Aug-2010 Romain Guy <romainguy@google.com> Add support for ColorFilters.

Color filters are fully supported and can be used with shaders.

Change-Id: Id90ccf1c81cb462f2431f366f3f8f710d7971e04
ndroid/graphics/ColorFilter.java
ndroid/graphics/ColorMatrixColorFilter.java
ndroid/graphics/LightingColorFilter.java
ndroid/graphics/PorterDuffColorFilter.java
06f96e2652e4855b6520ad9dd70583677605b79a 31-Jul-2010 Romain Guy <romainguy@google.com> Refactor Skia shaders handling.

With this change, Skia shaders can easily be applied to any mesh. This change also
supports ComposeShader. For instance, this can be used to blend a gradient and a
bitmap togehter and paint a string of text with the result.

Change-Id: I701c2f9cf7f89b2ff58005e8a1d0d80ccf4a4aea
ndroid/graphics/BitmapShader.java
ndroid/graphics/ComposeShader.java
ndroid/graphics/LinearGradient.java
ndroid/graphics/Shader.java
694b519ac647fe998fd396fe0784cc8e179aadc4 22-Jul-2010 Romain Guy <romainguy@google.com> Add text rendering.

Change-Id: Ibe5a9fa844d531b31b55e43de403a98d49f659b9
ndroid/graphics/Paint.java
a1db574036c9bc2d397b69f8200594027e1fff16 20-Jul-2010 Romain Guy <romainguy@google.com> Add preliminary support for text rendering.

Change-Id: I547eb631dbda24d13960d54b4144fb8908fd8a49
ndroid/graphics/Paint.java
ndroid/graphics/TemporaryBuffer.java
f9764a4f532561f6e2e985ff3b25112f1132ce44 17-Jul-2010 Romain Guy <romainguy@android.com> Add program for linear gradient.

This change adds a new DrawLinearGradientProgram class to enable the drawing
of linear gradients. Two new vertex and fragment shaders are introduced,
based on DrawTextureProgram's shaders.

Change-Id: I885afc076bb6cef8cd3962ae21a086fa6a03bf96
ndroid/graphics/LinearGradient.java
ndroid/graphics/Shader.java
7fac2e18339f765320d759e8d4c090f92431959e 17-Jul-2010 Romain Guy <romainguy@android.com> Add plumbing to support gradients in OpenGL renderer.

The LinearGradient class keeps a copy of the various parameters that
define the gradient. The copies are native arrays to avoid copying
Java arrays on every draw call. The gradient code path is implemented
until OpenGLRenderer::drawRect() (see TODO.) The actual gradient
implementation will be added in a latter change.

Change-Id: I9300d250ef5e2e9c2e097c3116ee71dfc9d752d8
ndroid/graphics/LinearGradient.java
079ba2c85b15e882629b8d188f5fbdb42f7f8eea 16-Jul-2010 Romain Guy <romainguy@android.com> Improve clip support (add intersect, union and replace.)

This change also modifies the way the clip is stored. The clip is now
always stored in screen-space coordinates.

Change-Id: I96375784d82dfe975bc6477a159e6866e7052487
ndroid/graphics/Region.java
51b7ebc652e320ee89b546f3e699ba31e9394a2c 16-Jul-2010 Alex Sakhartchouk <alexst@google.com> Merge "Populate java objects with native data from a3d file. Remove legacy constructor from programraster Make a3d object creation synchronous"
c96cdc9844d60d54683fb7700fc5908fdb8ff856 15-Jul-2010 Romain Guy <romainguy@google.com> Merge "Add support for BitmapShader."
d27977d1a91d5a6b3cc9fa7664ac7e835e7bd895 15-Jul-2010 Romain Guy <romainguy@google.com> Add support for BitmapShader.

This change also fixes an issue with the clip and layers.

Change-Id: I5fd9832098d8cf7ae8eb781ff9bffe7defaea279
ndroid/graphics/Shader.java
dfac814c18f73dd7289f9927edca3e3b6ec6bc00 15-Jul-2010 Alex Sakhartchouk <alexst@google.com> Populate java objects with native data from a3d file.
Remove legacy constructor from programraster
Make a3d object creation synchronous

Change-Id: Ic7d7547cf6eee6f9a7c6e3ee12cd104e80056a7b
ndroid/renderscript/Allocation.java
ndroid/renderscript/Element.java
ndroid/renderscript/FileA3D.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Type.java
506821b406181ff9b9a10c2fc078d16b79a8cf92 15-Jul-2010 Jim Shuma <jshuma@google.com> Merge "Making Program*.Builder classes' setters return 'this'"
288c8711a64893acb3f4a31caf69153be9809d17 07-Jul-2010 Jim Shuma <jshuma@google.com> Making Program*.Builder classes' setters return 'this'

This is for better correspondence with the Builder pattern.
See also: Effective Java, 2nd edition.

Change-Id: Iecccd42be49dea2ed8e4b8cc38ce96379cf3c11c
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/ProgramVertex.java
82e2b4cb51e869a5c2014f56e5b0cf38569ff09a 15-Jul-2010 Scott Main <smain@google.com> am 4fd41688: am 5352d237: am 38137d7a: Merge "docs: lots of additions to the resources docs new drawable resources add <merge> and <include> to layout resource update drawable class descriptioons to point to resources guide add ID resource type" into froyo

Merge commit '4fd416880e53c172bac4a51b2eafea699b58badf'

* commit '4fd416880e53c172bac4a51b2eafea699b58badf':
docs: lots of additions to the resources docs
4fd416880e53c172bac4a51b2eafea699b58badf 15-Jul-2010 Scott Main <smain@google.com> am 5352d237: am 38137d7a: Merge "docs: lots of additions to the resources docs new drawable resources add <merge> and <include> to layout resource update drawable class descriptioons to point to resources guide add ID resource type" into froyo

Merge commit '5352d2378d2f92ebe0657e4caedb4498492fc404' into gingerbread-plus-aosp

* commit '5352d2378d2f92ebe0657e4caedb4498492fc404':
docs: lots of additions to the resources docs
5352d2378d2f92ebe0657e4caedb4498492fc404 15-Jul-2010 Scott Main <smain@google.com> am 38137d7a: Merge "docs: lots of additions to the resources docs new drawable resources add <merge> and <include> to layout resource update drawable class descriptioons to point to resources guide add ID resource type" into froyo

Merge commit '38137d7a27b037611c70a9d900aa53b4c15563bf' into gingerbread

* commit '38137d7a27b037611c70a9d900aa53b4c15563bf':
docs: lots of additions to the resources docs
172b79e9df9a5689681cf0355921ec2445bc9f6f 15-Jul-2010 Mathias Agopian <mathias@google.com> am 98704f14: am 38eea8bf: Merge "Remove the YV16 format for simplicity\'s sake." into gingerbread

Merge commit '98704f14eaeef6c9bcb73fea162f4941dd9bbd87'

* commit '98704f14eaeef6c9bcb73fea162f4941dd9bbd87':
Remove the YV16 format for simplicity's sake.
98704f14eaeef6c9bcb73fea162f4941dd9bbd87 15-Jul-2010 Mathias Agopian <mathias@google.com> am 38eea8bf: Merge "Remove the YV16 format for simplicity\'s sake." into gingerbread

Merge commit '38eea8bf990540360b45b963195a7766c30b55d2' into gingerbread-plus-aosp

* commit '38eea8bf990540360b45b963195a7766c30b55d2':
Remove the YV16 format for simplicity's sake.
058d0390a44f68b67788021bae9ca1775812997b 07-Jul-2010 Mathias Agopian <mathias@google.com> Remove the YV16 format for simplicity's sake.

Change-Id: Iee03d100933ba0c67b13d51e0435be3b4cd953cf
ndroid/graphics/ImageFormat.java
e5e285509fdba2b996006e610e0d2888450230f0 14-Jul-2010 Romain Guy <romainguy@google.com> Merge "Enable 32-bits only assets."
594f4065141a53427cad6f4fc89219d2f27e1a7d 14-Jul-2010 Romain Guy <romainguy@google.com> Enable 32-bits only assets.

Go away dithering!

Change-Id: Iee5ee2e9430606e732d9b0abb3adc9f68275bd6d
ndroid/graphics/BitmapFactory.java
f35c96bb498ffa7b3348b4bf17e9e7475f6bb324 13-Jul-2010 Kenny Root <kroot@google.com> Merge "Support bidi/shaping for getTextPath"
250fd1144f238ce40ba7c40c7ad4d77c20a44695 13-Jul-2010 Alex Sakhartchouk <alexst@google.com> Merge "Work on synchronizing a3d created files and java layer. Adding culling to ProgramRaster"
6926c72e25b8dec3dd4b84af0819fa1937ae7296 13-Jul-2010 Romain Guy <romainguy@google.com> Correctly support pre-multiplied alpha, optimizations, more stuff.

Add support for the following drawing functions:
- drawBitmap(int[]...)
- drawPaint()

Optimizes shader state changes by enabling/disabling attribute arrays
only when needed.

Adds quick rejects when drawing trivial shapes to avoid unnecessary
OpenGL operations.

Change-Id: Ic2c6c2ed1523d08a63a8c95601a1ec40b6c7fbc9
ndroid/graphics/BitmapShader.java
80a4c2cd34aedb4f1a2e5e7d1ac26a9aeebe41ae 13-Jul-2010 Alex Sakhartchouk <alexst@google.com> Work on synchronizing a3d created files and java layer.
Adding culling to ProgramRaster

Change-Id: I58ccc82d37edc9539289d5eba44ea0e720874af5
ndroid/renderscript/Allocation.java
ndroid/renderscript/BaseObj.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/RenderScript.java
f7cb1f75fdaedf996cab7c4690b080adc7bc5b97 02-Jul-2010 Doug Felt <dougfelt@google.com> Support bidi/shaping for getTextPath

Move layout-related code into separate class since it's needed by both
canvas and paint.

Change-Id: Iba89a1d94d7cca650255ffa3cbc952b988a51b54
ndroid/graphics/Paint.java
3a70b20ee5aa2c0d451f1d2a5701bf9c43c8ca6f 10-Jul-2010 Gilles Debunne <debunne@google.com> Merge "New cursor controller in TextViews."
cc3ec6cdb2b892eb29513e72d8b205acbe997b25 23-Jun-2010 Gilles Debunne <debunne@google.com> New cursor controller in TextViews.

Editable TextView now display a cursor controller under the insertion
point so that it can be precisely moved.

Change-Id: Ia2e6ddc57d249647ff6683e10e4226db3df27223
ndroid/graphics/Canvas.java
ndroid/graphics/Rect.java
53a93d5e917038504ba4422e4ad346ae37131365 10-Jul-2010 Jason Sams <rjsams@android.com> Remove points from fixed function.
Add basic GL performance test.

Change-Id: I421a41b6683b2c5f70045cdd0f610a6939105fee
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/RenderScript.java
f26d01a7cede78d1c865f56b0b526db20710c3a4 08-Jul-2010 Jason Sams <rjsams@android.com> Merge "Add boolean support for setVar."
deba785f122a47915756ffd991f5540d952cf937 08-Jul-2010 Romain Guy <romainguy@google.com> Add support to draw 9patches in OpenGL.

This change only adds the necessary API and stubs. The implementation
will be added in another change.

Change-Id: Ie50b8aff5868e78796cee331df15bdbf990d2ea1
ndroid/graphics/Canvas.java
ndroid/graphics/NinePatch.java
ndroid/graphics/drawable/NinePatchDrawable.java
0b9a22cf782ab8f837161bf3357e08471ff5b9f2 03-Jul-2010 Jason Sams <rjsams@android.com> Add boolean support for setVar.

Change-Id: Id64f3b2e43e19fc2a2d5fd81bb98d9ca67aae843
ndroid/renderscript/Script.java
4beb8ff7175ebd14b96942724a658f407d0b9951 09-Jun-2010 Doug Felt <dougfelt@google.com> Support bidi layout for drawTextOnPath.

Change-Id: Ie5867fdb66fe15336774e20d65fa63e0d05bf6fe
ndroid/graphics/Canvas.java
8287a9bc5e184f1bbb91866591c4358a3a9eb168 02-Jul-2010 Alex Sakhartchouk <alexst@google.com> Cleanup pass on the mesh api change.
Removed all the simple mesh related calls and temporary objects.

Change-Id: Ic64a72a894e0314f216f10e1cfc0d45b17e2e182
ndroid/renderscript/RenderScript.java
ndroid/renderscript/SimpleMesh.java
164aaedf7f24827c3da84acc733325ae985930d6 02-Jul-2010 Alex Sakhartchouk <alexst@google.com> Start of mesh API cleanup.
Switched all native code to go through Mesh class.
Removed SimpleMesh
Added java Mesh class
Will need to port all existing code to use java Mesh, then remove java SimpleMesh.

Change-Id: Idb9c03d0b06b4ef87db28dffcffa1881d39120e5
ndroid/renderscript/FileA3D.java
ndroid/renderscript/Mesh.java
ndroid/renderscript/RenderScript.java
ce0537b80087a6225273040a987414b1dd081aa0 30-Jun-2010 Romain Guy <romainguy@google.com> Add hooks for drawBitmap().

Change-Id: I58e962c3a8b2bc75c2605fe369ad3002579d86e0

Add texture cache.

Change-Id: I1c0e5581d228869e114438258a1014e33e024ad7
ndroid/graphics/Bitmap.java
ndroid/graphics/Canvas.java
c7d53494f1fbd9f9d74af89053ff9fdb1ccbac6c 25-Jun-2010 Romain Guy <romainguy@android.com> Implement quickReject() and drawRect().

The OpenGL ES 2.0 renderer can now draw colored rectangles. At least there's
something on screen now.

Change-Id: I80a13ccc1dd56784edf74f2670a364f30700234a
ndroid/graphics/Canvas.java
ndroid/graphics/Paint.java
9b949fce39f0f39ce9275b71d7c347210775e7a8 25-Jun-2010 Alex Sakhartchouk <alexst@google.com> Adding freetype font rendering to renderscript.

Change-Id: I3a10ffe27092a41df156341c9cb3f7aa19c49f19
ndroid/renderscript/Allocation.java
ndroid/renderscript/Font.java
ndroid/renderscript/RenderScript.java
8f31bd6b68c796d4a4176721a6e13bfdba2166e0 24-Jun-2010 Jason Sams <rjsams@android.com> Merge "Add matrix ops to RSH headers."
fae3f6b4153ff39c4f9e00dcf635b413d0ae4e85 24-Jun-2010 Jason Sams <rjsams@android.com> Add matrix ops to RSH headers.

Change-Id: I7e2843983a12e0155114b4a18813799e4341d26f
ndroid/renderscript/FieldPacker.java
f6a11b8a9e25ff9861bbba19251bea84d8a5daf2 24-Jun-2010 Romain Guy <romainguy@google.com> Add support for transformations.

This change adds partial support for the following transforms:
- scale()
- translate()
- rotate()
- setMatrix()
- getMatrix()

The transform is stored in a snapshot and saved/restored as needed.
The transform is currently not applied to the clip rect and is not
mapped to the vertex shader.

Change-Id: Id48993453311200804149917d0c126a4d0471226
ndroid/graphics/Matrix.java
03f0292744094ec107ffce71301c394503a31ded 09-Jun-2010 Gilles Debunne <debunne@google.com> New XmlDocumentProvider class.

Minor changes in the Adapters.java helper class.

Extracts data out of a XML document using an XPath-like syntax.

Change-Id: I0617b0783f11c86118b42cd8485d54440810c805
ndroid/graphics/BitmapFactory.java
85bf02fc16784d935fb9eebfa9cb20fe46ff7951 22-Jun-2010 Romain Guy <romainguy@google.com> Fix the simulator build.

Change-Id: Ie404f7c2c308f0657f273af19a56e8c039b61898
ndroid/graphics/PorterDuff.java
9e2b0c505af55a56171db0d025368e7ea6c15458 22-Jun-2010 Jason Sams <rjsams@android.com> Fix build error.

Change-Id: Ife0ec056c33654a56f270a5673f614820cfc2e29
ndroid/renderscript/FieldPacker.java
f110d4b787b91dabe968a812e76e5c1f8d953487 22-Jun-2010 Jason Sams <rjsams@android.com> Move ImageProcessing and ModelViewer to reflected files.
Implement boolean support.

Change-Id: Iac2dc28067ac430b3e413fc651dfaa0b96214e2e
ndroid/renderscript/Element.java
ndroid/renderscript/FieldPacker.java
ndroid/renderscript/RenderScript.java
dfe5c204403bc56c29bb36410574eab8b1950417 09-Jun-2010 Scott Main <smain@google.com> docs: lots of additions to the resources docs
new drawable resources
add <merge> and <include> to layout resource
update drawable class descriptioons to point to resources guide
add ID resource type

Change-Id: I733eec50bb2671f28c9e6dd7dec14eb6586f5193
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/LevelListDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
ndroid/graphics/drawable/TransitionDrawable.java
020bb7b5ac26a6e2d2f6852952a84bb246445fcf 18-Jun-2010 Jason Sams <rjsams@android.com> Add skip to field packer.
remove hsb functions from env headers.
add RS_PACKED define for packed structures.

Change-Id: Idc661edff85c0047baa201f43e0839ac82c74593
ndroid/renderscript/FieldPacker.java
d4824c256cc510cedb8d50e84767d1122886b547 16-Jun-2010 Romain Guy <romainguy@google.com> Merge "Add new API to check whether a Bitmap was modified."
0bbae0836426ba2704e38e7f90a9d0ca502ab71d 16-Jun-2010 Romain Guy <romainguy@google.com> Add new API to check whether a Bitmap was modified.

Bitmap.getGenerationId() can be used by caches to find out if a Bitmap has been
modified. This simply exposes an existing Skia API.

This change also adds a small test app for Canvas hardware acceleration. The new
Bitmap API is required to implement a texture cache.

Change-Id: I8547b146cd14c8afe1a2327fcd6d71b1b1cb68fc
ndroid/graphics/Bitmap.java
96ed4cfa62dd09aafb3f9da01e047661b4fe3c95 15-Jun-2010 Jason Sams <rjsams@android.com> Remove InvokeData and add ContextFinish to generate a sync point.

Change-Id: I27da8bf5fba2c8a428964cb6a5e66dd7a94958d8
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Script.java
0c702b88c5d0d4380930b920f5be6e66dd95a0d8 14-May-2010 Doug Felt <dougfelt@google.com> Move shaping to native.

Add internal API (getTextRunAdvances) to Paint, use when measuring.
Add internal API (getTextRunCursor) to Paint, use when determining
valid cursor positions.

Remove java-level shaping code. Remove 'prep' code in TextLine
(except for replacement text) since shaping now is done on the fly as
needed in native.

Provide explicit shaping context bounds to internal text measuring,
cursor movement, and rendering APIs.

Update for to changes in external API in ushape.h.

Change-Id: I146958b624802ce8553125e5c3c6c03031bc9608
ndroid/graphics/Canvas.java
ndroid/graphics/Paint.java
2d6145993e19d2bb664766dbaf3c1e9ad3d12cdc 10-Jun-2010 Romain Guy <romainguy@google.com> Move OpenGL support out of ViewRoot into a new HardwareRenderer class.

Change-Id: Iffaed924a5defc3c4df26223c390dc27eee115b1
ndroid/graphics/Canvas.java
cbe4a73fef42602f68c698462ecc2e4b358d91b6 09-Jun-2010 Jason Sams <rjsams@android.com> Merge "Begin using reflected files."
e29f3e74f71ea730519ff8ae1d8dd4c1630bbaf9 09-Jun-2010 Jason Sams <rjsams@android.com> Begin using reflected files.

Change-Id: I5307a0eac9c206b85c0cf7451d3f8300134bf8e3
ndroid/renderscript/Element.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/SimpleMesh.java
d994dcbd816d5431dfaa59de7457e28bdfc8f523 08-Jun-2010 The Android Open Source Project <initial-contribution@android.com> am cefdedc3: merge from froyo-plus-aosp
c1038e778ff9f1efe6334ca71b74df5f720e6970 08-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I1a36964a723bce72139f1bc2402520b7f8d5e47b
aae74ad6144470c66e72b075ac3afeddb186fa98 04-Jun-2010 Alex Sakhartchouk <alexst@google.com> Creating the jni and java layer to integrate a3d

Change-Id: I438359633bae59bf9188cd2c4664a92ca16c5f37
ndroid/renderscript/FileA3D.java
ndroid/renderscript/RenderScript.java
92ce5734b52ef014c80cc6335112a027188b3eb6 02-Jun-2010 Erik Faye-Lund <kusmabite@googlemail.com> Canvas.drawVertices: correct color range-check

The range-check in drawVertices previously checked that the color
count was equal to the vertex count. However, the vertex count is
specified in array elements, and there's two array elements per
vertex for the positions, but only one array element per vertex
for the colors.

Correct the code so the check is consistent with the element count.

Change-Id: Id043f1003f9245f18adc91bac49dc33727ca765e
ndroid/graphics/Canvas.java
8cb39de03aef6097a90033600d11a60ae000a6e4 02-Jun-2010 Jason Sams <rjsams@android.com> Remove RS_KIND from vertex arrays types.
Legacy vertex programs now bind by name just like the user programs.
This removes the need for two different ways of declairing the same
information.

Change-Id: I0178c0962842a1bbffb6726984ae1b8f5bb7529c
ndroid/renderscript/Element.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/SimpleMesh.java
d79b2e9f8b0fa43f6734aaa5e9d0d389d5da5109 20-May-2010 Jason Sams <rjsams@android.com> Begin naming cleanup for renderscript runtime.
Prefix functions with "rs" or "rsg".

Change-Id: I4435b486831bfab1ea473ccfad435b404e68f1c9
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Script.java
1de0b87168837cfcd9318bec5c97d2e7d78d3293 17-May-2010 Jason Sams <rjsams@android.com> Remove more pieces of setRoot. Add pointer to allocation lookup for scripts.

Change-Id: I2c3075d2056f02bb834bfad403dc72da991f3156
ndroid/renderscript/RenderScript.java
ndroid/renderscript/ScriptC.java
b42315d37ab22e64ef88d3aed38ed75fd7071eed 15-May-2010 Jason Sams <rjsams@android.com> Delete old createFromClass methods.
It no longer makes sense to create type info from Java since this
cannot be exported to scripts. The new flow is in the opposite direction.

Change-Id: I9b46e3f57abf84c01326bd9b9b834f3ff0f7c504
ndroid/renderscript/Element.java
ndroid/renderscript/Type.java
54db59c3594e887a412a24713fc3daa1c2404593 14-May-2010 Jason Sams <rjsams@android.com> Rename ProgramFragmentStore to ProgramStore.

Change-Id: Ia8ad9ac856944838ced38a2f1e8f07387050bdfd
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
f47d7405bbcb25d7cdf89ebb059f41520fe9ab87 22-Apr-2010 Doug Felt <dougfelt@google.com> Modify Canvas drawText to run bidi and shape.

Adds drawTextRun as internal API on Canvas and GraphicsOperations.
Adds implementation to implementors of GraphicsOperations.

Adds state and API on Paint to control the bidi algorithm when used
by Canvas. This API is currently hidden.

The drawText changes are incomplete since shaping is not yet available
in the native code.

Change-Id: I4368048aef9545df0953a349381771603e04b619
ndroid/graphics/Canvas.java
ndroid/graphics/Paint.java
4d3399337d18ef04116bc8a2e5799274655d0c30 11-May-2010 Jason Sams <rjsams@android.com> Convert renderscript from using ACC to LLVM for its compiler.

This will also require application to be updated to support
the new compiler and data passing models.

Change-Id: If078e3a5148af395ba1b936169a407d8c3ad727f
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Sampler.java
ndroid/renderscript/Script.java
ndroid/renderscript/ScriptC.java
6430c943f9c32ea1503c6723302a944dcb18dac5 07-May-2010 Romain Guy <romainguy@google.com> Set a layered drawable's child callback to be the container.

Change-Id: I959ad03883931d727d464f384073926e8fa9e2d2
ndroid/graphics/drawable/LayerDrawable.java
79a63f7ddb5bfb32a37dfbfd3e7748389c5076ad 07-May-2010 Romain Guy <romainguy@google.com> Make sure that a drawable replacing a layer in a LayerDrawable gets a callback.

Change-Id: Iefac7d280b3c16e05f45688da655e17e21a3098b
ndroid/graphics/drawable/LayerDrawable.java
417675cab0f8f2fb73ff067071b5347186a81c19 26-Apr-2010 Peter Eliasson <peter.eliasson.x@sonyericsson.com> Improved error handling when font loading fails.

Without this patch, an application could trigger a platform crash
by calling:

Typeface typeface = Typeface.createFromFile("");
boolean isbold = typeface.isBold();

The crash occurs since the Skia error that occurs when font loading
fails is not propagated.
With this patch, the Typeface constructor throws an
IllegalStateException when Skia fails to load the font (i.e. when
the native instance is null).

Change-Id: I1002b37b7b32840cb7eeef6819d2982cb18c9003
ndroid/graphics/Typeface.java
d404d6f162cfd4071c8ff3a2d44b1077307e2102 14-Apr-2010 Mike Reed <reed@google.com> update dox for FILL_AND_STROKE style

Change-Id: I7835068a376dfa4d8c18d8bb20d97941a058e89f
http://b/issue?id=2590047
ndroid/graphics/Paint.java
1e91b3fde0a1a76388c7f2a7fd67562c66818f2e 13-Apr-2010 Gilles Debunne <debunne@google.com> Added documentation in Drawable.

Documentation on the ConstantState added.
Removed all warnings in Eclipse.

Change-Id: Ib1daf7eef1aff5660e805483f9dcae6fcd5a595e
ndroid/graphics/drawable/Drawable.java
20fc9bfe3ad16c5f36026fc43c85d0647b75cc40 12-Apr-2010 Gilles Debunne <debunne@google.com> Fixed links in MipmapDrawable documentation.

Fix for 78aaa97b77d56e35e994611406deb398eb9005db

Change-Id: I3b4a3b987560d5d3934776cdc7ae98c954bfab32
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/MipmapDrawable.java
78aaa97b77d56e35e994611406deb398eb9005db 10-Apr-2010 Gilles Debunne <debunne@google.com> New MipmapDrawable class.

This Drawable holds different scaled version of a Drawable and use the appropriate one
depending on its actual bounds to minimize scaling artifacts.

Change-Id: I4ced045d73c1ddd8982d9aaf39c3599b3ac58a16
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/MipmapDrawable.java
bb2890d40bba7f690055bf8ee7bda749171a3a53 03-Apr-2010 Romain Guy <romainguy@android.com> Add Overlay mode to the PorterDuff list of supported modes.

Change-Id: I2ec03b9a1039db3e3c16786222e4fde4782ed67e
ndroid/graphics/PorterDuff.java
b7248b7b810ed501d0a07ce762aee597f3b1c1a2 30-Mar-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Iad50c5ab4915d0868b3f79ea6ba0d657a6f98525
758e8d1d1daaa20fe65e9ff31153e657343aa011 29-Mar-2010 The Android Open Source Project <initial-contribution@android.com> am 2438894d: am 5849606d: merge from open-source master
5849606df71fb3d5ce88b966cff8382deccd56b6 29-Mar-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I6a7542e696e69bc8788f3b3b77fcec50512ba81c
5f3445dc609fb3dd64b023c1ba9c1ee3ba95b868 28-Mar-2010 David Hoover <karma@deadmoose.com> Fix typos in comment.

Change-Id: Ia2a9ea0802bcc5773bb4fd52d7e07f9492242bfd
ndroid/graphics/Color.java
2d71bc7b4c46a32cead32a35e6e137d13e8315ea 27-Mar-2010 Jason Sams <rjsams@android.com> Update Script java classes and llvm samples.

Change-Id: I05c8d63fcca095d4fea6abb1ff5736ab9d78a3e6
ndroid/renderscript/Script.java
ndroid/renderscript/ScriptC.java
a70f416c9cf2fc6cc5e132c1d656ce07441d6b82 26-Mar-2010 Jason Sams <rjsams@android.com> Checkin new types for RS.

Change-Id: I3d7a1a91c45cc1c97c60f3615f32e54e98e12f91
ndroid/renderscript/Allocation.java
ndroid/renderscript/Byte2.java
ndroid/renderscript/Byte3.java
ndroid/renderscript/Byte4.java
ndroid/renderscript/Element.java
ndroid/renderscript/FieldPacker.java
ndroid/renderscript/Float2.java
ndroid/renderscript/Float3.java
ndroid/renderscript/Float4.java
ndroid/renderscript/Int2.java
ndroid/renderscript/Int3.java
ndroid/renderscript/Int4.java
ndroid/renderscript/Long2.java
ndroid/renderscript/Long3.java
ndroid/renderscript/Long4.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Short2.java
ndroid/renderscript/Short3.java
ndroid/renderscript/Short4.java
ndroid/renderscript/Vector2f.java
ndroid/renderscript/Vector3f.java
ndroid/renderscript/Vector4f.java
8e10a7b7c82209bf52ab8545d21777ea1728f81e 26-Mar-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I4d8f34986fd9e16ead8a22909263069dbb819d3e
54900e8c05e92a0783e8468ad7c4513eb66adc80 25-Mar-2010 Mike Reed <reed@google.com> update dox that we ignore the exact parameter on computeBounds

Change-Id: I6051210ea2a73b4d1c6cd631a285209ab130b4e5
ndroid/graphics/Path.java
1be46d7920dbdce24f878d6f4889ea8591ab75c6 25-Mar-2010 viral.vkm <viral.vkm@gmail.com> setCornerRadii should be called when either of corners radius is specified
as 0dp and thus while checking for condition, it should be ORed and not ANDed.

It solves Android Issue: 939
http://code.google.com/p/android/issues/detail?id=939

Change-Id: Ic18fae769480972f763f634e7462c6ed3853220b
ndroid/graphics/drawable/GradientDrawable.java
a8551b1efa89841c01d3b6a01ac65e57084a3234 11-Mar-2010 Romain Guy <romainguy@android.com> Fix the build.

Change-Id: I0caef1fd522d231d803e0fd9e0b8fdf3272db168
ndroid/renderscript/RSSurfaceView.java
76d1e01d5e65c4631c827831e98ad4e300d99eab 05-Mar-2010 Mike Reed <reed@google.com> hidden api sameAs() to compare the pixels of 2 bitmaps for equality
ndroid/graphics/Bitmap.java
8a64743f37ed35af7c2204acd18bb3d62d8f66d5 02-Mar-2010 Jason Sams <rjsams@android.com> Add support for linking to a skia bitmap rather than always copying the data from the bitmap.
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
c2908e60c9b021fb4bb69acff8d49981dd4dade8 24-Feb-2010 Jason Sams <rjsams@android.com> Support defered generation of mipmaps. With this change we support mipmap generation when the texture is uploaded to GL without requiring RS to retain the full chain.
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
a696f5d667227365da732481770767dcb330dd23 18-Feb-2010 Mathias Agopian <mathias@google.com> Add ImageFormat.java and move the Camera/YUV constants from PixelFormat to it.

PixelFormat's corresponding constansts are now deprecated.
ndroid/graphics/ImageFormat.java
ndroid/graphics/PixelFormat.java
ndroid/graphics/YuvImage.java
35d2621b3a62e8ab0a19bb9f760346838f9680dd 18-Feb-2010 Mike Reed <reed@google.com> Merge "update dox"
2b95c2413838c2e2b127ebab8fb4fead7d52e460 09-Feb-2010 Jeff Sharkey <jsharkey@android.com> Added more @RemotableViewMethod methods, mutate ImageView.

Catch some View methods missed during the first pass of
marking with @RemotableViewMethod annotation. Also adds new
ImageView.setColorFilter(int) to match the android:tint XML
attribute.

When ImageView touches ColorFilter or alpha, mutate the
underlying Drawable. Fix NPE in StateListDrawable.mutate().
ndroid/graphics/drawable/StateListDrawable.java
7df951595fa99bb4ead7891a2d70e3281314c51e 17-Feb-2010 Mike Reed <reed@google.com> update dox
ndroid/graphics/AvoidXfermode.java
79b646ffe51c532f00b69dc4967ee51ca28986cf 12-Feb-2010 Jason Sams <rjsams@android.com> am 0b9bbb6d: DO NOT MERGE. Merge Froyo renderscript to Eclair to support live wallpapers on droid. This gives the necessary CPU reduction to allow the wallpapers to work on the slower CPU.

Merge commit '0b9bbb6dc5d7dabecf23e8c6bb4a267ba8c34fe8' into eclair-plus-aosp

* commit '0b9bbb6dc5d7dabecf23e8c6bb4a267ba8c34fe8':
DO NOT MERGE. Merge Froyo renderscript to Eclair to support live wallpapers on droid. This gives the necessary CPU reduction to allow the wallpapers to work on the slower CPU.
0b9bbb6dc5d7dabecf23e8c6bb4a267ba8c34fe8 12-Feb-2010 Jason Sams <rjsams@android.com> DO NOT MERGE. Merge Froyo renderscript to Eclair to support live wallpapers on droid. This gives the necessary CPU reduction to allow the wallpapers to work on the slower CPU.

Committer: Jason Sams <rjsams@android.com>

On branch droid
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)

modified: libs/rs/rsAllocation.cpp
modified: libs/rs/rsAllocation.h
modified: libs/rs/rsContext.cpp
modified: libs/rs/rsContext.h
modified: libs/rs/rsProgram.cpp
modified: libs/rs/rsProgram.h

Delete the old rollo sample which is obsolete.

Fix film init

Begin gl2 support. Renderscript still uses GL1.1 by default. However, 2.0 can be enabled and will render most tests correctly.

Fix film

Beging GL2 user shaders. Switch master to using GL2 by default.

Implement RS tracked defered texture and buffer object uploads.

Committer: Jason Sams <rjsams@android.com>

On branch droid
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)

modified: libs/rs/rsAllocation.cpp
modified: libs/rs/rsAllocation.h
modified: libs/rs/rsContext.h
modified: libs/rs/rsProgramFragment.cpp
modified: libs/rs/rsSimpleMesh.cpp

Remove check for surface valid that is no longer valid.

Continue development of es2.0 user shader support for renderscript. This change cleans up ProgramVertex creation and adds support for passing input, output, and constant type info.

Continue es2 shader dev

Conflicts:

graphics/java/android/renderscript/Program.java
graphics/java/android/renderscript/ProgramVertex.java

Place shader logging behind prop to declutter logs.

Fix emulated glColor in es2 mode.

Fix live wallpaper many. Z coordinate was being ignored for draw quad call.

Add argument checking to sampler builder to disallow illegal modes.

Move texture bindings to base program object. Change ProgramFragment creation to require a texture format in 1.0 mode.

Element restructuring. Add support for new basic Element types including the RS objects and vectors(2-4). In theory this paves the way for maintaining type info for RS objects, passing elements for GLSL uiforms/attribs/varyings, and supporting nested structures.

This will break some apps, checkings for other projects will follow to unbreak them.

Disable excessive RS logging.

Add RS support for generic attribs as input to vertex programs.

More complete support for named attribs. Adds user typed attribs as available to programVertex. Non user attribs are not treated like user for GL2 for simplicity.

Support npot on es 2.0 HW.

Change user attribs to look for empty slot rather than using them in order. Prevents conflict with numbered legacy slots.

Fix npot but where mipmap level sizes were rounding in the wrong direction. Should always be floor.

Implement type generation for user uniforms in vertex shader.

Remove excessive logging, fix error in GLSL uniform generation.

Fix RS mipmap generation for 8 bit alpha textures.

Cleanup seperation of Legacy and user attribs. All user programs now use the new names. Legacy vertex attribs are given default names.

Fix some minor bugs with GL state setup that were exposed by Droids driver.

Implement drawSpriteCropped on es2.0
ndroid/renderscript/Allocation.java
ndroid/renderscript/BaseObj.java
ndroid/renderscript/Element.java
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Sampler.java
ndroid/renderscript/SimpleMesh.java
ndroid/renderscript/Type.java
3941411a21b0ccbfb2843dd8c7c7fbe9f8e85abb 11-Feb-2010 The Android Open Source Project <initial-contribution@android.com> am 1e90ab54: merge from open-source master

Merge commit '1e90ab542d675616e9370ab7e5add99d7af12587'

* commit '1e90ab542d675616e9370ab7e5add99d7af12587':
Fixs the incorrect message for SecurityException
Default RotateDrawable's pivot set to (50%, 50%)
1e90ab542d675616e9370ab7e5add99d7af12587 11-Feb-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master
d2391faa5d21a7513f321c03da0945277e291ad7 05-Feb-2010 Wei-Ta Chen <weita@google.com> Modify the API of YuvImage, so that callers do not need to deal with
the yuv format when specifying a rectangle region.

Bug: 2285598
ndroid/graphics/YuvImage.java
704ff64b099406bb328898a7443921f22dbffd6d 10-Feb-2010 Jason Sams <rjsams@android.com> Preview seperating RenderScript into RenderScript and RenderScriptGL
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/RenderScriptGL.java
b81b1447d2cfa9dc5bcc02c8a1b7193400a97ab6 06-Feb-2010 Cyril Mottier <cyrilmottier@gmail.com> Default RotateDrawable's pivot set to (50%, 50%)

In order to define the pivot in an XML-instanciated RotateDrawable, android:pivotX
and android:pivotY had to be set in your XML. Forgetting to set those attributes
ended up in a NullPointerException (tv = null) that were caught by the Resources.getDrawable()
method (caught as an Exception). As a result a not-very-accurate message was logged:
"Resource not found ...". Defining a default pivot value seems like a great fix.
Some other fixes would be to modify the documentation or notify the user with a better
explanation than "Resource not found ...".
ndroid/graphics/drawable/RotateDrawable.java
57405b93f194851eb2187a8ed3362be18a483a17 03-Feb-2010 Jason Sams <rjsams@android.com> Merge "Hide field packer."
42d6c9e1e794713022d1370ba844ce05c7b2793f 03-Feb-2010 Jason Sams <rjsams@android.com> Hide field packer.
ndroid/renderscript/FieldPacker.java
2a594b1a240d40db70fd41140d3e29b9828d5274 03-Feb-2010 Jason Sams <rjsams@android.com> Merge "Implement holders for Matrix and Vector data."
25430d0734d12d12ca2d2d7a9d18c0cf3c5bdc4e 03-Feb-2010 Jason Sams <rjsams@android.com> Implement holders for Matrix and Vector data.
ndroid/renderscript/FieldPacker.java
ndroid/renderscript/Matrix.java
ndroid/renderscript/Matrix2f.java
ndroid/renderscript/Matrix3f.java
ndroid/renderscript/Matrix4f.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/Vector2f.java
ndroid/renderscript/Vector3f.java
ndroid/renderscript/Vector4f.java
c58ffe8253ca76160908d153242d8150f668ea32 27-Jan-2010 Wei-Ta Chen <weita@google.com> Unhide YuvImage, which supports compressing a YUV rectangle region to JPEG.

Bug: 2285598
ndroid/graphics/YuvImage.java
5dbfe93b3f15f3a837836d024958635fd8f9ad14 27-Jan-2010 Jason Sams <rjsams@android.com> Fix some minor bugs with GL state setup that were exposed by Droids driver.
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
bca2d613e0d6d2630fedd302c0d779b7610adbcf 30-Nov-2009 Wei-Ta Chen <weita@google.com> Add a Java API that converts yuv data to a jpeg.

The compression is done in the native layer via calling libjpeg.

Bug: 2285598
ndroid/graphics/YuvImage.java
ab4a0c164b5a44d5bfd37069cfe499db31e7620c 26-Jan-2010 Mike Reed <reed@google.com> add API to change default config on image decoders.

May be called by the browser to get high-quality images when running in a 32bit window
ndroid/graphics/BitmapFactory.java
6dc9232c1c9a7ddffba24d4bd218e46894f8414d 21-Jan-2010 Mike Reed <reed@google.com> am a66baccc: Merge "Do not merge" into eclair

Merge commit 'a66baccc8fa9f6fa5f1630845e3c6370cb3418eb' into eclair-plus-aosp

* commit 'a66baccc8fa9f6fa5f1630845e3c6370cb3418eb':
Do not merge
12bcbdc681c3195069f55bd9abda900da0886c70 20-Jan-2010 Mike Reed <reed@google.com> Do not merge

port stretchy from master
ndroid/graphics/utils/BoundaryPatch.java
ea87e96959895ef94cc3aa9576f41a660d2bbf03 12-Jan-2010 Jason Sams <rjsams@android.com> Implement type generation for user uniforms in vertex shader.
ndroid/renderscript/Allocation.java
ndroid/renderscript/Program.java
6d7b907ab5c4580542426aa3ebd8ff275077c7c4 07-Jan-2010 Jason Sams <rjsams@android.com> Merge "Support npot on es 2.0 HW."
74e02ef2000ff2783e526d6916e2f0b5d517593e 07-Jan-2010 Jason Sams <rjsams@android.com> Support npot on es 2.0 HW.
ndroid/renderscript/Allocation.java
9027696bf01d712658db9ff3003d0c11a89ddc2a 06-Jan-2010 Cary Clark <cary@android.com> am 9e5f3ec9: am e3bbaf6c: Merge "set nine patch padding initially to an empty rectangle" into eclair-mr2

Merge commit '9e5f3ec97d468702aa3f3a59e94009e807715189'

* commit '9e5f3ec97d468702aa3f3a59e94009e807715189':
set nine patch padding initially to an empty rectangle
9e5f3ec97d468702aa3f3a59e94009e807715189 06-Jan-2010 Cary Clark <cary@android.com> am e3bbaf6c: Merge "set nine patch padding initially to an empty rectangle" into eclair-mr2

Merge commit 'e3bbaf6c4f51f8201922cae29daa7e46f6c43bda' into eclair-mr2-plus-aosp

* commit 'e3bbaf6c4f51f8201922cae29daa7e46f6c43bda':
set nine patch padding initially to an empty rectangle
a09a6e145b778861f7abee86ce17e59507ed221e 06-Jan-2010 Jason Sams <rjsams@android.com> More complete support for named attribs. Adds user typed attribs as available to programVertex. Non user attribs are not treated like user for GL2 for simplicity.
ndroid/renderscript/Element.java
e57b7b09b198699adea91b6f9729007fda00834e 06-Jan-2010 Cary Clark <cary@android.com> set nine patch padding initially to an empty rectangle

Formerly, the padding state was set to null. Copying the padding
state fails when the null rectangle contents are referenced.

fixes http://b/2219785
ndroid/graphics/drawable/NinePatchDrawable.java
225ef52bd68f09ed7e52798f1a77422750926d87 05-Jan-2010 Jason Sams <rjsams@android.com> Merge "Add RS support for generic attribs as input to vertex programs."
e17964e150e459bacced5658ae36fe1c56082e37 05-Jan-2010 Jason Sams <rjsams@android.com> Add RS support for generic attribs as input to vertex programs.
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Type.java
7bcbd511731e13b9f2778e6aa6c633417d266f5e 23-Jun-2009 Marco Nelissen <marcone@google.com> Don't round size to page size. Ashmem will do this internally as needed.
ndroid/graphics/BitmapFactory.java
7d46f612a25fc9f190358e9bd807b71d424ce7d2 23-Dec-2009 Jason Sams <rjsams@android.com> Disable excessive RS logging.
ndroid/renderscript/Element.java
ndroid/renderscript/SimpleMesh.java
718cd1f322ee5b62b6a49cb36195bcb18a5ab711 23-Dec-2009 Jason Sams <rjsams@android.com> Element restructuring. Add support for new basic Element types including the RS objects and vectors(2-4). In theory this paves the way for maintaining type info for RS objects, passing elements for GLSL uiforms/attribs/varyings, and supporting nested structures.

This will break some apps, checkings for other projects will follow to unbreak them.
ndroid/renderscript/Allocation.java
ndroid/renderscript/BaseObj.java
ndroid/renderscript/Element.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/SimpleMesh.java
ndroid/renderscript/Type.java
873c0318617670bd5cb3197537f83ec85fcb7cc9 18-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I68afd01e

* changes:
Move texture bindings to base program object. Change ProgramFragment creation to require a texture format in 1.0 mode.
68afd01ec9fd37774d8291192952a25e5605b6fb 18-Dec-2009 Jason Sams <rjsams@android.com> Move texture bindings to base program object. Change ProgramFragment creation to require a texture format in 1.0 mode.
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/RenderScript.java
f7ed3a2b0fd00c517671cc986b4b44d29b60ac28 17-Dec-2009 Mike Reed <reed@google.com> am 0249c83e: am 31a69fdb: throw if we have a null typeface native instance (so we don\'t crash in native code) we may still have to native-destroy a Typeface with a null ref, so check for that

Merge commit '0249c83ed014cc6a36caac30e55db62c29c204e2'

* commit '0249c83ed014cc6a36caac30e55db62c29c204e2':
throw if we have a null typeface native instance (so we don't crash in native code)
0249c83ed014cc6a36caac30e55db62c29c204e2 17-Dec-2009 Mike Reed <reed@google.com> am 31a69fdb: throw if we have a null typeface native instance (so we don\'t crash in native code) we may still have to native-destroy a Typeface with a null ref, so check for that

Merge commit '31a69fdbe1edd8d686043e8ca7d278289f65808e' into eclair-mr2-plus-aosp

* commit '31a69fdbe1edd8d686043e8ca7d278289f65808e':
throw if we have a null typeface native instance (so we don't crash in native code)
31a69fdbe1edd8d686043e8ca7d278289f65808e 14-Dec-2009 Mike Reed <reed@google.com> throw if we have a null typeface native instance (so we don't crash in native code)
we may still have to native-destroy a Typeface with a null ref, so check for that
ndroid/graphics/Typeface.java
8bb41dd61474e977aa61048ba8f733a984a3b22d 17-Dec-2009 Jason Sams <rjsams@android.com> Add argument checking to sampler builder to disallow illegal modes.
ndroid/renderscript/Sampler.java
7e5ab3b177b10fee304d011b3a4b9ee03e2b18b5 15-Dec-2009 Jason Sams <rjsams@android.com> Continue es2 shader dev

Conflicts:

graphics/java/android/renderscript/Program.java
graphics/java/android/renderscript/ProgramVertex.java
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/RenderScript.java
0011bcf57ff711a221a3a4c73f2a79125111647d 15-Dec-2009 Jason Sams <rjsams@android.com> Continue development of es2.0 user shader support for renderscript. This change cleans up ProgramVertex creation and adds support for passing input, output, and constant type info.
ndroid/renderscript/Program.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/RenderScript.java
11fbdf50206abc9d21fd72ce7536648f083b9148 15-Dec-2009 Jason Sams <rjsams@android.com> Remove check for surface valid that is no longer valid.
ndroid/renderscript/RenderScript.java
c7b74e3412a752f4d60820afdaca002a7c60364e 08-Dec-2009 Jason Sams <rjsams@android.com> am 54f5ca41: am ffacbc34: am fd2f6358: Merge change I771bebb9 into eclair

Merge commit '54f5ca4115b776eb5a1e04a4c014acccb916ef9c'

* commit '54f5ca4115b776eb5a1e04a4c014acccb916ef9c':
Add Java exceptions to catch RS calls with no context or no surface.
54f5ca4115b776eb5a1e04a4c014acccb916ef9c 07-Dec-2009 Jason Sams <rjsams@android.com> am ffacbc34: am fd2f6358: Merge change I771bebb9 into eclair

Merge commit 'ffacbc3419825ec1c786dd3c27f3e2a8cd071d8f' into eclair-mr2-plus-aosp

* commit 'ffacbc3419825ec1c786dd3c27f3e2a8cd071d8f':
Add Java exceptions to catch RS calls with no context or no surface.
ffacbc3419825ec1c786dd3c27f3e2a8cd071d8f 07-Dec-2009 Jason Sams <rjsams@android.com> am fd2f6358: Merge change I771bebb9 into eclair

Merge commit 'fd2f6358321e95d661f24ba4e08327268035aa59' into eclair-mr2

* commit 'fd2f6358321e95d661f24ba4e08327268035aa59':
Add Java exceptions to catch RS calls with no context or no surface.
387488fb1f728b8986bd8d252130b2c46fb965ae 07-Dec-2009 Jason Sams <rjsams@android.com> am fd2f6358: Merge change I771bebb9 into eclair

Merge commit 'fd2f6358321e95d661f24ba4e08327268035aa59' into eclair-plus-aosp

* commit 'fd2f6358321e95d661f24ba4e08327268035aa59':
Add Java exceptions to catch RS calls with no context or no surface.
771bebb94054d06f97284379c93a2620613513c3 07-Dec-2009 Jason Sams <rjsams@android.com> Add Java exceptions to catch RS calls with no context or no surface.
ndroid/renderscript/Allocation.java
ndroid/renderscript/Element.java
ndroid/renderscript/Light.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Sampler.java
ndroid/renderscript/Script.java
ndroid/renderscript/SimpleMesh.java
8da7873f94d5a3722b5bb2dd73d51377ce3dff8a 03-Dec-2009 Joe Onorato <joeo@android.com> am dbed5350: am b28632a5: am c7a63eea: Add a new field to Intent that allows you to give a hint about what on screen caused the intent to be sent.

Merge commit 'dbed53504f515337ccc2f60248bb589dff0f24fb'

* commit 'dbed53504f515337ccc2f60248bb589dff0f24fb':
Add a new field to Intent that allows you to give a hint about what on screen caused the intent to
dbed53504f515337ccc2f60248bb589dff0f24fb 03-Dec-2009 Joe Onorato <joeo@android.com> am b28632a5: am c7a63eea: Add a new field to Intent that allows you to give a hint about what on screen caused the intent to be sent.

Merge commit 'b28632a5206d11844db39ca1ab5f64a99ec74e29' into eclair-mr2-plus-aosp

* commit 'b28632a5206d11844db39ca1ab5f64a99ec74e29':
Add a new field to Intent that allows you to give a hint about what on screen caused the intent to
b28632a5206d11844db39ca1ab5f64a99ec74e29 03-Dec-2009 Joe Onorato <joeo@android.com> am c7a63eea: Add a new field to Intent that allows you to give a hint about what on screen caused the intent to be sent.

Merge commit 'c7a63eea8d3d346addaaf892b5bbe0aa80651640' into eclair-mr2

* commit 'c7a63eea8d3d346addaaf892b5bbe0aa80651640':
Add a new field to Intent that allows you to give a hint about what on screen caused the intent to
03cd88b3ffee71fc22a2355eb462b6f99891411c 03-Dec-2009 Joe Onorato <joeo@android.com> am c7a63eea: Add a new field to Intent that allows you to give a hint about what on screen caused the intent to be sent.

Merge commit 'c7a63eea8d3d346addaaf892b5bbe0aa80651640' into eclair-plus-aosp

* commit 'c7a63eea8d3d346addaaf892b5bbe0aa80651640':
Add a new field to Intent that allows you to give a hint about what on screen caused the intent to
c7a63eea8d3d346addaaf892b5bbe0aa80651640 03-Dec-2009 Joe Onorato <joeo@android.com> Add a new field to Intent that allows you to give a hint about what on screen caused the intent to
be sent.
ndroid/graphics/Rect.java
54c0ec14e016e4a1bf3ceab40ed6ca5447da4725 30-Nov-2009 Jason Sams <rjsams@android.com> Beging GL2 user shaders. Switch master to using GL2 by default.
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/RenderScript.java
f630904134a81e9e5edbd7b2bd77e402c180782f 18-Nov-2009 Jason Sams <rjsams@android.com> am f56f317f: am fa0394c9: Merge change I715333b8 into eclair

Merge commit 'f56f317fb941c354c3a10e9fbf36d194656fa7d4' into eclair-mr2-plus-aosp

* commit 'f56f317fb941c354c3a10e9fbf36d194656fa7d4':
Add support for dumping RS objects to aid in debugging of white blocks bug.
bd2b773c23d6e5c07d5af2b1f6c25ad858b949d5 18-Nov-2009 Jason Sams <rjsams@android.com> am fa0394c9: Merge change I715333b8 into eclair

Merge commit 'fa0394c9f89f13b53c6db2470253825b88cafb64' into eclair-plus-aosp

* commit 'fa0394c9f89f13b53c6db2470253825b88cafb64':
Add support for dumping RS objects to aid in debugging of white blocks bug.
f56f317fb941c354c3a10e9fbf36d194656fa7d4 18-Nov-2009 Jason Sams <rjsams@android.com> am fa0394c9: Merge change I715333b8 into eclair

Merge commit 'fa0394c9f89f13b53c6db2470253825b88cafb64' into eclair-mr2

* commit 'fa0394c9f89f13b53c6db2470253825b88cafb64':
Add support for dumping RS objects to aid in debugging of white blocks bug.
715333b832fb448c32165c7d97d408a3fa43f7cb 18-Nov-2009 Jason Sams <rjsams@android.com> Add support for dumping RS objects to aid in debugging of white blocks bug.
ndroid/renderscript/RenderScript.java
234e509a67eb32606f3051d21eb3ea25b272d80d 16-Nov-2009 Jason Sams <rjsams@android.com> am 22186a2c: am ec8178eb: Merge change I9c1bad53 into eclair

Merge commit '22186a2c15cc752cfaaf8a12d415a3c097d338e0' into eclair-mr2-plus-aosp

* commit '22186a2c15cc752cfaaf8a12d415a3c097d338e0':
Add setPriority to allow wallpapers to run at lower cpu priority than default.
7b159b4a634a3a2cad6d2a385ae2c4ebf4eb59e0 16-Nov-2009 Jason Sams <rjsams@android.com> am ec8178eb: Merge change I9c1bad53 into eclair

Merge commit 'ec8178eb0fb10e1ed753be4d065cf7f004355575' into eclair-plus-aosp

* commit 'ec8178eb0fb10e1ed753be4d065cf7f004355575':
Add setPriority to allow wallpapers to run at lower cpu priority than default.
22186a2c15cc752cfaaf8a12d415a3c097d338e0 16-Nov-2009 Jason Sams <rjsams@android.com> am ec8178eb: Merge change I9c1bad53 into eclair

Merge commit 'ec8178eb0fb10e1ed753be4d065cf7f004355575' into eclair-mr2

* commit 'ec8178eb0fb10e1ed753be4d065cf7f004355575':
Add setPriority to allow wallpapers to run at lower cpu priority than default.
7d787b4722eaeb79cab42c36060336e092b77b5f 15-Nov-2009 Jason Sams <rjsams@android.com> Add setPriority to allow wallpapers to run at lower cpu priority than default.
ndroid/renderscript/RenderScript.java
478de466ce0504b9af639c3338b883893670a8e8 15-Nov-2009 Jean-Baptiste Queru <jbq@google.com> merge from eclair
8a4e470fc2c1351d58a6ab2d99eb12d01c5c2656 15-Nov-2009 Jean-Baptiste Queru <jbq@google.com> merge from open-source master
373329d477d2db20c66a85aa3e23a696d76a9954 13-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I736c525a into eclair-mr2

* changes:
update dox to account for different behavior between AVOID and TARGET modes
9db3d07b9620b4269ab33f78604a36327e536ce1 13-Nov-2009 Jean-Baptiste Queru <jbq@google.com> eclair snapshot
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
ndroid/graphics/BlurMaskFilter.java
ndroid/graphics/Color.java
ndroid/graphics/DashPathEffect.java
ndroid/graphics/Paint.java
ndroid/graphics/PixelFormat.java
ndroid/graphics/TableMaskFilter.java
ndroid/graphics/Typeface.java
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/LevelListDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
ndroid/graphics/drawable/TransitionDrawable.java
ndroid/renderscript/Allocation.java
ndroid/renderscript/BaseObj.java
ndroid/renderscript/Dimension.java
ndroid/renderscript/Element.java
ndroid/renderscript/Light.java
ndroid/renderscript/Matrix.java
ndroid/renderscript/Primitive.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Sampler.java
ndroid/renderscript/Script.java
ndroid/renderscript/ScriptC.java
ndroid/renderscript/SimpleMesh.java
ndroid/renderscript/Type.java
da8bb292db289bdd0e02b672daec09e2a3f9f462 13-Nov-2009 Jason Sams <rjsams@android.com> am 59175ac2: Merge change I81b1421a into eclair

Merge commit '59175ac269df2a584241e9786dc70ac35cb973e3' into eclair-mr2

* commit '59175ac269df2a584241e9786dc70ac35cb973e3':
Defer EGL init until the surface changed call comes in. Pass w,h along with surface for verification of driver state.
1e75deb288b06a87a75c027b23521195992016da 13-Nov-2009 Jason Sams <rjsams@android.com> am 59175ac2: Merge change I81b1421a into eclair

Merge commit '59175ac269df2a584241e9786dc70ac35cb973e3' into eclair-plus-aosp

* commit '59175ac269df2a584241e9786dc70ac35cb973e3':
Defer EGL init until the surface changed call comes in. Pass w,h along with surface for verification of driver state.
736c525a04a4d5e1c83541deca009ca97b99ef92 13-Nov-2009 Mike Reed <reed@google.com> update dox to account for different behavior between AVOID and TARGET modes

http://b/issue?id=2034547
ndroid/graphics/AvoidXfermode.java
3bc47d438171dce294e816366d53bc9eca772c5b 13-Nov-2009 Jason Sams <rjsams@android.com> Defer EGL init until the surface changed call comes in. Pass w,h along with surface for verification of driver state.
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RenderScript.java
7e2b4f602a1a876475da2756c5b92297552e0bc8 11-Nov-2009 Jean-Baptiste Queru <jbq@google.com> merge from open-source master
83387a484c515e5234bd60f741578a6ac894bff5 05-Nov-2009 Olivier Goutet <olivier.goutet@gmail.com> Correction of an error in the setRotate method of the ColorMatrix class.
The matrix rotation params around the 2nd axis was not set correctly:

Initial matrix for axis 2 (green):
cos 0 sin 0 0
0 1 0 0 0
-sin 0 0 0 0
0 0 cos 1 0

After correction:
cos 0 -sin 0 0
0 1 0 0 0
sin 0 cos 0 0
0 0 0 1 0
ndroid/graphics/ColorMatrix.java
a1c3681fb84e9baa3055709a18c635dc77c1b041 04-Nov-2009 Jason Sams <rjsams@android.com> am decc139b: Merge change I7a824efc into eclair

Merge commit 'decc139b232721ea1b0521d144521c8082636f0c' into eclair-mr2

* commit 'decc139b232721ea1b0521d144521c8082636f0c':
Support applications changing the surface attached to the RS.
efd9b6fb2e0f31b50db089352118e5daeb268879 03-Nov-2009 Jason Sams <rjsams@android.com> Support applications changing the surface attached to the RS.
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RenderScript.java
58d30b69071363aba38307bc5ee3b2d81f22f09d 30-Oct-2009 Mike Reed <reed@google.com> am 1864d01f: Merge change Iae849da2 into eclair

Merge commit '1864d01f2be0e82da7d8844fa91bee8880282041' into eclair-mr2

* commit '1864d01f2be0e82da7d8844fa91bee8880282041':
add table maskfilter
0e1e62301112a51d9b91ac4ac31c406d726f93ab 29-Oct-2009 Mike Reed <reed@google.com> add table maskfilter

hidden for now, since it need only be seen by Launcher2

http://b/issue?id=2210685
ndroid/graphics/TableMaskFilter.java
e4133ec1296f23142eabf7783db417ecc8f1bb05 30-Oct-2009 Jason Sams <rjsams@android.com> am ec1f1e3d: Merge change Ieab4c75b into eclair

Merge commit 'ec1f1e3df1ca5e73e262df479bf91a92f3ccafde' into eclair-mr2

* commit 'ec1f1e3df1ca5e73e262df479bf91a92f3ccafde':
Fix type in Java enums. Not currently used, easier to fix now than when apps are using it.
eab4c75b09aa81ea093c2b9fbb3dbc2016c9bd6e 29-Oct-2009 Jason Sams <rjsams@android.com> Fix type in Java enums. Not currently used, easier to fix now than when apps are using it.
ndroid/renderscript/ProgramStore.java
c04851fd0af87f44a7d7351e0c17442fa1d3fc28 28-Oct-2009 Mike Reed <reed@google.com> add boundary patch
ndroid/graphics/utils/BoundaryPatch.java
7299c83bd8f7053dec84d62a4914392bd91661ac 16-Oct-2009 Jason Sams <rjsams@android.com> Fix bug exposed by filmstrip. The updated and expanded SimpleMesh had an ordering bug with component coordinates when both texture and normals were used.
ndroid/renderscript/SimpleMesh.java
bd2197fb0038acd2dc4b17ad3ed3c69cc29dcce2 08-Oct-2009 Jason Sams <rjsams@android.com> Add script to script call support. Add exception to catch out of bound index data when added to TriangleMeshBuilder.
ndroid/renderscript/SimpleMesh.java
a78b0a2d9ebb38b86ed802b3d86de07d0b301262 07-Oct-2009 Mike Reed <reed@google.com> add (hidden) setHasAlpha() to allow clients like the view's cache to hint that a bitmap is opaque.

Knowing that a 32bit bitmap is opaque is a performance boost for some blits.
ndroid/graphics/Bitmap.java
516c31911578db8ce53529483c3ded918ac7dc6b 06-Oct-2009 Jason Sams <rjsams@android.com> Implement data push from scripts. Fixes the problem where apps would have to poll to monitor a scripts state.
Fix bug in StoreState where state could be overridden by the default unless the script used more than one state.

Change only impacts renderscript and renderscript apps.
ndroid/renderscript/RenderScript.java
7f047786d9e2027a15001a653675dae5a80f9390 03-Oct-2009 Jason Sams <rjsams@android.com> Update the SimpleMesh API to support new attribute types. Also spilt add/set commands to avoid permutation explosion.
ndroid/renderscript/SimpleMesh.java
bbed0d68c815446400193bdc8b16fbf73e1ee664 01-Oct-2009 Mike Reed <reed@google.com> hide setGammaForText, which is only used for calibrating new devices
ndroid/graphics/Typeface.java
29e4a3c566f435c32f0b95e4ac8e8b33cac6faba 01-Oct-2009 Dianne Hackborn <hackbod@google.com> Update from API review.

Change-Id: I16b1c566f91167aac9615ac59dd297a154c828ea
ndroid/graphics/drawable/BitmapDrawable.java
4e03999ca20fd326e4ded3d7444ddd5c14f369c7 29-Sep-2009 Mike Reed <reed@google.com> if we have a single value for roundrect radius, manually clamp it before drawing.

Skia will clamp the radius independently in X and Y to ensure it is not larger than 1/2 the width (or height).
If the caller to our drawable gives us a single value, we'll assume they want it to be circular, and not an oval.
To do that, we clamp it up front, so we get (possibly smaller) circular corners, rather than potentially
elliptical ones.

This makes the progress bar look "nicer" when it is very thin in one dimension.
ndroid/graphics/drawable/GradientDrawable.java
c20a9608f379b23aee473f992a327ac26a31ba17 29-Sep-2009 Dianne Hackborn <hackbod@google.com> Whoops, these shouldn't be public.

Change-Id: I66057b1fb63b97ad79cea7056849274c6a7b3ed4
ndroid/graphics/Paint.java
490d5222ae985f7e606cdf503d292062c80e7328 29-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I6cacaa0d into eclair

* changes:
Hack to fix issue #2125365: Sports Trivia compatability with Eclair
5235cf3f41cfcfe39c7072fddf1ead52db31292d 29-Sep-2009 Jason Sams <rjsams@android.com> Fix but processing raster state pragma.
rename stateFragmentStore to stateStore
ndroid/renderscript/BaseObj.java
afa78967b8553443aa32579d78970a076d7581f6 29-Sep-2009 Dianne Hackborn <hackbod@google.com> Hack to fix issue #2125365: Sports Trivia compatability with Eclair

Adds a mechanism to tell Paint the scaling factor its target
canvas will have, for it to compute font metrics based on the
correct font size. Only TextView uses this, but that is enough
for the large majority of apps.

Change-Id: I6cacaa0dd26d40ee3ad959bed0028678d6e9016e
ndroid/graphics/Paint.java
3c0dfbab807a459622aeade4940daddf482dec66 28-Sep-2009 Jason Sams <rjsams@android.com> Improve logging code to dump more detaild rs object info. Fix bug with predefined elements not being recreated for contexts after one was destroyed. Add stricter type enforcement.
ndroid/renderscript/Element.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/SimpleMesh.java
ndroid/renderscript/Type.java
66b2771d745aa66df5cf80b300b5ba0f936ff22e 26-Sep-2009 Jason Sams <rjsams@android.com> Reduce debugging spew and add props to selectivly re-enable it.

change-id: Ib59ed5d7a9d479ccd1af456029735dbc65ae1efe
ndroid/renderscript/RSSurfaceView.java
a9e7a05b84470257637c97d65f6562aa832c66ef 25-Sep-2009 Jason Sams <rjsams@android.com> Improve renderscript context teardown. Track object in the system and then force their cleanup by releasing all user references once destroy context is called. Java layer will no longer send destroy notifications for objects garbage collected once a context is destroyed.
ndroid/renderscript/BaseObj.java
ndroid/renderscript/RenderScript.java
5fda65f182231b0e9ad61b1a6803c7603e29344f 25-Sep-2009 Joe Onorato <joeo@android.com> Add a method to destroy the RS object.
ndroid/renderscript/RSSurfaceView.java
65e7aa56f56097418d617663683544c25b3988ea 25-Sep-2009 Jason Sams <rjsams@android.com> Implement pause/resume for the RS thread.
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RenderScript.java
6b9dec00afec359f091ed353f371f08ff150278a 24-Sep-2009 Jason Sams <rjsams@android.com> Remove depricated triangleMesh.
ndroid/renderscript/RenderScript.java
de0dfb7b65a02d4dd74c271b558adee0973fc267 23-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2125720 Weather Forecast Widget - graphics do not scale

I forgot to add the new density field to the Bitmaps' parcelable data.

Change-Id: I77cf3e93e356297e0caed6fc71b62b5cd8f79124
ndroid/graphics/Bitmap.java
5dd7c726f45fd7b7ab473471dc504c00012a6856 23-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26667 into eclair

* changes:
Add raster object to control point and line params. Add flag to force SW rendering.
ebfb436a49673693b98469683451bd9ede797557 23-Sep-2009 Jason Sams <rjsams@android.com> Add raster object to control point and line params. Add flag to force SW rendering.
ndroid/renderscript/ProgramRaster.java
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RenderScript.java
b8a9f12802ca5d1738a098a1769a8ed7959f248b 23-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix #2101821: Cut labels of menu items in "SnapTell" market app.

Ummmm... this turns out to be pretty bad. NinePatchDrawable was not
scaling its reported padding for compatibility mode, causing spacing
to be off. All over the place. This change should improve things quite
a bit (and magically makes nearly all of the menu flaws go away).

Change-Id: I94a8310d95b908b6f087db97d9afaed654ca6de5
ndroid/graphics/drawable/NinePatchDrawable.java
768bc02d815a94ad29146f1ed60c847d1af118cc 22-Sep-2009 Jason Sams <rjsams@android.com> Implement more type checks on Allocations.
Add tracking for allocations created using the "sized" helper.
Add more param validation for data upload calls.
ndroid/renderscript/Allocation.java
ndroid/renderscript/Element.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/SimpleMesh.java
ndroid/renderscript/Type.java
eb68c46a40c773eb56ef7bcf8e7ece5c6a5a8d23 18-Sep-2009 Chih-Chung Chang <chihchung@google.com> Fix 2092386: Support yuyv for camera preview format.

Change-Id: I3ef821fed2132a9faf92983324c7e036d0f5641e
ndroid/graphics/PixelFormat.java
d9497f7dd98da28da320ac2231c6e94a243ce257 17-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25394 into eclair

* changes:
Add StateListDrawable's dither flag to the constant state.
a41581ed4033004c73115113f45b9844e9b0210f 17-Sep-2009 Romain Guy <romainguy@android.com> Add StateListDrawable's dither flag to the constant state.

Change-Id: Ie377bfe3dfb83c33df3c0cc5a02810332a60a322
ndroid/graphics/drawable/DrawableContainer.java
07e62d1de9ca3c0f6f49973b549e8aa1e802ee5e 17-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25185 into eclair

* changes:
Implement renderscript Invokables.
be2e84193f709419634de4cc3ba0e67acf6976f3 17-Sep-2009 Jason Sams <rjsams@android.com> Implement renderscript Invokables.
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Script.java
ffff38420c8b4713470011b909ae2238b5675f7c 16-Sep-2009 Romain Guy <romainguy@android.com> Build the BitmapShader if it hasn't been built yet.

This was causing a bug in the InCall UI where the background would be stretched.

Change-Id: Ie25a7d09f4779f166e267b2f921d40441ce361d2
ndroid/graphics/drawable/BitmapDrawable.java
df4cf29715146d67306595108c565d9848a6ae1a 15-Sep-2009 Mike Reed <reed@google.com> redraw once more on a touch-up if we've been dragging, so we can redraw in high-quality mode
update dox on BlurMaskFilter
ndroid/graphics/BlurMaskFilter.java
ffa18dfac0b5e9e665897c9b1c107cb4268006b2 15-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25100 into eclair

* changes:
Implement Object readback.
5f43fd289abbd5380b6068766daf721b555d0053 15-Sep-2009 Jason Sams <rjsams@android.com> Implement Object readback.
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
c2974809373697147cbe5754835cc871fb93aef1 14-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2116977: buttons are huge and bent

Now that we are using preloaded drawables in compatibilty mode, when
constructing them from their constant state we need to set the new
drawable's target density appropriately.

Change-Id: I3665cbea09d38b9ac5f45f8c380dc8641f86b266
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/LevelListDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
ndroid/graphics/drawable/TransitionDrawable.java
8cae124af2142687a6833dbaab8a43df6dd67b43 10-Sep-2009 Dianne Hackborn <hackbod@google.com> Various cleanup around resources and nine-patches.

Remove the stuff that doesn't use preloaded drawables when in
compatibility mode, since this works fine ever since we were able
to deal with drawables in a different density than the canvas.

Change the snapshot function on View to return a snapshot at
the same size that will actually be drawn on screen (when in
compatibility mode), to be able to show scaling artifacts and
all.

This change was original an attempt to fix issue #2101917: Text
field edges appears to be improperly rounded. That turns out to
probably be something deeper in the graphics system, but also
included here is the debugging code I did to try to track down the
problem to make it easy to turn on again later.

Change-Id: I34bfca629639c7ff103f3989d88874112ef778d9
ndroid/graphics/drawable/NinePatchDrawable.java
211db4a2874f1a2d0e7a8cb8d33e81fa08801763 11-Sep-2009 Mike Reed <reed@google.com> change default for dither to true
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
da0a56df963353a1f1bd1914fa31f870d982dd5a 11-Sep-2009 Scott Main <smain@google.com> resolved conflicts for merge of e0408aa1 to eclair
df4578e8ab7008a7e528d5af2ae761b33cf2bdf4 10-Sep-2009 Scott Main <smain@google.com> docs only.
add documentation to notify developers about variable
camera specifications and add some more links

Change-Id: I46ef9811af17858cbc6547f88e626becb481b043
ndroid/graphics/PixelFormat.java
d9512a30d8e5c7780c3faf2fa59c076010f67b9e 10-Sep-2009 Mike Reed <reed@google.com> default dithering to ON (cheap, looks good)
officially ignore filtering (expensive, no real improvement)
ndroid/graphics/drawable/NinePatchDrawable.java
ea84a7c51790f9ba5f2194a66d6cf4ea8d879776 04-Sep-2009 Jason Sams <rjsams@android.com> Remove "predefined" elements from Java layer. Static elements continue to exist but are no longer treated as a special version of element.
ndroid/renderscript/Allocation.java
ndroid/renderscript/Element.java
ndroid/renderscript/RenderScript.java
2525a815220652b37e2e390fe8c62394a6d0e574 04-Sep-2009 Jason Sams <rjsams@android.com> Improve structure support using symbol lookup of named structures in scripts to allow them to appear as just pointers to structs.
ndroid/renderscript/Allocation.java
ndroid/renderscript/Element.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/SimpleMesh.java
650a3eb7d621dc8e81573142a4498bbd07bcde27 31-Aug-2009 Romain Guy <romainguy@android.com> Load bitmap resources entirely from native code.

Change-Id: I6660baec241794c40611bce79b7f9ce9479e52ba
ndroid/graphics/BitmapFactory.java
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
07ae40623737a6060b8a925fd2e6bba76780dcd4 28-Aug-2009 Jason Sams <rjsams@android.com> Implement async data/subData. Implement TriangleMeshBuilder in SimpleMesh which replaces TriangleMesh. Update Film to use new builder.
ndroid/renderscript/Allocation.java
ndroid/renderscript/Element.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/SimpleMesh.java
67c6844ea0577b7894c3053952eb4ee39fa3134c 26-Aug-2009 Jason Sams <rjsams@android.com> Remove bogus comments and logging.
ndroid/renderscript/RSSurfaceView.java
f5b4596a383b6ab83f92edecfe054e80b555c2d0 25-Aug-2009 Jason Sams <rjsams@android.com> Implement java interface for RS shutdown and fix shutdown deadlock with the command fifo.
ndroid/renderscript/RenderScript.java
b13ada5071f55c96054c47bbd88d8801cd2c0f15 25-Aug-2009 Jason Sams <rjsams@android.com> Add support for selecting the color bit depth and if the application used a depth buffer.
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RenderScript.java
dbade9d6a075b1d5b8ebe10ee8961a5de296c93b 25-Aug-2009 Mike Reed <reed@google.com> expose runtime changes to gamma
ndroid/graphics/Typeface.java
4a51c20ce607c74914f90fd897f04080121ac13b 22-Aug-2009 Dianne Hackborn <hackbod@google.com> I am getting tired of the java doc warnings, so fix them.

Change-Id: I2205eebae419eaf4a0992c9f5b7cd807eb843fe1
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
6afa16feb32d44c4977b3eb6007246a99f22fdbf 20-Aug-2009 Jeff Sharkey <jsharkey@android.com> Add dither XML flag to StateListDrawable.

We currently allow the dither="true" flag to be set on
individual <bitmap> and <nine-patch> objects, but that flag
is overridden when they are included in a <selector>. This
change adds the dither="true" flag to StateListDrawable so
they can be dithered when desired.

Fixes http://b/issue?id=2068024
ndroid/graphics/drawable/StateListDrawable.java
d8e4161f114331343b897cbacea927e7e60e7b17 21-Aug-2009 Jason Sams <rjsams@android.com> Allow null to be re-bound as a root script. This was always legal from native and just a limitation of the java binding for the API.
ndroid/renderscript/RenderScript.java
25ffcdc9d7e32c9c1eeb2b48cc2f17d1353e9fae 21-Aug-2009 Jason Sams <rjsams@android.com> Point Sprites
ndroid/renderscript/Element.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/RenderScript.java
484d57f4355ab3979025beaddeb0cbecb1a5b81f 19-Aug-2009 Romain Guy <romainguy@android.com> Move the sky
ndroid/renderscript/Type.java
730ee65d4ddb307898053b623120bad1655fadad 19-Aug-2009 Jason Sams <rjsams@android.com> Implement OOB destroy method that can be called from the java finalizer removing the need to explicitly destroy objects.
ndroid/renderscript/BaseObj.java
ndroid/renderscript/RenderScript.java
7ce033d797e5df5e2131e2ed459fba181eaf4658 18-Aug-2009 Jason Sams <rjsams@android.com> Cleanup of object destruction. No need to have a per-class destruction function. This was a legacy of the distant past when the classes did not have a common base.
ndroid/renderscript/Allocation.java
ndroid/renderscript/BaseObj.java
ndroid/renderscript/Element.java
ndroid/renderscript/Light.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Sampler.java
ndroid/renderscript/Script.java
ndroid/renderscript/SimpleMesh.java
ndroid/renderscript/Type.java
948ee251276e1ce7f5c5517b24bf88a75e99f160 18-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21660 into eclair

* changes:
Optimized Galaxy
4f7136c6595ba862be49a660180f084dad17325b 18-Aug-2009 Romain Guy <romainguy@android.com> Optimized Galaxy
ndroid/renderscript/Element.java
5fe1afe9cc24969d25496d57d911e8aae8b3ba7a 18-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21603 into eclair

* changes:
Fix infinite recursion.
46407d831ef31c0935e6d069198ffb275c840d83 18-Aug-2009 Dianne Hackborn <hackbod@google.com> Fix infinite recursion.
ndroid/graphics/drawable/Drawable.java
334ea0c98f051b5a6b85bc616c93304651854298 17-Aug-2009 Jason Sams <rjsams@android.com> Update fountain and add writable flag to script slots.
ndroid/renderscript/Element.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Script.java
7341d7a104b47996445d069a695e155a07184606 14-Aug-2009 Dianne Hackborn <hackbod@google.com> More work on wallpapers.

- Do better about figuring out when to stop them and other related window
management.
- Fix problem where we were not redrawing the surface when the orientation
changed. This was the cause of the device hang.
ndroid/graphics/BitmapFactory.java
ndroid/graphics/drawable/Drawable.java
81e4640d18d451992cb504b356ff4d2dc1b7f297 15-Aug-2009 Romain Guy <romainguy@android.com> Add Galaxy wallpaper
ndroid/renderscript/Element.java
e14e70a1b0bce377d90183e53c67688ce7067c0e 14-Aug-2009 Mike Reed <reed@google.com> fix documentation
ndroid/graphics/DashPathEffect.java
317a6280cc109e873646e4652be1582d870eedfd 14-Aug-2009 Mathias Agopian <mathias@google.com> Surface::GPU and Surface::HARDWARE are now deprecated; they will be set automatically if needed.

this also ripples into the window manager API by making some constant there deprecated as well.
ndroid/renderscript/RSSurfaceView.java
fbf0b9ecda03fbdbd4ebabfd18da09a789686249 13-Aug-2009 Jason Sams <rjsams@android.com> Implement named slots and convert script.addType to script.setType to remove ordering restrictions.
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Script.java
ndroid/renderscript/Type.java
1b52aae4d908fcf749e9a8d86bb0a33c70728c56 13-Aug-2009 Jason Sams <rjsams@android.com> Fix build break.
ndroid/renderscript/Type.java
43ee06857bb7f99446d1d84f8789016c5d105558 13-Aug-2009 Jason Sams <rjsams@android.com> Implement reflecting Java objects into the ACC enviroment.
ndroid/renderscript/Allocation.java
ndroid/renderscript/Element.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Script.java
ndroid/renderscript/Type.java
b3c61e7decf4b9fb00ac18937c756208d9ffb717 12-Aug-2009 Romain Guy <romainguy@android.com> Fix the build
ndroid/renderscript/RenderScript.java
f415cf2d78cb214b0a661e0f03905b4279656ea8 11-Aug-2009 Joe Onorato <joeo@android.com> Add two addDefines methods to ScriptC.Builder. They add #defines from the fileds on a class or object that you pass in.
ndroid/renderscript/ScriptC.java
5d3b13150d126e6d7f04978f4b142900311758ed 11-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20657

* changes:
Fix possible NPE when mutating a DrawableContainer
1010ac9b7c52b1e2a64e8e1f4dcdb4d79f4d32cc 11-Aug-2009 Romain Guy <romainguy@android.com> Fix possible NPE when mutating a DrawableContainer
ndroid/graphics/drawable/DrawableContainer.java
40a29e8e28772b37ab0f9fe9708ecdcba24abb84 10-Aug-2009 Jason Sams <rjsams@android.com> Implement basic allocation readback. Add Get height, width to ScriptC_Lib.
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
d7b3774da62d3c70cc7e8cf549967a1c823501e6 10-Aug-2009 Joe Onorato <joeo@android.com> Let java put #defines into renderscript
ndroid/renderscript/RenderScript.java
ndroid/renderscript/ScriptC.java
1bada8cd6e4f340de93cff4a2439835fc3b1456c 10-Aug-2009 Jason Sams <rjsams@android.com> Begin implementing SimpleMesh and fix some bugs with refcounting and java object destruction tracking.
ndroid/renderscript/Allocation.java
ndroid/renderscript/BaseObj.java
ndroid/renderscript/Element.java
ndroid/renderscript/Primitive.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Script.java
ndroid/renderscript/SimpleMesh.java
ndroid/renderscript/Type.java
9bee51c42eb8c3daffe7d6fa483edbb1689b94d2 05-Aug-2009 Jason Sams <rjsams@android.com> Remove useless slot from ProgramVertex. Optimize GL state setup.
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/RenderScript.java
110195fe9ff96255242bfa4df1d15c6a56b140d6 05-Aug-2009 Jason Sams <rjsams@android.com> Seperate ProgramVertex from RenderScript.java and merge ProgramVertexAlloc into the ProgramVertex class.
ndroid/renderscript/Light.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramVertex.java
ndroid/renderscript/ProgramVertexAlloc.java
ndroid/renderscript/RenderScript.java
0835d42be9b215f845e30db03211c86670cfa12a 05-Aug-2009 Jason Sams <rjsams@android.com> Seperate Light and Sampler from RenderScript.java
ndroid/renderscript/Light.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Sampler.java
22534176fb5c1257130ef4ee589739ca42766a32 05-Aug-2009 Jason Sams <rjsams@android.com> Split ProgramFragment and ProgramStore from RenderScript.java. Update Element and Type to new cached builder for easier app developement.
ndroid/renderscript/Element.java
ndroid/renderscript/ProgramFragment.java
ndroid/renderscript/ProgramStore.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Script.java
ndroid/renderscript/Type.java
69f0d31e576c0110c2cbbafc3b9bd46e73fc1afc 04-Aug-2009 Jason Sams <rjsams@android.com> Split ScriptC from RenderScript.java. Implement state caching in the Builder objects.
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Script.java
ndroid/renderscript/ScriptC.java
9df76c7c2f94cf3a66a61b28432b7c5d68869255 04-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9551

* changes:
Implement the jni bindings for Adapter2D. Fix a refcount bug in the native adapter implementation. Use adapters in Film to border the mipmaps.
bd1c3ad0cdf8e60b849a009cdc0b36764cc1dacb 04-Aug-2009 Jason Sams <rjsams@android.com> Implement the jni bindings for Adapter2D. Fix a refcount bug in the native adapter implementation. Use adapters in Film to border the mipmaps.
ndroid/renderscript/Allocation.java
ndroid/renderscript/RenderScript.java
0391107e13e1e6388a3175399d15b246d726b88f 03-Aug-2009 Jean-Baptiste Queru <jbq@google.com> merge from donut
a32d100b34d048cf0c765d8f31d87b81ab88d1eb 01-Aug-2009 Romain Guy <romainguy@android.com> Add new utility methods to rsScriptC_Lib, android.util.MathUtil and android.graphics.Color.
Fixes RS compilation.
ndroid/graphics/Color.java
b8c5a84e7c23746a3fc26013e0880d3d95ca6588 01-Aug-2009 Jason Sams <rjsams@android.com> Split RenderScript Type and Allocation into seperate classes.
ndroid/renderscript/Allocation.java
ndroid/renderscript/Dimension.java
ndroid/renderscript/ProgramVertexAlloc.java
ndroid/renderscript/RenderScript.java
ndroid/renderscript/Type.java
5c1207be90fdf296c1b83034b7c68915e1749284 01-Aug-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
ndroid/graphics/Canvas.java
ndroid/graphics/NinePatch.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/NinePatchDrawable.java
36e612a488511940b61f09803b270aa1c61b68e0 01-Aug-2009 Jason Sams <rjsams@android.com> Begin splitting up RenderScript.java into seperate classes. First piece split off Element.
ndroid/renderscript/BaseObj.java
ndroid/renderscript/Element.java
ndroid/renderscript/ProgramVertexAlloc.java
ndroid/renderscript/RenderScript.java
584a375df68ed7d62b38389078c6804edf228f9c 31-Jul-2009 Romain Guy <romainguy@android.com> First pass at implementing the Grass live wallpaper in RenderScript.

This change also adds second(), minute() and hour() to the RS library.
ndroid/renderscript/RenderScript.java
afcf686cb070313ae5ce6c54ac381a3a86a60ed2 31-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 25dff70f: Merge change 9039 into donut

Merge commit '25dff70f153529b87f5ad4a92f4de21e8950b1de'

* commit '25dff70f153529b87f5ad4a92f4de21e8950b1de':
Fix #2018814: System cannot correctly render assets with "wrap_content" attribute in QVGA
dba3ba5b5bf6026abceced921b1b0d231b0faefd 30-Jul-2009 Jason Sams <rjsams@android.com> Implement bitmap resource loaders for utility. cleanup rolloRS and checkin maps.png which was missing.
ndroid/renderscript/RenderScript.java
0d221012ff5fd314711c00ed30e9b807b9c454c1 30-Jul-2009 Dianne Hackborn <hackbod@google.com> Fix #2018814: System cannot correctly render assets with "wrap_content" attribute in QVGA

It turns out we were not returning the density for anything retrieved from a
TypedArray... which basically means any bitmap references from a layout or style...!!!

This is now fixed.

Also fiddle with the density compatibility mode to turn on smoothing in certain situations,
helping the look of things when they need to scale and we couldn't do the scaling at
load time.
ndroid/graphics/Canvas.java
61e4248f8f6ae8a8f40550cc0800e5190cd1dc09 29-Jul-2009 Jean-Baptiste Queru <jbq@google.com> merge from donut
a8675f67e33bc7337d148358783b0fd138b501ff 29-Jul-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
ndroid/graphics/Canvas.java
ndroid/graphics/Rect.java
ndroid/graphics/drawable/ShapeDrawable.java
a590434559a15b70693acb1767d06635706fcc9c 28-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8835

* changes:
Add "boxed" bitmap uploads which simply place a non-pow2 bitmap into the smallest larger pow texture. The added space is filled black.
b0ec1b46d6f5b5612e33fe43a828abea79b87a00 28-Jul-2009 Jason Sams <rjsams@android.com> Add "boxed" bitmap uploads which simply place a non-pow2 bitmap into the smallest larger pow texture. The added space is filled black.
ndroid/renderscript/RenderScript.java
2c3fc83ac5b267d6a551deb36b30064a2e617944 27-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am ef9fd18d: Merge change 8616 into donut

Merge commit 'ef9fd18d90829ecbd37769cc05a8d5288aff821c'

* commit 'ef9fd18d90829ecbd37769cc05a8d5288aff821c':
Fiddle with default densities to try to sanitize the API.
96e240f25a97c10bba863df328ed73a82c34ff61 27-Jul-2009 Dianne Hackborn <hackbod@google.com> Fiddle with default densities to try to sanitize the API.

An issue with the density API is that bitmaps assumed the old default density,
so new programs would have to explicitly set the correct density for every bitmap
they create.

This is an attempt to fix that situation, by define the default density of bitmaps
to be the main screen's density, except for old apps where it is the original default
density.

Actually implementing this is not so great, though, because the Bitmap constructors
can't really know anything about who is calling them to know which density to use.
So at this level the compatibility mode is defined per-process -- meaning the initial
package loaded into a process defines the default bitmap density, and everyone else
loaded in later on has to live with that.

In practice this shouldn't be much of a problem, there shouldn't be much mixing of
old vs. new apps in a process. It does mean that, going forward, if a developer is
going to use shared user IDs for this, they will need to make sure either that all of
their apps are in the same compatibility mode, or that their code explicitly sets the
density of bitmaps it receives. This isn't all that great, but I think it is worth
the benefit of allowing people who write modern apps to not have to deal with bitmap
densities.

This change also does some cleanup of the density management (making sure to always
copy over bitmap densities, etc) and adds java docs to explain the various ways
density is set and used by the system.
ndroid/graphics/Bitmap.java
ndroid/graphics/Canvas.java
2af1b3db3d4f687d008db74b150f149e956b4bc6 26-Jul-2009 Jean-Baptiste Queru <jbq@google.com> Merge korg/donut into korg/master
e2dba02441b42afbae725109ac779877a4b72aa0 25-Jul-2009 Dianne Hackborn <hackbod@google.com> am 11ea3347: Allow for screen density drawables in compatibility mode.

Merge commit '11ea33471e1a14a8594f0b2cd012d86340dd3bd8'

* commit '11ea33471e1a14a8594f0b2cd012d86340dd3bd8':
Allow for screen density drawables in compatibility mode.
11ea33471e1a14a8594f0b2cd012d86340dd3bd8 23-Jul-2009 Dianne Hackborn <hackbod@google.com> Allow for screen density drawables in compatibility mode.

This change allows us to use drawables that match the current screen
density even when being loaded in compatibility mode. In this case,
the bitmap is loaded in the screen density, and the bitmap and
nine-patch drawables take care of accounting for the density difference.

This should be safe for existing applications, for the most part, since
they shouldn't really be pulling the bitmap out of the drawable. For
the small rare chance of them breaking, it worth getting the correct
graphics. Also this will only happen when there is actually a resource
of the matching density, and no existing apps should have resources for
anything besides the default density (though of course all of the
framework resources will be available in the native density).

As part of this, the bitmap density API has been changed to a single
integer provider the DPI unit density.
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
ndroid/graphics/Canvas.java
ndroid/graphics/NinePatch.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
bc512021ee967bf106561e58af946814bff02da1 24-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 8279

* changes:
Move the java and jni renderscript files to the proper location.
e29d471e5ca9781d8772d445ec7832e94856fd14 24-Jul-2009 Jason Sams <rjsams@android.com> Move the java and jni renderscript files to the proper location.
ndroid/renderscript/Matrix.java
ndroid/renderscript/ProgramVertexAlloc.java
ndroid/renderscript/RSSurfaceView.java
ndroid/renderscript/RenderScript.java
8aea2f5f749e48ef0fe3532ab2fc258922c3239b 22-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 59c25cba: Merge change 8218 into donut

Merge commit '59c25cbaf0dd690e503b881392510127441d9074'

* commit '59c25cbaf0dd690e503b881392510127441d9074':
DrawableContainer was not respecting the value returned by Drawable.getPadding(Rect).
5140141c2637b89ad0d86c3b715459a1e7b92729 22-Jul-2009 Romain Guy <romainguy@android.com> DrawableContainer was not respecting the value returned by Drawable.getPadding(Rect).

Before this change, DrawableContainer would always return true from getPadding(Rect)
even if all of its children were returning false from getPadding(Rect). This change
modifies this behavior to respect getPadding(Rect): mConstantPadding is kept null
when getPadding(Rect) returns false for all of the children and a flag is set
to avoid recomputing that value every time getConstantPadding() is invoked.
ndroid/graphics/drawable/DrawableContainer.java
fead9b8ad0c6e64066fb73f4285b088ab68f452b 22-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am fe6f45c8: Merge change 8098 into donut

Merge commit 'fe6f45c81463d2d28e11ac6083f2653e1286c5ef'

* commit 'fe6f45c81463d2d28e11ac6083f2653e1286c5ef':
cast is floor. Use round instead.
61324e58c549670c015010d0be14c6af76e3e9f7 22-Jul-2009 Mitsuru Oshima <oshima@google.com> cast is floor. Use round instead.
This fixes a few layout issues (that was due to smaller widnow size)
ndroid/graphics/Rect.java
cf4550c3198d6b3d92cdc52707fe70d7cc0caa9f 21-Jul-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
ndroid/graphics/Canvas.java
ndroid/graphics/NinePatch.java
ndroid/graphics/drawable/Animatable.java
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/GradientDrawable.java
bec99bffeecacb1af603966391014895f9a16025 20-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 5c536e91: Merge change 7840 into donut

Merge commit '5c536e9162721c460699a041959a0d67de1d20db'

* commit '5c536e9162721c460699a041959a0d67de1d20db':
Fix issue where scaled bitmap sizes could be wrong.
469b4c67adc77a87eb2c9ed9217edf1778002828 20-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am aad0fcc9: Merge change 7783 into donut

Merge commit 'aad0fcc9619eb72c18a6afff48ebc9d4011f0f54'

* commit 'aad0fcc9619eb72c18a6afff48ebc9d4011f0f54':
Add "nodpi" density, and expose a bunch of density-related APIs.
2784ff0af88128f66ae690b73d48fb7e4a211e68 19-Jul-2009 Dianne Hackborn <hackbod@google.com> Fix issue where scaled bitmap sizes could be wrong.

The Bitmap functions to get the scaled width/height couldn't actually
do the right thing because they didn't know the destination they would
be drawing to. Now there are two forms of them, taking an explicit
parameter specifying the destination.
ndroid/graphics/Bitmap.java
a53b828635fce8b6b2d3e3377d74d72070056623 17-Jul-2009 Dianne Hackborn <hackbod@google.com> Add "nodpi" density, and expose a bunch of density-related APIs.

Also update the DpiTest app to use nodpi images, and try to have a mode
where it turns off compatibility though it's not quite working.
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
ndroid/graphics/Canvas.java
c634fdd8035cc06c34663b77ab199d29697273b4 18-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 09a903ab: Merge change 7696 into donut

Merge commit '09a903ab5b8d940605783ae4ee591c0f090a31d1'

* commit '09a903ab5b8d940605783ae4ee591c0f090a31d1':
add hidden Options field for native allocations
1b22b979256cf163ab9bbfd4fcfa16a8ce862ed1 17-Jul-2009 Mike Reed <reed@google.com> add hidden Options field for native allocations
ndroid/graphics/BitmapFactory.java
eabdb7c252d7e245932891482458486e67ab93d2 08-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 6b532800: Merge change 6478 into donut

Merge commit '6b5328006ff9e844713eb26b40621d72bee0bdd1'

* commit '6b5328006ff9e844713eb26b40621d72bee0bdd1':
Fix ShapeDrawable.inflateTag() to accept proper dimension specs for padding
90cfa9df3f3b586eae49ee2d2533a05238d391a4 08-Jul-2009 Phil Dubach <phillipd@google.com> Fix ShapeDrawable.inflateTag() to accept proper dimension specs for padding

ShapeDrawable.inflateTag() handles the 'padding' tag with the standard
attributes android:left, etc. The attribute values for these standard
attributes should be dimension specifications, e.g. '4dp'.
ShapeDrawable.inflateTag() was wrongly parsing the attribute values as plain
integers.
ndroid/graphics/drawable/ShapeDrawable.java
0f07b2c850ee1462ca4cf3137a954a9fc4bdf773 27-Apr-2009 Brad Fitzpatrick <brad@danga.com> Lazily allocate the mBounds Rect in Drawable.

For background, see:
http://kohlerm.blogspot.com/2009/04/analyzing-memory-usage-off-your-android.html

Thanks, Markus!
ndroid/graphics/drawable/Drawable.java
fbc7c1a784b3e9b003feaa9bd39d4283b316308e 02-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 9848f11f: Merge change 5826 into donut

Merge commit '9848f11fd8788b985330183aeb83cc589b8b14ae'

* commit '9848f11fd8788b985330183aeb83cc589b8b14ae':
Fix NullPointerException in NinePatch constructor
0901c82336c79ca3e3d67b1df8a5cb7ee45ec13e 02-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 91c91b74: Merge change 5817 into donut

Merge commit '91c91b74df12e40c31a50ecb807ac60bed2ccb58'

* commit '91c91b74df12e40c31a50ecb807ac60bed2ccb58':
Replace indeterminate progress animated asset with new ones
91a546d4a9b63e590cd2b56f1195981c50334e54 01-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 083928fe: Merge change 5718 into donut

Merge commit '083928fefde7060eb69f7f45cd8e2180efa9bfe1'

* commit '083928fefde7060eb69f7f45cd8e2180efa9bfe1':
Fix NullPointerException in DrawableContainer.mutate()
54285f2cbfb6e307d594ca264f7230b4e1e3cdce 30-Jun-2009 Phil Dubach <phillipd@google.com> Fix NullPointerException in NinePatch constructor

NinePatch.mPaint may be null and most methods in this class handle
that case properly. However, the constructor which derives a new
NinePatch from an existing instance assumes that mPaint is non-null.
This results in an unexpected NullPointerException, for example when
attempting to call NinePatchDrawable.mutate() on an instance that was
created from a resource.

Small unrelated fix in same file: Remove unused private mRect member.
ndroid/graphics/NinePatch.java
b5537c452271634b6ff3981b0624fa65384abd5b 30-Jun-2009 Romain Guy <romainguy@android.com> Replace indeterminate progress animated asset with new ones
ndroid/graphics/drawable/Animatable.java
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/AnimationDrawable.java
4658e8ece61f5f1eb8734850f18eb6438e4ebc80 30-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 05ebcb51: Merge change 5609 into donut

Merge commit '05ebcb5172679a6c196cbf23d7174c04dd9f6ae0'

* commit '05ebcb5172679a6c196cbf23d7174c04dd9f6ae0':
Update spinner's drawables. Clean up resources, pave the way for new animation.
6be507cc66863a08f08d6c0675e5bc11e5a45d32 30-Jun-2009 Phil Dubach <phillipd@google.com> Fix NullPointerException in DrawableContainer.mutate()

DrawableContainerState.mDrawables is an array which may be only partially
filled, as can be seen in the constructor and the addChild() method.

DrawableContainer.mutate() wrongly assumed that the array does not contain
null references.
ndroid/graphics/drawable/DrawableContainer.java
f4f7046183f0daedd17703fa16cf9026442bdaee 27-Jun-2009 Romain Guy <romainguy@android.com> Update spinner's drawables. Clean up resources, pave the way for new animation.
ndroid/graphics/drawable/AnimatedRotateDrawable.java
ndroid/graphics/drawable/Drawable.java
82c88fc3a7a38af75e9064a4a73940da7c49e6ab 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am a2a60a21: Merge change 5142 into donut

Merge commit 'a2a60a215030ca2171bc59aaeeac4179816f0796'

* commit 'a2a60a215030ca2171bc59aaeeac4179816f0796':
Fix NPE in GradientDrawable constructor
562bf17c6c7c5226b2220e27a1543d4a43543d6c 24-Jun-2009 Phil Dubach <phillipd@google.com> Fix NPE in GradientDrawable constructor

The mColors member can be null, as can be seen in
GradientDrawable.setSolidColor() or the plain constructor. In that case, an NPE
will be thrown on attempts to derive a new GradientDrawable from the instance
using the private constructor GradientDrawable(GradientDrawable).

The problem also occurs when inflating a GradientDrawable from XML without
defining the start, center and end colors and then calling mutate() on the
instance.
ndroid/graphics/drawable/GradientDrawable.java
ce1311a3a0806d39dc675a3c702eebbfe741dec8 22-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 766d7236: Merge change 4737 into donut

Merge commit '766d7236c84f636b816d71189e309e67db1f593a'

* commit '766d7236c84f636b816d71189e309e67db1f593a':
Add prepareToDraw() to Bitmap for fixing http://b/issue?id=1907995.
8cdcb12752b716d0407733fecefcf1d9e926310a 18-Jun-2009 Wei-Ta Chen <weita@google.com> Add prepareToDraw() to Bitmap for fixing http://b/issue?id=1907995.

The function is used to rebuild any caches associated with the bitmap.
In the case of purgeable bitmaps, this call ensures that the pixels
are decoded for drawing, and therefore prefetching techniques
implemented by callers can be leveraged.
ndroid/graphics/Bitmap.java
903ccf479f7c06cd17f581b6633f2575d7dc7a60 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 2b1aed10: Merge change 4527 into donut

Merge commit '2b1aed1021fb472de83c4c0143f2c4452244a0af'

* commit '2b1aed1021fb472de83c4c0143f2c4452244a0af':
Fix Canvas.finalize() for the case where the constructor throws an exception
4566b79736f236c0f605c57130d1fa954f4642d6 18-Jun-2009 Phil Dubach <phillipd@google.com> Fix Canvas.finalize() for the case where the constructor throws an exception
before the native canvas instance was created.

If the canvas constructors throw an exception (because the bitmap passed in is
immutable or already recycled), the constructor terminates early without
allocating the native canvas instance. For the most part, that's okay, since
the Canvas instance will never be returned to the application. However, the GC
will still call finalize() on the half-initialized Canvas.

The native methods for Canvas all assume that the canvas pointer passed down is
not null.
ndroid/graphics/Canvas.java
984b5df3830fe26a45bee39c7e8dd86714c99ed0 17-Jun-2009 Marco Nelissen <marcone@google.com> Add support to BitmapFactory for decoding a bitmap from a MemoryFile FileDescriptor.
ndroid/graphics/BitmapFactory.java
683f3bed89d15c673b9fd391dc258c088e9316ae 04-Jun-2009 Wei-Ta Chen <weita@google.com> Unhide inInputShareable in BitmapFactory.Options.

The variable works together with inPurgeable, which has been unhidden in
https://android-git.corp.google.com/g/Gerrit#change,2870.
ndroid/graphics/BitmapFactory.java
eb949674fd3b83b706f795fc6b16ab1c66250c93 02-Jun-2009 Wei-Ta Chen <weita@google.com> Unhide inPurgeable in BitmapFactory.Options.

The correctness and effectiveness of the usage of the parameter are evaluated in:
https://android-git.corp.google.com/g/Gerrit#change,2768
ndroid/graphics/BitmapFactory.java
843ef36f7b96cc19ea7d2996b7c8661b41ec3452 20-May-2009 Jean-Baptiste Queru <jbq@google.com> donut snapshot
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
ndroid/graphics/Canvas.java
ndroid/graphics/Matrix.java
ndroid/graphics/Paint.java
ndroid/graphics/Rect.java
ndroid/graphics/Region.java
ndroid/graphics/Typeface.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
60b88edea7132ddce90f2dced07c6706f1502270 14-May-2009 Ken Shirriff <kens@google.com> Fix typos.
ndroid/graphics/Bitmap.java
33a31b314f571ddcbef003e8a399c20ddeff6905 12-May-2009 Dirk Dougherty <nobody@android.com> AI 148752: Fix description of breakText() param.
BUG=1790234

Automated import of CL 148752
ndroid/graphics/Paint.java
807f23b2d8c7148cf6fc95bb88cfc2f78e4be66a 13-May-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 1057 into donut

* changes:
* Add regoin scaling for transparent support
b10f138e125b5656e810901d14c5f956ff5d9b64 12-May-2009 Mitsuru Oshima <oshima@google.com> * Add regoin scaling for transparent support
ndroid/graphics/Region.java
a87a132ebf1c2dd733cf52feff6e44525257c961 12-May-2009 Romain Guy <romainguy@android.com> Fixes #1847219. Add a new API to load fonts from arbitrary files: Typeface.createFromFile(String/File).
ndroid/graphics/Typeface.java
83b2107c4d2f07f46b6ae663115421749486f8b1 12-May-2009 Romain Guy <romainguy@android.com> Fixes #1846038. DrawableContainer was wrongly returning its opacity by ignoring the visibility of the currently selected layer. This change simply reports a TRANSPARENT opacity if there is no currently selected layer of if the selected layer is not visible. Otherwise it reports the opacity computed by the state class.
ndroid/graphics/drawable/DrawableContainer.java
13735a255dedd2c2e3b0cff66f0be2e17671f553 29-Apr-2009 Mitsuru Oshima <> Merge branch 'readonly-p4-donut' into donut
8169daed2f7a8731d478b884b1f455c747b88478 29-Apr-2009 Mitsuru Oshima <> AI 147976: Compatibility mode support. Part 2.
* Introduced ApplicationScale (may not be good name. CompatibilityScale? CanvasScale? Pls let me know if you have better idea)
* Changes to RootView / SurfaceView
- Makes the app believe it's running in the supported density/resolution.
- Makes the window manager believe it's running at the right density/resolution.
* Added methods to Rect/Event for scaling up/down.
Known issues:
* certain kind of images (such as nine patch for buttons) seesm to be loaded not by app, thus does not take the scale into account,
which, in turn, is causing layout issue.
* ZoomButton in MapView is rendered in wrong place
* Transparent region on Surface is not correct
* Specifying different densities in one process is not working.
BUG=1770627

Automated import of CL 147976
ndroid/graphics/Rect.java
4924ae8d1f7610b8639e55b1088f6b4a993bfd40 28-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 618 into donut

* changes:
Fixes #1816088. Avoid initializing empty Rects when they are useless, especially in Zygote.
23bd84ce6c448b73847eb404f3a1cc7b10afb6d6 28-Apr-2009 Romain Guy <romainguy@google.com> Fixes #1816088. Avoid initializing empty Rects when they are useless, especially in Zygote.
ndroid/graphics/drawable/Drawable.java
caf0df1b7f99736aed1a0b923ef278fc4fd0fcca 27-Apr-2009 Mike Reed <reed@google.com> Add call to (new) Canvas.freeCaches() in response to low-memory

This is in conjunction with removing a similar call made by the browser.
Now it will be centralized, and the browser's call site will be removed.
ndroid/graphics/Canvas.java
7bc2202d9af2fc9b0e4a28f1c1a5b475a7cf0a25 27-Apr-2009 Brad Fitzpatrick <brad@danga.com> Lazily allocate the mBounds Rect in Drawable.

For background, see:
http://kohlerm.blogspot.com/2009/04/analyzing-memory-usage-off-your-android.html

Thanks, Markus!
ndroid/graphics/drawable/Drawable.java
1fb758e94b5b9e342b6dc6452cb5bd7cf0cc4ed6 27-Apr-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 546 into donut

* changes:
Add (hidden for now) purgeable bitmaps
c70e06bbfac0d92ec218a32e35d9d7fa80f23cc9 24-Apr-2009 Mike Reed <reed@google.com> Add (hidden for now) purgeable bitmaps

BitmapFactory::Options now let you specify if the resulting bitmap can be
"purgeable". If so, then its decoded pixels may be purged when not actively
being drawn, freeing up that RAM. When such a bitmap is drawn, it will
automatically be re-decoded on demand. This is done by having the bitmap
keep a reference/copy of the encoded data.

Where it is a reference or a copy is controlled by the "shareable" flag in
Options. If this is true, the implementation *may* just reference the encode
data (e.g. a file descriptor) rathern than making a complete copy of it.

Currently, purgeable is not supported for generic inputstreams, but is
enabled for byte-array, file-descriptor, and assets, though for impl
reasons only file-descripts are currently enabled for "shareable", but that
may change in the future.
ndroid/graphics/BitmapFactory.java
1d442e0d990b581357f33f5463c7c5cb49b551e8 21-Apr-2009 Dianne Hackborn <hackbod@google.com> More optimization of dumpsys output.

There are three major classes of changes here:

- Avoid writing lines where their values are often empty, false, or some other typical thing.
- Use partial writes to the PrintWriter to avoid creating temporary strings.
- Use StringBuilder where we need to generate real String objects (and where possible cache the result).
ndroid/graphics/Matrix.java
ndroid/graphics/Rect.java
c39a6e0c51e182338deb8b63d07933b585134929 11-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137873
ndroid/graphics/Paint.java
4df2423a947bcd3f024cc3d3a1a315a8dc428598 05-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136594
ndroid/graphics/drawable/LevelListDrawable.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
ndroid/graphics/AvoidXfermode.java
ndroid/graphics/Bitmap.aidl
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
ndroid/graphics/BitmapShader.java
ndroid/graphics/BlurMaskFilter.java
ndroid/graphics/Camera.java
ndroid/graphics/Canvas.java
ndroid/graphics/Color.java
ndroid/graphics/ColorFilter.java
ndroid/graphics/ColorMatrix.java
ndroid/graphics/ColorMatrixColorFilter.java
ndroid/graphics/ComposePathEffect.java
ndroid/graphics/ComposeShader.java
ndroid/graphics/CornerPathEffect.java
ndroid/graphics/DashPathEffect.java
ndroid/graphics/DiscretePathEffect.java
ndroid/graphics/DrawFilter.java
ndroid/graphics/EmbossMaskFilter.java
ndroid/graphics/Interpolator.java
ndroid/graphics/LayerRasterizer.java
ndroid/graphics/LightingColorFilter.java
ndroid/graphics/LinearGradient.java
ndroid/graphics/MaskFilter.java
ndroid/graphics/Matrix.java
ndroid/graphics/Movie.java
ndroid/graphics/NinePatch.java
ndroid/graphics/Paint.java
ndroid/graphics/PaintFlagsDrawFilter.java
ndroid/graphics/Path.java
ndroid/graphics/PathDashPathEffect.java
ndroid/graphics/PathEffect.java
ndroid/graphics/PathMeasure.java
ndroid/graphics/Picture.java
ndroid/graphics/PixelFormat.java
ndroid/graphics/PixelXorXfermode.java
ndroid/graphics/Point.java
ndroid/graphics/PointF.java
ndroid/graphics/PorterDuff.java
ndroid/graphics/PorterDuffColorFilter.java
ndroid/graphics/PorterDuffXfermode.java
ndroid/graphics/RadialGradient.java
ndroid/graphics/Rasterizer.java
ndroid/graphics/Rect.aidl
ndroid/graphics/Rect.java
ndroid/graphics/RectF.aidl
ndroid/graphics/RectF.java
ndroid/graphics/Region.aidl
ndroid/graphics/Region.java
ndroid/graphics/RegionIterator.java
ndroid/graphics/Shader.java
ndroid/graphics/SumPathEffect.java
ndroid/graphics/SweepGradient.java
ndroid/graphics/TemporaryBuffer.java
ndroid/graphics/Typeface.java
ndroid/graphics/Xfermode.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/LevelListDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/PaintDrawable.java
ndroid/graphics/drawable/PictureDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
ndroid/graphics/drawable/TransitionDrawable.java
ndroid/graphics/drawable/package.html
ndroid/graphics/drawable/shapes/ArcShape.java
ndroid/graphics/drawable/shapes/OvalShape.java
ndroid/graphics/drawable/shapes/PathShape.java
ndroid/graphics/drawable/shapes/RectShape.java
ndroid/graphics/drawable/shapes/RoundRectShape.java
ndroid/graphics/drawable/shapes/Shape.java
ndroid/graphics/drawable/shapes/package.html
ndroid/graphics/package.html
om/android/internal/graphics/NativeUtils.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
ndroid/graphics/AvoidXfermode.java
ndroid/graphics/Bitmap.aidl
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
ndroid/graphics/BitmapShader.java
ndroid/graphics/BlurMaskFilter.java
ndroid/graphics/Camera.java
ndroid/graphics/Canvas.java
ndroid/graphics/Color.java
ndroid/graphics/ColorFilter.java
ndroid/graphics/ColorMatrix.java
ndroid/graphics/ColorMatrixColorFilter.java
ndroid/graphics/ComposePathEffect.java
ndroid/graphics/ComposeShader.java
ndroid/graphics/CornerPathEffect.java
ndroid/graphics/DashPathEffect.java
ndroid/graphics/DiscretePathEffect.java
ndroid/graphics/DrawFilter.java
ndroid/graphics/EmbossMaskFilter.java
ndroid/graphics/Interpolator.java
ndroid/graphics/LayerRasterizer.java
ndroid/graphics/LightingColorFilter.java
ndroid/graphics/LinearGradient.java
ndroid/graphics/MaskFilter.java
ndroid/graphics/Matrix.java
ndroid/graphics/Movie.java
ndroid/graphics/NinePatch.java
ndroid/graphics/Paint.java
ndroid/graphics/PaintFlagsDrawFilter.java
ndroid/graphics/Path.java
ndroid/graphics/PathDashPathEffect.java
ndroid/graphics/PathEffect.java
ndroid/graphics/PathMeasure.java
ndroid/graphics/Picture.java
ndroid/graphics/PixelFormat.java
ndroid/graphics/PixelXorXfermode.java
ndroid/graphics/Point.java
ndroid/graphics/PointF.java
ndroid/graphics/PorterDuff.java
ndroid/graphics/PorterDuffColorFilter.java
ndroid/graphics/PorterDuffXfermode.java
ndroid/graphics/RadialGradient.java
ndroid/graphics/Rasterizer.java
ndroid/graphics/Rect.aidl
ndroid/graphics/Rect.java
ndroid/graphics/RectF.aidl
ndroid/graphics/RectF.java
ndroid/graphics/Region.aidl
ndroid/graphics/Region.java
ndroid/graphics/RegionIterator.java
ndroid/graphics/Shader.java
ndroid/graphics/SumPathEffect.java
ndroid/graphics/SweepGradient.java
ndroid/graphics/TemporaryBuffer.java
ndroid/graphics/Typeface.java
ndroid/graphics/Xfermode.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/LevelListDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/PaintDrawable.java
ndroid/graphics/drawable/PictureDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
ndroid/graphics/drawable/TransitionDrawable.java
ndroid/graphics/drawable/package.html
ndroid/graphics/drawable/shapes/ArcShape.java
ndroid/graphics/drawable/shapes/OvalShape.java
ndroid/graphics/drawable/shapes/PathShape.java
ndroid/graphics/drawable/shapes/RectShape.java
ndroid/graphics/drawable/shapes/RoundRectShape.java
ndroid/graphics/drawable/shapes/Shape.java
ndroid/graphics/drawable/shapes/package.html
ndroid/graphics/package.html
om/android/internal/graphics/NativeUtils.java
076357b8567458d4b6dfdcf839ef751634cd2bfb 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
3dec7d563a2f3e1eb967ce2054a00b6620e3558c 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
da996f390e17e16f2dfa60e972e7ebc4f868f37e 13-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@131421
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
ndroid/graphics/Canvas.java
ndroid/graphics/NinePatch.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/LevelListDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
ndroid/graphics/drawable/TransitionDrawable.java
ndroid/graphics/drawable/package.html
ndroid/graphics/drawable/shapes/PathShape.java
ndroid/graphics/drawable/shapes/RectShape.java
ndroid/graphics/drawable/shapes/RoundRectShape.java
ndroid/graphics/drawable/shapes/Shape.java
f1e484acb594a726fb57ad0ae4cfe902c7f35858 22-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127436
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
ndroid/graphics/drawable/LayerDrawable.java
b798689749c64baba81f02e10cf2157c747d6b46 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/LevelListDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
ndroid/graphics/drawable/TransitionDrawable.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
ndroid/graphics/Rect.java
ndroid/graphics/RectF.aidl
ndroid/graphics/RectF.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/TransitionDrawable.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
ndroid/graphics/AvoidXfermode.java
ndroid/graphics/Bitmap.aidl
ndroid/graphics/Bitmap.java
ndroid/graphics/BitmapFactory.java
ndroid/graphics/BitmapShader.java
ndroid/graphics/BlurMaskFilter.java
ndroid/graphics/Camera.java
ndroid/graphics/Canvas.java
ndroid/graphics/Color.java
ndroid/graphics/ColorFilter.java
ndroid/graphics/ColorMatrix.java
ndroid/graphics/ColorMatrixColorFilter.java
ndroid/graphics/ComposePathEffect.java
ndroid/graphics/ComposeShader.java
ndroid/graphics/CornerPathEffect.java
ndroid/graphics/DashPathEffect.java
ndroid/graphics/DiscretePathEffect.java
ndroid/graphics/DrawFilter.java
ndroid/graphics/EmbossMaskFilter.java
ndroid/graphics/Interpolator.java
ndroid/graphics/LayerRasterizer.java
ndroid/graphics/LightingColorFilter.java
ndroid/graphics/LinearGradient.java
ndroid/graphics/MaskFilter.java
ndroid/graphics/Matrix.java
ndroid/graphics/Movie.java
ndroid/graphics/NinePatch.java
ndroid/graphics/Paint.java
ndroid/graphics/PaintFlagsDrawFilter.java
ndroid/graphics/Path.java
ndroid/graphics/PathDashPathEffect.java
ndroid/graphics/PathEffect.java
ndroid/graphics/PathMeasure.java
ndroid/graphics/Picture.java
ndroid/graphics/PixelFormat.java
ndroid/graphics/PixelXorXfermode.java
ndroid/graphics/Point.java
ndroid/graphics/PointF.java
ndroid/graphics/PorterDuff.java
ndroid/graphics/PorterDuffColorFilter.java
ndroid/graphics/PorterDuffXfermode.java
ndroid/graphics/RadialGradient.java
ndroid/graphics/Rasterizer.java
ndroid/graphics/Rect.aidl
ndroid/graphics/Rect.java
ndroid/graphics/RectF.java
ndroid/graphics/Region.aidl
ndroid/graphics/Region.java
ndroid/graphics/RegionIterator.java
ndroid/graphics/Shader.java
ndroid/graphics/SumPathEffect.java
ndroid/graphics/SweepGradient.java
ndroid/graphics/TemporaryBuffer.java
ndroid/graphics/Typeface.java
ndroid/graphics/Xfermode.java
ndroid/graphics/drawable/AnimationDrawable.java
ndroid/graphics/drawable/BitmapDrawable.java
ndroid/graphics/drawable/ClipDrawable.java
ndroid/graphics/drawable/ColorDrawable.java
ndroid/graphics/drawable/Drawable.java
ndroid/graphics/drawable/DrawableContainer.java
ndroid/graphics/drawable/GradientDrawable.java
ndroid/graphics/drawable/InsetDrawable.java
ndroid/graphics/drawable/LayerDrawable.java
ndroid/graphics/drawable/LevelListDrawable.java
ndroid/graphics/drawable/NinePatchDrawable.java
ndroid/graphics/drawable/PaintDrawable.java
ndroid/graphics/drawable/PictureDrawable.java
ndroid/graphics/drawable/RotateDrawable.java
ndroid/graphics/drawable/ScaleDrawable.java
ndroid/graphics/drawable/ShapeDrawable.java
ndroid/graphics/drawable/StateListDrawable.java
ndroid/graphics/drawable/TransitionDrawable.java
ndroid/graphics/drawable/package.html
ndroid/graphics/drawable/shapes/ArcShape.java
ndroid/graphics/drawable/shapes/OvalShape.java
ndroid/graphics/drawable/shapes/PathShape.java
ndroid/graphics/drawable/shapes/RectShape.java
ndroid/graphics/drawable/shapes/RoundRectShape.java
ndroid/graphics/drawable/shapes/Shape.java
ndroid/graphics/drawable/shapes/package.html
ndroid/graphics/package.html
om/android/internal/graphics/NativeUtils.java