Lines Matching refs:scp
510 SyncParams scp; in android_media_MediaPlayer_setSyncParams() local
511 scp.fillFromJobject(env, gSyncParamsFields, params); in android_media_MediaPlayer_setSyncParams()
513 scp.syncSourceSet, scp.sync.mSource, in android_media_MediaPlayer_setSyncParams()
514 scp.audioAdjustModeSet, scp.sync.mAudioAdjustMode, in android_media_MediaPlayer_setSyncParams()
515 scp.toleranceSet, scp.sync.mTolerance, in android_media_MediaPlayer_setSyncParams()
516 scp.frameRateSet, scp.frameRate); in android_media_MediaPlayer_setSyncParams()
522 bool updatedSync = scp.frameRateSet; in android_media_MediaPlayer_setSyncParams()
523 if (scp.syncSourceSet) { in android_media_MediaPlayer_setSyncParams()
524 avsync.mSource = scp.sync.mSource; in android_media_MediaPlayer_setSyncParams()
527 if (scp.audioAdjustModeSet) { in android_media_MediaPlayer_setSyncParams()
528 avsync.mAudioAdjustMode = scp.sync.mAudioAdjustMode; in android_media_MediaPlayer_setSyncParams()
531 if (scp.toleranceSet) { in android_media_MediaPlayer_setSyncParams()
532 avsync.mTolerance = scp.sync.mTolerance; in android_media_MediaPlayer_setSyncParams()
536 err = mp->setSyncSettings(avsync, scp.frameRateSet ? scp.frameRate : -1.f); in android_media_MediaPlayer_setSyncParams()
553 SyncParams scp; in android_media_MediaPlayer_getSyncParams() local
554 scp.frameRate = -1.f; in android_media_MediaPlayer_getSyncParams()
556 env, thiz, mp->getSyncSettings(&scp.sync, &scp.frameRate), in android_media_MediaPlayer_getSyncParams()
560 scp.sync.mSource, scp.sync.mAudioAdjustMode, scp.sync.mTolerance, scp.frameRate); in android_media_MediaPlayer_getSyncParams()
563 if (scp.sync.mSource >= AVSYNC_SOURCE_MAX in android_media_MediaPlayer_getSyncParams()
564 || scp.sync.mAudioAdjustMode >= AVSYNC_AUDIO_ADJUST_MODE_MAX in android_media_MediaPlayer_getSyncParams()
565 || scp.sync.mTolerance < 0.f in android_media_MediaPlayer_getSyncParams()
566 || scp.sync.mTolerance >= AVSYNC_TOLERANCE_MAX) { in android_media_MediaPlayer_getSyncParams()
571 scp.syncSourceSet = true; in android_media_MediaPlayer_getSyncParams()
572 scp.audioAdjustModeSet = true; in android_media_MediaPlayer_getSyncParams()
573 scp.toleranceSet = true; in android_media_MediaPlayer_getSyncParams()
574 scp.frameRateSet = scp.frameRate >= 0.f; in android_media_MediaPlayer_getSyncParams()
576 return scp.asJobject(env, gSyncParamsFields); in android_media_MediaPlayer_getSyncParams()