/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 | 98 MediaPlayer mp = new MediaPlayer(); in getDuration() local 100 mp.setDataSource(filePath); in getDuration() 101 mp.prepare(); in getDuration() 105 int duration = mp.getDuration(); in getDuration() 107 mp.release(); in getDuration() 117 MediaPlayer mp = new MediaPlayer(); in getCurrentPosition() local 119 mp.setDataSource(filePath); in getCurrentPosition() 121 mp.prepare(); in getCurrentPosition() 122 mp.start(); in getCurrentPosition() 125 mp.pause(); in getCurrentPosition() [all …]
|
/frameworks/base/media/jni/ |
D | android_media_MediaPlayer.cpp | 197 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in process_media_player_call() local 198 if (mp != 0) mp->notify(MEDIA_ERROR, opStatus, 0); in process_media_player_call() 226 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setDataSourceAndHeaders() local 227 if (mp == NULL ) { in android_media_MediaPlayer_setDataSourceAndHeaders() 261 mp->setDataSource( in android_media_MediaPlayer_setDataSourceAndHeaders() 274 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setDataSourceFD() local 275 if (mp == NULL ) { in android_media_MediaPlayer_setDataSourceFD() 286 …process_media_player_call( env, thiz, mp->setDataSource(fd, offset, length), "java/io/IOException"… in android_media_MediaPlayer_setDataSourceFD() 292 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setDataSourceCallback() local 293 if (mp == NULL ) { in android_media_MediaPlayer_setDataSourceCallback() [all …]
|
/frameworks/wilhelm/src/ |
D | handler_bodies.cpp | 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/template/ |
D | AudioTestHarnessTemplateAndroidTest.java | 87 MediaPlayer mp = new MediaPlayer(); in playAudioFile() local 89 mp.setAudioAttributes( in playAudioFile() 94 mp.setDataSource(audioFile); in playAudioFile() 95 mp.prepare(); in playAudioFile() 96 int duration = mp.getDuration(); in playAudioFile() 101 mp.start(); in playAudioFile() 113 if (mp != null) { in playAudioFile() 115 mp.release(); in playAudioFile()
|
/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/opt/setupwizard/library/main/src/com/android/setupwizardlib/view/ |
D | IllustrationVideoView.java | 292 public boolean onInfo(MediaPlayer mp, int what, int extra) { in onInfo() argument 302 public void onPrepared(MediaPlayer mp) { in onPrepared() argument 304 mp.setLooping(shouldLoop()); in onPrepared() 307 if (mp.getVideoWidth() > 0 && mp.getVideoHeight() > 0) { in onPrepared() 308 aspectRatio = (float) mp.getVideoHeight() / mp.getVideoWidth(); in onPrepared() 310 Log.w(TAG, "Unexpected video size=" + mp.getVideoWidth() + "x" + mp.getVideoHeight()); in onPrepared() 322 public void onSeekComplete(MediaPlayer mp) { in onSeekComplete() argument 324 mp.start(); in onSeekComplete()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
D | NotificationPlayer.java | 152 final MediaPlayer mp; in run() local 154 mp = mPlayer; in run() 157 if (mp != null) { in run() 159 mp.release(); in run() 234 final MediaPlayer mp; in run() local 236 mp = mPlayer; in run() 239 if (mp != null) { in run() 245 mp.stop(); in run() 247 mp.release(); in run() 284 public void onCompletion(MediaPlayer mp) { in onCompletion() argument [all …]
|
/frameworks/rs/tests/java_api/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/core/java/android/text/ |
D | TextShaper.java | 216 MeasuredParagraph mp = MeasuredParagraph.buildForBidi( in shapeText() local 221 mp.getParagraphDir(), in shapeText() 222 mp.getDirections(0, count), in shapeText()
|
/frameworks/base/media/java/android/media/ |
D | MediaPlayer.java | 929 MediaPlayer mp = new MediaPlayer(audioSessionId); in create() local 932 mp.setAudioAttributes(aa); in create() 933 mp.native_setAudioSessionId(audioSessionId); in create() 934 mp.setDataSource(context, uri); in create() 936 mp.setDisplay(holder); in create() 938 mp.prepare(); in create() 939 return mp; in create() 994 MediaPlayer mp = new MediaPlayer(audioSessionId); in create() 998 mp.setAudioAttributes(aa); in create() 999 mp.native_setAudioSessionId(audioSessionId); in create() [all …]
|
/frameworks/wilhelm/src/itf/ |
D | ISeek.cpp | 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/base/core/java/android/widget/ |
D | VideoView.java | 468 public void onVideoSizeChanged(MediaPlayer mp, int width, int height) { 469 mVideoWidth = mp.getVideoWidth(); 470 mVideoHeight = mp.getVideoHeight(); 480 public void onPrepared(MediaPlayer mp) { 484 Metadata data = mp.getMetadata(MediaPlayer.METADATA_ALL, 504 mVideoWidth = mp.getVideoWidth(); 505 mVideoHeight = mp.getVideoHeight(); 543 public void onCompletion(MediaPlayer mp) { 560 public boolean onInfo(MediaPlayer mp, int arg1, int arg2) { 562 mOnInfoListener.onInfo(mp, arg1, arg2); [all …]
|
/frameworks/base/services/core/java/com/android/server/audio/ |
D | SoundEffectsHelper.java | 273 public void onCompletion(MediaPlayer mp) { in onPlaySoundEffect() 274 cleanupPlayer(mp); in onPlaySoundEffect() 278 public boolean onError(MediaPlayer mp, int what, int extra) { in onPlaySoundEffect() 279 cleanupPlayer(mp); in onPlaySoundEffect() 294 private static void cleanupPlayer(MediaPlayer mp) { in cleanupPlayer() argument 295 if (mp != null) { in cleanupPlayer() 297 mp.stop(); in cleanupPlayer() 298 mp.release(); in cleanupPlayer()
|
/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/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/packages/SystemUI/src/com/android/systemui/screenrecord/ |
D | ScreenInternalAudioRecorder.java | 55 public ScreenInternalAudioRecorder(String outFile, MediaProjection mp, boolean includeMicInput) in ScreenInternalAudioRecorder() argument 59 mMediaProjection = mp; in ScreenInternalAudioRecorder()
|