Home
last modified time | relevance | path

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

/frameworks/av/media/libaudioclient/
DAudioRecord.cpp571 status_t AudioRecord::setPositionUpdatePeriod(uint32_t updatePeriod) in setPositionUpdatePeriod() argument
579 mNewPosition = mProxy->getPosition() + updatePeriod; in setPositionUpdatePeriod()
580 mUpdatePeriod = updatePeriod; in setPositionUpdatePeriod()
589 status_t AudioRecord::getPositionUpdatePeriod(uint32_t *updatePeriod) const in getPositionUpdatePeriod()
591 if (updatePeriod == NULL) { in getPositionUpdatePeriod()
596 *updatePeriod = mUpdatePeriod; in getPositionUpdatePeriod()
1313 uint32_t updatePeriod = mUpdatePeriod; in processAudioBuffer() local
1315 if (updatePeriod > 0 && position >= newPosition) { in processAudioBuffer()
1316 newPosCount = ((position - newPosition).value() / updatePeriod) + 1; in processAudioBuffer()
1317 mNewPosition += updatePeriod * newPosCount; in processAudioBuffer()
[all …]
DAudioTrack.cpp1527 status_t AudioTrack::setPositionUpdatePeriod(uint32_t updatePeriod) in setPositionUpdatePeriod() argument
1535 mNewPosition = updateAndGetPosition_l() + updatePeriod; in setPositionUpdatePeriod()
1536 mUpdatePeriod = updatePeriod; in setPositionUpdatePeriod()
1545 status_t AudioTrack::getPositionUpdatePeriod(uint32_t *updatePeriod) const in getPositionUpdatePeriod()
1550 if (updatePeriod == NULL) { in getPositionUpdatePeriod()
1555 *updatePeriod = mUpdatePeriod; in getPositionUpdatePeriod()
2461 uint32_t updatePeriod = mUpdatePeriod; in processAudioBuffer() local
2463 if (updatePeriod > 0 && position >= newPosition) { in processAudioBuffer()
2464 newPosCount = ((position - newPosition).value() / updatePeriod) + 1; in processAudioBuffer()
2465 mNewPosition += updatePeriod * newPosCount; in processAudioBuffer()
[all …]
/frameworks/av/media/libaudioclient/include/media/
DAudioRecord.h373 status_t setPositionUpdatePeriod(uint32_t updatePeriod);
374 status_t getPositionUpdatePeriod(uint32_t *updatePeriod) const;
DAudioTrack.h746 status_t setPositionUpdatePeriod(uint32_t updatePeriod);
747 status_t getPositionUpdatePeriod(uint32_t *updatePeriod) const;
/frameworks/av/media/libaudioclient/fuzzer/
Daudioflinger_fuzzer.cpp310 uint32_t updatePeriod = {}; in invokeAudioTrack() local
311 track->getPositionUpdatePeriod(&updatePeriod); in invokeAudioTrack()
367 uint32_t updatePeriod = mFdp.ConsumeIntegral<uint32_t>(); in invokeAudioRecord() local
368 record->setPositionUpdatePeriod(updatePeriod); in invokeAudioRecord()
369 record->getPositionUpdatePeriod(&updatePeriod); in invokeAudioRecord()
/frameworks/base/media/java/android/media/
DAudioRecord.java2490 private native final int native_set_pos_update_period(int updatePeriod); in native_set_pos_update_period() argument
DAudioTrack.java4482 private native final int native_set_pos_update_period(int updatePeriod); in native_set_pos_update_period() argument