64768 Commits

Author SHA1 Message Date
John Grossman
f998922f30 Tungsten: Improve RX player error handling.
First, clear an issue which was causing an assert to fire.  Basically,
once a decoder pump had entered the error state and was shutdown, it
was not clearing its status, and when a substream attempt to recycle
the pump, startup was failing an assert (no thread had been created,
meaning that the system was not initialized, yet status indicated an
error).  This was a small one-liner in aah_decoder_pump.cpp.

Second, try to become a little nuanced about how we handle errors in
the decoder pump.  A comment in the code pretty much says it all, but
the summary is that we don't want to completely abort playback because
a single chunk of ES failed to decode, but if nothing is decoding and
we are making no progress at all, we probably need to put the
MediaPlayer instance into the fatal Error state and signal the app
level so that further action can be taken (automatic recovery attempts
followed by bug reports and signalling the user if those fail).

This is to address the fallout of http://b/issue?id=5498460, where
something at the OMX decoder level becomes unhappy about not being
able to obtain an output buffer which eventually unwinds to this
assert which results in a dead mediaserver.  After this change, the
mediaserver will no longer crash, and may even recover (depending on
whether or not the OMX unhappiness is transient or not), but the
primary issue (unhappy OMX) is probably still around.  It is quite
difficult to reproduce, I will probably need to open a different bug
to track that issue.

Change-Id: I5b65b818378a5ae9c915e91b7db7129f0bda6837
Signed-off-by: John Grossman <johngro@google.com>
2011-12-06 14:19:31 -08:00
John Grossman
7dc935ad17 Merge "AudioFlinger: Make StandbyTime configurable." into ics-aah 2011-12-06 10:04:38 -08:00
John Grossman
77e2cf7821 AudioFlinger: Make StandbyTime configurable.
Make the standby time for AudioFlinger configurable using a system
property.  Default AudioFlinger behavior is to go into standby
(allowing the audio outputs to underflow) after there has been nothing
to mix and AudioFlinger has just been pumping out silence for the
configured standby time (which defaulted to 3 seconds).

Now, by setting the "ro.audio.flinger_standbytime_ms" property in
their platform init.rc, platforms can override this default and
control the standby time.  If the property is missing or malformed,
the old default value of 3 seconds will be used instead.

Change-Id: Ic9fa8b5f5bccee493bc72c65e408d3fd8ddd1059
Signed-off-by: John Grossman <johngro@google.com>
2011-12-06 10:02:29 -08:00
Dianne Hackborn
3c585e92ed am 52245ac7: Merge "Fix issue #5713576: Home redraws after returning from app on Nexus S 4G" into ics-mr1
* commit '52245ac7c41735c561199d9ec7e9577d592ca852':
  Fix issue #5713576: Home redraws after returning from app on Nexus S 4G
2011-12-05 19:09:19 -08:00
Dianne Hackborn
52245ac7c4 Merge "Fix issue #5713576: Home redraws after returning from app on Nexus S 4G" into ics-mr1 2011-12-05 19:07:52 -08:00
Daniel Sandler
d1985bdfc1 am f66664a5: Merge "Fix sticky menu icon on tablet status bar." into ics-mr1
* commit 'f66664a50e914e1cc5d66046cfc4c5b195a09eab':
  Fix sticky menu icon on tablet status bar.
2011-12-05 19:04:12 -08:00
Daniel Sandler
f66664a50e Merge "Fix sticky menu icon on tablet status bar." into ics-mr1 2011-12-05 19:02:28 -08:00
Dianne Hackborn
77eaaf04c6 Fix issue #5713576: Home redraws after returning from app on Nexus S 4G
Turn of destroying of activities during memory trimming.

Change-Id: Ibea415c13fca4f67f56adefe81a1495f5f9ad273
2011-12-05 19:00:42 -08:00
Eric Laurent
ad67a2639b Merge "AudioService: Send broadcasts when master volume and mute state change" into ics-aah 2011-12-05 18:57:49 -08:00
Mike Lockwood
3309386a1b AudioService: Send broadcasts when master volume and mute state change
Change-Id: I7eb5041f0c14f419317e29ea6fa7faa9159cf165
Signed-off-by: Mike Lockwood <lockwood@google.com>
2011-12-05 18:47:38 -08:00
Adam Powell
f009097f64 am 9a856f4e: Merge "Drop API level for notification compatibility BG to 8 (from 10)" into ics-mr1
* commit '9a856f4ee7b49f735e31b57a09bee2f033ce20a5':
  Drop API level for notification compatibility BG to 8 (from 10)
2011-12-05 17:40:06 -08:00
Adam Powell
9a856f4ee7 Merge "Drop API level for notification compatibility BG to 8 (from 10)" into ics-mr1 2011-12-05 17:38:23 -08:00
Eric Laurent
5a27892437 am 7b6aff23: Merge "audioflinger: fix audio skipping over A2DP" into ics-mr1
* commit '7b6aff23735a9ef8759c5ecb4427784413e9b85b':
  audioflinger: fix audio skipping over A2DP
2011-12-05 17:22:46 -08:00
Eric Laurent
7b6aff2373 Merge "audioflinger: fix audio skipping over A2DP" into ics-mr1 2011-12-05 17:20:53 -08:00
Fred Quintana
9a3e16ffa8 am b5f2dfbc: Merge "By default ICS allows two syncs to run in parallel. Make it only do one at a time for devices that don\'t have much RAM as defined by the call ActivityManager.isLargeRAM()" into ics-mr1
* commit 'b5f2dfbc221d3dc799232e0ada3b6621d3d4d597':
  By default ICS allows two syncs to run in parallel. Make it only do one at a time for devices that don't have much RAM as defined by the call ActivityManager.isLargeRAM()
2011-12-05 16:47:15 -08:00
Fred Quintana
b5f2dfbc22 Merge "By default ICS allows two syncs to run in parallel. Make it only do one at a time for devices that don't have much RAM as defined by the call ActivityManager.isLargeRAM()" into ics-mr1 2011-12-05 16:45:29 -08:00
Michael Kolb
48b6d2cc7c am 3124e6f9: Merge "Remove debug log messages" into ics-mr1
* commit '3124e6f9e96b730cdfbbf068f15c41b6d5c8a819':
  Remove debug log messages
2011-12-05 16:14:28 -08:00
Michael Kolb
3124e6f9e9 Merge "Remove debug log messages" into ics-mr1 2011-12-05 16:12:35 -08:00
Xia Wang
498e422a94 am e63d67ef: Merge "Add extra 2 minute for wifi to shutdown" into ics-mr1
* commit 'e63d67eff794ba2e4e5d2aa9e8854b37329f4429':
  Add extra 2 minute for wifi to shutdown
2011-12-05 15:55:07 -08:00
Xia Wang
e63d67eff7 Merge "Add extra 2 minute for wifi to shutdown" into ics-mr1 2011-12-05 15:52:34 -08:00
Fred Quintana
33e4469417 By default ICS allows two syncs to run in parallel. Make it only
do one at a time for devices that don't have much RAM as
defined by the call ActivityManager.isLargeRAM()

Bug: 5713224
Change-Id: Ic8c42103f4031e1d7b1db797edcbbd7f7bac1387
2011-12-05 15:44:34 -08:00
Adam Powell
ad9deec87c Drop API level for notification compatibility BG to 8 (from 10)
Bug 5713262

As we had concrete styles for achieving the right text styling as of
Gingerbread, don't punsh apps that used them correctly.

Change-Id: I1e373a0238edd6bdab2d0f96588d9cb92a20b31f
2011-12-05 15:38:51 -08:00
Svetoslav Ganov
47e6347567 am da926cf2: Merge "TalkBack does not announce properly the buttons of the PIN lock." into ics-mr1
* commit 'da926cf284ff5f5ccf91dec088ff64d442cee25c':
  TalkBack does not announce properly the buttons of the PIN lock.
2011-12-05 15:04:28 -08:00
Svetoslav Ganov
da926cf284 Merge "TalkBack does not announce properly the buttons of the PIN lock." into ics-mr1 2011-12-05 15:03:13 -08:00
Michael Kolb
e4e5fef75e Remove debug log messages
Bug: 5713163

Change-Id: Id8d9845f6ecb7dd90ae4cf42bc82d39a148a5700
2011-12-05 14:55:02 -08:00
Irfan Sheriff
f8b8326982 am 6b66e9e4: Switch to notifications for walled garden
* commit '6b66e9e4c95b1c866ea63a0122fc199994fd7053':
  Switch to notifications for walled garden
2011-12-05 14:21:58 -08:00
Svetoslav Ganov
a10be93aaa TalkBack does not announce properly the buttons of the PIN lock.
The KeyBoardView shown by the lock screen is not marked as clickable even
though it handles clicks. TalkBack uses the clickability as a clue of what
to speak.

bug:5713102

Change-Id: I0733e30619e6045ce3f78e1499db65f4dc5bc388
2011-12-05 14:16:30 -08:00
Irfan Sheriff
6b66e9e4c9 Switch to notifications for walled garden
Also, switches the URL for browser to the actual URL used for checking
walled garden

Bug: 5398921
Change-Id: Ie4d4b1d47f4151d0f85975b10190bdcf5f2e7a57
2011-12-05 14:12:06 -08:00
Peter Ng
b113ad6be8 am 74b496dd: Merge "Numberpicker section divider is now 2dp thick" into ics-mr1
* commit '74b496dd8aab7e29bcba0c6502f773555c4ce29f':
  Numberpicker section divider is now 2dp thick
2011-12-05 12:36:28 -08:00
Peter Ng
74b496dd8a Merge "Numberpicker section divider is now 2dp thick" into ics-mr1 2011-12-05 12:34:53 -08:00
Eric Fischer
20e1dc5cb3 am 845b3efc: Merge "Add missing locale date format files." into ics-mr1
* commit '845b3efc9935e66b718d8e9a56435bf039f97633':
  Add missing locale date format files.
2011-12-05 12:27:16 -08:00
Eric Fischer
845b3efc99 Merge "Add missing locale date format files." into ics-mr1 2011-12-05 12:25:58 -08:00
Xia Wang
10a3e8fae8 Add extra 2 minute for wifi to shutdown
Change-Id: I3cf2fbf5de8b96b75d5e460e4ad822a1947ff6e7
2011-12-05 12:22:47 -08:00
Eric Fischer
db04b88cc8 Add missing locale date format files.
Change-Id: I4533c8aff25ee9f6a37a18005ea1341c99c4e696
2011-12-05 12:20:01 -08:00
Andreas Huber
384612d13e am f2e12498: Merge "Properly identify how much metadata we need to cache in order to instantiate" into ics-mr1
* commit 'f2e1249846a17c69d728189a8dc67f37261f0a59':
  Properly identify how much metadata we need to cache in order to instantiate
2011-12-05 12:02:53 -08:00
Andreas Huber
f2e1249846 Merge "Properly identify how much metadata we need to cache in order to instantiate" into ics-mr1 2011-12-05 12:01:26 -08:00
Andreas Huber
b8e651a675 Properly identify how much metadata we need to cache in order to instantiate
the extractor without blocking (and therefore be able to abort).

Change-Id: Id2acdde897e02baaeabadae70b7c95b66c9041b3
related-to-bug: 5666532
2011-12-05 11:34:43 -08:00
Peter Ng
cbdff7a7a5 Numberpicker section divider is now 2dp thick
Change-Id: I614c7316e43c23650166971662ed7dfd847ddaa8
2011-12-05 11:16:27 -08:00
Dianne Hackborn
3e9df5baf9 am 003c15d7: Merge "Fix issue #5614559: Registering surface error in..." into ics-mr1
* commit '003c15d72ccd3856d5abfe6d66a2a40d0eca85bc':
  Fix issue #5614559: Registering surface error in...
2011-12-05 10:42:33 -08:00
Dianne Hackborn
003c15d72c Merge "Fix issue #5614559: Registering surface error in..." into ics-mr1 2011-12-05 10:40:59 -08:00
Eric Laurent
4433169a64 audioflinger: fix audio skipping over A2DP
The maximum sleep time allowed in the mixer thread when audio tracks
are enabled but not ready for mixing is derived from the latency
reported by the output stream.
This does not work for A2DP where the latency also reflects encoding, decoding
and transfer time.

Modified activeSleepTimeUs() to take A2DP case into account.

Issue 5682206.

Change-Id: I3784ac01fb6f836b5a6ce6f764fb15347586de35
2011-12-05 10:40:18 -08:00
Michael Kolb
068f8e7cda am 277cbe5a: Merge "set System UI visibility based on MediaController state" into ics-mr1
* commit '277cbe5a951840558166020568fb1510285e2594':
  set System UI visibility based on MediaController state
2011-12-05 09:26:13 -08:00
Michael Kolb
277cbe5a95 Merge "set System UI visibility based on MediaController state" into ics-mr1 2011-12-05 09:24:25 -08:00
Daniel Sandler
4f9986e57f Fix sticky menu icon on tablet status bar.
Bug: 5647480
Change-Id: Iec4b04e414e8753e6b677b9168ad16b8c3e712be
2011-12-05 10:34:36 -05:00
Joe Onorato
c286560534 Use the new get/putFlattenable methods on RpcData.
They handle null correctly.

Change-Id: I8eebf43e1791ea0f99f3d4ee1beb74aa4c977115
2011-12-04 21:13:23 -08:00
Dianne Hackborn
61566cc193 Fix issue #5614559: Registering surface error in...
...Background Replacement on Stingray

This is how I should have done it in the first place.  We get the
new surface from the window manager, and then just copy it in to
the constant Surface object we have for the holder.

Change-Id: I537a9e413829a18f689dfb46687014676b27156e
2011-12-03 11:16:49 -08:00
Jesse Hall
18bd6bdbf0 am f57c1388: Merge "SurfaceFlinger: fix layer removal race condition" into ics-mr1
* commit 'f57c1388860486a70cc773f2cfeaa3ea3b38a473':
  SurfaceFlinger: fix layer removal race condition
2011-12-02 18:32:22 -08:00
Jesse Hall
f57c138886 Merge "SurfaceFlinger: fix layer removal race condition" into ics-mr1 2011-12-02 18:31:03 -08:00
Robert Greenwalt
9ef703692a am 2a7b5ab1: Merge "Be careful sharing connections when dun is in play" into ics-mr1
* commit '2a7b5ab16af697f386ad7ae346e1bf9229086fa8':
  Be careful sharing connections when dun is in play
2011-12-02 16:54:27 -08:00
Robert Greenwalt
2a7b5ab16a Merge "Be careful sharing connections when dun is in play" into ics-mr1 2011-12-02 16:52:29 -08:00