9132 Commits

Author SHA1 Message Date
Brad Fitzpatrick
1877d0158b Add "call" method on ContentProvider.
This permits implementing interfaces which are faster than using
remote Cursors.  It then uses it for Settings & SettingProvider, which
together account for ~50% of total ContentProvider event loop stalls
across Froyo dogfooders.

For fetching Settings this looks like it should reduce average
Settings lookup from 10 ms to 0.4 ms on Sholes, once the
SettingsProvider serves most gets from in-memory cache.  Currently it
brings the Sholes average down from 10ms to 2.5 ms while still using
SQLite queries on each get.
2010-03-05 12:08:39 -08:00
Grace Kloba
d7625dd281 Adding over scroll to webview. We will always apply
over scroll vertically. In horizontal direction, if
the page can't be zoomed and the current content just
fit, we will not do over scroll.

Per UI request, only draw the shadow when title bar
is not visible.
2010-03-05 11:51:02 -08:00
Adam Powell
51c5a0c50e Added accessors for view overscroll modes 2010-03-05 11:28:16 -08:00
Valentin Kravtsov
5fcea7e317 Fixing: Position of right button edge is different for VS
bug fix for: http://b/issue?id=2491958

Position of right button edge is different for voice search and Go button in search dialog

STEPS TO REPRODUCE:
1. Open Browser (or Maps)
2. Press search button
3. Look at right edge of voice search button and type 'a'

EXPECTED RESULTS:
The edge of the button does not move

OBSERVED RESULTS:
The edge of the button moves slightly to the left when text is entered.

Change-Id: I92709c14faf1a88c40c5070a23b5e81e01bcff47
2010-03-05 19:22:30 +00:00
Dianne Hackborn
7299c41630 Refactor car mode.
Extract all UI behavior from dock observer and ACTION_DOCK_EVENT.

Also introduce a desk type to go along with the car type all through
the resource system, since we now need to have corresponding high-level
broadcasts for desk dock mode.  As part of that I also reworked some
of the logic for switching modes to all funnel through a single
update() call that looks all of the current state to decide what to
do next, and fixed various locking issues.

In addition I found there were bugs in the configuration change
handling causing us to only switch into the car mode config and
then never get out of it.  Unfortunately now that we are actually
changing the configuration for each mode change, the transitions
between them are really crummy as we restart all kinds of
activities. :(
2010-03-05 10:57:47 -08:00
Mark Wagner
4d891d173a don't assume Cursor.getExtras returns non-null 2010-03-05 10:39:44 -08:00
Steve Block
76619af64c For synchronous loads, load file URLs in the WebCore thread, rather than in the new WebViewWorker thread
This fixes the layout test failure in fast/xmlhttprequest/xmlhttprequest-html-response-encoding.html

Bug: 2218794
Change-Id: If86c5dbb72b21400bd0fb6981de1a6fdf9b40fe7
2010-03-05 18:39:30 +00:00
Gloria Wang
3b7991efec Merge "Release mediaplayer if the current state is not suspending. Fix for bug 2480093." 2010-03-05 10:22:04 -08:00
Gloria Wang
efb882cf75 Release mediaplayer if the current state is not suspending. Fix for bug 2480093. 2010-03-05 10:14:33 -08:00
Vasu Nori
16d8cf905b Merge "provide databasename to the logging func registration func" 2010-03-05 10:06:48 -08:00
Ben Murdoch
9a823c4d81 Merge "It is possible that we may get a call from WebCore that the first layout has completed before we've successfully syncd the webview dimensions from Java to native and in this case, we end up syncing a height of 0 to WebKit. This causes hit detection to fail, as WebKit thinks we have a 0-height visible area. This patch fixes this scenario by syncing the height of the webview back to WebKit in the case that the first layout comes back before we've sent our dimensions." 2010-03-05 09:42:06 -08:00
Shimeng (Simon) Wang
065efeb6ec Merge "Squashed commit of the following:" 2010-03-05 09:40:42 -08:00
Ben Murdoch
d1bee05d64 It is possible that we may get a call from WebCore that the first layout has
completed before we've successfully syncd the webview dimensions from Java to
native and in this case, we end up syncing a height of 0 to WebKit. This causes
hit detection to fail, as WebKit thinks we have a 0-height visible area. This
patch fixes this scenario by syncing the height of the webview back to WebKit
in the case that the first layout comes back before we've sent our dimensions.

Fix for b/2449863

Change-Id: Id72c37b17411f3409edc7104d83ca5ffd17ab09b
2010-03-05 17:25:44 +00:00
Chih-Chung Chang
540bc0348a Unhide reconnect() in Camera. 2010-03-05 09:24:42 -08:00
Shimeng (Simon) Wang
1c02c6a7d8 Squashed commit of the following:
commit 35ade1c72b5fe34c177712108ccbc070eab11a87
Author: Shimeng (Simon) Wang <swang@google.com>
Date:   Thu Mar 4 16:29:01 2010 -0800

    Alternative way to fix the history picture drawing issue.

    Disable zoom part for history picture mode.

    Bug: 2462039

commit 1a27acaa36c60546e5e6b2e1caf4ce5488dad14b
Author: Shimeng (Simon) Wang <swang@google.com>
Date:   Thu Mar 4 16:06:41 2010 -0800

    Use the screen width to derive the desired scale.

    This is to fix the history picture draw issue.  Since the mActualScale
    will be changed in some other places.

    Bug: 2462039
2010-03-05 09:22:41 -08:00
Bjorn Bringert
33b167be34 Hide Go button in browser when no text is entered
Fixes http://b/issue?id=2485438

Change-Id: If3d6106eebb22d8b4a2d9aed8d3118c14fdbedde
2010-03-05 16:28:33 +00:00
Mike Reed
e354bba55d Merge "return false if any exception is thrown from savePicture" 2010-03-05 07:30:16 -08:00
Mike Reed
189e7355e6 return false if any exception is thrown from savePicture 2010-03-05 10:12:29 -05:00
Daniel Sandler
24e09b9957 New artwork for audio settings on keyguard and power menu.
Introduces new vibe-mode icons for GlobalActions and makes
other icons (volume & silent) consistent on GlobalActions
and the keyguard.

Change-Id: Ic9a04bb8929343faf6c33f5db9894b0c8febaa2d
2010-03-05 09:32:50 -05:00
Robert Greenwalt
1533020321 Merge "Update framework tethering UI" 2010-03-04 18:47:24 -08:00
Romain Guy
51ced54099 Merge "Do not select any item when the user clicks outside of the list content. Bug #2485544" 2010-03-04 18:30:52 -08:00
Romain Guy
090e0f08b9 Do not select any item when the user clicks outside of the list content.
Bug #2485544
2010-03-04 18:29:15 -08:00
Dmitri Plotnikov
28853c5f09 Merge "Adding a mime type for the phone lookup URI." 2010-03-04 18:28:00 -08:00
Robert Greenwalt
e7085e909d Update framework tethering UI
Getting rid of notification dialog - maybe the entire TetherActivity.
Also getting rid of toasts - to ephemeral.
2010-03-04 18:20:58 -08:00
Dmitri Plotnikov
0b0b8a8dae Adding a mime type for the phone lookup URI.
Bug: 2486764
Change-Id: I0077fff8af0044efc4c5322816768073636e072f
2010-03-04 18:20:08 -08:00
Fred Quintana
bcfcafe18c Merge "Defend against an unexpected null bundle that causes blockingGetAuthToken() to throw an NPE." 2010-03-04 17:12:39 -08:00
Romain Guy
55535c83fd Merge "Report an offset change in a live wallpaper when the wallpaper is resized. Bug #2489288" 2010-03-04 16:52:16 -08:00
Vasu Nori
bd29b7c2b7 provide databasename to the logging func registration func
this will allow sqlite to return this name, along with the message.
otherwise, sqlite logging messages are confusing without database
name to associate them with.
2010-03-04 16:16:03 -08:00
Romain Guy
04cde3413c Report an offset change in a live wallpaper when the wallpaper is resized.
Bug #2489288

Prior to this change, changing the display's orientation would not send an offset
change, which could cause live wallpapers relying on pixel offsets to display the
wrong position.
2010-03-04 16:07:49 -08:00
Irfan Sheriff
5321aef4a2 Wifi AP framework changes first pass
Bug: 2421638
Change-Id: Ic5ea8f7560a7fe5e1b0769daa5d92cc33eefc692
2010-03-04 16:07:14 -08:00
Debajit Ghosh
0dc59b00f2 switching from ro.secure to ro.debuggable for relaxing ssl cert check.
Conflicts:

	core/java/android/net/SSLCertificateSocketFactory.java
2010-03-04 15:25:48 -08:00
Amith Yamasani
f87900361e Merge "Show AutoCompleteTextView dropdown in Search dialog when cursor updates. Fixes b/2426929" 2010-03-04 14:45:16 -08:00
Amith Yamasani
defb1df520 Show AutoCompleteTextView dropdown in Search dialog when cursor updates. Fixes b/2426929
Calls onFilterComplete when the data set changes, so that it can recompute whether
the dropdown should be shown or not.
2010-03-04 14:29:54 -08:00
Eric Fischer
bf8a78f60c Merge "Import new translations" 2010-03-04 14:17:32 -08:00
John Wang
fc26c77f61 Update DSAC notification.
Update the notification string of CS restricted per DoCoMo's request. More restricted message string are added for future use.
2010-03-04 14:09:24 -08:00
Eric Fischer
7f2be9806e Import new translations 2010-03-04 14:02:53 -08:00
Fred Quintana
96580e0065 Defend against an unexpected null bundle that causes blockingGetAuthToken() to throw an NPE.
http://b/issue?id=2420608
2010-03-04 13:42:42 -08:00
Joe Onorato
1a31ae34a0 Merge "Fix typo. According to grep, this is the only place in the tree that has it." 2010-03-04 13:13:42 -08:00
Joe Onorato
8a051a4ec3 Fix typo. According to grep, this is the only place in the tree that has it. 2010-03-04 15:54:50 -05:00
Daniel Sandler
175ab23dbf Merge "Remove whitespace around UMS dialog artwork." 2010-03-04 11:58:38 -08:00
Daniel Sandler
88c81c5387 Remove whitespace around UMS dialog artwork.
Bug: 2483276
Change-Id: I3ac5b3e985fa47fb63d251ff0c4a6ed7abccb434
2010-03-04 14:57:31 -05:00
Dianne Hackborn
438865cd8c Merge "Fix some bugs." 2010-03-04 11:56:12 -08:00
Dianne Hackborn
20cb56e26e Fix some bugs.
Bug #2376231: Apps lose window focus (and back key causes ANR) if the
lock screen is dismissed while the phone is in landscape mode

This is another case where we weren't recomputing the focused window
after changing the visibility policy.

bug #2479958: Investigate source of "Resources don't contain package
for resource number 0x7f0a0000"

Um, okay, so it turns out there were bugs all over the place where
we would load an XML resource from a another application, but not
use the Resources for that application to retrieve its resources...!
I think the only reason any of this stuff was working at all was
because it typically only cared about retrieving the resource
identifiers of the items (it would look up the values later).

Bug #2401082: Passion ERE26 monkey crash - InputMethodManagerService

Add some null checks.
2010-03-04 11:52:14 -08:00
Vasu Nori
4c4106be3d Merge "a dbobject is closed twice and that causes incorrect warnings" 2010-03-04 11:47:12 -08:00
Vasu Nori
fb3803a360 a dbobject is closed twice and that causes incorrect warnings 2010-03-04 11:40:49 -08:00
Eric Fischer
89d6d00a8b Merge "Remove test annotations from tests requiring package-private access." 2010-03-04 11:40:34 -08:00
Doug Felt
8cb068a122 Remove test annotations from tests requiring package-private access. 2010-03-04 11:31:53 -08:00
Romain Guy
5997c05fe5 Merge "Update indeterminate progress bar assets. Bug #2469246" 2010-03-04 11:17:43 -08:00
Romain Guy
fd6c927a6d Update indeterminate progress bar assets.
Bug #2469246
2010-03-04 11:17:05 -08:00
Ray Chen
055c986ab8 Add location provider name to gps-processing-method in EXIF header. 2010-03-05 03:03:48 +08:00