Home
last modified time | relevance | path

Searched refs:srcIdx (Results 1 – 3 of 3) sorted by relevance

/base/telephony/sms_mms/utils/
Dsms_common_utils.cpp47 uint16_t srcIdx = 0; in Pack7bitChar() local
48 while (srcIdx < dataLen && dstIdx < packLen) { in Pack7bitChar()
50 packData[dstIdx] = userData[srcIdx]; in Pack7bitChar()
52 srcIdx++; in Pack7bitChar()
54 if (srcIdx >= dataLen) { in Pack7bitChar()
59 packData[dstIdx - 1] |= userData[srcIdx] << shift; in Pack7bitChar()
60 packData[dstIdx] = userData[srcIdx] >> (SMS_BYTE_BIT - shift); in Pack7bitChar()
61 srcIdx++; in Pack7bitChar()
65 packData[dstIdx - 1] |= userData[srcIdx] << shift; in Pack7bitChar()
67 srcIdx++; in Pack7bitChar()
[all …]
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_common_utils.cpp42 uint8_t srcIdx = 0; in Pack7bitChar() local
43 while (srcIdx < dataLen) { in Pack7bitChar()
45 if (!buffer.WriteByte(userData[srcIdx])) { in Pack7bitChar()
50 srcIdx++; in Pack7bitChar()
51 if (srcIdx >= dataLen) { in Pack7bitChar()
56 if (!Pack7bitCharPartData(buffer, userData, srcIdx, shift)) { in Pack7bitChar()
61 srcIdx++; in Pack7bitChar()
68 oneByte |= (userData[srcIdx] << shift); in Pack7bitChar()
73 srcIdx++; in Pack7bitChar()
81 SmsWriteBuffer &buffer, const uint8_t *userData, uint8_t &srcIdx, uint8_t &shift) in Pack7bitCharPartData() argument
[all …]
/base/telephony/sms_mms/services/sms/include/gsm/
Dgsm_sms_common_utils.h38 …bool Pack7bitCharPartData(SmsWriteBuffer &buffer, const uint8_t *userData, uint8_t &srcIdx, uint8_…