36644 Commits

Author SHA1 Message Date
Ben Murdoch
b62f8a5450 Fix potential NPE in L10nUtils.
It is possible that a call to the L10nUtils class will
come before it has been properly initialised (if the
user highlights a form very quickly onload for example) so move
the initialisation earlier in the WebView ctor so that it is
set up before the WebCore thread is started.

Change-Id: Iff5a1c16d04c47d001146184f753d2cc0cbbb404
2010-11-22 17:15:38 +00:00
Leon Scroggins
1ca5626351 Alter the Layout of WebTextView to match webkit.
Bug:3085564

In order to treat the selection handles properly, the text in
WebTextView needs to line up with the text in webkit.  Use the
line spacing style, or the paint if none provided, to determine
the spacing for WebTextView's Layout.  When no line spacing is
provided, use the floating point values of ascent and descent,
rather than the rounded result, to determine spacing.

Requires a change in external/webkit:
https://android-git.corp.google.com/g/#change,80641

Change-Id: I51081835e128a0e938028c7c7aeb5111aa5f072c
2010-11-22 09:37:57 -05:00
Erik
3644bf11bf Merge "b/3215774 Fix scrollMode notifications" 2010-11-21 20:08:06 -08:00
Joe Onorato
79418114d3 Merge changes I61331a6e,I5728222b
* changes:
  new battery assets
  Use new nav button assets.
2010-11-21 19:23:36 -08:00
Joe Onorato
794be40f8b new battery assets
Change-Id: I61331a6eb237f8883bf604c0767623b08c2fa41b
2010-11-21 19:22:25 -08:00
Joe Onorato
dab75b66aa Use new nav button assets.
Change-Id: I5728222ba173eedb67e6fa4c599b39b61c923e23
2010-11-21 18:25:49 -08:00
Brad Fitzpatrick
bee248769d StrictMode: dropbox VM-wide violations (e.g. CloseGuard) async
To be clear, the dropbox violations were already async in the
ActivityManager, but the Binder call was often 30 ms anyway.

This optimization was already done for per-thread violations earlier,
but was never done for VM-wide violations because they weren't common,
until CloseGuard came about.  Now that CloseGuard fires a lot, apply
the same optimization to VM-wide violations.

This CL also addresses a concern of Dianne's earlier of too many
threads being outstanding.  So now there's a paranoia check with an
upper bound on how many outstanding ActivityManager calls are
in-flight.

Change-Id: I95e0816105ab862f0f241052b149c9a46a70ce9c
2010-11-21 18:01:41 -08:00
Joe Onorato
6c1af93c17 The ticker shouldn't be modal.
Change-Id: I6bb4df07ad4659d900a95379193f5cb95d7706c3
2010-11-21 17:07:20 -08:00
Joe Onorato
fca14066d9 Api udpate for notification changes
Change-Id: I72d7c2f5d6e3f607a3885efc8120e7c0c8ad5229
2010-11-21 16:45:57 -08:00
Joe Onorato
52f80cd36f The icon sticks out of the ticker.
The ticker still needs to show up over the status bar, which will take a bit of
window manager work, so it's just out of position for now.

Change-Id: Ib5781925db63a22d9352a7b5017a36eec3229395
2010-11-21 16:16:29 -08:00
Joe Onorato
4cddc98a4b Deal with more notifications than fit on screen.
Change-Id: I432b9ee73a473fe4af8b0caeede4993c67be6518
2010-11-21 16:16:29 -08:00
Joe Onorato
561d3858bb The large icon for notifications.
Change-Id: I8537c602b5b5fca03be8980295bfa28330543669
2010-11-21 16:16:28 -08:00
Joe Onorato
3f76aa7755 Test for using the right size of notification info text.
Change-Id: Iac8764542ddcd3ef0375f6d6d03225e9f6c2fc1c
2010-11-21 16:16:28 -08:00
Joe Onorato
3fe7f2f2e3 fix warning
Change-Id: I243e9b81256af13b8296dd121b1204caed7a3996
2010-11-21 16:16:28 -08:00
Joe Onorato
2026e8d468 Show the icon in the compatibilty ticker.
Change-Id: Ib0f466a6773f9e66ad418bf48303504dedf73d21
2010-11-21 16:16:28 -08:00
Joe Onorato
8595a3dd9a Show the number in the expanded notification instead of in the bar.
Change-Id: I248b4fe1732ed290e9f3f9c094de4544a0e396ab
2010-11-21 16:16:28 -08:00
Joe Onorato
46439cec0e Update the look of the notifications. Includes adding a new Notification.Builder class.
Change-Id: I7c57b81c45defe77d6f3d22472e9cf8432bbed03
2010-11-21 16:16:27 -08:00
Wink Saville
804043193a Remove pingtest in GsmDataConnectionTracker.
The pingtest have been disabled since petit-four and ping's use is
being deprecated. Removing the ping test code, if needed use
InetAddress.isReachable instead.

bug: 1824738
Change-Id: I42b3de85b67b82dc6389e7a2234afa7b1d687209
2010-11-20 11:57:56 -08:00
Dirk Dougherty
f5c4111f66 am e489d48f: am 805bddc1: Merge "doc change: Docs for SDK Tools r8, ADT 8" into gingerbread
* commit 'e489d48f7c95b874ee7820d1052d862109244437':
  doc change: Docs for SDK Tools r8, ADT 8
2010-11-19 19:21:04 -08:00
Wu-cheng Li
4e911849ca am fb6f4505: am 589e8381: Merge "Improve camera documentation." into gingerbread
* commit 'fb6f4505ba5c227cebb73f1269b0af5d92e6e5e6':
  Improve camera documentation.
2010-11-19 19:20:59 -08:00
Dirk Dougherty
e489d48f7c am 805bddc1: Merge "doc change: Docs for SDK Tools r8, ADT 8" into gingerbread
* commit '805bddc123c1fc56be333d6ff365f168d4bc2b08':
  doc change: Docs for SDK Tools r8, ADT 8
2010-11-19 19:04:56 -08:00
Dirk Dougherty
805bddc123 Merge "doc change: Docs for SDK Tools r8, ADT 8" into gingerbread 2010-11-19 19:03:03 -08:00
James Dong
482a1b16cb Display AVC video sample profile and level for "stagefright" util
Change-Id: I04b3f67d162cf3827bc74ad98cd1e1a0f5f14172
2010-11-19 18:39:16 -08:00
Wu-cheng Li
fb6f4505ba am 589e8381: Merge "Improve camera documentation." into gingerbread
* commit '589e838116b0dffa696fa39336d0588124877f98':
  Improve camera documentation.
2010-11-19 18:17:24 -08:00
Wu-cheng Li
589e838116 Merge "Improve camera documentation." into gingerbread 2010-11-19 18:14:43 -08:00
James Dong
86e735375e Merge "Fixed MediaPlayer unit test issues" 2010-11-19 17:35:26 -08:00
Mathias Agopian
b4673f757f am d3b5510b: am 927e7410: Merge "Fix SensorManager.getOrientation() documentation." into gingerbread
* commit 'd3b5510b8505c6c653469193a40f6431272085f3':
  Fix SensorManager.getOrientation() documentation.
2010-11-19 17:23:13 -08:00
Mathias Agopian
d3b5510b85 am 927e7410: Merge "Fix SensorManager.getOrientation() documentation." into gingerbread
* commit '927e7410000dd1917387c01fc4229836ddd5eb97':
  Fix SensorManager.getOrientation() documentation.
2010-11-19 17:20:14 -08:00
Mathias Agopian
927e741000 Merge "Fix SensorManager.getOrientation() documentation." into gingerbread 2010-11-19 17:18:21 -08:00
Shimeng (Simon) Wang
d204449415 Merge "Make sure we have a ";" after locale in User Agent" 2010-11-19 17:13:07 -08:00
Brad Fitzpatrick
a3a1f59109 Merge "Don't re-read SharedPreferences unnecessarily." 2010-11-19 17:08:44 -08:00
Daniel Shiplacoff
55073498ca Merge "Updates assets for edge glow and line." 2010-11-19 17:00:25 -08:00
Scott Main
1385d89d5e am 55ff5708: am 828b6816: Merge "docs: add docs for xhdpi and xlarge screen support update screen ranges figure bug: 3099462" into gingerbread
* commit '55ff5708bb166ab985ffd89e62ddcb13927d6403':
  docs: add docs for xhdpi and xlarge screen support update screen ranges figure bug: 3099462
2010-11-19 16:56:53 -08:00
Jean-Baptiste Queru
621b41c744 am 716f60ce: resolved conflicts for merge of e2ec61b2 to gingerbread-plus-aosp
* commit '716f60ce605131429dc9efe8f351f0da0c8cc8c2':
  StagefrightMediaScanner: Call endFile() for MIDI and OGG files.
2010-11-19 16:56:49 -08:00
Jean-Baptiste Queru
be4e1c8f6f am 7b76ed69: am e3bef7c4: Merge "Added noop unregisterReceiver to complement existing noop registerReceiver."
* commit '7b76ed693e42caea0c5f1bcbe7059c580e9cb314':
  Added noop unregisterReceiver to complement existing noop registerReceiver.
2010-11-19 16:56:42 -08:00
James Dong
f360acf875 Fixed MediaPlayer unit test issues
o We used to have two different "idle" state with OpenCore.
  Now, with SF, we have a single and consistent "idle" state.

bug - 3198642

Change-Id: I2bbb5e8b6c2d8166841a6e99a1c2c4a47e00b574
2010-11-19 16:56:02 -08:00
Jake Hamby
dbc7f092f6 Merge "Revert "Don't call cancel discovery when its already canceelled."" 2010-11-19 16:53:26 -08:00
Brian Muramatsu
cb4541fc8e Merge "Fix ClipboardManager#hasText" 2010-11-19 16:52:11 -08:00
Scott Main
55ff5708bb am 828b6816: Merge "docs: add docs for xhdpi and xlarge screen support update screen ranges figure bug: 3099462" into gingerbread
* commit '828b68166679ebfc0002e2ea516ca91e6fb13597':
  docs: add docs for xhdpi and xlarge screen support update screen ranges figure bug: 3099462
2010-11-19 16:51:57 -08:00
James Dong
04d070f293 Merge "Removed uncessary FILE structure pointer for I/O" 2010-11-19 16:49:10 -08:00
Scott Main
828b681666 Merge "docs: add docs for xhdpi and xlarge screen support update screen ranges figure bug: 3099462" into gingerbread 2010-11-19 16:48:50 -08:00
Jake Hamby
39657b808f Revert "Don't call cancel discovery when its already canceelled."
This reverts commit 58d0dcb75b776bba0737412d2f5e203792b06a52.
Fixes a bug where discovery would start every 20-30 seconds.
2010-11-19 16:45:58 -08:00
Erik
b43d6a30ad b/3215774 Fix scrollMode notifications
When transitioning from a fling to a touch the mode was being set
to idle instead of ending up in scroll. This corrects the
notifications to get sent in the correct order.

Change-Id: Ideed6e4064b2be62788307f4232015fa88e101b4
2010-11-19 16:42:43 -08:00
Mindy Pereira
55708dfae6 Updates assets for edge glow and line.
Currently, we have the same assets for hdpi and mdpi.

Change-Id: I46be842ace9ca9908e6fb6196b9766868b362975
2010-11-19 16:41:45 -08:00
Brad Fitzpatrick
5913630ec9 Don't re-read SharedPreferences unnecessarily.
Previously reads were only cached once a write occurred because
loading didn't set the stat metadata, thus the
sp.hasFileChangedUnexpectedly() check always fired on reading.

Now the initial read populates the stat info, so getSharedPreference()
repeatedly bypasses reading from disk, even wtihout writes.

This was probably a regression from apply() being added in
Gingerbread.

Bug: 3211034
Change-Id: Ifa0bbb27c53a4099544950a4f822fab1fc23a47d
2010-11-19 16:39:00 -08:00
Bart Sears
096fbe0583 Make sure we have a ";" after locale in User Agent
When in pre-release mode, we did not have a semi-colon between
the locale (i.e. "en-us") and the the Build (i.e. "Build/HRH50")

In release mode we correctly added the semi-colon (and put in
the "model") so this was only an issue when in pre-release mode.

Bug: 3215465
Change-Id: Ied1acc69463ffddabbc886e7e7e5e8cc8ab14956
2010-11-19 16:34:38 -08:00
Brian Carlstrom
8c62c1d6b9 Merge "Adding CloseGuard to Animation to find forgotten animations" 2010-11-19 16:28:30 -08:00
Mathias Agopian
f71384cd61 Fix SensorManager.getOrientation() documentation.
This function doesn't use the same reference coordinate system used
for the rotation matrix, unlike what the documentation previously
stated.

Change-Id: I38abeb74540d33b67f72993b54d7a00a73588dde
2010-11-19 16:25:11 -08:00
Xavier Ducrohet
44c50b6e03 Merge "Layoutlib: support for editing embedded layouts." 2010-11-19 16:23:22 -08:00
Andy Stadler
e87efd0300 Merge "Fixes to DevicePolicyManager.setPasswordExpirationTimeout" 2010-11-19 16:22:31 -08:00