Searched defs:sizeInShorts (Results 1 - 4 of 4) sorted by relevance

/frameworks/base/core/jni/
H A Dandroid_media_AudioRecord.cpp338 jint offsetInShorts, jint sizeInShorts) {
342 offsetInShorts*2, sizeInShorts*2)
336 android_media_AudioRecord_readInShortArray(JNIEnv *env, jobject thiz, jshortArray javaAudioData, jint offsetInShorts, jint sizeInShorts) argument
H A Dandroid_media_AudioTrack.cpp520 jint offsetInShorts, jint sizeInShorts,
524 offsetInShorts*2, sizeInShorts*2,
518 android_media_AudioTrack_native_write_short(JNIEnv *env, jobject thiz, jshortArray javaAudioData, jint offsetInShorts, jint sizeInShorts, jint javaAudioFormat) argument
/frameworks/base/media/java/android/media/
H A DAudioRecord.java558 * @param sizeInShorts the number of requested shorts.
562 * The number of shorts will not exceed sizeInShorts.
564 public int read(short[] audioData, int offsetInShorts, int sizeInShorts) { argument
569 if ( (audioData == null) || (offsetInShorts < 0 ) || (sizeInShorts < 0)
570 || (offsetInShorts + sizeInShorts > audioData.length)) {
574 return native_read_in_short_array(audioData, offsetInShorts, sizeInShorts);
776 int offsetInShorts, int sizeInShorts);
775 native_read_in_short_array(short[] audioData, int offsetInShorts, int sizeInShorts) argument
H A DAudioTrack.java861 * @param sizeInShorts the number of bytes to read in audioData after the offset.
867 public int write(short[] audioData, int offsetInShorts, int sizeInShorts) { argument
870 && (sizeInShorts > 0)) {
878 if ( (audioData == null) || (offsetInShorts < 0 ) || (sizeInShorts < 0)
879 || (offsetInShorts + sizeInShorts > audioData.length)) {
883 return native_write_short(audioData, offsetInShorts, sizeInShorts, mAudioFormat);
1033 int offsetInShorts, int sizeInShorts, int format);
1032 native_write_short(short[] audioData, int offsetInShorts, int sizeInShorts, int format) argument

Completed in 1977 milliseconds