2928 Commits

Author SHA1 Message Date
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
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
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
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
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
John Reck
8b9a1fa084 Eliminate recents upload jank am: 4387190d8e am: 021a952150
am: 897b9effb7

Change-Id: Iab2f01b5b3a9be6946e36169209c281a3320ed14
2016-08-02 02:57:27 +00:00
John Reck
4387190d8e 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
2016-08-01 16:36:14 -07:00
Romain Guy
19e710e7b5 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
2016-08-01 12:05:38 -07:00
Adrian Roos
f761b41501 Merge \\\"Keyguard: Reapply insets when fitsSystemWindow changes\\\" into nyc-mr1-dev am: 5e0a42848e am: 7c323ce7d7
am: 51fe9421ae

Change-Id: Ia96e1c2c59e83d8d8472a8795fd5998d9f7fe3a2
2016-07-29 01:38:15 +00:00
Alan Viverette
75c16264d0 Avoid potential re-entry as a result of child mutation am: b46ba3b2b0 am: 0d98515cab
am: 762c828704

Change-Id: I41e826722759de148e3f87d31981d008ff911cfe
2016-07-28 23:22:41 +00:00
sergeyv
2ef3bdbd7a Turn off simplePath optimization then Path object is used as out param
am: a6a8557d6e

Change-Id: Ia9b85e52b6f0c8632989bf58ac97771ffc2a5d8d
2016-07-28 00:32:46 +00:00
Sergei Vasilinetc
9b17ebca8f Merge "Turn off simplePath optimization then Path object is used as out param" into nyc-mr1-dev 2016-07-27 23:55:47 +00:00
Roozbeh Pournader
ede3a17f60 Add test for ascent and descent of serif and mono fonts
fontchain_lint now has tests making sure that their ascent and
descent matches that of Roboto.

Also, this moves a test class that contains a similar test and and
other related tests from graphictests to coretests.

Bug: 19791102
Change-Id: I8b473dd2a5f97ae2e3d322a2cabc16f3d32489f6
2016-07-27 16:35:12 -07:00
sergeyv
a6a8557d6e Turn off simplePath optimization then Path object is used as out param
Change-Id: I4d9ae5c756b2ed1ba30483e8685ce1ad6c1f0c03
fixes:30349106
2016-07-27 14:13:34 -07:00
Alan Viverette
b46ba3b2b0 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
2016-07-27 10:23:35 -04:00
Teng-Hui Zhu
c224417511 Update the javaDoc for VectorDrawable and AnimatedVectorDrawable
b/30269243

Change-Id: I139a3fcac95c41a667fa06aa3223b812caad6243
2016-07-26 16:21:46 -07:00
Siyamed Sinir
317029aecc Update font feature settings w3 URL in api doc
Bug: 29545624
Change-Id: I4611f53055f3a52bc607ac0cc8311f8a633217bf
2016-07-25 14:50:48 -07:00
Doris Liu
58eaa13f18 Merge \\"Ensure native allocation/free is correctly registered\\" into nyc-mr1-dev am: a7272b4cad
am: f5b87ce908

Change-Id: Ic04a562f2c32cb0187713f2b661e35fb3f7f6023
2016-07-16 00:04:42 +00:00
Doris Liu
26bb10999b 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
2016-07-15 00:00:20 +00:00
John Reck
88b4e87ae6 Merge \\"Clarify Picture docs on playback\\" into nyc-mr1-dev am: 226b4764b4
am: 917d0abd30

Change-Id: I6efc71dbe4d152e0265faf5056f8e385738a2442
2016-07-01 21:17:05 +00:00
John Reck
226b4764b4 Merge "Clarify Picture docs on playback" into nyc-mr1-dev 2016-07-01 20:41:24 +00:00
Tenghui Zhu
7839e42315 Merge \\"Mutate the drawable if a valid state change happen\\" into nyc-mr1-dev am: 919e982c3f
am: 96c4176210

Change-Id: I38f38fd3b1c349dd938f41b199f572628c9987d7
2016-06-30 23:01:15 +00:00
Teng-Hui Zhu
4f1acfb5f5 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
2016-06-30 16:30:02 +00:00
John Reck
943c4e0813 Clarify Picture docs on playback
Change-Id: Iaf8d8d04deb97aff39c93c246ef20312c9c2a7cb
fixes: 26911597
2016-06-29 16:09:20 -07:00
Alan Viverette
61d7a8aad3 Merge \\\"Disable constant state sharing for VectorDrawable\\\" into nyc-dev am: f66bdf9b57 am: 25242a7bbc
am: edb98d238f

Change-Id: Iad1b27849bfa501064cb3452caed3571fcdf8430
2016-06-29 17:10:50 +00:00
Alan Viverette
25242a7bbc Merge \"Disable constant state sharing for VectorDrawable\" into nyc-dev
am: f66bdf9b57

Change-Id: I0c6397987d926c35cb5486fd9d2cb22efb8d8f14
2016-06-29 17:01:21 +00:00
Alan Viverette
f66bdf9b57 Merge "Disable constant state sharing for VectorDrawable" into nyc-dev 2016-06-29 16:54:29 +00:00
Alan Viverette
1882ce941b Disable constant state sharing for VectorDrawable
Bug: 29854240
Change-Id: Icc58d04ad6f471d05b085a9089893e4f7205eb7d
2016-06-29 11:32:13 -04:00
Chris Craik
17b49651af Merge \\"Clip GradientDrawable\\'s saveLayer\\" into nyc-mr1-dev am: 694acb1e36
am: b22e745278

Change-Id: I331574caa364e87c5178bee544e1b6d570fb4ea5
2016-06-28 18:37:42 +00:00
Chris Craik
1e5d428b3f Clip GradientDrawable's saveLayer
bug:29456451

Avoid using very expensive unclipped saveLayer codepath.

Change-Id: Ib96a46169faa89eda6889b16813a7941ab402779
2016-06-28 09:45:35 -07:00
Tenghui Zhu
1dbad03004 Merge "Refactor the java side APCT perf test" 2016-06-22 17:05:03 +00:00
Teng-Hui Zhu
23d1fdded5 Refactor the java side APCT perf test
Relocate everything into apct-tests/
Setup the share static java lib for the common code and use it.

b/28980976

Change-Id: I74c80c0b54ad18ee5fc44da43249d3c88fb926e2
2016-06-21 16:11:31 -07:00
Alan Viverette
aa2b45da4d Merge \\\"Only block invalidation in DrawableContainer initialization\\\" into nyc-dev am: 7a372a13af am: 9b81f5bfaf
am: fdc99784c7

Change-Id: I2d71a46405e1ff208f6b4fdcc71b82bb8073a385
2016-06-21 14:04:55 +00:00
Alan Viverette
fdc99784c7 Merge \\"Only block invalidation in DrawableContainer initialization\\" into nyc-dev am: 7a372a13af
am: 9b81f5bfaf

Change-Id: I23aa33f0a65e311fcb0db3884216666c1d6bc01c
2016-06-21 13:59:29 +00:00
Alan Viverette
e77dc4fe06 Merge \"Only block invalidation in DrawableContainer initialization\" into nyc-dev
am: 7a372a13af

Change-Id: I21a7dbf975a8dca02d87b9a0f084a6af74d55834
2016-06-21 13:53:49 +00:00
sergeyv
a8d3485f3d Fix documentation for GradientDrawable.getCornerRadius
Change-Id: I4ad1ef7d989df250a9208107b5baac9e79816194
2016-06-20 18:45:25 -07:00