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) {
296 mp->setVideoSurfaceTexture(new_st);
308 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
309 if (mp == NULL ) {
314 // Handle the case where the display surface was set before the mp was
317 mp->setVideoSurfaceTexture(st);
319 process_media_player_call( env, thiz, mp->prepare(), "java/io/IOException", "Prepare failed." );
325 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
326 if (mp == NULL ) {
331 // Handle the case where the display surface was set before the mp was
334 mp->setVideoSurfaceTexture(st);
336 process_media_player_call( env, thiz, mp->prepareAsync(), "java/io/IOException", "Prepare Async failed." );
343 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
344 if (mp == NULL ) {
348 process_media_player_call( env, thiz, mp->start(), NULL, NULL );
355 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
356 if (mp == NULL ) {
360 process_media_player_call( env, thiz, mp->stop(), NULL, NULL );
367 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
368 if (mp == NULL ) {
372 process_media_player_call( env, thiz, mp->pause(), NULL, NULL );
378 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
379 if (mp == NULL ) {
383 const jboolean is_playing = mp->isPlaying();
392 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
393 if (mp == NULL ) {
398 process_media_player_call( env, thiz, mp->seekTo(msec), NULL, NULL );
404 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
405 if (mp == NULL ) {
410 if (0 != mp->getVideoWidth(&w)) {
421 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
422 if (mp == NULL ) {
427 if (0 != mp->getVideoHeight(&h)) {
439 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
440 if (mp == NULL ) {
445 process_media_player_call( env, thiz, mp->getCurrentPosition(&msec), NULL, NULL );
453 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
454 if (mp == NULL ) {
459 process_media_player_call( env, thiz, mp->getDuration(&msec), NULL, NULL );
468 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
469 if (mp == NULL ) {
473 process_media_player_call( env, thiz, mp->reset(), NULL, NULL );
480 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
481 if (mp == NULL ) {
485 process_media_player_call( env, thiz, mp->setAudioStreamType((audio_stream_type_t) streamtype) , NULL, NULL );
492 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
493 if (mp == NULL ) {
497 process_media_player_call( env, thiz, mp->setLooping(looping), NULL, NULL );
504 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
505 if (mp == NULL ) {
509 return mp->isLooping();
516 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
517 mp == NULL ) {
521 process_media_player_call( env, thiz, mp->setVolume(leftVolume, rightVolume), NULL, NULL );
631 sp<MediaPlayer> mp = new MediaPlayer();
632 if (mp == NULL) {
639 mp->setListener(listener);
642 setMediaPlayer(env, thiz, mp);
650 sp<MediaPlayer> mp = setMediaPlayer(env, thiz, 0);
651 if (mp != NULL) {
653 mp->setListener(0);
654 mp->disconnect();
662 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
663 if (mp != NULL) {
671 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
672 if (mp == NULL ) {
676 process_media_player_call( env, thiz, mp->setAudioSessionId(sessionId), NULL, NULL );
681 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
682 if (mp == NULL ) {
687 return mp->getAudioSessionId();
694 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
695 if (mp == NULL ) {
699 process_media_player_call( env, thiz, mp->setAuxEffectSendLevel(level), NULL, NULL );
704 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
705 if (mp == NULL ) {
709 process_media_player_call( env, thiz, mp->attachAuxEffect(effectId), NULL, NULL );
730 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
731 if (mp == NULL ) {
751 ret = mp->setRetransmitEndpoint(cAddrString,
770 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
771 if (mp == NULL ) {
777 status_t err = mp->setParameter(key, *request);
789 sp<MediaPlayer> mp = getMediaPlayer(env, thiz);
790 if (mp == NULL ) {
796 process_media_player_call(env, thiz, mp->getParameter(key, reply), NULL, NULL );