/base/telephony/sms_mms/services/sms/gsm/ |
D | gsm_sms_param_decode.cpp | 46 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 …]
|
D | gsm_sms_param_encode.cpp | 137 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()
|
D | gsm_sms_param_codec.cpp | 74 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()
|
D | gsm_user_data_pdu.cpp | 289 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/ |
D | client.c | 41 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/ |
D | cdma_sms_parameter_record.cpp | 277 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 …]
|
D | cdma_sms_message.cpp | 47 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()
|
D | cdma_sms_sub_parameter.cpp | 1062 …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()
|
D | cdma_sms_transport_message.cpp | 151 if (msg.subAddress.addrLen > 0) { in CdmaSmsP2pMessage() 246 if (msg.subAddress.addrLen > 0) { in CdmaSmsAckMessage()
|
D | cdma_sms_teleservice_message.cpp | 123 if (msg.callbackNumber.addrLen > 0) { in CdmaSmsSubmitMessage()
|
/base/telephony/sms_mms/services/sms/include/gsm/ |
D | gsm_sms_param_decode.h | 29 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);
|
D | gsm_sms_param_codec.h | 38 …void DecodeSmscPdu(uint8_t *pAddress, uint8_t addrLen, enum TypeOfNum ton, std::string &decodeAddr…
|
/base/telephony/sms_mms/test/unittest/ |
D | cdma_sms_test.cpp | 78 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/ |
D | init_service_socket.c | 41 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/ |
D | cdma_sms_common.h | 246 uint32_t addrLen; member 421 uint32_t addrLen; member 428 uint32_t addrLen; member
|
/base/telephony/sms_mms/test/gtest/ |
D | zero_branch_cdma_sms_test.cpp | 753 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);
|
D | cdma_sms_gtest.cpp | 418 EXPECT_EQ(v.data.submit.callbackNumber.addrLen, 7);
|