19407 Commits

Author SHA1 Message Date
Christopher Tate
4528186e0d Refactor android.backup => android.app.backup
Change-Id: I0b21316ff890d7f3c7d4b82837bb60670724c2e8
2010-03-05 16:27:15 -08:00
Adam Powell
931bf89d32 Merge "Added accessors for view overscroll modes" 2010-03-05 14:48:06 -08:00
Suchi Amalapurapu
43dcdb2ec5 Merge "Add null checks for strings" 2010-03-05 13:24:06 -08:00
Mark Wagner
9277c6d972 Merge "don't assume Cursor.getExtras returns non-null" 2010-03-05 13:08:13 -08:00
Mike Lockwood
d4650a50cb Merge "Keep screen on when in car mode and the device is powered." 2010-03-05 13:07:10 -08:00
Grace Kloba
c0068adc86 Merge "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." 2010-03-05 13:06:15 -08:00
Mike Lockwood
e29db6a2d2 Keep screen on when in car mode and the device is powered.
BUG: 2477103

Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-05 15:44:22 -05:00
Brad Fitzpatrick
3bfce8385a Merge "Add "call" method on ContentProvider." 2010-03-05 12:19:50 -08:00
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
Mike Lockwood
c126010dc4 Merge "Disable the keyguard when in car mode" 2010-03-05 12:07:25 -08:00
Mike Lockwood
924e164a83 Disable the keyguard when in car mode
BUG: 2367912

Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-05 15:05:47 -05:00
Ed Heyl
cd47f11dfa Merge "Change an aapt "warning" from "*** " to "**** " (from three to four stars). "*** " (three stars and a space) is the 'magic make error string'; so this change makes it easier to find the real issues/errors in build logs. Besides, other aapt messages are "**** "." 2010-03-05 11:59:58 -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
Suchi Amalapurapu
9444bea903 Add null checks for strings 2010-03-05 11:37:57 -08:00
Adam Powell
51c5a0c50e Added accessors for view overscroll modes 2010-03-05 11:28:16 -08:00
Ed Heyl
65e185b51e Change an aapt "warning" from "*** " to "**** " (from three to four stars).
"*** " (three stars and a space) is the 'magic make error string'; so this change makes it
easier to find the real issues/errors in build logs.  Besides, other aapt messages are "**** ".
2010-03-05 11:24:35 -08:00
Xavier Ducrohet
ee2b21dba2 Merge "Fix potential aapt crash when processing overlay." 2010-03-05 11:22:40 -08:00
Xavier Ducrohet
83f4c0994f Fix potential aapt crash when processing overlay.
If an overlay has a type of resources that's not defined in
the main res pool, then aapt would crash.

This dynamically create new ResourceTypeSet when needed
when processing the overlays

Change-Id: I67bc3622281bde73cf42f37a0983798d3f658ce2
2010-03-05 11:11:28 -08:00
Andreas Huber
bda5780d39 Merge "Instead of allocating the decoder instances in response to a call to setDataSource, postpone allocation to the preparation phase where it belongs." 2010-03-05 11:00:36 -08: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
Andreas Huber
3ac94efc21 Instead of allocating the decoder instances in response to a call to setDataSource, postpone allocation to the preparation phase where it belongs.
related-to-bug: 2492205
2010-03-05 10:42:10 -08:00
Mark Wagner
4d891d173a don't assume Cursor.getExtras returns non-null 2010-03-05 10:39:44 -08:00
Suchi Amalapurapu
6d141b0a9b Merge "Fix persisting flags for apps with data only Force gc's before deleting containers.:" 2010-03-05 10:36:15 -08:00
Christopher Tate
f25269398e Merge "Calculate bitmask array sizes correctly in the EventHub" 2010-03-05 10:22:35 -08: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
Andreas Huber
d197431279 Merge "NPR's audio streams start with a 30sec segment whose mp3 headers are subtly different from those following. Allow certain bits to vary that were thought to be fixed before." 2010-03-05 09:33:29 -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
Mike Reed
e354bba55d Merge "return false if any exception is thrown from savePicture" 2010-03-05 07:30:16 -08:00
Mike Lockwood
a9489f8855 Merge "fix NullPointerException if location is not set." 2010-03-05 07:23:06 -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
Bernd Holzhey
c44c6d038d fix NullPointerException if location is not set.
Bug: http://b/issue?id=2490154
2010-03-05 14:13:29 +01:00
James Dong
ff846009ec Unhide CamcorderProfile and CameraProfile Java API
bug - 2375978
2010-03-04 21:49:35 -08:00
Robert Greenwalt
1533020321 Merge "Update framework tethering UI" 2010-03-04 18:47:24 -08:00
Mike Lockwood
ab2628c23d Merge "Remove the ProximityAlerts update Receiver when the last ProximityAlert expires. Fixes issue 6900." 2010-03-04 18:32:37 -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
Suchi Amalapurapu
d32c8020dd Fix persisting flags for apps with data only
Force gc's before deleting containers.:
2010-03-04 18:16:17 -08:00
Sean Foy
8fff645147 Remove the ProximityAlerts update Receiver when the last ProximityAlert expires.
Fixes issue 6900.

Change-Id: Ifcd3fa9c34cfca02ed5e7a94aded33984ac81c60
Signed-off-by: Mike Lockwood <lockwood@android.com>
2010-03-04 21:05:51 -05:00
Dan Egnor
50490adfdc Merge "Improve watchdog diagnostics." 2010-03-04 17:37:16 -08:00
Dan Egnor
9bdc94b7a4 Improve watchdog diagnostics.
Capture stack traces from the system process using the same
mechanism as ANRs (which will initialize traces.txt, etc).
Also record the watchdog reset in the dropbox for uploading.

Bug: 2475557
2010-03-04 17:31:27 -08:00