Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 28ae70ce authored by Brad Fitzpatrick's avatar Brad Fitzpatrick Committed by Android Git Automerger
Browse files

am 23a813e1: am 996de2dd: Merge "Avoid using String.format in MediaRecorder"

* commit '23a813e1':
  Avoid using String.format in MediaRecorder
parents e73a710b 23a813e1
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -343,7 +343,7 @@ public class MediaRecorder
            degrees != 270) {
            throw new IllegalArgumentException("Unsupported angle: " + degrees);
        }
        setParameter(String.format("video-param-rotation-angle-degrees=%d", degrees));
        setParameter("video-param-rotation-angle-degrees=" + degrees);
    }

    /**
@@ -463,7 +463,7 @@ public class MediaRecorder
        if (samplingRate <= 0) {
            throw new IllegalArgumentException("Audio sampling rate is not positive");
        }
        setParameter(String.format("audio-param-sampling-rate=%d", samplingRate));
        setParameter("audio-param-sampling-rate=" + samplingRate);
    }

    /**
@@ -478,7 +478,7 @@ public class MediaRecorder
        if (numChannels <= 0) {
            throw new IllegalArgumentException("Number of channels is not positive");
        }
        setParameter(String.format("audio-param-number-of-channels=%d", numChannels));
        setParameter("audio-param-number-of-channels=" + numChannels);
    }

    /**
@@ -494,7 +494,7 @@ public class MediaRecorder
        if (bitRate <= 0) {
            throw new IllegalArgumentException("Audio encoding bit rate is not positive");
        }
        setParameter(String.format("audio-param-encoding-bitrate=%d", bitRate));
        setParameter("audio-param-encoding-bitrate=" + bitRate);
    }

    /**
@@ -510,7 +510,7 @@ public class MediaRecorder
        if (bitRate <= 0) {
            throw new IllegalArgumentException("Video encoding bit rate is not positive");
        }
        setParameter(String.format("video-param-encoding-bitrate=%d", bitRate));
        setParameter("video-param-encoding-bitrate=" + bitRate);
    }

    /**