Home
last modified time | relevance | path

Searched refs:audioData (Results 1 – 25 of 25) sorted by relevance

/frameworks/base/core/java/android/companion/virtual/audio/
DAudioCapture.java112 public int read(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes) { in read() argument
113 return read(audioData, offsetInBytes, sizeInBytes, READ_BLOCKING); in read()
117 public int read(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes, in read() argument
122 sizeRead = mAudioRecord.read(audioData, offsetInBytes, sizeInBytes, readMode); in read()
150 public int read(@NonNull float[] audioData, int offsetInFloats, int sizeInFloats, in read() argument
155 sizeRead = mAudioRecord.read(audioData, offsetInFloats, sizeInFloats, readMode); in read()
164 public int read(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts) { in read() argument
165 return read(audioData, offsetInShorts, sizeInShorts, READ_BLOCKING); in read()
169 public int read(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts, in read() argument
174 sizeRead = mAudioRecord.read(audioData, offsetInShorts, sizeInShorts, readMode); in read()
DAudioInjection.java121 public int write(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes) { in write() argument
122 return write(audioData, offsetInBytes, sizeInBytes, WRITE_BLOCKING); in write()
126 public int write(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes, in write() argument
131 sizeWrite = mAudioTrack.write(audioData, offsetInBytes, sizeInBytes, writeMode); in write()
167 public int write(@NonNull float[] audioData, int offsetInFloats, int sizeInFloats, in write() argument
172 sizeWrite = mAudioTrack.write(audioData, offsetInFloats, sizeInFloats, writeMode); in write()
181 public int write(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts) { in write() argument
182 return write(audioData, offsetInShorts, sizeInShorts, WRITE_BLOCKING); in write()
186 public int write(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts, in write() argument
191 sizeWrite = mAudioTrack.write(audioData, offsetInShorts, sizeInShorts, writeMode); in write()
/frameworks/base/media/java/android/media/
DAudioTrack.java3151 public int write(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes) { in write() argument
3152 return write(audioData, offsetInBytes, sizeInBytes, WRITE_BLOCKING); in write()
3197 public int write(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes, in write() argument
3209 if ( (audioData == null) || (offsetInBytes < 0 ) || (sizeInBytes < 0) in write()
3211 || (offsetInBytes + sizeInBytes > audioData.length)) { in write()
3219 final int ret = native_write_byte(audioData, offsetInBytes, sizeInBytes, mAudioFormat, in write()
3266 public int write(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts) { in write() argument
3267 return write(audioData, offsetInShorts, sizeInShorts, WRITE_BLOCKING); in write()
3310 public int write(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts, in write() argument
3325 if ( (audioData == null) || (offsetInShorts < 0 ) || (sizeInShorts < 0) in write()
[all …]
DAudioRecord.java1581 public int read(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes) { in read() argument
1582 return read(audioData, offsetInBytes, sizeInBytes, READ_BLOCKING); in read()
1612 public int read(@NonNull byte[] audioData, int offsetInBytes, int sizeInBytes, in read() argument
1624 if ( (audioData == null) || (offsetInBytes < 0 ) || (sizeInBytes < 0) in read()
1626 || (offsetInBytes + sizeInBytes > audioData.length)) { in read()
1630 return native_read_in_byte_array(audioData, offsetInBytes, sizeInBytes, in read()
1655 public int read(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts) { in read() argument
1656 return read(audioData, offsetInShorts, sizeInShorts, READ_BLOCKING); in read()
1685 public int read(@NonNull short[] audioData, int offsetInShorts, int sizeInShorts, in read() argument
1699 if ( (audioData == null) || (offsetInShorts < 0 ) || (sizeInShorts < 0) in read()
[all …]
DMediaSync.java508 @NonNull ByteBuffer audioData, int bufferId, long presentationTimeUs) { in queueAudio()
515 mAudioBuffers.add(new AudioBuffer(audioData, bufferId, presentationTimeUs)); in queueAudio()
/frameworks/av/media/libaaudio/tests/
Dtest_aaudio_monkey.cpp45 void *audioData,
188 void *audioData, in renderAudio() argument
196 int16_t *audioBuffer = (int16_t *) audioData; in renderAudio()
206 float *audioBuffer = (float *) audioData; in renderAudio()
236 void *audioData, in AAudioMonkeyDataCallback() argument
245 return monkey->renderAudio(stream, audioData, numFrames); in AAudioMonkeyDataCallback()
Dtest_interference.cpp35 void *audioData, in MyDataCallbackProc() argument
41 memset(audioData, 0, numSamples * sizeof(int16_t)); in MyDataCallbackProc()
43 memset(audioData, 0, numSamples * sizeof(float)); in MyDataCallbackProc()
Dtest_open_params.cpp32 void *audioData, in MyDataCallbackProc() argument
37 (void) audioData; in MyDataCallbackProc()
Dtest_bad_disconnect.cpp49 void *audioData, in s_myDataCallbackProc() argument
53 (void) audioData; in s_myDataCallbackProc()
Dtest_various.cpp34 void *audioData, in NoopDataCallbackProc() argument
45 float * const floatData = reinterpret_cast<float *>(audioData); in NoopDataCallbackProc()
717 void *audioData, in CallbackOnceProc() argument
721 (void) audioData; in CallbackOnceProc()
854 void *audioData, in DangerousDataCallbackProc() argument
856 (void) audioData; in DangerousDataCallbackProc()
Dtest_steal_exclusive.cpp83 void *audioData,
310 void *audioData, in s_myDataCallbackProc() argument
314 return engine->onAudioReady(audioData, numFrames); in s_myDataCallbackProc()
Dtest_return_stop.cpp66 void *audioData, in s_myDataCallbackProc() argument
69 (void) audioData; in s_myDataCallbackProc()
Dtest_timestamps.cpp104 void *audioData __unused, in timestampDataCallbackProc()
/frameworks/av/media/libaaudio/examples/utils/
DAAudioSimplePlayer.h346 void *audioData, in SimplePlayerDataCallbackProc() argument
404 int16_t *audioBuffer = (int16_t *) audioData; in SimplePlayerDataCallbackProc()
412 float *audioBuffer = (float *) audioData; in SimplePlayerDataCallbackProc()
420 uint8_t *audioBuffer = (uint8_t *) audioData; in SimplePlayerDataCallbackProc()
429 int32_t *audioBuffer = (int32_t *) audioData; in SimplePlayerDataCallbackProc()
DAAudioSimpleRecorder.h254 void *audioData, in SimpleRecorderDataCallbackProc() argument
270 int16_t *audioBuffer = (int16_t *) audioData; in SimpleRecorderDataCallbackProc()
282 float *audioBuffer = (float *) audioData; in SimpleRecorderDataCallbackProc()
/frameworks/base/cmds/bootanimation/
Daudioplay.cpp350 if (part.audioData != nullptr) { in init()
365 initAudioThread = new InitAudioThread(partWithAudio->audioData, in init()
372 if (playNumber == 0 && part.audioData && playSoundsAllowed()) { in playPart()
379 audioplay::playClip(part.audioData, part.audioLength); in playPart()
DBootAnimation.h92 uint8_t* audioData; member
DBootAnimation.cpp1266 part.audioData = nullptr; in parseAnimationDesc()
1284 part.audioData = nullptr; in parseAnimationDesc()
1346 part.audioData = (uint8_t *)map->getDataPtr(); in preloadZip()
/frameworks/av/media/libaaudio/src/legacy/
DAudioStreamRecord.cpp321 const void * AudioStreamRecord::maybeConvertDeviceData(const void *audioData, int32_t numFrames) { in maybeConvertDeviceData() argument
331 (const int16_t *) audioData, in maybeConvertDeviceData()
335 return audioData; in maybeConvertDeviceData()
DAudioStreamRecord.h76 const void * maybeConvertDeviceData(const void *audioData, int32_t numFrames) override;
/frameworks/av/media/libaaudio/src/core/
DAudioStream.h359 aaudio_data_callback_result_t maybeCallDataCallback(void *audioData, int32_t numFrames);
664 virtual const void * maybeConvertDeviceData(const void *audioData, int32_t /*numFrames*/) { in maybeConvertDeviceData() argument
665 return audioData; in maybeConvertDeviceData()
DAudioStream.cpp573 aaudio_data_callback_result_t AudioStream::maybeCallDataCallback(void *audioData, in maybeCallDataCallback() argument
584 audioData, in maybeCallDataCallback()
/frameworks/av/media/libaaudio/examples/loopback/src/
Dloopback.cpp185 void *audioData, in MyDataCallbackProc() argument
191 float *outputData = (float *) audioData; in MyDataCallbackProc()
210 memset(audioData, 0 /* value */, numBytes); in MyDataCallbackProc()
/frameworks/av/media/libaaudio/src/client/
DAudioStreamInternal.cpp845 uint8_t* audioData = (uint8_t*)buffer; in processData() local
855 aaudio_result_t framesProcessed = processDataNow(audioData, framesLeft, in processData()
862 audioData += framesProcessed * getBytesPerFrame(); in processData()
/frameworks/av/media/libaaudio/include/aaudio/
DAAudio.h1360 void* _Nonnull audioData,