Android unit test

Source: Internet
Author: User

1. Am instrument-E Class com. Android. mediaframeworktest. Functional. mediaplayback. mediaplayerapitest-W com. Android. mediaframeworktest/. mediaframeworktestrunner

2.

$ ADB Shell
Root @ Android :/#Am instrument-E Class com. Android. mediaframeworktest. Functional. mediaplayback. mediaplayerapitest# Testgetthumbnail
-W com. Android. mediaframeworktest/. mediaframeworktestrunner
Bnail-W com. Android. mediaframeworktest/. mediaframeworktestrunner <
Com. Android. mediaframeworktest. Functional. mediaplayback. mediaplayerapitest :.
Test results for mediaframeworktestrunner =.
Time: 1.756

OK (1 test)

Root @ Android :/#

3. Frameworks \ base \ media \ tests \ contents \ media_api

Http://groups.google.com/group/android-porting/tree/browse_frm/thread/c5e048d48fca7665/85e63c659fc6d511? _ DONE = % 2 fgroup % 2fandroid-porting % 2fbrowse_frm % 2 fthread % 2fc5e048d48fca7665% 2f85e63c659fc6d511% 3 ftvc % 3d1% 26 & TVC = 1

> Has anyone tested stagefright with a video file? Does it work?

I 've tested video/audio decoding using stagefright .. It works straight away
For pv omx components, but required few fixes for our new HW codecs.

> Once I enable all the macros how do I test stagefright player?

U can run below commands in Android Shell
'Stagefright-H' will give all options.
'Stagefirght <video-File> 'will decode the file (No posting to overlay .,
Decoded buffers are just free 'd)
'Stagefright-A <audio-File> 'will decode audio file .,

> Also I saw one test app

"/Home/nimesh/Android/frameworks/base/Media/tests/mediaframeworktest"> does anyone know how to enable this test app and test the Media Player

Using this?

Just build by running 'make mediaframeworktest' in your android setup.

It will generate new 'mediaframeworktest.apk 'in your <out>/.../data folder.
Keep it in file system., you can test various media player api cils, and
Video usecases by below command ..,

Am instrument-E Class
Com. Android. mediaframeworktest. Functional. mediaplayerapitest # <Test-command>
-W com. Android. mediaframeworktest/. mediaframeworktestrunner

Just sure you have required file names, as specified in
. \ Frameworks \ base \ media \ tests \ mediaframeworktest \ SRC \ com \ Android \ mediaframe worktest \ medianames. Java

PS.
Few of video decoding tests I ran.

Am instrument-E Class
Com. Android. mediaframeworktest. Functional. mediaplayerapitest # testlargevideo heigth
-W com. Android. mediaframeworktest/. mediaframeworktestrunner &
Am instrument-E Class
Com. Android. mediaframeworktest. Functional. mediaplayerapitest # testlargevideo width
-W com. Android. mediaframeworktest/. mediaframeworktestrunner &
Am instrument-E Class
Com. Android. mediaframeworktest. Functional. mediaplayerapitest # testvideomp4se ekto
-W com. Android. mediaframeworktest/. mediaframeworktestrunner &
Am instrument-E Class
Com. Android. mediaframeworktest. Functional. mediaplayerapitest # testvideolong3 gpseekto
-W com. Android. mediaframeworktest/. mediaframeworktestrunner &
Am instrument-E Class
Com. Android. mediaframeworktest. Functional. mediaplayerapitest # testvideoh263a acseekto
-W com. Android. mediaframeworktest/. mediaframeworktestrunner &
Am instrument-E Class
Com. Android. mediaframeworktest. Functional. mediaplayerapitest # testvideoh263a mrseekto
-W com. Android. mediaframeworktest/. mediaframeworktestrunner &
Am instrument-E Class
Com. Android. mediaframeworktest. Functional. mediaplayerapitest # testvideoh264a acseekto
-W com. Android. mediaframeworktest/. mediaframeworktestrunner &
Am instrument-E Class
Com. Android. mediaframeworktest. Functional. mediaplayerapitest # testvideoh264a mrseekto
-W com. Android. mediaframeworktest/. mediaframeworktestrunner &
Am instrument-E Class
Com. Android. mediaframeworktest. Functional. mediaplayerapitest # testvideowmvse ekto
-W com. Android. mediaframeworktest/. mediaframeworktestrunner &
Am instrument-E Class
Com. Android. mediaframeworktest. Functional. mediaplayerapitest # testgetthumbna Il
-W com. Android. mediaframeworktest/. mediaframeworktestrunner &
Am instrument-E Class
Com. Android. mediaframeworktest. Functional. mediaplayerapitest # testlocalh263a mrprepareasynccallback
-W com. Android. mediaframeworktest/. mediaframeworktestrunner &
Am instrument-E Class
Com. Android. mediaframeworktest. Functional. mediaplayerapitest # teststreamprep areasynccallback
-W com. Android. mediaframeworktest/. mediaframeworktestrunner &
Am instrument-E Class
Com. Android. mediaframeworktest. Functional. mediaplayerapitest # teststreamprep areasynccallbackreset
-W com. Android. mediaframeworktest/. mediaframeworktestrunner &
Am instrument-E Class
Com. Android. mediaframeworktest. performance. mediaplayerperformance # testh263v ideoplaybackmemoryusage
-W com. Android. mediaframeworktest/. mediaframeworkperftestrunner &
Am instrument-E Class
Com. Android. mediaframeworktest. performance. mediaplayerperformance # testhsf-v ideoplaybackmemoryusage
-W com. Android. mediaframeworktest/. mediaframeworkperftestrunner &
Am instrument-E Class
Com. Android. mediaframeworktest. performance. mediaplayerperformance # testwmvvi deoplaybackmemoryusage
-W com. Android. mediaframeworktest/. mediaframeworkperftestrunner &
Am instrument-E Class
Com. Android. mediaframeworktest. Stress. mediaplayerstresstest # teststresshwdec oderrelease
-W com. Android. mediaframeworktest/. mediarecorderstresstestrunner &
Am instrument-E Class
Com. Android. mediaframeworktest. Stress. mediaplayerstresstest # teststressgetcu r1_position
-W com. Android. mediaframeworktest/. mediarecorderstresstestrunner &

On wed, May 19,201 0 at, nimeshchani
Nimeshchanch...@gmail.com> wrote:

-Hide referenced text
-

> Has anyone tested stagefright with a video file? Does it work?
> Once I enable all the macros how do I test stagefright player?
> Also what did you mean
>"
> RUN 'stagefright
> <Video-File> 'to see the behavior.
>"

> Also I saw one test app "/home/nimesh/Android/frameworks/base/Media/
> Tests/mediaframeworktest"

> Does anyone know how to enable this test app and test the Media Player
> Using this?

> On APR 29, PM, Deva r <r.deva...@gmail.com>
Wrote:
>>Is it a VTC application ?? Curious to know the usecase ..

> Eclair 2.1 has minimal stagefright library, and it does 'almost'
> Exactly what you described below ..
> It reads, parses media files, sends buffer to pv omx components (h264
> Random SIVE), gets output buffers and frees it (does nothing in
> Eclair )..

> To run stagefright: Build stagefright (addbuild_with_full_stagefright
>>: = True in./buildspec. mk file and build while FS), run 'stagefright
>>< Video-File> 'to see the behavior ..

> Also refer the source
>./Frameworks/base/cmds/stagefright. cpp
>./Frameworks/base/Media/libstagefright/omxcodec. cpp

> No docs I 've seen should t source today ..

>-Deva

> On Thu, APR 29,201 0 at pm, Shri <shrira...@gmail.com>
Wrote:
>>> Hi,
>>> Its a newbie question. I have looked through various posts in Android-
>>> Porting and Android-platform.
>>> I have also gone through the opencore documents in the doc folder.

>>> I have the following requirement:

>>> Access the H.264 decoder either directly or via opencore from my
>>> Application. I am not looking to playback via pvplayer.
>>> Decode the H.264 frames (NAL) and pass the decoded frame back to my
>>> Application.

>>> The file parsing, etc happens within my application. The decoder will
>>> Have to decode the input frame that the application provides.

>>> Can you guide me on this?

>>> I am unable to understand the starting point (class instance)
>>> Accessing the H.264 codec.

>>> Are there any documents for explaining how the opencore components can
>>> Be used? Specifically for the use case described above. I guess, it
>>> Wocould be the usage of the H.264 decoder component.

>>> Thanks and regards
>>> Shriram

>>> --
>>> Unsubscribe: Android-porting + unsubscribe@googlegroups.com <Android-porting % 2bunsubscribe @ googlegroups.com>
>>> Website: http://groups.google.com/group/android-porting

> --
> Unsubscribe: Android-porting + unsubscribe@googlegroups.com <Android-porting % 2bunsubscribe @ googlegroups.com>
> Website: http://groups.google.com/group/android-porting-hide
Quoted text
>-

>-Show quoted text-

> --
> Unsubscribe: Android-porting + unsubscribe@googlegroups.com <Android-porting % 2bunsubscribe @ googlegroups.com>
> Website: http://groups.google.com/group/android-porting

--
Unsubscribe: Android-porting + unsubscribe@googlegroups.com
Web: http://groups.google.com/group/android-porting

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.