81852 Commits

Author SHA1 Message Date
Romain Guy
8e025de5fb Note to self
Change-Id: Ic5699bdbf880ad68748c827bb5b4976b12d4d413
2012-07-18 19:12:11 -07:00
Romain Guy
04299385c6 Clip lines, AA rects and points correctly
Change-Id: I900dd986f397b66f133e6021aa4c2539e7abc2b9
2012-07-18 17:15:41 -07:00
Romain Guy
dfab50d8b9 Tweak text gamma correction
Change-Id: Icd3326e6a054d6020c3ed61c8459394bc87401dd
2012-07-18 17:06:37 -07:00
Romain Guy
2e6f5ca77b Merge "Add a new method for text gamma correction" 2012-07-18 16:31:59 -07:00
Romain Guy
6e25e38e43 Add a new method for text gamma correction
To select the gamma correction method, adb shell setprop hwui.text_gamma_correction
with one of the following values:

lookup3
lookup
shader3
shader

See Properties.h for more information about these different methods.
You can also control gamma correction using the following properties:

hwui.text_gamma
hwui.text_gamma.black_threshold
hwui.text_gamma.white_threshold

Change-Id: I47970b804d2c590c37d3da5008db094241579e25
2012-07-18 16:28:44 -07:00
Raph Levien
592b29f4ad Merge "Increase text layout cache size in bytes" 2012-07-18 16:20:20 -07:00
Fabrice Di Meglio
9a1aa4c4a4 Merge "Fix padding resolution" 2012-07-18 16:17:31 -07:00
Raph Levien
161ebab85d Increase text layout cache size in bytes
The mark positioning changes increase the number of bytes needed per
glyph from 6 to 14. This patch compensates by allocating more total
memory for the text layout cache.

Change-Id: I3cf59547394a41779cf6e92e67688b0fdc85f1a3
2012-07-18 16:16:41 -07:00
Fabrice Di Meglio
016456e432 Fix padding resolution
Change-Id: I2181a0a4057be0d20744b1512dbc1fbc53490d81
2012-07-18 16:14:57 -07:00
Raph Levien
4f3c8f7026 Fix overly verbose logging in TextLayoutCache
I meant to log certain debug values only when DEBUG_GLYPHS was set, but
I used #ifdef instead of #if (when it's not set, it's 0, rather than
undefined).

Change-Id: Ic27fee7dd355009c1873f0a2e12614849bbceebd
2012-07-18 15:40:44 -07:00
Ying Wang
0734102f44 Merge "Import translations. DO NOT MERGE" 2012-07-18 14:58:43 -07:00
Ying Wang
8558a2e067 Import translations. DO NOT MERGE
Change-Id: I25f1161117b937662eeb0ed5c52b9ee8e470ad47
Auto-generated-cl: translation import
2012-07-18 14:32:47 -07:00
Adam Powell
a9108a217e Add View#generateViewId; make RadioGroup use it
Bug 6448164

generateViewId provides a way for applications to generate opaque ID
values suitable for use with View#setId that will not collide with
values generated by aapt for R.id.

Fix a bug where RadioGroup assumes object hash codes will always be
positive.

Change-Id: I3e2870cd672d6061bb465128f428c81aeef0c44b
2012-07-18 14:27:00 -07:00
Victoria Lease
accf721ebd Merge "Demoted Lohit-Telugu.ttf in fallback lists." 2012-07-18 08:48:34 -07:00
Raph Levien
57bdd3d378 Merge "Software-only implementation of glyph positioning (bug 5443796)" 2012-07-18 08:40:19 -07:00
John Spurlock
db8d60fca3 Merge "Fix systemui crash on Xoom startup" 2012-07-18 07:19:34 -07:00
John Spurlock
69b34dc1aa Fix systemui crash on Xoom startup
Make new bugdroid drawable available to non-hdpi device builds.
(moved to no-dpi for now)

It was getting optimized out during the build process.

Bug: 6828023
Change-Id: I31ac6ce2f50edc7f65d37b4b0f7513dd33a8b22d
2012-07-18 10:05:03 -04:00
Jason Simmons
e5805a1b2a Merge "Set the SO_BROADCAST option if the master election endpoint is the broadcast address" 2012-07-17 18:12:05 -07:00
Raph Levien
2301d32f7e Software-only implementation of glyph positioning (bug 5443796)
This patch implements glyph positioning in the Skia-based renderer. Note
that it depends on a fix for bug 6833339 being in place (correct
calculation of advance widths under skew and scale transforms),
otherwise there will be regressions.

Careful attention was paid to correct results in a wide variety of
conditions: alignments, text decorations, scale, skew, etc. Many of
these are exercised in the test app attached to bug 6833339.

Note that this patch also changes slightly the way that the total
advance is calculated - the running is accumulated and passed through to
computeRunValues(), so that the x positions of each glyph can be set
according to the total advance of all glyphs (in all runs) appearing
before (plus, of course, the offset for mark positioning).

After committing this patch, text rendering will no longer match between
the software and hardware rendering cases. Implementing positioning in
the hardware renderer will resolve that, and fully implement bug 5443796.

Change-Id: Ie0f7835d48bc120475a19afbfe159aa5304fcaa8
2012-07-17 18:11:28 -07:00
Jason Simmons
db63260758 Set the SO_BROADCAST option if the master election endpoint is the broadcast address
Change-Id: I75b3815be73744b99a4bea52916984de76634e7e
2012-07-17 18:02:24 -07:00
Romain Guy
9caa8db3e6 Merge "Correctly pre-clip paths when recording display lists" 2012-07-17 17:59:36 -07:00
Romain Guy
95c21d0546 Correctly pre-clip paths when recording display lists
External bug: http://code.google.com/p/android/issues/detail?id=34946

DisplayListRenderer::drawPath was not invoking quickReject() properly,
passing x,y,width,height instead of left,top,right,bottom. A path
could thus get rejected when it should be drawn instead.

While working on this change I found a similar issue with another
drawing command, drawBitmapData().

Change-Id: I56484e8c101768cde6a78625290872f7849dd5ee
2012-07-17 17:48:04 -07:00
Romain Guy
6a2defc9d1 Merge "Don't clear the dirty clip flag if it's not applied Bug #6833979" 2012-07-17 17:35:43 -07:00
Romain Guy
8a4ac610e1 Don't clear the dirty clip flag if it's not applied
Bug #6833979

Change-Id: I0ea78b7f31a557a335de10d910d03b0520029080
2012-07-17 17:32:48 -07:00
Haoyu Bai
db3c8678e5 Network data activity change intent for network interfaces.
The activity notification is received from netd, an intent
DATA_ACTIVITY_CHANGE is then raised for other part of the system to
consume.

Change-Id: Idfcc4763c51c5b314c57f546c12557082f06bebf
2012-07-17 17:13:03 -07:00
Haoyu Bai
6b7358d951 Netd event code for interface class acitivity.
Change-Id: I83d5ca9ab854cb30ce6d9c06a977ca295f0cdbfd
2012-07-17 16:55:05 -07:00
Victoria Lease
2a41a2d4cc Demoted Lohit-Telugu.ttf in fallback lists.
Lohit-Telugu.ttf provides incorrect glyphs for U+FFBC-10007, masking
fonts later in the fallback chain that provide correct glyphs for
that range. I've temporarily demoted Lohit-Telugu in the fallback
order so that this does not happen, and appended a comment that
explains why. In the future, when we have our own Telugu font, we
can place that with the rest of the Indic fonts in the fallback list.

Bug: 6723057
Change-Id: I15fb06dcb7dd13289e226de01c36058134a1b7cb
2012-07-17 16:41:18 -07:00
Jason Simmons
71cac13bea am 2da0bbc8: (-s ours) DO NOT MERGE - Set the SO_BROADCAST option if the master election endpoint is the broadcast address
* commit '2da0bbc80545769541e2a24e8ce152f0ea2a113c':
  DO NOT MERGE - Set the SO_BROADCAST option if the master election endpoint is the broadcast address
2012-07-17 16:15:53 -07:00
Jason Simmons
2da0bbc805 DO NOT MERGE - Set the SO_BROADCAST option if the master election endpoint is the broadcast address
Change-Id: I76aa9df717ee5ca32859e21c7e25635b44739c75
2012-07-17 16:07:07 -07:00
Jonathan Dixon
f6468ca4dc Merge "Remove deprecated methods from webview provider interface" 2012-07-17 15:41:29 -07:00
Scott Main
0b8bd49544 am d329fa02: am 28a3897d: docs: re-add download.jd file to support archived SDK downloads
* commit 'd329fa02c1036df580335661d41bf1c599324011':
  docs: re-add download.jd file to support archived SDK downloads
2012-07-17 14:17:32 -07:00
Scott Main
d329fa02c1 am 28a3897d: docs: re-add download.jd file to support archived SDK downloads
* commit '28a3897d08e0d2bce69225a89cbada792761f0ed':
  docs: re-add download.jd file to support archived SDK downloads
2012-07-17 14:14:40 -07:00
Wink Saville
e26399d332 am 07e021b1: (-s ours) am 33034b13: (-s ours) Create telephony-common and mms-common - DO NOT MERGE
* commit '07e021b11b86ba3af85e12dc9d090fc20bf8f96b':
  Create telephony-common and mms-common - DO NOT MERGE
2012-07-17 14:08:56 -07:00
Ying Wang
8dcac6651b am 166615f2: (-s ours) am 1ed1c399: Merge "Import translations. DO NOT MERGE" into jb-dev
* commit '166615f243dc170dbbae7e107634f92f05942015':
  Import translations. DO NOT MERGE
2012-07-17 14:08:43 -07:00
Dirk Dougherty
858905f419 am 92c4339b: am 1c185c20: Merge "Doc change: Fixes to IAB purchase state docs." into jb-dev
* commit '92c4339bb73a58378e510242c6ccdb093ae1a5a9':
  Doc change: Fixes to IAB purchase state docs.
2012-07-17 14:08:38 -07:00
Adam Powell
5d1f11d9c2 Merge "Fix MediaRouteActionProvider button sizing" 2012-07-17 14:03:59 -07:00
Adam Powell
8c1b02e759 Fix MediaRouteActionProvider button sizing
Bug 6768999

Use proper layout height for MediaRouteButtons generated from
MediaRouteActionProvider.

Update ActionMenuView's LayoutParams handling to correctly propagate
width/height values if the supplied LayoutParams is of a different
type.

Change-Id: I1e1b250d873869ca27f59ffb06ccf2299d57b40d
2012-07-17 13:57:59 -07:00
Scott Main
28a3897d08 docs: re-add download.jd file to support archived SDK downloads
Change-Id: If814238c8fa017ce10e7fe770826a1e162fe5e87
2012-07-17 13:19:20 -07:00
Wink Saville
07e021b11b am 33034b13: (-s ours) Create telephony-common and mms-common - DO NOT MERGE
* commit '33034b13cae1429d526722374bd39be3f9605ae4':
  Create telephony-common and mms-common - DO NOT MERGE
2012-07-17 12:36:56 -07:00
Wink Saville
33034b13ca Create telephony-common and mms-common - DO NOT MERGE
These have been created to reduce the size and complexity
of frameworks/base.

mms-common was created by moving all of
  frameworks/base/core/java/com/google/android/mms
to:
   frameworks/opt/mms

telephony-common was created by moving some of
   frameworks/base/telephony
to:
   frameworks/opt/telephony

Change-Id: If6cb3c6ff952767fc10210f923dc0e4b343cd4ad
2012-07-17 12:23:09 -07:00
Ying Wang
166615f243 am 1ed1c399: Merge "Import translations. DO NOT MERGE" into jb-dev
* commit '1ed1c399939e035707dd6da7057570a8da96394e':
  Import translations. DO NOT MERGE
2012-07-17 12:22:31 -07:00
Ying Wang
ad6565d2aa Merge "Import translations. DO NOT MERGE" 2012-07-17 12:19:23 -07:00
Ying Wang
1ed1c39993 Merge "Import translations. DO NOT MERGE" into jb-dev 2012-07-17 12:19:12 -07:00
Dirk Dougherty
92c4339bb7 am 1c185c20: Merge "Doc change: Fixes to IAB purchase state docs." into jb-dev
* commit '1c185c2068212c78d124897fdfe33cebb194d84a':
  Doc change: Fixes to IAB purchase state docs.
2012-07-17 12:17:10 -07:00
Dirk Dougherty
1c185c2068 Merge "Doc change: Fixes to IAB purchase state docs." into jb-dev 2012-07-17 12:14:09 -07:00
Roman Nurik
6a35547023 am 90cc1811: am d0e84d30: docs: Add link to action bar design pattern.
* commit '90cc1811245dde00ec23c390e4cba6345368b265':
  docs: Add link to action bar design pattern.
2012-07-17 12:09:36 -07:00
Roman Nurik
90cc181124 am d0e84d30: docs: Add link to action bar design pattern.
* commit 'd0e84d30c89300993d45307959a86ad1ceb06da2':
  docs: Add link to action bar design pattern.
2012-07-17 12:06:22 -07:00
Ying Wang
59a4cb36cf Import translations. DO NOT MERGE
Change-Id: I7055f4855c1e911d218fef9ba3167b28c3077840
Auto-generated-cl: translation import
2012-07-17 11:38:59 -07:00
Ying Wang
7b3813340d Import translations. DO NOT MERGE
Change-Id: I5c3c2a4556764f14d354ea0431b6cba175b2c49f
Auto-generated-cl: translation import
2012-07-17 11:31:03 -07:00
Roman Nurik
d0e84d30c8 docs: Add link to action bar design pattern.
Change-Id: I3e00c3bb81f785c70138ae1069e065d9118f031e
related-to-bug: 5833099
2012-07-17 10:30:51 -07:00