679 Commits

Author SHA1 Message Date
Eric Laurent
484d288868 Fix issue 2299360: Change in in-call volume affects the Bluetooth in-call volume and vice versa.
Add a separate system settings entry for bluetooth SCO volume.
2009-12-22 10:10:24 -08:00
James Dong
4d0e827d0b Attempt to fix simular build break.
Missing header file stdlib.h for free, malloc, etc
2009-12-19 08:53:01 -08:00
James Dong
4e4795c8c0 Fix a memory corruption problem in software M4v/H263 decoder due to out-of-scope local variable 2009-12-18 18:51:41 -08:00
Android (Google) Code Review
791c626add Merge change Ibac388a3 into eclair-mr2
* changes:
  Add support for XING header
2009-12-18 10:30:37 -08:00
Gloria Wang
1ba307d3c5 Add support for XING header 2009-12-17 15:46:25 -08:00
James Dong
02f5b5447d Initial checkins of the mpeg4 and h263 software decoders based on PV 2009-12-17 12:53:03 -08:00
Andreas Huber
2ea14e2319 Squashed commit of the following:
commit 144b1c40e9cf08a584c50e1bef7ba3f287e81a4f
Author: Andreas Huber <andih@google.com>
Date:   Wed Dec 16 09:28:23 2009 -0800

    This H264 file shows a certain problem even better.

commit 3245f1f3b7471975aeeb824a756c987abd610f55
Author: Andreas Huber <andih@google.com>
Date:   Wed Dec 16 09:20:08 2009 -0800

    Using only the QA testfiles now.

commit 074817eb3816c5dd70858a3594e3b92d799d873b
Author: Andreas Huber <andih@google.com>
Date:   Tue Dec 15 16:17:39 2009 -0800

    Yay, roles are back again now that the API is in place.

commit 6d847e4932cc38301ae27cb7283b7f1553a95457
Author: Andreas Huber <andih@google.com>
Date:   Tue Dec 15 13:01:20 2009 -0800

    Added commandline option for specifying the random seed for reproducable tests.

commit 62ab37b26336eaa67e49791c41c996acb6acee3f
Author: Andreas Huber <andih@google.com>
Date:   Mon Dec 14 10:53:27 2009 -0800

    When issuing a seek it is important that only the first MediaSource::read call has the seek option.

commit e77c46644b2fb6862bafa3569f7d304252074f1e
Author: Andreas Huber <andih@google.com>
Date:   Mon Dec 7 16:39:07 2009 -0800

    Make sure the tests are actually built, sp<OMXCodec> becomes sp<MediaSource>

commit 6df56915bd55a9445b3c6f953d3cc251d81579b8
Author: Andreas Huber <andih@google.com>
Date:   Thu Dec 3 14:25:36 2009 -0800

    Temporarily disable support for querying the roles of OMX components.

commit 31bb26930df9e3658dea684cedb4b0f1a06a4a88
Author: Andreas Huber <andih@google.com>
Date:   Tue Dec 1 13:36:52 2009 -0800

    Disregard EOS events, slightly change the way the EOS flag on output buffers is handled.

commit 4c382fbc9aebee8197d5988d04378062809e7c48
Author: Andreas Huber <andih@google.com>
Date:   Tue Dec 1 09:37:24 2009 -0800

    New random seek test for the codec tests. Fixed "sticky" end-of-output-buffers flag behaviour in OMXCodec.

commit c762eac3e44309592b61a168d66e091cf609fa03
Author: Andreas Huber <andih@google.com>
Date:   Tue Nov 3 14:13:43 2009 -0800

    Fix a typo.

commit 50540a59b65c7d476b0193c7494cd75895e6ca6d
Author: Andreas Huber <andih@google.com>
Date:   Tue Nov 3 09:48:35 2009 -0800

    Some more fine tuning of the unit tests, make MPEG4Extractor less verbose.

commit 1157a7e52a0636706caa235abe16d2ff8a0b8140
Author: Andreas Huber <andih@google.com>
Date:   Wed Oct 28 12:01:01 2009 -0700

    Changes to the IOMX::listNodes API, this now returns the component's roles as well, unit tests now test all components in all supported roles by default.

commit 30fbf2d8c6cb927689f7ba75eb550a81e9df488a
Author: Andreas Huber <andih@google.com>
Date:   Mon Oct 26 09:45:26 2009 -0700

    Initial check-in of unit tests for OMX components.
2009-12-17 09:28:15 -08:00
Andreas Huber
c7e91eee2e Add a new API to support determining the roles of an OMX component specified by name. Remove unneeded OMXSoftwareCodecsPlugin. 2009-12-15 15:22:08 -08:00
Andreas Huber
fb1c2f8d8d Properly integrate the software codecs into the OMXCodec::Create hierarchy of available components. 2009-12-15 13:28:55 -08:00
Android (Google) Code Review
3a3fd2ba1f Merge change Iaf1f0918 into eclair-mr2
* changes:
  Implement API to have new broadcasts replace existing broadcasts.
2009-12-14 16:06:49 -08:00
Andreas Huber
b1f5ee41e9 It's important that seek requests are only specified in the initial call to MediaSource::read and are not repeated in subsequent calls. 2009-12-14 15:34:11 -08:00
Dianne Hackborn
1c633fc89b Implement API to have new broadcasts replace existing broadcasts.
Use this in various places where it should serve no purpose to deliver
both broadcasts.  This is intended to reduce somewhat the flurry of
broadcasts that we churn through during boot.
2009-12-14 15:03:35 -08:00
Android (Google) Code Review
1955324151 Merge change I1314e737 into eclair-mr2
* changes:
  AwesomePlayer now renders either remote (IOMXRenderer) or locally depending on what kind of decoder was instantiated. Split off color conversion code into its own shared library.
2009-12-14 14:32:13 -08:00
Andreas Huber
1314e73786 AwesomePlayer now renders either remote (IOMXRenderer) or locally depending on what kind of decoder was instantiated. Split off color conversion code into its own shared library. 2009-12-14 14:18:22 -08:00
Andreas Huber
b5ae1c8712 The software AVCDecoder now properly seeks as requested. 2009-12-14 10:54:10 -08:00
Andreas Huber
d49b526dd2 Initial checkin of software AMR NB encoder based on PV source code. 2009-12-11 15:09:31 -08:00
Andreas Huber
85adf5e562 Propagate duration from input to output only if available, support multiple full frames of audio per input buffer in AMR/AAC decoders. 2009-12-11 11:27:02 -08:00
Andreas Huber
d8729c597b Removing an unused header file and a stale forward declaration. Also handling one more nalType as a no-op. 2009-12-11 09:58:36 -08:00
Andreas Huber
6ddcf01a90 remote destructors are not synchronously executed by the binder... 2009-12-11 09:04:55 -08:00
Andreas Huber
c1d5c921d6 Fix seek-on-startup behaviour in AwesomePlayer. 2009-12-11 09:01:32 -08:00
Android (Google) Code Review
b78599b738 Merge change Ia67d5388 into eclair-mr2
* changes:
  remote destructors are not synchronously executed by the binder...
2009-12-11 08:48:47 -08:00
Andreas Huber
a67d538881 remote destructors are not synchronously executed by the binder... 2009-12-11 08:39:42 -08:00
Android (Google) Code Review
fd49983009 Merge change I595c2d60 into eclair-mr2
* changes:
  Initial checkin of software AVC video decoder based on PV source code.
2009-12-11 08:39:00 -08:00
Dave Sparks
9472b35ba1 am 14f89404: Fix media player decode function. Bug 2317821.
Merge commit '14f8940472217e8b0164d8f213679710d623d528' into eclair-mr2

* commit '14f8940472217e8b0164d8f213679710d623d528':
  Fix media player decode function. Bug 2317821.
2009-12-10 17:57:10 -08:00
Jean-Michel Trivi
6608bd0d3a am 86ed86d2: Merge change I0f73439a into eclair
Merge commit '86ed86d2260932bdf2217b1d8431ac9e04d47534' into eclair-mr2

* commit '86ed86d2260932bdf2217b1d8431ac9e04d47534':
  Partially fix bug 2111240 Detect docking / undocking event by reporting
2009-12-10 16:46:13 -08:00
Andreas Huber
4a0ec3fda9 Initial checkin of software AVC video decoder based on PV source code. 2009-12-10 14:43:44 -08:00
Android (Google) Code Review
6ae24d9365 Merge change I3c01bb62 into eclair-mr2
* changes:
  Adding copyright headers to recently introduced decoder source files.
2009-12-10 12:37:59 -08:00
Andreas Huber
3c01bb627a Adding copyright headers to recently introduced decoder source files. 2009-12-10 12:28:22 -08:00
Andreas Huber
a30d400838 Initial check in of AMR (NB and WB) decoders based on PV source code. 2009-12-10 12:23:55 -08:00
Dave Sparks
14f8940472 Fix media player decode function. Bug 2317821.
There was a recent change to OpenCORE that broke the MediaPlayer::decode()
function for all OpenCORE supported formats (MP3, AAC, and AMR-NB/WB). The
affect is that SoundPool is unreliable for all of these formats. This patch
changes the logic in the AudioCache object that processes messages from the
media player. The old logic was fragile. This change should make it more
robust against changes.
2009-12-09 20:36:31 -08:00
Andreas Huber
7c55c3f5f5 Make sure to use the hand-tweaked-assembly version of the relevant mp3 code if building for ARM. 2009-12-08 10:07:22 -08:00
Android (Google) Code Review
6d35d4c2cf Merge change Ib16e5543 into eclair-mr2
* changes:
  Fix the mp3 audio extractor that would occasionally return an invalid frame directly after a seek.
2009-12-08 09:16:08 -08:00
Android (Google) Code Review
3f5b28679b Merge change I8f658214 into eclair-mr2
* changes:
  Minor tweaks to the mp3 and aac software decoders, propagate duration to output format.
2009-12-08 09:16:00 -08:00
Jean-Michel Trivi
6154412ee8 Partially fix bug 2111240 Detect docking / undocking event by reporting
to the AudioPolicyManager a new forced usage AudioSystem::FOR_DOCK
which can take the FORCE_NONE, FORCE_BT_DOCK or FORCE_WIRED_ACCESSORY
values. This CL is complemented by an update of the APM to take into
account the FOR_DOCK usage.
2009-12-07 20:42:52 -08:00
Andreas Huber
c532c95695 Note to self: Don't reverse the arguments to fseek(o)... 2009-12-07 16:41:57 -08:00
Andreas Huber
8f65821453 Minor tweaks to the mp3 and aac software decoders, propagate duration to output format. 2009-12-07 16:41:16 -08:00
Andreas Huber
b16e554371 Fix the mp3 audio extractor that would occasionally return an invalid frame directly after a seek. 2009-12-07 16:40:29 -08:00
Android (Google) Code Review
247003be9e Merge change I250f2433 into eclair-mr2
* changes:
  Initial checkin of stagefright MP3 audio decoder based on PV source code.
2009-12-07 14:31:46 -08:00
Andreas Huber
250f2433c6 Initial checkin of stagefright MP3 audio decoder based on PV source code. 2009-12-07 14:22:35 -08:00
Dave Sparks
3c256cf321 More SoundPool cleanup. Remove mSoundPoolRef and unused notify callback. 2009-12-07 13:01:01 -08:00
Dave Sparks
c0e3ddf8f2 Remove unused Java object reference in native SoundPool code. 2009-12-07 12:36:20 -08:00
Andreas Huber
8c7ab03469 Fixing the build, only instantiate the software aac decoder in full stagefright builds. 2009-12-07 11:23:44 -08:00
Android (Google) Code Review
73abc2ea4c Merge change I9c6e1f90 into eclair-mr2
* changes:
  Initial check in of stagefright software AAC decoder based on PV source code.
2009-12-07 11:03:28 -08:00
Eric Laurent
b8341cf7c8 am 6d42d806: Merge change I9cc489a2 into eclair
Merge commit '6d42d80653f2c41f3e72a878a1d9a6f9693b89f7' into eclair-mr2

* commit '6d42d80653f2c41f3e72a878a1d9a6f9693b89f7':
  Fix issue 2304669: VoiceIME: starting and canceling voice IME yields persistent "error 8" state on future attempts and breaks voice search.
2009-12-07 11:03:17 -08:00
Andreas Huber
dacaa73ae5 Initial check in of stagefright software AAC decoder based on PV source code. 2009-12-07 11:02:28 -08:00
Android (Google) Code Review
6d42d80653 Merge change I9cc489a2 into eclair
* changes:
  Fix issue 2304669: VoiceIME: starting and canceling voice IME yields persistent "error 8" state on future attempts and breaks voice search.
2009-12-07 11:00:54 -08:00
Yu Shan Emily Lau
8e6d79e2b5 am 8445f367: Merge change Ibb9b1de1 into eclair
Merge commit '8445f367070514dce3154be73827107b8a93f234' into eclair-mr2

* commit '8445f367070514dce3154be73827107b8a93f234':
  1) Capture the start memory before the test started
2009-12-07 10:54:38 -08:00
Android (Google) Code Review
8445f36707 Merge change Ibb9b1de1 into eclair
* changes:
  1) Capture the start memory before the test started 2) Report the mem diff to zero if it is negative.
2009-12-07 10:51:16 -08:00
Andreas Huber
91eb035404 Change OMXCodec::Create to return an sp<MediaSource> instead of an sp<OMXCodec>, this is more general and does not sacrifice any functionality as the remaining OMXCodec APIs are not meant to be public anyway. 2009-12-07 09:43:00 -08:00
Eric Laurent
9cc489a219 Fix issue 2304669: VoiceIME: starting and canceling voice IME yields persistent "error 8" state on future attempts and breaks voice search.
Fixed AudioFlinger::openInput() broken in change ddb78e7753be03937ad57ce7c3c842c52bdad65e
so that an invalid IO handle (0) is returned in case of failure.
Applied the same correction to openOutput().
Modified RecordThread start procedure so that a failure occuring during the first read from audio input stream is detected and causes
the record start to fail.
Modified RecordThread stop procedure to make sure that audio input stream fd is closed before we exit the stop function.

Fixed AudioRecord JAVA and JNI implementation to take status of native AudioRecord::start() into account
and not change mRecordingState to RECORDSTATE_RECORDING if start fails.
2009-12-07 05:37:47 -08:00