Home
last modified time | relevance | path

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

/frameworks/base/media/java/android/media/
DAudioRecord.java1237 public int read(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts) { in read() argument
1238 return read(audioData, offsetInShorts, sizeInShorts, READ_BLOCKING); in read()
1267 public int read(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts, in read() argument
1278 if ( (audioData == null) || (offsetInShorts < 0 ) || (sizeInShorts < 0) in read()
1279 || (offsetInShorts + sizeInShorts < 0) // detect integer overflow in read()
1280 || (offsetInShorts + sizeInShorts > audioData.length)) { in read()
1284 return native_read_in_short_array(audioData, offsetInShorts, sizeInShorts, in read()
1944 int offsetInShorts, int sizeInShorts, boolean isBlocking); in native_read_in_short_array() argument
DAudioTrack.java2553 public int write(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts) { in write() argument
2554 return write(audioData, offsetInShorts, sizeInShorts, WRITE_BLOCKING); in write()
2597 public int write(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts, in write() argument
2609 if ( (audioData == null) || (offsetInShorts < 0 ) || (sizeInShorts < 0) in write()
2610 || (offsetInShorts + sizeInShorts < 0) // detect integer overflow in write()
2611 || (offsetInShorts + sizeInShorts > audioData.length)) { in write()
2619 final int ret = native_write_short(audioData, offsetInShorts, sizeInShorts, mAudioFormat, in write()
3614 int offsetInShorts, int sizeInShorts, int format, in native_write_short() argument