Home
last modified time | relevance | path

Searched refs:updatePeriod (Results 1 – 7 of 7) sorted by relevance

/frameworks/av/media/libaudioclient/
DAudioRecord.cpp566 status_t AudioRecord::setPositionUpdatePeriod(uint32_t updatePeriod) in setPositionUpdatePeriod() argument
574 mNewPosition = mProxy->getPosition() + updatePeriod; in setPositionUpdatePeriod()
575 mUpdatePeriod = updatePeriod; in setPositionUpdatePeriod()
584 status_t AudioRecord::getPositionUpdatePeriod(uint32_t *updatePeriod) const in getPositionUpdatePeriod()
586 if (updatePeriod == NULL) { in getPositionUpdatePeriod()
591 *updatePeriod = mUpdatePeriod; in getPositionUpdatePeriod()
1230 uint32_t updatePeriod = mUpdatePeriod; in processAudioBuffer() local
1232 if (updatePeriod > 0 && position >= newPosition) { in processAudioBuffer()
1233 newPosCount = ((position - newPosition).value() / updatePeriod) + 1; in processAudioBuffer()
1234 mNewPosition += updatePeriod * newPosCount; in processAudioBuffer()
[all …]
DAudioTrack.cpp1405 status_t AudioTrack::setPositionUpdatePeriod(uint32_t updatePeriod) in setPositionUpdatePeriod() argument
1413 mNewPosition = updateAndGetPosition_l() + updatePeriod; in setPositionUpdatePeriod()
1414 mUpdatePeriod = updatePeriod; in setPositionUpdatePeriod()
1423 status_t AudioTrack::getPositionUpdatePeriod(uint32_t *updatePeriod) const in getPositionUpdatePeriod()
1428 if (updatePeriod == NULL) { in getPositionUpdatePeriod()
1433 *updatePeriod = mUpdatePeriod; in getPositionUpdatePeriod()
2255 uint32_t updatePeriod = mUpdatePeriod; in processAudioBuffer() local
2257 if (updatePeriod > 0 && position >= newPosition) { in processAudioBuffer()
2258 newPosCount = ((position - newPosition).value() / updatePeriod) + 1; in processAudioBuffer()
2259 mNewPosition += updatePeriod * newPosCount; in processAudioBuffer()
[all …]
/frameworks/av/media/libaudioclient/include/media/
DAudioRecord.h362 status_t setPositionUpdatePeriod(uint32_t updatePeriod);
363 status_t getPositionUpdatePeriod(uint32_t *updatePeriod) const;
DAudioTrack.h626 status_t setPositionUpdatePeriod(uint32_t updatePeriod);
627 status_t getPositionUpdatePeriod(uint32_t *updatePeriod) const;
/frameworks/av/media/libaudioclient/fuzzer/
Daudioflinger_fuzzer.cpp283 uint32_t updatePeriod = {}; in invokeAudioTrack() local
284 track->getPositionUpdatePeriod(&updatePeriod); in invokeAudioTrack()
340 uint32_t updatePeriod = mFdp.ConsumeIntegral<uint32_t>(); in invokeAudioRecord() local
341 record->setPositionUpdatePeriod(updatePeriod); in invokeAudioRecord()
342 record->getPositionUpdatePeriod(&updatePeriod); in invokeAudioRecord()
/frameworks/base/media/java/android/media/
DAudioRecord.java2282 private native final int native_set_pos_update_period(int updatePeriod); in native_set_pos_update_period() argument
DAudioTrack.java4303 private native final int native_set_pos_update_period(int updatePeriod); in native_set_pos_update_period() argument