Home
last modified time | relevance | path

Searched refs:addrLen (Results 1 – 17 of 17) sorted by relevance

/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_param_decode.cpp46 uint8_t addrLen = oneByte; in DecodeAddressPdu() local
48 if (addrLen % SLIDE_DATA_STEP == 0) { in DecodeAddressPdu()
49 bcdLen = addrLen / SLIDE_DATA_STEP; in DecodeAddressPdu()
51 bcdLen = addrLen / SLIDE_DATA_STEP + 1; in DecodeAddressPdu()
61 return DecodeAddressAlphaNum(buffer, resultNum, bcdLen, addrLen); in DecodeAddressPdu()
70 SmsReadBuffer &buffer, struct AddressNumber *resultNum, uint8_t bcdLen, uint8_t addrLen) in DecodeAddressAlphaNum() argument
75 uint8_t dataLen = (addrLen * HEX_VALUE_04) / HEX_VALUE_07; in DecodeAddressAlphaNum()
144 void GsmSmsParamDecode::DecodeSmscPdu(uint8_t *srcAddr, uint8_t addrLen, enum TypeOfNum ton, std::s… in DecodeSmscPdu() argument
146 if (srcAddr == nullptr || addrLen == 0) { in DecodeSmscPdu()
154 if (!utils.BcdToDigit(srcAddr, addrLen, desAddr, SMS_MAX_ADDRESS_LEN)) { in DecodeSmscPdu()
[all …]
Dgsm_sms_param_encode.cpp137 uint8_t addrLen = strlen(newNum); in EncodeSmscPdu() local
139 if (addrLen % SLIDE_DATA_STEP == 0) { in EncodeSmscPdu()
140 dataSize = SLIDE_DATA_STEP + (addrLen / SLIDE_DATA_STEP); in EncodeSmscPdu()
142 dataSize = SLIDE_DATA_STEP + (addrLen / SLIDE_DATA_STEP) + 1; in EncodeSmscPdu()
154 !utils.DigitToBcd(newNum, addrLen, &(smscNum[MIN_SMSC_LEN]), smscLen - MIN_SMSC_LEN, len)) { in EncodeSmscPdu()
Dgsm_sms_param_codec.cpp74 void GsmSmsParamCodec::DecodeSmscPdu(uint8_t *pAddress, uint8_t addrLen, enum TypeOfNum ton, std::s… in DecodeSmscPdu() argument
77 codec.DecodeSmscPdu(pAddress, addrLen, ton, decodeAddr); in DecodeSmscPdu()
Dgsm_user_data_pdu.cpp289 uint8_t addrLen = encodedAddr.size(); in EncodeHeaderReplyAddress() local
290 if (!buffer.WriteByte(addrLen)) { in EncodeHeaderReplyAddress()
294 if (buffer.data_ == nullptr || (buffer.GetIndex() + addrLen) > buffer.GetSize()) { in EncodeHeaderReplyAddress()
298 …if (memcpy_s(buffer.data_.get() + buffer.GetIndex(), addrLen, encodedAddr.data(), addrLen) != EOK)… in EncodeHeaderReplyAddress()
/base/startup/init/test/exec_test/
Dclient.c41 size_t addrLen = sizeof(addr.sun_path); in main() local
44 ret = snprintf_s(addr.sun_path, addrLen, addrLen - 1, "/dev/unix/socket/serversock"); in main()
/base/telephony/sms_mms/services/sms/cdma/
Dcdma_sms_parameter_record.cpp277 if (!pdu.WriteBits(address_.addrLen, BIT8)) { in EncodeAddress()
281 …if (static_cast<unsigned long>(address_.addrLen) > (sizeof(address_.szData) / sizeof(address_.szDa… in EncodeAddress()
286 for (uint8_t i = 0; i < address_.addrLen; i++) { in EncodeAddress()
293 for (uint8_t i = 0; i < address_.addrLen; i++) { in EncodeAddress()
310 address_.addrLen = v1; in DecodeAddress()
311 …if (static_cast<unsigned long>(address_.addrLen) > (sizeof(address_.szData) / sizeof(address_.szDa… in DecodeAddress()
316 for (uint8_t i = 0; i < address_.addrLen; i++) { in DecodeAddress()
324 for (uint8_t i = 0; i < address_.addrLen; i++) { in DecodeAddress()
358 !pdu.WriteBits(address_.addrLen, BIT8)) { in Encode()
363 …if (static_cast<unsigned long>(address_.addrLen) > (sizeof(address_.szData) / sizeof(address_.szDa… in Encode()
[all …]
Dcdma_sms_message.cpp47 transMsg->data.p2p.address.addrLen = dest.length(); in CreateSubmitTransMsg()
50 transMsg->data.p2p.address.addrLen = sizeof(transMsg->data.p2p.address.szData) - 1; in CreateSubmitTransMsg()
51 transMsg->data.p2p.address.szData[transMsg->data.p2p.address.addrLen] = '\0'; in CreateSubmitTransMsg()
81 transMsg->data.p2p.address.addrLen = dest.length(); in CreateSubmitTransMsg()
88 transMsg->data.p2p.address.addrLen = sizeof(transMsg->data.p2p.address.szData) - 1; in CreateSubmitTransMsg()
89 transMsg->data.p2p.address.szData[transMsg->data.p2p.address.addrLen] = '\0'; in CreateSubmitTransMsg()
Dcdma_sms_sub_parameter.cpp1062 …if (static_cast<unsigned long>(address_.addrLen) > (sizeof(address_.szData) / sizeof(address_.szDa… in Encode()
1069 !pdu.WriteBits(address_.addrLen, BIT8)) { in Encode()
1074 for (uint8_t i = 0; i < address_.addrLen; i++) { in Encode()
1081 if (!pdu.WriteBits(address_.addrLen, BIT8)) { in Encode()
1085 for (uint8_t i = 0; i < address_.addrLen; i++) { in Encode()
1121 address_.addrLen = v; in Decode()
1122 …if (static_cast<unsigned long>(address_.addrLen) > (sizeof(address_.szData) / sizeof(address_.szDa… in Decode()
1127 for (uint8_t i = 0; i < address_.addrLen; i++) { in Decode()
1135 for (uint8_t i = 0; i < address_.addrLen; i++) { in Decode()
Dcdma_sms_transport_message.cpp151 if (msg.subAddress.addrLen > 0) { in CdmaSmsP2pMessage()
246 if (msg.subAddress.addrLen > 0) { in CdmaSmsAckMessage()
Dcdma_sms_teleservice_message.cpp123 if (msg.callbackNumber.addrLen > 0) { in CdmaSmsSubmitMessage()
/base/telephony/sms_mms/services/sms/include/gsm/
Dgsm_sms_param_decode.h29 void DecodeSmscPdu(uint8_t *srcAddr, uint8_t addrLen, enum TypeOfNum ton, std::string &desAddr);
40 …sAlphaNum(SmsReadBuffer &buffer, struct AddressNumber *resultNum, uint8_t bcdLen, uint8_t addrLen);
Dgsm_sms_param_codec.h38 …void DecodeSmscPdu(uint8_t *pAddress, uint8_t addrLen, enum TypeOfNum ton, std::string &decodeAddr…
/base/telephony/sms_mms/test/unittest/
Dcdma_sms_test.cpp78 if (addr.addrLen == 0) { in PrintAddr()
86 ss << s << "addrLen : " << addr.addrLen << endl; in PrintAddr()
88 for (uint8_t i = 0; i < addr.addrLen; i++) { in PrintAddr()
97 if (addr.addrLen == 0) { in PrintSubAddr()
112 cout << s << "addrLen : " << addr.addrLen << endl; in PrintSubAddr()
114 for (uint8_t i = 0; i < addr.addrLen; i++) { in PrintSubAddr()
122 if (addr.addrLen == 0) { in PrintSmsTeleSvcAddr()
128 cout << s << "addrLen : " << addr.addrLen << endl; in PrintSmsTeleSvcAddr()
130 for (uint8_t i = 0; i < addr.addrLen; i++) { in PrintSmsTeleSvcAddr()
612 msg.data.p2p.address.addrLen = address.length(); in TestEncodeCancelMsg()
[all …]
/base/startup/init/services/init/
Dinit_service_socket.c41 size_t addrLen = sizeof(addr->sun_path); in GetSocketAddr() local
42 int ret = snprintf_s(addr->sun_path, addrLen, addrLen - 1, HOS_SOCKET_DIR "/%s", name); in GetSocketAddr()
/base/telephony/sms_mms/services/sms/include/cdma/
Dcdma_sms_common.h246 uint32_t addrLen; member
421 uint32_t addrLen; member
428 uint32_t addrLen; member
/base/telephony/sms_mms/test/gtest/
Dzero_branch_cdma_sms_test.cpp753 v1.addrLen = testValue;
755 v2.addrLen = initValue;
770 EXPECT_EQ(v2.addrLen, testValue);
789 v1.addrLen = testValue;
791 v2.addrLen = initValue;
806 EXPECT_EQ(v2.addrLen, testValue);
1320 v1.addrLen = testValue;
1322 v2.addrLen = initValue;
1337 EXPECT_EQ(v2.addrLen, testValue);
Dcdma_sms_gtest.cpp418 EXPECT_EQ(v.data.submit.callbackNumber.addrLen, 7);