Home
last modified time | relevance | path

Searched refs:mp (Results 1 – 25 of 32) sorted by relevance

12

/frameworks/wilhelm/src/android/
DMediaPlayer_to_android.cpp42 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 …]
DMediaPlayer_to_android.h22 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/
DCodecTest.java98 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/
Dandroid_media_MediaPlayer.cpp196 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in process_media_player_call() local
197 if (mp != 0) mp->notify(MEDIA_ERROR, opStatus, 0); in process_media_player_call()
225 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setDataSourceAndHeaders() local
226 if (mp == NULL ) { in android_media_MediaPlayer_setDataSourceAndHeaders()
260 mp->setDataSource( in android_media_MediaPlayer_setDataSourceAndHeaders()
273 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setDataSourceFD() local
274 if (mp == NULL ) { in android_media_MediaPlayer_setDataSourceFD()
285 …process_media_player_call( env, thiz, mp->setDataSource(fd, offset, length), "java/io/IOException"… in android_media_MediaPlayer_setDataSourceFD()
291 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setDataSourceCallback() local
292 if (mp == NULL ) { in android_media_MediaPlayer_setDataSourceCallback()
[all …]
/frameworks/wilhelm/src/
Dhandler_bodies.cpp53 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/
DMediaPresetReverbTest.java199 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 …]
DMediaVisualizerTest.java232 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 …]
DMediaEnvReverbTest.java354 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 …]
DMediaAudioEffectTest.java283 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/
DAudioTestHarnessTemplateAndroidTest.java87 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/
DMediaPlayerPowerTest.java51 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/
DMediaRecorderStressTest.java149 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/
DIllustrationVideoView.java292 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/
DNotificationPlayer.java152 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/
DMaterial.java242 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/
DVideoViewCaptureActivity.java42 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/
DMediaPlayer.java906 MediaPlayer mp = new MediaPlayer(); in create() local
909 mp.setAudioAttributes(aa); in create()
910 mp.setAudioSessionId(audioSessionId); in create()
911 mp.setDataSource(context, uri); in create()
913 mp.setDisplay(holder); in create()
915 mp.prepare(); in create()
916 return mp; in create()
971 MediaPlayer mp = new MediaPlayer(); in create()
975 mp.setAudioAttributes(aa); in create()
976 mp.setAudioSessionId(audioSessionId); in create()
[all …]
DRingtone.java520 public void onCompletion(MediaPlayer mp) { in onCompletion() argument
524 mp.setOnCompletionListener(null); // Help the Java GC: break the refcount cycle. in onCompletion()
/frameworks/base/services/core/java/com/android/server/audio/
DSoundEffectsHelper.java261 public void onCompletion(MediaPlayer mp) { in onPlaySoundEffect()
262 cleanupPlayer(mp); in onPlaySoundEffect()
266 public boolean onError(MediaPlayer mp, int what, int extra) { in onPlaySoundEffect()
267 cleanupPlayer(mp); in onPlaySoundEffect()
282 private static void cleanupPlayer(MediaPlayer mp) { in cleanupPlayer() argument
283 if (mp != null) { in cleanupPlayer()
285 mp.stop(); in cleanupPlayer()
286 mp.release(); in cleanupPlayer()
/frameworks/wilhelm/src/itf/
DISeek.cpp76 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/
DVideoView.java468 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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/performance/
DMediaPlayerPerformance.java206 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/
DAudioPlaybackQueueItem.java69 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/
DMediaSource.java513 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/
DScreenInternalAudioRecorder.java54 public ScreenInternalAudioRecorder(String outFile, MediaProjection mp, boolean includeMicInput) in ScreenInternalAudioRecorder() argument
58 mMediaProjection = mp; in ScreenInternalAudioRecorder()

12