18958 Commits

Author SHA1 Message Date
Cary Clark
2ec30697c6 refactor drawing to support layers
Drawing elements that appear atop or below layers need to be
drawn both in the proper order and with the correct canvas to
respect clipping and the matrix.

The logic of what to draw is still in WebView.java, but the
actual drawing calls are now triggered inside the layer code.

This still draws layers incorrectly after drawing the history;
will fix this in a future CL.

Move drawing to WebView.cpp.
Use inverseScale to simplify viewPort metrics.
Remove root layer; let WebView.cpp handle it exclusively.

Requires companion fix in external/webkit.

http://b/2457316
http://b/2454127
http://b/2454149
2010-02-25 08:38:48 -05:00
Patrick Scott
6a4472f4d5 Allow cookies with no name.
Cookies like "foo; path=/;" should be evaluated to have just a name. This makes
it easier to compare cookies when looking for duplicates.

Bug: 2333747
2010-02-25 08:08:32 -05:00
Steve Block
c8f22299b1 Merge "Add HTML5 layout tests that currently fail to the DumpRenderTree skipped list" 2010-02-25 03:17:36 -08:00
Bjorn Bringert
8354fa65eb Make setBackgroundResource() remotable
Change-Id: Iad9c2bdf743a81a085024cad9dc340ae8a983f34
2010-02-25 10:46:03 +00:00
Eric Laurent
bda568fb80 Merge "Fix issue 2327064: Music played via line out is interrupted due to the phone call audio on BT hs." 2010-02-25 00:14:47 -08:00
Kenny Root
7ff20e30c5 Create own reference for minSdkVersion in aapt
Fix bug where applications defining a minSdkVersion were experiencing
transient errors from memory corruption in aapt.

Change-Id: I839d5eda7388baac6133e735fa59f9799ca2822d
2010-02-24 23:49:59 -08:00
Suchi Amalapurapu
74f39d4c17 Merge "Add new handler mechanism in MountService to make unmount api asynchronous. MountService updates state on PackageManager and then tries to kill processes holding file references to media about to be unmounted by invoking api on ACtivityManager. This is retried upto 4 times to make sure all processes holding file references are killed before unmounting the media at specified path." 2010-02-24 20:43:24 -08:00
Suchi Amalapurapu
c42e29e0a5 Add new handler mechanism in MountService to make unmount api asynchronous.
MountService updates state on PackageManager and then tries to
kill processes holding file references to media about to be unmounted by
invoking api on ACtivityManager. This is retried upto 4 times to make sure all
processes holding file references are killed before unmounting the media
at specified path.

Also changed PackageManger api to return boolean value to indicate if
MountService is likely to receive broadcasts related to apps on sd.
2010-02-24 20:30:03 -08:00
Kenny Root
5a8ec76121 Scan for android namespace in manifest
android:minSdkVersion wasn't being correctly scanned because the
namespace was incorrect. This fixes that problem so packages aren't
generated as UTF-8 when minSdkVersion is less than 7.

Change-Id: I8f45d47ea886915da6a4770f6e111e6085d61bee
2010-02-24 20:03:17 -08:00
Robert Greenwalt
406b09bbd1 Merge "Add mobile data on/off switch." 2010-02-24 19:45:32 -08:00
Carl Shapiro
ba289966c6 Merge "Remove empty finalize methods." 2010-02-24 19:15:06 -08:00
San Mehat
982bb24f5d Merge "MountService: Send UMS_CONNECTED broadcast on boot if UMS connected." 2010-02-24 19:04:48 -08:00
Grace Kloba
694b787e19 am cbe4f887: (-s ours) am a406fb90: DO NOT MERGE
Merge commit 'cbe4f88747b56a753e4a9bf061946f4c6f051243'

* commit 'cbe4f88747b56a753e4a9bf061946f4c6f051243':
  DO NOT MERGE
2010-02-24 18:56:27 -08:00
Romain Guy
8cebbfd5fb Merge "Fix tabs." 2010-02-24 18:55:59 -08:00
Romain Guy
6c5664ac58 Fix tabs. 2010-02-24 18:55:22 -08:00
Carl Shapiro
05c376b00b Remove empty finalize methods. 2010-02-24 18:43:36 -08:00
Grace Kloba
cbe4f88747 am a406fb90: DO NOT MERGE
Merge commit 'a406fb90805adf36fe0fabd3a79018e33706453c' into eclair-mr2-plus-aosp

* commit 'a406fb90805adf36fe0fabd3a79018e33706453c':
  DO NOT MERGE
2010-02-24 18:39:55 -08:00
Adam Powell
9d6e45ad92 Merge "ScrollView multiple pointer support. Fixed a bug where ScrollView wouldn't scroll if the initially tapped child ignores the down event." 2010-02-24 18:30:14 -08:00
Dmitri Plotnikov
fa0e57fbe7 Merge "Introducing tentative (and hidden) API for contact search snippets" 2010-02-24 18:26:40 -08:00
Grace Kloba
a406fb9080 DO NOT MERGE
If mPreventDrag is cancelled due to time out, remove
the pending TOUCH_EVENTS and then send an ACTION_CANCEL
and skip the rest of touch events.

This should address the drag problem Flash plugin has.

Fix http://b/issue?id=245053
2010-02-24 18:24:48 -08:00
Dmitri Plotnikov
3ba8a3b39b Introducing tentative (and hidden) API for contact search snippets
Bug: 2447965
Change-Id: I0608ca7a644f004613742f4680a5a9fd3325554a
2010-02-24 18:23:43 -08:00
Adam Powell
bc4e7533b9 ScrollView multiple pointer support. Fixed a bug where ScrollView
wouldn't scroll if the initially tapped child ignores the down event.
2010-02-24 18:22:08 -08:00
San Mehat
6a965af2d7 MountService: Send UMS_CONNECTED broadcast on boot if UMS connected.
UMS detection is now done wayyyy before the system is booted, so set a flag
to send our intent broadcast once we've booted.

Signed-off-by: San Mehat <san@google.com>
2010-02-24 18:14:18 -08:00
Robert Greenwalt
c03fa50149 Add mobile data on/off switch.
bug:2251458
2010-02-24 18:14:07 -08:00
Robert Greenwalt
240becc68d Merge "Tethering improvements." 2010-02-24 18:07:18 -08:00
San Mehat
9b1e9edff5 Merge "AsecTests: Add teardown to tests" 2010-02-24 18:06:01 -08:00
Robert Greenwalt
d70a3d4e2d Tethering improvements.
Changes due to comments.
Fixing Tether teardown.

bug:2422545
2010-02-24 18:03:40 -08:00
Romain Guy
21a20a39ae Merge "Fix the build." 2010-02-24 18:00:01 -08:00
Romain Guy
dcc490f201 Fix the build. 2010-02-24 17:59:35 -08:00
Jesse Wilson
a09bb0d218 Merge "New update of preloaded classes for Froyo." 2010-02-24 17:38:13 -08:00
Chris Tate
68aea82432 Merge "Add 'restoreAnyVersion' attr for apps that want to restore "future" data" 2010-02-24 17:24:54 -08:00
Christopher Tate
3dda518a4f Add 'restoreAnyVersion' attr for apps that want to restore "future" data
If a backup-participating app sets android:restoreAnyVersion="true" in its
manifest <application> tag, then its agent will be invoked for restore
even if the available dataset was created by a later version of the app
than is currently installed on the device.  This will not typically be
a problem for third party applications, since for them the installation
and initial data restore are tightly coupled, but it can cause serious
problems for applications which are both preinstalled on the system
partition and overridden by later updates.  The primary difficulty
that this new attribute addresses is this:

1. User buys a Nexus One, Market self-updates, and the user installs some apps.
At this point the backup data on the server may indicate that the version of
Market which originated its bookkeeping is newer than the stock N1 Market app.
2. User loses their phone, and buys a replacement N1.  At setup time, Market
has not yet had a chance to self-update, so when the restore comes in, it's
tagged as being from "the future" and so the restore is refused.  No apps get
reinstalled.

Bug: 2442127
Change-Id: I076a9553dc613e5c3189350e778315718ed1ed2b
2010-02-24 17:23:54 -08:00
Romain Guy
a440b002aa Prevents ListView items children to modify properties of other children.
Bug #2464502

This fix introduce a new dispatch mechanism to tell views when they are temporary
detached/reattached from/to a ListView. This is very important to remove pending
callbacks or cleanup temporary states.

This change also modifies TextView which was relying on that callback in a very
particular case: a focused EditText in a ListView. The modified code acts only
when in that case, not if onStart/FinishTemporaryDetach() is called via
dispatch*() (== recycled views in ListView.)
2010-02-24 17:15:40 -08:00
Joe Onorato
618c8f1ede Merge "Make ScrollView only do overscroll if you're grabbing the child view." 2010-02-24 16:30:00 -08:00
Joe Onorato
9f0e8eeab2 Make ScrollView only do overscroll if you're grabbing the child view. 2010-02-24 16:20:33 -08:00
Jesse Wilson
e9fcaa0697 New update of preloaded classes for Froyo. 2010-02-24 15:50:05 -08:00
Fred Quintana
27eb24148a Merge "allow permission USE_CREDENTIALS for AccountManager.invalidateAuthToken as well as the previous MANAGE_ACCOUNTS" 2010-02-24 15:25:44 -08:00
Eric Fischer
9245bf853c Merge "Filenames of sound effects are not translatable." 2010-02-24 14:53:10 -08:00
Fred Quintana
b38eb14dbf allow permission USE_CREDENTIALS for AccountManager.invalidateAuthToken as well as the previous MANAGE_ACCOUNTS 2010-02-24 14:50:30 -08:00
Vasu Nori
7537590934 Merge "yet another race condition fix to address bug:2456970" 2010-02-24 14:36:36 -08:00
Grace Kloba
aa13fbedba Merge "If mPreventDrag is cancelled due to time out, remove the pending TOUCH_EVENTS and then send an ACTION_CANCEL and skip the rest of touch events." 2010-02-24 14:32:50 -08:00
Andreas Huber
62be8e17b0 Merge "Recover from a certain mp3 decoder error instead of signalling an error and thereby stopping decoding." 2010-02-24 14:32:16 -08:00
Grace Kloba
93f5831ef2 If mPreventDrag is cancelled due to time out, remove
the pending TOUCH_EVENTS and then send an ACTION_CANCEL
and skip the rest of touch events.

This should address the drag problem Flash plugin has.

Fix http://b/issue?id=245053
2010-02-24 14:31:44 -08:00
Kenny Root
e0e6a9c0fc Merge "Fix spelling mistakes in attrs_manifest.xml" 2010-02-24 14:14:13 -08:00
Steve Block
f7483b1d5c Add HTML5 layout tests that currently fail to the DumpRenderTree skipped list
All of these tests should pass on Android. This is a temporary measure to track
all of these failures in a central place and to provide a consistent baseline
for DumpRenderTree test results while the problems are fixed.

Change-Id: I2cfaaa8df07be3b43c8e6517f75a7c438f147150
2010-02-24 22:11:07 +00:00
Erik Pasternak
6550c72006 Merge "b/2441327 Added add account intent to public api." 2010-02-24 14:00:01 -08:00
Kenny Root
4217a3e0c2 Fix spelling mistakes in attrs_manifest.xml
Change-Id: I6ff54cacff85ff60535b2c03559a33d219c52e72
2010-02-24 13:53:16 -08:00
Kenny Root
846ebf38ab Merge "Add some backup Javadoc and clean imports" 2010-02-24 13:19:14 -08:00
Andreas Huber
ff0c5c1929 Recover from a certain mp3 decoder error instead of signalling an error and thereby stopping decoding. 2010-02-24 13:19:04 -08:00
Fred Quintana
4855965a14 Merge "- return the accounts when getAccountByTypeAndFeatures is passed a null or empty features set, http://b/issue?id=2467165 - clear the authtokens when the password changes" 2010-02-24 13:15:14 -08:00