Home
last modified time | relevance | path

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

/frameworks/av/media/libaaudio/src/binding/
DSharedMemoryParcelable.cpp61 void SharedMemoryParcelable::setup(const unique_fd& fd, int32_t sizeInBytes) { in setup() argument
64 ALOGV("setup(fd = %d -> %d, size = %d) this = %p\n", fd.get(), mFd.get(), sizeInBytes, this); in setup()
65 mSizeInBytes = sizeInBytes; in setup()
91 aaudio_result_t SharedMemoryParcelable::resolve(int32_t offsetInBytes, int32_t sizeInBytes, in resolve() argument
96 } else if ((offsetInBytes + sizeInBytes) > mSizeInBytes) { in resolve()
99 offsetInBytes, sizeInBytes, mSizeInBytes); in resolve()
DSharedRegionParcelable.cpp42 mSizeInBytes(parcelable.sizeInBytes) {} in SharedRegionParcelable()
48 result.sizeInBytes = mSizeInBytes; in parcelable()
54 int32_t sizeInBytes) { in setup() argument
57 mSizeInBytes = sizeInBytes; in setup()
DSharedMemoryParcelable.h53 void setup(const android::base::unique_fd& fd, int32_t sizeInBytes);
56 aaudio_result_t resolve(int32_t offsetInBytes, int32_t sizeInBytes, void **regionAddressPtr);
DAudioEndpointParcelable.cpp75 int32_t sizeInBytes) { in addFileDescriptor() argument
80 mSharedMemories[index].setup(fd, sizeInBytes); in addFileDescriptor()
DSharedRegionParcelable.h40 void setup(int32_t sharedMemoryIndex, int32_t offsetInBytes, int32_t sizeInBytes);
DAudioEndpointParcelable.h53 int32_t addFileDescriptor(const android::base::unique_fd& fd, int32_t sizeInBytes);
/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/base/services/core/java/com/android/server/stats/pull/
DIonMemoryUtil.java103 final long sizeInBytes = Long.parseLong(m.group(2)); in parseProcessIonHeapSizesFromDebugfs() local
110 allocations.totalSizeInBytes += sizeInBytes; in parseProcessIonHeapSizesFromDebugfs()
112 allocations.maxSizeInBytes = Math.max(allocations.maxSizeInBytes, sizeInBytes); in parseProcessIonHeapSizesFromDebugfs()
/frameworks/native/services/memtrackproxy/
DMemtrackProxy.cpp66 if (in.sizeInBytes > std::numeric_limits<int64_t>::max() || in.sizeInBytes < 0) { in translate()
69 out->sizeInBytes = static_cast<int64_t>(in.sizeInBytes); in translate()
/frameworks/base/media/java/android/media/
DAudioTrack.java2972 public int write(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes) { in write() argument
2973 return write(audioData, offsetInBytes, sizeInBytes, WRITE_BLOCKING); in write()
3018 public int write(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes, in write() argument
3030 if ( (audioData == null) || (offsetInBytes < 0 ) || (sizeInBytes < 0) in write()
3031 || (offsetInBytes + sizeInBytes < 0) // detect integer overflow in write()
3032 || (offsetInBytes + sizeInBytes > audioData.length)) { in write()
3040 final int ret = native_write_byte(audioData, offsetInBytes, sizeInBytes, mAudioFormat, in write()
3304 public int write(@NonNull ByteBuffer audioData, int sizeInBytes, in write() argument
3317 if ( (audioData == null) || (sizeInBytes < 0) || (sizeInBytes > audioData.remaining())) { in write()
3318 Log.e(TAG, "AudioTrack.write() called with invalid size (" + sizeInBytes + ") value"); in write()
[all …]
DAudioRecord.java1373 public int read(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes) { in read() argument
1374 return read(audioData, offsetInBytes, sizeInBytes, READ_BLOCKING); in read()
1404 public int read(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes, in read() argument
1416 if ( (audioData == null) || (offsetInBytes < 0 ) || (sizeInBytes < 0) in read()
1417 || (offsetInBytes + sizeInBytes < 0) // detect integer overflow in read()
1418 || (offsetInBytes + sizeInBytes > audioData.length)) { in read()
1422 return native_read_in_byte_array(audioData, offsetInBytes, sizeInBytes, in read()
1577 public int read(@NonNull ByteBuffer audioBuffer, int sizeInBytes) { in read() argument
1578 return read(audioBuffer, sizeInBytes, READ_BLOCKING); in read()
1610 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/libaaudio/src/binding/aidl/aaudio/
DSharedRegion.aidl22 int sizeInBytes;
/frameworks/av/media/libaaudio/src/utility/
DAAudioUtilities.cpp261 int32_t *sizeInBytes) { in AAudioConvert_framesToBytes() argument
262 *sizeInBytes = 0; in AAudioConvert_framesToBytes()
275 *sizeInBytes = numFrames * bytesPerFrame; in AAudioConvert_framesToBytes()
DAAudioUtilities.h59 int32_t *sizeInBytes);
/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/base/core/jni/
Dandroid_media_AudioTrack.cpp87 bool allocSharedMem(int sizeInBytes) { in allocSharedMem() argument
88 mMemHeap = new MemoryHeapBase(sizeInBytes, 0, "AudioTrack Heap Base"); in allocSharedMem()
92 mMemBase = new MemoryBase(mMemHeap, 0, sizeInBytes); in allocSharedMem()
701 size_t sizeInBytes = sizeInSamples * sizeof(T); in writeToTrack() local
703 written = track->write(data + offsetInSamples, sizeInBytes, blocking); in writeToTrack()
710 if ((size_t)sizeInBytes > track->sharedBuffer()->size()) { in writeToTrack()
711 sizeInBytes = track->sharedBuffer()->size(); in writeToTrack()
713 memcpy(track->sharedBuffer()->unsecurePointer(), data + offsetInSamples, sizeInBytes); in writeToTrack()
714 written = sizeInBytes; in writeToTrack()
767 jobject javaByteBuffer, jint byteOffset, jint sizeInBytes, in android_media_AudioTrack_write_native_bytes() argument
[all …]
Dandroid_media_AudioRecord.cpp525 const size_t sizeInBytes = sizeInSamples * sizeof(*recordBuff); in android_media_AudioRecord_readInArray() local
527 recordBuff + offsetInSamples, sizeInBytes, isReadBlocking == JNI_TRUE /* blocking */); in android_media_AudioRecord_readInArray()
539 jobject jBuffer, jint sizeInBytes, in android_media_AudioRecord_readInDirectBuffer() argument
562 capacity < sizeInBytes ? capacity : sizeInBytes, in android_media_AudioRecord_readInDirectBuffer()
/frameworks/base/media/jni/soundpool/
DSound.cpp51 size_t *sizeInBytes) { in decode() argument
188 *sizeInBytes = written; in decode()
/frameworks/av/media/libstagefright/include/media/stagefright/
DMediaSync.h97 size_t sizeInBytes, int64_t presentationTimeUs);
/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/base/libs/hwui/jni/
DShader.cpp287 uniform.fVar->sizeInBytes(), sizeof(float) * autoValues.length()); in RuntimeShader_updateUniforms()