/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
D | CodecTest.java | 82 MediaPlayer mp = new MediaPlayer(); in getDuration() local 84 mp.setDataSource(filePath); in getDuration() 85 mp.prepare(); in getDuration() 89 int duration = mp.getDuration(); in getDuration() 91 mp.release(); in getDuration() 101 MediaPlayer mp = new MediaPlayer(); in getCurrentPosition() local 103 mp.setDataSource(filePath); in getCurrentPosition() 105 mp.prepare(); in getCurrentPosition() 106 mp.start(); in getCurrentPosition() 109 mp.pause(); in getCurrentPosition() [all …]
|
D | MediaRecorderStressTest.java | 380 MediaPlayer mp = new MediaPlayer(); in validateRecordedVideo() local 381 mp.setDataSource(recordedFile); in validateRecordedVideo() 382 mp.prepare(); in validateRecordedVideo() 383 int duration = mp.getDuration(); in validateRecordedVideo() 387 mp.release(); in validateRecordedVideo() 451 MediaPlayer mp = new MediaPlayer(); in testStressRecordVideoAndPlayback() local 452 mp.setDataSource(filename); in testStressRecordVideoAndPlayback() 453 mp.setDisplay(MediaFrameworkTest.getSurfaceView().getHolder()); in testStressRecordVideoAndPlayback() 454 mp.prepare(); in testStressRecordVideoAndPlayback() 455 mp.start(); in testStressRecordVideoAndPlayback() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaPlayerTest.java | 118 public boolean onError(MediaPlayer mp, int what, int extra) { in testIfMediaServerDied() 119 assertTrue(mp == mMediaPlayer); in testIfMediaServerDied() 128 public void onCompletion(MediaPlayer mp) { in testIfMediaServerDied() 129 assertTrue(mp == mMediaPlayer); in testIfMediaServerDied() 152 MediaPlayer mp = mMediaPlayer; in testVorbisCrash() local 164 mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testVorbisCrash() 166 mp.prepare(); in testVorbisCrash() 174 mp.reset(); in testVorbisCrash() 203 MediaPlayer mp = MediaPlayer.create(mContext, uri); in testPlayAudioFromDataURI() local 206 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); in testPlayAudioFromDataURI() [all …]
|
D | LoudnessEnhancerTest.java | 140 MediaPlayer mp = null; in test3_0MeasureGainChange() local 144 mp = MediaPlayer.create(getContext(), R.raw.sine1khzm40db); in test3_0MeasureGainChange() 147 assertNotNull("null MediaPlayer", mp); in test3_0MeasureGainChange() 155 mp.getAudioSessionId()); in test3_0MeasureGainChange() 163 int sessionId = mp.getAudioSessionId(); in test3_0MeasureGainChange() 168 mp.setLooping(true); in test3_0MeasureGainChange() 169 mp.start(); in test3_0MeasureGainChange() 179 int currentPosition = mp.getCurrentPosition(); in test3_0MeasureGainChange() 184 currentPosition = mp.getCurrentPosition(); in test3_0MeasureGainChange() 222 if (mp != null) { in test3_0MeasureGainChange() [all …]
|
D | VisualizerTest.java | 292 MediaPlayer mp = MediaPlayer.create(getContext(), R.raw.sine1khzm40db); in test4_1MeasurePeakRms() local 296 assertNotNull("null MediaPlayer", mp); in test4_1MeasurePeakRms() 304 mp.getAudioSessionId()); in test4_1MeasurePeakRms() 312 getVisualizer(mp.getAudioSessionId()); in test4_1MeasurePeakRms() 313 mp.setLooping(true); in test4_1MeasurePeakRms() 314 mp.start(); in test4_1MeasurePeakRms() 323 int currentPosition = mp.getCurrentPosition(); in test4_1MeasurePeakRms() 328 currentPosition = mp.getCurrentPosition(); in test4_1MeasurePeakRms() 335 mp.stop(); in test4_1MeasurePeakRms() 336 mp.release(); in test4_1MeasurePeakRms() [all …]
|
D | StreamingMediaPlayerTest.java | 218 public void onBufferingUpdate(MediaPlayer mp, int percent) { in localHttpAudioStreamTest() 224 public boolean onError(MediaPlayer mp, int what, int extra) { in localHttpAudioStreamTest() 272 public void onBufferingUpdate(MediaPlayer mp, int percent) { in localHttpsAudioStreamTest() 278 public boolean onError(MediaPlayer mp, int what, int extra) { in localHttpsAudioStreamTest() 335 public void onTimedMetaDataAvailable(MediaPlayer mp, TimedMetaData md) { in testPlayHlsStreamWithTimedId3() 337 int pos = mp.getCurrentPosition(); in testPlayHlsStreamWithTimedId3() 370 public void onCompletion(MediaPlayer mp) { in testPlayHlsStreamWithTimedId3() 460 final MediaPlayer mp = worker.getPlayer(); in testBlockingReadRelease() local 464 mp.setDataSource(path); in testBlockingReadRelease() 465 mp.setOnPreparedListener(new MediaPlayer.OnPreparedListener() { in testBlockingReadRelease() [all …]
|
D | MediaPlayerTestBase.java | 239 public void onVideoSizeChanged(MediaPlayer mp, int w, int h) { in playLoadedVideo() 256 public boolean onError(MediaPlayer mp, int what, int extra) { in playLoadedVideo() 263 public boolean onInfo(MediaPlayer mp, int what, int extra) { in playLoadedVideo() 310 public boolean onError(MediaPlayer mp, int what, int extra) { in setOnErrorListener()
|
D | VideoSurfaceView.java | 41 public VideoSurfaceView(Context context, MediaPlayer mp) { in VideoSurfaceView() argument 45 mMediaPlayer = mp; in VideoSurfaceView()
|
D | AudioManagerTest.java | 128 MediaPlayer mp = MediaPlayer.create(mContext, MP3_TO_PLAY); in testMusicActive() local 129 assertNotNull(mp); in testMusicActive() 130 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); in testMusicActive() 131 mp.start(); in testMusicActive() 135 mp.stop(); in testMusicActive() 136 mp.release(); in testMusicActive() 562 MediaPlayer mp = MediaPlayer.create(mContext, MP3_TO_PLAY); in testVolume() local 563 assertNotNull(mp); in testVolume() 564 mp.setAudioStreamType(STREAM_MUSIC); in testVolume() 565 mp.setLooping(true); in testVolume() [all …]
|
D | ExtractDecodeEditEncodeMuxTest.java | 543 final MediaPlayer mp = new MediaPlayer(); in extractDecodeEditEncodeMux() local 546 mp.setOnErrorListener(new MediaPlayer.OnErrorListener() { in extractDecodeEditEncodeMux() 556 mp.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { in extractDecodeEditEncodeMux() 563 mp.setDataSource(mOutputFile); in extractDecodeEditEncodeMux() 564 mp.setDisplay(activity.getSurfaceHolder()); in extractDecodeEditEncodeMux() 565 mp.prepare(); in extractDecodeEditEncodeMux() 566 mp.start(); in extractDecodeEditEncodeMux() 571 mp.release(); in extractDecodeEditEncodeMux()
|
D | MediaRandomTest.java | 184 public boolean onError(MediaPlayer mp, int what, int extra) { in testPlayerRandomAction() 185 if (mPlayer == mp && in testPlayerRandomAction()
|
D | AudioEffectTest.java | 154 MediaPlayer mp = new MediaPlayer(); in test1_4InsertOnMediaPlayer() local 155 assertNotNull("could not create mediaplayer", mp); in test1_4InsertOnMediaPlayer() 157 mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in test1_4InsertOnMediaPlayer() 159 getEffect(AudioEffect.EFFECT_TYPE_EQUALIZER, mp.getAudioSessionId()); in test1_4InsertOnMediaPlayer() 166 mp.release(); in test1_4InsertOnMediaPlayer()
|
D | MediaPlayerFlakyNetworkTest.java | 256 public void onPrepared(MediaPlayer mp) { in localHttpStreamTest() 263 public boolean onError(MediaPlayer mp, int what, int extra) { in localHttpStreamTest()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | StagefrightTest.java | 197 public boolean onError(MediaPlayer mp, int newWhat, int extra) { in onError() argument 211 public void onPrepared(MediaPlayer mp) { in onPrepared() argument 212 mp.start(); in onPrepared() 216 public void onCompletion(MediaPlayer mp) { in onCompletion() argument 274 MediaPlayer mp = new MediaPlayer(); in doStagefrightTestMediaPlayer() 275 mp.setOnErrorListener(mpcl); in doStagefrightTestMediaPlayer() 276 mp.setOnPreparedListener(mpcl); in doStagefrightTestMediaPlayer() 277 mp.setOnCompletionListener(mpcl); in doStagefrightTestMediaPlayer() 279 mp.setSurface(surface); in doStagefrightTestMediaPlayer() 284 mp.setDataSource(fd.getFileDescriptor(), in doStagefrightTestMediaPlayer() [all …]
|
D | MediaServerCrashTest.java | 59 public boolean onError(MediaPlayer mp, int what, int extra) { in setUp() 60 assertTrue(mp == mMediaPlayer); in setUp() 69 public void onPrepared(MediaPlayer mp) { in setUp() 70 assertTrue(mp == mMediaPlayer); in setUp() 77 public void onCompletion(MediaPlayer mp) { in setUp() 78 assertTrue(mp == mMediaPlayer); in setUp()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | PixelCopyVideoSourceActivity.java | 38 mVideoView.setOnPreparedListener(mp -> { in onCreate() 39 mp.setLooping(true); in onCreate() 43 mVideoView.setOnErrorListener((mp, what, extra) -> { in onCreate() argument
|
/cts/tests/tests/speech/src/android/speech/tts/cts/ |
D | TextToSpeechWrapper.java | 316 MediaPlayer mp = null; in isSoundFile() local 318 mp = new MediaPlayer(); in isSoundFile() 319 mp.setDataSource(filePath); in isSoundFile() 320 mp.prepare(); in isSoundFile() 321 mp.start(); in isSoundFile() 322 mp.stop(); in isSoundFile() 328 if (mp != null) { in isSoundFile() 329 mp.release(); in isSoundFile()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/projection/video/ |
D | VideoPresentation.java | 51 public void onPrepared(MediaPlayer mp) { in onCreate() 52 mp.setLooping(true); in onCreate()
|
/cts/tests/tests/os/src/android/os/cts/ |
D | LooperTest.java | 195 MockPrinter mp = new MockPrinter(); in testSetMessageLogging() 196 Looper.myLooper().setMessageLogging(mp); in testSetMessageLogging() 204 assertNotNull(mp.str); in testSetMessageLogging()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/streamquality/ |
D | PlayVideoActivity.java | 162 public boolean onError(MediaPlayer mp, int what, int extra) { 169 public void onVideoSizeChanged(MediaPlayer mp, int width, int height) { 185 public void onPrepared(MediaPlayer mp) {
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | VideoViewTest.java | 84 public void onPrepared(MediaPlayer mp) { in onPrepared() argument 90 public boolean onError(MediaPlayer mp, int what, int extra) { in onError() argument 98 public void onCompletion(MediaPlayer mp) { in onCompletion() argument
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
D | ByodPresentMediaDialog.java | 200 public void onPrepared(MediaPlayer mp) { in onCreateDialog()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/camera/video/ |
D | CameraVideoActivity.java | 269 public void onCompletion(MediaPlayer mp) {
|
/cts/tests/tests/media/res/raw/ |
D | football_qvga.yuv | 9 ?��������mp|tppi]URVYOU��o1 %$$%"!"#"""!"""$#"%>v�{utwyZL[djnij�Lw��7%�������{��������������… 10 …sx���������������������������y}��|xx{~����������}dMEMZca`a`abflr|��������|mp���mBe���a����|������… 16 …ehlrpjhmprw|mK;BJIFJOQTYcllkuzvw{~��q`VM@9Ji���������������������������~mp��������������������… 42 …'&%!#.*).-./.-.,+6H\iqqw��������~s�������v������������������Ŀ��xm׳W9*#/M��mp��8#31$6axpgiigdbhkkl… 59 …<D��E"(((+,+,.+)(-/--./.144456664686!'bik����x?Eo�Ο~l�����·ѹ����0Cv�����mp^XoB6:-///002344:B@8… 63 …mp��������ulcbcbee`^_ZXWY_bglqsqsuqnnnnkgd^YUTY_``caYUW[^_ceecedcc`bc�����������������ylikgaYTUVVW… 273 …mp\JNMFHXgke[^SD>BIPTRSX[SEBO_u~yxwsnoonkfXQT]ht{zm��{bjkhfefhilmtumv������������kkkorolmjluwspmfc…
|
/cts/tools/dex-tools/dex/ |
D | classes.out.dex | 127810 android.os.Parcel mp
|