/frameworks/base/media/java/android/media/ |
H A D | MediaSync.java | 575 int sizeInBytes, long presentationTimeUs); 574 native_updateQueuedAudioData( int sizeInBytes, long presentationTimeUs) argument
|
H A D | AudioRecord.java | 1053 * @param sizeInBytes the number of requested bytes. 1055 * error codes. The number of bytes will not exceed sizeInBytes. 1065 public int read(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes) { argument 1066 return read(audioData, offsetInBytes, sizeInBytes, READ_BLOCKING); 1077 * @param sizeInBytes the number of requested bytes. 1086 * not to exceed sizeInBytes. 1096 public int read(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes, argument 1107 if ( (audioData == null) || (offsetInBytes < 0 ) || (sizeInBytes < 0) 1108 || (offsetInBytes + sizeInBytes < 0) // detect integer overflow 1109 || (offsetInBytes + sizeInBytes > audioDat 1266 read(@onNull ByteBuffer audioBuffer, int sizeInBytes) argument 1299 read(@onNull ByteBuffer audioBuffer, int sizeInBytes, @ReadMode int readMode) argument 1752 native_read_in_byte_array(byte[] audioData, int offsetInBytes, int sizeInBytes, boolean isBlocking) argument 1761 native_read_in_direct_buffer(Object jBuffer, int sizeInBytes, boolean isBlocking) argument [all...] |
H A D | AudioTrack.java | 1807 * For example, a call to {@link #write(byte[], int, int)} with <code>sizeInBytes</code> 1840 * @param sizeInBytes the number of bytes to write in audioData after the offset. 1844 * not to exceed sizeInBytes. 1856 public int write(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes) { argument 1857 return write(audioData, offsetInBytes, sizeInBytes, WRITE_BLOCKING); 1882 * @param sizeInBytes the number of bytes to write in audioData after the offset. 1892 * not to exceed sizeInBytes. 1902 public int write(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes, argument 1914 if ( (audioData == null) || (offsetInBytes < 0 ) || (sizeInBytes < 0) 1915 || (offsetInBytes + sizeInBytes < 2173 write(@onNull ByteBuffer audioData, int sizeInBytes, @WriteMode int writeMode) argument 2246 write(@onNull ByteBuffer audioData, int sizeInBytes, @WriteMode int writeMode, long timestamp) argument 2785 native_write_byte(byte[] audioData, int offsetInBytes, int sizeInBytes, int format, boolean isBlocking) argument 2797 native_write_native_bytes(Object audioData, int positionInBytes, int sizeInBytes, int format, boolean blocking) argument [all...] |
/frameworks/base/media/jni/ |
H A D | android_media_MediaSync.cpp | 110 int sizeInBytes, int64_t presentationTimeUs) { 111 return mSync->updateQueuedAudioData(sizeInBytes, presentationTimeUs); 258 JNIEnv *env, jobject thiz, jint sizeInBytes, jlong presentationTimeUs) { 265 status_t err = sync->updateQueuedAudioData(sizeInBytes, presentationTimeUs); 109 updateQueuedAudioData( int sizeInBytes, int64_t presentationTimeUs) argument 257 android_media_MediaSync_native_updateQueuedAudioData( JNIEnv *env, jobject thiz, jint sizeInBytes, jlong presentationTimeUs) argument
|
/frameworks/av/media/libstagefright/ |
H A D | MediaSync.cpp | 295 size_t sizeInBytes, int64_t presentationTimeUs) { 296 if (sizeInBytes == 0) { 307 int64_t numFrames = sizeInBytes / mAudioTrack->frameSize(); 294 updateQueuedAudioData( size_t sizeInBytes, int64_t presentationTimeUs) argument
|
/frameworks/base/core/jni/ |
H A D | android_media_AudioRecord.cpp | 522 const size_t sizeInBytes = sizeInSamples * sizeof(*recordBuff); local 524 recordBuff + offsetInSamples, sizeInBytes, isReadBlocking == JNI_TRUE /* blocking */); 536 jobject jBuffer, jint sizeInBytes, 559 capacity < sizeInBytes ? capacity : sizeInBytes, 535 android_media_AudioRecord_readInDirectBuffer(JNIEnv *env, jobject thiz, jobject jBuffer, jint sizeInBytes, jboolean isReadBlocking) argument
|
H A D | android_media_AudioTrack.cpp | 95 bool allocSharedMem(int sizeInBytes) { argument 96 mMemHeap = new MemoryHeapBase(sizeInBytes, 0, "AudioTrack Heap Base"); 100 mMemBase = new MemoryBase(mMemHeap, 0, sizeInBytes); 628 size_t sizeInBytes = sizeInSamples * sizeof(T); local 630 written = track->write(data + offsetInSamples, sizeInBytes, blocking); 637 if ((size_t)sizeInBytes > track->sharedBuffer()->size()) { 638 sizeInBytes = track->sharedBuffer()->size(); 640 memcpy(track->sharedBuffer()->pointer(), data + offsetInSamples, sizeInBytes); 641 written = sizeInBytes; 694 jbyteArray javaBytes, jint byteOffset, jint sizeInBytes, 693 android_media_AudioTrack_write_native_bytes(JNIEnv *env, jobject thiz, jbyteArray javaBytes, jint byteOffset, jint sizeInBytes, jint javaAudioFormat, jboolean isWriteBlocking) argument [all...] |