OSDN Git Service

android-x86/frameworks-base.git
14 years agoFix bug 2605504 Don't leak a metric ton of NotificationPlayer threads
Jean-Michel Trivi [Tue, 27 Apr 2010 00:21:40 +0000 (17:21 -0700)]
Fix bug 2605504 Don't leak a metric ton of NotificationPlayer threads
The Looper on the thread created in order to be notified of the
playback completion of notification sounds, was never stopped, causing
the threads to stay around in wait state.
The fix consists in quitting the Looper used for the previous sound
when a new sound is started.

Change-Id: Ia4b3d16b5447ffafacc093db3a7fe05574089935

14 years agoMerge "Handle throttling being disabled via policy change" into froyo
Robert Greenwalt [Mon, 26 Apr 2010 18:13:11 +0000 (11:13 -0700)]
Merge "Handle throttling being disabled via policy change" into froyo

14 years agoSwitch to use software MP3 decoder
James Dong [Mon, 26 Apr 2010 17:23:30 +0000 (10:23 -0700)]
Switch to use software MP3 decoder
Hardware MP3 decoder could lead to hang in the Music application, although the chance is very low.

bug - 2608400

Change-Id: Ia0b5b6521015fc8d3e086117fa914dcc20ace5bd

14 years agoMerge "bugfix for: OOM error while doing voice search repeatedly" into froyo
Bjorn Bringert [Mon, 26 Apr 2010 14:52:57 +0000 (07:52 -0700)]
Merge "bugfix for: OOM error while doing voice search repeatedly" into froyo

14 years agoHandle throttling being disabled via policy change
Robert Greenwalt [Sat, 24 Apr 2010 00:35:29 +0000 (17:35 -0700)]
Handle throttling being disabled via policy change

bug:2622543
Change-Id: Ic0c169094cdb4f80af9cfcbed116f59fda46a421

14 years agoMerge "Restrict the range request to the servers claiming that they accept ranges...
Grace Kloba [Fri, 23 Apr 2010 23:19:22 +0000 (16:19 -0700)]
Merge "Restrict the range request to the servers claiming that they accept ranges. This may be too restrict as the spec says the server MAY set this in the response header. But this is the last minute change made in https://android-git.corp.google.com/g/#change,49444 I think it is safer to be conservative." into froyo

14 years agoRestrict the range request to the servers claiming
Grace Kloba [Fri, 23 Apr 2010 22:57:58 +0000 (15:57 -0700)]
Restrict the range request to the servers claiming
that they accept ranges. This may be too restrict as
the spec says the server MAY set this in the response
header. But this is the last minute change made in
https://android-git.corp.google.com/g/#change,49444
I think it is safer to be conservative.

Fix http://b/issue?id=2616477

14 years agoFix aapt to build in Windows SDK under Linux
Raphael [Tue, 13 Apr 2010 22:21:32 +0000 (15:21 -0700)]
Fix aapt to build in Windows SDK under Linux

(Merge master Change Ic4a7b9e4)

14 years agoMerge "Only honor the scrollbar mode at the minimum zoom level. This reduced the...
Grace Kloba [Fri, 23 Apr 2010 22:27:58 +0000 (15:27 -0700)]
Merge "Only honor the scrollbar mode at the minimum zoom level. This reduced the impact of https://android-git.corp.google.com/g/#change,48683. In GB, we need to revisit this issue." into froyo

14 years agoOnly honor the scrollbar mode at the minimum zoom
Grace Kloba [Fri, 23 Apr 2010 22:21:24 +0000 (15:21 -0700)]
Only honor the scrollbar mode at the minimum zoom
level. This reduced the impact of https://android-git.corp.google.com/g/#change,48683.
In GB, we need to revisit this issue.

Wit this CL, http://b/issue?id=2512549 is still fine.

Fix http://b/issue?id=2619398
It should fix http://b/issue?id=2619415 when it is not in zoom out case.
It doesn't fix http://b/issue?id=2620979 as the site
is a mobile site. We have conflict with the requirement
from http://b/issue?id=2512549

14 years agoMerge "Fix typo when parsing external platform version from Settings." into froyo
Dianne Hackborn [Fri, 23 Apr 2010 22:19:34 +0000 (15:19 -0700)]
Merge "Fix typo when parsing external platform version from Settings." into froyo

14 years agoMerge "Fix bug 2619062 Music is routed to Phone speaker, though it is connected to...
Jean-Michel Trivi [Fri, 23 Apr 2010 21:48:10 +0000 (14:48 -0700)]
Merge "Fix bug 2619062 Music is routed to Phone speaker, though it is connected to A2DP media profile" into froyo

14 years agoFix typo when parsing external platform version from Settings.
Bryan Mawhinney [Fri, 23 Apr 2010 13:38:31 +0000 (14:38 +0100)]
Fix typo when parsing external platform version from Settings.

May fix http://b/2569139

Change-Id: I437f614fd25512bd461812feddb091edcd12ccb7

14 years agoMerge "Fix issue #2621809: Kill! Kill! Kill!" into froyo
Dianne Hackborn [Fri, 23 Apr 2010 21:23:39 +0000 (14:23 -0700)]
Merge "Fix issue #2621809: Kill! Kill! Kill!" into froyo

14 years agoMerge "Re-enabling unit tests for PackageManager/Apps on SD." into froyo
Neal Nguyen [Fri, 23 Apr 2010 21:21:53 +0000 (14:21 -0700)]
Merge "Re-enabling unit tests for PackageManager/Apps on SD." into froyo

14 years agoFix issue #2621809: Kill! Kill! Kill!
Dianne Hackborn [Fri, 23 Apr 2010 21:20:03 +0000 (14:20 -0700)]
Fix issue #2621809: Kill! Kill! Kill!

Stop! Stop! Stop!  Spamming the log.

Change-Id: I13f432b49d8c85165873566d58e2fb2714b1263e

14 years agoFix bug 2619062 Music is routed to Phone speaker, though it is
Jean-Michel Trivi [Fri, 23 Apr 2010 18:49:29 +0000 (11:49 -0700)]
Fix bug 2619062 Music is routed to Phone speaker, though it is
connected to A2DP media profile

When the phone is docked and using the dock A2DP, and the user
connects another A2DP device, make the dock unavailable immediately
before connecting the new A2DP device.

Change-Id: I82d53836fb509ee4ea7cdb68f467dfb946c634f8

14 years agoMerge "Respond to changes in throttle policy." into froyo
Robert Greenwalt [Fri, 23 Apr 2010 20:50:03 +0000 (13:50 -0700)]
Merge "Respond to changes in throttle policy." into froyo

14 years agoRespond to changes in throttle policy.
Robert Greenwalt [Fri, 23 Apr 2010 20:15:44 +0000 (13:15 -0700)]
Respond to changes in throttle policy.

We were updating limits and such before, but we were not applying them
to the current situation if we were already throttled.  Now it can result in
us throttling or changing our throttle rate or unthrottling or even making
the ui come or go (disabling/enable throttling)

bug:2622543
bug:2619879
Change-Id: I64a62634d54f4768ab8625f8d72f9f66a239cb19

14 years agoMerge "Some debugging help for issue #2594388" into froyo
Dianne Hackborn [Fri, 23 Apr 2010 19:59:47 +0000 (12:59 -0700)]
Merge "Some debugging help for issue #2594388" into froyo

14 years agoRe-enabling unit tests for PackageManager/Apps on SD.
Neal Nguyen [Thu, 22 Apr 2010 20:54:32 +0000 (13:54 -0700)]
Re-enabling unit tests for PackageManager/Apps on SD.

Change-Id: I305d2e6d96418ab5b2df0ee7a31261180676204f

14 years agoMerge "Add a Throttle check shortly after boot." into froyo
Robert Greenwalt [Fri, 23 Apr 2010 17:17:14 +0000 (10:17 -0700)]
Merge "Add a Throttle check shortly after boot." into froyo

14 years agoSome debugging help for issue #2594388
Dianne Hackborn [Fri, 23 Apr 2010 01:59:03 +0000 (18:59 -0700)]
Some debugging help for issue #2594388

WallpaperService doesn't always call onSurfaceDestroyed()

Just helps us see a little better what is going on.

Change-Id: Ibe8efd9e343e880ca31df446c8b36c7fa3722e87

14 years agoMerge "bug #2618035: applying Moto's patch to fix a email/shortcode parsing bug....
Wei Huang [Thu, 22 Apr 2010 23:33:40 +0000 (16:33 -0700)]
Merge "bug #2618035: applying Moto's patch to fix a email/shortcode parsing bug." into froyo

14 years agoMerge "Fix issue #2619247: Music sometimes stops playing when navigation talks" into...
Dianne Hackborn [Thu, 22 Apr 2010 23:23:44 +0000 (16:23 -0700)]
Merge "Fix issue #2619247: Music sometimes stops playing when navigation talks" into froyo

14 years agoMerge "Fix issue #2608292: Fails to launch the video camera preview" into froyo
Dianne Hackborn [Thu, 22 Apr 2010 23:20:19 +0000 (16:20 -0700)]
Merge "Fix issue #2608292: Fails to launch the video camera preview" into froyo

14 years agoFix issue #2619247: Music sometimes stops playing when navigation talks
Dianne Hackborn [Thu, 22 Apr 2010 23:03:41 +0000 (16:03 -0700)]
Fix issue #2619247: Music sometimes stops playing when navigation talks

When a service transitions from foreground to background, we now push it
to the top of the LRU list.  Also fix the activity manager to take care
of killing processes if we go beyond a reasonable number of background
process to keep around.

Change-Id: Ic9f44c02af7a111ee6f1d06142386b301948bafe

14 years agoFix issue #2608292: Fails to launch the video camera preview
Dianne Hackborn [Thu, 22 Apr 2010 22:59:21 +0000 (15:59 -0700)]
Fix issue #2608292: Fails to launch the video camera preview

Need to clear the attached hidden flag on the window, even if it does
not yet have an actual surface.

Change-Id: I0a90f6b03cd8e347a3eae4d6bea3ab93f7128bf4

14 years agoMerge "Fix error code when media is filled up." into froyo
Suchi Amalapurapu [Thu, 22 Apr 2010 22:52:25 +0000 (15:52 -0700)]
Merge "Fix error code when media is filled up." into froyo

14 years agoAdd a Throttle check shortly after boot.
Robert Greenwalt [Thu, 22 Apr 2010 22:39:38 +0000 (15:39 -0700)]
Add a Throttle check shortly after boot.

Throttle is useless when ntp and imsi are not yet ready.  In the real world
the second check won't happen for 10 minutes letting people do what they want
for 10 minutes each boot.  Trim this down with a quicker first check.

bug:2614247
Change-Id: I84ec33f31e8fed37b3933482fbc187b8e9e94e79

14 years agobug #2618035: applying Moto's patch to fix a email/shortcode parsing bug.
Wei Huang [Thu, 22 Apr 2010 22:13:48 +0000 (15:13 -0700)]
bug #2618035: applying Moto's patch to fix a email/shortcode parsing bug.

Change-Id: Ica1df6582533edf8d9a5825dbe510eeab4828309

14 years agoRemove the WebTextView if it is drawing when it shouldn't.
Leon Scroggins [Thu, 22 Apr 2010 20:27:21 +0000 (16:27 -0400)]
Remove the WebTextView if it is drawing when it shouldn't.

Bug 2614064

Change-Id: Id5d0a27e862bb783299f6fa4863221a27318f52c

14 years agoFix error code when media is filled up.
Suchi Amalapurapu [Thu, 22 Apr 2010 20:22:17 +0000 (13:22 -0700)]
Fix error code when media is filled up.

Change-Id: Id8dae2e7c967e3f103aecd2f31abb7e292af8f1d

14 years agoMerge "Added the subset of partial content support so that we can continue the interr...
Grace Kloba [Thu, 22 Apr 2010 20:01:55 +0000 (13:01 -0700)]
Merge "Added the subset of partial content support so that we can continue the interrupted request to support streaming the content even with a brief disconnection." into froyo

14 years agoMerge "SDK: new 'bmgr' docs in the Dev Guide" into froyo
Christopher Tate [Thu, 22 Apr 2010 19:51:22 +0000 (12:51 -0700)]
Merge "SDK: new 'bmgr' docs in the Dev Guide" into froyo

14 years agobugfix for: OOM error while doing voice search repeatedly
Valentin Kravtsov [Wed, 21 Apr 2010 21:27:05 +0000 (22:27 +0100)]
bugfix for: OOM error while doing voice search repeatedly

fix for: http://b/issue?id=2599931

Change-Id: Ic27d9eb8b29afa99787e469d9248c20f7d2988de

14 years agoAdded the subset of partial content support so that
Grace Kloba [Thu, 22 Apr 2010 06:57:43 +0000 (23:57 -0700)]
Added the subset of partial content support so that
we can continue the interrupted request to support
streaming the content even with a brief disconnection.

Note: we don't update the headers for partial content
as the headers we care should not be updated. See
a list in chromium/net/http/http_response_headers.cc.

We currently also don't support cache for partial content.

Fix http://b/issue?id=2616477

14 years agoMerge "Trim throttle logs." into froyo
Robert Greenwalt [Thu, 22 Apr 2010 16:08:25 +0000 (09:08 -0700)]
Merge "Trim throttle logs." into froyo

14 years agoTrim throttle logs.
Robert Greenwalt [Thu, 22 Apr 2010 00:09:38 +0000 (17:09 -0700)]
Trim throttle logs.

Removing unwanted sntp logging and throttle logging.

bug:2614927
Change-Id: Ic0b1c3502ebbc1f04130d09d715591af6513f439

14 years agoMerge "Post a message to set SurfaceView to be visible when we switch to use the...
Grace Kloba [Thu, 22 Apr 2010 15:20:23 +0000 (08:20 -0700)]
Merge "Post a message to set SurfaceView to be visible when we switch to use the layout size. Otherwise it will first use the old dimension which can exceed the  limit, which in turn causes the Browser to crash." into froyo

14 years agoPost a message to set SurfaceView to be visible when
Grace Kloba [Thu, 22 Apr 2010 04:14:23 +0000 (21:14 -0700)]
Post a message to set SurfaceView to be visible when
we switch to use the layout size. Otherwise it will
first use the old dimension which can exceed the
limit, which in turn causes the Browser to crash.

Fix http://b/issue?id=2616263

14 years agoMerge "Fix security hole in Google backup transport registration" into froyo
Christopher Tate [Thu, 22 Apr 2010 01:10:20 +0000 (18:10 -0700)]
Merge "Fix security hole in Google backup transport registration" into froyo

14 years agoFix security hole in Google backup transport registration
Christopher Tate [Thu, 22 Apr 2010 00:58:07 +0000 (17:58 -0700)]
Fix security hole in Google backup transport registration

Previously, it was conceivable that a 3rd party application on a non-GED
device could publish a service that supported the (hidden) IBackupTransport
interface and spoofed the Google backup transport's package and component
name.  This could allow it to secretly intercept all data moved through the
backup mechanism.

Fix by ensuring that the package in question exists and is part of the
OS itself (FLAG_SYSTEM in its ApplicationInfo description) before binding
to it.

Fixes bug #2457063

Change-Id: I3487572be45c2014fa209beacfe3ac6f8270f872

14 years agoSDK: new 'bmgr' docs in the Dev Guide
Christopher Tate [Wed, 21 Apr 2010 21:32:53 +0000 (14:32 -0700)]
SDK: new 'bmgr' docs in the Dev Guide

Bug #2611397

Change-Id: If806e05bbaa55adb2b8483de08fb1af57bc69c35

14 years agoMerge "Add ILLEGAL_SIM_OR_ME error code." into froyo
John Wang [Wed, 21 Apr 2010 21:43:12 +0000 (14:43 -0700)]
Merge "Add ILLEGAL_SIM_OR_ME error code." into froyo

14 years agoAdd ILLEGAL_SIM_OR_ME error code.
John Wang [Wed, 21 Apr 2010 18:34:15 +0000 (11:34 -0700)]
Add ILLEGAL_SIM_OR_ME error code.

It is for bug 2571583 to provide better failure information of network operator selection.

Network selection returns ILLEGAL_SIM_OR_ME when the failure is
permanent and no retries needed, such as illegal SIM, ME, HRL config, etc.

Change-Id: Iaf70bef64d3cbf35e4d9915418cbb5b78607f73e

14 years agoAdd title to recent apps dialog.
Joe Onorato [Wed, 21 Apr 2010 17:59:50 +0000 (13:59 -0400)]
Add title to recent apps dialog.

Bug: 2614279

Change-Id: I45ebcd2e45140901df246db10f756c07864cccb4

14 years agoDO NOT MERGE fix [2557396] Adreno200: glDrawTexi() doesn't work with height <= 16
Mathias Agopian [Wed, 21 Apr 2010 04:55:40 +0000 (21:55 -0700)]
DO NOT MERGE fix [2557396] Adreno200: glDrawTexi() doesn't work with height <= 16

don't use glDrawTexi() anymore

Change-Id: If71334de39114b0edce7771366f8d8dc26f6911e

14 years agoMerge "Fix PM crash due to bad array bookkeeping logic." into froyo
Jeff Brown [Wed, 21 Apr 2010 00:53:00 +0000 (17:53 -0700)]
Merge "Fix PM crash due to bad array bookkeeping logic." into froyo

14 years agoMerge "Move Tethering off the ServerThread." into froyo
Robert Greenwalt [Wed, 21 Apr 2010 00:37:22 +0000 (17:37 -0700)]
Merge "Move Tethering off the ServerThread." into froyo

14 years agoFix PM crash due to bad array bookkeeping logic.
Jeff Brown [Wed, 21 Apr 2010 00:21:47 +0000 (17:21 -0700)]
Fix PM crash due to bad array bookkeeping logic.

Bug: 2586093
Change-Id: I320deeef65a434060e608015dc2dd97b8200e025

14 years agoMerge "Apparently select() does not immediately return if one of the masked socket...
Andreas Huber [Tue, 20 Apr 2010 23:29:23 +0000 (16:29 -0700)]
Merge "Apparently select() does not immediately return if one of the masked socket descriptors is closed... Stop relying on select for read-with-timeout functionality and use SO_RCVTIMEO socket option instead." into froyo

14 years agoMerge "Update AudioService to reflect phone state changes with AudioFocus. Phone...
Jean-Michel Trivi [Tue, 20 Apr 2010 22:57:30 +0000 (15:57 -0700)]
Merge "Update AudioService to reflect phone state changes with AudioFocus. Phone calls and rings are treated as a new client, with a dedicated client ID that identifies it in the audio focus stack. When it is present in the stack, others clients cannot request audio focus (request is denied). Because the phone state is now mostly handled like a new client, there is no need monitor mode changes and to keep track of undispatched focus changes, as those will delayed focus gains will now automatically happen at the end of the call when the phone client is removed from the focus stack." into froyo

14 years agoApparently select() does not immediately return if one of the masked socket descripto...
Andreas Huber [Tue, 20 Apr 2010 22:46:28 +0000 (15:46 -0700)]
Apparently select() does not immediately return if one of the masked socket descriptors is closed... Stop relying on select for read-with-timeout functionality and use SO_RCVTIMEO socket option instead.

Change-Id: Ic2d4a8f5b6bbf16772fba39377809ec68d249c1f
related-to-bug: 2611257

14 years agoMove Tethering off the ServerThread.
Robert Greenwalt [Tue, 20 Apr 2010 22:51:20 +0000 (15:51 -0700)]
Move Tethering off the ServerThread.

An ANR has been reported because somebody else was hogging the Netd
link.  We can't pause the server thread for that, so make a new thread.

bug:2609904
Change-Id: I0430a08621da1cda0a0010ce15826cceee59a529

14 years agoUpdate AudioService to reflect phone state changes with AudioFocus.
Jean-Michel Trivi [Tue, 20 Apr 2010 21:56:34 +0000 (14:56 -0700)]
Update AudioService to reflect phone state changes with AudioFocus.
Phone calls and rings are treated as a new client, with a dedicated
client ID that identifies it in the audio focus stack. When it is
present in the stack, others clients cannot request audio focus
(request is denied).
Because the phone state is now mostly handled like a new client,
there is no need monitor mode changes and to keep track of
undispatched focus changes, as those will delayed focus gains
will now automatically happen at the end of the call when the
phone client is removed from the focus stack.

Change-Id: I11ff73b015ab93f07040755fd8ee75c8d675e025

14 years agoMerge "Fix 2610961 Unhide broadcast intents that are sent when sdcard gets mounted...
Suchi Amalapurapu [Tue, 20 Apr 2010 22:04:41 +0000 (15:04 -0700)]
Merge "Fix 2610961 Unhide broadcast intents that are sent when sdcard gets mounted/unmounted." into froyo

14 years agoMerge "Don't coalesce more than 250ms worth of encoded data into a single codec input...
Andreas Huber [Tue, 20 Apr 2010 21:48:45 +0000 (14:48 -0700)]
Merge "Don't coalesce more than 250ms worth of encoded data into a single codec input buffer. This currently only applies to the component OMX.TI.AAC.decode, it is the only one to support coalescing in the first place." into froyo

14 years agoMerge "Fix bug 2604132 40s skip after undocking In case of A2DP write errors, there...
Jean-Michel Trivi [Tue, 20 Apr 2010 21:41:11 +0000 (14:41 -0700)]
Merge "Fix bug 2604132 40s skip after undocking In case of A2DP write errors, there is an overflow in the calculation of the sleep duration to simulate the timing of a successful write." into froyo

14 years agoDon't coalesce more than 250ms worth of encoded data into a single codec input buffer.
Andreas Huber [Tue, 20 Apr 2010 21:26:00 +0000 (14:26 -0700)]
Don't coalesce more than 250ms worth of encoded data into a single codec input buffer.
This currently only applies to the component OMX.TI.AAC.decode, it is the only one to support coalescing in the first place.

In certain edge cases (encoded audio track contains silence), each buffer would turn out to be an amazing 6(!!!) bytes, we'd spend lots and lots of time streaming network data to fill the codec's buffers of size 6144 bytes with .. silence.

Change-Id: I9f449f310fc64ca384bd02e4a783e33cf5b46fcc
related-to-bug: 2609049
QA-Impact: streamed (http) playback of aac audio content on Droid.

14 years agoFix 2610961
Suchi Amalapurapu [Tue, 20 Apr 2010 21:08:08 +0000 (14:08 -0700)]
Fix 2610961
Unhide broadcast intents that are sent when sdcard gets mounted/unmounted.

Change-Id: Ibb5700178e98f657f1c2b6a2f83e722151c4a44f

14 years agoMerge "Speed up layers rendering when using animations Cherry-pick from master" into...
Nicolas Roard [Tue, 20 Apr 2010 20:22:44 +0000 (13:22 -0700)]
Merge "Speed up layers rendering when using animations Cherry-pick from master" into froyo

14 years agoMerge "Make the silent/vibrate status icon reflect overall device state. (DO NOT...
Daniel Sandler [Tue, 20 Apr 2010 19:57:54 +0000 (12:57 -0700)]
Merge "Make the silent/vibrate status icon reflect overall device state. (DO NOT MERGE)" into froyo

14 years agoFix bug 2604132 40s skip after undocking
Jean-Michel Trivi [Tue, 20 Apr 2010 19:12:13 +0000 (12:12 -0700)]
Fix bug 2604132 40s skip after undocking
In case of A2DP write errors, there is an overflow in the calculation
of the sleep duration to simulate the timing of a successful write.

Change-Id: Ic4e570aebf07fac69735aab1bbc2fc73512ee795

14 years agoSpeed up layers rendering when using animations
Nicolas Roard [Tue, 20 Apr 2010 02:08:55 +0000 (19:08 -0700)]
Speed up layers rendering when using animations
Cherry-pick from master

Bug:2522049
Change-Id: I441f00b6e7551930c4f76983681f4cd0c57ce017

14 years agoMerge "Remove code to pass the nonexistant lockprofsample flag to Dalvik." into froyo
Carl Shapiro [Tue, 20 Apr 2010 18:42:39 +0000 (11:42 -0700)]
Merge "Remove code to pass the nonexistant lockprofsample flag to Dalvik." into froyo

14 years agoMerge "Don't inflate the zoom button controller until we are going to show it. This...
Grace Kloba [Tue, 20 Apr 2010 18:40:07 +0000 (11:40 -0700)]
Merge "Don't inflate the zoom button controller until we are going to show it. This should shave 5% of Browser start up time on Sapphire." into froyo

14 years agoMerge "When updating existing entries in the media database, don't update the is_musi...
Marco Nelissen [Tue, 20 Apr 2010 18:24:10 +0000 (11:24 -0700)]
Merge "When updating existing entries in the media database, don't update the is_music, is_ringtone, etc columns. This ensures that custom ringtones will still be shown in the ringtone picker after a rescan. Bug 2594125 Change-Id: I56761240d6f6e699514169d80a445317ba0de9e2" into froyo

14 years agoDon't inflate the zoom button controller until we
Grace Kloba [Tue, 20 Apr 2010 17:02:20 +0000 (10:02 -0700)]
Don't inflate the zoom button controller until we
are going to show it. This should shave 5% of Browser
start up time on Sapphire.

Fix http://b/issue?id=2604295

14 years agoWhen updating existing entries in the media database, don't update
Marco Nelissen [Tue, 20 Apr 2010 16:46:00 +0000 (09:46 -0700)]
When updating existing entries in the media database, don't update
the is_music, is_ringtone, etc columns. This ensures that custom
ringtones will still be shown in the ringtone picker after a rescan.
Bug 2594125
Change-Id: I56761240d6f6e699514169d80a445317ba0de9e2

14 years agoFix issue 2602879: camera shutter sound not playing.
Eric Laurent [Tue, 20 Apr 2010 16:40:57 +0000 (09:40 -0700)]
Fix issue 2602879: camera shutter sound not playing.

The problem occurs if the device is powered down in silent mode. When the device restarts,
AudioService reads current ringer mode from saved settings but does not call setRingerModeInt()
to perform actions required when ringer mode changes.
The volumes of streams affected by ringer mode are actually at 0 because they are also read from settings
but their mute state is not applied correclty. When we later exit from silent mode, the streams
other than STREAM_RING that are affected by ringer mode are not restored as they are not considered
muted. This applies to STREAM_SYSTEM but also to STREAM_NOTIFICATION if its volume is controlled independently
from STREAM_RING.

The fix consists in calling setRingerModeInt() when AudioService starts.

Change-Id: Ica75b9874938dda1bc1b634c3e97db4a650d295c

14 years agoFix issue 2604270 Device auto connects to Car Dock (Media profile) after undocking.
Eric Laurent [Tue, 20 Apr 2010 14:01:00 +0000 (07:01 -0700)]
Fix issue 2604270  Device auto connects to Car Dock (Media profile) after undocking.

There was a regression introduced by change 4c637b9e34f4c8db69a64ad21a4e2bcfa7485b5f
fixing issue 2578813. As the A2DP device disconnection is notified to the audio policy manager
after a delay, there is a period during which the A2DP device is actually not connected but the
A2DP output is considered present by audio framework. If a playback is started during this period,
The A2DP output requests the activation of the A2DP sink which in turn triggers a reconnection
of the A2DP sink.

The fix consists in suspending the A2DP output immediately when receiving the A2DP disconnection
intent so that any activity on A2DP output is ignored until the output is actually closed by the
audio policy manager.

Change-Id: I16eaace45e12bfc970f50836b46a73b756b493f0

14 years agoRemove code to pass the nonexistant lockprofsample flag to Dalvik.
Carl Shapiro [Tue, 20 Apr 2010 08:25:20 +0000 (01:25 -0700)]
Remove code to pass the nonexistant lockprofsample flag to Dalvik.

Change-Id: If334e21d770bc21a9b7c4f04d0fb652f53359231

14 years agoMerge "fix [2599939] "cannot play video" after open/close a video player a dozen...
Mathias Agopian [Tue, 20 Apr 2010 02:23:45 +0000 (19:23 -0700)]
Merge "fix [2599939] "cannot play video" after open/close a video player a dozen of times" into froyo

14 years agofix [2599939] "cannot play video" after open/close a video player a dozen of times
Mathias Agopian [Tue, 20 Apr 2010 02:09:03 +0000 (19:09 -0700)]
fix [2599939] "cannot play video" after open/close a video player a dozen of times

get rid off the MAP_ONCE flag is MemoryHeapBase (as well as it's functionality),
this feature should not be used anymore.

the software renderer was incorrectly using the default ctor which set MAP_ONCE,
causing the leak. the software renderer itself is incorrectly used while coming
back from sleep.

Change-Id: I123621f8d140550b864f352bbcd8a5729db12b57

14 years agoMerge "Quietly handle EGL_BAD_NATIVE_WINDOW errors" into froyo
Jack Palevich [Tue, 20 Apr 2010 02:06:35 +0000 (19:06 -0700)]
Merge "Quietly handle EGL_BAD_NATIVE_WINDOW errors" into froyo

14 years agoMake vCard allow users to refrain image export. Useful when
Daisuke Miyakawa [Tue, 20 Apr 2010 00:53:30 +0000 (09:53 +0900)]
Make vCard allow users to refrain image export. Useful when
receivers cannot accept image data.

Bug: 2603200
Change-Id: I3c490b2de37ebb2780df4a27a440df3b0afacb3a

14 years agoMerge "Update the comment which supposed to be checked in in the last CL." into froyo
Grace Kloba [Mon, 19 Apr 2010 23:11:21 +0000 (16:11 -0700)]
Merge "Update the comment which supposed to be checked in in the last CL." into froyo

14 years agoUpdate the comment which supposed to be checked in
Grace Kloba [Mon, 19 Apr 2010 23:05:19 +0000 (16:05 -0700)]
Update the comment which supposed to be checked in
in the last CL.

Fix http://b/issue?id=2607352

14 years agoMerge "Fix bug 2587373 - awaken scrollbars when a scrolling view becomes visible...
Adam Powell [Mon, 19 Apr 2010 22:33:08 +0000 (15:33 -0700)]
Merge "Fix bug 2587373 - awaken scrollbars when a scrolling view becomes visible." into froyo

14 years agoFix bug 2587373 - awaken scrollbars when a scrolling view becomes visible.
Adam Powell [Mon, 19 Apr 2010 21:26:11 +0000 (14:26 -0700)]
Fix bug 2587373 - awaken scrollbars when a scrolling view becomes visible.

Change-Id: I7eb38c53c3a03b23786b8b0c2d16139acd0eb38e

14 years agoMerge "Misc fixes for throttling." into froyo
Robert Greenwalt [Mon, 19 Apr 2010 20:21:01 +0000 (13:21 -0700)]
Merge "Misc fixes for throttling." into froyo

14 years agoMerge "Remove fixed size restriction on the SurfaceView before setting it to the...
Grace Kloba [Mon, 19 Apr 2010 20:14:21 +0000 (13:14 -0700)]
Merge "Remove fixed size restriction on the SurfaceView before setting it to the full screen content view." into froyo

14 years agoMisc fixes for throttling.
Robert Greenwalt [Mon, 19 Apr 2010 18:10:38 +0000 (11:10 -0700)]
Misc fixes for throttling.

Cleanup of duplicate code
Caching Ntp data so we don't hit the network as often
Clearing out of MRU data when we switch to a new sim
Sending notification after we reset byte counts

bug:2605277
bug:2605272
bug:2597530
bug:2576057
Change-Id: I3df526bae6374f6ae56fed67b0defad2b4fabefd

14 years agoMerge "add droiddoc flag to include since-tags for api level 8" into froyo
Scott Main [Mon, 19 Apr 2010 19:28:15 +0000 (12:28 -0700)]
Merge "add droiddoc flag to include since-tags for api level 8" into froyo

14 years agoMerge "Reduce lock contention, removing unnecessary synchronization." into froyo
Brad Fitzpatrick [Mon, 19 Apr 2010 19:17:48 +0000 (12:17 -0700)]
Merge "Reduce lock contention, removing unnecessary synchronization." into froyo

14 years agoMerge "Force redraw in touch_up if there is a move." into froyo
Grace Kloba [Mon, 19 Apr 2010 19:14:41 +0000 (12:14 -0700)]
Merge "Force redraw in touch_up if there is a move." into froyo

14 years agoRemove fixed size restriction on the SurfaceView
Grace Kloba [Mon, 19 Apr 2010 19:14:17 +0000 (12:14 -0700)]
Remove fixed size restriction on the SurfaceView
before setting it to the full screen content view.

Fix http://b/issue?id=2607352

14 years agoadd droiddoc flag to include since-tags for api level 8
Scott Main [Mon, 19 Apr 2010 19:00:15 +0000 (12:00 -0700)]
add droiddoc flag to include since-tags for api level 8

Change-Id: Ib7dc5114b075001cdf78db96dbbaa99644836f8b

14 years agoReduce lock contention, removing unnecessary synchronization.
Brad Fitzpatrick [Mon, 19 Apr 2010 18:58:52 +0000 (11:58 -0700)]
Reduce lock contention, removing unnecessary synchronization.

The value returned is purely a function of what's passed in, all
following final members.

BUG=2606839

Change-Id: I506fb9b1f3be965576c2b3317a30ff1f990ccda3

14 years agoMerge "Ease contention on the mProcessStatsThread mutex in updateCpuStats." into...
Brad Fitzpatrick [Mon, 19 Apr 2010 18:50:53 +0000 (11:50 -0700)]
Merge "Ease contention on the mProcessStatsThread mutex in updateCpuStats." into froyo

14 years agoMake the silent/vibrate status icon reflect overall device state. (DO NOT MERGE)
Daniel Sandler [Mon, 19 Apr 2010 18:29:05 +0000 (14:29 -0400)]
Make the silent/vibrate status icon reflect overall device state. (DO NOT MERGE)

Previously, this status icon reflected just the incoming
call behavior:
 - gone for audible (with or without vibrate),
 - wiggling phone for vibrate,
 - silent (speaker + X) for no audible ring or vibrate.

Now that silent mode has changed (see VIBRATE_IN_SILENT),
you can easily get into a state where this icon is
confusing by setting the incoming call ringer to *never*
vibrate but setting the overall device silent state to allow
vibration (VIBRATE_IN_SILENT=true).  In this case, rocking
the volume all the way down would show a wiggling phone
(because the device is in vibrate-only mode) but the status
bar would show speaker+X (because the incoming call would
neither ring nor vibrate).

Now these two icons are consistent. This means, however,
that if this special condition is set by the user (device
vibrates in silent mode, but incoming calls should never
vibrate) and the device is in silent mode, the status bar
will show a wiggling phone even though incoming calls will
not vibrate the device. This puts the ringer on a more even
footing with other apps on the device, which may elect not
to vibrate even if VIBRATE_IN_SILENT=true overall.

Bug: 2598014
Change-Id: Ib942f68738d77ab0d9b9da4fac718ae5957c133c

14 years agoEase contention on the mProcessStatsThread mutex in updateCpuStats.
Brad Fitzpatrick [Mon, 19 Apr 2010 17:47:40 +0000 (10:47 -0700)]
Ease contention on the mProcessStatsThread mutex in updateCpuStats.

BUG=2606839

Change-Id: I444af0bb4a7b0be7ebf9ee5887805f2f09a426d0

14 years agoForce redraw in touch_up if there is a move.
Grace Kloba [Mon, 19 Apr 2010 17:16:42 +0000 (10:16 -0700)]
Force redraw in touch_up if there is a move.

Fix http://b/issue?id=2606815

14 years agoMerge "Reset notification state on wifi enable" into froyo
Irfan Sheriff [Mon, 19 Apr 2010 16:50:37 +0000 (09:50 -0700)]
Merge "Reset notification state on wifi enable" into froyo

14 years agoMerge "Fix bug 2599698 Music paused by itself The NotificationPlayer sets an OnComple...
Jean-Michel Trivi [Mon, 19 Apr 2010 16:41:19 +0000 (09:41 -0700)]
Merge "Fix bug 2599698 Music paused by itself The NotificationPlayer sets an OnCompletionListener on the MediaPlayer it's using to play the notification. NotificationPlayer relies on the completion event to abandon audio focus.  The player was started before the listener was set. The theory about the bug is that the player finished playing before the listener was called. Therefore the audio focus was never abandonned, and the music didn't resume." into froyo

14 years agoMerge "Fix inconsistency in how we handle light sensor when battery is low." into...
Mike Lockwood [Mon, 19 Apr 2010 15:18:58 +0000 (08:18 -0700)]
Merge "Fix inconsistency in how we handle light sensor when battery is low." into froyo

14 years agoQuietly handle EGL_BAD_NATIVE_WINDOW errors
Jack Palevich [Mon, 19 Apr 2010 14:32:15 +0000 (22:32 +0800)]
Quietly handle EGL_BAD_NATIVE_WINDOW errors

We believe these errors happen when the window
manager has told surface flinger to close the
native window.

If this error happens while we are creating the
EGL surface we exit the render loop (and
therefore exit the render thread.)

If the error happens while swapping the surface
we ignore it.

In either situation, we expect that the
application is about to be shut down by the
window manager, so it should not be necessary
to try and recover from the error.

14 years agoReset notification state on wifi enable
Irfan Sheriff [Mon, 19 Apr 2010 06:04:13 +0000 (23:04 -0700)]
Reset notification state on wifi enable

Bug: 2600111
Change-Id: Ifaa63cd7c05dfa27fbd851de6f7e92f7fc38907b

14 years agoMake ThrottleService more tamper resistant.
Robert Greenwalt [Thu, 15 Apr 2010 05:37:12 +0000 (22:37 -0700)]
Make ThrottleService more tamper resistant.

Use elapsed time not wall time for alarms so users can't play with the
system time to get around things.

Also using NTP servers to pull in an authoritative time - if we the build
is configured with an NTP server we will not advance to the next cycle
without it, but we also will not trottle - rather not throttle users
on an error.

Note that the poll alarm is just relative to the last poll time and real
time doesn't matter.

Defining the time-fetching API's as returning time in the system wallclock
range (correcting if we are using NTP time internally).

bug:2597530
Change-Id: I1c0ac0923314c2f8a04edd0b36c4845352eae99a