9136 Commits

Author SHA1 Message Date
Jaikumar Ganesh
ae58f6d747 Merge "Add an API to set the link timeout." 2010-03-09 16:56:36 -08:00
Jaikumar Ganesh
b7e029d03c Add an API to set the link timeout.
This fixes the problem where the car dock is
powered on and off pretty quickly.

Change-Id: I8724641b8c337019f089b005cb236fc90549cf6f
2010-03-09 16:51:09 -08:00
Brad Fitzpatrick
104798b706 Merge "Speed up ContentProvider.query() in simple case by ~30%" 2010-03-09 16:42:44 -08:00
Adam Powell
d274979739 Merge "Fix ListView filter popups when window focus changes" 2010-03-09 15:38:56 -08:00
Adam Powell
97566043af Fix ListView filter popups when window focus changes
Change-Id: I8c468900d5dd4d8d82308e2bed3bf992b6c803c7
2010-03-09 15:34:09 -08:00
Brad Fitzpatrick
9ffdfa0c23 Speed up ContentProvider.query() in simple case by ~30%
When query() uses bulkQuery() and we know we're going to need some
metadata right afterwards (number of rows and column index of _id, if
present), just asked for it in the initial binder transaction instead
of immediately fetching it again.

Also, this defers loading column names until the client asks for them.

This gets down the simpler (and very common) use cases of
ContentProvider.query() down to 3 binder calls:

   QUERY_TRANSACTION to android.content.ContentProvider$Transport
   GET_CURSOR_WINDOW_TRANSACTION to android.database.CursorToBulkCursorAdaptor
   CLOSE_TRANSACTION to android.database.CursorToBulkCursorAdaptor

More can still be done, but this is a good bite-sized first piece.

Change-Id: I7ad45949f53e0097ff18c2478d659f0f36929693
2010-03-09 15:20:21 -08:00
Mike Lockwood
17bc415ded Merge "Add new shutdown observer for MountService. Use new observer before rebooting and shutting down. Add some unit tests for unmount and shutdown code paths Fix registering/unregistering part in MountService Use ShutdownThread in PowerManager.reboot() Add reboot support to ShutdownThread. Remove MountService code from PowerManagerService.java and Power.java. Clean shutdown/reboot is handled exclusively by ShutdownThread now." 2010-03-09 14:50:18 -08:00
Grace Kloba
1596136562 Merge "Add an api to set WebView over scroll background." 2010-03-09 14:20:34 -08:00
Adam Powell
7e93cde228 Merge "Fix bug with AbsListView position scrolling" 2010-03-09 14:19:47 -08:00
Suchi Amalapurapu
6ffce2e9a3 Add new shutdown observer for MountService.
Use new observer before rebooting and shutting down.
Add some unit tests for unmount and shutdown code paths
Fix registering/unregistering part in MountService
Use ShutdownThread in PowerManager.reboot()
Add reboot support to ShutdownThread.
Remove MountService code from PowerManagerService.java and Power.java.
Clean shutdown/reboot is handled exclusively by ShutdownThread now.

Change-Id: Iefb157451d3d9c426cb431707b870a873c09123d
2010-03-09 17:00:18 -05:00
Wu-cheng Li
c10275abd6 Document new preview callback methods more clearly.
bug:2358064
Change-Id: If6af1fbf81b78b2a7ad98ce2c398145fd33200ce
2010-03-09 13:55:27 -08:00
Adam Powell
fee20911e3 Fix bug with AbsListView position scrolling
Change-Id: I91338f0533178417c874325f5f126d1b5fbb5f92
2010-03-09 13:45:21 -08:00
Vasu Nori
90ebc55f35 Merge "add REPLACE to the list of cached sql stmnts" 2010-03-09 13:42:20 -08:00
Grace Kloba
2d17e1d212 Add an api to set WebView over scroll background.
If the WebView doesn't support zoom, or WebView does
not use wide viewport and horizontal is just fit,
don't do over scroll.

Fix http://b/issue?id=2498403
Fix http://b/issue?id=2497901
2010-03-09 13:14:04 -08:00
Vasu Nori
8648e37f82 add REPLACE to the list of cached sql stmnts 2010-03-09 12:33:39 -08:00
Robert Greenwalt
1c6743c40f Merge "Re-add tethered notification to framework." 2010-03-09 11:55:53 -08:00
Adam Powell
637c0dce32 Merge "Restore old/buggy behavior of ListView.getCheckItemIds() for adapters without stable IDs to support legacy code." 2010-03-09 11:55:05 -08:00
Leon Scroggins
7a37587664 Set mShiftIsPressed properly when the focus is a plugin.
Fix for http://b/issue?id=2484986

Change-Id: I3140c3c3a0bd44af85939aceb0bbd07c0861cde4
2010-03-09 14:52:40 -05:00
Adam Powell
463ceff8a4 Restore old/buggy behavior of ListView.getCheckItemIds() for adapters without stable IDs to support legacy code.
Change-Id: I4c6a15e5a224bc5e84949ceb4df17154a2874d20
2010-03-09 11:50:51 -08:00
Vasu Nori
f53774bce6 Merge "modify comments to be more accurate" 2010-03-09 11:46:57 -08:00
Andreas Huber
6692239a23 Merge "Fix a typo in VideoView.java that disabled the seek-back button by default." 2010-03-09 11:43:31 -08:00
Vasu Nori
afe806a4a3 modify comments to be more accurate 2010-03-09 11:37:52 -08:00
Grace Kloba
c2242f2b5f Rewrite the WebView touch to support Flash.
When a page is loaded, Flash won't be the touch target.
This is ensured by another CL in external/webkit. When
user taps or uses nav key to make the Flash to be the
document focused node, it will take all the touch
events without time out. If Flash didn't call prevent
default, these touch events will be reprocessed by
the Browser. For double tap and long press, Browser
needs to detect and generate them for Flash.

While Flash is in full screen mode, it will take all
the touch events. If Flash doesn't consume them, they
won't be reprocessed by the Browser. Browser does need
to detect and generate the special events like double
tap and long press for full screen Flash.

Here are changes made for JavaScript touch events.

1. preventDefault on touchMove works now. If the author
calls preventDefault on touchStart, UI will not handle
this touch sequence. If the author didn't call preventDefault
on touchStart, it can call preventDefault on the first
touchMove to prevent UI from panning the page. We
currently do not support alternating preventDefault
during touchMove.

2. The first touchMove is only sent when the movement
is more than the system slop. There was a bug introduced by
https://android-git.corp.google.com/g/#change,42848
where the touch events are not sent to WebCore if 
preventDefault is called. This is fixed now.

3. Move sending TOUCH_EVENT to WebCore into each state.
So if user stops a fling and continue drag, it won't
send the touch_down as we are in drag mode.

4. Remove event time as Adobe doesn't need it any more

Fix http://b/issue?id=2438503
Fix http://b/issue?id=2478701
Fix http://b/issue?id=2390587
2010-03-09 11:33:51 -08:00
Robert Greenwalt
a599fe7c0d Re-add tethered notification to framework.
Add new artwork and string.

Change-Id: I9c4b2b4bdbd10ee9355c3a7ca81b29fba3b5830c
2010-03-09 11:20:13 -08:00
Wu-cheng Li
5b9bcda3a2 Unhide new preview callback methods.
bug:2358064
Change-Id: If9655ae8b7622ea6fc51e0054cfac7451962be66
2010-03-09 11:11:47 -08:00
Jean-Michel Trivi
f4743a869d Merge "Fix bug 2481825 When TTS is synthesizing to a file, return an error if the file cannot be created." 2010-03-09 10:31:30 -08:00
Andreas Huber
2869e952c6 Fix a typo in VideoView.java that disabled the seek-back button by default.
Change-Id: I23a9423b20646529b652e23349266a3291981484
related-to-bug: 2498317
2010-03-09 10:26:13 -08:00
Andrei Popescu
6509662adb Merge "Make sure access to WebView::mWebViewCore is synchronized." 2010-03-09 10:06:23 -08:00
Andrei Popescu
0409857f8f Make sure access to WebView::mWebViewCore is synchronized.
Fix bug: 2498784
2010-03-09 18:04:35 +00:00
Ficus Kirkpatrick
1898a9dbc9 Merge "Add a LOG_TAG for android.graphics.Graphics JNI." 2010-03-09 10:01:00 -08:00
Ficus Kirkpatrick
1a9c27c312 Add a LOG_TAG for android.graphics.Graphics JNI.
It occasionally logs when it fails an allocation but wasn't
defining one before.

Change-Id: Ifc41addc870eb126616ad44465638423d51568d9
2010-03-09 10:00:31 -08:00
Suchi Amalapurapu
abf19abe48 Merge "Add conditions to check for updated system applications. Restrict them to internal flash only even before we copy." 2010-03-09 09:58:40 -08:00
Fred Quintana
f0fd8436b3 - add verbose logging to the authenticator
- fix a bug in AccountManager.getAuthTokenByFeatures() where getAuthToken()
  isn't called after adding the account when necessary
2010-03-09 09:45:16 -08:00
Suchi Amalapurapu
a2b6c3775e Add conditions to check for updated system applications. Restrict them
to internal flash only even before we copy.

Return error codes when install flag options mismatch.
Some conditions for existings apps
 - install flags override existing location
 - explicity manifest option install location overrides previous location
 - if upgraded package's install location is unspecified or auto, fall
   back to recommended install policy which considers user setting as well.

Check for sdcard status before finding available size on sdcard
Add light weight parsing for manifest attributes including package name and
install location only

Change-Id: I5143dda87c88c595f564b317326c926d0ec3ceb8
2010-03-09 09:24:35 -08:00
Leon Scroggins
3dc02fecbe For flash trackball, send several downs followed by a single up.
Change-Id: I2ca892bc409372ab1389f2da8254f13b2d84351c
2010-03-09 11:27:34 -05:00
Cary Clark
31b8367570 requestChildRectangleOnScreen takes layers into account
Call native LayerAndroid::subtractLayers so
the layers can be removed from the visible portion of the screen
when computing how much to scroll.

companion fix in external/webkit

Change-Id: Ib441b826ab5b2baaba20f41f392848a28a9e09ee
http://b/2453841
2010-03-09 10:00:30 -05:00
Brad Fitzpatrick
f19d43d880 Merge "Fix Parcel leak in ContentProvider.call()" 2010-03-08 22:18:52 -08:00
Brad Fitzpatrick
dfb437e17c Fix Parcel leak in ContentProvider.call()
This manifested itself as memory allocation and Binder failures during
my load testing / benchmarking.

BUG=2498615

Change-Id: I260fd916f97777fc98bee98d10474f12deb21dee
2010-03-08 22:12:49 -08:00
Dmitri Plotnikov
4a8a310aae New (hidden) API for ContactsProvider status.
Bug: 2498528
Change-Id: I95ab8b68c3d3caa5698e79c60ccb9794091e8b8a
2010-03-08 19:43:21 -08:00
Dan Morrill
50ab63f583 Adding definitions & APIs for features that are newly-optional in FroYo.
This also refactors the files containing the features so that they are more
modular. Note that this also changes data/etc/Android.mk so that
required_hardware.xml is NOT copied automatically for all devices
anymore. Accordingly, that file is removed.
2010-03-08 19:28:28 -08:00
Adam Powell
eb6a592a28 Merge "Fix issues with ListView.smoothScrollBy" 2010-03-08 19:11:16 -08:00
Adam Powell
029cfbd6f2 Fix issues with ListView.smoothScrollBy
Change-Id: I4a2752c56a1d2ad3227644f764d6be7a02c9eb8d
2010-03-08 19:07:14 -08:00
Dmitri Plotnikov
c4e26a5c99 Merge "Showing phonetic name in the contact header." 2010-03-08 18:04:24 -08:00
Romain Guy
56ec3c888a Merge "Fix scrolling bug in AutoCompleteTextView. Bug #2495033" 2010-03-08 17:46:36 -08:00
Romain Guy
3e14168500 Fix scrolling bug in AutoCompleteTextView.
Bug #2495033

This fixes various issues. ACTV would sometimes not update its popup to match
its size/location.

Change-Id: Ic662bddf40e49b09482b15ff91666be3709da1d5
2010-03-08 17:44:40 -08:00
The Android Open Source Project
9161e202d1 merge from open-source master
Change-Id: I66d3db4c9ed3f54ce17a8d64ca0c6cce6941cdaa
2010-03-08 17:14:25 -08:00
Daniel Lehmann
f1f90d4aba Merge "Expose the Uri of the newly created contact Bug: 2448065" 2010-03-08 17:10:03 -08:00
Eric Fischer
2ba1af34f9 Merge "Guard against calls to getTextAfterCursor() in text that has no cursor." 2010-03-08 16:59:48 -08:00
Dianne Hackborn
2509d3c11f Clear active password in device admin when password is cleared.
Fixes issue #2480213: DevicePolicyManagerService returning true
for isActivePasswordSufficient even though the current password
on the device is not sufficient.

Change-Id: I3cb11311d8696670726d969712a63a7c00cd1ce4
2010-03-08 16:48:23 -08:00
Jean-Michel Trivi
b21651c10c Fix bug 2481825
When TTS is synthesizing to a file, return an error if the file
cannot be created.
2010-03-08 16:45:00 -08:00