Searched refs:readIndex (Results 1 – 4 of 4) sorted by relevance
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/common/src/ |
H A D | attribute.c | 110 if (msg.len <= *readIndex) { in ReadDataFromMsg() 115 if (msg.len - *readIndex < retData->len) { in ReadDataFromMsg() 125 *readIndex += retData->len; in ReadDataFromMsg() 133 ResultCode result = ReadDataFromMsg(msg, readIndex, &uint8Data); in ReadUint32FromMsg() 178 if (msg.len <= (*readIndex)) { in CheckAddReadIndex() 183 if ((msg.len - (*readIndex)) < length) { in CheckAddReadIndex() 188 (*readIndex) += length; in CheckAddReadIndex() 195 uint32_t readIndex = 0; in ParseAttributeSerializedMsgInner() local 196 while (readIndex < msg.len) { in ParseAttributeSerializedMsgInner() 198 ResultCode readTypeResult = ReadUint32FromMsg(msg, &readIndex, &type); in ParseAttributeSerializedMsgInner() [all …]
|
/ohos5.0/drivers/peripheral/user_auth/hdi_service/utils/src/ |
H A D | attribute.c | 129 if (msg.len <= *readIndex) { in ReadDataFromMsg() 134 if (msg.len - *readIndex < retData->len) { in ReadDataFromMsg() 144 *readIndex += retData->len; in ReadDataFromMsg() 152 ResultCode result = ReadDataFromMsg(msg, readIndex, &uint8Data); in ReadUint32FromMsg() 198 uint32_t readIndex = 0; in ParseAttributeSerializedMsgInner() local 199 while (readIndex < msg.len) { in ParseAttributeSerializedMsgInner() 201 ResultCode readTypeResult = ReadUint32FromMsg(msg, &readIndex, &type); in ParseAttributeSerializedMsgInner() 205 ResultCode readLengthResult = ReadUint32FromMsg(msg, &readIndex, &length); in ParseAttributeSerializedMsgInner() 241 uint32_t readIndex = 0; in ParseMultiDataSerializedMsg() local 243 while (readIndex < msg.len) { in ParseMultiDataSerializedMsg() [all …]
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/server/src/ |
H A D | pa_renderer_stream_impl.cpp | 462 uint64_t readIndex = pa_bytes_to_usec(info->read_index, sampleSpec); in GetCurrentPosition() local 463 framePosition = readIndex * sampleSpec->rate / AUDIO_US_PER_S; in GetCurrentPosition() 482 framePosition, readIndex, timestamp, algorithmLatency, a2dpOffloadLatency); in GetCurrentPosition() 521 uint64_t readIndex = pa_bytes_to_usec(info->read_index < 0 ? 0 : info->read_index, sampleSpec); in GetLatency() local 523 pa_usec_t usec = readIndex >= info->sink_usec ? readIndex - info->sink_usec : 0; in GetLatency() 534 …PRIu64, latency, paLatency, algorithmLatency, a2dpOffloadLatency, writeIndex, readIndex, info->sin… in GetLatency() 1034 uint64_t readIndex = pa_bytes_to_usec(info->read_index, sampleSpec); in GetOffloadApproximatelyCacheTime() local 1039 uint64_t cacheTimeInPulse = writeIndex > readIndex ? writeIndex - readIndex : 0; in GetOffloadApproximatelyCacheTime() 1044 offloadTsLast_ = readIndex; in GetOffloadApproximatelyCacheTime() 1054 int64_t readIndexInt = static_cast<int64_t>(readIndex); in GetOffloadApproximatelyCacheTime()
|
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/client/src/ |
H A D | renderer_in_client.cpp | 631 uint64_t readIndex = 0; in GetAudioPosition() local 635 int32_t ret = ipcStream_->GetAudioPosition(readIndex, timestampVal, latency); in GetAudioPosition() 637 uint64_t framePosition = readIndex > lastFlushReadIndex_ ? readIndex - lastFlushReadIndex_ : 0; in GetAudioPosition()
|