Andreas Huber
c2eeb2f52e
Limit the total amount of ID3 metadata to something (un-)reasonable: 3MB.
...
Change-Id: I3f9bbcdd4f563bac27c4ccae58e4179656c264b6
related-to-bug: 1903971
2010-03-29 15:13:40 -07:00
Andreas Huber
1e64e52c8f
Merge "Fix a bug where the TimedEventQueue mistakenly accesses a bogus event if the only event in the queue has been cancelled while we're waiting for its scheduled time. Avoids potential int64_t overflow when converting from us to ns." into froyo
2010-03-29 12:58:03 -07:00
Andreas Huber
62141b430f
Fix a bug where the TimedEventQueue mistakenly accesses a bogus event if the only event in the queue has been cancelled while we're waiting for its scheduled time. Avoids potential int64_t overflow when converting from us to ns.
...
Change-Id: I50e8976ce8d0ecc47ee0eb497296930877ce306a
related-to-bug: 2549465
2010-03-29 12:01:25 -07:00
Andreas Huber
252573cb82
Finer-grained locking in AwesomePlayer, position and duration are now protected by a separate mutex that's only held for brief moments of time.
...
Change-Id: I989baf5a0ea8923985c560c2ec274abda0780242
related-to-bug: 2546577
2010-03-26 10:17:17 -07:00
Wu-cheng Li
bb961a05d7
Merge "Fix testCameraPreviewMemoryUsage test."
2010-03-25 03:52:00 -07:00
Wu-cheng Li
59411b3373
Fix testCameraPreviewMemoryUsage test.
...
Looper.quit() is asynchronous. The looper may still has some
preview callbacks in the queue after quit is called. The preview
callback still uses the camera object (setHasPreviewCallback).
After camera is released, RuntimeException will be thrown from
the method. So we need to join the looper thread here.
This change also fixes a potential race condition.
bug:2521202
Change-Id: If69bbb3125d1d30192563559579b87c20fa5aac8
2010-03-25 18:26:42 +08:00
Andreas Huber
ad069eb1d6
Merge "QueryCodecs now returns the names of the software codecs (non-OpenMax) as well."
2010-03-24 13:53:28 -07:00
Andreas Huber
1a189a8232
QueryCodecs now returns the names of the software codecs (non-OpenMax) as well.
...
Change-Id: Ic4cd61f4dd722fb0dda544ffaa5615e87e3a4d40
related-to-bug: 2541647
2010-03-24 13:49:20 -07:00
Andreas Huber
f71daba4cd
Enable early termination of the prefetcher's preparation phase.
...
Change-Id: I929ac9b0fd0b6ebd98c1bc56be18ac8f8378d48c
related-to-bug: 2537407
2010-03-24 09:42:21 -07:00
Andreas Huber
9b732dec07
Clear the local prefetcher strong reference before signalling that prepare() was cancelled early in order to avoid a race condition that occasionally triggered an assertion from the main thread.
...
Change-Id: I0db198fe5fd0fbe9a6c90a8e5924a2df05432c4c
related-to-bug: 2538486
2010-03-23 15:30:57 -07:00
Eric Laurent
5b4e654d0c
Fix issue 2472495: Phone cannot be set to silent mode via volume keys while Driveabout is taking.
...
The problem is that AudioService.adjustStreamVolume() only handles the ringer mode change when the
STREAM_RING volume changes from 1 to 0 or 0 to 1. If another stream is soloed, the STREAM_RING stream
volume is forced to 0 and then never transits from 0 to 0 when volume down key is pressed.
The fix consists in considering the saved value instead of current value when ajusting or setting
the volume of a muted stream: only the saved value is adjusted too, leaving the stream muted but updating
the value that will be restored when it will be unmuted.
Also changed implementation of stream volume control by setRingerModeInt() to use stream mute feature
instead of direct volume control.
Change-Id: Id85d76450b36d61a0fe8195eb4bffe63ffbd427c
2010-03-22 15:46:58 -07:00
Jean-Michel Trivi
bbbb1dc3c3
Unhide the MediaButton receiver API in android.media.AudioManager
...
Change-Id: Ic9222b0bf6e2ff481c6aa5f16ac0259fa7a52355
2010-03-22 13:49:30 -07:00
James Dong
90f8680f41
Update MediaRecorder.java documentation to mention it does not work on the emulator yet.
...
bug - 2532726
Change-Id: If6dbf0d89c4681a647419e1911213a4c22dc3dab
2010-03-22 00:31:12 -07:00
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