/frameworks/wilhelm/src/android/ |
D | MediaPlayer_to_android.cpp | 42 CMediaPlayer* mp = (CMediaPlayer*) user; in player_handleMediaPlayerEventNotifications() local 43 if (!android::CallbackProtector::enterCbIfOk(mp->mCallbackProtector)) { in player_handleMediaPlayerEventNotifications() 57 SL_LOGV("Received GenericPlayer::kEventPrepared for CMediaPlayer %p", mp); in player_handleMediaPlayerEventNotifications() 64 object_lock_exclusive(&mp->mObject); in player_handleMediaPlayerEventNotifications() 67 assert(mp->mAndroidObjState == ANDROID_PREPARING); in player_handleMediaPlayerEventNotifications() 68 mp->mAndroidObjState = ANDROID_READY; in player_handleMediaPlayerEventNotifications() 79 if (IsInterfaceInitialized(&mp->mObject, MPH_XAPREFETCHSTATUS)) { in player_handleMediaPlayerEventNotifications() 80 mp->mPrefetchStatus.mLevel = 0; in player_handleMediaPlayerEventNotifications() 81 mp->mPrefetchStatus.mStatus = SL_PREFETCHSTATUS_UNDERFLOW; in player_handleMediaPlayerEventNotifications() 82 if (!(~mp->mPrefetchStatus.mCallbackEventsMask & in player_handleMediaPlayerEventNotifications() [all …]
|
D | MediaPlayer_to_android.h | 22 extern XAresult android_Player_checkSourceSink(CMediaPlayer *mp); 24 extern XAresult android_Player_create(CMediaPlayer *mp); 26 extern XAresult android_Player_realize(CMediaPlayer *mp, SLboolean async); 28 extern XAresult android_Player_destroy(CMediaPlayer *mp); 30 extern XAresult android_Player_preDestroy(CMediaPlayer *mp); 58 extern void android_Player_volumeUpdate(CMediaPlayer *mp); 59 extern void android_Player_usePlayEventMask(CMediaPlayer *mp); 74 extern XAresult android_Player_seek(CMediaPlayer *mp, SLmillisecond posMsec); 75 extern XAresult android_Player_loop(CMediaPlayer *mp, SLboolean loopEnable); 88 extern void android_Player_androidBufferQueue_clear_l(CMediaPlayer *mp); [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/ |
D | CodecTest.java | 91 MediaPlayer mp = new MediaPlayer(); in getDuration() local 93 mp.setDataSource(filePath); in getDuration() 94 mp.prepare(); in getDuration() 98 int duration = mp.getDuration(); in getDuration() 100 mp.release(); in getDuration() 110 MediaPlayer mp = new MediaPlayer(); in getCurrentPosition() local 112 mp.setDataSource(filePath); in getCurrentPosition() 114 mp.prepare(); in getCurrentPosition() 115 mp.start(); in getCurrentPosition() 118 mp.pause(); in getCurrentPosition() [all …]
|
/frameworks/base/media/jni/ |
D | android_media_MediaPlayer.cpp | 171 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in process_media_player_call() local 172 if (mp != 0) mp->notify(MEDIA_ERROR, opStatus, 0); in process_media_player_call() 200 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setDataSourceAndHeaders() local 201 if (mp == NULL ) { in android_media_MediaPlayer_setDataSourceAndHeaders() 235 mp->setDataSource( in android_media_MediaPlayer_setDataSourceAndHeaders() 248 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setDataSourceFD() local 249 if (mp == NULL ) { in android_media_MediaPlayer_setDataSourceFD() 260 …process_media_player_call( env, thiz, mp->setDataSource(fd, offset, length), "java/io/IOException"… in android_media_MediaPlayer_setDataSourceFD() 266 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setDataSourceCallback() local 267 if (mp == NULL ) { in android_media_MediaPlayer_setDataSourceCallback() [all …]
|
D | android_media_MediaScanner.cpp | 243 MediaScanner *mp = getNativeScanner_l(env, thiz); in android_media_MediaScanner_processDirectory() local 244 if (mp == NULL) { in android_media_MediaScanner_processDirectory() 260 MediaScanResult result = mp->processDirectory(pathStr, myClient); in android_media_MediaScanner_processDirectory() 275 MediaScanner *mp = getNativeScanner_l(env, thiz); in android_media_MediaScanner_processFile() local 276 if (mp == NULL) { in android_media_MediaScanner_processFile() 300 MediaScanResult result = mp->processFile(pathStr, mimeTypeStr, myClient); in android_media_MediaScanner_processFile() 315 MediaScanner *mp = getNativeScanner_l(env, thiz); in android_media_MediaScanner_setLocale() local 316 if (mp == NULL) { in android_media_MediaScanner_setLocale() 329 mp->setLocale(localeStr); in android_media_MediaScanner_setLocale() 339 MediaScanner *mp = getNativeScanner_l(env, thiz); in android_media_MediaScanner_extractAlbumArt() local [all …]
|
/frameworks/wilhelm/src/ |
D | handler_bodies.c | 53 CMediaPlayer *mp = (CMediaPlayer *) thiz; in handler_MediaPlayer_gain() local 54 android_Player_volumeUpdate(mp); in handler_MediaPlayer_gain() 108 CMediaPlayer *mp = (CMediaPlayer *) thiz; in handler_MediaPlayer_transport() local 109 android_Player_usePlayEventMask(mp); in handler_MediaPlayer_transport() 117 CMediaPlayer *mp = (CMediaPlayer *) thiz; in handler_MediaPlayer_play_state() local 118 android::GenericPlayer* avp = mp->mAVPlayer.get(); in handler_MediaPlayer_play_state() 120 android_Player_setPlayState(avp, mp->mPlay.mState, &mp->mAndroidObjState); in handler_MediaPlayer_play_state() 151 CMediaPlayer* mp = (CMediaPlayer *)thiz; in handler_MediaPlayer_abq_enqueue() local 152 if (SL_PLAYSTATE_PLAYING == mp->mPlay.mState) { in handler_MediaPlayer_abq_enqueue() 153 android_Player_androidBufferQueue_onRefilled_l(mp); in handler_MediaPlayer_abq_enqueue() [all …]
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/functional/audio/ |
D | MediaPresetReverbTest.java | 199 MediaPlayer mp = null; in test2_0AuxiliarySoundModification() local 219 mp = new MediaPlayer(); in test2_0AuxiliarySoundModification() 220 mp.setDataSource(MediaNames.SINE_200_1000); in test2_0AuxiliarySoundModification() 221 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); in test2_0AuxiliarySoundModification() 222 mp.attachAuxEffect(mReverb.getId()); in test2_0AuxiliarySoundModification() 223 mp.setAuxEffectSendLevel(1.0f); in test2_0AuxiliarySoundModification() 226 mp.prepare(); in test2_0AuxiliarySoundModification() 227 mp.start(); in test2_0AuxiliarySoundModification() 229 mp.stop(); in test2_0AuxiliarySoundModification() 249 if (mp != null) { in test2_0AuxiliarySoundModification() [all …]
|
D | MediaVisualizerTest.java | 232 MediaPlayer mp = null; in test2_0PollingCapture() local 251 mp = new MediaPlayer(); in test2_0PollingCapture() 252 mp.setDataSource(MediaNames.SINE_200_1000); in test2_0PollingCapture() 253 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); in test2_0PollingCapture() 254 getVisualizer(mp.getAudioSessionId()); in test2_0PollingCapture() 266 mp.prepare(); in test2_0PollingCapture() 267 mp.start(); in test2_0PollingCapture() 293 if (mp != null) { in test2_0PollingCapture() 294 mp.release(); in test2_0PollingCapture() 311 MediaPlayer mp = null; in test2_1ListenerCapture() local [all …]
|
D | MediaEnvReverbTest.java | 354 MediaPlayer mp = null; in test2_0AuxiliarySoundModification() local 374 mp = new MediaPlayer(); in test2_0AuxiliarySoundModification() 375 mp.setDataSource(MediaNames.SINE_200_1000); in test2_0AuxiliarySoundModification() 376 mp.setAudioStreamType(AudioManager.STREAM_MUSIC); in test2_0AuxiliarySoundModification() 377 mp.attachAuxEffect(mReverb.getId()); in test2_0AuxiliarySoundModification() 378 mp.setAuxEffectSendLevel(1.0f); in test2_0AuxiliarySoundModification() 383 mp.prepare(); in test2_0AuxiliarySoundModification() 384 mp.start(); in test2_0AuxiliarySoundModification() 386 mp.stop(); in test2_0AuxiliarySoundModification() 406 if (mp != null) { in test2_0AuxiliarySoundModification() [all …]
|
D | MediaAudioEffectTest.java | 283 MediaPlayer mp = new MediaPlayer(); in test1_4InsertOnMediaPlayer() local 284 mp.setDataSource(MediaNames.SHORTMP3); in test1_4InsertOnMediaPlayer() 289 mp.getAudioSessionId()); in test1_4InsertOnMediaPlayer() 300 mp.release(); in test1_4InsertOnMediaPlayer() 320 MediaPlayer mp = new MediaPlayer(); in test1_5AuxiliaryOnMediaPlayer() local 321 mp.setDataSource(MediaNames.SHORTMP3); in test1_5AuxiliaryOnMediaPlayer() 328 mp.attachAuxEffect(effect.getId()); in test1_5AuxiliaryOnMediaPlayer() 329 mp.setAuxEffectSendLevel(1.0f); in test1_5AuxiliaryOnMediaPlayer() 332 mp.release(); in test1_5AuxiliaryOnMediaPlayer()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/power/ |
D | MediaPlayerPowerTest.java | 51 MediaPlayer mp = new MediaPlayer(); in audioPlayback() local 52 mp.setDataSource(filePath); in audioPlayback() 53 mp.prepare(); in audioPlayback() 54 mp.start(); in audioPlayback() 56 mp.stop(); in audioPlayback() 57 mp.release(); in audioPlayback()
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/stress/ |
D | MediaRecorderStressTest.java | 149 MediaPlayer mp = new MediaPlayer(); in validateRecordedVideo() local 150 mp.setDataSource(recordedFile); in validateRecordedVideo() 151 mp.prepare(); in validateRecordedVideo() 152 int duration = mp.getDuration(); in validateRecordedVideo() 156 mp.release(); in validateRecordedVideo() 250 MediaPlayer mp = new MediaPlayer(); in recordVideoAndPlayback() local 251 mp.setDataSource(fileName); in recordVideoAndPlayback() 252 mp.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); in recordVideoAndPlayback() 253 mp.prepare(); in recordVideoAndPlayback() 254 mp.start(); in recordVideoAndPlayback() [all …]
|
/frameworks/rs/java/tests/VrDemo/src/com/example/android/rs/vr/engine/ |
D | Material.java | 242 MaterialProp mp = m[0]; in buildMaterialProp() local 253 mColor[p + DIFF] = (byte) (255 * mp.mDiffuse); in buildMaterialProp() 254 mColor[p + SPEC] = (byte) (255 * mp.mSpecular); in buildMaterialProp() 255 mColor[p + AMB] = (byte) (255 * mp.mAmbient); in buildMaterialProp() 286 MaterialProp mp = m[last]; in buildMaterialProp() local 287 int red = mp.mRed; in buildMaterialProp() 288 int green = mp.mGreen; in buildMaterialProp() 289 int blue = mp.mBlue; in buildMaterialProp() 290 for (int i = mp.mPos; i <= Short.MAX_VALUE; i++) { in buildMaterialProp() 296 mColor[p + DIFF] = (byte) (255 * mp.mDiffuse); in buildMaterialProp() [all …]
|
/frameworks/base/tests/HwAccelerationTest/src/com/android/test/hwui/ |
D | VideoViewCaptureActivity.java | 42 mVideoView.setOnPreparedListener(mp -> { in onCreate() 43 mp.setLooping(true); in onCreate() 44 mVideoWidth = mp.getVideoWidth(); in onCreate() 45 mVideoHeight = mp.getVideoHeight(); in onCreate()
|
/frameworks/base/media/java/android/media/ |
D | MediaPlayer.java | 869 MediaPlayer mp = new MediaPlayer(); in create() local 872 mp.setAudioAttributes(aa); in create() 873 mp.setAudioSessionId(audioSessionId); in create() 874 mp.setDataSource(context, uri); in create() 876 mp.setDisplay(holder); in create() 878 mp.prepare(); in create() 879 return mp; in create() 934 MediaPlayer mp = new MediaPlayer(); in create() 938 mp.setAudioAttributes(aa); in create() 939 mp.setAudioSessionId(audioSessionId); in create() [all …]
|
D | Ringtone.java | 467 public void onCompletion(MediaPlayer mp) in onCompletion() argument
|
/frameworks/base/core/java/android/widget/ |
D | VideoView.java | 404 public void onVideoSizeChanged(MediaPlayer mp, int width, int height) { 405 mVideoWidth = mp.getVideoWidth(); 406 mVideoHeight = mp.getVideoHeight(); 415 public void onPrepared(MediaPlayer mp) { 419 Metadata data = mp.getMetadata(MediaPlayer.METADATA_ALL, 439 mVideoWidth = mp.getVideoWidth(); 440 mVideoHeight = mp.getVideoHeight(); 478 public void onCompletion(MediaPlayer mp) { 492 public boolean onInfo(MediaPlayer mp, int arg1, int arg2) { 494 mOnInfoListener.onInfo(mp, arg1, arg2); [all …]
|
/frameworks/wilhelm/src/itf/ |
D | ISeek.c | 76 CMediaPlayer *mp = InterfaceToCMediaPlayer(thiz); in ISeek_SetLoop() local 77 if (NULL != mp) { in ISeek_SetLoop() 78 result = android_Player_loop(mp, loopEnable); in ISeek_SetLoop()
|
/frameworks/data-binding/integration-tests/TestApp/app/src/main/java/android/databinding/testapp/vo/ |
D | ListenerBindingObject.java | 164 public void onCompletion(MediaPlayer mp) { } in onCompletion() argument 166 public boolean onError(MediaPlayer mp, int what, int extra) { in onError() argument 170 public boolean onInfo(MediaPlayer mp, int what, int extra) { in onInfo() argument 174 public void onPrepared(MediaPlayer mp) { } in onPrepared() argument
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/ |
D | MediaPlayerPerformance.java | 206 MediaPlayer mp = new MediaPlayer(); in mediaStressPlayback() local 208 mp.setDataSource(testFilePath); in mediaStressPlayback() 209 mp.setDisplay(MediaFrameworkTest.mSurfaceView.getHolder()); in mediaStressPlayback() 210 mp.prepare(); in mediaStressPlayback() 211 mp.start(); in mediaStressPlayback() 213 mp.release(); in mediaStressPlayback() 215 mp.release(); in mediaStressPlayback()
|
/frameworks/base/core/java/android/speech/tts/ |
D | AudioPlaybackQueueItem.java | 69 public boolean onError(MediaPlayer mp, int what, int extra) { in run() 77 public void onCompletion(MediaPlayer mp) { in run()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | NotificationPlayer.java | 227 public void onCompletion(MediaPlayer mp) { in onCompletion() argument 250 public boolean onError(MediaPlayer mp, int what, int extra) { in onError() argument 253 onCompletion(mp); in onError()
|
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/videosrc/ |
D | MediaSource.java | 513 public void onVideoSizeChanged(MediaPlayer mp, int width, int height) { 538 public void onPrepared(MediaPlayer mp) { 549 public void onCompletion(MediaPlayer mp) {
|
/frameworks/base/media/tests/ScoAudioTest/src/com/android/scoaudiotest/ |
D | ScoAudioTest.java | 388 public void onCompletion(MediaPlayer mp) { in playOrPause() 563 public void onCompletion(MediaPlayer mp) { in onUtteranceCompleted() 564 mp.release(); in onUtteranceCompleted()
|
/frameworks/base/media/tests/EffectsTest/src/com/android/effectstest/ |
D | SimplePlayer.java | 143 public void onCompletion(MediaPlayer mp) { in playOrPause()
|