Home | History | Annotate | Download | only in jni

Lines Matching refs:mp

156             sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
157 if (mp != 0) mp->notify(MEDIA_ERROR, opStatus, 0);
183 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
184 if (mp == NULL ) {
212 mp->setDataSource(
224 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
225 if (mp == NULL ) {
236 process_media_player_call( env, thiz, mp->setDataSource(fd, offset, length), "java/io/IOException", "setDataSourceFD failed." );
248 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
249 if (mp == NULL) {
262 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
263 if (mp == NULL) {
291 mp->setVideoSurfaceTexture(new_st);
303 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
304 if (mp == NULL ) {
309 // Handle the case where the display surface was set before the mp was
312 mp->setVideoSurfaceTexture(st);
314 process_media_player_call( env, thiz, mp->prepare(), "java/io/IOException", "Prepare failed." );
320 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
321 if (mp == NULL ) {
326 // Handle the case where the display surface was set before the mp was
329 mp->setVideoSurfaceTexture(st);
331 process_media_player_call( env, thiz, mp->prepareAsync(), "java/io/IOException", "Prepare Async failed." );
338 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
339 if (mp == NULL ) {
343 process_media_player_call( env, thiz, mp->start(), NULL, NULL );
350 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
351 if (mp == NULL ) {
355 process_media_player_call( env, thiz, mp->stop(), NULL, NULL );
362 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
363 if (mp == NULL ) {
367 process_media_player_call( env, thiz, mp->pause(), NULL, NULL );
373 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
374 if (mp == NULL ) {
378 const jboolean is_playing = mp->isPlaying();
387 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
388 if (mp == NULL ) {
393 process_media_player_call( env, thiz, mp->seekTo(msec), NULL, NULL );
399 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
400 if (mp == NULL ) {
405 if (0 != mp->getVideoWidth(&w)) {
416 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
417 if (mp == NULL ) {
422 if (0 != mp->getVideoHeight(&h)) {
434 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
435 if (mp == NULL ) {
440 process_media_player_call( env, thiz, mp->getCurrentPosition(&msec), NULL, NULL );
448 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
449 if (mp == NULL ) {
454 process_media_player_call( env, thiz, mp->getDuration(&msec), NULL, NULL );
463 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
464 if (mp == NULL ) {
468 process_media_player_call( env, thiz, mp->reset(), NULL, NULL );
475 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
476 if (mp == NULL ) {
480 process_media_player_call( env, thiz, mp->setAudioStreamType((audio_stream_type_t) streamtype) , NULL, NULL );
487 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
488 if (mp == NULL ) {
492 process_media_player_call( env, thiz, mp->setLooping(looping), NULL, NULL );
499 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
500 if (mp == NULL ) {
504 return mp->isLooping();
511 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
512 if (mp == NULL ) {
516 process_media_player_call( env, thiz, mp->setVolume(leftVolume, rightVolume), NULL, NULL );
626 sp<MediaPlayer> mp = new MediaPlayer();
627 if (mp == NULL) {
634 mp->setListener(listener);
637 setMediaPlayer(env, thiz, mp);
645 sp<MediaPlayer> mp = setMediaPlayer(env, thiz, 0);
646 if (mp != NULL) {
648 mp->setListener(0);
649 mp->disconnect();
657 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
658 if (mp != NULL) {
666 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
667 if (mp == NULL ) {
671 process_media_player_call( env, thiz, mp->setAudioSessionId(sessionId), NULL, NULL );
676 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
677 if (mp == NULL ) {
682 return mp->getAudioSessionId();
689 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
690 if (mp == NULL ) {
694 process_media_player_call( env, thiz, mp->setAuxEffectSendLevel(level), NULL, NULL );
699 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
700 if (mp == NULL ) {
704 process_media_player_call( env, thiz, mp->attachAuxEffect(effectId), NULL, NULL );
725 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
726 if (mp == NULL ) {
746 ret = mp->setRetransmitEndpoint(cAddrString,
765 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
766 if (mp == NULL ) {
772 status_t err = mp->setParameter(key, *request);
784 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
785 if (mp == NULL ) {
791 process_media_player_call(env, thiz, mp->getParameter(key, reply), NULL, NULL );