/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 | 381 MediaPlayer mp = new MediaPlayer(); in validateRecordedVideo() local 382 mp.setDataSource(recordedFile); in validateRecordedVideo() 383 mp.prepare(); in validateRecordedVideo() 384 int duration = mp.getDuration(); in validateRecordedVideo() 388 mp.release(); in validateRecordedVideo() 452 MediaPlayer mp = new MediaPlayer(); in testStressRecordVideoAndPlayback() local 453 mp.setDataSource(filename); in testStressRecordVideoAndPlayback() 454 mp.setDisplay(MediaFrameworkTest.getSurfaceView().getHolder()); in testStressRecordVideoAndPlayback() 455 mp.prepare(); in testStressRecordVideoAndPlayback() 456 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 | 307 public void onBufferingUpdate(MediaPlayer mp, int percent) { in localHttpAudioStreamTest() 313 public boolean onError(MediaPlayer mp, int what, int extra) { in localHttpAudioStreamTest() 361 public void onBufferingUpdate(MediaPlayer mp, int percent) { in localHttpsAudioStreamTest() 367 public boolean onError(MediaPlayer mp, int what, int extra) { in localHttpsAudioStreamTest() 424 public void onTimedMetaDataAvailable(MediaPlayer mp, TimedMetaData md) { in testPlayHlsStreamWithTimedId3() 426 int pos = mp.getCurrentPosition(); in testPlayHlsStreamWithTimedId3() 459 public void onCompletion(MediaPlayer mp) { in testPlayHlsStreamWithTimedId3() 549 final MediaPlayer mp = worker.getPlayer(); in testBlockingReadRelease() local 553 mp.setDataSource(path); in testBlockingReadRelease() 554 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 | 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 | VideoSurfaceView.java | 43 public VideoSurfaceView(Context context, MediaPlayer mp) { in VideoSurfaceView() argument 47 mMediaPlayer = mp; in VideoSurfaceView()
|
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 | 342 MediaPlayer mp = MediaPlayer.create(mContext, MP3_TO_PLAY); in testMusicActive() local 343 assertNotNull(mp); in testMusicActive() 344 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); in testMusicActive() 345 mp.start(); in testMusicActive() 349 mp.stop(); in testMusicActive() 350 mp.release(); in testMusicActive() 739 MediaPlayer mp = MediaPlayer.create(mContext, MP3_TO_PLAY); in testVolume() local 740 assertNotNull(mp); in testVolume() 741 mp.setAudioStreamType(STREAM_MUSIC); in testVolume() 742 mp.setLooping(true); in testVolume() [all …]
|
D | AudioEffectTest.java | 157 MediaPlayer mp = new MediaPlayer(); in test1_4InsertOnMediaPlayer() local 158 assertNotNull("could not create mediaplayer", mp); in test1_4InsertOnMediaPlayer() 160 mp.setDataSource(afd.getFileDescriptor(), afd.getStartOffset(), afd.getLength()); in test1_4InsertOnMediaPlayer() 162 getEffect(AudioEffect.EFFECT_TYPE_EQUALIZER, mp.getAudioSessionId()); in test1_4InsertOnMediaPlayer() 169 mp.release(); in test1_4InsertOnMediaPlayer()
|
D | MediaRandomTest.java | 191 public boolean onError(MediaPlayer mp, int what, int extra) { in testPlayerRandomAction() 192 if (mPlayer == mp && in testPlayerRandomAction()
|
/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 | StagefrightTest.java | 1063 MediaPlayer mp = new MediaPlayer(); in testStagefright_bug_68342866() 1064 mp.setOnErrorListener(mpcl); in testStagefright_bug_68342866() 1065 mp.setOnPreparedListener(mpcl); in testStagefright_bug_68342866() 1066 mp.setOnCompletionListener(mpcl); in testStagefright_bug_68342866() 1069 mp.setSurface(surface); in testStagefright_bug_68342866() 1072 mp.setDataSource(uri); in testStagefright_bug_68342866() 1073 mp.prepareAsync(); in testStagefright_bug_68342866() 1080 mp.release(); in testStagefright_bug_68342866() 1184 MediaPlayer mp = new MediaPlayer(); in testStagefright_cve_2017_13279() 1185 mp.setOnErrorListener(mpcl); in testStagefright_cve_2017_13279() [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 | 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/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/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/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()
|