Home
last modified time | relevance | path

Searched refs:sizeInShorts (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/media/java/android/media/
DAudioRecord.java1139 public int read(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts) { in read() argument
1140 return read(audioData, offsetInShorts, sizeInShorts, READ_BLOCKING); in read()
1169 public int read(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts, in read() argument
1180 if ( (audioData == null) || (offsetInShorts < 0 ) || (sizeInShorts < 0) in read()
1181 || (offsetInShorts + sizeInShorts < 0) // detect integer overflow in read()
1182 || (offsetInShorts + sizeInShorts > audioData.length)) { in read()
1186 return native_read_in_short_array(audioData, offsetInShorts, sizeInShorts, in read()
1757 int offsetInShorts, int sizeInShorts, boolean isBlocking); in native_read_in_short_array() argument
DAudioTrack.java2231 public int write(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts) { in write() argument
2232 return write(audioData, offsetInShorts, sizeInShorts, WRITE_BLOCKING); in write()
2275 public int write(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts, in write() argument
2287 if ( (audioData == null) || (offsetInShorts < 0 ) || (sizeInShorts < 0) in write()
2288 || (offsetInShorts + sizeInShorts < 0) // detect integer overflow in write()
2289 || (offsetInShorts + sizeInShorts > audioData.length)) { in write()
2293 int ret = native_write_short(audioData, offsetInShorts, sizeInShorts, mAudioFormat, in write()
3073 int offsetInShorts, int sizeInShorts, int format, in native_write_short() argument