Loading core/java/android/hardware/SerialPort.java +6 −2 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 Loading media/java/android/media/AudioRecord.java +2 −0 Original line number Diff line number Diff line Loading @@ -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} Loading Loading
core/java/android/hardware/SerialPort.java +6 −2 Original line number Diff line number Diff line Loading @@ -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 Loading @@ -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 Loading
media/java/android/media/AudioRecord.java +2 −0 Original line number Diff line number Diff line Loading @@ -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} Loading