4002 Commits

Author SHA1 Message Date
Adam Lesinski
570b6bde76 Merge "AAPT2: Add Manifest fixing/validation" 2015-11-03 21:02:36 +00:00
Adam Lesinski
588396044e Merge "AAPT2: Add support for comments in R.java" 2015-11-03 21:01:41 +00:00
Brian Carlstrom
faa09f531f Fix layoutlib-tests build by adding dummy implementation of IWindowSession.repositionChild to BridgeWindowSession
Change-Id: I9c3a609c76716b35595b82a33f32883d4f46c517
2015-11-02 22:41:45 -08:00
Adam Lesinski
2ae4a877d1 AAPT2: Add Manifest fixing/validation
Change-Id: I7f6d8b74d1c590adc356b4da55cb6cb777cdf1da
2015-11-02 16:56:34 -08:00
Winson
6b05f8030e Fixing build breakage.
Change-Id: Idf8759c7bc88af534103731eef535fc310bed7e5
2015-11-03 00:43:15 +00:00
Adam Lesinski
3b4cd94034 AAPT2: Add support for comments in R.java
Change-Id: Iaa5f3b75bf7de9dbf458fa5c452f7312989f4c4f
2015-11-02 11:53:47 -08:00
Adam Lesinski
104e028c3a Merge "AAPT2: Support generating Manifest.java" 2015-11-02 19:09:42 +00:00
Tor Norbye
562bb9f3a7 Merge "Don't set modification times in aapt zip entries" 2015-11-02 15:02:28 +00:00
Tor Norbye
b3559643b9 Don't set modification times in aapt zip entries
Use a modification timestamp of 0 for all files
inside the zip archive to make the build repeatable.

Change-Id: Ie6e57329469b99c6f93cb0a6083e0c402be99815
2015-10-30 20:00:13 -07:00
Filip Gruszczynski
f254e95d42 Fix build.
Change-Id: If103e0fbef656d565ce912c3fd13aa6497ab9d4a
2015-10-30 16:14:57 -07:00
Adam Lesinski
ca5638fd85 AAPT2: Support generating Manifest.java
This includes comments from AndroidManifest.xml.

Change-Id: I412d9ecb12bad20a49a683d6b3bea4a0be1235ae
2015-10-30 13:51:11 -07:00
Adam Lesinski
e78fd617ec AAPT2: Move comments and source into Value
Values are closely related to where they were defined, so
this information should live inside the Value.

This also enables comments to be attached to nested Values.

Change-Id: Ic7481b5a5f26d0ef248d638e2e29252f88154581
2015-10-22 16:35:47 -07:00
Adam Lesinski
9e10ac7015 AAPT2: Process <java-symbols> and private symbol package
Need to introduce the idea of multiple levels of visibility to support <java-symbol>.

Public, Private, Undefined.

Public means it is accessible from outside and requires an ID assigned.
Private means that we explicitly want this to be a symbol (show up in R.java), but not visible
to other packages. No ID required.

Undefined is any normal resource. When --private-symbols is specified in the link phase,
these resources will not show up in R.java.

Change-Id: Icba89221e08e685dee7683786aa7112baf28c856
2015-10-22 12:52:49 -07:00
Adam Lesinski
91bbbcf9a9 Merge "Filter products during compile phase" 2015-10-20 19:49:53 +00:00
Deepanshu Gupta
a79795a892 Fix build
Change-Id: I0e85f40955bfbf25e917f27c210c2f6f24d885a0
2015-10-20 11:59:27 -07:00
Adam Lesinski
9ba47d8130 Filter products during compile phase
Unfortunately there is no good way to deal with products in the link phase.
Products are like preprocessor defines in that they are processed early
and change the composition of the compiled unit.

Change-Id: I6d5e15ef60d29df8e83e059ba857c09333993779
2015-10-16 15:50:58 -07:00
Adam Lesinski
1ab598f46c AAPT2: Separate out the various steps
An early refactor. Some ideas became clearer as
development continued. Now the various phases are much
clearer and more easily reusable.

Also added a ton of tests!

Change-Id: Ic8f0a70c8222370352e63533b329c40457c0903e
2015-10-16 12:13:08 -07:00
Dianne Hackborn
c08b0e0dd3 Merge "Revert "Fix build."" 2015-10-13 19:34:44 +00:00
Dianne Hackborn
0b128232d2 Revert "Fix build."
This reverts commit 7a9687f1d7693907189fc315d640c1ad770ab88d.

Change-Id: I5b2f68a4e2b4c399d87c18adc223500b0e1bfcc7
2015-10-13 19:34:28 +00:00
Dianne Hackborn
98f16c6d1a Merge "Fix build." 2015-10-13 18:55:07 +00:00
Dianne Hackborn
7a9687f1d7 Fix build.
Change-Id: Iade965d86ce5f53cf476468423db47c8e6a602b2
2015-10-13 11:52:23 -07:00
Ian Pedowitz
e8a04cd5a6 Fix Build
Mimicking what was done for bdbd2d9c1878432eca6933e06c980663e2579d85

Change-Id: I5aef245b7a426edaa90e7e237acd4608b431c073
2015-10-12 20:21:04 -07:00
Deepanshu Gupta
b072ff9e41 am 467f6a4f: am 2aa403fe: Merge "LayoutLib: Fix android:dependency for preferences." into mnc-ub-dev
* commit '467f6a4f0d788fa0bad86bb6545a8254912b99b0':
  LayoutLib: Fix android:dependency for preferences.
2015-10-09 22:09:56 +00:00
Deepanshu Gupta
467f6a4f0d am 2aa403fe: Merge "LayoutLib: Fix android:dependency for preferences." into mnc-ub-dev
* commit '2aa403fe0c86291c6fd65317e93a72549e6e10de':
  LayoutLib: Fix android:dependency for preferences.
2015-10-09 22:04:16 +00:00
Deepanshu Gupta
2f01cf2ea6 LayoutLib: Fix android:dependency for preferences.
Bug: http://b.android.com/189314
Change-Id: I229632d11a2529e865f3f2e8eca3a78b47ad462c
2015-10-09 14:54:19 -07:00
Deepanshu Gupta
51747638ed am d7b7e93a: am 9969f858: LayoutLib: Fix ring rendering.
* commit 'd7b7e93a47e99fb54c91fb0d5b37971c8638074d':
  LayoutLib: Fix ring rendering.
2015-10-07 21:29:30 +00:00
Deepanshu Gupta
d7b7e93a47 am 9969f858: LayoutLib: Fix ring rendering.
* commit '9969f858c34ba7e35a977c819f2d1e24de586990':
  LayoutLib: Fix ring rendering.
2015-10-07 21:23:43 +00:00
Deepanshu Gupta
9969f858c3 LayoutLib: Fix ring rendering.
Bug: http://b.android.com/65503
Change-Id: I6ed901703cffee345f3083ea3ddeb52a28f4ac64
2015-10-07 12:46:15 -07:00
Deepanshu Gupta
1430fdc277 am 24ca6320: am 8db8bc63: Merge "Skip drawing empty shapes to keep Apple JRE happy." into mnc-ub-dev
* commit '24ca6320b88afabd854fae176988be02bb6d92aa':
  Skip drawing empty shapes to keep Apple JRE happy.
2015-10-07 17:20:55 +00:00
Deepanshu Gupta
24ca6320b8 am 8db8bc63: Merge "Skip drawing empty shapes to keep Apple JRE happy." into mnc-ub-dev
* commit '8db8bc63624bbd1d803e02571fa865f1f7fa584c':
  Skip drawing empty shapes to keep Apple JRE happy.
2015-10-07 17:17:02 +00:00
Deepanshu Gupta
8db8bc6362 Merge "Skip drawing empty shapes to keep Apple JRE happy." into mnc-ub-dev 2015-10-07 17:08:30 +00:00
Deepanshu Gupta
4064e118e2 Skip drawing empty shapes to keep Apple JRE happy.
Bug: http://b.android.com/178278
Change-Id: I693912678ed79e9c6690560b618a605da5a807c6
2015-10-07 09:28:31 -07:00
Diego Perez
f32a1089c6 am 4a36d982: am 081cebf5: Implement Path.approximate and add PathMeasure support
* commit '4a36d982592c3a3238009be785574dd65ff33cc6':
  Implement Path.approximate and add PathMeasure support
2015-10-07 16:15:55 +00:00
Diego Perez
4a36d98259 am 081cebf5: Implement Path.approximate and add PathMeasure support
* commit '081cebf52b19e848c07fb781b35fa1f96695c311':
  Implement Path.approximate and add PathMeasure support
2015-10-07 16:09:49 +00:00
Diego Perez
081cebf52b Implement Path.approximate and add PathMeasure support
PathMeasure is needed to use the trimPath* properties in drawables.
These properties are used in the vector drawable for indeterminate
progress bars in Material so this is needed to be able to render them
correctly in the preview.
PathMeasure makes use of Path.approximate to calculate which segments to
paint.

Change-Id: Ic513f0a30a6aac0317f7c13cd75e9154c37405c8
2015-10-07 17:04:26 +01:00
Deepanshu Gupta
dfc39aee64 am 034d10bf: am e5d3baf2: LayoutLib: Fix bitmap scaling.
* commit '034d10bf6c6d817d316597620c74dd1e8bd2931d':
  LayoutLib: Fix bitmap scaling.
2015-10-05 23:26:07 +00:00
Deepanshu Gupta
034d10bf6c am e5d3baf2: LayoutLib: Fix bitmap scaling.
* commit 'e5d3baf22f046d0a579128fc258f6b92e700ca02':
  LayoutLib: Fix bitmap scaling.
2015-10-05 23:22:18 +00:00
Deepanshu Gupta
e5d3baf22f LayoutLib: Fix bitmap scaling.
Bug: http://b.android.com/187939
Change-Id: I20bf61746e8af3bb87ba9cfcc9bf58854ac7c5be
2015-10-05 16:08:54 -07:00
Chet Haase
9c45041105 Enable activity rendering during window animations
A change was made back in ICS that prevents the view hierarchy from rendering
during window animations. Specifically, it allows the hierarchy to render once (to draw
the results of its first layout), but further drawing is suppressed at the
ViewRoot/performTraversals level until the window animation is complete.

This change was introduced to avoid jank problems that were resulting from
thrashing the GPU by issuing drawing commands from multiple processes simultaneously,
and limited the number of rendering processes to mainly the system server (and
possibly the System UI), which allowed window animations to be much smoother.

This fix contributed to another source of jank, however, in which applications
which attempt to animate when they first appear will not render any frames of
animations until the window animation is done, resulting is a snapping to the resulting
state once the window animations are complete.

Meanwhile, hardware has gotten faster and GPUs have gotten better, and it is time to
revisit this logic. This change disables the earlier fix and allows view hierarchies
to draw normally, regardless of whether window animations are taking place.

Issue #22232939 Remove flag that prevents drawing during window animations

Change-Id: I4c960180771ff09a7088abd77b437586e835a991
2015-10-05 14:58:17 -07:00
Deepanshu Gupta
0cdfc4d273 am 21af84d3: am 7a9f771f: Merge "Don\'t break error string (easier grepping)" into mnc-ub-dev
* commit '21af84d3e4bf82e9dd8b5087b60630f29668bda3':
  Don't break error string (easier grepping)
2015-09-30 22:27:31 +00:00
Deepanshu Gupta
21af84d3e4 am 7a9f771f: Merge "Don\'t break error string (easier grepping)" into mnc-ub-dev
* commit '7a9f771fe010c697c6a9fb143f0a26778d440c8c':
  Don't break error string (easier grepping)
2015-09-30 22:22:09 +00:00
Deepanshu Gupta
7a9f771fe0 Merge "Don't break error string (easier grepping)" into mnc-ub-dev 2015-09-30 22:16:22 +00:00
Deepanshu Gupta
1bd276f6f7 Don't break error string (easier grepping)
Change-Id: If52097ba90481644707dd0323ec63ca3ddf0986b
2015-09-30 12:49:42 -07:00
Diego Perez
a1ac052ac2 am 6aeedbc7: am b9c4cccf: Merge "Reduce the amount of allocations on Paint_Delegate" into mnc-ub-dev
* commit '6aeedbc7613d3be4a785ed43e2fb35c62fb0a006':
  Reduce the amount of allocations on Paint_Delegate
2015-09-30 09:41:38 +00:00
Diego Perez
6aeedbc761 am b9c4cccf: Merge "Reduce the amount of allocations on Paint_Delegate" into mnc-ub-dev
* commit 'b9c4cccf672d725e75d393c492c917ba726c365c':
  Reduce the amount of allocations on Paint_Delegate
2015-09-30 09:34:45 +00:00
Diego Perez
b9c4cccf67 Merge "Reduce the amount of allocations on Paint_Delegate" into mnc-ub-dev 2015-09-30 09:29:40 +00:00
Diego Perez
6dac0d4b7c Reduce the amount of allocations on Paint_Delegate
When the text properties of the Paint object are updated, or when .set()
is called, updateFontObject will be called. This method is currently at the
top of the methods for number of allocations.
This CL reduces the number of calls to updateFontObject by a 90%,
reducing the number of Font allocations.

Change-Id: I3e232f9e6e230da8ecdd19921faadf2d3f4ff763
2015-09-30 09:10:37 +01:00
Deepanshu Gupta
cd4b26c8a9 am 3dde4493: am 4e27221d: Merge "Support databinding in listitem layouts." into mnc-ub-dev
* commit '3dde44935df567f840de2600a3e408f9ba7c7b1f':
  Support databinding in listitem layouts.
2015-09-30 00:56:57 +00:00
Deepanshu Gupta
3dde44935d am 4e27221d: Merge "Support databinding in listitem layouts." into mnc-ub-dev
* commit '4e27221d49151ba91af59029659e666fa756b645':
  Support databinding in listitem layouts.
2015-09-30 00:51:02 +00:00
Deepanshu Gupta
4e27221d49 Merge "Support databinding in listitem layouts." into mnc-ub-dev 2015-09-30 00:45:52 +00:00