Lines Matching refs:mp

160             sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
161 if (mp != 0) mp->notify(MEDIA_ERROR, opStatus, 0);
187 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
188 if (mp == NULL ) {
216 mp->setDataSource(
228 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
229 if (mp == NULL ) {
240 process_media_player_call( env, thiz, mp->setDataSource(fd, offset, length), "java/io/IOException", "setDataSourceFD failed." );
252 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
253 if (mp == NULL) {
266 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
267 if (mp == NULL) {
300 mp->setVideoSurfaceTexture(new_st);
312 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
313 if (mp == NULL ) {
318 // Handle the case where the display surface was set before the mp was
321 mp->setVideoSurfaceTexture(st);
323 process_media_player_call( env, thiz, mp->prepare(), "java/io/IOException", "Prepare failed." );
329 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
330 if (mp == NULL ) {
335 // Handle the case where the display surface was set before the mp was
338 mp->setVideoSurfaceTexture(st);
340 process_media_player_call( env, thiz, mp->prepareAsync(), "java/io/IOException", "Prepare Async failed." );
347 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
348 if (mp == NULL ) {
352 process_media_player_call( env, thiz, mp->start(), NULL, NULL );
359 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
360 if (mp == NULL ) {
364 process_media_player_call( env, thiz, mp->stop(), NULL, NULL );
371 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
372 if (mp == NULL ) {
376 process_media_player_call( env, thiz, mp->pause(), NULL, NULL );
382 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
383 if (mp == NULL ) {
387 const jboolean is_playing = mp->isPlaying();
396 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
397 if (mp == NULL ) {
402 process_media_player_call( env, thiz, mp->seekTo(msec), NULL, NULL );
408 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
409 if (mp == NULL ) {
414 if (0 != mp->getVideoWidth(&w)) {
425 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
426 if (mp == NULL ) {
431 if (0 != mp->getVideoHeight(&h)) {
443 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
444 if (mp == NULL ) {
449 process_media_player_call( env, thiz, mp->getCurrentPosition(&msec), NULL, NULL );
457 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
458 if (mp == NULL ) {
463 process_media_player_call( env, thiz, mp->getDuration(&msec), NULL, NULL );
472 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
473 if (mp == NULL ) {
477 process_media_player_call( env, thiz, mp->reset(), NULL, NULL );
484 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
485 if (mp == NULL ) {
489 process_media_player_call( env, thiz, mp->setAudioStreamType((audio_stream_type_t) streamtype) , NULL, NULL );
496 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
497 if (mp == NULL ) {
501 process_media_player_call( env, thiz, mp->setLooping(looping), NULL, NULL );
508 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
509 if (mp == NULL ) {
513 return mp->isLooping();
520 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
521 if (mp == NULL ) {
525 process_media_player_call( env, thiz, mp->setVolume(leftVolume, rightVolume), NULL, NULL );
649 sp<MediaPlayer> mp = new MediaPlayer();
650 if (mp == NULL) {
657 mp->setListener(listener);
660 setMediaPlayer(env, thiz, mp);
668 sp<MediaPlayer> mp = setMediaPlayer(env, thiz, 0);
669 if (mp != NULL) {
671 mp->setListener(0);
672 mp->disconnect();
680 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
681 if (mp != NULL) {
689 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
690 if (mp == NULL ) {
694 process_media_player_call( env, thiz, mp->setAudioSessionId(sessionId), NULL, NULL );
699 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
700 if (mp == NULL ) {
705 return mp->getAudioSessionId();
712 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
713 if (mp == NULL ) {
717 process_media_player_call( env, thiz, mp->setAuxEffectSendLevel(level), NULL, NULL );
722 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
723 if (mp == NULL ) {
727 process_media_player_call( env, thiz, mp->attachAuxEffect(effectId), NULL, NULL );
748 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
749 if (mp == NULL ) {
769 ret = mp->setRetransmitEndpoint(cAddrString,
788 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
789 if (mp == NULL ) {
795 status_t err = mp->setParameter(key, *request);
807 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
808 if (mp == NULL ) {
814 process_media_player_call(env, thiz, mp->getParameter(key, reply), NULL, NULL );