Home
last modified time | relevance | path

Searched refs:sizeInBytes (Results 1 – 19 of 19) sorted by relevance

/frameworks/av/media/libaaudio/src/binding/
DSharedMemoryParcelable.cpp42 void SharedMemoryParcelable::setup(int fd, int32_t sizeInBytes) { in setup() argument
44 mSizeInBytes = sizeInBytes; in setup()
101 aaudio_result_t SharedMemoryParcelable::resolve(int32_t offsetInBytes, int32_t sizeInBytes, in resolve() argument
107 } else if ((offsetInBytes + sizeInBytes) > mSizeInBytes) { in resolve()
110 offsetInBytes, sizeInBytes, mSizeInBytes); in resolve()
DSharedMemoryParcelable.h46 void setup(int fd, int32_t sizeInBytes);
53 aaudio_result_t resolve(int32_t offsetInBytes, int32_t sizeInBytes, void **regionAddressPtr);
DSharedRegionParcelable.cpp43 int32_t sizeInBytes) { in setup() argument
46 mSizeInBytes = sizeInBytes; in setup()
DAudioEndpointParcelable.cpp52 int32_t AudioEndpointParcelable::addFileDescriptor(int fd, int32_t sizeInBytes) { in addFileDescriptor() argument
57 mSharedMemories[index].setup(fd, sizeInBytes); in addFileDescriptor()
DSharedRegionParcelable.h40 void setup(int32_t sharedMemoryIndex, int32_t offsetInBytes, int32_t sizeInBytes);
DAudioEndpointParcelable.h50 int32_t addFileDescriptor(int fd, int32_t sizeInBytes);
/frameworks/base/media/java/android/media/
DAudioTrack.java2103 public int write(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes) { in write() argument
2104 return write(audioData, offsetInBytes, sizeInBytes, WRITE_BLOCKING); in write()
2149 public int write(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes, in write() argument
2161 if ( (audioData == null) || (offsetInBytes < 0 ) || (sizeInBytes < 0) in write()
2162 || (offsetInBytes + sizeInBytes < 0) // detect integer overflow in write()
2163 || (offsetInBytes + sizeInBytes > audioData.length)) { in write()
2167 int ret = native_write_byte(audioData, offsetInBytes, sizeInBytes, mAudioFormat, in write()
2420 public int write(@NonNull ByteBuffer audioData, int sizeInBytes, in write() argument
2433 if ( (audioData == null) || (sizeInBytes < 0) || (sizeInBytes > audioData.remaining())) { in write()
2434 Log.e(TAG, "AudioTrack.write() called with invalid size (" + sizeInBytes + ") value"); in write()
[all …]
DAudioRecord.java1066 public int read(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes) { in read() argument
1067 return read(audioData, offsetInBytes, sizeInBytes, READ_BLOCKING); in read()
1097 public int read(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes, in read() argument
1108 if ( (audioData == null) || (offsetInBytes < 0 ) || (sizeInBytes < 0) in read()
1109 || (offsetInBytes + sizeInBytes < 0) // detect integer overflow in read()
1110 || (offsetInBytes + sizeInBytes > audioData.length)) { in read()
1114 return native_read_in_byte_array(audioData, offsetInBytes, sizeInBytes, in read()
1267 public int read(@NonNull ByteBuffer audioBuffer, int sizeInBytes) { in read() argument
1268 return read(audioBuffer, sizeInBytes, READ_BLOCKING); in read()
1300 public int read(@NonNull ByteBuffer audioBuffer, int sizeInBytes, @ReadMode int readMode) { in read() argument
[all …]
DMediaSync.java575 int sizeInBytes, long presentationTimeUs); in native_updateQueuedAudioData() argument
/frameworks/base/core/jni/
Dandroid_media_AudioTrack.cpp99 bool allocSharedMem(int sizeInBytes) { in allocSharedMem() argument
100 mMemHeap = new MemoryHeapBase(sizeInBytes, 0, "AudioTrack Heap Base"); in allocSharedMem()
104 mMemBase = new MemoryBase(mMemHeap, 0, sizeInBytes); in allocSharedMem()
632 size_t sizeInBytes = sizeInSamples * sizeof(T); in writeToTrack() local
634 written = track->write(data + offsetInSamples, sizeInBytes, blocking); in writeToTrack()
641 if ((size_t)sizeInBytes > track->sharedBuffer()->size()) { in writeToTrack()
642 sizeInBytes = track->sharedBuffer()->size(); in writeToTrack()
644 memcpy(track->sharedBuffer()->pointer(), data + offsetInSamples, sizeInBytes); in writeToTrack()
645 written = sizeInBytes; in writeToTrack()
698 jbyteArray javaBytes, jint byteOffset, jint sizeInBytes, in android_media_AudioTrack_write_native_bytes() argument
[all …]
Dandroid_media_AudioRecord.cpp522 const size_t sizeInBytes = sizeInSamples * sizeof(*recordBuff); in android_media_AudioRecord_readInArray() local
524 recordBuff + offsetInSamples, sizeInBytes, isReadBlocking == JNI_TRUE /* blocking */); in android_media_AudioRecord_readInArray()
536 jobject jBuffer, jint sizeInBytes, in android_media_AudioRecord_readInDirectBuffer() argument
559 capacity < sizeInBytes ? capacity : sizeInBytes, in android_media_AudioRecord_readInDirectBuffer()
/frameworks/base/media/jni/
Dandroid_media_MediaSync.h41 status_t updateQueuedAudioData(int sizeInBytes, int64_t presentationTimeUs);
Dandroid_media_MediaSync.cpp110 int sizeInBytes, int64_t presentationTimeUs) { in updateQueuedAudioData() argument
111 return mSync->updateQueuedAudioData(sizeInBytes, presentationTimeUs); in updateQueuedAudioData()
258 JNIEnv *env, jobject thiz, jint sizeInBytes, jlong presentationTimeUs) { in android_media_MediaSync_native_updateQueuedAudioData() argument
265 status_t err = sync->updateQueuedAudioData(sizeInBytes, presentationTimeUs); in android_media_MediaSync_native_updateQueuedAudioData()
/frameworks/av/media/libaaudio/src/utility/
DAAudioUtilities.h162 int32_t *sizeInBytes);
DAAudioUtilities.cpp312 int32_t *sizeInBytes) { in AAudioConvert_framesToBytes() argument
321 *sizeInBytes = numFrames * bytesPerFrame; in AAudioConvert_framesToBytes()
/frameworks/av/media/libstagefright/
DMediaSync.cpp295 size_t sizeInBytes, int64_t presentationTimeUs) { in updateQueuedAudioData() argument
296 if (sizeInBytes == 0) { in updateQueuedAudioData()
307 int64_t numFrames = sizeInBytes / mAudioTrack->frameSize(); in updateQueuedAudioData()
/frameworks/av/media/libstagefright/include/
DMediaSync.h97 size_t sizeInBytes, int64_t presentationTimeUs);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiVendorHalTest.java1076 one.sizeInBytes = 54321; in testRingBufferStatus()
1087 two.sizeInBytes = 300; in testRingBufferStatus()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiVendorHal.java1708 ans.ringBufferByteSize = h.sizeInBytes; in ringBufferStatus()