/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 | 132 public boolean onError(MediaPlayer mp, int what, int extra) { in testIfMediaServerDied() 133 assertTrue(mp == mMediaPlayer); in testIfMediaServerDied() 142 public void onCompletion(MediaPlayer mp) { in testIfMediaServerDied() 143 assertTrue(mp == mMediaPlayer); in testIfMediaServerDied() 166 MediaPlayer mp = mMediaPlayer; in testVorbisCrash() local 178 mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in testVorbisCrash() 180 mp.prepare(); in testVorbisCrash() 188 mp.reset(); in testVorbisCrash() 217 MediaPlayer mp = MediaPlayer.create(mContext, uri); in testPlayAudioFromDataURI() local 220 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); in testPlayAudioFromDataURI() [all …]
|
D | LoudnessEnhancerTest.java | 142 MediaPlayer mp = null; in test3_0MeasureGainChange() local 146 mp = MediaPlayer.create(getContext(), R.raw.sine1khzm40db); in test3_0MeasureGainChange() 149 assertNotNull("null MediaPlayer", mp); in test3_0MeasureGainChange() 157 mp.getAudioSessionId()); in test3_0MeasureGainChange() 165 int sessionId = mp.getAudioSessionId(); in test3_0MeasureGainChange() 170 mp.setLooping(true); in test3_0MeasureGainChange() 171 mp.start(); in test3_0MeasureGainChange() 181 int currentPosition = mp.getCurrentPosition(); in test3_0MeasureGainChange() 186 currentPosition = mp.getCurrentPosition(); in test3_0MeasureGainChange() 224 if (mp != null) { in test3_0MeasureGainChange() [all …]
|
D | VisualizerTest.java | 294 MediaPlayer mp = MediaPlayer.create(getContext(), R.raw.sine1khzm40db); in test4_1MeasurePeakRms() local 298 assertNotNull("null MediaPlayer", mp); in test4_1MeasurePeakRms() 306 mp.getAudioSessionId()); in test4_1MeasurePeakRms() 314 getVisualizer(mp.getAudioSessionId()); in test4_1MeasurePeakRms() 315 mp.setLooping(true); in test4_1MeasurePeakRms() 316 mp.start(); in test4_1MeasurePeakRms() 325 int currentPosition = mp.getCurrentPosition(); in test4_1MeasurePeakRms() 330 currentPosition = mp.getCurrentPosition(); in test4_1MeasurePeakRms() 337 mp.stop(); in test4_1MeasurePeakRms() 338 mp.release(); in test4_1MeasurePeakRms() [all …]
|
D | MediaPlayerDrmTestBase.java | 125 public boolean onError(MediaPlayer mp, int what, int extra) { in setOnErrorListener() 274 public void onVideoSizeChanged(MediaPlayer mp, int w, int h) { in playLoadedModularDrmVideo_Generic() 281 public boolean onError(MediaPlayer mp, int what, int extra) { in playLoadedModularDrmVideo_Generic() 319 public void onCompletion(MediaPlayer mp) { in playLoadedModularDrmVideo_Generic() 372 public void onDrmInfo(MediaPlayer mp, DrmInfo drmInfo) { in preparePlayerAndDrm_V1_asyncDrmSetup() 390 public void onPrepared(MediaPlayer mp) { in preparePlayerAndDrm_V1_asyncDrmSetup() 412 public void onDrmConfig(MediaPlayer mp) { in preparePlayerAndDrm_V2_syncDrmSetupPlusConfig() 417 String level = mp.getDrmPropertyString(SECURITY_LEVEL_PROPERTY); in preparePlayerAndDrm_V2_syncDrmSetupPlusConfig() 420 mp.setDrmPropertyString(SECURITY_LEVEL_PROPERTY, WIDEVINE_SECURITY_LEVEL_3); in preparePlayerAndDrm_V2_syncDrmSetupPlusConfig() 421 level = mp.getDrmPropertyString(SECURITY_LEVEL_PROPERTY); in preparePlayerAndDrm_V2_syncDrmSetupPlusConfig() [all …]
|
D | StreamingMediaPlayerTest.java | 306 public void onBufferingUpdate(MediaPlayer mp, int percent) { in localHttpAudioStreamTest() 312 public boolean onError(MediaPlayer mp, int what, int extra) { in localHttpAudioStreamTest() 360 public void onBufferingUpdate(MediaPlayer mp, int percent) { in localHttpsAudioStreamTest() 366 public boolean onError(MediaPlayer mp, int what, int extra) { in localHttpsAudioStreamTest() 423 public void onTimedMetaDataAvailable(MediaPlayer mp, TimedMetaData md) { in testPlayHlsStreamWithTimedId3() 425 int pos = mp.getCurrentPosition(); in testPlayHlsStreamWithTimedId3() 458 public void onCompletion(MediaPlayer mp) { in testPlayHlsStreamWithTimedId3() 548 final MediaPlayer mp = worker.getPlayer(); in testBlockingReadRelease() local 552 mp.setDataSource(path); in testBlockingReadRelease() 553 mp.setOnPreparedListener(new MediaPlayer.OnPreparedListener() { in testBlockingReadRelease() [all …]
|
D | .goutputstream-9KZYJZ | 370 public void onError(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { 375 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { 434 public void onError(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { 439 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { 477 public void onError(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { 481 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { 487 public void onCallCompleted(MediaPlayer2 mp, DataSourceDesc dsd, 609 public void onInfo(MediaPlayer2 mp, DataSourceDesc dsd, int what, int extra) { 626 public void onTimedMetaDataAvailable(MediaPlayer2 mp, DataSourceDesc dsd, 629 long pos = mp.getCurrentPosition(); [all …]
|
D | VideoSurfaceView.java | 43 public VideoSurfaceView(Context context, MediaPlayer mp) { in VideoSurfaceView() argument 47 mMediaPlayer = mp; in VideoSurfaceView()
|
D | MediaPlayerTestBase.java | 236 public void onVideoSizeChanged(MediaPlayer mp, int w, int h) { in playLoadedVideo() 253 public boolean onError(MediaPlayer mp, int what, int extra) { in playLoadedVideo() 260 public boolean onInfo(MediaPlayer mp, int what, int extra) { in playLoadedVideo() 347 public boolean onError(MediaPlayer mp, int what, int extra) { in setOnErrorListener()
|
D | ExtractDecodeEditEncodeMuxTest.java | 545 final MediaPlayer mp = new MediaPlayer(); in extractDecodeEditEncodeMux() local 548 mp.setOnErrorListener(new MediaPlayer.OnErrorListener() { in extractDecodeEditEncodeMux() 558 mp.setOnCompletionListener(new MediaPlayer.OnCompletionListener() { in extractDecodeEditEncodeMux() 565 mp.setDataSource(mOutputFile); in extractDecodeEditEncodeMux() 566 mp.setDisplay(activity.getSurfaceHolder()); in extractDecodeEditEncodeMux() 567 mp.prepare(); in extractDecodeEditEncodeMux() 568 mp.start(); in extractDecodeEditEncodeMux() 573 mp.release(); in extractDecodeEditEncodeMux()
|
D | AudioManagerTest.java | 328 MediaPlayer mp = MediaPlayer.create(mContext, MP3_TO_PLAY); in testMusicActive() local 329 assertNotNull(mp); in testMusicActive() 330 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); in testMusicActive() 331 mp.start(); in testMusicActive() 335 mp.stop(); in testMusicActive() 336 mp.release(); in testMusicActive() 720 MediaPlayer mp = MediaPlayer.create(mContext, MP3_TO_PLAY); in testVolume() local 721 assertNotNull(mp); in testVolume() 722 mp.setAudioStreamType(STREAM_MUSIC); in testVolume() 723 mp.setLooping(true); in testVolume() [all …]
|
D | MediaRandomTest.java | 190 public boolean onError(MediaPlayer mp, int what, int extra) { in testPlayerRandomAction() 191 if (mPlayer == mp && in testPlayerRandomAction()
|
D | AudioEffectTest.java | 156 MediaPlayer mp = new MediaPlayer(); in test1_4InsertOnMediaPlayer() local 157 assertNotNull("could not create mediaplayer", mp); in test1_4InsertOnMediaPlayer() 159 mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in test1_4InsertOnMediaPlayer() 161 getEffect(AudioEffect.EFFECT_TYPE_EQUALIZER, mp.getAudioSessionId()); in test1_4InsertOnMediaPlayer() 168 mp.release(); in test1_4InsertOnMediaPlayer()
|
/cts/tests/tests/security/src/android/security/cts/ |
D | EffectBundleTest.java | 276 MediaPlayer mp = null; in eqSetParamProperties() local 280 mp = MediaPlayer.create(getInstrumentation().getContext(), getMediaId(media)); in eqSetParamProperties() 281 eq = new Equalizer(0 /*priority*/, mp.getAudioSessionId()); in eqSetParamProperties() 310 if (mp != null) { in eqSetParamProperties() 311 mp.release(); in eqSetParamProperties() 318 MediaPlayer mp = null; in eqGetParamFreqRangeCommand() local 322 mp = MediaPlayer.create(getInstrumentation().getContext(), getMediaId(media)); in eqGetParamFreqRangeCommand() 323 eq = new Equalizer(0 /*priority*/, mp.getAudioSessionId()); in eqGetParamFreqRangeCommand() 361 if (mp != null) { in eqGetParamFreqRangeCommand() 362 mp.release(); in eqGetParamFreqRangeCommand() [all …]
|
D | VisualizerEffectTest.java | 55 MediaPlayer mp = null; in testVisualizer_MalformedConstructor() local 57 mp = MediaPlayer.create(getContext(), R.raw.good); in testVisualizer_MalformedConstructor() 61 descriptors[visualizerIndex].uuid, 0, mp.getAudioSessionId()); in testVisualizer_MalformedConstructor() 73 if (mp != null) { in testVisualizer_MalformedConstructor() 74 mp.release(); in testVisualizer_MalformedConstructor()
|
D | StagefrightTest.java | 855 MediaPlayer mp = new MediaPlayer(); in testStagefright_bug_68342866() 856 mp.setOnErrorListener(mpcl); in testStagefright_bug_68342866() 857 mp.setOnPreparedListener(mpcl); in testStagefright_bug_68342866() 858 mp.setOnCompletionListener(mpcl); in testStagefright_bug_68342866() 861 mp.setSurface(surface); in testStagefright_bug_68342866() 864 mp.setDataSource(uri); in testStagefright_bug_68342866() 865 mp.prepareAsync(); in testStagefright_bug_68342866() 872 mp.release(); in testStagefright_bug_68342866() 1161 public boolean onError(MediaPlayer mp, int newWhat, int extra) { in onError() argument 1175 public void onPrepared(MediaPlayer mp) { in onPrepared() argument [all …]
|
D | MediaServerCrashTest.java | 62 public boolean onError(MediaPlayer mp, int what, int extra) { in setUp() 63 assertTrue(mp == mMediaPlayer); in setUp() 72 public void onPrepared(MediaPlayer mp) { in setUp() 73 assertTrue(mp == mMediaPlayer); in setUp() 80 public void onCompletion(MediaPlayer mp) { in setUp() 81 assertTrue(mp == mMediaPlayer); in setUp()
|
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ |
D | ReadDefaultUris.java | 59 MediaPlayer mp = new MediaPlayer(); in playUri() local 60 assertNotNull(mp); in playUri() 61 mp.setDataSource(mContext, uri); in playUri() 62 mp.setAudioAttributes( in playUri() 64 mp.prepare(); in playUri() 65 mp.start(); in playUri() 67 mp.stop(); in playUri() 68 mp.release(); in playUri()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | PixelCopyVideoSourceActivity.java | 39 mVideoView.setOnPreparedListener(mp -> { in onCreate() 40 mp.setLooping(true); in onCreate() 44 mVideoView.setOnErrorListener((mp, what, extra) -> { in onCreate() argument
|
/cts/tests/tests/speech/src/android/speech/tts/cts/ |
D | TextToSpeechWrapper.java | 371 MediaPlayer mp = null; in isSoundFile() local 373 mp = new MediaPlayer(); in isSoundFile() 374 mp.setDataSource(filePath); in isSoundFile() 375 mp.prepare(); in isSoundFile() 376 mp.start(); in isSoundFile() 377 mp.stop(); in isSoundFile() 383 if (mp != null) { in isSoundFile() 384 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/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/os/src/android/os/cts/ |
D | LooperTest.java | 200 MockPrinter mp = new MockPrinter(); in testSetMessageLogging() 201 Looper.myLooper().setMessageLogging(mp); in testSetMessageLogging() 209 assertNotNull(mp.str); in testSetMessageLogging()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/ |
D | RingerModeActivity.java | 933 MediaPlayer mp = MediaPlayer.create(mContext, MP3_TO_PLAY); in test() local 934 assertNotNull(mp); in test() 935 mp.setAudioStreamType(STREAM_MUSIC); in test() 936 mp.setLooping(true); in test() 937 mp.start(); in test() 981 mp.stop(); in test() 982 mp.release(); in test()
|