1538 Commits

Author SHA1 Message Date
Mathias Agopian
c2662bf9b9 Merge "libutils Condition are now PRIVATE by default" 2010-03-19 17:20:08 -07:00
Jean-Michel Trivi
9f3168b327 Merge "Fix two AudioFocus issues: - if a focus owner abandons audio focus during a call, the next focus owner in the stack was never notified - if a focus owner requests the focus while alread owning it, and the type of focus request changes, the previous focus owner was not notified that the type of focus loss had changed." 2010-03-19 16:31:34 -07:00
Mathias Agopian
a729f97e8b libutils Condition are now PRIVATE by default
Condition must be initialized with SHARED for the old behavior, where
they can be used accross processes.

Updated the two places android that require SHARED conditions.

PRIVATE conditions (and mutexes) use more efficient syscalls.

Change-Id: I9a281a4b88206e92ac559c66554e886b9c62db3a
2010-03-19 16:16:43 -07:00
Jean-Michel Trivi
983ac2b8cf Unhide new constants used in AudioFocus API to denote a situation
where a new focus owner signals it  allows other audio apps to keep
playing by ducking their audio streams.

Change-Id: I1109f44546f3cbcff8ad33ee21cfff50f4f12177
2010-03-19 16:10:42 -07:00
Jean-Michel Trivi
e5e1e870fd Fix two AudioFocus issues:
- if a focus owner abandons audio focus during a call, the next
 focus owner in the stack was never notified
- if a focus owner requests the focus while alread owning it, and
 the type of focus request changes, the previous focus owner was
 not notified that the type of focus loss had changed.

Change-Id: Iee6c6e17bcdd3c225a4b600f40ba434294870f17
2010-03-19 15:39:03 -07:00
Marco Nelissen
aac4bfb49b Merge "We should pass null for the album artist if it was not set, instead of a copy of the artist, since the media provider needs to know whether the album artist was actually set." 2010-03-19 10:25:13 -07:00
Marco Nelissen
0096b8d7d1 We should pass null for the album artist if it was not set, instead of a copy
of the artist, since the media provider needs to know whether the album artist
was actually set.

Change-Id: I29b885c8293609299a55babadf9ca2a30e20e5bd
2010-03-19 08:07:26 -07:00
Jean-Michel Trivi
4b55d496dd Fix SDK build Remove links to hidden constant in javadoc.
Change-Id: I21495f0ef64b3dc154ce0e0ca2d44686afd752e9
2010-03-18 21:37:29 -07:00
Eric Laurent
95b88fbe74 Attempt to fix the SDK build.
Change-Id: I024df1b513da117057a21c27e6c0cd134cdd8023
2010-03-18 20:39:38 -07:00
Jean-Michel Trivi
078fd47e91 Support focus requests where ducking of the loser of audio focus
is acceptable for the new audio focus owner.

Change-Id: I965483f12eeb717115a8f6992d8f1ab7fafa4e45
2010-03-18 18:28:27 -07:00
Eric Laurent
c04cfa3596 Unhide AudioManager API to control bluetooth SCO audio connection.
Needed for issue 2416481 in order to allow unbundled applications to play and record
audio to/from a bluetooth SCO headset while not in call.

Change-Id: Ie1f96ded991e65da538c2c4a58bfa1e548d58a01
2010-03-18 18:18:48 -07:00
Marco Nelissen
42a9c53788 Merge "Include "album artist" when inserting items in the media provider." 2010-03-18 17:23:32 -07:00
Marco Nelissen
abc2819328 Include "album artist" when inserting items in the media provider.
Change-Id: Ic34e2d54557409866dc35c29ee397afdfe874762
2010-03-18 17:15:56 -07:00
Andreas Huber
099e3e7eed Merge "Report a runtime error rather than asserting if the amr software decoder reads more data than it was given(!)" 2010-03-18 14:08:56 -07:00
Andreas Huber
bd278758ef Report a runtime error rather than asserting if the amr software decoder reads more data than it was given(!)
Change-Id: I0a7ad65051a6663a583ea82da5fc75227dcdbbfa
2010-03-18 14:03:47 -07:00
Andreas Huber
d92820070b Tweak the omx tests to always do a seek-beyond-EOS on the first iteration, followed by a linear read on the second iteration.
Change-Id: I16fc9e42ee9f8e4cb120ab41364cae6dd4544634
related-to-bug: 2338792
2010-03-18 13:37:39 -07:00
Andreas Huber
43595bc268 Either the software mp3 decoder's CRC computation is wrong (and PV never enabled it before) or there are files in the wild with wrong CRCs that nonetheless decode correctly, either way, opt out of CRC verification.
Change-Id: I1d9bd78f4efb53faa82c67110cf61f78122e40f8
related-to-bug: 2511393
2010-03-18 10:51:09 -07:00
Eric Laurent
cbf1840f4c Merge "Issue 2416481: Support Voice Dialer over BT SCO." 2010-03-18 10:01:10 -07:00
Andreas Huber
cf74ceea59 Merge "While streaming media data, upon a socket-read error, try reconnecting to the server and attempt to re-read for at most 3 times." 2010-03-18 09:01:01 -07:00
Eric Laurent
3def1eec2b Issue 2416481: Support Voice Dialer over BT SCO.
Added public methods to AudioManager API so that unbundled applications can use bluetooth
SCO audio when the phone is not incall.
Without this change, the only way to activate and use bluetooth SCO is via the BluetoothHeadset API
which is not public yet.

Change-Id: Ia1680f219ea1d0943092d475d5be7d6638983ebb
2010-03-18 00:26:46 -07:00
Jean-Michel Trivi
a378de742f Merge "Fix bug where the ID stored for an OnAudioFocusChangeListener is an empty string when audio focus is requested or abandonned with a null listener." 2010-03-17 17:47:08 -07:00
Andreas Huber
8783429932 While streaming media data, upon a socket-read error, try reconnecting to the server and attempt to re-read for at most 3 times.
Change-Id: I7534905e07a6456d18b26d5d60fa8915f25ae99e
related-to-bug: 2492187
2010-03-17 16:38:30 -07:00
James Dong
aa773543c4 Merge "Don't stop a test case when the test case failed for some of the sample files. Instead, only check against failure or success at the end of the test case." 2010-03-17 15:51:48 -07:00
James Dong
454f69c84c Don't stop a test case when the test case failed for some of the sample files.
Instead, only check against failure or success at the end of the test case.

bug - 2338793

Change-Id: I6c2f4fa2f48795d7efaba603688853d8d59b42ed
2010-03-17 15:40:15 -07:00
Yu Shan Emily Lau
2babee6604 Merge "Inserted a 1.5s wait time between the camera release and new camrea." 2010-03-17 15:28:30 -07:00
Jean-Michel Trivi
308e9a5d09 Fix bug where the ID stored for an OnAudioFocusChangeListener is an
empty string when audio focus is requested or abandonned with a
null listener.

Change-Id: I7709b75c6092aefc002806343298bc679d42d6c6
2010-03-17 15:04:20 -07:00
Jean-Michel Trivi
d1f78767fc Merge "Implementation of the policing of transport control key press events among multiple applications competing for the remote control focus. AudioManager defines a new API for applications to use in order to register their BroadcastReceiver for the media button as the one to receive the corresponding intent, but all applications at the same time (in an ordered broadcast). AudioService handles a stack of remote control focus owners. It traps ACTION_MEDIA_BUTTON intents and sends a new intent to the remote control focus owner." 2010-03-17 14:47:45 -07:00
Andreas Huber
65c8a7a1c1 Merge "Instead of asserting that nothing bad happened during (software-)AAC decoding, return a runtime error if appropriate." 2010-03-17 12:53:22 -07:00
Andreas Huber
fe1dee83ed Instead of asserting that nothing bad happened during (software-)AAC decoding, return a runtime error if appropriate.
Change-Id: I175492aba8fd6cc1320d047bd2608750d7b193f9
related-to-bug: 2492187
2010-03-17 11:29:35 -07:00
Jean-Michel Trivi
d327f21626 Implementation of the policing of transport control key press
events among multiple applications competing for the remote control
focus.
AudioManager defines a new API for applications to use in order to
register their BroadcastReceiver for the media button as the one
to receive the corresponding intent, but all applications at the
same time (in an ordered broadcast).
AudioService handles a stack of remote control focus owners. It
traps ACTION_MEDIA_BUTTON intents and sends a new intent to the
remote control focus owner.

Change-Id: I3c109221ecfb160cbb1ec0e40a71b241aad73812
2010-03-17 11:24:15 -07:00
Eric Laurent
4889fb75d4 Merge "Fix issue 2416481: Support Voice Dialer over BT SCO." 2010-03-17 09:16:27 -07:00
Yu Shan Emily Lau
1cffa446ee Inserted a 1.5s wait time between the camera release and new camrea.
Change-Id: I7540064a6e5229be1ef0fe266cd3050ae36b33a4
2010-03-16 18:38:26 -07:00
Eric Laurent
ef9500fe53 Fix issue 2416481: Support Voice Dialer over BT SCO.
- AudioPolicyManager: allow platform specific choice for opening a direct output.
 Also fixed problems in direct output management.
- AudioFliinger: use shorter standby delay and track inactivity grace period for direct output
thread to free hardware resources as soon as possible.
- AudioSystem: do not use cached output selection in getOutput() when a direct output
can be selected.

Change-Id: If44b50d29237b8402ffd7a5ba1dc43c56f903e9b
2010-03-16 17:32:18 -07:00
Andreas Huber
1fbf63abf4 "isPlaying" should never block, acquiring the mutex here is unnecessary, rather than investing in a separate mutex guarding just "mFlags" we accept returning "true" from isPlaying one too many times.
Change-Id: I597577cbb3ad1afd3cb3ca91979ef24cc1a44658
related-to-bug: 2518319
2010-03-16 14:31:52 -07:00
Andreas Huber
7f83e10c23 Merge "Properly handle errors during the codec configuration phase, attempt to revert to next available (likely software-) codec if configuration fails." 2010-03-16 12:59:42 -07:00
Andreas Huber
2a09c7e042 Properly handle errors during the codec configuration phase, attempt to revert to next available (likely software-) codec if configuration fails.
Change-Id: Id1c699711e30139c9cc29df972254b5ba026e6fb
related-to-bug: 2517098
2010-03-16 11:44:07 -07:00
Glenn Kasten
0543a5abd4 Merge "Fixes bug 2502132, and masks bug 2518313." 2010-03-16 09:39:50 -07:00
Kenny Root
0d4726a28e Merge "Fix regression in directory scanning" 2010-03-16 09:20:00 -07:00
Glenn Kasten
f62dd66a8a Fixes bug 2502132, and masks bug 2518313.
Change-Id: I5c5ecf1c10763f7b3f3d1e5c57dc5ce77cc344fd
2010-03-16 09:17:57 -07:00
Kenny Root
0c2ab24b94 Adjust expected text frame length in ID3
When encountering a null character in an ID3 text frame, adjust the
expected size accordingly so it isn't misidentified as ASCII.

This fixes http://b/2517444

Change-Id: I19a3284d378e882c33b28ecee528a434716c7707
2010-03-15 22:47:18 -07:00
Kenny Root
a8c02d77e4 Fix regression in directory scanning
Previous range-checking fix removed an inequality check. This change
restores it.

Offending change was I5eb310ced58c3c64a7af2d11b80326efe5adbcab

Change-Id: Ic952c3ba5a4f7e5ab2148ec623b6f083cb7495fb
2010-03-15 21:17:40 -07:00
Steve Howard
b06a68b9c4 Merge "Add a name to the previously-unnamed thread created by SoundPoolThread." 2010-03-15 13:40:53 -07:00
Andreas Huber
43f0e8e964 We no longer do sanity checks based on "hdlr" tags in .mp4 files. Pretty soon we'll play any bytestream that even vaguely resembles the spec...
Change-Id: I43e05404860d8856b8aa566cc9b256bb3fa57e6f
related-to-bug: 2483328
2010-03-15 11:45:40 -07:00
Ray Chen
74d4843641 Fix #2509370 ThumbnailUtils.createThumbnailFromEXIF crashes media provider.
Change-Id: Ia2cd00fb0fbdb32e9fb89b4d33ad3c1410eb40d3
2010-03-15 10:45:35 -07:00
Andreas Huber
7d74086141 Merge "Hack to "support" "enhanced" podcasts... slang for malformed .mp4 files." 2010-03-15 10:38:16 -07:00
Andreas Huber
174de8ea46 Merge "Fix the media metadata retriever (tests). The native constants must match those published at the java layer." 2010-03-15 10:38:00 -07:00
Andreas Huber
2d6f709b93 Merge "Tag the "testid3" commandline tool as "debug-only". It doesn't need to be included in release builds." 2010-03-15 10:37:34 -07:00
Andreas Huber
9fbaca9437 Tag the "testid3" commandline tool as "debug-only". It doesn't need to be included in release builds.
Change-Id: I7e489af3d569015e2a93d340088e059e984f8153
related-to-bug: 2513148
2010-03-15 10:33:52 -07:00
Andreas Huber
4d60fc5b43 Hack to "support" "enhanced" podcasts... slang for malformed .mp4 files.
Change-Id: I690b9f336062a0ff1a667d6461d66b1386db866d
related-to-bug: 2511744
2010-03-15 10:24:44 -07:00
Andreas Huber
122ff04c69 Fixing the sim build.
Change-Id: I307f6d59f473471adcf855e66b4e8275ab1b3b74
2010-03-15 09:21:46 -07:00