• Home
  • History
  • Annotate
  • only in /frameworks/base/graphics/java/android/graphics/
History log of /frameworks/base/graphics/java/android/graphics/
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
aint.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
rawable/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
aint.java
ypeface.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
rawable/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
aint.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
rawable/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
hader.java
3915e25d41ce40f24fd41d8bcd6a058403d0bbc5 19-May-2017 John Reck <jreck@google.com> Convert Shader to NativeAllocationRegistry

Bug: 38258699
Test: manual
Change-Id: I1537dee3187ea0366f2c236f3e6825196d738a37
omposeShader.java
hader.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
anvas.java
b1d2f0a1d0900ba5651f98021b4b7b4229ebb490 11-May-2017 Chris Craik <ccraik@google.com> Update Bitmap#prepareToDraw doc

Fixes: 38132750
Test: none

Change-Id: I95d4617c08c1aab23c322ec40ae15462766db3ba
itmap.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
itmap.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
ypeface.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
rawable/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
ypeface.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
rawable/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
itmap.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
ypeface.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
rawable/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
ontListParser.java
aint.java
ypeface.java
onts/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
ath.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
ypeface.java
onts/FontRequest.java
onts/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
ypeface.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
urfaceTexture.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
ypeface.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
ypeface.java
onts/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
olor.java
olorSpace.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
urfaceTexture.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
rawable/AdaptiveIconDrawable.java
rawable/BitmapDrawable.java
rawable/Drawable.java
rawable/DrawableInflater.java
rawable/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
onts/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
rawable/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
rawable/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
ypeface.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
itmap.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
omposeShader.java
hader.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
itmap.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
itmapShader.java
olorMatrixColorFilter.java
omposeShader.java
ightingColorFilter.java
inearGradient.java
orterDuffColorFilter.java
adialGradient.java
hader.java
weepGradient.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
ypeface.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
olorSpace.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
aint.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
itmapFactory.java
itmapRegionDecoder.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
itmap.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
olor.java
olorSpace.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
ypeface.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
ypeface.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
olorSpace.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
olorSpace.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
ontFamily.java
ypeface.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
ypeface.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
rawable/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
ypeface.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
ypeface.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
onts/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
anvas.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
olorSpace.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
rawable/AdaptiveIconDrawable.java
rawable/BitmapDrawable.java
rawable/ColorDrawable.java
rawable/Drawable.java
rawable/DrawableContainer.java
rawable/DrawableWrapper.java
rawable/GradientDrawable.java
rawable/LayerDrawable.java
rawable/NinePatchDrawable.java
rawable/RippleDrawable.java
rawable/ShapeDrawable.java
rawable/StateListDrawable.java
rawable/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
itmap.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
olorSpace.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
rawable/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
ypeface.java
onts/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
rawable/DrawableContainer.java
rawable/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
rawable/DrawableContainer.java
rawable/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
ontFamily.java
ontListParser.java
aint.java
ypeface.java
onts/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
olor.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
rawable/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
ect.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
olorSpace.java
aint.java
orterDuff.java
orterDuffXfermode.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
itmapFactory.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
rawable/DrawableContainer.java
rawable/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)
ontListParser.java
ypeface.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)
olor.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
ypeface.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
ontFamily.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
ypeface.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
ypeface.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
ontFamily.java
ontListParser.java
ypeface.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
aseCanvas.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
df/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
olorFilter.java
olorMatrix.java
olorMatrixColorFilter.java
ightingColorFilter.java
aint.java
orterDuffColorFilter.java
hader.java
rawable/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
rawable/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
aint.java
ypeface.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
ypeface.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
ontFamily.java
ontListParser.java
ypeface.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
itmap.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
anvas.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
aint.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
olorSpace.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
anvas.java
957b3372f2b6c1c50ca50d4b6b22f5a041d08f04 11-Mar-2017 Chris Craik <ccraik@google.com> Add comment to Shader#mLocalMatrix

Test: just comments, none

Change-Id: Idd337deef5fa796f3d83ffbddca58949b27d5169
hader.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
rawable/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
ypeface.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
itmapShader.java
omposeShader.java
inearGradient.java
adialGradient.java
hader.java
weepGradient.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
itmap.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
itmap.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
rawable/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
ypeface.java
onts/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
itmap.java
olorSpace.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
aint.java
e4179e2c4e674b32390a9133bb9fbb3ef5df651b 01-Mar-2017 Hyunyoung Song <hyunyoungs@google.com> Change MaskableBitmap to AdaptiveBitmap
Test: $ make dist -j30
b/35399620

Change-Id: I96d6eaceaf7ce9dec7de21634a5fa2bd40b0deba
rawable/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
olor.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
rawable/ShapeDrawable.java
rawable/shapes/ArcShape.java
rawable/shapes/OvalShape.java
rawable/shapes/PathShape.java
rawable/shapes/RectShape.java
rawable/shapes/RoundRectShape.java
rawable/shapes/Shape.java
4db2c229be8e4d243ca19fac4080cda1eeb22710 24-Feb-2017 Romain Guy <romainguy@google.com> Add CIECAT02 chromatic adaptation transform

Bug: 32984164
Test: CtsGraphicsTestCases
Change-Id: Id13ff88ab7a21901bd914ed740f859588099a18e
olorSpace.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
urfaceTexture.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
rawable/AdaptiveIconDrawable.java
rawable/DrawableInflater.java
rawable/Icon.java
rawable/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
ontFamily.java
ypeface.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
ixelFormat.java
966ad0b2f5a52e4223ff0943e448aee53763496d 14-Feb-2017 Hyunyoung Song <hyunyoungs@google.com> Remove color attribute from MaskableIconDrawable foreground/background tag
Test: manual test

Change-Id: Ia8426051aed8c4451b10cf415e179930caede974
rawable/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
ypeface.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
rawable/Icon.java
rawable/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
itmapFactory.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
anvas.java
b8201195dfb2bae05faaf91b9b3d065e2f199929 09-Jan-2017 Derek Sollenberger <djsollen@google.com> Deprecate Canvas save/saveLayer flags.

Test: compile
Bug: 14650725
Change-Id: I6424ac46bae0a7a87c4b7743e81319945dfdd087
anvas.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
ectF.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
ypeface.java
3084ec2df4f14684d11ca1006f8f243243071730 02-Feb-2017 Hyunyoung Song <hyunyoungs@google.com> Handle nullable drawables inside MaskableIconDrawable
Test: manual test
b/34902453

Change-Id: I36fc48f7e4c1f6503a9c26b8f239c62da729b490
rawable/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
ontListParser.java
aint.java
ypeface.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
ypeface.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
utline.java
rawable/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
ypeface.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
rawable/DrawableInflater.java
rawable/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
ypeface.java
onts/FontRequest.java
onts/FontResult.java
onts/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
ontFamily.java
ypeface.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
anvas.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
ontResourcesParser.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
ontFamily.java
ontListParser.java
ypeface.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
ontFamily.java
ontResourcesParser.java
ypeface.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
ontFamily.java
ypeface.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
ontListParser.java
aint.java
ypeface.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
olor.java
olorSpace.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
raphicBuffer.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
ontListParser.java
aint.java
ypeface.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
aseCanvas.java
omposeShader.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
ontFamily.java
ypeface.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
itmap.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
itmap.java
raphicBuffer.aidl
raphicBuffer.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
anvas.java
980bead518fc5ddb52ae8d00258f91b087c1f91a 29-Dec-2016 sergeyv <sergeyv@google.com> Prohibit copyPixelsToBuffer & copyPixelsFromBuffer

Test: BitmapTest#testHardwareCopyPixels(From|To)Buffer
bug:30999911
Change-Id: I3bfa2846bff574bc0bfd54674eac794d1a6a0ff9
itmap.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
itmap.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
itmap.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
itmap.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
aint.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
itmap.java
a8f428627253f1060db1a0c7ff4bd3bb6c687fd2 17-Dec-2016 Mark Lu <marklu@google.com> docs: update description for BitmapFactory.Options#inBitmap

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

Bug: 32984164
Test: compile
Change-Id: I22ffe0991d3c4add68317a0554dcac6a7ac56d12
ixelFormat.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
itmap.java
olorSpace.java
ixelFormat.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
utline.java
ath.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
itmap.java
itmapFactory.java
itmapRegionDecoder.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
ayerRasterizer.java
aint.java
asterizer.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
ontListParser.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
rawable/AnimatedVectorDrawable.java
rawable/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
rawable/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
olorSpace.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
ontListParser.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
olorSpace.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
rawable/DrawableContainer.java
rawable/LayerDrawable.java
rawable/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
olor.java
olorSpace.java
da6c8ffcc594493c3936f83255efccdbf964cd21 23-Nov-2016 sergeyv <sergeyv@google.com> Introduce Bitmap.Config.Hardware with @hide annotation

Test: HardwareBitmapTests
bug:30999911
Change-Id: Iaa0e18842704cb6bcd483c63a095dcb22baaf5e0
itmap.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
rawable/AnimatedVectorDrawable.java
rawable/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
aint.java
3bdecbf0fd2d4b6137477094e1ea96502c353248 14-Nov-2016 John Reck <jreck@google.com> return 0 for allocation size if recycled

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

Test: builds

Change-Id: I8ad660f083a57f30db5ed0e2fe777286720033ca
itmap.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
anvas.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
aseCanvas.java
itmap.java
anvas.java
atrix.java
ath.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
itmap.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
tlas.java
itmap.java
rawable/BitmapDrawable.java
rawable/Drawable.java
rawable/DrawableContainer.java
rawable/DrawableWrapper.java
rawable/LayerDrawable.java
rawable/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
anvas.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
rawable/BitmapDrawable.java
299659ddb7e0c34ca094abe485bcd0989727fc07 07-Oct-2016 John Reck <jreck@google.com> Convert VD/AVD to FastNative

Test: build & boots
Change-Id: I6519ba245eca1a43fb00de36c91a05a9740c8c5f
rawable/AnimatedVectorDrawable.java
rawable/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
rawable/AnimatedVectorDrawable.java
rawable/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
aint.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
itmap.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
rawable/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
atrix.java
bb129294700d7c31a3793717efe14b06a7bd2305 28-Sep-2016 Teng-Hui Zhu <ztenghui@google.com> Update JavaDoc about animatable on VectorDrawable

b/31782834

Change-Id: I64279fd14841302caaa71c817feaf01b855126ad
rawable/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
urfaceTexture.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
rawable/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
rawable/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
omposeShader.java
aint.java
orterDuffXfermode.java
fermode.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
rawable/AnimatedVectorDrawable.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
aint.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
athMeasure.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
anvas.java
aint.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
urfaceTexture.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
rawable/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
rawable/Drawable.java
rawable/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)
rawable/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)
rawable/AnimatedVectorDrawable.java
rawable/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)
df/PdfEditor.java
df/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
rawable/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
rawable/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
rawable/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
rawable/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
itmap.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
ath.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
anvas.java
aint.java
ath.java
athDashPathEffect.java
athMeasure.java
egion.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
rawable/DrawableContainer.java
c224417511d8179a08c4dfd4badc73dd9699ebf2 26-Jul-2016 Teng-Hui Zhu <ztenghui@google.com> Update the javaDoc for VectorDrawable and AnimatedVectorDrawable

b/30269243

Change-Id: I139a3fcac95c41a667fa06aa3223b812caad6243
rawable/AnimatedVectorDrawable.java
rawable/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
aint.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
rawable/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)
rawable/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
rawable/VectorDrawable.java
943c4e0813e740fa5ac5284f5c24e27130415780 30-Jun-2016 John Reck <jreck@google.com> Clarify Picture docs on playback

Change-Id: Iaf8d8d04deb97aff39c93c246ef20312c9c2a7cb
fixes: 26911597
icture.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
rawable/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
rawable/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
rawable/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
rawable/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
rawable/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
df/PdfRenderer.java
c9493879d7b38b9d0b5b09aa3760966a3ca33eac 03-Jun-2016 Doris Liu <tianliu@google.com> Support Keyframe definition for AVD on RT

BUG: 27441613
Change-Id: Iece386f65f3704d1b7caa2b3690a8d3048ccf6e2
rawable/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)
rawable/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
rawable/AnimatedVectorDrawable.java
rawable/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
rawable/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)
rawable/AnimatedVectorDrawable.java
rawable/VectorDrawable.java
f126e21f433b36aa4c71f1a621d06b56206df440 08-Jun-2016 Philip P. Moltmann <moltmann@google.com> Handle bitmap==null in PdfRenderer.Page#render.

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

Change-Id: I56e403fd425e4b4353383c43077de5c47ff22b5c
df/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
rawable/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
rawable/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
rawable/VectorDrawable.java
2b561f1c352df95df23e17e7fce2acc3144df159 26-May-2016 Alan Viverette <alanv@google.com> Prevent callbacks during DrawableContainer child initialization

Bug: 28900939
Change-Id: I9c6c8af1665c2dc0bfa8bc8fc773c81e14f6aab1
rawable/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
rawable/AnimatedVectorDrawable.java
rawable/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
rawable/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
rawable/AnimatedVectorDrawable.java
rawable/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
aint.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)
amera.java
olorFilter.java
rawFilter.java
ovie.java
asterizer.java
fermode.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
anvas.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
df/PdfEditor.java
df/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
rawable/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
amera.java
olorFilter.java
rawFilter.java
ovie.java
asterizer.java
fermode.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
rawable/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
itmap.java
anvas.java
aint.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
rawable/VectorDrawable.java
3d0d141710d23b0f08c865100b4d55b4c2976486 27-Apr-2016 Philip P. Moltmann <moltmann@google.com> Add a security warning to PdfRenderer doc.

Change-Id: Ia714d312665179366adae8e1923e4b9c339ebb59
df/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
ixelCopy.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
rawable/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
anvas.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
rawable/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
itmap.java
112f0aa28e017d4d7a3638389709b94a718dadc8 14-Apr-2016 Alan Viverette <alanv@google.com> Basic documentation for custom drawables

Bug: 23621364
Change-Id: Ia292433ebd40d4c85ff6974def3d1f4b26926b52
rawable/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
ixelFormat.java
rawable/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
rawable/VectorDrawable.java
78e561ce541e5c72780c68b5b14eb50c08bb97ac 12-Apr-2016 Alan Viverette <alanv@google.com> Update docs for Drawable.setLayoutDirection() return value

Bug: 27107547
Change-Id: I98dd706e6dfb07e7b5ec9c257cf5bea6aea2bbfc
rawable/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
ypeface.java
10dd0585c11dcedb5a271d54e645594f1d215d5c 01-Apr-2016 John Reck <jreck@google.com> Framework-side of SurfaceView#getBitmap

Bug: 27708453

Change-Id: Ie6fd7eca522d3e6549d8af587c975fd7e6053649
ixelCopy.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
ontFamily.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
rawable/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
utline.java
008c6c54908c423a034c40b3f79e712176c141b6 17-Mar-2016 Ben Wagner <bungeman@google.com> Fix shift precedence in FontListParser.

BUG=27707457

Change-Id: I7ea7a5fa67ec540401454136427b37562a4eef30
ontListParser.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
aint.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
rawable/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
ath.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
athMeasure.java
4abd7ecfa2fb5aee6449cfa7fb02971bab9918bb 23-Mar-2016 Philip P. Moltmann <moltmann@google.com> Fix javadoc for Icon.loadDrawableAsync(Context, OnDrawableLoadedListener, Handler).

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

bug:27323867
Change-Id: I33c0007eb9259703c73d2e3672ae1427a2155037
inePatch.java
ect.java
rawable/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
rawable/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
rawable/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
rawable/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
utline.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
rawable/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
ect.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
rawable/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
rawable/AnimatedVectorDrawable.java
fb354a375202e697e3b797cbdc5da95357989028 15-Mar-2016 Chris Craik <ccraik@google.com> Return <0 if undefined Outline radius

bug:27531289

Change-Id: I0a2880693c59406e2d610f3a11020cde5379e230
utline.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
rawable/AnimatedVectorDrawable.java
rawable/BitmapDrawable.java
rawable/ColorDrawable.java
rawable/Drawable.java
rawable/DrawableContainer.java
rawable/DrawableWrapper.java
rawable/GradientDrawable.java
rawable/LayerDrawable.java
rawable/NinePatchDrawable.java
rawable/RippleDrawable.java
rawable/ShapeDrawable.java
rawable/TransitionDrawable.java
rawable/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
rawable/DrawableContainer.java
f6d87ec193f17e8dad82c9994ba7a58e975d364b 11-Mar-2016 Alan Viverette <alanv@google.com> Add consistent @NonNull annotations for drawable callbacks

Bug: 27599515
Change-Id: I33fdc5392302403bfff9cc74a8226173ec962af6
rawable/AnimatedVectorDrawable.java
rawable/Drawable.java
rawable/DrawableContainer.java
rawable/DrawableWrapper.java
rawable/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
voidXfermode.java
ixelXorXfermode.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
utline.java
rawable/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
rawable/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
rawable/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
rawable/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
rawable/AnimatedVectorDrawable.java
rawable/VectorDrawable.java
44027214d4f2154ebc9265912933bac282be3bb4 02-Mar-2016 Doris Liu <tianliu@google.com> Handle multiple animation actions within one frame

Bug: 27438778
Change-Id: I1b14da4bc7b4e82e5b4e45f3eb9ad04e3d7842c4
rawable/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
anvas.java
aint.java
2d3ca47ef83c097e3a1aaa66f2d119be0e93e677 25-Feb-2016 Alan Viverette <alanv@google.com> Always update drawable container source res

Bug: 27349209
Change-Id: I3bb3d4862a03fd5ce0beeb2bf5208f2917ec9320
rawable/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
rawable/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
utline.java
rawable/NinePatchDrawable.java
c21e8bcb013a6a562aa6288143368d9dba80fef4 18-Feb-2016 Doris Liu <tianliu@google.com> Ensure invalidate is called after start()/reverse()

Change-Id: Iec96ada74cc7b845e21b5f0eb208ff7c7b1071ed
rawable/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
rawable/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
rawable/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
rawable/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
rawable/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
rawable/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
rawable/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)
ontFamily.java
ypeface.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)
rawable/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)
ontFamily.java
ontListParser.java
ypeface.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
rawable/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
rawable/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
rawable/RippleDrawable.java
7cd1f0d39ada62669fb9bcd0a71fab059386fcd3 10-Feb-2016 Jorim Jaggi <jjaggi@google.com> Do not invalidate drawable if tint doesn't change

Change-Id: I99d7a679ba3aa4978f2915f1a52f23dbce7fd971
rawable/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
rawable/AnimatedVectorDrawable.java
rawable/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
rawable/AnimatedVectorDrawable.java
rawable/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
aint.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
ect.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
rawable/AnimatedVectorDrawable.java
rawable/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
rawable/AnimatedVectorDrawable.java
d4fda02dd59adff9553dca5647ebb6c023145d5f 03-Feb-2016 Doris Liu <tianliu@google.com> Fix NPE for invalid target exception

Change-Id: I57b319fae617792351c6ec9872c3b73cd25dc4e5
rawable/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
rawable/AnimatedVectorDrawable.java
rawable/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
ect.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
hader.java
rawable/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
rawable/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
rawable/AnimationDrawable.java
rawable/ScaleDrawable.java
dfb8cb4580aef56a1f1e286389cdddf24c96792b 14-Jan-2016 Winson <winsonc@google.com> Resetting the native shader instance when the shader changes.

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

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

Bug: 23130675
Change-Id: I3fbd84ba417ac63df75f87ee2c56e3e7f3c9eb46
itmap.java
anvas.java
aint.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
rawable/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)
rawable/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
itmapFactory.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
rawable/RippleBackground.java
rawable/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
rawable/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
itmapFactory.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
rawable/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
rawable/Icon.aidl
eda57925cafdf1dab451e70052dea27846f368b4 18-Dec-2015 Chris Craik <ccraik@google.com> Add missing @deprecated comments to canvas methods

bug:25311154

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

Change-Id: I161e419a3ce427e10d802ba692679ad671e23dde
anvas.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
ontListParser.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
ontListParser.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
ontFamily.java
ontListParser.java
ypeface.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
mageFormat.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
rawable/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
rawable/AnimatedRotateDrawable.java
rawable/BitmapDrawable.java
rawable/ClipDrawable.java
rawable/Drawable.java
rawable/GradientDrawable.java
rawable/InsetDrawable.java
rawable/NinePatchDrawable.java
rawable/RippleDrawable.java
rawable/RotateDrawable.java
rawable/ScaleDrawable.java
rawable/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
aint.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
rawable/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
rawable/AnimationDrawable.java
rawable/ScaleDrawable.java
0d3d1f825f399c62f2ba236b53bef17581e03a16 02-Dec-2015 Sungsoo Lim <sungsoo@google.com> Fixed typos: when when

Change-Id: I80c0b8817dcbed45071e42d9ffa88bae52a93a81
anvas.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
rawable/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
rawable/Drawable.java
rawable/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
rawable/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
rawable/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
rawable/Drawable.java
rawable/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
rawable/RippleComponent.java
rawable/RippleDrawable.java
rawable/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
rawable/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
rawable/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
rawable/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>
rawable/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
rawable/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>
rawable/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
rawable/BitmapDrawable.java
rawable/Drawable.java
rawable/DrawableContainer.java
rawable/GradientDrawable.java
rawable/LayerDrawable.java
rawable/NinePatchDrawable.java
rawable/RippleDrawable.java
rawable/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
rawable/AnimatedRotateDrawable.java
rawable/ClipDrawable.java
rawable/Drawable.java
rawable/DrawableWrapper.java
rawable/InsetDrawable.java
rawable/RotateDrawable.java
rawable/ScaleDrawable.java
0cacad7023ad30ad886ef85751e9e39b10f846f9 28-Oct-2015 Alan Viverette <alanv@google.com> Apply density scaling in LayerDrawable and subclasses

Bug: 25081461
Change-Id: I48e62caf5017ff2dd84cf62b68a828f4542b6ae5
rawable/LayerDrawable.java
rawable/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
oint.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
aint.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
rawable/AnimatedStateListDrawable.java
rawable/AnimationDrawable.java
rawable/DrawableContainer.java
rawable/LevelListDrawable.java
rawable/StateListDrawable.java
4a94faa0c74c7ad4defdc6e2fa937c93a4d0b5af 21-Oct-2015 Alan Viverette <alanv@google.com> Scale density correctly on VectorDrawable.applyTheme()

Bug: 25081461
Change-Id: I012e0932e67bc51502dc00e11131218af1377115
rawable/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
rawable/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
rawable/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
oint.java
dbffd250003e60c0f11ac3ad2b63f91f67962610 01-Oct-2015 John Reck <jreck@google.com> Fix Paint's JNI

Bug: 22409077
Change-Id: I99e1a11bf14f5b62c41107528f573eaf9f2d4b2f
aint.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
aint.java
e72a703a95156313f6c17540762f6dcd37b7d7e4 23-Sep-2015 Alan Viverette <alanv@google.com> Add attribute for specifying initial ScaleDrawable level

Bug: 19182305
Change-Id: Ic1f183db6183017352babc6dc190fdb9124c285a
rawable/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
rawable/VectorDrawable.java
a02d2748be353393b7b593d5adbd37d80dee427d 16-Sep-2015 Alan Viverette <alanv@google.com> Clean up DrawableContainer.selectDrawable() docs, params

Change-Id: Ic38cbb4a21dab452950ba0e308ceba3cbe966363
rawable/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
rawable/AnimatedVectorDrawable.java
rawable/ClipDrawable.java
rawable/Drawable.java
rawable/DrawableContainer.java
rawable/DrawableWrapper.java
rawable/GradientDrawable.java
rawable/LayerDrawable.java
rawable/LevelListDrawable.java
rawable/RotateDrawable.java
rawable/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
nterpolator.java
askFilter.java
atrix.java
inePatch.java
aint.java
ath.java
athEffect.java
athMeasure.java
icture.java
egion.java
egionIterator.java
hader.java
ypeface.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
rawable/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
rawable/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
rawable/AnimatedVectorDrawable.java
rawable/ClipDrawable.java
rawable/Drawable.java
rawable/DrawableContainer.java
rawable/DrawableWrapper.java
rawable/GradientDrawable.java
rawable/LayerDrawable.java
rawable/LevelListDrawable.java
rawable/RotateDrawable.java
rawable/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
aint.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
rawable/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
rawable/LayerDrawable.java
c725e8d5ea04ffb5821e00db1c6b45cfe2130e05 31-Aug-2015 Alan Viverette <alanv@google.com> Add missing @param in ResourceManager, set InflateException source

Bug: 11695070
Change-Id: I94a4980688a952c1f59f1cb15cf2192e3c51de90
rawable/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
rawable/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
rawable/Drawable.java
rawable/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
rawable/RippleBackground.java
b7303a36baf8d0ac3efdeeee3310ef5974ba9cea 20-Aug-2015 Jorim Jaggi <jjaggi@google.com> Disable RT animations for header ripple

Bug: 22208997
Change-Id: I10a890d4f8f70c7c786940ffdb86cf4d21bdaf05
rawable/RippleBackground.java
rawable/RippleComponent.java
rawable/RippleDrawable.java
rawable/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
rawable/RippleDrawable.java
1ad545d207db840d0e403569ce214431eead4217 20-Aug-2015 Derek Sollenberger <djsollen@google.com> Fix path direction enum to match native SkPath values

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

Change-Id: Ic095291fe55911c6501c1bdefa4b8da973c77319
itmap.java
anvas.java
inePatch.java
773bbe0357b17a16d095ce57c30980992a9c977f 18-Aug-2015 John Reck <jreck@google.com> Revert "Add ninePatch support to Canvas.h"

This reverts commit edca320a2b42011f98c308fdf25fc0494c6a5454.

Change-Id: I30ee93cfc1cac391ce152f03e9e13a1ad24dc91b
anvas.java
inePatch.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
rawable/GradientDrawable.java
rawable/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
anvas.java
inePatch.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
olor.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
olor.java
7873b6da5afada5d962b233feb6cc613b526ffb1 12-Aug-2015 Alan Viverette <alanv@google.com> Remove framework-private Color.HSBtoColor API

Bug: 22815971
Change-Id: Ic4cb43e78e0a7a6fc234865759754d106cef11dc
olor.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
rawable/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
itmap.java
6578a989566e585eee053095dc80e2552e125db2 13-Jul-2015 Derek Sollenberger <djsollen@google.com> Support High Contrast Text for all canvas types

Change-Id: Iee324446798fe1a1cb32cb991f181a4af24aa93c
anvas.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
anvas.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
rawable/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
rawable/BitmapDrawable.java
6d86e57bdadd56be160eb3e543cc53622cae46f2 15-Jul-2015 John Reck <jreck@google.com> Elaborate on Bitmap#reconfigure() expectations

Bug: 21947835
Change-Id: I6ab0ac08e993fb111977b6f9a02e139c7ea5170a
itmap.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
rawable/Icon.java
876d56612ab8ec7032f702905d694670e6c4febd 13-Jul-2015 Derek Sollenberger <djsollen@google.com> Support High Contrast Text for all canvas types

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

Change-Id: I9f401dc5b24732938ac2ca7ed829796e2d7ef3e8
anvas.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
anvas.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
rawable/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
rawable/AnimatedVectorDrawable.java
rawable/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
rawable/AnimatedStateListDrawable.java
rawable/DrawableContainer.java
rawable/LayerDrawable.java
rawable/RippleDrawable.java
rawable/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
rawable/BitmapDrawable.java
rawable/Drawable.java
rawable/DrawableContainer.java
rawable/GradientDrawable.java
rawable/LayerDrawable.java
rawable/NinePatchDrawable.java
rawable/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
rawable/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
orterDuff.java
rawable/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
icture.java
c79df8e831e50abae9f781148e0aee63f6c29659 20-Jun-2015 Chris Craik <ccraik@google.com> Clean up drawable filter/dither docs

bug:21342040

Change-Id: I6592bfa504516852967d82a7e7929b1aef6bff02
rawable/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
rawable/RippleDrawable.java
a6c51149c59b2921507f6903e490bd00702972d1 19-Jun-2015 Doris Liu <tianliu@google.com> Fix a typo in Drawable's javadoc

Change-Id: Ic168b250defb30512cb35a836118fe2bdf1b2e78
rawable/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
rawable/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
rawable/LayerDrawable.java
373954a1fd371a23c420aeeea9ccbc4d983733d7 17-Jun-2015 Alan Viverette <alanv@google.com> Refactor Drawable.getDither() to isDither()

Bug: 21342040
Change-Id: I801970c2a25289d670636ad5387ddf244fb48225
rawable/BitmapDrawable.java
rawable/Drawable.java
rawable/DrawableContainer.java
rawable/GradientDrawable.java
rawable/LayerDrawable.java
rawable/NinePatchDrawable.java
rawable/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
rawable/BitmapDrawable.java
rawable/Drawable.java
rawable/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
rawable/BitmapDrawable.java
rawable/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
rawable/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
anvas.java
b786bbdd1164cf3ca7fcfb8448c7c619a82118a0 11-Jun-2015 Chris Craik <ccraik@google.com> Workaround shader crash

bug:21706035

Change-Id: Ia1cd4824c742b2d6fc0feb2861ccfde0b6ac2189
itmapShader.java
99ca2a8470a48906aaba2d76c856037933496352 09-Jun-2015 Alan Viverette <alanv@google.com> Account for hotspot bounds in RippleDrawable projection check

Bug: 21502154
Change-Id: Iedf4bd07f10ec13070a68870304ab651c1f15c68
rawable/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
rawable/VectorDrawable.java
96052718067e1645afd7c7ae93bab536711349ac 06-Jun-2015 ztenghui <ztenghui@google.com> Add reset to AVD

b/21664621

Change-Id: Ie40c3723860e183c8e4fedd2a76b9debbdf64a2a
rawable/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
rawable/RippleComponent.java
83a52031fd5c277d0c6e75da50bf8013e8a70399 30-May-2015 ztenghui <ztenghui@google.com> Setup the animation callback for AnimatedVectorDrawable

b/21341096

Change-Id: I84e20366db21ceaa4f044be3e322f9215bb06ad2
rawable/Animatable2.java
rawable/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
mageFormat.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
rawable/RippleComponent.java
rawable/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
rawable/AnimatedVectorDrawable.java
rawable/GradientDrawable.java
rawable/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
rawable/ClipDrawable.java
rawable/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
rawable/AnimatedVectorDrawable.java
rawable/Drawable.java
rawable/DrawableContainer.java
rawable/DrawableWrapper.java
rawable/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
itmap.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
rawable/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
rawable/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
itmap.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
rawable/RippleComponent.java
rawable/RippleDrawable.java
e922f49b627912c113250bd8506830bb69943025 15-May-2015 Alan Viverette <alanv@google.com> Allow getChangingConfigurations() on DrawableWrapper with null drawable

Change-Id: Iecf39b53419e07927a3fe3096036a57afd69439a
rawable/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
rawable/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
rawable/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
rawable/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
rawable/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
urfaceTexture.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
rawable/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
rawable/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
rawable/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
rawable/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
aint.java
b846b58f7a27f19431bf0af3f39a514ad4761690 13-May-2015 Chris Craik <ccraik@google.com> Anti-Alias ColorDrawable

Change-Id: I4d0ee2a496de908b99b0f1d8bef1b6f861c94c6f
rawable/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
rawable/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
rawable/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
rawable/GradientDrawable.java
rawable/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
rawable/GradientDrawable.java
rawable/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
rawable/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
rawable/GradientDrawable.java
rawable/ShapeDrawable.java
9298c5414172344f2462beda70e624af5f774483 11-May-2015 John Reck <jreck@google.com> Clarify assert

Bug: 20918138
Change-Id: I39a9f8bbfb3752f9a6e5f5215ed8cd3c93ce87fc
itmap.java
ad57442fd00e7fd7f1885d23372ec5c85e176820 11-May-2015 John Reck <jreck@google.com> Add a few missing asserts

Bug: 20918138
Change-Id: I6823cfe531ff6f63a7d9fde22278e6780726c9f1
itmap.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
itmap.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
tlas.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
rawable/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
rawable/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
itmap.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
rawable/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
itmap.java
anvas.java
inePatch.java
c6e2e8ff474ae44bab5b9eb665851118abd27b68 15-Apr-2015 John Reck <jreck@google.com> Move AssetAtlas off of SkBitmap*

Switched to SkPixelRef*

Change-Id: I4a1d9dc6c55c1ebcce6b0b8c585e69559e523898
itmap.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
rawable/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
itmapShader.java
anvas.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
df/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
rawable/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
rawable/GradientDrawable.java
rawable/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
rawable/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
anvas.java
aint.java
1b60cc0529161b5eca6407b551d67d355994c567 24-Apr-2015 Chris Craik <ccraik@google.com> Anti-alias by default

Change-Id: I19434717dd3af4fdcffbfcca2ffbb485dfebe644
aint.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
aint.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
mageFormat.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
ect.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
anvas.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
rawable/LayerDrawable.java
rawable/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
df/PdfRenderer.java
9d4efdf2802f06ccf7031610891f75af70ea5538 17-Apr-2015 John Reck <jreck@google.com> Revert "A bunch more cleanups"

This reverts commit c294d128d03bc9a9982b273a82516c04583438cc.

Change-Id: Id1ebb236950f7c36c6d86e1dd95566d3a200748d
itmapShader.java
anvas.java
7809f835cae637c12eebdc92103ad88890228d97 17-Apr-2015 John Reck <jreck@google.com> Revert "Move AssetAtlas off of SkBitmap*"

This reverts commit 87ffb63d90fb6dd2689fe72dcb24fda9a6156220.

Change-Id: I92adfcee454a0a19020cdd9e96a134be0ee529aa
itmap.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
itmap.java
anvas.java
inePatch.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
rawable/Drawable.java
4bd981ec533a65e8dee053a0a709b484770b0a76 16-Apr-2015 John Reck <jreck@google.com> Remove Bitmap#getSkBitmap

Change-Id: Ifb9047b426122d3e5a445eb7a0eb3fce38dedf27
itmap.java
anvas.java
inePatch.java
87ffb63d90fb6dd2689fe72dcb24fda9a6156220 15-Apr-2015 John Reck <jreck@google.com> Move AssetAtlas off of SkBitmap*

Switched to SkPixelRef*

Change-Id: I4a1d9dc6c55c1ebcce6b0b8c585e69559e523898
itmap.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
aint.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
itmapShader.java
anvas.java
d34b7329935a6f9ffdc9a40c01f7b558e07830d4 10-Apr-2015 Chris Craik <ccraik@google.com> Anti-alias by default

Change-Id: I4d29cae73b05b7ffa03212acdbb13d7b0cf8f905
aint.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
rawable/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
df/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
rawable/LayerDrawable.java
45f207d6d9ccec1b9975f2ec4ca55e3c42f7bc48 09-Apr-2015 Alan Viverette <alanv@google.com> Only parse LayerDrawable child items when necessary

Bug: 20098214
Change-Id: Ie9da5f6e494ede47f9fdc94481a3f8ca41d3ef00
rawable/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
rawable/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
aint.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
rawable/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
anvas.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
rawable/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
aint.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
rawable/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
rawable/AnimatedVectorDrawable.java
rawable/BitmapDrawable.java
rawable/ColorDrawable.java
rawable/DrawableContainer.java
rawable/DrawableWrapper.java
rawable/GradientDrawable.java
rawable/InsetDrawable.java
rawable/LayerDrawable.java
rawable/NinePatchDrawable.java
rawable/RippleDrawable.java
rawable/RotateDrawable.java
rawable/ShapeDrawable.java
rawable/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
mageFormat.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
rawable/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
rawable/AnimatedVectorDrawable.java
rawable/VectorDrawable.java
34c623cbf3677820c4170f24c5211f663dda91f7 25-Mar-2015 ztenghui <ztenghui@google.com> Don't draw when bounds are negative

b/19922909

Change-Id: I68559ed683031f57538439e0a3e4979fe9f430a5
rawable/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
rawable/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
mageFormat.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
rawable/DrawableWrapper.java
rawable/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
rawable/RippleComponent.java
rawable/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
atrix.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
rawable/VectorDrawable.java
f2b1cff4e2b152a7c776a7a79e8225a591f97d3e 15-Mar-2015 Andreas Gampe <agampe@google.com> Frameworks/base: Fix null-pointer check

Change-Id: I715a21c313e909ae654e0c1aa67bdf7bcd89de76
rawable/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
aint.java
417ee5ba89f7e0fe5efd34fce74bf1ee5923d976 11-Mar-2015 Tor Norbye <tnorbye@google.com> Add resource type annotations to some APIs

Change-Id: I37c8afdaea455aa92bc8270bb2dfd60616c5f9bc
orterDuffColorFilter.java
rawable/Drawable.java
f6829a0a618b4523619ec53c996b04d67e3186b9 10-Mar-2015 Chris Craik <ccraik@google.com> Remove HardwareCanvas

Change-Id: I239646a7f00f09d3f76fe6b6162eed86bc0d6e77
rawable/RippleBackground.java
rawable/RippleComponent.java
rawable/RippleForeground.java
6a67db41388165aca63d0d5de2830cc096ed930b 03-Mar-2015 Alan Viverette <alanv@google.com> Implement bounded ripple animation

Bug: 19431322
Change-Id: I5dc1a28d8675cc6fb036b815d6227113c3f1aa4b
rawable/RippleComponent.java
rawable/RippleDrawable.java
rawable/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
rawable/Ripple.java
rawable/RippleBackground.java
rawable/RippleComponent.java
rawable/RippleDrawable.java
rawable/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
mageFormat.java
b3ec733bb830f2d4425825d93f9ed95f284e9145 04-Mar-2015 Tor Norbye <tnorbye@google.com> Annotate methods with size and range annotations

Change-Id: I666861f0dfae31402b1280e9a966a583b88e2e1a
anvas.java
olor.java
utline.java
1c2bf03d1082fc6b7eb42cbd163c60c07cf2bccc 02-Mar-2015 Tor Norbye <tnorbye@google.com> Annotate return values with @CheckReturn

Change-Id: Icd8fb6adb591ccd7f35f2336ae716b198abf69c5
itmap.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
orterDuff.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
orterDuff.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
orterDuff.java
80756e38882720860db52f1fcc21fa1505a02abf 02-Mar-2015 Tor Norbye <tnorbye@google.com> Annotate ARGB integer parameters with @ColorInt

Change-Id: I307f72a382272cf18ddb6b07d9fcb81228568d9a
itmap.java
anvas.java
olor.java
aint.java
rawable/ColorDrawable.java
rawable/Drawable.java
rawable/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
itmap.java
itmapShader.java
anvas.java
inePatch.java
df/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
itmap.java
itmapShader.java
anvas.java
inePatch.java
df/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
itmap.java
itmapShader.java
anvas.java
inePatch.java
df/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
aint.java
a9aded1f6253afbea7906509992a8a3721f731ab 04-Mar-2015 Derek Sollenberger <djsollen@google.com> Remove references to SkPorterDuff as it is deprecated.

Change-Id: Ic0722cfef4ed61aa546c495924397097a45cfe77
orterDuff.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
orterDuffColorFilter.java
rawable/BitmapDrawable.java
rawable/Drawable.java
rawable/DrawableContainer.java
rawable/DrawableWrapper.java
rawable/GradientDrawable.java
rawable/LayerDrawable.java
rawable/NinePatchDrawable.java
rawable/RippleDrawable.java
rawable/ShapeDrawable.java
08c7116ab9cd04ad6dd3c04aa1017237e7f409ac 28-Feb-2015 John Spurlock <jspurlock@google.com> Remove unused imports in frameworks/base.

Change-Id: I031443de83f93eb57a98863001826671b18f3b17
rawable/ClipDrawable.java
rawable/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
rawable/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
rawable/AnimatedStateListDrawable.java
rawable/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
rawable/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
rawable/AnimatedRotateDrawable.java
rawable/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
rawable/InsetDrawable.java
rawable/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
rawable/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
rawable/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
olor.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
rawable/AnimatedRotateDrawable.java
rawable/AnimatedVectorDrawable.java
rawable/ClipDrawable.java
rawable/Drawable.java
rawable/DrawableContainer.java
rawable/DrawableWrapper.java
rawable/InsetDrawable.java
rawable/LayerDrawable.java
rawable/RippleDrawable.java
rawable/RotateDrawable.java
rawable/ScaleDrawable.java
rawable/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
rawable/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
rawable/Ripple.java
rawable/RippleBackground.java
rawable/RippleDrawable.java
d8c18e81c0588a4e80bfe72fef769d758ed90f89 12-Feb-2015 Alan Viverette <alanv@google.com> API for adding layers to LayerDrawable

Change-Id: I859c956a47d95fa1ce65b9eea9bc7be4659486bf
rawable/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
rawable/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
rawable/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
rawable/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
rawable/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
icture.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
voidXfermode.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
rawable/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
itmap.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
rawable/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
rawable/Ripple.java
rawable/RippleBackground.java
6fbcefe4d7248912cd797de376eb25c5ace1544d 14-Jan-2015 ztenghui <ztenghui@google.com> Update the javadoc for the clip path fix.

b/18758765

Change-Id: I1845c09a120ecdf0d7685ff1f6165b1e841db5ce
rawable/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
rawable/VectorDrawable.java
304cc5387478618164cd9167f12564f91eb6cc66 08-Jan-2015 Derek Sollenberger <djsollen@google.com> Use the generic Canvas instead of SkCanvas

bug: 18642206
Change-Id: I0dc3f6b620083e5948c2d4be541ae7c6261b3482
ovie.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
anvas.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
rawable/BitmapDrawable.java
rawable/Drawable.java
rawable/DrawableContainer.java
rawable/GradientDrawable.java
rawable/LayerDrawable.java
rawable/NinePatchDrawable.java
rawable/PictureDrawable.java
rawable/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
anvas.java
45c4bbbbce6bbad50a033efcba7948a23f1f117a 05-Jan-2015 Alan Viverette <alanv@google.com> Allow use of theme attributes in color state lists

BUG: 17384842
Change-Id: Ibdc413acbd00e37b908432abd55f6521c22b8fc9
rawable/BitmapDrawable.java
rawable/ColorDrawable.java
rawable/GradientDrawable.java
rawable/NinePatchDrawable.java
rawable/RippleDrawable.java
rawable/ShapeDrawable.java
rawable/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
rawable/Ripple.java
rawable/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
rawable/ColorDrawable.java
rawable/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
rawable/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
rawable/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
rawable/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
rawable/BitmapDrawable.java
rawable/Drawable.java
rawable/DrawableContainer.java
rawable/InsetDrawable.java
rawable/LayerDrawable.java
rawable/NinePatchDrawable.java
rawable/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
rawable/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
rawable/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
rawable/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
rawable/InsetDrawable.java
rawable/Ripple.java
rawable/RippleBackground.java
rawable/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
rawable/DrawableContainer.java
rawable/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
itmap.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
rawable/AnimatedStateListDrawable.java
rawable/AnimationDrawable.java
rawable/DrawableContainer.java
rawable/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
rawable/AnimatedStateListDrawable.java
rawable/AnimationDrawable.java
rawable/DrawableContainer.java
rawable/LevelListDrawable.java
rawable/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
rawable/AnimatedStateListDrawable.java
rawable/AnimationDrawable.java
rawable/DrawableContainer.java
rawable/LevelListDrawable.java
rawable/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
rawable/AnimatedStateListDrawable.java
rawable/AnimationDrawable.java
rawable/DrawableContainer.java
rawable/LevelListDrawable.java
rawable/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
anvas.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
anvas.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
rawable/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
rawable/AnimatedStateListDrawable.java
rawable/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
olorMatrix.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
rawable/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
utline.java
ath.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
anvas.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
anvas.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
anvas.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
rawable/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
rawable/AnimatedStateListDrawable.java
rawable/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
anvas.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
rawable/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
rawable/Ripple.java
rawable/RippleBackground.java
rawable/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
rawable/AnimatedStateListDrawable.java
rawable/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
rawable/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
df/PdfEditor.java
df/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
df/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
rawable/AnimatedStateListDrawable.java
rawable/ClipDrawable.java
rawable/RotateDrawable.java
rawable/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
rawable/AnimatedRotateDrawable.java
rawable/AnimatedStateListDrawable.java
rawable/AnimatedVectorDrawable.java
rawable/AnimationDrawable.java
rawable/ClipDrawable.java
rawable/DrawableContainer.java
rawable/GradientDrawable.java
rawable/InsetDrawable.java
rawable/LayerDrawable.java
rawable/RippleDrawable.java
rawable/RotateDrawable.java
rawable/ScaleDrawable.java
rawable/StateListDrawable.java
rawable/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
rawable/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
rawable/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
rawable/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
rawable/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
rawFilter.java
aintFlagsDrawFilter.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
aint.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
rawable/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
rawable/AnimatedRotateDrawable.java
rawable/AnimatedVectorDrawable.java
rawable/BitmapDrawable.java
rawable/ClipDrawable.java
rawable/ColorDrawable.java
rawable/Drawable.java
rawable/DrawableContainer.java
rawable/GradientDrawable.java
rawable/InsetDrawable.java
rawable/LayerDrawable.java
rawable/NinePatchDrawable.java
rawable/RippleDrawable.java
rawable/RotateDrawable.java
rawable/ScaleDrawable.java
rawable/ShapeDrawable.java
rawable/StateListDrawable.java
rawable/TransitionDrawable.java
rawable/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
rawable/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
rawable/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
rawable/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
aint.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
rawable/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
rawable/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
rawable/RippleBackground.java
rawable/RippleDrawable.java
955d8d69ea6caabce1461dc25b339b9bf9dc61a6 08-Oct-2014 Dianne Hackborn <hackbod@google.com> Put in real "code" (aka marketing) name.

Change-Id: Idb3976edfae37293ed75cb5b869b4b42d8042bbe
itmapFactory.java
icture.java
rawable/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
rawable/AnimatedRotateDrawable.java
rawable/AnimatedStateListDrawable.java
rawable/AnimatedVectorDrawable.java
rawable/AnimationDrawable.java
rawable/BitmapDrawable.java
rawable/ClipDrawable.java
rawable/ColorDrawable.java
rawable/Drawable.java
rawable/DrawableContainer.java
rawable/GradientDrawable.java
rawable/InsetDrawable.java
rawable/LayerDrawable.java
rawable/LevelListDrawable.java
rawable/NinePatchDrawable.java
rawable/RotateDrawable.java
rawable/ScaleDrawable.java
rawable/ShapeDrawable.java
rawable/StateListDrawable.java
rawable/VectorDrawable.java
dfba4d3d11bbf47dff45f94d61d4d97510b3034a 02-Sep-2014 Derek Sollenberger <djsollen@google.com> Mutable Java Shaders with Immutable Native Shaders

bug: 17641888
Change-Id: I0f05387423cde185dab1a1453f89d5251ca1a4f9
itmap.java
anvas.java
anvasProperty.java
ayerRasterizer.java
ovie.java
inePatch.java
aint.java
hader.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
ovie.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
rawable/AnimatedRotateDrawable.java
rawable/AnimatedStateListDrawable.java
rawable/AnimationDrawable.java
rawable/ClipDrawable.java
rawable/InsetDrawable.java
rawable/LevelListDrawable.java
rawable/RotateDrawable.java
rawable/ScaleDrawable.java
rawable/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
olorMatrix.java
ointF.java
ectF.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
rawable/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
rawable/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
rawable/ColorDrawable.java
rawable/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
rawable/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
rawable/AnimatedStateListDrawable.java
rawable/AnimatedVectorDrawable.java
rawable/RippleDrawable.java
rawable/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
rawable/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
rawable/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
rawable/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
olorMatrixColorFilter.java
ightingColorFilter.java
orterDuffColorFilter.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
rawable/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
rawable/Ripple.java
rawable/RippleBackground.java
rawable/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
rawable/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
rawable/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
rawable/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
orterDuffColorFilter.java
rawable/BitmapDrawable.java
rawable/ColorDrawable.java
rawable/Drawable.java
rawable/NinePatchDrawable.java
rawable/ShapeDrawable.java
rawable/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
rawable/GradientDrawable.java
9bc13a353fa8fac323839268789ef661b219530c 12-Sep-2014 Chris Craik <ccraik@google.com> Fix null rect parameter for saveLayer / saveLayerAlpha

bug:17476559
Change-Id: I3ba43c9eed8f6fc455eb41e0990e75e0f4c7b648
anvas.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
rawable/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
rawable/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
rawable/AnimatedVectorDrawable.java
rawable/VectorDrawable.java
8683a4f819c5b4c77593568048428a6a18a883ca 10-Sep-2014 Alan Viverette <alanv@google.com> Only force drawing in RippleDrawable when necessary

BUG: 17451761
Change-Id: Ibb9d1c64791ec54eb90608c957eeb5efb1712b4a
rawable/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
rawable/AnimatedVectorDrawable.java
rawable/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
df/PdfEditor.java
df/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
rawable/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
rawable/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
rawable/Ripple.java
rawable/RippleBackground.java
rawable/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
anvas.java
icture.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
orterDuffColorFilter.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
rawable/Ripple.java
rawable/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
rawable/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
rawable/RippleBackground.java
rawable/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
rawable/RippleBackground.java
rawable/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
df/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
rawable/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
rawable/Ripple.java
rawable/RippleBackground.java
rawable/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
rawable/AnimatedRotateDrawable.java
rawable/ClipDrawable.java
rawable/InsetDrawable.java
rawable/LayerDrawable.java
rawable/RotateDrawable.java
rawable/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
ontFamily.java
ontListParser.java
ypeface.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
rawable/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
itmap.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
anvas.java
a70b4742a7a0b2edc57cbbbf83d2c6d43ebc300d 25-Aug-2014 ztenghui <ztenghui@google.com> VD: Update the fillColor default as transparent

b/17208473

Change-Id: I52ff3d335094f0a95f138640eb24ef5dba2ef864
rawable/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
rawable/AnimatedVectorDrawable.java
01edef10b9724fa5607d7918addc31a3b0c991dc 22-Aug-2014 John Reck <jreck@google.com> Revert immutable Shader change

Bug: 16733996

Change-Id: I51686aaf8f6ae8d0e390e298ad70f98f81c5f555
hader.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
rawable/Ripple.java
rawable/RippleBackground.java
rawable/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
rawable/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
ypeface.java
06cd7dce24876b54870f9ef3831237f8298773a9 20-Aug-2014 Alan Viverette <alanv@google.com> Forward additional drawable methods in AVD

BUG: 17156349
Change-Id: I1d7b41fc8d0399b31db4cf21aa47180e96bfbcfe
rawable/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
rawable/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
utline.java
rawable/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
rawable/NinePatchDrawable.java
d1d7389880225f126abcc2a268ab62cce97a92a5 19-Aug-2014 Chris Craik <ccraik@google.com> Update setShadowLayer doc

bug:17134528
Change-Id: I436bb0163b18d0b88954bf9dac16e51d14a533eb
aint.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
rawable/AnimationDrawable.java
9745de0f0559bccd7b4a2f80b5ff8c8f118c7bfc 18-Aug-2014 Chris Craik <ccraik@google.com> Fix BitmapDrawable outline crash

bug:17103753

Change-Id: Ia3d2c7d61b3f3b9ea8879f941d726d8627e155bb
rawable/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
rawable/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
rawable/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
rawable/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
rawable/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
rawable/AnimatedStateListDrawable.java
rawable/VectorDrawable.java
rawable/shapes/Shape.java
e222e359a0aab985488a711f6edb76820fe8c6df 14-Aug-2014 Chris Craik <ccraik@google.com> Disable shadow casting for transparent BitmapDrawables

bug:17013977
Change-Id: I26328c21360432bb34d3f19858dfdc0e6aede057
rawable/BitmapDrawable.java
03d30a573b8bc8e169e153a0fffa053ffedcd5ee 14-Aug-2014 Alan Viverette <alanv@google.com> Make sure we're obtaining themed drawables correctly

Change-Id: I446a3492f7bf5a897c5d698e61327af4b7840d85
rawable/AnimatedRotateDrawable.java
rawable/AnimatedStateListDrawable.java
rawable/AnimationDrawable.java
rawable/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
rawable/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
rawable/NinePatchDrawable.java
rawable/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
ypeface.java
0670f029a4e59448aa53b46a98e60dff6404f360 12-Aug-2014 ztenghui <ztenghui@google.com> VD: Fix Canvas save leak

bug:16965998

Change-Id: I367388b270748e2ce114b468940966d78de07465
rawable/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
rawable/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
rawable/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
aint.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
rawable/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
rawable/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
rawable/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
rawable/Ripple.java
rawable/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
adialGradient.java
a426445dfdab43886dd894f2ba8a1d55bfcbb278 29-Jul-2014 Alan Viverette <alanv@google.com> Separate tint and tintMode properties

BUG: 16054922
Change-Id: I820fb857b671faf9eb27612e470e820c5c4cd6b5
rawable/AnimatedRotateDrawable.java
rawable/BitmapDrawable.java
rawable/ClipDrawable.java
rawable/ColorDrawable.java
rawable/Drawable.java
rawable/DrawableContainer.java
rawable/InsetDrawable.java
rawable/LayerDrawable.java
rawable/NinePatchDrawable.java
rawable/RotateDrawable.java
rawable/ScaleDrawable.java
rawable/ShapeDrawable.java
rawable/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
rawable/VectorDrawable.java
06eaf193bde2f8455a3f957f1df4b1c328ac1432 06-Aug-2014 ztenghui <ztenghui@google.com> End the animator when stop() is called

bug:16830053

Change-Id: If27ba904b0f78ee8c59df3522a97f5f86509ca0e
rawable/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
inePatch.java
rawable/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
itmap.java
13ed2178c4df86b5b417497ac0b130e76c9804f2 04-Aug-2014 Chris Craik <ccraik@google.com> Make outline alpha APIs public

bug:16140822
Change-Id: Ie21e2a75b462319fb49c5696f0c019e1ea803bc1
utline.java
5eb5cde467081d1af628e5463ba55f110265a86f 04-Aug-2014 ztenghui <ztenghui@google.com> Fix one typo and add linear progress bar in the test.

Change-Id: Ib516fd4a27000d8e69a6640386332140ff0d6fdd
rawable/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
aint.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
inePatch.java
utline.java
rawable/Drawable.java
rawable/GradientDrawable.java
rawable/LayerDrawable.java
rawable/NinePatchDrawable.java
rawable/RippleDrawable.java
rawable/ShapeDrawable.java
874bcd82c223ce58c9d76edcf619b3988c672307 31-Jul-2014 ztenghui <ztenghui@google.com> Fix the create() for the attrs position

Change-Id: Ieb93053f28502cabbf655c4a27c4864845da212e
rawable/VectorDrawable.java
1c4d8b2173bf4b5bbac94748959752599775628d 31-Jul-2014 ztenghui <ztenghui@google.com> Correct the tag's name in the exceptions

Change-Id: I9d1499fbcf8adb6bf0c5c0b7a10a8b480a708c09
rawable/VectorDrawable.java
805f6ebf17e2791624bb1a30834b4c1cc65583bf 30-Jul-2014 Behdad Esfahbod <behdad@google.com> Support FontFeatureSettings in Paint

New API is hidden.

Bug: 15246510
Change-Id: Idefca06a366de0d87f53d123b5291788448de4d0
aint.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
rawable/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
rawable/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
rawable/NinePatchDrawable.java
b6417b8b9492d88ccfbb723decaece1bb9ff0f73 29-Jul-2014 Alan Viverette <alanv@google.com> Don't double-cancel the active ripple

BUG: 16651728
Change-Id: Ibe413eabf9644c2ac9a5c8c1418ff996dacf606a
rawable/RippleDrawable.java
4c4064fa66f551f49b7e1017b1ebe65a05f9df21 25-Jul-2014 Zhijun He <zhijunhe@google.com> ImageFormat: update raw10 spec to allow row padding

Change-Id: Id191b92037487f16538d111fc6171d3be9a02acf
mageFormat.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
rawable/AnimatedVectorDrawable.java
rawable/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
anvas.java
1968201b44567262e7b2e382eee3d88990748d89 25-Jul-2014 Dan Sandler <dsandler@android.com> Don't crash when drawing zero pixels.

Bug: 16561522
Change-Id: Ia3a2d2930abc393dbe587053f598246c49c0c9c4
rawable/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
rawable/Ripple.java
rawable/RippleBackground.java
rawable/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
aint.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
rawable/RippleDrawable.java
b7b8e921c7a60be275cae45665adcff4964ef171 24-Jul-2014 Leon Scroggins III <scroggo@google.com> Document BlurMaskFilter.Blur.

BUG:1894887
Change-Id: Ia5ed8d8d5e3fcebec6f903b2641d030e8b29513c
lurMaskFilter.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
itmapShader.java
omposeShader.java
inearGradient.java
aint.java
adialGradient.java
hader.java
weepGradient.java
5a836f74df027bb568da17fbde4e641b6a56d2a9 22-Jul-2014 ztenghui <ztenghui@google.com> Add negative sign separation support in the pathData

bug:14585171

Change-Id: I61dec27856be09c44bb1d32ff61b3c3cd458cc34
rawable/VectorDrawable.java
ade9ef236c5258d7369597f2f8a08ab277396513 23-Jul-2014 Alan Viverette <alanv@google.com> Ensure ripple mask gets updated in public constructor

Change-Id: I084ff0357c8e3cf08d3700d9c7dce42726b986f1
rawable/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
utline.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
anvas.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
rawable/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
utline.java
rawable/Drawable.java
rawable/DrawableContainer.java
rawable/GradientDrawable.java
rawable/InsetDrawable.java
rawable/LayerDrawable.java
rawable/NinePatchDrawable.java
rawable/RippleDrawable.java
rawable/ShapeDrawable.java
rawable/shapes/OvalShape.java
rawable/shapes/RectShape.java
rawable/shapes/RoundRectShape.java
rawable/shapes/Shape.java
9d59a76dd0e850558e83ef1a48fefd865fac1336 18-Jul-2014 ztenghui <ztenghui@google.com> Fix FIT_XY scaleType issue on VectorDrawable

bug:16019658

Change-Id: I8b6ac23bf14de5427d3029436acf76bd1161f0ea
rawable/VectorDrawable.java
670689af43358568bf2b5916284f1cac5762f428 18-Jul-2014 ztenghui <ztenghui@google.com> Fix caching in VectorDrawable to pass the CTS test

bug:16380401

Change-Id: I573f4cc782707c6ef3484597ddc621a7a6353898
rawable/VectorDrawable.java
738177caf6a755a59ca6b17bb968be0aa4e8e10f 16-Jul-2014 ztenghui <ztenghui@google.com> Add the RTL support to VectorDrawable.

bug:15905631

Change-Id: Ieb3dcac2dd446ba89f307716411688dcd6ec5279
rawable/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
anvas.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
anvas.java
d646fa2933ddcbfd4ed9c7686bf5e8253b4ba980 16-Jul-2014 Alan Viverette <alanv@google.com> Fix state list drawable transitions

BUG: 16345178
Change-Id: I3a4f09462ac127bfb2adba6f63f5f44e5d4ea693
rawable/AnimatedStateListDrawable.java
7bc6a3f023ca3e1dde91fc97b6036dee3ba538a2 16-Jul-2014 ztenghui <ztenghui@google.com> Add more reverse support to AnimatedVD

bug:16162242

Change-Id: Ie0b7618beeb65ebeb65db41600165837524bcee4
rawable/AnimatedStateListDrawable.java
rawable/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)
rawable/AnimatedStateListDrawable.java
rawable/AnimatedVectorDrawable.java
7068c39526459c18a020e29c1ebfa6aed54e2d0f 14-Jul-2014 Alan Viverette <alanv@google.com> Fix hotspot movement on focus change

BUG: 15726988
Change-Id: I97f88e5f7e404ecfcd5c254fddd18c8f6616064e
rawable/Drawable.java
rawable/DrawableContainer.java
rawable/InsetDrawable.java
rawable/LayerDrawable.java
rawable/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
anvas.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
itmap.java
inePatch.java
ect.java
rawable/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
rawable/AnimatedVectorDrawable.java
rawable/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
mageFormat.java
urfaceTexture.java
935b1fa24d05533a95ee47425ab9bedb31641012 11-Jul-2014 Alan Viverette <alanv@google.com> Remove old RippleDrawable constructor, fix new constructor

BUG: 16221737
Change-Id: I3807d8d7ccccf66568b9d5421cb9456fe818e2bf
rawable/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
hader.java
rawable/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
rawable/Drawable.java
rawable/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
rawable/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
df/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
rawable/AnimatedVectorDrawable.java
rawable/VectorDrawable.java
9e6f9924c421d801f28b773673511cd59859d843 08-Jul-2014 Alan Viverette <alanv@google.com> Fix layer drawable inflation

Change-Id: I2f16e3ddea919c33dc7b62f457a994e6d8a66e5b
rawable/LayerDrawable.java
13d965485e5ca1355071eb0f04c4cd2683c371bf 08-Jul-2014 Alan Viverette <alanv@google.com> Fix build

Change-Id: I20f3ae19bd6d7cdc6dd6b9e947bdfea38893a167
rawable/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
rawable/BitmapDrawable.java
rawable/ColorDrawable.java
rawable/Drawable.java
rawable/GradientDrawable.java
rawable/InsetDrawable.java
rawable/LayerDrawable.java
rawable/NinePatchDrawable.java
rawable/RippleDrawable.java
rawable/ShapeDrawable.java
rawable/VectorDrawable.java
7c0517272ba2d97084739a14fea78641b265eb5d 08-Jul-2014 Alan Viverette <alanv@google.com> Fix getOutline() in ripple and layer drawables

BUG: 16134862
Change-Id: Ibcef20fc154ecc342344770f96fbd3d77d6fad26
rawable/LayerDrawable.java
rawable/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
rawable/Animatable.java
rawable/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
mageFormat.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
c054966b719c8a7255f7cf4120cca5050acb68bd 04-Jul-2014 Alan Viverette <alanv@google.com> Make optical insets actually work

Change-Id: I9fabf4cb939cc7a868f95580e7229745acde0418
itmap.java
rawable/Drawable.java
rawable/InsetDrawable.java
rawable/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
itmap.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
utline.java
rawable/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
rawable/AnimatedVectorDrawable.java
rawable/VectorDrawable.java
6ae2d7cefafd7fbf5e7c8d7d3c1869e66056b7f8 30-Jun-2014 Alan Viverette <alanv@google.com> Don't call deprecated RippleDrawable constructor

BUG: 15972806
Change-Id: If0973eed2da4708312a1320be4dd0b314157bc9a
rawable/RippleDrawable.java
3e1585e05ddb0fd60033a5603e330b8ab1f69303 28-Jun-2014 Chris Craik <ccraik@google.com> Add outline support to InsetDrawable

bug:15933107
Change-Id: I3341417dc197a751442d2b4c2645a1520db41095
rawable/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
rawable/RippleDrawable.java
100a2d1fc67d79d19afa0c00830350a5d4ab0c59 27-Jun-2014 Alan Viverette <alanv@google.com> Clean up AnimationDrawable.setVisible() state management

BUG: 15823683
Change-Id: Ied0d476956c246bdfda66219aaa896f2ef58f0bd
rawable/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
urfaceTexture.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
ypeface.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
aint.java
58945975b256739fdfe78435d7846d1e2fd29da1 24-Jun-2014 Chris Craik <ccraik@google.com> Outline support in DrawableContainer and LayerDrawable

bug:14445484
Change-Id: I26a45b0115b976d0dbcc351a208dc0956bc52e96
rawable/DrawableContainer.java
rawable/LayerDrawable.java
22594f097242d9de0a538a9b8142f77da9df7ebd 21-Jun-2014 Alan Viverette <alanv@google.com> Add tileModeX/Y attrs to BitmapDrawable, tint to ShapeDrawable

Change-Id: I1c9efe39bfd5286230cee8354822db81f05186e4
rawable/BitmapDrawable.java
rawable/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
rawable/AnimatedVectorDrawable.java
rawable/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
rawable/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
rawable/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
rawable/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.
rawable/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
rawable/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
rawable/GradientDrawable.java
rawable/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
anvas.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
rawable/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
rawable/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
rawable/DrawableContainer.java
e3c433aa457138425e514494e4d06590076a1d07 19-Jun-2014 Alan Viverette <alanv@google.com> Persist selector on ListView and GridView layout

BUG: 15472031
Change-Id: I0d10be3e0cf8a4d7580bd834e432c1c15fc481f5
rawable/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
rawable/VectorDrawable.java
5adf8ee451085ed6106b7dbadc6d8dcd9d90722b 18-Jun-2014 Alan Viverette <alanv@google.com> Fix bitmap tinting

BUG: 15716407
Change-Id: I4008c9763fedc2f716040cd3f73ad79d77343960
rawable/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
anvas.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
rawable/Drawable.java
24609581330bc350f797179e3c1a59789c645ec2 13-Jun-2014 Antonio Calabrese <acalabrese@google.com> Added primitive parameters to various functions requiring rectangles.

Change-Id: I5a2678fa989f0ff34404b8236787a8153b05f113

bug:14322352
anvas.java
ath.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
icture.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
aint.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
anvas.java
aint.java
a2992f44bc3787f37c3cad98f79dcfe67fb1aa81 17-Jun-2014 Alan Viverette <alanv@google.com> Fix tint filters in NinePatchDrawable and ShapeDrawable

BUG: 15678325
Change-Id: I57066e7a44498c88a270c76b7880f36825a25bb8
rawable/NinePatchDrawable.java
rawable/ShapeDrawable.java
611c1ff0de00b636ca0f9d5500c91d75b9c5257a 16-Jun-2014 Alan Viverette <alanv@google.com> Fix ShapeDrawable constant state and theming

Change-Id: I085d7705b63ec5f94e9b9fb5ece85ae3c7d39512
rawable/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
rawable/Animatable.java
rawable/AnimatedRotateDrawable.java
rawable/AnimationDrawable.java
rawable/BitmapDrawable.java
rawable/ClipDrawable.java
rawable/ColorDrawable.java
rawable/Drawable.java
rawable/DrawableContainer.java
rawable/InsetDrawable.java
rawable/LayerDrawable.java
rawable/MaterialProgressDrawable.java
rawable/NinePatchDrawable.java
rawable/PaintDrawable.java
rawable/PictureDrawable.java
rawable/RotateDrawable.java
rawable/ScaleDrawable.java
rawable/ShapeDrawable.java
rawable/StateListDrawable.java
rawable/TransitionDrawable.java
rawable/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
rawable/Animatable.java
rawable/AnimatedRotateDrawable.java
rawable/AnimationDrawable.java
rawable/BitmapDrawable.java
rawable/ClipDrawable.java
rawable/ColorDrawable.java
rawable/Drawable.java
rawable/DrawableContainer.java
rawable/InsetDrawable.java
rawable/LayerDrawable.java
rawable/MaterialProgressDrawable.java
rawable/NinePatchDrawable.java
rawable/PaintDrawable.java
rawable/PictureDrawable.java
rawable/RotateDrawable.java
rawable/ScaleDrawable.java
rawable/StateListDrawable.java
rawable/TransitionDrawable.java
rawable/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
rawable/Animatable.java
rawable/AnimatedRotateDrawable.java
rawable/AnimationDrawable.java
rawable/BitmapDrawable.java
rawable/ClipDrawable.java
rawable/ColorDrawable.java
rawable/Drawable.java
rawable/DrawableContainer.java
rawable/InsetDrawable.java
rawable/LayerDrawable.java
rawable/MaterialProgressDrawable.java
rawable/NinePatchDrawable.java
rawable/PaintDrawable.java
rawable/PictureDrawable.java
rawable/RotateDrawable.java
rawable/ScaleDrawable.java
rawable/StateListDrawable.java
rawable/TransitionDrawable.java
rawable/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
rawable/AnimatedStateListDrawable.java
rawable/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
rawable/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
itmap.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
rawable/AnimatedVectorDrawable.java
rawable/Drawable.java
rawable/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
rawable/Ripple.java
rawable/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
anvas.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
rawable/Ripple.java
rawable/RippleDrawable.java
830960cce032a1b0dc0cf54bcc44ffa339388c21 07-Jun-2014 Alan Viverette <alanv@google.com> Material theme

BUG: 15467097
Change-Id: I15191362e104a902895418fc615892c21db64c35
rawable/Drawable.java
rawable/MaterialProgressDrawable.java
rawable/QuantumProgressDrawable.java
rawable/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
rawable/Drawable.java
rawable/MaterialProgressDrawable.java
rawable/QuantumProgressDrawable.java
rawable/Ripple.java
27d3e6d06f2cc86f115652275791a988e9a758e5 06-Jun-2014 svetoslavganov <svetoslavganov@google.com> Current page not updated when closed

Change-Id: I19845f179f9e712f0213c845c795d5e2c9ea4e29
df/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
rawable/BitmapDrawable.java
rawable/GradientDrawable.java
rawable/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
rawable/AnimationDrawable.java
rawable/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
icture.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 dr