120876 Commits

Author SHA1 Message Date
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
Deepanshu Gupta
02cde9ceeb Add methods for Time_Delegate [DO NOT MERGE]
Bug: http://b.android.com/65359
Change-Id: I7c2d09286d6bcd9899444aaa5a4a5a342e39d923
(cherry-picked from ddb7f3273c3c00e6520794dcaabdaad20fd98e26)
2014-05-02 11:46:40 -07:00
Deepanshu Gupta
9d7b516557 Add libphonenumber to layoutlib.jar. [DO NOT MERGE]
Issue: http://b.android.com/59497
Change-Id: Ief11e602703b6041db66241f1699cc1de72e65a5
(cherry picked from commit 317f304893c58c5e50255bd712448ca233ae5cec)
2014-05-02 11:46:40 -07:00
Deepanshu Gupta
689c0dfe72 Fix NPE in layoutlib. [DO NOT MERGE]
Change-Id: I36623304d83b344ea078044001577b8005a63c02
(cherry picked from commit 80c55109b6351049498df294234dc0a75e75ec44)
2014-05-02 11:46:40 -07:00
Deepanshu Gupta
083d1562e0 Fix text size in Fake Action Bar. [DO NOT MERGE]
The density multiplier was being applied twice to the title text in
the fake action bar.

Bug: 11436018
Change-Id: Id74c11037cb43d01f6cd79126623c84edfc37aaf
(cherry-picked from 0b7d80765c21dbd9294a0245f92a655fdd61514e)
2014-05-02 11:46:39 -07:00
Deepanshu Gupta
80c668f2a0 Remove references to non-std Java classes. [DO NOT MERGE]
Do not add the non-standard Java classes. Updates the references to all
non-standard classes to new classes in
com.android.tools.layoulib.create package. This also treats
java.lang.AutoCloseable which is part of Java 7 similarly so that we can
still run on Java 6.

This also adapts the cherrypick for this branch by updating references
to the non-standard Java classes present in this branch.

Change-Id: Iac5b272652e2780c9bb72d19f415d150948ca589
(cherry picked from 0b7d80765c21dbd9294a0245f92a655fdd61514e)
2014-05-02 11:46:39 -07:00
Deepanshu Gupta
6335590aa8 Fix DatePicker and Calendar widget in layoutlib. [DO NOT MERGE]
Issue: https://code.google.com/p/android/issues/detail?id=59732

Change-Id: I281b3fdad88c591281a3645592c84f3e2cb61d09
(cherry picked from commit 81f74f4bc96ea4266cebe1b785d095558f540800)
2014-05-02 11:46:38 -07:00
Deepanshu Gupta
11ee746dc5 Layoutlib: Update the wifi icon in the status bar. [DO NOT MERGE]
Issue: https://code.google.com/p/android/issues/detail?id=60993

Change-Id: Ia43ed40b42c79f67dcd5809b827d4fecbc823c25
(cherry picked from commit 9cb5f5b5233f2331748d108d71f4b685762f32a7)
2014-05-02 11:46:38 -07:00
Deepanshu Gupta
44bcd64e5b Fix CalendarView to show the right labels. [DO NOT MERGE]
Change-Id: I95431f1054678d4192bd1621c1f69b29268f55e9
(cherry picked from commit 083e3caf66c21f7cc9511db479726c38d90e2d2f)
2014-05-02 11:46:37 -07:00
Deepanshu Gupta
87be67f917 Fix layoutlib [DO NOT MERGE]
Fix a NPE.

The cherry-pick differs slightly from the original to remove changes not
relevant to the current branch.

Bug: 11140701
Change-Id: Id92fc5359acf6dde1bcdbc781aaf637fdb6eecbf
(cherry-picked from 28873c1f008f4fe24441923e14f30e55d6f0967a)
2014-05-02 11:46:37 -07:00
Deepanshu Gupta
7b5d54f05b Fix ClassCastException when rendering ListView [DO NOT MERGE]
Bug: b.android.com/59300
Change-Id: Ia350adb3308daa8170bff755302760790163c811
(cherry picked from commit 54d88f7678387a6eb871ec2dccd36af4ff35b1fe)
2014-05-02 11:46:37 -07:00
Deepanshu Gupta
ce22440d4c Fix text rendering [DO NOT MERGE]
There are still some errors
1. Little vertical clippping for extra tall glyphs.
2. Breaking into scripts isn't perfect which results in incorrect layout
of text.

Change-Id: I54de3c05eca5e8affb1135c120eea24c3afe8a47
(cherry picked from commit 92a169fa2e1bab7d93089196c33c2de12f9eae82)
2014-05-02 11:46:05 -07:00
Deepanshu Gupta
bd9e181b29 Fix layout rendering for RTL locales [DO NOT MERGE]
This changeset adds the framework resources for RTL locales and mirrors
the layout if the application is RTL aware.

Use ICU to check the character orientation of the locale - right to left
or left to right. Set the layout direction on the top level layout
accordingly. Also, load the RTL resources for Nav Bar when the locale is
RTL.

Change-Id: I1ed0d516ab64120a0abca413ba678036661508f8
(cherry picked from commit eee0ea7a0b85ea6345eb7b8da5dbf17306c7339c)
2014-05-02 11:45:37 -07:00
Deepanshu Gupta
d4875e19f5 Add orientation to configuration for layoutlib. [DO NOT MERGE]
Update the configuration with the device orientation before rendering.

Change-Id: Icd40901204fd13f90b18353e53a15e25e5b2176c
(cherry picked from commit d97d60c0fa4613a47d591d45736299702be1cc7a)
2014-05-02 11:45:00 -07:00
Scott Main
db94d2d1e5 am 1d7ea94d: am 937db487: Merge "update dashboard for 5/1/14" into klp-docs
* commit '1d7ea94d72808162e70e55a531563cb011ac6f30':
  update dashboard for 5/1/14
2014-05-02 18:44:43 +00:00
Scott Main
1d7ea94d72 am 937db487: Merge "update dashboard for 5/1/14" into klp-docs
* commit '937db487443171b75f321190be591c8f3d5f74bb':
  update dashboard for 5/1/14
2014-05-02 18:40:33 +00:00
Scott Main
937db48744 Merge "update dashboard for 5/1/14" into klp-docs 2014-05-02 18:36:42 +00:00
Scott Main
3525b3c7e9 am 44e7ed77: am 5584601c: add intel USB vendor ID bug: 13982556
* commit '44e7ed77f16f6773d950e8b7a4fadb526b4c7a8a':
  add intel USB vendor ID bug: 13982556
2014-05-02 18:13:11 +00:00
Scott Main
44e7ed77f1 am 5584601c: add intel USB vendor ID bug: 13982556
* commit '5584601c8ade068f403808a3c2b5e9c611134ab2':
  add intel USB vendor ID bug: 13982556
2014-05-02 18:10:30 +00:00
Scott Main
5584601c8a add intel USB vendor ID
bug: 13982556

Change-Id: I34fae455f0eee04088bed3f79243776321c745cf
2014-05-02 10:50:50 -07:00
Justin Koh
6015844578 Merge "Make global action key timeout configurable." into klp-modular-dev 2014-05-02 17:25:50 +00:00
Justin Koh
feabd2c730 Make global action key timeout configurable.
Make global action key timeout configurable: deprecated the old public method
and created a new one: getDeviceGlobalActionKeyTimeout.
Bug: 14441321

Change-Id: Ifa9b136984a9f02cfe4040baeff11275174967c5
2014-05-02 10:04:34 -07:00
Scott Main
156bcfcf93 update dashboard for 5/1/14
Change-Id: I874f060089ecc701c23b91adc52d19d50fd51014
2014-05-02 09:45:44 -07:00
Mark Renouf
11b1469144 Implement cliff guard for swipeDismiss gesture
BUG: 14319825

Change-Id: I6a80c91b4a6ee2eaf49a8c0c69065d4b97d7f8f2
2014-05-02 01:56:54 +00:00
Jeff Brown
7f6ab17d41 Merge "Clean up some terminology related to interactive state." into klp-modular-dev 2014-05-01 23:25:11 +00:00
Vinod Krishnan
5c10c3cfa6 Merge "DialogAlert window changes for Micro" into klp-modular-dev 2014-05-01 22:43:58 +00:00
Jeff Brown
140ffc783c Clean up some terminology related to interactive state.
Change-Id: Ife4445685a5314dea64332a3490fa8dd3ffd89a2
2014-05-01 15:22:27 -07:00
Mindy Pereira
d5e92318b6 Merge "Update fling min velocity" into klp-modular-dev 2014-05-01 20:34:35 +00:00
Robert Ly
0135261361 am a9dfeaa9: am 7fadcf84: Merge "Revert "update wear stack notifications to coincide with devbyte code"" into klp-docs
* commit 'a9dfeaa94083c322fb95d8bd2ac765521ae8bceb':
  Revert "update wear stack notifications to coincide with devbyte code"
2014-05-01 17:47:23 +00:00
Robert Ly
e3135059de am 9f129366: am 80b2cbbe: Revert "docs: fix method name"
* commit '9f129366e6963aacb00893e0be1892003bc0b39d':
  Revert "docs: fix method name"
2014-05-01 17:47:19 +00:00
Robert Ly
a9dfeaa940 am 7fadcf84: Merge "Revert "update wear stack notifications to coincide with devbyte code"" into klp-docs
* commit '7fadcf84244172004568c4107083d415f1285b75':
  Revert "update wear stack notifications to coincide with devbyte code"
2014-05-01 17:44:16 +00:00