3048 Commits

Author SHA1 Message Date
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
Alan Viverette
11a84b8429 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
2016-08-24 12:35:47 -04:00
Teng-Hui Zhu
0bc9fa9896 Add an new internal DrawableContainer to handle animation scale == 0 case.
am: 0c03664fa6

Change-Id: I7feae01c6302e2942087c6dfe1948109467f1326
2016-08-24 16:28:55 +00:00
Tenghui Zhu
3512b0001a Merge "Add an new internal DrawableContainer to handle animation scale == 0 case." into nyc-mr1-dev 2016-08-24 16:22:38 +00:00
Teng-Hui Zhu
0c03664fa6 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
2016-08-22 15:36:32 -07:00
Alan Viverette
66b3a0d1aa 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)
2016-08-22 20:00:30 +00:00
Teng-Hui Zhu
d64255f61d Update the javaDoc for VectorDrawable and AnimatedVectorDrawable
b/30269243

Change-Id: I139a3fcac95c41a667fa06aa3223b812caad6243
(cherry picked from commit c224417511d8179a08c4dfd4badc73dd9699ebf2)
2016-08-22 18:32:09 +00:00
Philip P. Moltmann
366262dc78 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)
2016-08-18 18:20:59 +00:00
Doris Liu
911bbc7cb0 Fix listeners not getting called when AVD falls back on UI thread am: 853b23d1fa am: 79846f859c
am: a0daf61dd0

Change-Id: I90467d3501877b8f398be929084b6ae5f65360cf
2016-08-18 00:07:02 +00:00
Doris Liu
853b23d1fa 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
2016-08-17 00:20:39 +00:00
Dianne Hackborn
f49cfb874e Fix issue #30766518: Document what targeting N does am: b34cbedb4e am: 3a585b86be
am: 22fdbab5d0

Change-Id: Ic9beb458f4332b9ec72c4b4b4178a5bce1fcac82
2016-08-10 01:24:20 +00:00
Dianne Hackborn
b34cbedb4e Fix issue #30766518: Document what targeting N does
Also small documentation cleanup in a few other places.

Change-Id: I16581c751aa0ffa146faba3b140a8fa2170f4520
2016-08-09 13:21:24 -07:00
Doris Liu
8f87912d4a Support repeatMode = reverse in AVD am: f7167e8f28 am: 113a8c63d4
am: ceda529fae

Change-Id: I17962c8cff0bd03c1a87d57b213edebdd62a4129
2016-08-06 01:24:02 +00:00
Doris Liu
f7167e8f28 Support repeatMode = reverse in AVD
BUG: 30641232
Change-Id: I34c823a0a45c8441873a9b467275174c5529994b
2016-08-05 01:44:20 +00:00
Alan Viverette
daec5506c4 Improve docs for GradientDrawable's useLevel and centerX/Y properties
Bug: 30302143
Change-Id: I1007bf2a57ce73c9ed516a4717e7a539e9e9774b
2016-08-04 13:55:11 -04:00