3062 Commits

Author SHA1 Message Date
Alan Viverette
39a561f5bb Scale bitmap shaders for target density am: 0d2a46b733 am: 444f2043d1
am: 36d83ffc5b

Change-Id: I97a23b431247f4541f5517787a486aca7d95a618
2016-10-10 14:30:50 +00:00
Alan Viverette
444f2043d1 Scale bitmap shaders for target density
am: 0d2a46b733

Change-Id: I8e3274a9c6047d943336827e7e0c8563e40c2ca5
2016-10-07 20:39:48 +00:00
TreeHugger Robot
0f6cec369f Merge "Scale bitmap shaders for target density" into nyc-mr1-dev 2016-10-07 20:31:01 +00:00
Alan Viverette
0d2a46b733 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
2016-10-07 16:23:32 -04:00
John Reck
299659ddb7 Convert VD/AVD to FastNative
Test: build & boots
Change-Id: I6519ba245eca1a43fb00de36c91a05a9740c8c5f
2016-10-07 10:33:44 -07:00
Doris Liu
0b6849133a Restrict AVD and VD parsing to the current element instead of the whole document am: 1f859716a8 am: 897f5ca748
am: 43104389f9

Change-Id: I1730b80585c5d5064fda8ec4d598a95651d7c3eb
2016-10-07 01:02:09 +00:00
Teng-Hui Zhu
a08b1a37a5 Update JavaDoc about animatable on VectorDrawable am: bb12929470 am: 8bf7fd89e7
am: a504e12e25

Change-Id: I8b97f242a22e763e23169b9cb55d87afd2a6f471
2016-10-07 01:00:32 +00:00
Doris Liu
897f5ca748 Restrict AVD and VD parsing to the current element instead of the whole document
am: 1f859716a8

Change-Id: Ic2fe385089997f89675be8f8a1559db979387dbb
2016-10-06 20:15:40 +00:00
Teng-Hui Zhu
8bf7fd89e7 Update JavaDoc about animatable on VectorDrawable
am: bb12929470

Change-Id: I476d1416b0f734fbc87895c22de3e95efdbf25b9
2016-10-06 20:14:23 +00:00
Doris Liu
8d4c87b0bf Merge "Restrict AVD and VD parsing to the current element instead of the whole document" into nyc-mr1-dev 2016-10-03 23:28:54 +00:00
Tenghui Zhu
99224b311c Merge "Update JavaDoc about animatable on VectorDrawable" into nyc-mr1-dev 2016-10-03 22:53:45 +00:00
Doris Liu
1f859716a8 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
2016-10-03 21:32:11 +00:00
TreeHugger Robot
f03f8e59b0 Merge "Paint conversion to @FastNative/@CriticalNative" 2016-10-03 18:34:56 +00:00
John Reck
170219c5d8 Merge "Matrix JNI update" 2016-10-03 18:06:51 +00:00
John Reck
f22859757b Paint conversion to @FastNative/@CriticalNative
Test: Refactor, device still boots

Change-Id: Ibf106607070860958c4317d6013d14ecf236f35a
2016-10-03 09:59:23 -07:00
Hemal Patel
c5d6e74dff Docs: Added info about vector drawable am: 47876e79de am: f1f89fa935
am: d0cff7a3af

Change-Id: If20b595f5b278c81afd0f3b263566ea11ad4a67f
2016-09-30 23:51:18 +00:00
TreeHugger Robot
7ef8dbed50 Merge "Make bitmap backed by native memory instead of java byte array Test: refactoring CL. Existing unit tests still pass. bug:27762775" 2016-09-30 20:57:40 +00:00
sergeyv
4508218850 Make bitmap backed by native memory instead of java byte array
Test: refactoring CL. Existing unit tests still pass.
bug:27762775

Change-Id: Ic4e914b3a941c3d545f8ce9e320e638973df0e91
2016-09-30 12:25:07 -07:00
Hemal Patel
d0cff7a3af Docs: Added info about vector drawable am: 47876e79de
am: f1f89fa935

Change-Id: Iadc8240aab4fce954fd0813f6817d6313ed094e7
2016-09-30 19:07:00 +00:00
Hemal Patel
da400e9dd4 Docs: Added info about vector drawable am: 47876e79de
am: bfa9663e97

Change-Id: I5649e6f9f0e6254d43e7229ef3e88b40351b14e5
2016-09-30 19:03:53 +00:00
Hemal Patel
f1f89fa935 Docs: Added info about vector drawable
am: 47876e79de

Change-Id: I9fcc130c50302885397e80411858ed2ca4994db5
2016-09-30 19:00:12 +00:00
Hemal Patel
bfa9663e97 Docs: Added info about vector drawable
am: 47876e79de

Change-Id: I73d39d61210064e9de4ec212fac51a43e7a791ae
2016-09-30 18:59:09 +00:00
Hemal Patel
47876e79de Docs: Added info about vector drawable
Added overview of vector drawable in the class overview section.

Bug: 25129687
Change-Id: I976177ddd3a8bddcbc6544cbc227b6b2099c7b0a
2016-09-29 13:31:27 -07:00
John Reck
94931bd87e 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
2016-09-29 08:07:49 -07:00
Teng-Hui Zhu
bb12929470 Update JavaDoc about animatable on VectorDrawable
b/31782834

Change-Id: I64279fd14841302caaa71c817feaf01b855126ad
2016-09-27 16:56:35 -07:00
John Reck
6c12392f17 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
2016-09-23 13:27:55 -07:00
Doris Liu
edc684940d Improve Javadoc for AnimatedVectorDrawable am: 7d76fc4433 am: f6088e45e0
am: ab4f8f2f1d

Change-Id: I0b2eaa0f435f5bfe42be94d5ef796306fe3e0a1c
2016-09-21 19:05:43 +00:00
Doris Liu
7d76fc4433 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
2016-09-21 00:36:16 +00:00
TreeHugger Robot
6d256ad021 Merge "Fast-path Drawable#setColorFilter" 2016-09-19 22:27:18 +00:00
John Reck
6d8eb89da0 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
2016-09-19 13:41:29 -07:00
John Reck
5d31a293ad Cleanup Xfermode
We only support PorterDuff Xfermodes

Removes some unneeded JNI and finalizers()

Change-Id: I4988d6b05c6fd113a8ed8f7dcbf95abe0de95060
2016-09-19 12:52:50 -07:00
Dianne Hackborn
491bc2b8d6 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
2016-09-19 19:31:19 +00:00
John Reck
b5c30800e5 Merge "Add API to copy a window" 2016-09-08 16:23:45 +00:00
John Reck
9580146f50 Add API to copy a window
Change-Id: I9bb5209010db6665be4b6f8db81a6fc1b7debc45
2016-09-07 11:41:15 -07:00
Keisuke Kuroyanagi
f5af4a344e 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
2016-09-05 17:45:37 +09:00
Pablo Ceballos
1209bc144b Fail createVirtualDisplay with single-buffered Surface am: aff2f94939 am: d387b20dcb
am: 658f26634f

Change-Id: I499988d911ffd5ccd4b5bc10c75f3e0ed9a897c8
2016-08-31 02:56:35 +00:00
Pablo Ceballos
d387b20dcb Fail createVirtualDisplay with single-buffered Surface
am: aff2f94939

Change-Id: I5cfcbd0352240d7ac2a9bb0804896cae5396450e
2016-08-29 17:59:07 +00:00
Pablo Ceballos
23784fd6d9 Merge "Fail createVirtualDisplay with single-buffered Surface" into nyc-mr1-dev 2016-08-29 17:42:00 +00:00
Kirill Grouchnikov
ce3338ea36 Merge "Fix typo in PathMeasure javadocs" 2016-08-29 17:08:22 +00:00
Kirill Grouchnikov
6a03c39e0a Fix typo in PathMeasure javadocs
Change-Id: I7c637d791c7ca9b4b1d982602a6cd108385ca905
2016-08-29 11:46:21 -04:00
Alan Viverette
2851c2905d Ensure the layer drawable callback is set when loading from theme am: 11a84b8429 am: 3deb906397
am: caf68d0355

Change-Id: I2a61c5412cedce03612047aacce852451d16710e
2016-08-26 18:29:42 +00:00
Alan Viverette
cdfd0c8960 Improve docs for GradientDrawable's useLevel and centerX/Y properties am: daec5506c4 am: cc914b6b0b
am: 35a7e106ef

Change-Id: I1357fcc227c48259e15eef74e67d86f21fcec163
2016-08-26 18:27:37 +00:00
TreeHugger Robot
c5d2192f14 Merge "Various doc cleanups" 2016-08-26 17:37:09 +00:00
Chet Haase
8b9ed44f8d 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
2016-08-26 06:50:21 -07:00
Teng-Hui Zhu
2b769c4dde Add an new internal DrawableContainer to handle animation scale == 0 case. am: 0c03664fa6 am: 0bc9fa9896
am: ab2ed1a4e7

Change-Id: I2de378da33ca93639c03544c8702e17eaefee514
2016-08-26 02:15:07 +00:00
Pablo Ceballos
aff2f94939 Fail createVirtualDisplay with single-buffered Surface
Bug 30106031

Change-Id: I434df329eb3c162dd9ef01245ac5e0da97216e70
2016-08-25 12:06:52 -07:00
Alan Viverette
3deb906397 Ensure the layer drawable callback is set when loading from theme
am: 11a84b8429

Change-Id: Ia6994252d09b6cc008847cd0e084949ada7b2ab2
2016-08-24 18:34:26 +00:00
Alan Viverette
cc914b6b0b Improve docs for GradientDrawable's useLevel and centerX/Y properties
am: daec5506c4

Change-Id: If6c4b531a17abbed1a06478ec263bc89242638b3
2016-08-24 18:32:55 +00:00
Alan Viverette
709f0f3e15 Merge "Ensure the layer drawable callback is set when loading from theme" into nyc-mr1-dev 2016-08-24 18:17:04 +00:00
Alan Viverette
20109a689d Merge "Improve docs for GradientDrawable's useLevel and centerX/Y properties" into nyc-mr1-dev 2016-08-24 18:17:04 +00:00