Home
last modified time | relevance | path

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

/frameworks/av/media/libaaudio/src/binding/
DSharedMemoryParcelable.cpp44 void SharedMemoryParcelable::setup(const unique_fd& fd, int32_t sizeInBytes) { in setup() argument
46 ALOGV("setup(fd = %d -> %d, size = %d) this = %p\n", fd.get(), mFd.get(), sizeInBytes, this); in setup()
47 mSizeInBytes = sizeInBytes; in setup()
114 aaudio_result_t SharedMemoryParcelable::resolve(int32_t offsetInBytes, int32_t sizeInBytes, in resolve() argument
119 } else if ((offsetInBytes + sizeInBytes) > mSizeInBytes) { in resolve()
122 offsetInBytes, sizeInBytes, mSizeInBytes); in resolve()
DSharedMemoryParcelable.h50 void setup(const android::base::unique_fd& fd, int32_t sizeInBytes);
57 aaudio_result_t resolve(int32_t offsetInBytes, int32_t sizeInBytes, void **regionAddressPtr);
DSharedRegionParcelable.cpp44 int32_t sizeInBytes) { in setup() argument
47 mSizeInBytes = sizeInBytes; in setup()
DAudioEndpointParcelable.cpp54 int32_t sizeInBytes) { in addFileDescriptor() argument
59 mSharedMemories[index].setup(fd, sizeInBytes); in addFileDescriptor()
DSharedRegionParcelable.h40 void setup(int32_t sharedMemoryIndex, int32_t offsetInBytes, int32_t sizeInBytes);
DAudioEndpointParcelable.h51 int32_t addFileDescriptor(const android::base::unique_fd& fd, int32_t sizeInBytes);
/frameworks/base/media/java/android/media/
DAudioTrack.java2445 public int write(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes) { in write() argument
2446 return write(audioData, offsetInBytes, sizeInBytes, WRITE_BLOCKING); in write()
2491 public int write(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes, in write() argument
2503 if ( (audioData == null) || (offsetInBytes < 0 ) || (sizeInBytes < 0) in write()
2504 || (offsetInBytes + sizeInBytes < 0) // detect integer overflow in write()
2505 || (offsetInBytes + sizeInBytes > audioData.length)) { in write()
2513 final int ret = native_write_byte(audioData, offsetInBytes, sizeInBytes, mAudioFormat, in write()
2774 public int write(@NonNull ByteBuffer audioData, int sizeInBytes, in write() argument
2787 if ( (audioData == null) || (sizeInBytes < 0) || (sizeInBytes > audioData.remaining())) { in write()
2788 Log.e(TAG, "AudioTrack.write() called with invalid size (" + sizeInBytes + ") value"); in write()
[all …]
DAudioRecord.java1164 public int read(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes) { in read() argument
1165 return read(audioData, offsetInBytes, sizeInBytes, READ_BLOCKING); in read()
1195 public int read(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes, in read() argument
1206 if ( (audioData == null) || (offsetInBytes < 0 ) || (sizeInBytes < 0) in read()
1207 || (offsetInBytes + sizeInBytes < 0) // detect integer overflow in read()
1208 || (offsetInBytes + sizeInBytes > audioData.length)) { in read()
1212 return native_read_in_byte_array(audioData, offsetInBytes, sizeInBytes, in read()
1365 public int read(@NonNull ByteBuffer audioBuffer, int sizeInBytes) { in read() argument
1366 return read(audioBuffer, sizeInBytes, READ_BLOCKING); in read()
1398 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/av/media/libaudiohal/impl/
DStreamPowerLog.h72 void log(const void *buffer, size_t sizeInBytes) const { in log() argument
75 mPowerLog, buffer, sizeInBytes / mFrameSize, audio_utils_get_real_time_ns()); in log()
/frameworks/av/media/libaaudio/src/utility/
DAAudioUtilities.cpp239 int32_t *sizeInBytes) { in AAudioConvert_framesToBytes() argument
240 *sizeInBytes = 0; in AAudioConvert_framesToBytes()
253 *sizeInBytes = numFrames * bytesPerFrame; in AAudioConvert_framesToBytes()
DAAudioUtilities.h59 int32_t *sizeInBytes);
/frameworks/base/core/jni/
Dandroid_media_AudioTrack.cpp95 bool allocSharedMem(int sizeInBytes) { in allocSharedMem() argument
96 mMemHeap = new MemoryHeapBase(sizeInBytes, 0, "AudioTrack Heap Base"); in allocSharedMem()
100 mMemBase = new MemoryBase(mMemHeap, 0, sizeInBytes); in allocSharedMem()
640 size_t sizeInBytes = sizeInSamples * sizeof(T); in writeToTrack() local
642 written = track->write(data + offsetInSamples, sizeInBytes, blocking); in writeToTrack()
649 if ((size_t)sizeInBytes > track->sharedBuffer()->size()) { in writeToTrack()
650 sizeInBytes = track->sharedBuffer()->size(); in writeToTrack()
652 memcpy(track->sharedBuffer()->pointer(), data + offsetInSamples, sizeInBytes); in writeToTrack()
653 written = sizeInBytes; in writeToTrack()
706 jobject javaByteBuffer, jint byteOffset, jint sizeInBytes, in android_media_AudioTrack_write_native_bytes() argument
[all …]
Dandroid_media_AudioRecord.cpp520 const size_t sizeInBytes = sizeInSamples * sizeof(*recordBuff); in android_media_AudioRecord_readInArray() local
522 recordBuff + offsetInSamples, sizeInBytes, isReadBlocking == JNI_TRUE /* blocking */); in android_media_AudioRecord_readInArray()
534 jobject jBuffer, jint sizeInBytes, in android_media_AudioRecord_readInDirectBuffer() argument
557 capacity < sizeInBytes ? capacity : sizeInBytes, in android_media_AudioRecord_readInDirectBuffer()
/frameworks/base/services/core/java/com/android/server/am/
DMemoryStatUtil.java297 final long sizeInBytes = Long.parseLong(m.group(2)); in parseProcessIonHeapSizesFromDebugfs() local
304 allocations.totalSizeInBytes += sizeInBytes; in parseProcessIonHeapSizesFromDebugfs()
306 allocations.maxSizeInBytes = Math.max(allocations.maxSizeInBytes, sizeInBytes); in parseProcessIonHeapSizesFromDebugfs()
/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/libstagefright/
DMediaSync.cpp298 size_t sizeInBytes, int64_t presentationTimeUs) { in updateQueuedAudioData() argument
299 if (sizeInBytes == 0) { in updateQueuedAudioData()
310 int64_t numFrames = sizeInBytes / mAudioTrack->frameSize(); in updateQueuedAudioData()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaSync.h97 size_t sizeInBytes, int64_t presentationTimeUs);
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiVendorHalTest.java1411 one.sizeInBytes = 54321; in testRingBufferStatus()
1422 two.sizeInBytes = 300; in testRingBufferStatus()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DWifiVendorHal.java1600 ans.ringBufferByteSize = h.sizeInBytes; in ringBufferStatus()