Andreas Huber
5ee0bce5e0
Return runtime errors instead of asserting in MPEG4 file format validation, also add more validation to ensure presence of codec specific data for avc, aac and mpeg4.
...
related-to-bug: 2431967
2010-02-23 10:21:39 -08:00
James Dong
f82c76656b
Merge "Replace system property retrieval calls with DecoderCapabilities Java API calls."
2010-02-23 10:16:57 -08:00
Andreas Huber
d6b6bf9321
Merge "Properly unload the renderer shared library after the renderer goes away."
2010-02-22 16:34:32 -08:00
Gloria Wang
582ae172a4
Merge "Fix for the safty check. It checks that nFir21 + jNpoints <= BUF_SIZE, but when it calls GetByteArrayRegion, it multiplies it by 2 which defeats the "// safety first" check at the beginning."
2010-02-22 16:08:28 -08:00
Gloria Wang
196863d274
Fix for the safty check. It checks that nFir21 + jNpoints <= BUF_SIZE,
...
but when it calls GetByteArrayRegion, it multiplies it by 2 which
defeats the "// safety first" check at the beginning.
2010-02-22 15:59:03 -08:00
Andreas Huber
078f7f05d5
Properly unload the renderer shared library after the renderer goes away.
2010-02-22 15:41:07 -08:00
Andreas Huber
b8de9578dc
This hardware video decoder lies about its required input buffer sizes allocating 2.7 MB of memory instead of the required 176 KB... Added another quirk.
...
related-to-bug: 2281327
2010-02-22 14:58:45 -08:00
James Dong
1b7babd2cc
Use Java API from xml configuration in the test application
2010-02-22 11:32:02 -08:00
Eric Laurent
9a56aaf12b
am 8978547f: am f5fe3949: Fix issue 2459650.
...
Merge commit '8978547f254b6b6ba2e322794aa044803f3edc2a'
* commit '8978547f254b6b6ba2e322794aa044803f3edc2a':
Fix issue 2459650.
2010-02-22 11:19:51 -08:00
Eric Laurent
8978547f25
am f5fe3949: Fix issue 2459650.
...
Merge commit 'f5fe3949f5db69b19ce3fac7abce2088106f2e2b' into eclair-plus-aosp
* commit 'f5fe3949f5db69b19ce3fac7abce2088106f2e2b':
Fix issue 2459650.
2010-02-22 11:13:08 -08:00
Eric Laurent
f5fe3949f5
Fix issue 2459650.
...
This change fixes a problem where an unwanted tone is generated by audio policy manager when a MT call is answered.
This is because of a policy that replaces high visibility system sounds (ringtones, alarms...) by a beep when in call.
There is a transitory phase while the call is being answered where the phone state is changed to IN_CALL but the
ringtone is still playing. The audio policy manager then mutes the end of the ringtone and starts playing a beep
in replacement because the ringtone is categorized as high visibility.
The fix consists in changing the ringtone stream type from high visibility to low visibility. This is not a problem as
the only actual use case where a ringtone would be generated while in call is if another call is received.
But in this case, the phone system does not generate a ringtone but a call waiting tone instead.
It is therefore not required to handle a ringtone as a high visibiltiy tone that must be somehow signaled to the user
while in call.
2010-02-22 01:37:19 -08:00
Wu-cheng Li
b427a7b0e4
Merge "Increase the sleep time to fix testTakePicture."
2010-02-21 23:18:45 -08:00
Wu-cheng Li
6201440298
Increase the sleep time to fix testTakePicture.
...
One of the build needs 5 seconds for snapshot in low light. I don't want to
increase the sleep time, but this is what we have now.
bug:2141755
2010-02-22 15:08:16 +08:00
San Mehat
fda25347b8
sdutils: Get rid of sdutils - use vdc for similar low level functions
...
Signed-off-by: San Mehat <san@google.com>
2010-02-20 08:07:03 -08:00
Marco Nelissen
e49268af9e
Merge "Make sure that the event callback thread is Java capable in the simulator."
2010-02-19 16:00:26 -08:00
Marco Nelissen
7691af9062
Make sure that the event callback thread is Java capable in the simulator.
2010-02-19 15:47:51 -08:00
Andreas Huber
b2d69e3d77
The MediaScanner is way too obsessed with restricting the files to be scanned.
...
related-to-bug: 2326148
2010-02-19 09:55:02 -08:00
Andreas Huber
b52188ee57
Merge "Implement legacy behaviour for MediaPlayer's behaviour of starting from the start of the media on a start() call instead of resuming at the current position, if previously reached the end of the stream. Also properly report number of frames played to audio flinger. Finally, delay spawing the queue thread until actually used."
2010-02-19 08:02:57 -08:00
Andreas Huber
406a18b5b3
Implement legacy behaviour for MediaPlayer's behaviour of starting from the start of the media on a start() call instead of resuming at the current position, if previously reached the end of the stream. Also properly report number of frames played to audio flinger. Finally, delay spawing the queue thread until actually used.
...
related-to-bug: 2453220
2010-02-18 16:45:13 -08:00
Andreas Huber
397afb5464
Fix a race condition in the prefetcher, the source may be shutdown while we're reading data from it.
...
related-to-bug: 2453414
2010-02-18 15:55:30 -08:00
Kenny Root
a6fe26c58f
Merge "Range check in MediaScanner::processDirectory"
2010-02-18 09:36:08 -08:00
Kenny Root
7fe4fe68fa
Range check in MediaScanner::processDirectory
...
Make sure we don't have an empty string before checking if it's a
directory since this string is tainted.
Change-Id: I5eb310ced58c3c64a7af2d11b80326efe5adbcab
2010-02-18 09:26:47 -08:00
Kenny Root
75bbe2b7c7
Merge "Store AudioTrack return value for error condition"
2010-02-18 09:24:42 -08:00
Kenny Root
3cbd62c3ce
Store AudioTrack return value for error condition
...
Store AudioTrack->initCheck()'s return value so we can return it after
the AudioTrack is deleted.
Change-Id: Ie042a7d6a54d7f9afd8a5767cfd167dbeb2e5c04
2010-02-18 09:03:34 -08:00
Andreas Huber
c0178f1097
We are cancelling this event during reset, but the event may have already been dispatched at the time, blocking on the mutex. While it's blocking, reset() cancels the event, we're then unblocked and bad things(tm) happen.
...
related-to-bug: 2451174
2010-02-17 16:01:01 -08:00
Andreas Huber
0a026cff9e
Merge "Disable the TI AMR hardware decoder for audio decoding until its issues are resolved."
2010-02-17 15:06:51 -08:00
Andreas Huber
4727040c5c
Disable the TI AMR hardware decoder for audio decoding until its issues are resolved.
...
related-to-bug: 2450938
2010-02-17 15:04:18 -08:00
Dave Sparks
0551311980
Unhide new SoundPool API's. Bug 2415373.
2010-02-17 13:29:08 -08:00
Dave Sparks
af6fdfa4bb
Merge "Fix logging in SoundPool."
2010-02-17 09:16:43 -08:00
Jaikumar Ganesh
afdf85d435
Merge "Fix issue 2440226: Car dock volume synchronization."
2010-02-17 09:15:50 -08:00
Dave Sparks
7bef5a58f1
Fix logging in SoundPool.
2010-02-17 09:09:24 -08:00
James Dong
68db99ef76
Replace system property retrieval calls with DecoderCapabilities Java API calls.
2010-02-17 00:11:32 -08:00
Dave Sparks
675ee6ac36
Merge "Add SoundPool API to pause and resume all active streams. Bug 2426531."
2010-02-16 16:41:19 -08:00
Dave Sparks
f992cbb9aa
Add SoundPool API to pause and resume all active streams. Bug 2426531.
2010-02-16 16:19:32 -08:00
Andreas Huber
9f56485823
Merge "If we never triggered a range request but know the content length make sure to not read more data than there could be, otherwise we'd block indefinitely if the server doesn't close the connection."
2010-02-16 14:41:14 -08:00
Andreas Huber
67e8dfb257
Merge "Don't hold the prefetcher mutex while prefetching a single source, the lock protects the list of sources and does not guard access to the individual sources."
2010-02-16 14:36:45 -08:00
Andreas Huber
2ae13a9c48
Don't hold the prefetcher mutex while prefetching a single source, the lock protects the list of sources and does not guard access to the individual sources.
...
related-to- bug: 2413024
2010-02-16 14:24:05 -08:00
Andreas Huber
57f790f96d
If we never triggered a range request but know the content length make sure to not read more data than there could be, otherwise we'd block indefinitely if the server doesn't close the connection.
...
related-to-bug: 2442307
2010-02-16 14:00:36 -08:00
Andreas Huber
cf06dd0a8a
Merge "The AMRSource failed to properly release a media buffer in case of error."
2010-02-16 11:48:33 -08:00
James Dong
62ed7a6d4a
Merge "Support decoder queries from media profiles xml configuration file"
2010-02-16 10:59:13 -08:00
Andreas Huber
bc8342721d
The AMRSource failed to properly release a media buffer in case of error.
...
related-to-bug: 2441307
2010-02-16 10:46:02 -08:00
Eric Laurent
9ce379aef1
Fix issue 2440226: Car dock volume synchronization.
...
AudioService now sends intent AudioManager.VOLUME_CHANGED_ACTION when the volume is changed
on any stream type (previously the intent was sent only for STREAM_BLUETOOTH_SCO stream).
A new extra for previous volume value is added to the intent.
2010-02-16 06:40:20 -08:00
James Dong
d32fba411f
Support decoder queries from media profiles xml configuration file
2010-02-12 18:15:45 -08:00
Gloria Wang
190dd57fb8
Merge "Replace Tremor with Tremolo (an ARM optimised version of the Tremor library for doing Ogg Vorbis decompression)"
2010-02-12 17:04:29 -08:00
Gloria Wang
8d00b53cc4
Replace Tremor with Tremolo (an ARM optimised version of the Tremor library for doing Ogg Vorbis decompression)
2010-02-12 16:46:40 -08:00
Andreas Huber
bab28017a5
Merge "Preserve a preview frame to be restored after resuming the playback session."
2010-02-12 14:52:41 -08:00
Andreas Huber
7b73cfcc75
Preserve a preview frame to be restored after resuming the playback session.
...
related-to-bug: 2231576
2010-02-12 14:41:51 -08:00
Andreas Huber
acc63512e9
Merge "New API on java's MediaPlayer to suspend/resume a session."
2010-02-12 13:21:22 -08:00
Andreas Huber
fbb3885024
New API on java's MediaPlayer to suspend/resume a session.
...
related-to-bug: 2231576
2010-02-12 12:44:10 -08:00
Andreas Huber
ba7ec917ea
Squashed commit of the following:
...
commit 427e927298449826bb5b98327b0c05957aa051e6
Author: Andreas Huber <andih@google.com>
Date: Fri Feb 12 10:39:07 2010 -0800
Fixing a race condition in AwesomePlayer and support for suspend/resume.
commit 96201a04b6657b6bd69ec6100f4de66aebcaa0b4
Author: Andreas Huber <andih@google.com>
Date: Fri Feb 12 10:36:15 2010 -0800
Protect MPEG4Source's sanity by properly locking.
related-to-bug: 2231576
2010-02-12 12:43:34 -08:00