Program: 38243
Project: 38243
Buggy source:
private void qcomSetCameraParameters(){
  String colorEffect=mPreferences.getString(CameraSettings.KEY_COLOR_EFFECT,mActivity.getString(R.string.pref_camera_coloreffect_default));
  Log.v(TAG,"String_Node_Str" + colorEffect);
  if (isSupported(colorEffect,mParameters.getSupportedColorEffects())) {
    mParameters.setColorEffect(colorEffect);
  }
  String disMode=mPreferences.getString(CameraSettings.KEY_DIS,mActivity.getString(R.string.pref_camera_dis_default));
  Log.v(TAG,"String_Node_Str" + disMode);
  mIsDISEnabled=disMode.equals("String_Node_Str");
  if (is4KEnabled()) {
    if (isSupported(mActivity.getString(R.string.pref_camera_dis_value_disable),CameraSettings.getSupportedDISModes(mParameters))) {
      mParameters.set(CameraSettings.KEY_QC_DIS_MODE,mActivity.getString(R.string.pref_camera_dis_value_disable));
      mUI.overrideSettings(CameraSettings.KEY_DIS,mActivity.getString(R.string.pref_camera_dis_value_disable));
      RotateTextToast.makeText(mActivity,R.string.video_quality_4k_disable_IS,Toast.LENGTH_LONG).show();
    }
 else {
      Log.e(TAG,"String_Node_Str" + mActivity.getString(R.string.pref_camera_dis_value_disable));
    }
  }
 else {
    if (isSupported(disMode,CameraSettings.getSupportedDISModes(mParameters))) {
      mParameters.set(CameraSettings.KEY_QC_DIS_MODE,disMode);
    }
 else {
      Log.e(TAG,"String_Node_Str" + disMode);
    }
  }
  if (mDefaultAntibanding == null) {
    mDefaultAntibanding=mParameters.getAntibanding();
    Log.d(TAG,"String_Node_Str" + mDefaultAntibanding);
  }
  if (disMode.equals("String_Node_Str")) {
    Log.d(TAG,"String_Node_Str");
    if (isSupported(Parameters.ANTIBANDING_AUTO,mParameters.getSupportedAntibanding())) {
      mParameters.setAntibanding(Parameters.ANTIBANDING_AUTO);
    }
  }
 else {
    if (isSupported(mDefaultAntibanding,mParameters.getSupportedAntibanding())) {
      mParameters.setAntibanding(mDefaultAntibanding);
    }
  }
  Log.d(TAG,"String_Node_Str" + mParameters.getAntibanding());
  mUnsupportedHFRVideoSize=false;
  mUnsupportedHFRVideoCodec=false;
  mUnsupportedHSRVideoSize=false;
  String yv12formatset=SystemProperties.get("String_Node_Str");
  if (yv12formatset.equals("String_Node_Str")) {
    Log.v(TAG,"String_Node_Str");
    mParameters.setPreviewFormat(ImageFormat.YV12);
  }
  mParameters.set(KEY_PREVIEW_FORMAT,FORMAT_NV21);
  Log.v(TAG,"String_Node_Str");
  String HighFrameRate=mPreferences.getString(CameraSettings.KEY_VIDEO_HIGH_FRAME_RATE,mActivity.getString(R.string.pref_camera_hfr_default));
  if (("String_Node_Str".equals(HighFrameRate.substring(0,3))) || ("String_Node_Str".equals(HighFrameRate.substring(0,3)))) {
    String hfrRate=HighFrameRate.substring(3);
    if ("String_Node_Str".equals(HighFrameRate.substring(0,3))) {
      mUnsupportedHFRVideoSize=true;
    }
 else {
      mUnsupportedHSRVideoSize=true;
    }
    String hfrsize=videoWidth + "String_Node_Str" + videoHeight;
    Log.v(TAG,"String_Node_Str" + hfrsize);
    try {
      Size size=null;
      if (isSupported(hfrRate,mParameters.getSupportedVideoHighFrameRateModes())) {
        int index=mParameters.getSupportedVideoHighFrameRateModes().indexOf(hfrRate);
        size=mParameters.getSupportedHfrSizes().get(index);
      }
      if (size != null) {
        if (videoWidth <= size.width && videoHeight <= size.height) {
          if ("String_Node_Str".equals(HighFrameRate.substring(0,3))) {
            mUnsupportedHFRVideoSize=false;
          }
 else {
            mUnsupportedHSRVideoSize=false;
          }
          Log.v(TAG,"String_Node_Str");
        }
      }
    }
 catch (    NullPointerException e) {
      Log.e(TAG,"String_Node_Str");
    }
    int hfrFps=Integer.parseInt(hfrRate);
    int inputBitrate=videoWidth * videoHeight * hfrFps;
    List<VideoEncoderCap> videoEncoders=EncoderCapabilities.getVideoEncoders();
    for (    VideoEncoderCap videoEncoder : videoEncoders) {
      if (videoEncoder.mCodec == mVideoEncoder) {
        int maxBitrate=(videoEncoder.mMaxHFRFrameWidth * videoEncoder.mMaxHFRFrameHeight * videoEncoder.mMaxHFRMode);
        if (inputBitrate > maxBitrate) {
          Log.e(TAG,"String_Node_Str" + mVideoEncoder + "String_Node_Str"+ HighFrameRate+ "String_Node_Str"+ videoWidth+ "String_Node_Str"+ videoHeight+ "String_Node_Str");
          Log.e(TAG,"String_Node_Str" + "String_Node_Str" + videoEncoder.mMaxHFRFrameWidth + "String_Node_Str"+ "String_Node_Str"+ videoEncoder.mMaxHFRFrameHeight+ "String_Node_Str"+ "String_Node_Str"+ videoEncoder.mMaxHFRMode);
          if ("String_Node_Str".equals(HighFrameRate.substring(0,3))) {
            mUnsupportedHFRVideoSize=true;
          }
 else {
            mUnsupportedHSRVideoSize=true;
          }
        }
        break;
      }
    }
    if ("String_Node_Str".equals(HighFrameRate.substring(0,3))) {
      mParameters.set(CameraSettings.KEY_VIDEO_HSR,"String_Node_Str");
      if (mUnsupportedHFRVideoSize) {
        mParameters.setVideoHighFrameRate("String_Node_Str");
        Log.v(TAG,"String_Node_Str");
      }
 else {
        mParameters.setVideoHighFrameRate(hfrRate);
      }
    }
 else {
      mParameters.setVideoHighFrameRate("String_Node_Str");
      if (mUnsupportedHSRVideoSize) {
        Log.v(TAG,"String_Node_Str");
        mParameters.set(CameraSettings.KEY_VIDEO_HSR,"String_Node_Str");
      }
 else {
        mParameters.set(CameraSettings.KEY_VIDEO_HSR,hfrRate);
      }
    }
    if (mVideoEncoder != MediaRecorder.VideoEncoder.H264) {
      mUnsupportedHFRVideoCodec=true;
    }
  }
 else {
    mParameters.setVideoHighFrameRate("String_Node_Str");
    mParameters.set(CameraSettings.KEY_VIDEO_HSR,"String_Node_Str");
  }
  setFlipValue();
  String video_cds=mPreferences.getString(CameraSettings.KEY_VIDEO_CDS_MODE,mActivity.getString(R.string.pref_camera_video_cds_default));
  if ((mPrevSavedVideoCDS == null) && (video_cds != null)) {
    mPrevSavedVideoCDS=video_cds;
  }
  if (mOverrideCDS) {
    video_cds=mPrevSavedVideoCDS;
    mOverrideCDS=false;
  }
  if (CameraUtil.isSupported(video_cds,CameraSettings.getSupportedVideoCDSModes(mParameters))) {
    mParameters.set(CameraSettings.KEY_QC_VIDEO_CDS_MODE,video_cds);
  }
  String video_tnr=mPreferences.getString(CameraSettings.KEY_VIDEO_TNR_MODE,mActivity.getString(R.string.pref_camera_video_tnr_default));
  if (CameraUtil.isSupported(video_tnr,CameraSettings.getSupportedVideoTNRModes(mParameters))) {
    if (!video_tnr.equals(mActivity.getString(R.string.pref_camera_video_tnr_value_off))) {
      mParameters.set(CameraSettings.KEY_QC_VIDEO_CDS_MODE,mActivity.getString(R.string.pref_camera_video_cds_value_off));
      mUI.overrideSettings(CameraSettings.KEY_QC_VIDEO_CDS_MODE,mActivity.getString(R.string.pref_camera_video_cds_value_off));
      if (!mIsVideoCDSUpdated) {
        if (video_cds != null) {
          mPrevSavedVideoCDS=mTempVideoCDS;
        }
        mIsVideoTNREnabled=true;
        mIsVideoCDSUpdated=true;
      }
    }
 else     if (mIsVideoTNREnabled) {
      mParameters.set(CameraSettings.KEY_QC_VIDEO_CDS_MODE,mPrevSavedVideoCDS);
      mUI.overrideSettings(CameraSettings.KEY_QC_VIDEO_CDS_MODE,mPrevSavedVideoCDS);
      mIsVideoTNREnabled=false;
      mIsVideoCDSUpdated=false;
      mOverrideCDS=true;
    }
 else {
      mTempVideoCDS=video_cds;
    }
    mParameters.set(CameraSettings.KEY_QC_VIDEO_TNR_MODE,video_tnr);
    mUI.overrideSettings(CameraSettings.KEY_QC_VIDEO_TNR_MODE,video_tnr);
  }
  String seeMoreMode=mPreferences.getString(CameraSettings.KEY_SEE_MORE,mActivity.getString(R.string.pref_camera_see_more_default));
  Log.v(TAG,"String_Node_Str" + seeMoreMode);
  if (isSupported(seeMoreMode,CameraSettings.getSupportedSeeMoreModes(mParameters))) {
    if (is4KEnabled() && seeMoreMode.equals(mActivity.getString(R.string.pref_camera_see_more_value_on))) {
      mParameters.set(CameraSettings.KEY_QC_SEE_MORE_MODE,mActivity.getString(R.string.pref_camera_see_more_value_off));
      mUI.overrideSettings(CameraSettings.KEY_SEE_MORE,mActivity.getString(R.string.pref_camera_see_more_value_off));
      Toast.makeText(mActivity,R.string.video_quality_4k_disable_SeeMore,Toast.LENGTH_LONG).show();
    }
 else {
      if (seeMoreMode.equals(mActivity.getString(R.string.pref_camera_see_more_value_on)) && video_cds.equals(mActivity.getString(R.string.pref_camera_video_cds_value_on))) {
        mParameters.set(CameraSettings.KEY_QC_VIDEO_CDS_MODE,mActivity.getString(R.string.pref_camera_video_cds_value_off));
        mUI.overrideSettings(CameraSettings.KEY_QC_VIDEO_CDS_MODE,mActivity.getString(R.string.pref_camera_video_cds_value_off));
        Toast.makeText(mActivity,R.string.disable_CDS_during_SeeMore,Toast.LENGTH_LONG).show();
      }
      if (seeMoreMode.equals(mActivity.getString(R.string.pref_camera_see_more_value_on)) && video_tnr.equals(mActivity.getString(R.string.pref_camera_video_tnr_value_on))) {
        mParameters.set(CameraSettings.KEY_QC_VIDEO_TNR_MODE,mActivity.getString(R.string.pref_camera_video_tnr_value_off));
        mUI.overrideSettings(CameraSettings.KEY_QC_VIDEO_TNR_MODE,mActivity.getString(R.string.pref_camera_video_tnr_value_off));
        Toast.makeText(mActivity,R.string.disable_TNR_during_SeeMore,Toast.LENGTH_LONG).show();
      }
      mParameters.set(CameraSettings.KEY_QC_SEE_MORE_MODE,seeMoreMode);
    }
  }
  String videoHDR=mPreferences.getString(CameraSettings.KEY_VIDEO_HDR,mActivity.getString(R.string.pref_camera_video_hdr_default));
  Log.v(TAG,"String_Node_Str" + videoHDR);
  if (isSupported(videoHDR,mParameters.getSupportedVideoHDRModes())) {
    mParameters.setVideoHDRMode(videoHDR);
  }
 else   mParameters.setVideoHDRMode("String_Node_Str");
  String hfr=mParameters.getVideoHighFrameRate();
  String hsr=mParameters.get(CameraSettings.KEY_VIDEO_HSR);
  String hdr=mParameters.getVideoHDRMode();
  if (((hfr != null) && (!hfr.equals("String_Node_Str"))) || ((hsr != null) && (!hsr.equals("String_Node_Str")))) {
    String frameIntervalStr=mPreferences.getString(CameraSettings.KEY_VIDEO_TIME_LAPSE_FRAME_INTERVAL,mActivity.getString(R.string.pref_video_time_lapse_frame_interval_default));
    int timeLapseInterval=Integer.parseInt(frameIntervalStr);
    if ((timeLapseInterval != 0) || (disMode.equals("String_Node_Str")) || ((hdr != null) && (!hdr.equals("String_Node_Str")))) {
      Log.v(TAG,"String_Node_Str");
      mParameters.setVideoHighFrameRate("String_Node_Str");
      mParameters.set(CameraSettings.KEY_VIDEO_HSR,"String_Node_Str");
      mUI.overrideSettings(CameraSettings.KEY_VIDEO_HIGH_FRAME_RATE,"String_Node_Str");
    }
  }
  Size biggestSize=mParameters.getSupportedPictureSizes().get(0);
  if (biggestSize.width <= videoWidth || biggestSize.height <= videoHeight) {
    if (disMode.equals("String_Node_Str")) {
      Log.v(TAG,"String_Node_Str");
      RotateTextToast.makeText(mActivity,R.string.error_app_unsupported_dis,Toast.LENGTH_LONG).show();
      mParameters.set(CameraSettings.KEY_QC_DIS_MODE,"String_Node_Str");
      mUI.overrideSettings(CameraSettings.KEY_DIS,"String_Node_Str");
      mIsDISEnabled=false;
    }
  }
  String videoRotation=mPreferences.getString(CameraSettings.KEY_VIDEO_ROTATION,mActivity.getString(R.string.pref_camera_video_rotation_default));
  if (isSupported(videoRotation,mParameters.getSupportedVideoRotationValues())) {
    mParameters.setVideoRotation(videoRotation);
  }
  updatePowerMode();
}

Fixed version (ground truth):
private void qcomSetCameraParameters(){
  String colorEffect=mPreferences.getString(CameraSettings.KEY_COLOR_EFFECT,mActivity.getString(R.string.pref_camera_coloreffect_default));
  Log.v(TAG,"String_Node_Str" + colorEffect);
  if (isSupported(colorEffect,mParameters.getSupportedColorEffects())) {
    mParameters.setColorEffect(colorEffect);
  }
  String disMode=mPreferences.getString(CameraSettings.KEY_DIS,mActivity.getString(R.string.pref_camera_dis_default));
  Log.v(TAG,"String_Node_Str" + disMode);
  mIsDISEnabled=disMode.equals("String_Node_Str");
  if (is4KEnabled()) {
    if (isSupported(mActivity.getString(R.string.pref_camera_dis_value_disable),CameraSettings.getSupportedDISModes(mParameters))) {
      mParameters.set(CameraSettings.KEY_QC_DIS_MODE,mActivity.getString(R.string.pref_camera_dis_value_disable));
      mUI.overrideSettings(CameraSettings.KEY_DIS,mActivity.getString(R.string.pref_camera_dis_value_disable));
    }
 else {
      Log.e(TAG,"String_Node_Str" + mActivity.getString(R.string.pref_camera_dis_value_disable));
    }
  }
 else {
    if (isSupported(disMode,CameraSettings.getSupportedDISModes(mParameters))) {
      mParameters.set(CameraSettings.KEY_QC_DIS_MODE,disMode);
    }
 else {
      Log.e(TAG,"String_Node_Str" + disMode);
    }
  }
  if (mDefaultAntibanding == null) {
    mDefaultAntibanding=mParameters.getAntibanding();
    Log.d(TAG,"String_Node_Str" + mDefaultAntibanding);
  }
  if (disMode.equals("String_Node_Str")) {
    Log.d(TAG,"String_Node_Str");
    if (isSupported(Parameters.ANTIBANDING_AUTO,mParameters.getSupportedAntibanding())) {
      mParameters.setAntibanding(Parameters.ANTIBANDING_AUTO);
    }
  }
 else {
    if (isSupported(mDefaultAntibanding,mParameters.getSupportedAntibanding())) {
      mParameters.setAntibanding(mDefaultAntibanding);
    }
  }
  Log.d(TAG,"String_Node_Str" + mParameters.getAntibanding());
  mUnsupportedHFRVideoSize=false;
  mUnsupportedHFRVideoCodec=false;
  mUnsupportedHSRVideoSize=false;
  String yv12formatset=SystemProperties.get("String_Node_Str");
  if (yv12formatset.equals("String_Node_Str")) {
    Log.v(TAG,"String_Node_Str");
    mParameters.setPreviewFormat(ImageFormat.YV12);
  }
  mParameters.set(KEY_PREVIEW_FORMAT,FORMAT_NV21);
  Log.v(TAG,"String_Node_Str");
  String HighFrameRate=mPreferences.getString(CameraSettings.KEY_VIDEO_HIGH_FRAME_RATE,mActivity.getString(R.string.pref_camera_hfr_default));
  if (("String_Node_Str".equals(HighFrameRate.substring(0,3))) || ("String_Node_Str".equals(HighFrameRate.substring(0,3)))) {
    String hfrRate=HighFrameRate.substring(3);
    if ("String_Node_Str".equals(HighFrameRate.substring(0,3))) {
      mUnsupportedHFRVideoSize=true;
    }
 else {
      mUnsupportedHSRVideoSize=true;
    }
    String hfrsize=videoWidth + "String_Node_Str" + videoHeight;
    Log.v(TAG,"String_Node_Str" + hfrsize);
    try {
      Size size=null;
      if (isSupported(hfrRate,mParameters.getSupportedVideoHighFrameRateModes())) {
        int index=mParameters.getSupportedVideoHighFrameRateModes().indexOf(hfrRate);
        size=mParameters.getSupportedHfrSizes().get(index);
      }
      if (size != null) {
        if (videoWidth <= size.width && videoHeight <= size.height) {
          if ("String_Node_Str".equals(HighFrameRate.substring(0,3))) {
            mUnsupportedHFRVideoSize=false;
          }
 else {
            mUnsupportedHSRVideoSize=false;
          }
          Log.v(TAG,"String_Node_Str");
        }
      }
    }
 catch (    NullPointerException e) {
      Log.e(TAG,"String_Node_Str");
    }
    int hfrFps=Integer.parseInt(hfrRate);
    int inputBitrate=videoWidth * videoHeight * hfrFps;
    List<VideoEncoderCap> videoEncoders=EncoderCapabilities.getVideoEncoders();
    for (    VideoEncoderCap videoEncoder : videoEncoders) {
      if (videoEncoder.mCodec == mVideoEncoder) {
        int maxBitrate=(videoEncoder.mMaxHFRFrameWidth * videoEncoder.mMaxHFRFrameHeight * videoEncoder.mMaxHFRMode);
        if (inputBitrate > maxBitrate) {
          Log.e(TAG,"String_Node_Str" + mVideoEncoder + "String_Node_Str"+ HighFrameRate+ "String_Node_Str"+ videoWidth+ "String_Node_Str"+ videoHeight+ "String_Node_Str");
          Log.e(TAG,"String_Node_Str" + "String_Node_Str" + videoEncoder.mMaxHFRFrameWidth + "String_Node_Str"+ "String_Node_Str"+ videoEncoder.mMaxHFRFrameHeight+ "String_Node_Str"+ "String_Node_Str"+ videoEncoder.mMaxHFRMode);
          if ("String_Node_Str".equals(HighFrameRate.substring(0,3))) {
            mUnsupportedHFRVideoSize=true;
          }
 else {
            mUnsupportedHSRVideoSize=true;
          }
        }
        break;
      }
    }
    if ("String_Node_Str".equals(HighFrameRate.substring(0,3))) {
      mParameters.set(CameraSettings.KEY_VIDEO_HSR,"String_Node_Str");
      if (mUnsupportedHFRVideoSize) {
        mParameters.setVideoHighFrameRate("String_Node_Str");
        Log.v(TAG,"String_Node_Str");
      }
 else {
        mParameters.setVideoHighFrameRate(hfrRate);
      }
    }
 else {
      mParameters.setVideoHighFrameRate("String_Node_Str");
      if (mUnsupportedHSRVideoSize) {
        Log.v(TAG,"String_Node_Str");
        mParameters.set(CameraSettings.KEY_VIDEO_HSR,"String_Node_Str");
      }
 else {
        mParameters.set(CameraSettings.KEY_VIDEO_HSR,hfrRate);
      }
    }
    if (mVideoEncoder != MediaRecorder.VideoEncoder.H264) {
      mUnsupportedHFRVideoCodec=true;
    }
  }
 else {
    mParameters.setVideoHighFrameRate("String_Node_Str");
    mParameters.set(CameraSettings.KEY_VIDEO_HSR,"String_Node_Str");
  }
  setFlipValue();
  String video_cds=mPreferences.getString(CameraSettings.KEY_VIDEO_CDS_MODE,mActivity.getString(R.string.pref_camera_video_cds_default));
  if ((mPrevSavedVideoCDS == null) && (video_cds != null)) {
    mPrevSavedVideoCDS=video_cds;
  }
  if (mOverrideCDS) {
    video_cds=mPrevSavedVideoCDS;
    mOverrideCDS=false;
  }
  if (CameraUtil.isSupported(video_cds,CameraSettings.getSupportedVideoCDSModes(mParameters))) {
    mParameters.set(CameraSettings.KEY_QC_VIDEO_CDS_MODE,video_cds);
  }
  String video_tnr=mPreferences.getString(CameraSettings.KEY_VIDEO_TNR_MODE,mActivity.getString(R.string.pref_camera_video_tnr_default));
  if (CameraUtil.isSupported(video_tnr,CameraSettings.getSupportedVideoTNRModes(mParameters))) {
    if (!video_tnr.equals(mActivity.getString(R.string.pref_camera_video_tnr_value_off))) {
      mParameters.set(CameraSettings.KEY_QC_VIDEO_CDS_MODE,mActivity.getString(R.string.pref_camera_video_cds_value_off));
      mUI.overrideSettings(CameraSettings.KEY_QC_VIDEO_CDS_MODE,mActivity.getString(R.string.pref_camera_video_cds_value_off));
      if (!mIsVideoCDSUpdated) {
        if (video_cds != null) {
          mPrevSavedVideoCDS=mTempVideoCDS;
        }
        mIsVideoTNREnabled=true;
        mIsVideoCDSUpdated=true;
      }
    }
 else     if (mIsVideoTNREnabled) {
      mParameters.set(CameraSettings.KEY_QC_VIDEO_CDS_MODE,mPrevSavedVideoCDS);
      mUI.overrideSettings(CameraSettings.KEY_QC_VIDEO_CDS_MODE,mPrevSavedVideoCDS);
      mIsVideoTNREnabled=false;
      mIsVideoCDSUpdated=false;
      mOverrideCDS=true;
    }
 else {
      mTempVideoCDS=video_cds;
    }
    mParameters.set(CameraSettings.KEY_QC_VIDEO_TNR_MODE,video_tnr);
    mUI.overrideSettings(CameraSettings.KEY_QC_VIDEO_TNR_MODE,video_tnr);
  }
  String seeMoreMode=mPreferences.getString(CameraSettings.KEY_SEE_MORE,mActivity.getString(R.string.pref_camera_see_more_default));
  Log.v(TAG,"String_Node_Str" + seeMoreMode);
  if (isSupported(seeMoreMode,CameraSettings.getSupportedSeeMoreModes(mParameters))) {
    if (is4KEnabled() && seeMoreMode.equals(mActivity.getString(R.string.pref_camera_see_more_value_on))) {
      mParameters.set(CameraSettings.KEY_QC_SEE_MORE_MODE,mActivity.getString(R.string.pref_camera_see_more_value_off));
      mUI.overrideSettings(CameraSettings.KEY_SEE_MORE,mActivity.getString(R.string.pref_camera_see_more_value_off));
      Toast.makeText(mActivity,R.string.video_quality_4k_disable_SeeMore,Toast.LENGTH_LONG).show();
    }
 else {
      if (seeMoreMode.equals(mActivity.getString(R.string.pref_camera_see_more_value_on)) && video_cds.equals(mActivity.getString(R.string.pref_camera_video_cds_value_on))) {
        mParameters.set(CameraSettings.KEY_QC_VIDEO_CDS_MODE,mActivity.getString(R.string.pref_camera_video_cds_value_off));
        mUI.overrideSettings(CameraSettings.KEY_QC_VIDEO_CDS_MODE,mActivity.getString(R.string.pref_camera_video_cds_value_off));
        Toast.makeText(mActivity,R.string.disable_CDS_during_SeeMore,Toast.LENGTH_LONG).show();
      }
      if (seeMoreMode.equals(mActivity.getString(R.string.pref_camera_see_more_value_on)) && video_tnr.equals(mActivity.getString(R.string.pref_camera_video_tnr_value_on))) {
        mParameters.set(CameraSettings.KEY_QC_VIDEO_TNR_MODE,mActivity.getString(R.string.pref_camera_video_tnr_value_off));
        mUI.overrideSettings(CameraSettings.KEY_QC_VIDEO_TNR_MODE,mActivity.getString(R.string.pref_camera_video_tnr_value_off));
        Toast.makeText(mActivity,R.string.disable_TNR_during_SeeMore,Toast.LENGTH_LONG).show();
      }
      mParameters.set(CameraSettings.KEY_QC_SEE_MORE_MODE,seeMoreMode);
    }
  }
  String videoHDR=mPreferences.getString(CameraSettings.KEY_VIDEO_HDR,mActivity.getString(R.string.pref_camera_video_hdr_default));
  Log.v(TAG,"String_Node_Str" + videoHDR);
  if (isSupported(videoHDR,mParameters.getSupportedVideoHDRModes())) {
    mParameters.setVideoHDRMode(videoHDR);
  }
 else   mParameters.setVideoHDRMode("String_Node_Str");
  String hfr=mParameters.getVideoHighFrameRate();
  String hsr=mParameters.get(CameraSettings.KEY_VIDEO_HSR);
  String hdr=mParameters.getVideoHDRMode();
  if (((hfr != null) && (!hfr.equals("String_Node_Str"))) || ((hsr != null) && (!hsr.equals("String_Node_Str")))) {
    String frameIntervalStr=mPreferences.getString(CameraSettings.KEY_VIDEO_TIME_LAPSE_FRAME_INTERVAL,mActivity.getString(R.string.pref_video_time_lapse_frame_interval_default));
    int timeLapseInterval=Integer.parseInt(frameIntervalStr);
    if ((timeLapseInterval != 0) || (disMode.equals("String_Node_Str")) || ((hdr != null) && (!hdr.equals("String_Node_Str")))) {
      Log.v(TAG,"String_Node_Str");
      mParameters.setVideoHighFrameRate("String_Node_Str");
      mParameters.set(CameraSettings.KEY_VIDEO_HSR,"String_Node_Str");
      mUI.overrideSettings(CameraSettings.KEY_VIDEO_HIGH_FRAME_RATE,"String_Node_Str");
    }
  }
  Size biggestSize=mParameters.getSupportedPictureSizes().get(0);
  if (biggestSize.width <= videoWidth || biggestSize.height <= videoHeight) {
    if (disMode.equals("String_Node_Str")) {
      Log.v(TAG,"String_Node_Str");
      RotateTextToast.makeText(mActivity,R.string.error_app_unsupported_dis,Toast.LENGTH_LONG).show();
      mParameters.set(CameraSettings.KEY_QC_DIS_MODE,"String_Node_Str");
      mUI.overrideSettings(CameraSettings.KEY_DIS,"String_Node_Str");
      mIsDISEnabled=false;
    }
  }
  String videoRotation=mPreferences.getString(CameraSettings.KEY_VIDEO_ROTATION,mActivity.getString(R.string.pref_camera_video_rotation_default));
  if (isSupported(videoRotation,mParameters.getSupportedVideoRotationValues())) {
    mParameters.setVideoRotation(videoRotation);
  }
  updatePowerMode();
}