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

Commit ee88bc8a authored by Glenn Kasten's avatar Glenn Kasten Committed by Android (Google) Code Review
Browse files

Merge "Document that ByteBuffer position not updated"

parents 67821025 cfde15d7
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -82,7 +82,9 @@ public class SerialPort {
    }

    /**
     * Reads data into the provided buffer
     * Reads data into the provided buffer.
     * Note that the value returned by {@link java.nio.Buffer#position()} on this buffer is
     * unchanged after a call to this method.
     *
     * @param buffer to read into
     * @return number of bytes read
@@ -98,7 +100,9 @@ public class SerialPort {
    }

    /**
     * Writes data from provided buffer
     * Writes data from provided buffer.
     * Note that the value returned by {@link java.nio.Buffer#position()} on this buffer is
     * unchanged after a call to this method.
     *
     * @param buffer to write
     * @param length number of bytes to write
+2 −0
Original line number Diff line number Diff line
@@ -615,6 +615,8 @@ public class AudioRecord
    /**
     * Reads audio data from the audio hardware for recording into a direct buffer. If this buffer
     * is not a direct buffer, this method will always return 0.
     * Note that the value returned by {@link java.nio.Buffer#position()} on this buffer is
     * unchanged after a call to this method.
     * @param audioBuffer the direct buffer to which the recorded audio data is written.
     * @param sizeInBytes the number of requested bytes.
     * @return the number of bytes that were read or or {@link #ERROR_INVALID_OPERATION}