Home
last modified time | relevance | path

Searched refs:mPlayer (Results 1 – 2 of 2) sorted by relevance

/platform_testing/tests/androidbvt/src/com/android/androidbvt/
DMediaPlaybackTests.java40 private MediaPlayer mPlayer; field in MediaPlaybackTests
60 mPlayer = MediaPlayer.create(getInstrumentation().getContext(), R.raw.bbb); in testVideoPlayback()
61 mPlayer.setDisplay(getActivity().getSurfaceHolder()); in testVideoPlayback()
76 mPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in testVideoPlayback()
84 mPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { in testVideoPlayback()
94 mPlayer.start(); in testVideoPlayback()
95 int duration = mPlayer.getDuration(); in testVideoPlayback()
96 int currentPosition = mPlayer.getCurrentPosition(); in testVideoPlayback()
105 mPlayer.release(); in testVideoPlayback()
/platform_testing/tests/smokefast/src/com/android/smokefast/
DMediaPlaybackTest.java40 private MediaPlayer mPlayer; field in MediaPlaybackTest
60 mPlayer = MediaPlayer.create(getInstrumentation().getContext(), R.raw.bbb); in testVideoPlayback()
61 mPlayer.setDisplay(getActivity().getSurfaceHolder()); in testVideoPlayback()
76 mPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() { in testVideoPlayback()
84 mPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { in testVideoPlayback()
94 mPlayer.start(); in testVideoPlayback()
95 int duration = mPlayer.getDuration(); in testVideoPlayback()
96 int currentPosition = mPlayer.getCurrentPosition(); in testVideoPlayback()
105 mPlayer.release(); in testVideoPlayback()