96856 Commits

Author SHA1 Message Date
Deepanshu Gupta
4d887ec388 am bcd50a7c: am 5712b5fc: Optimize layout rendering in layoutlib [DO NOT MERGE]
* commit 'bcd50a7cf37bc87196a112a48294595dc47dd004':
  Optimize layout rendering in layoutlib [DO NOT MERGE]
2014-05-02 19:27:03 +00:00
Deepanshu Gupta
edd67cb194 am 7c02c6e2: am 02cde9ce: Add methods for Time_Delegate [DO NOT MERGE]
* commit '7c02c6e27f0154cc63c2ff0461d7e49c151c1328':
  Add methods for Time_Delegate [DO NOT MERGE]
2014-05-02 19:27:00 +00:00
Deepanshu Gupta
84e7a6b823 am 443372dd: am 9d7b5165: Add libphonenumber to layoutlib.jar. [DO NOT MERGE]
* commit '443372ddf378b00621a284a9614b869fd9484ab4':
  Add libphonenumber to layoutlib.jar. [DO NOT MERGE]
2014-05-02 19:26:57 +00:00
Deepanshu Gupta
43034b541c am 62591cff: am 689c0dfe: Fix NPE in layoutlib. [DO NOT MERGE]
* commit '62591cffc758b2c77028e4b80d61086c135ef54b':
  Fix NPE in layoutlib. [DO NOT MERGE]
2014-05-02 19:26:54 +00:00
Deepanshu Gupta
ce205d0a3b am 600539c7: am 083d1562: Fix text size in Fake Action Bar. [DO NOT MERGE]
* commit '600539c7fff799f3c55c1d8f97ccfeec61f80a55':
  Fix text size in Fake Action Bar. [DO NOT MERGE]
2014-05-02 19:26:51 +00:00
Deepanshu Gupta
1a434aa8fc am 697c511d: am 80c668f2: Remove references to non-std Java classes. [DO NOT MERGE]
* commit '697c511d948cdc23682c82155b23eee56f91743f':
  Remove references to non-std Java classes. [DO NOT MERGE]
2014-05-02 19:26:49 +00:00
Deepanshu Gupta
a2b530fb7a am e39de9ae: am 6335590a: Fix DatePicker and Calendar widget in layoutlib. [DO NOT MERGE]
* commit 'e39de9ae58ea80f27cd58853926b5b153c33ce0d':
  Fix DatePicker and Calendar widget in layoutlib. [DO NOT MERGE]
2014-05-02 19:26:46 +00:00
Deepanshu Gupta
9d2099052d am 6f469e54: am 11ee746d: Layoutlib: Update the wifi icon in the status bar. [DO NOT MERGE]
* commit '6f469e5438dbb2213d26c41a5d410df3bed4d4ca':
  Layoutlib: Update the wifi icon in the status bar. [DO NOT MERGE]
2014-05-02 19:26:43 +00:00
Deepanshu Gupta
961e328176 am 6df2860b: Add missing files to fix libphonenumber for layoutlib. [DO NOT MERGE]
* commit '6df2860b2316fb42e8686c3154b2156619c7777f':
  Add missing files to fix libphonenumber for layoutlib. [DO NOT MERGE]
2014-05-02 19:24:20 +00:00
Deepanshu Gupta
9e2dadaee0 am bcbeaf83: Set default text style in layoutlib as NORMAL [DO NOT MERGE]
* commit 'bcbeaf83ca75e4a819377938fdf3ec1e07fa30a7':
  Set default text style in layoutlib as NORMAL [DO NOT MERGE]
2014-05-02 19:24:17 +00:00
Deepanshu Gupta
cf3f108ee3 am 5be65fda: Fix sans-serif-thin and sans-serif-light fonts in layoutlib. [DO NOT MERGE]
* commit '5be65fda15c6f66067da3cc623811427e9d541e4':
  Fix sans-serif-thin and sans-serif-light fonts in layoutlib. [DO NOT MERGE]
2014-05-02 19:24:15 +00:00
Deepanshu Gupta
d642de5827 am ec4623d0: Improve text rendering and measurement. [DO NOT MERGE]
* commit 'ec4623d0d47734c21ee915ea6ec58e60f668bd2f':
  Improve text rendering and measurement. [DO NOT MERGE]
2014-05-02 19:24:12 +00:00
Deepanshu Gupta
62a4a1f9e0 am 2a82a48f: Fix the measurement of text bounds. [DO NOT MERGE]
* commit '2a82a48fefb7877f8162133db81788c12eae7582':
  Fix the measurement of text bounds. [DO NOT MERGE]
2014-05-02 19:24:09 +00:00
Deepanshu Gupta
1830a58f54 am 5bb3414d: Fix a bug in Nine Patch library. [DO NOT MERGE]
* commit '5bb3414d148f1309dade9333fe9b89c8d1c2f308':
  Fix a bug in Nine Patch library. [DO NOT MERGE]
2014-05-02 19:24:06 +00:00
Deepanshu Gupta
bcd50a7cf3 am 5712b5fc: Optimize layout rendering in layoutlib [DO NOT MERGE]
* commit '5712b5fc3fec0dc376e84f660f2fe0d1102c0cbb':
  Optimize layout rendering in layoutlib [DO NOT MERGE]
2014-05-02 19:24:03 +00:00
Deepanshu Gupta
7c02c6e27f am 02cde9ce: Add methods for Time_Delegate [DO NOT MERGE]
* commit '02cde9ceeb4c052ee273a5d809816dfd355ebb56':
  Add methods for Time_Delegate [DO NOT MERGE]
2014-05-02 19:23:58 +00:00
Deepanshu Gupta
443372ddf3 am 9d7b5165: Add libphonenumber to layoutlib.jar. [DO NOT MERGE]
* commit '9d7b5165576e3cf491fe47cf335feb6d204140b3':
  Add libphonenumber to layoutlib.jar. [DO NOT MERGE]
2014-05-02 19:23:56 +00:00
Deepanshu Gupta
62591cffc7 am 689c0dfe: Fix NPE in layoutlib. [DO NOT MERGE]
* commit '689c0dfe72a57c0555560012cbc6806375e7d4b7':
  Fix NPE in layoutlib. [DO NOT MERGE]
2014-05-02 19:23:53 +00:00
Deepanshu Gupta
600539c7ff am 083d1562: Fix text size in Fake Action Bar. [DO NOT MERGE]
* commit '083d1562e00631630b5594462ce4a867a3508d8d':
  Fix text size in Fake Action Bar. [DO NOT MERGE]
2014-05-02 19:23:50 +00:00
Deepanshu Gupta
697c511d94 am 80c668f2: Remove references to non-std Java classes. [DO NOT MERGE]
* commit '80c668f2a076e91d887dbf77776cd503ff88b0b4':
  Remove references to non-std Java classes. [DO NOT MERGE]
2014-05-02 19:23:47 +00:00
Deepanshu Gupta
e39de9ae58 am 6335590a: Fix DatePicker and Calendar widget in layoutlib. [DO NOT MERGE]
* commit '6335590aa8997944cc7fb358a315dbb9b789f87f':
  Fix DatePicker and Calendar widget in layoutlib. [DO NOT MERGE]
2014-05-02 19:23:43 +00:00
Deepanshu Gupta
6f469e5438 am 11ee746d: Layoutlib: Update the wifi icon in the status bar. [DO NOT MERGE]
* commit '11ee746dc5e77f4f33aac45ac9e344444223012d':
  Layoutlib: Update the wifi icon in the status bar. [DO NOT MERGE]
2014-05-02 19:23:40 +00:00
Deepanshu Gupta
2bb672a208 am 582bb0dc: am fbb1561a: am 44bcd64e: Fix CalendarView to show the right labels. [DO NOT MERGE]
* commit '582bb0dc7498997f441c5209b1558a4640b5a107':
  Fix CalendarView to show the right labels. [DO NOT MERGE]
2014-05-02 19:19:55 +00:00
Deepanshu Gupta
27f0cf0b13 am 10fd7f6b: am ca2c6307: am 87be67f9: Fix layoutlib [DO NOT MERGE]
* commit '10fd7f6b4192fdbd847106fb0d9ec87095092ee3':
  Fix layoutlib [DO NOT MERGE]
2014-05-02 19:19:52 +00:00
Deepanshu Gupta
5c7a844ca1 am 23726255: am 77d1eca7: am 7b5d54f0: Fix ClassCastException when rendering ListView [DO NOT MERGE]
* commit '237262558b818ce52ec53281f2270be3e4f1ee28':
  Fix ClassCastException when rendering ListView [DO NOT MERGE]
2014-05-02 19:19:48 +00:00
Deepanshu Gupta
d60d0c1ce7 am f5512973: am fe675441: am ce22440d: Fix text rendering [DO NOT MERGE]
* commit 'f55129731005f6939d40d7c8a0c0f8c93b472f98':
  Fix text rendering [DO NOT MERGE]
2014-05-02 19:19:46 +00:00
Deepanshu Gupta
44cc867f7d am 9a1f13a4: am afc623e3: am bd9e181b: Fix layout rendering for RTL locales [DO NOT MERGE]
* commit '9a1f13a47bfe29e344efc05f0ecabbfcb5671e06':
  Fix layout rendering for RTL locales [DO NOT MERGE]
2014-05-02 19:19:42 +00:00
Deepanshu Gupta
1197605876 am b80247d3: am 811b331a: am d4875e19: Add orientation to configuration for layoutlib. [DO NOT MERGE]
* commit 'b80247d351b88f69192260a661dbf3d4d71e9527':
  Add orientation to configuration for layoutlib. [DO NOT MERGE]
2014-05-02 19:19:39 +00:00
Deepanshu Gupta
e821d0cc54 am b27d8814: am 21cf9843: am d1084cc0: Add missing native methods. [DO NOT MERGE]
* commit 'b27d881467869539a5c8ec2510e8415912abb617':
  Add missing native methods. [DO NOT MERGE]
2014-05-02 19:19:36 +00:00
Deepanshu Gupta
582bb0dc74 am fbb1561a: am 44bcd64e: Fix CalendarView to show the right labels. [DO NOT MERGE]
* commit 'fbb1561a483b455aa840c69c391c3bbd1a529981':
  Fix CalendarView to show the right labels. [DO NOT MERGE]
2014-05-02 19:15:59 +00:00
Deepanshu Gupta
10fd7f6b41 am ca2c6307: am 87be67f9: Fix layoutlib [DO NOT MERGE]
* commit 'ca2c6307263b3857ba688c80277fef402215db18':
  Fix layoutlib [DO NOT MERGE]
2014-05-02 19:15:56 +00:00
Deepanshu Gupta
237262558b am 77d1eca7: am 7b5d54f0: Fix ClassCastException when rendering ListView [DO NOT MERGE]
* commit '77d1eca7d2acf68f246970e59a50e8a6e1c03e20':
  Fix ClassCastException when rendering ListView [DO NOT MERGE]
2014-05-02 19:15:52 +00:00
Deepanshu Gupta
f551297310 am fe675441: am ce22440d: Fix text rendering [DO NOT MERGE]
* commit 'fe67544161d44d54c8462c44c78fe290f2195f2e':
  Fix text rendering [DO NOT MERGE]
2014-05-02 19:15:50 +00:00
Deepanshu Gupta
9a1f13a47b am afc623e3: am bd9e181b: Fix layout rendering for RTL locales [DO NOT MERGE]
* commit 'afc623e34e5a2bd375da00a52c3c393d5049a1d1':
  Fix layout rendering for RTL locales [DO NOT MERGE]
2014-05-02 19:15:46 +00:00
Deepanshu Gupta
b80247d351 am 811b331a: am d4875e19: Add orientation to configuration for layoutlib. [DO NOT MERGE]
* commit '811b331ae2334161c6082f666d7b3bab788f69a3':
  Add orientation to configuration for layoutlib. [DO NOT MERGE]
2014-05-02 19:15:43 +00:00
Deepanshu Gupta
b27d881467 am 21cf9843: am d1084cc0: Add missing native methods. [DO NOT MERGE]
* commit '21cf98438b77ab58d6c781e09aecb8ad0f682042':
  Add missing native methods. [DO NOT MERGE]
2014-05-02 19:15:40 +00:00
Deepanshu Gupta
fbb1561a48 am 44bcd64e: Fix CalendarView to show the right labels. [DO NOT MERGE]
* commit '44bcd64e5b9fd211dd56b0598693a0559f65dc1a':
  Fix CalendarView to show the right labels. [DO NOT MERGE]
2014-05-02 19:12:34 +00:00
Deepanshu Gupta
ca2c630726 am 87be67f9: Fix layoutlib [DO NOT MERGE]
* commit '87be67f91719234cbd381ff0242b5efc8b6aa257':
  Fix layoutlib [DO NOT MERGE]
2014-05-02 19:12:30 +00:00
Deepanshu Gupta
77d1eca7d2 am 7b5d54f0: Fix ClassCastException when rendering ListView [DO NOT MERGE]
* commit '7b5d54f05be61a7ab40021644a91c466e2897627':
  Fix ClassCastException when rendering ListView [DO NOT MERGE]
2014-05-02 19:12:27 +00:00
Deepanshu Gupta
fe67544161 am ce22440d: Fix text rendering [DO NOT MERGE]
* commit 'ce22440d4ca94009a4fb22c3d4f924cfbf422a66':
  Fix text rendering [DO NOT MERGE]
2014-05-02 19:12:23 +00:00
Deepanshu Gupta
afc623e34e am bd9e181b: Fix layout rendering for RTL locales [DO NOT MERGE]
* commit 'bd9e181b291af34f9d70db42715136f3c16ddbde':
  Fix layout rendering for RTL locales [DO NOT MERGE]
2014-05-02 19:12:18 +00:00
Deepanshu Gupta
811b331ae2 am d4875e19: Add orientation to configuration for layoutlib. [DO NOT MERGE]
* commit 'd4875e19f5b7c69226783b0a6590831466159f84':
  Add orientation to configuration for layoutlib. [DO NOT MERGE]
2014-05-02 19:12:16 +00:00
Deepanshu Gupta
21cf98438b am d1084cc0: Add missing native methods. [DO NOT MERGE]
* commit 'd1084cc02549dc9ee67c879f78ae929095ec19b6':
  Add missing native methods. [DO NOT MERGE]
2014-05-02 19:12:12 +00:00
Deepanshu Gupta
6df2860b23 Add missing files to fix libphonenumber for layoutlib. [DO NOT MERGE]
Change-Id: I8102da6c1c4625e887293a8823770d199521c53f
(cherry-picked from 8a16f8e29a67c383e065ba9c47d5d1e80d7d2db9)
2014-05-02 12:03:46 -07:00
Deepanshu Gupta
bcbeaf83ca Set default text style in layoutlib as NORMAL [DO NOT MERGE]
If a style doesn't specify text style (normal/bold/italic/bold-italic)
then default to normal instead of throwing an error.

Bug: http://b.android.com/61358
Change-Id: I0138c73807a5ff6e4d938a99ece3044333110aa1
(cherry-picked from c63e87d53deb24c4286036313db11719173419b3)
2014-05-02 11:46:42 -07:00
Deepanshu Gupta
5be65fda15 Fix sans-serif-thin and sans-serif-light fonts in layoutlib. [DO NOT MERGE]
For these font families, text was always rendered as italic. This
changeset fixes the issue.

Bug: http://b.android.com/57221
Change-Id: Ic8a299bd1e555f5bb914cd3d2fe72917ec7f471a
(cherry-picked from 5fb41528a6192c41f7e2bb30161cc5af6061d5b8)
2014-05-02 11:46:42 -07:00
Deepanshu Gupta
ec4623d0d4 Improve text rendering and measurement. [DO NOT MERGE]
1. Fix a bug where baseline of the run was modified while rendering
resulting in crooked text in some cases.

2. Use GlyphVector.getLogicalBounds() for text measurement which is more
accurate than getVisualBounds().

3. This change also optimizes text rendering by not computing the advances
for individual glyphs when not needed.

Change-Id: I66792c4d8f50eaf29afa70bccca1e6c812a3fa28
(cherry-picked from 88301948c92fe1261cfa19383d4aaa5d5d0195ac)
2014-05-02 11:46:42 -07:00
Deepanshu Gupta
2a82a48fef Fix the measurement of text bounds. [DO NOT MERGE]
Bug: 12366230
Change-Id: I203b678363dc7b688c744503ee10216baca658a9
(cherry-picked from eb1fae940df0117deb0dc891f9f9bfeca35b1ac1)
2014-05-02 11:46:41 -07:00
Deepanshu Gupta
5bb3414d14 Fix a bug in Nine Patch library. [DO NOT MERGE]
The nine patches were not drawn correctly if they were not positioned at
the top left corner of the canvas.

Bug: http://b.android.com/29959
Change-Id: Icfed522ea07322a3ee9f3955067d3da26c4b0b5b
(cherry-picked from ee1187a94feb61adbfade2505b2f92418a1b1038)
2014-05-02 11:46:41 -07:00
Deepanshu Gupta
5712b5fc3f Optimize layout rendering in layoutlib [DO NOT MERGE]
The height of a layout should be zero if it is assigned a layout_weight.
This way, the layout is measured only once and prevents spurious errors.

Bug: https://code.google.com/p/android/issues/detail?id=58398
Change-Id: If49a7480e5eb82cb86780e00f2f5b65ee053fc2a
(cherry-picked from 9e5e993c7969ad60ff70cfdcf707247f38a705a1)
2014-05-02 11:46:41 -07:00