Commit Graph

4517 Commits

Author SHA1 Message Date
Jerome Gaillard
e4e690b655 Merge "Change method name in VectorDrawable_Delegate" into nyc-dev
am: ff9e0de

* commit 'ff9e0dede85d12576227013feeb3a1e7fd5a4774':
  Change method name in VectorDrawable_Delegate

Change-Id: I9b706ab3297c69f58a948282250ae1ed40cd3c0b
2016-04-13 12:21:28 +00:00
Jerome Gaillard
8c0ab16494 Change method name in VectorDrawable_Delegate
Following change in VectorDrawable from commit cdedc9a80d.

Change-Id: I5d17b2e77c9600fe3da981c77a3e39dcd4df1d1f
2016-04-13 11:48:28 +01:00
Diego Perez
dea620e428 Merge "Synchronize access to the main looper" into nyc-dev
am: 49a5436

* commit '49a54366c11ed5ac887e6f897aa6ee5e4b86489c':
  Synchronize access to the main looper

Change-Id: Ife3e869aea8c257c1a3e2dd38fc81f83ec747735
2016-04-13 08:23:09 +00:00
Diego Perez
49a54366c1 Merge "Synchronize access to the main looper" into nyc-dev 2016-04-13 08:14:57 +00:00
Suprabh Shukla
7b13098b62 Merge "Added api to delete cache files for a given user" into nyc-dev
am: 0a6a6db

* commit '0a6a6dbe9107a3e31d74293f853b46ae0e5b9e7b':
  Added api to delete cache files for a given user

Change-Id: If8bc5327e76680d3d30127b1129e7c4c36928421
2016-04-13 03:17:24 +00:00
TreeHugger Robot
0a6a6dbe91 Merge "Added api to delete cache files for a given user" into nyc-dev 2016-04-13 03:13:49 +00:00
Roozbeh Pournader
eae7a2de74 Merge "Add many more emoji tests" into nyc-dev
am: a51a12c

* commit 'a51a12cfe73c3f578a013543fddd9d913b46c143':
  Add many more emoji tests

Change-Id: I07fdc9040cec1a6be7fe7fa09fb56b6ea724e8d1
2016-04-13 02:09:00 +00:00
Roozbeh Pournader
a51a12cfe7 Merge "Add many more emoji tests" into nyc-dev 2016-04-13 02:01:19 +00:00
Suprabh Shukla
78c9eb8947 Added api to delete cache files for a given user
Added an api to delete application cache files for a specific user. This
allows settings to clear cache files for work profile apps as well.

Bug: b/25338468
Change-Id: I52d4944a7a03b6d63ad44dd6bb868aec62815eab
2016-04-12 18:23:56 -07:00
Deepanshu Gupta
e69268012d Merge "Add post resolve property values" into nyc-dev
am: a8d21a0

* commit 'a8d21a0facb415ed085059298c50eaa58544129a':
  Add post resolve property values

Change-Id: I6f2c2f086a680dc82a02450b891e1d9de8885004
2016-04-12 22:21:33 +00:00
Deepanshu Gupta
79c59fe4a8 Add post resolve property values
Change-Id: Ia86b7dfc479cc5313cce36b6b3066fbb1d00c292
2016-04-12 12:46:09 -07:00
Diego Perez
8d25697bf0 Synchronize access to the main looper
Change-Id: I4b9375d07c4191393c04f8b40905e63742b3baad
2016-04-12 18:27:31 +01:00
Diego Perez
aa1f2e6750 Merge "Fix broken delegates for FontFamily and PathParser" into nyc-dev
am: 37e16f8

* commit '37e16f8e3bc3b3e3d3a4c37b5b7ccda953c78ac9':
  Fix broken delegates for FontFamily and PathParser

Change-Id: Id418eaa3ccf69a4a757f8410f152718e4088f373
2016-04-12 16:34:51 +00:00
Diego Perez
a0a51b6fb6 Fix broken delegates for FontFamily and PathParser
The theme editor is throwing an exception with the last embedded
layoutlib because a missing method. Added also another missing method in
FontFamily.

Change-Id: I710ba7618df6444a3185b581cdc5dc8400f7c604
2016-04-12 17:21:00 +01:00
Adam Lesinski
e4c16f8cc2 Merge "AAPT2: Clean up R JavaDoc generation" into nyc-dev
am: d3caf46

* commit 'd3caf46a850fb3191562fc5e05c2aa8b5912b598':
  AAPT2: Clean up R JavaDoc generation

Change-Id: I4e83f950621c8be80600c3dc11a0cd9081477549
2016-04-08 01:29:37 +00:00
Adam Lesinski
d3caf46a85 Merge "AAPT2: Clean up R JavaDoc generation" into nyc-dev 2016-04-08 01:23:29 +00:00
Adam Lesinski
626b3dbf74 AAPT2: Clean up R JavaDoc generation
- Don't generate private attributes in public R.java
- Strip out @SystemApi from comment when generating @android.annotation.SystemApi
- Only emit a single line (up to the first period) of an attribute's comment within
  a styleable's attribute table.

Change-Id: Id6316a6861540325934133958939a12074ad4428
2016-04-07 16:26:14 -07:00
Diego Perez
d1acd13cb0 Merge "Fix NPE when runnin testActivity" into nyc-dev
am: 2155ad8

* commit '2155ad82042eb2f69b9c9d2a9ecf3884d265ad7b':
  Fix NPE when runnin testActivity

Change-Id: I5b0c4b2686ebee6814866edf0c9e30e12ea14d26
2016-04-07 19:06:38 +00:00
Diego Perez
2155ad8204 Merge "Fix NPE when runnin testActivity" into nyc-dev 2016-04-07 19:02:34 +00:00
Adam Lesinski
1f337234d0 Merge "AAPT2: Enable windows build and make sure it builds" into nyc-dev
am: f22df48

* commit 'f22df48067ec8f0a2c609c40ba842a0e5a0812b0':
  AAPT2: Enable windows build and make sure it builds

Change-Id: I4a576df3e8d90546bb9d510821bcf1fbc349bdca
2016-04-07 17:08:32 +00:00
Adam Lesinski
c02d20bdfe Merge "AAPT: Dump uses-feature version in dump badging" into nyc-dev
am: c399df7

* commit 'c399df7a683d831f55b5afdb6945ef86bfe0e181':
  AAPT: Dump uses-feature version in dump badging

Change-Id: I9fc30542458cd4a94ac6b00fb8dc943271961516
2016-04-07 17:08:30 +00:00
Adam Lesinski
f22df48067 Merge "AAPT2: Enable windows build and make sure it builds" into nyc-dev 2016-04-07 17:03:55 +00:00
Adam Lesinski
c399df7a68 Merge "AAPT: Dump uses-feature version in dump badging" into nyc-dev 2016-04-07 17:03:23 +00:00
Diego Perez
8cdf61a02e Fix NPE when runnin testActivity
Change-Id: I7ac81cb286b8d5593ae7f5fedb99bfd0fda791c5
2016-04-07 18:00:17 +01:00
Diego Perez
cdd194704b Merge "Fix rect shadow detection" into nyc-dev
am: 8d35506

* commit '8d35506e512cbbce09cedfe8e1d76653440ca3a5':
  Fix rect shadow detection

Change-Id: I499e845d9f28f094f15284f3450c2852a2046713
2016-04-07 16:34:41 +00:00
Diego Perez
8d35506e51 Merge "Fix rect shadow detection" into nyc-dev 2016-04-07 16:27:00 +00:00
Adam Lesinski
92a14b851f Merge "AAPT2: Allow <protected-broadcast> and <eat-comment> in AndroidManifest.xml" into nyc-dev
am: 450ae41

* commit '450ae41c54a39495c2e3421a73ebb38735880b58':
  AAPT2: Allow <protected-broadcast> and <eat-comment> in AndroidManifest.xml

Change-Id: Ic176a1179810ed6445825dff073c0cd55b478724
2016-04-07 00:50:38 +00:00
Adam Lesinski
c728c3daba AAPT2: Allow <protected-broadcast> and <eat-comment> in AndroidManifest.xml
Change-Id: I38c49a2a31e560dec963d44d94e067035fd59150
2016-04-06 17:40:25 -07:00
Adam Lesinski
694d0a7dfd AAPT: Dump uses-feature version in dump badging
Bug:27162500
Change-Id: I4f82cdd8ef1801c92d4ea6b4bb982c6e7d91edb5
2016-04-06 16:40:23 -07:00
Adam Lesinski
803c7c8079 AAPT2: Enable windows build and make sure it builds
Mingw32 4.8 is kind of picky with macros and some complicated template
stuff. Luckily there was another way to represent the
SFINAE code that works on all platforms. Yay!

Change-Id: Idc2e38f47bfdc57b394550bfa0f53cc0b825df25
2016-04-06 16:24:02 -07:00
Adam Lesinski
3815795263 Merge "AAPT2: Implement XmlActionExecutor to verify manifest" into nyc-dev
am: ae3622a

* commit 'ae3622a2f75c1082aec1240b365bf834e986379a':
  AAPT2: Implement XmlActionExecutor to verify manifest

Change-Id: I1f44b84672bc6a5908f4405b0202c85360b1e1a3
2016-04-06 20:51:35 +00:00
Adam Lesinski
ae3622a2f7 Merge "AAPT2: Implement XmlActionExecutor to verify manifest" into nyc-dev 2016-04-06 20:43:25 +00:00
Deepanshu Gupta
11bd8bd2e2 Merge "Add missing setAccessible to Choreographer\'s threadInstance" into nyc-dev
am: 5b758bf

* commit '5b758bf272e3e24c8822523c2a3c3f38ba6f8025':
  Add missing setAccessible to Choreographer's threadInstance

Change-Id: I276f1450023cb31b2c6cfd2e0033c4fd1db5a6fc
2016-04-06 19:36:02 +00:00
Deepanshu Gupta
5b758bf272 Merge "Add missing setAccessible to Choreographer's threadInstance" into nyc-dev 2016-04-06 19:32:02 +00:00
Deepanshu Gupta
42c8bd1b4a Add missing setAccessible to Choreographer's threadInstance
Change-Id: I753660cf68ba5a9c375942222e32059d952739bb
2016-04-06 12:29:55 -07:00
Deepanshu Gupta
bc468db47d Merge "Clear ThreadLocal storage from Choreographer" into nyc-dev
am: 39f1311b

* commit '39f1311b545f1f8732ee3a8b565018dcd0da7323':
  Clear ThreadLocal storage from Choreographer

Change-Id: I6245cf707bc5449df2d729af4f89923223aeae93
2016-04-06 19:15:11 +00:00
Deepanshu Gupta
39f1311b54 Merge "Clear ThreadLocal storage from Choreographer" into nyc-dev 2016-04-06 19:04:00 +00:00
Adam Lesinski
cc5609d8e4 AAPT2: Implement XmlActionExecutor to verify manifest
Defines a set of actions to perform on XML elements defined by their
hierarchy, eg: manifest -> application -> activity.

This can be used to easily add rules to check more tags in AndroidManifest.xml

Change-Id: I76c6916a98b6403075a7e56e16230979dc6cbee1
2016-04-06 11:37:05 -07:00
Deepanshu Gupta
61ccc9198a Clear ThreadLocal storage from Choreographer
Change-Id: I5abb5c68a635e7808b0a036ba4d9971cd0139aa3
2016-04-06 11:32:36 -07:00
Diego Perez
a4d7ad8663 Fix rect shadow detection
ViewGroup_Delegate was trying to use a rect shadow even in cases where
we needed to use a path. This caused that using a ToggleButton would
throw an exception with radius < 0.
Also, changed the tests so we can detect certain render errors and
ignore other (like known fidelity warnings).

Change-Id: I900d45f9efa892ad0aebc8f4ef73fc9f21ab9d92
2016-04-06 12:33:26 +01:00
Deepanshu Gupta
168f4185fa Merge "Add properties from textAppearance to property map" into nyc-dev
am: bad02b0

* commit 'bad02b0ec9fb977f588db405a878ade9535bf240':
  Add properties from textAppearance to property map

Change-Id: I9cdbaedb061cff1a31a2ba5ceb8e92624d22c33f
2016-04-06 00:07:22 +00:00
Deepanshu Gupta
bad02b0ec9 Merge "Add properties from textAppearance to property map" into nyc-dev 2016-04-05 23:59:02 +00:00
Deepanshu Gupta
91253ed046 Add properties from textAppearance to property map
The default property map is used to get the list of XML properties that
a view queried. For things like textAppearance, these are additional
attributes that the TextView queries, but wasn't added to  the property
map. Add them too.

Change-Id: I1e03fbeced224866de1dcc51b93d5aa5d5886ade
2016-04-05 16:58:00 -07:00
Diego Perez
eb4922b526 Merge "Separate inflate from render step" into nyc-dev
am: 4ce88b1

* commit '4ce88b10ab1c593d80643878cc6e90edc81b6aab':
  Separate inflate from render step

Change-Id: I1a65f91ce73a0137f6b24977520578ae246c5d59
2016-04-05 08:23:28 +00:00
Diego Perez
4ce88b10ab Merge "Separate inflate from render step" into nyc-dev 2016-04-05 08:17:46 +00:00
Adam Lesinski
934dfddfd4 Merge "AAPT2: Add option to add JavaDoc annotations to Java classes" into nyc-dev
am: b12c260

* commit 'b12c2601f475ee127d9ab333e5b8c6cd9a9967e4':
  AAPT2: Add option to add JavaDoc annotations to Java classes

Change-Id: I67b797ff2bdc05ef318796841b545812179a617c
2016-04-04 22:29:37 +00:00
Adam Lesinski
b12c2601f4 Merge "AAPT2: Add option to add JavaDoc annotations to Java classes" into nyc-dev 2016-04-04 22:25:56 +00:00
Adam Lesinski
3524a23edb AAPT2: Add option to add JavaDoc annotations to Java classes
Change-Id: I7ee8c20cdd91380927a65c41097ffd3a6ffa2df5
2016-04-04 12:42:05 -07:00
Diego Perez
2605f91f70 Separate inflate from render step
Up until now, createSession will always do a first render. With the new
embedded layoutlib we might want to actually call objects from the
inflated view before doing a render or even do it between renders.
This allows to avoid the first initial render unless needed.

This CL also fixes a bug that would only happen when multiple render
calls are issued. When scrolling, use scrollTo since we likely want
absolute positions, not relative.

Change-Id: I4b1d8388d7218a8de33e25cd546fd965fcb07dc7
2016-04-04 19:43:48 +01:00
Roozbeh Pournader
5dde087811 Add many more emoji tests
This creates an exact map of the emoji font and adds the following
tests:
* Test that all 'emoji style' variation sequences exist in the color
  emoji font.
* Test that the emoji font contains the exact same character set that
  we expect.
* Test that all unsupported flags map to the same flag tofu glyph.
* Test that the reverse of ZWJ sequences exist in the font and map to
  the same glyph.
* Test that legacy PUA Android emoji are supported.
* Test that all emoji sequences that should map to the same glyph do
  so, but no other sequences map to the same glyph.

Bug: 26187231
Change-Id: I64ef17862df2d91879bf7904055c77c24abb7d88
2016-04-04 11:37:49 -07:00