Narayan Kamath
6393875024
am c0232642: am 629daddd: Merge "Fix layoutlib build."
...
* commit 'c0232642b74517aa2717673f0811ba65c620f491':
Fix layoutlib build.
2014-03-14 14:22:30 +00:00
Narayan Kamath
c73991bda0
Fix layoutlib build.
...
Was using private data structures from libcore.
Change-Id: I5bd43190081891659e18b5c871686e6078efcc81
2014-03-14 14:10:30 +00:00
Deepanshu Gupta
f978f16e50
resolved conflicts for merge of c76345a3 to klp-modular-dev-plus-aosp
...
Change-Id: Id0aae224e17651bc07aa3f5b1a06923603d025b8
2014-03-11 16:39:13 -07:00
Deepanshu Gupta
0d7ebc51ff
Fix the delegate method signatures in LayoutLib
...
Change-Id: I262c285c1047958afdb024724959d5afb3552802
2014-03-05 19:23:48 -08:00
Xavier Ducrohet
ec84ada6e8
am 5e5602da: am 0c72b769: Merge "Update layoutlib method for SystemClock"
...
* commit '5e5602da5fa9cd2e1d135b2310af2a8352f65e8d':
Update layoutlib method for SystemClock
2014-02-27 23:34:34 +00:00
Deepanshu Gupta
5ac6a9e9b7
Update layoutlib method for SystemClock
...
Update layoutlib to reflect changes from
http://android-review.googlesource.com/83061/
Change-Id: If7326f3af2a97271ad1465382944e1f078b965d8
2014-02-24 14:22:29 -08:00
Xavier Ducrohet
21c5c8e600
am 9edf7a11: am 2cb9147f: am 55542ee6: am 3e637042: Merge "Set default text style in layoutlib as NORMAL [DO NOT MERGE]" into klp-dev
...
* commit '9edf7a1159b528afa056e0d61ee4487ed310fe4c':
Set default text style in layoutlib as NORMAL [DO NOT MERGE]
2014-02-20 17:53:20 +00:00
Deepanshu Gupta
c139177b13
am 65521c3c: am ca4b9a77: am e92c8542: am 01825b7a: Fix sans-serif-thin and sans-serif-light fonts in layoutlib. [DO NOT MERGE]
...
* commit '65521c3cf169808cd02ce09a7344bc633d51c1fc':
Fix sans-serif-thin and sans-serif-light fonts in layoutlib. [DO NOT MERGE]
2014-02-20 17:53:17 +00:00
Xavier Ducrohet
2cb9147fc4
am 55542ee6: am 3e637042: Merge "Set default text style in layoutlib as NORMAL [DO NOT MERGE]" into klp-dev
...
* commit '55542ee6449bd580f61bc005726b5c87773fbe25':
Set default text style in layoutlib as NORMAL [DO NOT MERGE]
2014-02-20 17:46:05 +00:00
Deepanshu Gupta
ca4b9a77e7
am e92c8542: am 01825b7a: Fix sans-serif-thin and sans-serif-light fonts in layoutlib. [DO NOT MERGE]
...
* commit 'e92c8542a5cf1160a1b701b9f176af64ba46d68d':
Fix sans-serif-thin and sans-serif-light fonts in layoutlib. [DO NOT MERGE]
2014-02-20 17:46:02 +00:00
Xavier Ducrohet
3e6370425e
Merge "Set default text style in layoutlib as NORMAL [DO NOT MERGE]" into klp-dev
2014-02-20 17:41:08 +00:00
Deepanshu Gupta
01825b7aa3
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 commit e327212adde1136807bbdf052e8cc3861f8a6aba)
2014-02-19 20:17:47 +00:00
Deepanshu Gupta
13aea18b34
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 commit 0acfb16dcd95468fe032204f54618e86becfd1eb)
2014-02-19 20:17:00 +00:00
Deepanshu Gupta
f7193bf897
am d9f9da39: am 56b86deb: am 1c91b1f7: am 45dbfcc7: Improve text rendering and measurement.
...
* commit 'd9f9da396b41f394991f676bc74dcfc59c7070a8':
Improve text rendering and measurement.
2014-02-10 19:56:58 +00:00
Deepanshu Gupta
56b86debcf
am 1c91b1f7: am 45dbfcc7: Improve text rendering and measurement.
...
* commit '1c91b1f7a2da5e5b1996217228399ef958c2be0c':
Improve text rendering and measurement.
2014-02-10 19:50:58 +00:00
Deepanshu Gupta
45dbfcc781
Improve text rendering and measurement.
...
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
2014-02-06 16:27:14 -08:00
Deepanshu Gupta
7bd287b70a
am ea2ec77f: am 3adb34ee: am 9fcfbfe2: am 3bf38b41: Merge "Add methods for Time_Delegate" into klp-dev
...
* commit 'ea2ec77f9538de2ea795d3e257f19e8cff659665':
Add methods for Time_Delegate
2014-02-06 03:06:38 +00:00
Deepanshu Gupta
6a9cbd5a2d
am a0023027: am 23de8dc2: am 28e049ef: am 0db6e6a5: Merge "Optimize layout rendering in layoutlib" into klp-dev
...
* commit 'a0023027e5b7245e2cef304d96826a7ae1c361aa':
Optimize layout rendering in layoutlib
2014-02-06 03:06:35 +00:00
Deepanshu Gupta
f9021e48be
am bd762373: am 096e4359: am f2f108fe: am a955314d: Merge "Add missing files to fix libphonenumber for layoutlib." into klp-dev
...
* commit 'bd762373964eb3cb71bdd79cbf82c27faa22699d':
Add missing files to fix libphonenumber for layoutlib.
2014-02-06 03:06:32 +00:00
Deepanshu Gupta
1bcc286def
am db0427a0: am 5800b19a: am 50b0ce4e: am fd8cba3a: Merge "Fix the measurement of text bounds." into klp-dev
...
* commit 'db0427a0ac986e0823e7bbe9b7c12a97aabe133e':
Fix the measurement of text bounds.
2014-02-06 03:06:29 +00:00
Deepanshu Gupta
1bceb9823f
am 650d30c5: am b156c019: am d5129e75: am 8a892279: Fix a bug in Nine Patch library.
...
* commit '650d30c5ec3c0b345651a56c45eb334fabf51b17':
Fix a bug in Nine Patch library.
2014-02-06 03:06:26 +00:00
Deepanshu Gupta
3adb34ee07
am 9fcfbfe2: am 3bf38b41: Merge "Add methods for Time_Delegate" into klp-dev
...
* commit '9fcfbfe296d7033ee031171f61b3a33044abee42':
Add methods for Time_Delegate
2014-02-06 02:59:51 +00:00
Deepanshu Gupta
23de8dc262
am 28e049ef: am 0db6e6a5: Merge "Optimize layout rendering in layoutlib" into klp-dev
...
* commit '28e049ef73f5d9301a198ac53535442b697b7ef4':
Optimize layout rendering in layoutlib
2014-02-06 02:59:48 +00:00
Deepanshu Gupta
096e435903
am f2f108fe: am a955314d: Merge "Add missing files to fix libphonenumber for layoutlib." into klp-dev
...
* commit 'f2f108fe86337a429a0940f264761dbc27f817fe':
Add missing files to fix libphonenumber for layoutlib.
2014-02-06 02:59:45 +00:00
Deepanshu Gupta
5800b19a7a
am 50b0ce4e: am fd8cba3a: Merge "Fix the measurement of text bounds." into klp-dev
...
* commit '50b0ce4e8ed353ed841782aeb58963bc084f2e16':
Fix the measurement of text bounds.
2014-02-06 02:59:41 +00:00
Deepanshu Gupta
b156c0197d
am d5129e75: am 8a892279: Fix a bug in Nine Patch library.
...
* commit 'd5129e75968030620a1372e39fcfbc17fe584e17':
Fix a bug in Nine Patch library.
2014-02-06 02:59:38 +00:00
Deepanshu Gupta
3bf38b4165
Merge "Add methods for Time_Delegate" into klp-dev
2014-02-06 02:06:02 +00:00
Deepanshu Gupta
0db6e6a567
Merge "Optimize layout rendering in layoutlib" into klp-dev
2014-02-06 02:05:42 +00:00
Deepanshu Gupta
a955314d90
Merge "Add missing files to fix libphonenumber for layoutlib." into klp-dev
2014-02-06 02:05:21 +00:00
Deepanshu Gupta
fd8cba3ab8
Merge "Fix the measurement of text bounds." into klp-dev
2014-02-06 02:04:49 +00:00
Deepanshu Gupta
8a892279bd
Fix a bug in Nine Patch library.
...
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
2014-02-05 17:16:35 -08:00
Deepanshu Gupta
eb3c5459eb
Add methods for Time_Delegate
...
Bug: http://b.android.com/65359
Change-Id: I7c2d09286d6bcd9899444aaa5a4a5a342e39d923
2014-01-31 19:24:06 -08:00
Narayan Kamath
5cdbac1e44
am 70986e19: am ab71f8b6: Merge "AArch64: Use of long for pointers in PropertyValuesHolder"
...
* commit '70986e197bbaf4de4f8126519a75df2b057c3b52':
AArch64: Use of long for pointers in PropertyValuesHolder
2014-01-31 12:17:09 +00:00
Narayan Kamath
98ac6c79a4
resolved conflicts for merge of cb7cdd50 to klp-modular-dev-plus-aosp
...
Change-Id: I2fc48fb4bd779042fc9bc00e6c8aca876d4a5f0b
2014-01-31 12:08:17 +00:00
Narayan Kamath
ab71f8b68f
Merge "AArch64: Use of long for pointers in PropertyValuesHolder"
2014-01-30 10:37:12 +00:00
Narayan Kamath
40582000e0
Fix a few more delegate methods in layoutlib.
...
Change-Id: Icd7069452b9ac66498af69ec705d12c3acd1c848
2014-01-29 15:05:03 +00:00
Ashok Bhat
0141e88434
AArch64: Use of long for pointers in PropertyValuesHolder
...
Long is used in PropertyValuesHolder class to store native pointers
as they can be 64-bit. Note that jmethodID, a pointer to structures,
is also carried in long rather than int to support 64-bit system.
Change-Id: Ifb514fc8473d7c41c0d6194fc6eb85d4816b2cd9
Signed-off-by: Marcus Oakland <marcus.oakland@arm.com>
Signed-off-by: Ashok Bhat <ashok.bhat@arm.com>
2014-01-29 10:47:27 +00:00
Narayan Kamath
8773d51eae
resolved conflicts for merge of b82b2f98 to klp-dev-plus-aosp
...
Change-Id: Ia110056e5fdd2387c207748b17c5c17d1a18ac5b
2014-01-28 19:47:58 +00:00
Narayan Kamath
84151432e7
Track 64bit changes to android/graphics.
...
All pointers are now 64bits wide, so should be
represented as java longs and not ints.
Also changed DelegateManager and SparseWeakArray to
reflect the new world order.
(cherry picked from commit 88a8364c386c694f7ad56662ef89713dbf7c9d63)
Change-Id: Ic2f55dd6235751169c5014f9d2ccf3f544259a87
2014-01-28 17:56:12 +00:00
Deepanshu Gupta
35d56c0d67
Optimize layout rendering in layoutlib
...
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
2014-01-20 17:02:37 -08:00
Deepanshu Gupta
58037a4404
Add missing files to fix libphonenumber for layoutlib.
...
Change-Id: I8102da6c1c4625e887293a8823770d199521c53f
2014-01-17 18:26:38 -08:00
Deepanshu Gupta
5ad7c183f3
Fix the measurement of text bounds.
...
Bug: 12366230
Change-Id: I203b678363dc7b688c744503ee10216baca658a9
2014-01-07 12:07:45 -08:00
Deepanshu Gupta
24541255c3
Update delegate methods in layoutlib.
...
Change-Id: I1f0fc274b6a74dbcf0ed46175c4a2fa4c2dd9a63
2013-11-25 19:59:54 -08:00
Deepanshu Gupta
0baec410c2
Update ICU_Delegate methods. DO NOT MERGE
...
Bug: 11435966
Change-Id: Ib8ed2011fe62b2496795075b33b9ca7d5907b87a
2013-11-18 10:20:37 -08:00
Deepanshu Gupta
1f92d7fc0f
Add libphonenumber to layoutlib.jar. DO NOT MERGE
...
Issue: http://b.android.com/59497
Change-Id: Ief11e602703b6041db66241f1699cc1de72e65a5
2013-11-13 18:15:51 +05:30
Deepanshu Gupta
d0581d271e
Fix NPE in layoutlib. DO NOT MERGE
...
Change-Id: I36623304d83b344ea078044001577b8005a63c02
2013-11-13 18:15:51 +05:30
Deepanshu Gupta
78cfdf31b7
Update changed delegate method in Bitmap_Delegate. DO NOT MERGE
...
Issue: https://code.google.com/p/android/issues/detail?id=60167
Change-Id: I3e1d6b9d52ca899889ba758b0ea91bd742cf5005
2013-11-13 18:15:51 +05:30
Craig Mautner
5d9f547720
Relayout windows that handle their own config change.
...
If a window claims to handle its own configuration change then we
won't destroy and recreate its window on a configuration change.
Normally that recreation triggers the first layout following
orientation change because mHaveFrame is false. Windows that handle
their own configuration changes never got a relayout pass following a
change in orientation.
This change passes the configuration changes that an application
handles into the AppWindowToken. If the app says it handles
orientation or screen size changes then a relayout will occur when the
configuration has changed.
Fixes bug 11647107.
Change-Id: Ie8d49fd050442ebbdcf0b805087894e3a2fc4be9
2013-11-12 14:02:52 -08:00
Deepanshu Gupta
f4800bc3b1
Fix text size in Fake Action Bar
...
The density multiplier was being applied twice to the title text in
the fake action bar.
Bug: 11436018
Change-Id: Id74c11037cb43d01f6cd79126623c84edfc37aaf
2013-11-08 16:43:07 +05:30
Marco Nelissen
738ffdc9da
Add a method to set a list of uids for a wake lock
...
Cherrypicked from master.
b/9464621
Change-Id: Ia6a9d36d55129ae87d3ec070fbf10dc02f4b6cb4
2013-10-25 12:49:55 -07:00