Home
last modified time | relevance | path

Searched refs:offsetInBytes (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/media/java/android/media/
DAudioRecord.java561 public int read(byte[] audioData, int offsetInBytes, int sizeInBytes) { in read() argument
566 if ( (audioData == null) || (offsetInBytes < 0 ) || (sizeInBytes < 0) in read()
567 || (offsetInBytes + sizeInBytes > audioData.length)) { in read()
571 return native_read_in_byte_array(audioData, offsetInBytes, sizeInBytes); in read()
795 int offsetInBytes, int sizeInBytes); in native_read_in_byte_array() argument
DAudioTrack.java909 public int write(byte[] audioData,int offsetInBytes, int sizeInBytes) { in write() argument
920 if ( (audioData == null) || (offsetInBytes < 0 ) || (sizeInBytes < 0) in write()
921 || (offsetInBytes + sizeInBytes > audioData.length)) { in write()
925 return native_write_byte(audioData, offsetInBytes, sizeInBytes, mAudioFormat); in write()
1165 int offsetInBytes, int sizeInBytes, int format); in native_write_byte() argument
/frameworks/base/core/jni/
Dandroid_media_AudioTrack.cpp484 jint offsetInBytes, jint sizeInBytes) { in writeToTrack() argument
489 written = pTrack->write(data + offsetInBytes, sizeInBytes); in writeToTrack()
496 memcpy(pTrack->sharedBuffer()->pointer(), data + offsetInBytes, sizeInBytes); in writeToTrack()
508 const int8_t *src = (const int8_t *)(data + offsetInBytes); in writeToTrack()
524 jint offsetInBytes, jint sizeInBytes, in android_media_AudioTrack_native_write() argument
555 jint written = writeToTrack(lpTrack, javaAudioFormat, cAudioData, offsetInBytes, sizeInBytes); in android_media_AudioTrack_native_write()
Dandroid_media_AudioRecord.cpp327 jint offsetInBytes, jint sizeInBytes) { in android_media_AudioRecord_readInByteArray() argument
358 ssize_t readSize = lpRecorder->read(recordBuff + offsetInBytes, in android_media_AudioRecord_readInByteArray()