OSDN Git Service
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
Dianne Hackborn [Fri, 23 Apr 2010 21:23:39 +0000 (14:23 -0700)]
Merge "Fix issue #
2621809: Kill! Kill! Kill!" 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
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
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
Robert Greenwalt [Fri, 23 Apr 2010 20:50:03 +0000 (13:50 -0700)]
Merge "Respond to changes in throttle policy." into froyo
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
Dianne Hackborn [Fri, 23 Apr 2010 19:59:47 +0000 (12:59 -0700)]
Merge "Some debugging help for issue #
2594388" into froyo
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
Robert Greenwalt [Fri, 23 Apr 2010 17:17:14 +0000 (10:17 -0700)]
Merge "Add a Throttle check shortly after boot." into froyo
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
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
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
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
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
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
Suchi Amalapurapu [Thu, 22 Apr 2010 22:52:25 +0000 (15:52 -0700)]
Merge "Fix error code when media is filled up." into froyo
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
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
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
Suchi Amalapurapu [Thu, 22 Apr 2010 20:22:17 +0000 (13:22 -0700)]
Fix error code when media is filled up.
Change-Id: Id8dae2e7c967e3f103aecd2f31abb7e292af8f1d
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
Christopher Tate [Thu, 22 Apr 2010 19:51:22 +0000 (12:51 -0700)]
Merge "SDK: new 'bmgr' docs in the Dev Guide" into froyo
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
Robert Greenwalt [Thu, 22 Apr 2010 16:08:25 +0000 (09:08 -0700)]
Merge "Trim throttle logs." into froyo
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
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
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
Christopher Tate [Thu, 22 Apr 2010 01:10:20 +0000 (18:10 -0700)]
Merge "Fix security hole in Google backup transport registration" into froyo
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
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
John Wang [Wed, 21 Apr 2010 21:43:12 +0000 (14:43 -0700)]
Merge "Add ILLEGAL_SIM_OR_ME error code." into froyo
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
Joe Onorato [Wed, 21 Apr 2010 17:59:50 +0000 (13:59 -0400)]
Add title to recent apps dialog.
Bug:
2614279
Change-Id: I45ebcd2e45140901df246db10f756c07864cccb4
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
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
Robert Greenwalt [Wed, 21 Apr 2010 00:37:22 +0000 (17:37 -0700)]
Merge "Move Tethering off the ServerThread." into froyo
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
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
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Jack Palevich [Tue, 20 Apr 2010 02:06:35 +0000 (19:06 -0700)]
Merge "Quietly handle EGL_BAD_NATIVE_WINDOW errors" into froyo
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
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
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
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
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
Robert Greenwalt [Mon, 19 Apr 2010 20:21:01 +0000 (13:21 -0700)]
Merge "Misc fixes for throttling." into froyo
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
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
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
Brad Fitzpatrick [Mon, 19 Apr 2010 19:17:48 +0000 (12:17 -0700)]
Merge "Reduce lock contention, removing unnecessary synchronization." 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
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
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
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
Brad Fitzpatrick [Mon, 19 Apr 2010 18:50:53 +0000 (11:50 -0700)]
Merge "Ease contention on the mProcessStatsThread mutex in updateCpuStats." into froyo
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
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
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
Irfan Sheriff [Mon, 19 Apr 2010 16:50:37 +0000 (09:50 -0700)]
Merge "Reset notification state on wifi enable" into froyo
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
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
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.
Irfan Sheriff [Mon, 19 Apr 2010 06:04:13 +0000 (23:04 -0700)]
Reset notification state on wifi enable
Bug:
2600111
Change-Id: Ifaa63cd7c05dfa27fbd851de6f7e92f7fc38907b
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
Mike Lockwood [Sun, 18 Apr 2010 02:29:20 +0000 (22:29 -0400)]
Fix inconsistency in how we handle light sensor when battery is low.
In lightSensorChangedLocked we ignore the light sensor if the battery is low.
But in applyButtonState() and applyKeyboardState() we were still using the previous
mLightSensorScreenBrightness value, which resulted in a race condition that could
leave the button lights on after the screen turns off.
Now we ignore the light sensor value and button brightness override if the battery
is low so the low battery behavior is consistent.
Change-Id: I4943f8904299883211a95596ee207df69d1eaea2
BUG:
2570962
Signed-off-by: Mike Lockwood <lockwood@android.com>
Irfan Sheriff [Sat, 17 Apr 2010 16:27:25 +0000 (09:27 -0700)]
Merge "Dont check on interface value on API" into froyo
Irfan Sheriff [Fri, 16 Apr 2010 23:53:20 +0000 (16:53 -0700)]
Dont check on interface value on API
The interface check in API could be used
in future.
Bug:
2576057
Change-Id: Icfb78a88be44d1e6a8350c4b65efe70970e658d8
Jean-Michel Trivi [Fri, 16 Apr 2010 23:40:47 +0000 (16:40 -0700)]
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.
Change-Id: Ic3baf359ea24de0d832a655dc47e745b25bc3dec
Grace Kloba [Fri, 16 Apr 2010 23:34:43 +0000 (16:34 -0700)]
Merge "Missed a case to resumeUpdatePicture." into froyo
Scott Main [Fri, 16 Apr 2010 23:14:33 +0000 (16:14 -0700)]
Merge "cherry-pick from master:
c096a9aead60717fc106ceb259bf954a578d3c54 (plus other revisions to resolve bug
2595831)" into froyo
Grace Kloba [Fri, 16 Apr 2010 22:49:36 +0000 (15:49 -0700)]
Missed a case to resumeUpdatePicture.
Fix http://b/issue?id=
2603882
Vasu Nori [Fri, 16 Apr 2010 21:48:47 +0000 (14:48 -0700)]
Merge "accept close() on database objects even if the database is closed" into froyo
Vasu Nori [Fri, 16 Apr 2010 21:24:57 +0000 (14:24 -0700)]
accept close() on database objects even if the database is closed
bug:
2602878
Change-Id: I3075f801ef35d72792ff3daaa1e887e53b58f5f8
Carl Shapiro [Fri, 16 Apr 2010 20:25:03 +0000 (13:25 -0700)]
Merge "Add command line flags to enable lock profiling." into froyo
Mike Reed [Fri, 16 Apr 2010 17:16:36 +0000 (13:16 -0400)]
retool resize logic to use max dimension and max area.
Change-Id: I32446b41afe9e7c241868c0cb7b9b7d9056b2d38
http://b/issue?id=
2598253
Mike LeBeau [Fri, 16 Apr 2010 14:23:12 +0000 (07:23 -0700)]
Merge "For search suggestions in the search dialog, allow the 'title' line of text to be up to 2 lines (rather than the usual 1) if no 'description' line is provided." into froyo
Carl Shapiro [Mon, 12 Apr 2010 23:31:59 +0000 (16:31 -0700)]
Add command line flags to enable lock profiling.