Searched refs:sizeInBytes (Results 1 - 4 of 4) sorted by relevance

/frameworks/base/media/java/android/media/
H A DAudioRecord.java574 * @param sizeInBytes the number of requested bytes.
578 * The number of bytes will not exceed sizeInBytes.
580 public int read(byte[] audioData, int offsetInBytes, int sizeInBytes) { argument
585 if ( (audioData == null) || (offsetInBytes < 0 ) || (sizeInBytes < 0)
586 || (offsetInBytes + sizeInBytes > audioData.length)) {
590 return native_read_in_byte_array(audioData, offsetInBytes, sizeInBytes);
622 * @param sizeInBytes the number of requested bytes.
626 * The number of bytes will not exceed sizeInBytes.
628 public int read(ByteBuffer audioBuffer, int sizeInBytes) { argument
633 if ( (audioBuffer == null) || (sizeInBytes <
813 native_read_in_byte_array(byte[] audioData, int offsetInBytes, int sizeInBytes) argument
819 native_read_in_direct_buffer(Object jBuffer, int sizeInBytes) argument
[all...]
H A DAudioTrack.java961 * @param sizeInBytes the number of bytes to read in audioData after the offset.
967 public int write(byte[] audioData, int offsetInBytes, int sizeInBytes) { argument
970 && (sizeInBytes > 0)) {
978 if ( (audioData == null) || (offsetInBytes < 0 ) || (sizeInBytes < 0)
979 || (offsetInBytes + sizeInBytes > audioData.length)) {
983 return native_write_byte(audioData, offsetInBytes, sizeInBytes, mAudioFormat);
1223 int offsetInBytes, int sizeInBytes, int format);
1222 native_write_byte(byte[] audioData, int offsetInBytes, int sizeInBytes, int format) argument
/frameworks/base/core/jni/
H A Dandroid_media_AudioTrack.cpp85 bool allocSharedMem(int sizeInBytes) { argument
86 mMemHeap = new MemoryHeapBase(sizeInBytes, 0, "AudioTrack Heap Base");
90 mMemBase = new MemoryBase(mMemHeap, 0, sizeInBytes);
512 jint offsetInBytes, jint sizeInBytes) {
517 written = track->write(data + offsetInBytes, sizeInBytes);
521 if ((size_t)sizeInBytes > track->sharedBuffer()->size()) {
522 sizeInBytes = track->sharedBuffer()->size();
524 memcpy(track->sharedBuffer()->pointer(), data + offsetInBytes, sizeInBytes);
525 written = sizeInBytes;
531 if (((size_t)sizeInBytes)*
511 writeToTrack(const sp<AudioTrack>& track, jint audioFormat, jbyte* data, jint offsetInBytes, jint sizeInBytes) argument
550 android_media_AudioTrack_native_write_byte(JNIEnv *env, jobject thiz, jbyteArray javaAudioData, jint offsetInBytes, jint sizeInBytes, jint javaAudioFormat) argument
[all...]
H A Dandroid_media_AudioRecord.cpp368 jint offsetInBytes, jint sizeInBytes) {
397 sizeInBytes > (jint)recorderBuffSize ?
398 (jint)recorderBuffSize : sizeInBytes );
417 jobject jBuffer, jint sizeInBytes) {
439 capacity < sizeInBytes ? capacity : sizeInBytes);
366 android_media_AudioRecord_readInByteArray(JNIEnv *env, jobject thiz, jbyteArray javaAudioData, jint offsetInBytes, jint sizeInBytes) argument
416 android_media_AudioRecord_readInDirectBuffer(JNIEnv *env, jobject thiz, jobject jBuffer, jint sizeInBytes) argument

Completed in 542 milliseconds