Searched refs:packData (Results 1 – 3 of 3) sorted by relevance
/base/telephony/sms_mms/utils/ |
D | sms_common_utils.cpp | 35 … const uint8_t *userData, uint16_t dataLen, uint8_t fillBits, uint8_t *packData, uint16_t packLen) in Pack7bitChar() argument 38 if (userData == nullptr || packData == nullptr || dataLen > MAX_GSM_7BIT_DATA_LEN) { in Pack7bitChar() 50 packData[dstIdx] = userData[srcIdx]; in Pack7bitChar() 59 packData[dstIdx - 1] |= userData[srcIdx] << shift; in Pack7bitChar() 60 packData[dstIdx] = userData[srcIdx] >> (SMS_BYTE_BIT - shift); in Pack7bitChar() 65 packData[dstIdx - 1] |= userData[srcIdx] << shift; in Pack7bitChar()
|
D | sms_common_utils.h | 28 … const uint8_t *userData, uint16_t dataLen, uint8_t fillBits, uint8_t *packData, uint16_t packLen);
|
/base/telephony/sms_mms/test/gtest/ |
D | zero_branch_utils_test.cpp | 148 unsigned char *packData = (unsigned char *)TEXT_SMS_CONTENT.c_str(); variable 151 EXPECT_EQ(smsCommonUtils->Pack7bitChar(userData, 1, 0, packData, 1), 1); 152 EXPECT_EQ(smsCommonUtils->Pack7bitChar(userData, 1, 1, packData, 1), 1); 153 EXPECT_EQ(smsCommonUtils->Pack7bitChar(userData, 1, FILL_BITS, packData, 1), 1); 154 EXPECT_EQ(smsCommonUtils->Unpack7bitChar(userData, 1, 0, packData, 1), 1); 155 EXPECT_EQ(smsCommonUtils->Unpack7bitChar(userData, 1, FILL_BITS, packData, 1), 0); 162 EXPECT_EQ(gsmUtils->DigitToBcd(nullptr, 1, packData, 1, len), 0); 163 EXPECT_FALSE(gsmUtils->DigitToBcd(digit, DIGIT_LEN, packData, 1, len));
|