434 Commits

Author SHA1 Message Date
Android (Google) Code Review
e9bd4788d4 Merge change 26881 into eclair
* changes:
  Fix issue 2142613: ToneGenerator: short tones sometimes don't play on sholes or over A2DP.
2009-09-25 03:37:03 -04:00
Android (Google) Code Review
3f790d8783 Merge change 27011 into eclair
* changes:
  Added the checking for the wma in the memory test.
2009-09-25 03:31:28 -04:00
Yu Shan Emily Lau
a56e653130 Added the checking for the wma in the memory test. 2009-09-25 00:07:47 -07:00
Eric Laurent
af141d529f Fix issue 2142613: ToneGenerator: short tones sometimes don't play on sholes or over A2DP.
When the AudioTrack callback notification size is relatively high (Which is the case on Sholes and over A2DP), it is likely that the end of tone is reached during the first callback. In this case, the AudioTrack is stopped before exiting the callback which causes 2 problems:
- 1: If the AudioFlinger thread is scheduled before we exit the ToneGenerator callback, the track can be stopped and reset before the data is actually marked as present in the buffer by the AudioTrack callback => no audio will be processed by AudioFlinger.
- 2: In this case, the data write index in the AudioTrack buffer is incremented after the track was reset by the AudioFlinger which leaves unplayed data in the buffer. This data will be played the next time the AudioTrack is started if not flushed in between.

The fix consists in adding an intermediate state to ToneGenerator state machine so that we exit the callback function when the stop condition is reached and stop the AudioTrack the next time we execute the callback.
2009-09-24 23:49:40 -07:00
Ray Chen
343449f018 Fix issue 2128896 The thumbnail generated after picture capture with max zoom is overlapped with previous thumbnail. 2009-09-24 20:22:37 -07:00
Android (Google) Code Review
7d0bdfaf9a Merge change 26948 into eclair
* changes:
  Suppress the testPing as we moved the release test target to the userdebug. This test rely on a mock_media_player.so which build under the eng build
2009-09-24 19:53:57 -04:00
Yu Shan Emily Lau
5b0b63b674 Suppress the testPing as we moved the release test target to the userdebug. This test rely on a mock_media_player.so which build under the eng build 2009-09-24 16:17:14 -07:00
Dianne Hackborn
a52b4d764e Fix broken build.
I -did- run it...  why did this later break on me?!?

Change-Id: I70db0279f9a1b499496f9808525d2b112495d6c7
2009-09-23 15:17:39 -07:00
Ray Chen
00c575a3fc Add new thumbnail API. 2009-09-23 11:23:45 -07:00
Android (Google) Code Review
008fc5d142 Merge change 26332 into eclair
* changes:
  1) Add the wma / wmv profile reader. 2) Add the flag which check the wma/wmv enable properties. If the codec is not enable, then skip the wma / wmv related test cases. 3) Added a workaround which let the testcodecspecific test case continue even though there is a failure in the middle of the test. Besides, take out the remvoeFile for temporary usage.
2009-09-22 15:09:33 -04:00
Yu Shan Emily Lau
dc1af5befa 1) Add the wma / wmv profile reader.
2) Add the flag which check the wma/wmv enable properties. If the codec is not enable, then skip the wma / wmv related test cases.
3) Added a workaround which let the testcodecspecific test case continue even though there is a failure in the middle of the test. Besides, take out the remvoeFile for temporary usage.
2009-09-22 10:52:56 -07:00
Chih-Chung Chang
b8f4725d1b Make media scanner read the jpeg orientation tag. 2009-09-22 04:42:02 +08:00
Android (Google) Code Review
92b27dafe9 Merge change 25858 into eclair
* changes:
  There is a know issue in PV regarding the video size return. Need to put a 1 second sleep before we get the video dimension
2009-09-18 23:07:00 -04:00
Yu Shan Emily Lau
17d7ea4947 There is a know issue in PV regarding the video size return. Need to put a 1 second sleep before we get the video dimension 2009-09-18 16:27:24 -07:00
Android (Google) Code Review
e785d1804d Merge change 25826 into eclair
* changes:
  Suppressed the invalidFrameRate as the framework is not throwing the IOException anymore.
2009-09-18 19:14:32 -04:00
Yu Shan Emily Lau
9d7b2fa808 Suppressed the invalidFrameRate as the framework is not throwing the IOException anymore. 2009-09-18 14:58:56 -07:00
Chih-Chung Chang
872a30ec72 Improve ExifInterface API.
Change-Id: Ic6c4df8244b51b9a0d1c73c3797847220d86604d
2009-09-18 11:30:47 -07:00
Yu Shan Emily Lau
bc95d663ad Modified the validation to use singal media player instance. 2009-09-17 23:43:18 -07:00
Android (Google) Code Review
56af9e9f9c Merge change 25452 into eclair
* changes:
  Modified the new stream video url.
2009-09-18 02:20:43 -04:00
Android (Google) Code Review
3065a3cad0 Merge change 25528 into eclair
* changes:
  Another stagefright test-case and ignore end-of-stream notifications while we're flushing.
2009-09-17 14:46:45 -04:00
Andreas Huber
1a77b68e90 Another stagefright test-case and ignore end-of-stream notifications while we're flushing. 2009-09-17 11:16:52 -07:00
Yu Shan Emily Lau
208ad8e413 Modified the new stream video url. 2009-09-16 23:16:44 -07:00
Android (Google) Code Review
c82e65aed5 Merge change 25228 into eclair
* changes:
  	modified:   MediaFrameworkTest/src/com/android/mediaframeworktest/stress/MediaRecorderStressTest.java Added the error callback to handle the media server crash.
2009-09-16 22:16:58 -04:00
Android (Google) Code Review
fc5f10265f Merge change 25291 into eclair
* changes:
  Try to fix sdk build again.
2009-09-16 13:23:35 -04:00
Chih-Chung Chang
9081aec61f Try to fix sdk build again. 2009-09-17 01:20:05 +08:00
Android (Google) Code Review
de88c515ce Merge change 25286 into eclair
* changes:
  Fix sdk build.
2009-09-16 13:15:45 -04:00
Chih-Chung Chang
7b886f9e8c Fix sdk build. 2009-09-17 01:09:08 +08:00
Android (Google) Code Review
f7c3679f89 Merge change 25158 into eclair
* changes:
  Another software color conversion implementation, this time OMX_QCOM_COLOR_FormatYVU420SemiPlanar => rgb565.
2009-09-16 13:01:57 -04:00
Android (Google) Code Review
d3ba4811d4 Merge change 25272 into eclair
* changes:
  Make ExifInterface public.
2009-09-16 12:12:03 -04:00
Android (Google) Code Review
b53eaac659 Merge change 25155 into eclair
* changes:
  Fix bug 2115258 where the AudioManager javadoc doesn't warn against misuse of some of the methods that should only be used to implement the Settings and Phone apps, and the audio service.
2009-09-16 12:07:37 -04:00
Chih-Chung Chang
017bb4ccf7 Make ExifInterface public. 2009-09-16 23:38:34 +08:00
Chih-Chung Chang
700beb4846 Clean ExifInterface. Prepare to make it public.
Change-Id: Ibff719d02f525c1e8583d1892737224a0cc42c37
2009-09-16 20:03:48 +08:00
Yu Shan Emily Lau
20a6b955fe modified: MediaFrameworkTest/src/com/android/mediaframeworktest/stress/MediaRecorderStressTest.java
Added the error callback to handle the media server crash.

	modified:   MediaFrameworkTest/src/com/android/mediaframeworktest/stress/MediaRecorderStressTest.java
2009-09-15 21:42:07 -07:00
Yu Shan Emily Lau
610e3595d2 modified: MediaFrameworkTest/src/com/android/mediaframeworktest/MediaNames.java
Fixed the meta data duration
2009-09-15 20:40:07 -07:00
Andreas Huber
4f23457958 Another software color conversion implementation, this time OMX_QCOM_COLOR_FormatYVU420SemiPlanar => rgb565. 2009-09-15 16:19:08 -07:00
Jean-Michel Trivi
fccb25d207 Fix bug 2115258 where the AudioManager javadoc doesn't warn against
misuse of some of the methods that should only be used to implement
the Settings and Phone apps, and the audio service.
2009-09-15 16:13:59 -07:00
Andreas Huber
0446b82617 The 8k chipset qcom decoders require that the input buffers be allocated using OMX_AllocateBuffer rather than OMX_UseBuffer for now.
If they aren't, a later call to OMX_FreeBuffer crashes...
2009-09-15 15:50:31 -07:00
Android (Google) Code Review
a4fe2aca52 Merge change 25128 into eclair
* changes:
  Support CbYCrY -> RGB565 color conversion in IOMXRenderer.
2009-09-15 17:48:33 -04:00
Android (Google) Code Review
0edada085e Merge change 25101 into eclair
* changes:
  Added an API IOMX::createRendererFromJavaSurface.
2009-09-15 17:48:22 -04:00
Andreas Huber
c966a3c255 Support CbYCrY -> RGB565 color conversion in IOMXRenderer. 2009-09-15 14:32:59 -07:00
Android (Google) Code Review
4d445d682e Merge change 24955 into eclair
* changes:
  	new file:   tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaProfileReader.java 	modified:   tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaRecorderTest.java Added a new test suite which parse the system media properties and group in into the high quality and low quality recording tests.
2009-09-15 17:10:54 -04:00
Andreas Huber
9f9afef3d5 Added an API IOMX::createRendererFromJavaSurface.
This api allows to instantiate a renderer by specifying the hosting java Surface object. This hides the implementation details of (java-)Surface, (native-)Surface and friends.
2009-09-15 12:49:11 -07:00
Yu Shan Emily Lau
1619367ab8 new file: tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaProfileReader.java
modified:   tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaRecorderTest.java
Added a new test suite which parse the system media properties and group in into the high quality and low quality recording tests.

	new file:   tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaProfileReader.java
	modified:   tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/MediaRecorderTest.java
2009-09-14 16:27:34 -07:00
Andreas Huber
92022857fb Added a little more logging in OMXCodec.cpp for vendors to be able to reproduce issues... 2009-09-14 15:24:14 -07:00
Android (Google) Code Review
714ec1360c Merge change 24742 into eclair
* changes:
  Apparently I must not use OMX_UseBuffer on either input or output ports on any of the TI components... or else.
2009-09-14 13:08:02 -04:00
Android (Google) Code Review
91e2d8651f Merge change 24337 into eclair
* changes:
  Fix issue 2107584: media server crash when AudioFlinger fails to allocate memory for track control block.
2009-09-14 02:43:52 -04:00
Yu Shan Emily Lau
147a0c270b modified: tests/MediaFrameworkTest/src/com/android/mediaframeworktest/MediaNames.java
modified:   tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/MediaPlayerStressTest.java
Fix the m4a1 duration and the also fix the random_seek time error in the stress test.

        modified:   tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/MediaPlayerStressTest.java
2009-09-11 16:37:42 -07:00
Andreas Huber
2dc64d80e3 Apparently I must not use OMX_UseBuffer on either input or output ports on any of the TI components... or else. 2009-09-11 12:58:53 -07:00
Andreas Huber
2aa39c4507 Only build the "full" stagefright (including MediaExtractors and MediaPlayer) if BUILD_WITH_FULL_STAGEFRIGHT define is set (to true). 2009-09-11 09:54:52 -07:00
Andreas Huber
6026a51424 Move JPEGSource.{cpp,h} into libstagefright. 2009-09-11 07:49:50 -07:00