• Home
  • Raw
  • Download

Lines Matching refs:mp

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()
303 …process_media_player_call(env, thiz, mp->setDataSource(callbackDataSource), "java/lang/RuntimeExce… in android_media_MediaPlayer_setDataSourceCallback()
315 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in decVideoSurfaceRef() local
316 if (mp == NULL) { in decVideoSurfaceRef()
329 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in setVideoSurface() local
330 if (mp == NULL) { in setVideoSurface()
363 mp->setVideoSurfaceTexture(new_st); in setVideoSurface()
375 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_prepare() local
376 if (mp == NULL ) { in android_media_MediaPlayer_prepare()
384 mp->setVideoSurfaceTexture(st); in android_media_MediaPlayer_prepare()
386 process_media_player_call( env, thiz, mp->prepare(), "java/io/IOException", "Prepare failed." ); in android_media_MediaPlayer_prepare()
392 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_prepareAsync() local
393 if (mp == NULL ) { in android_media_MediaPlayer_prepareAsync()
401 mp->setVideoSurfaceTexture(st); in android_media_MediaPlayer_prepareAsync()
403 …process_media_player_call( env, thiz, mp->prepareAsync(), "java/io/IOException", "Prepare Async fa… in android_media_MediaPlayer_prepareAsync()
410 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_start() local
411 if (mp == NULL ) { in android_media_MediaPlayer_start()
415 process_media_player_call( env, thiz, mp->start(), NULL, NULL ); in android_media_MediaPlayer_start()
422 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_stop() local
423 if (mp == NULL ) { in android_media_MediaPlayer_stop()
427 process_media_player_call( env, thiz, mp->stop(), NULL, NULL ); in android_media_MediaPlayer_stop()
434 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_pause() local
435 if (mp == NULL ) { in android_media_MediaPlayer_pause()
439 process_media_player_call( env, thiz, mp->pause(), NULL, NULL ); in android_media_MediaPlayer_pause()
445 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_isPlaying() local
446 if (mp == NULL ) { in android_media_MediaPlayer_isPlaying()
450 const jboolean is_playing = mp->isPlaying(); in android_media_MediaPlayer_isPlaying()
459 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setPlaybackParams() local
460 if (mp == NULL) { in android_media_MediaPlayer_setPlaybackParams()
474 status_t err = mp->getPlaybackSettings(&rate); in android_media_MediaPlayer_setPlaybackParams()
494 err = mp->setPlaybackSettings(rate); in android_media_MediaPlayer_setPlaybackParams()
505 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_getPlaybackParams() local
506 if (mp == NULL) { in android_media_MediaPlayer_getPlaybackParams()
514 env, thiz, mp->getPlaybackSettings(&audioRate), in android_media_MediaPlayer_getPlaybackParams()
533 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setSyncParams() local
534 if (mp == NULL) { in android_media_MediaPlayer_setSyncParams()
549 status_t err = mp->getSyncSettings(&avsync, &videoFrameRate); in android_media_MediaPlayer_setSyncParams()
565 err = mp->setSyncSettings(avsync, scp.frameRateSet ? scp.frameRate : -1.f); in android_media_MediaPlayer_setSyncParams()
576 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_getSyncParams() local
577 if (mp == NULL) { in android_media_MediaPlayer_getSyncParams()
585 env, thiz, mp->getSyncSettings(&scp.sync, &scp.frameRate), in android_media_MediaPlayer_getSyncParams()
614 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_seekTo() local
615 if (mp == NULL ) { in android_media_MediaPlayer_seekTo()
620 …process_media_player_call( env, thiz, mp->seekTo((int)msec, (MediaPlayerSeekMode)mode), NULL, NULL… in android_media_MediaPlayer_seekTo()
626 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_notifyAt() local
627 if (mp == NULL) { in android_media_MediaPlayer_notifyAt()
632 process_media_player_call( env, thiz, mp->notifyAt((int64_t)mediaTimeUs), NULL, NULL ); in android_media_MediaPlayer_notifyAt()
638 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_getVideoWidth() local
639 if (mp == NULL ) { in android_media_MediaPlayer_getVideoWidth()
644 if (0 != mp->getVideoWidth(&w)) { in android_media_MediaPlayer_getVideoWidth()
655 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_getVideoHeight() local
656 if (mp == NULL ) { in android_media_MediaPlayer_getVideoHeight()
661 if (0 != mp->getVideoHeight(&h)) { in android_media_MediaPlayer_getVideoHeight()
672 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_native_getMetrics() local
673 if (mp == NULL ) { in android_media_MediaPlayer_native_getMetrics()
680 status_t status = mp->getParameter(key, &p); in android_media_MediaPlayer_native_getMetrics()
696 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_getCurrentPosition() local
697 if (mp == NULL ) { in android_media_MediaPlayer_getCurrentPosition()
702 process_media_player_call( env, thiz, mp->getCurrentPosition(&msec), NULL, NULL ); in android_media_MediaPlayer_getCurrentPosition()
710 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_getDuration() local
711 if (mp == NULL ) { in android_media_MediaPlayer_getDuration()
716 process_media_player_call( env, thiz, mp->getDuration(&msec), NULL, NULL ); in android_media_MediaPlayer_getDuration()
725 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_reset() local
726 if (mp == NULL ) { in android_media_MediaPlayer_reset()
730 process_media_player_call( env, thiz, mp->reset(), NULL, NULL ); in android_media_MediaPlayer_reset()
737 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setAudioStreamType() local
738 if (mp == NULL ) { in android_media_MediaPlayer_setAudioStreamType()
742 …process_media_player_call( env, thiz, mp->setAudioStreamType((audio_stream_type_t) streamtype) , N… in android_media_MediaPlayer_setAudioStreamType()
748 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_getAudioStreamType() local
749 if (mp == NULL ) { in android_media_MediaPlayer_getAudioStreamType()
754 process_media_player_call( env, thiz, mp->getAudioStreamType(&streamtype), NULL, NULL ); in android_media_MediaPlayer_getAudioStreamType()
763 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setParameter() local
764 if (mp == NULL ) { in android_media_MediaPlayer_setParameter()
770 status_t err = mp->setParameter(key, *request); in android_media_MediaPlayer_setParameter()
782 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setLooping() local
783 if (mp == NULL ) { in android_media_MediaPlayer_setLooping()
787 process_media_player_call( env, thiz, mp->setLooping(looping), NULL, NULL ); in android_media_MediaPlayer_setLooping()
794 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_isLooping() local
795 if (mp == NULL ) { in android_media_MediaPlayer_isLooping()
799 return mp->isLooping() ? JNI_TRUE : JNI_FALSE; in android_media_MediaPlayer_isLooping()
806 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setVolume() local
807 if (mp == NULL ) { in android_media_MediaPlayer_setVolume()
811 …process_media_player_call( env, thiz, mp->setVolume((float) leftVolume, (float) rightVolume), NULL… in android_media_MediaPlayer_setVolume()
956 sp<MediaPlayer> mp = new MediaPlayer(attributionSource); in android_media_MediaPlayer_native_setup() local
957 if (mp == NULL) { in android_media_MediaPlayer_native_setup()
964 mp->setListener(listener); in android_media_MediaPlayer_native_setup()
967 setMediaPlayer(env, thiz, mp); in android_media_MediaPlayer_native_setup()
975 sp<MediaPlayer> mp = setMediaPlayer(env, thiz, 0); in android_media_MediaPlayer_release() local
976 if (mp != NULL) { in android_media_MediaPlayer_release()
978 mp->setListener(0); in android_media_MediaPlayer_release()
979 mp->disconnect(); in android_media_MediaPlayer_release()
987 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_native_finalize() local
988 if (mp != NULL) { in android_media_MediaPlayer_native_finalize()
997 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_set_audio_session_id() local
998 if (mp == NULL ) { in android_media_MediaPlayer_set_audio_session_id()
1002 process_media_player_call( env, thiz, mp->setAudioSessionId((audio_session_t) sessionId), NULL, in android_media_MediaPlayer_set_audio_session_id()
1008 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_get_audio_session_id() local
1009 if (mp == NULL ) { in android_media_MediaPlayer_get_audio_session_id()
1014 return (jint) mp->getAudioSessionId(); in android_media_MediaPlayer_get_audio_session_id()
1021 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setAuxEffectSendLevel() local
1022 if (mp == NULL ) { in android_media_MediaPlayer_setAuxEffectSendLevel()
1026 process_media_player_call( env, thiz, mp->setAuxEffectSendLevel(level), NULL, NULL ); in android_media_MediaPlayer_setAuxEffectSendLevel()
1031 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_attachAuxEffect() local
1032 if (mp == NULL ) { in android_media_MediaPlayer_attachAuxEffect()
1036 process_media_player_call( env, thiz, mp->attachAuxEffect(effectId), NULL, NULL ); in android_media_MediaPlayer_attachAuxEffect()
1058 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setRetransmitEndpoint() local
1059 if (mp == NULL ) { in android_media_MediaPlayer_setRetransmitEndpoint()
1079 ret = mp->setRetransmitEndpoint(cAddrString, in android_media_MediaPlayer_setRetransmitEndpoint()
1127 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_applyVolumeShaper() local
1128 if (mp == nullptr) { in android_media_MediaPlayer_applyVolumeShaper()
1144 VolumeShaper::Status status = mp->applyVolumeShaper(configuration, operation); in android_media_MediaPlayer_applyVolumeShaper()
1154 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_getVolumeShaperState() local
1155 if (mp == nullptr) { in android_media_MediaPlayer_getVolumeShaperState()
1159 sp<VolumeShaper::State> state = mp->getVolumeShaperState((int)id); in android_media_MediaPlayer_getVolumeShaperState()
1264 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_prepareDrm() local
1265 if (mp == NULL) { in android_media_MediaPlayer_prepareDrm()
1295 status_t err = mp->prepareDrm(uuid.array(), drmSessionId); in android_media_MediaPlayer_prepareDrm()
1315 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_releaseDrm() local
1316 if (mp == NULL ) { in android_media_MediaPlayer_releaseDrm()
1321 status_t err = mp->releaseDrm(); in android_media_MediaPlayer_releaseDrm()
1338 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_setOutputDevice() local
1339 if (mp == NULL) { in android_media_MediaPlayer_setOutputDevice()
1342 return mp->setOutputDevice(device_id) == NO_ERROR; in android_media_MediaPlayer_setOutputDevice()
1347 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_getRoutedDeviceId() local
1348 if (mp == NULL) { in android_media_MediaPlayer_getRoutedDeviceId()
1351 return mp->getRoutedDeviceId(); in android_media_MediaPlayer_getRoutedDeviceId()
1357 sp<MediaPlayer> mp = getMediaPlayer(env, thiz); in android_media_MediaPlayer_enableDeviceCallback() local
1358 if (mp == NULL) { in android_media_MediaPlayer_enableDeviceCallback()
1362 status_t status = mp->enableAudioDeviceCallback(enabled); in android_media_MediaPlayer_enableDeviceCallback()