3913 Commits

Author SHA1 Message Date
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
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
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
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
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
Deepanshu Gupta
e91096c03d Support databinding in listitem layouts.
Add a wrapper around the PullParser to support stripping out databinding
parts.

Bug: http://b.android.com/187428
Change-Id: I88080d8f4108cb5ae27a137ad20c5dd7d516f3ea
2015-09-29 17:07:53 -07:00
Deepanshu Gupta
e5346dca47 am 51a05d74: Merge "Fix TypedArray.getTextArray()" into mnc-ub-dev
* commit '51a05d74a81aeb334ef095fc6f1aa98e5163763f':
  Fix TypedArray.getTextArray()
2015-09-23 23:17:22 +00:00
Deepanshu Gupta
6649ca3711 Fix TypedArray.getTextArray()
Change-Id: Ic55b52840892fbf2a4258ba97ed31ca0283da8ed
2015-09-23 16:03:02 -07:00
Diego Perez
361523281c am 0e766de7: Avoid calling scrollBy(0,0) on render
* commit '0e766de7c52d7e375e04676c93a872cb2d6eea63':
  Avoid calling scrollBy(0,0) on render
2015-09-22 16:56:35 +00:00
Diego Perez
0e766de7c5 Avoid calling scrollBy(0,0) on render
Usually scrollBy(0, 0) won't have any effect but when called on the
NumberPicker but, in some cases, it seems to cause an endless loop.
When called from layoutlib, this will hold the read lock causing all
operations trying to acquire the write lock to block forever.

Bug: http://b.android.com/182506
Change-Id: Ib25427d3f32d804d1c481d979795eee71fbdbc6d
2015-09-22 16:44:37 +00:00
Christopher Wiley
84ba072538 am 3a86b41f: Add a textual hint as to where aidl has gone
* commit '3a86b41f8414193e05c27284d434b07992e164ce':
  Add a textual hint as to where aidl has gone
2015-09-14 16:06:52 +00:00
Christopher Wiley
3a86b41f84 Add a textual hint as to where aidl has gone
Bug: 23691099
Change-Id: I3fb917b4c0e66a83c6299add02869a7088010adc
2015-09-14 08:54:23 -07:00
Christopher Wiley
026cbbfbda am 27a0be36: resolved conflicts for ddf53180 to stage-aosp-master
* commit '27a0be36eeee9d1d03076727977dfb1e725fcd77':
  Remove the aidl tool
2015-09-14 15:47:38 +00:00
Christopher Wiley
27a0be36ee resolved conflicts for ddf53180 to stage-aosp-master
Change-Id: I265ab876ef29dc731e6abb6f964c10f2e71324be
2015-09-14 07:34:50 -07:00
Christopher Wiley
73ea1230fc Remove the aidl tool
This has been moved into its own repository at

//system/tools/aidl

Test: Built aosp_arm-eng from scratch.
Bug: 23691099

Change-Id: Ic45d55682b9dcafe894efe0a6317792f9c1236c6
2015-09-11 14:41:36 -07:00
Brian Carlstrom
02d750efde am 2519f9c6: am de2ad457: Merge "Revert "Grab macros from libbase instead of duplicating""
* commit '2519f9c6b822ed0201a3a6f1bb73d486609cd677':
  Revert "Grab macros from libbase instead of duplicating"
2015-09-11 05:22:29 +00:00
Brian Carlstrom
2519f9c6b8 am de2ad457: Merge "Revert "Grab macros from libbase instead of duplicating""
* commit 'de2ad45784499388d09f2c2c3bcf2fa1966cf018':
  Revert "Grab macros from libbase instead of duplicating"
2015-09-11 05:15:37 +00:00
Brian Carlstrom
de2ad45784 Merge "Revert "Grab macros from libbase instead of duplicating"" 2015-09-11 05:09:17 +00:00
Casey Dahlin
3f7c4bdbc2 am 449274a7: am 8b25009d: Merge "Revert change to win32 isatty stub"
* commit '449274a774f5c51807f16c13e772550dbd3c5d53':
  Revert change to win32 isatty stub
2015-09-11 02:51:08 +00:00
Casey Dahlin
6b747f9d55 am 3230b2b2: am ec4cbf4f: Merge "Grab macros from libbase instead of duplicating"
* commit '3230b2b2b7225fc44515a1650ad79022b959b08e':
  Grab macros from libbase instead of duplicating
2015-09-11 02:51:01 +00:00
Casey Dahlin
68a6dcc0c1 am d880e1cb: am 7e8586fc: Merge "Convert to C++ Bison output"
* commit 'd880e1cb0c4fa61328297cae659a7edd94e5ca83':
  Convert to C++ Bison output
2015-09-11 02:50:55 +00:00
Casey Dahlin
f3c2ed13d0 Revert "Grab macros from libbase instead of duplicating"
This reverts commit 2535cae005512494469fc5cea1fe630288ecb083.

Change-Id: I373844b6a0f429e88d6bcc1cdd5ac62325da55b3
2015-09-11 02:47:54 +00:00
Casey Dahlin
449274a774 am 8b25009d: Merge "Revert change to win32 isatty stub"
* commit '8b25009d92626e7f1bb3b8fdf2774df20ec7a769':
  Revert change to win32 isatty stub
2015-09-11 02:41:51 +00:00
Casey Dahlin
3230b2b2b7 am ec4cbf4f: Merge "Grab macros from libbase instead of duplicating"
* commit 'ec4cbf4f93ddb14653c27bfd7a169e010b87286c':
  Grab macros from libbase instead of duplicating
2015-09-11 02:41:43 +00:00
Casey Dahlin
d880e1cb0c am 7e8586fc: Merge "Convert to C++ Bison output"
* commit '7e8586fc1e40e7d860b05757882c3617df968fb8':
  Convert to C++ Bison output
2015-09-11 02:41:35 +00:00
Casey Dahlin
3e50f04dfa Revert change to win32 isatty stub
This is attempting to fix build breakage caused by redefining the isatty stub
for win32.

Change-Id: I5f854934cb9d2b2981f6349045e85d9ad737aa77
Signed-off-by: Casey Dahlin <sadmac@google.com>
2015-09-10 19:13:49 -07:00
Casey Dahlin
c48778ee31 am 6929b5fa: am c71fdabd: Merge "First pass on reentrant C++-ish parser"
* commit '6929b5fab007281d3c35deec905feb8fdc506a31':
  First pass on reentrant C++-ish parser
2015-09-11 01:55:49 +00:00
Casey Dahlin
6929b5fab0 am c71fdabd: Merge "First pass on reentrant C++-ish parser"
* commit 'c71fdabdd7dc46ef2914ee6fd3ba541689c91844':
  First pass on reentrant C++-ish parser
2015-09-11 01:47:28 +00:00
Casey Dahlin
2535cae005 Grab macros from libbase instead of duplicating
Change-Id: I1802f60a4dac45ddee8cd5715a73c77e4371d7e8
Signed-off-by: Casey Dahlin <sadmac@google.com>
2015-09-10 18:43:04 -07:00
Casey Dahlin
96786829c2 Convert to C++ Bison output
We have to step up to a GLR parser to do this without exceptions (for no
reason other than Bison happens to use exceptions for the LALR(1) template and
not for the GLR one), but this should let us smooth out integration going
forward.

Change-Id: Iff44662914b4a65dfa5612d07c3a1ede07e6e4a9
Signed-off-by: Casey Dahlin <sadmac@google.com>
2015-09-10 18:29:09 -07:00
Casey Dahlin
9941dcc7aa First pass on reentrant C++-ish parser
We're flipping Flex/Bison in to reentrant mode, cutting down on global
variables, and exposing a more C++-like interface earlier. This is the first
phase. There's still a couple of weird hacks to deal with the previous code's
reckless disregard for scope sanity, but the outline of things to come is
starting to appear, and this CL really doesn't need to get any bigger.

Change-Id: Ife2d70db026d7ab1319bdf6c586959315666d0bb
Signed-off-by: Casey Dahlin <sadmac@google.com>
2015-09-10 16:55:18 -07:00
Dan Willemsen
a0c61efab9 am 03c26b27: am 596fd38a: Merge "Whitelist windows module"
* commit '03c26b274aed35c0a580b309567264d00cb643f2':
  Whitelist windows module
2015-09-04 22:00:26 +00:00
Dan Willemsen
03c26b274a am 596fd38a: Merge "Whitelist windows module"
* commit '596fd38af207727d508a63fca39506c90ba29c44':
  Whitelist windows module
2015-09-04 21:48:35 +00:00
Dan Willemsen
8d6f9bf3c8 Whitelist windows module
Bug: 23566667
Change-Id: I030733ffd2b43a0ea74b0fd5f34a0d13ef8dcf7c
2015-09-04 14:22:17 -07:00
Deepanshu Gupta
b3382661eb am ee1eed7e: am 7209945f: am 0e150a8b: am 0c5fd7e3: am eb541727: am dd21212f: am eb26f5ce: LayoutLib: Fix typedArray caching.
* commit 'ee1eed7e711228008dc91a7da800be6527539e87':
  LayoutLib: Fix typedArray caching.
2015-09-03 04:24:04 +00:00
Christopher Wiley
0ba44aaa73 am 80a679c4: am b1db04f3: Merge "aidl: Add end to end test"
* commit '80a679c459d509e31f0f4e1b8accc327a451e0f5':
  aidl: Add end to end test
2015-09-03 00:39:29 +00:00
Christopher Wiley
c9c2446773 am a3b4fb68: am b14e7b84: Merge "aidl: Remove example test"
* commit 'a3b4fb6851dc91222863783b7ac6664d62df2c3d':
  aidl: Remove example test
2015-09-03 00:39:22 +00:00
Christopher Wiley
80a679c459 am b1db04f3: Merge "aidl: Add end to end test"
* commit 'b1db04f371963cb61bc5df21142a59f77515a62f':
  aidl: Add end to end test
2015-09-03 00:31:52 +00:00
Christopher Wiley
a3b4fb6851 am b14e7b84: Merge "aidl: Remove example test"
* commit 'b14e7b84290fa40221e3f315862dd1f79bf21871':
  aidl: Remove example test
2015-09-03 00:31:45 +00:00
Casey Dahlin
1be040fb7d am b15623cf: resolved conflicts for merge of 9483748a to stage-aosp-master
* commit 'b15623cf1c63d33fdd60c6046312c88cda961eb6':
  Delete outdated options tests
2015-09-02 23:20:40 +00:00
Casey Dahlin
b15623cf1c resolved conflicts for merge of 9483748a to stage-aosp-master
Change-Id: I82fd3a6ddeffc564915e43b23b81293adf1f9b5d
2015-09-02 14:33:41 -07:00
Casey Dahlin
1ef20d6221 am bad130ee: am 02bc5488: Merge "Remove RPC interface Type"
* commit 'bad130eed378891b82250d90aaf207088b4362e2':
  Remove RPC interface Type
2015-09-02 21:29:59 +00:00
Casey Dahlin
bad130eed3 am 02bc5488: Merge "Remove RPC interface Type"
* commit '02bc5488c19dcae7f21c43c8f3a20138e01a04d9':
  Remove RPC interface Type
2015-09-02 21:18:46 +00:00