20447 Commits

Author SHA1 Message Date
Gilles Debunne
34783aac26 Fixes for HeaderViewListAdapter.
Null header and footer, as used by CTS tests, were no longer supported.
Added a static empty list to avoid repetitive null tests in that case.
Fixed getItem/getItemId/getView to handle corner cases.
Changed ListAdapter isEnabled documentation for invalid positions.

http://b/issue?id=2527753
Change-Id: I55e5bf21cb0673d906caa7c669987a6ae869d90f
2010-03-24 15:09:50 -07:00
Adam Powell
352b978fa8 Fix some bugs/edge cases in ScrollView/HorizontalScrollView
Handle ACTION_CANCEL, fix edge cases related to grabbing content and
beginning a new scroll during overfling/springback. Will prevent
some cases where a view could get stuck overscrolled.

Change-Id: I7e89d9de9b7dc685d2ea278e6b2bd2c794364204
2010-03-24 14:23:43 -07:00
Adam Powell
3e8b72ac6e Merge "Fix for bug 2502886 - stupid monkeys." 2010-03-24 14:05:55 -07:00
Andreas Huber
ad069eb1d6 Merge "QueryCodecs now returns the names of the software codecs (non-OpenMax) as well." 2010-03-24 13:53:28 -07:00
Jack Palevich
8c0d1e6c93 Merge "Improve our EGL management when pausing / resuming." 2010-03-24 13:50:33 -07:00
Andreas Huber
1a189a8232 QueryCodecs now returns the names of the software codecs (non-OpenMax) as well.
Change-Id: Ic4cd61f4dd722fb0dda544ffaa5615e87e3a4d40
related-to-bug: 2541647
2010-03-24 13:49:20 -07:00
Jack Palevich
b1768998f1 Improve our EGL management when pausing / resuming.
We now release the EGL context when pausing. This
is required to reduce the chance of running out of
contexts on devices which support a limited number
of active EGL contexts.

Someday we may implement a global EGL context
manager that will allow us to let EGL contexts
persist until another activity needs an EGL
context. But for now, without such a manager,
we take the conservative approach.

Separately, we now terminate EGL when
pausing on Sapphire. This is a requirement of the
Sapphire OpenGL driver.
2010-03-24 13:48:27 -07:00
Adam Powell
9d0335b1e3 Fix for bug 2502886 - stupid monkeys.
Plugged a possible edge case with ScrollView/HorizontalScrollView that
could cause this error.

Change-Id: I509004189b9f5e536d6213c9fdfff598d9f958ca
2010-03-24 13:42:51 -07:00
Dmitri Plotnikov
8f29c12d6e Forcing query execution in SQLiteDatabase.query
The issue is that our code often "executes" a query
on a background thread but iterates over the cursor
on the UI thread.  Since we actually do the fetch
on moveToFirst or moveToNext, the query is in reality
often run on the UI thread and causes an ANR.

Change-Id: Ia561135e974a44ad3e3774ecb23c6a3d0fc38176
2010-03-24 13:35:03 -07:00
Dianne Hackborn
3ac71b605b Merge "Fix issue #2540920: connectivity issues with tripit/pandora" 2010-03-24 13:22:20 -07:00
Kenny Root
4dc844c5df Merge "Use correct API version for UTF-8 checking" 2010-03-24 13:20:21 -07:00
Dianne Hackborn
610f389040 Merge "Fix issue #2537384: Default keyboard input method switched on Eclaire to FRE77D upgrade" 2010-03-24 13:11:55 -07:00
Scott Main
aa721c2d19 Merge "docs: fix several instances of the 'sidebox' class" 2010-03-24 13:10:54 -07:00
Patrick Scott
dbde425e21 Use the Display orientation rather than the accelerometer.
Register to receive configuration changes and query the Display rotation as that
will reflect both device orientation and an open keyboard.

Bug: 2219138
Change-Id: Ibd6119ae0c7d473e1a9ede3af24bb4b584c9db71
2010-03-24 16:03:56 -04:00
Dianne Hackborn
83e48f57e9 Fix issue #2537384: Default keyboard input method switched
on Eclaire to FRE77D upgrade

We want to prefer system IMEs when our current IME disappears.

Change-Id: Ief7332bc4f029991cd833ce0968d75bde987b594
2010-03-24 13:03:47 -07:00
Dianne Hackborn
af7cea3a51 Fix issue #2540920: connectivity issues with tripit/pandora
Need to be sure to compute gids when SD card is mounted, since we
need the package info for that.  Note that this is not re-granting
permissions (and in the future we could optimize this to just pass
through the mounted apps).

Change-Id: I51e1c23d17a6429642132902ef75c65a307fc33a
2010-03-24 12:59:52 -07:00
Amith Yamasani
1c9f1c6323 Merge "Asset update for key feedback bubble - removes edge artifact." 2010-03-24 12:43:28 -07:00
Amith Yamasani
8db3ed3e5f Asset update for key feedback bubble - removes edge artifact.
Bug: 2511111
2010-03-24 12:40:19 -07:00
Leon Scroggins
e77852c885 Do not provide a way to use an AsyncTask from a non main thread.
Fix for http://b/issue?id=2539948

This public API can be called from any thread, so do not use an
AsyncTask.  In a separate changelist, the caller now uses an
AsyncTask instead.

Change-Id: I646950964323f8c749f9aa2176226561c6f2b21f
2010-03-24 15:11:13 -04:00
Dianne Hackborn
241cd54d7f Merge "Maybe fix #2422586: Native crash in android_os_Parcel_closeFileDescriptor() killed the phone process" 2010-03-24 12:10:31 -07:00
Kenny Root
c9f3088036 Use correct API version for UTF-8 checking
Use the constant for checking the API version in aapt instead of a bare
number.

Bug: 2541326
Change-Id: Ice7af7b393363a00f1832dd84753b8138d057fb4
2010-03-24 12:05:24 -07:00
Patrick Scott
f60ce402dd Remove old asset.
Change-Id: I5b4bdb6b038bba3eb2f03c6f53541d99fab0bad5
2010-03-24 14:28:55 -04:00
Steve Block
ea08c51354 Fixes XHR requests to use the username and password supplied from JavaScript
Currently, the browser does not use the credentials supplied from JavaScript.
If a request returns a 401 Unauthorized, the browser always prompts the user.
This violates http://www.w3.org/TR/XMLHttpRequest/#the-send-method

Bug: 2533522
Change-Id: I8e72c1a0be187d193c4ad6b2ca8a624c7ae06fa1
2010-03-24 18:22:32 +00:00
Steve Block
4d4923460d Merge "Fixes synchronous XHR requests which require authentication to complete synchronously" 2010-03-24 11:07:59 -07:00
Andreas Huber
3949c6090a Merge "Enable early termination of the prefetcher's preparation phase." 2010-03-24 11:05:46 -07:00
Steve Block
c76bfa5bb5 Fixes synchronous XHR requests which require authentication to complete synchronously
Bug: 2540515
Change-Id: I58eebdf2db9388f66c75d86dc26b8055f513b038
2010-03-24 17:49:42 +00:00
Brad Fitzpatrick
722802e76b Log database lock contention as well (as seperate pseudo-queries).
This also makes the 500ms logging threshold (over which is always
logged, and under which is sub-sampled) configurable via a
SystemProperty, which is mostly useful for interactive debugging when
lock contention is suspected, but could also be useful in the future
as a quick way to adjust this threshold for dogfooders, without code
changes.

Change-Id: I769069d8d870331d89a4aa3239ba50db806fe4d4
2010-03-24 10:45:58 -07:00
Suchi Amalapurapu
e6d4f34d79 Merge "Clean up stale containers if needed at install time. This is needed when restoring applications installed on sdcard via Market after a data wipe. The stale containers need to be cleaned up before reinstalling again. Add a test case for installing when a stale container exists." 2010-03-24 10:43:59 -07:00
Fred Quintana
1f343ebed1 Merge "fix bug where sync settings set lost upon upgrade from donut and eclair to froyo" 2010-03-24 10:39:28 -07:00
Fred Quintana
fb084400d6 fix bug where sync settings set lost upon upgrade from donut and eclair
to froyo

- intepret a missing syncavble attribute from donut as "unsynced"
  rather than the traditional "true"
- copy the sync settings from the authorities "contacts" and "calendar"
  to "com.android.contacts" and "com.android.calendar" if the latter
  don't already have settings
- delay the database cleanup until after boot completed, which will give
  the GoogleLoginService accounts migration code a chance to run; this
  was causing all the settings to get removed upon a donut to froyo upgrade

Change-Id: I8795e97ba0c9b930d1a50784229ca9ab15dff9d2
http://b/issue?id=2531359
2010-03-24 10:37:40 -07:00
Suchi Amalapurapu
c7537ee7b6 Clean up stale containers if needed at install time.
This is needed when restoring applications installed on sdcard
via Market after a data wipe. The stale containers need to be cleaned up before
reinstalling again.
Add a test case for installing when a stale container exists.

Change-Id: I20c30b3003e85fb31531dd3cf9cb59962fe8fe5f
2010-03-24 10:32:37 -07:00
Vasu Nori
cbac8ac6d4 Merge "when corruption occurs, log a warning before closing db" 2010-03-24 10:11:19 -07:00
Mike Lockwood
8449d2130d Merge "Wait until GpsLocationProvider is fully initialized before returning from the constructor." 2010-03-24 09:53:03 -07:00
Mike Reed
8f9268d15a Merge "If we detect a 9patch chunk, force the config chooser to avoid 565, with its pre-dithering madness" 2010-03-24 09:45:58 -07:00
Andreas Huber
f71daba4cd Enable early termination of the prefetcher's preparation phase.
Change-Id: I929ac9b0fd0b6ebd98c1bc56be18ac8f8378d48c
related-to-bug: 2537407
2010-03-24 09:42:21 -07:00
Mike Lockwood
8909631710 Wait until GpsLocationProvider is fully initialized before returning from the constructor.
Otherwise we are left with a race condition that might result in the provider
being called before it is ready.

BUG: 2539392
Change-Id: I05f4a2501c43d5fa95c0e68f5a963015cf9c6e8f
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-24 12:38:42 -04:00
Suchi Amalapurapu
b43bdf41f1 Merge "Add new activity manager method to get list of running applications installed on sdcard. Use new method in UsbStorageActivity. Fix moving dex files. moveDex should be suffixed with LI since it uses Installer" 2010-03-24 08:34:31 -07:00
Leon Scroggins
1bb1a911c3 If failUrl(now historyUrl) is null, use "about:blank" instead of "".
This prevents a crash that is caused by calling
WebView.loadDataWithBaseUrl with a null failUrl (which I have renamed
to historyUrl).  Also update the docs to be more accurate.

Fixes the general case of bug 2522457

Change-Id: I832351ce1e0016b00e924a2f9b0097ae15fba34a
2010-03-24 10:25:40 -04:00
Mike Reed
39f10ec7da If we detect a 9patch chunk, force the config chooser to avoid 565, with its pre-dithering madness
Change-Id: I0a2d1b094ccb16d479524779acec0216dc7a80ee
2010-03-24 10:12:35 -04:00
Leon Clarke
7f49b9e474 Merge "Fix for when flash loads cached crossdomain.xml files. Cache the x-permitted-cross-domain-policies header. http://b/issue?id=2519669" 2010-03-24 05:09:53 -07:00
Dianne Hackborn
186683923c Maybe fix #2422586: Native crash in android_os_Parcel_closeFileDescriptor()
killed the phone process

Try to make sure we never have a ParcelFileDescriptor with a null
FileDescriptor.  That is just wrong.

Change-Id: Ib779ad1852dd239827797cd8f93505bfe6157e58
2010-03-23 22:10:55 -07:00
Jack Palevich
99e91114a0 Merge "GLSurfaceView: Log egl failures" 2010-03-23 21:20:42 -07:00
Mathias Agopian
ff21e3776d Merge "another small step towards fixing [2501808] sapphire: OOM in GPU Surface area" 2010-03-23 20:17:13 -07:00
Neal Nguyen
d0f11ea9fd Merge "Adding some automated tests for apps on SD (and their corresponding apps)." 2010-03-23 18:31:26 -07:00
Neal Nguyen
7cbb92dff7 Adding some automated tests for apps on SD (and their corresponding apps).
Change-Id: I3af1a2d8fb658087c6945b2eb2b4233becb6053f
2010-03-23 18:27:59 -07:00
Jack Palevich
07353a1e85 GLSurfaceView: Log egl failures
Decode the EGL error code when throwing exceptions.
2010-03-23 17:57:41 -07:00
Mathias Agopian
f5e32f33ed another small step towards fixing [2501808] sapphire: OOM in GPU Surface area
release the Surface in SurfaceView when it's not visible, after it comes back from relayout(),
it should not be holding buffers at this point, but it's cleaner to have it in the released state.

also log a warning in Surface.finalize() when there is work to do, as it means Surface.release() wasn't
called when it should have.

Change-Id: Id637d4ec2916d8fd800b0344d8dec6cecce02051
2010-03-23 17:51:59 -07:00
Adam Powell
484c8a2887 Merge "Fix bug 2531732 - DateTimeView explodes on bad system date format." 2010-03-23 17:40:02 -07:00
Adam Powell
f3311c940a Fix bug 2531732 - DateTimeView explodes on bad system date format.
Fall back to a default date format instead of throwing an exception.

Change-Id: I827a81d9610ea7f9243c1c33579e7a5d3b423692
2010-03-23 17:32:41 -07:00
Christopher Tate
395f512646 Merge "Return the right thing from Context.getApplicationContext()" 2010-03-23 17:26:09 -07:00