Home
last modified time | relevance | path

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

/base/telephony/sms_mms/utils/
Dsms_common_utils.cpp39 uint16_t dstIdx = 0; in Pack7bitChar() local
42 return dstIdx; in Pack7bitChar()
47 dstIdx = 1; in Pack7bitChar()
50 while (srcIdx < dataLen && dstIdx < packLen) { in Pack7bitChar()
52 packData[dstIdx] = userData[srcIdx]; in Pack7bitChar()
55 dstIdx++; in Pack7bitChar()
61 packData[dstIdx - 1] |= userData[srcIdx] << shift; in Pack7bitChar()
62 packData[dstIdx] = userData[srcIdx] >> (SMS_BYTE_BIT - shift); in Pack7bitChar()
64 dstIdx++; in Pack7bitChar()
67 packData[dstIdx - 1] |= userData[srcIdx] << shift; in Pack7bitChar()
[all …]
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_common_utils.cpp106 uint8_t unpackDataLen, uint8_t &dstIdx) in Unpack7bitChar() argument
116 for (; dstIdx < unpackDataLen; dstIdx++) { in Unpack7bitChar()
123 unpackData[dstIdx] = oneByte & HEX_VALUE_7F; in Unpack7bitChar()
125 dstIdx++; in Unpack7bitChar()
126 if (dstIdx >= unpackDataLen) { in Unpack7bitChar()
139 unpackData[dstIdx] = (oneByte >> shift); in Unpack7bitChar()
140 if (unpackData[dstIdx] != 0) { in Unpack7bitChar()
141 dstIdx++; in Unpack7bitChar()
145 unpackData[dstIdx] = (oneByte >> shift) + (nextByte << (SMS_BYTE_BIT - shift)); in Unpack7bitChar()
146 unpackData[dstIdx] &= HEX_VALUE_7F; in Unpack7bitChar()
/base/telephony/sms_mms/services/sms/include/gsm/
Dgsm_sms_common_utils.h32 uint8_t unpackDataLen, uint8_t &dstIdx);