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

/frameworks/base/media/java/android/media/
H A DAudioRecord.java684 * @param sizeInBytes the number of requested bytes.
688 * The number of bytes will not exceed sizeInBytes.
690 public int read(byte[] audioData, int offsetInBytes, int sizeInBytes) { argument
695 if ( (audioData == null) || (offsetInBytes < 0 ) || (sizeInBytes < 0)
696 || (offsetInBytes + sizeInBytes < 0) // detect integer overflow
697 || (offsetInBytes + sizeInBytes > audioData.length)) {
701 return native_read_in_byte_array(audioData, offsetInBytes, sizeInBytes);
736 * @param sizeInBytes the number of requested bytes.
740 * The number of bytes will not exceed sizeInBytes.
742 public int read(ByteBuffer audioBuffer, int sizeInBytes) { argument
935 native_read_in_byte_array(byte[] audioData, int offsetInBytes, int sizeInBytes) argument
941 native_read_in_direct_buffer(Object jBuffer, int sizeInBytes) argument
[all...]
H A DAudioTrack.java1235 * @param sizeInBytes the number of bytes to read in audioData after the offset.
1243 public int write(byte[] audioData, int offsetInBytes, int sizeInBytes) { argument
1249 if ( (audioData == null) || (offsetInBytes < 0 ) || (sizeInBytes < 0)
1250 || (offsetInBytes + sizeInBytes < 0) // detect integer overflow
1251 || (offsetInBytes + sizeInBytes > audioData.length)) {
1255 int ret = native_write_byte(audioData, offsetInBytes, sizeInBytes, mAudioFormat,
1396 * @param sizeInBytes number of bytes to write.
1407 public int write(ByteBuffer audioData, int sizeInBytes, argument
1420 if ( (audioData == null) || (sizeInBytes < 0) || (sizeInBytes > audioDat
1651 native_write_byte(byte[] audioData, int offsetInBytes, int sizeInBytes, int format, boolean isBlocking) argument
1662 native_write_native_bytes(Object audioData, int positionInBytes, int sizeInBytes, int format, boolean blocking) argument
[all...]
/frameworks/base/core/jni/
H A Dandroid_media_AudioTrack.cpp89 bool allocSharedMem(int sizeInBytes) { argument
90 mMemHeap = new MemoryHeapBase(sizeInBytes, 0, "AudioTrack Heap Base");
94 mMemBase = new MemoryBase(mMemHeap, 0, sizeInBytes);
515 jint offsetInBytes, jint sizeInBytes, bool blocking = true) {
520 written = track->write(data + offsetInBytes, sizeInBytes, blocking);
533 if ((size_t)sizeInBytes > track->sharedBuffer()->size()) {
534 sizeInBytes = track->sharedBuffer()->size();
536 memcpy(track->sharedBuffer()->pointer(), data + offsetInBytes, sizeInBytes);
537 written = sizeInBytes;
545 if (((size_t)sizeInBytes)*
514 writeToTrack(const sp<AudioTrack>& track, jint audioFormat, const jbyte* data, jint offsetInBytes, jint sizeInBytes, bool blocking = true) argument
564 android_media_AudioTrack_write_byte(JNIEnv *env, jobject thiz, jbyteArray javaAudioData, jint offsetInBytes, jint sizeInBytes, jint javaAudioFormat, jboolean isWriteBlocking) argument
607 android_media_AudioTrack_write_native_bytes(JNIEnv *env, jobject thiz, jbyteArray javaBytes, jint byteOffset, jint sizeInBytes, jint javaAudioFormat, jboolean isWriteBlocking) argument
[all...]
H A Dandroid_media_AudioRecord.cpp363 jint offsetInBytes, jint sizeInBytes) {
392 sizeInBytes > (jint)recorderBuffSize ?
393 (jint)recorderBuffSize : sizeInBytes );
434 const size_t sizeInBytes = sizeInShorts * sizeof(short); local
436 sizeInBytes > recorderBuffSize ?
437 recorderBuffSize : sizeInBytes);
451 jobject jBuffer, jint sizeInBytes) {
473 capacity < sizeInBytes ? capacity : sizeInBytes);
361 android_media_AudioRecord_readInByteArray(JNIEnv *env, jobject thiz, jbyteArray javaAudioData, jint offsetInBytes, jint sizeInBytes) argument
450 android_media_AudioRecord_readInDirectBuffer(JNIEnv *env, jobject thiz, jobject jBuffer, jint sizeInBytes) argument

Completed in 85 milliseconds