/base/telephony/cellular_data/services/include/utils/ |
D | cellular_data_utils.h | 31 static std::vector<AddressInfo> ParseIpAddr(const std::string &address); 32 static std::vector<AddressInfo> ParseNormalIpAddr(const std::string &address); 33 static std::vector<RouteInfo> ParseRoute(const std::string &address); 34 static bool ParseDotIpData(const std::string &address, AddressInfo &ipInfo);
|
/base/telephony/sms_mms/services/gsm/ |
D | gsm_sms_param_codec.cpp | 40 const char *temp = static_cast<const char *>(pAddress->address); in EncodeAddress() 113 if (pAddress->address[0] == '+') { in EncodeSMSC() 114 … ret = memcpy_s(newAddr, sizeof(newAddr), pAddress->address + 1, strlen(pAddress->address) - 1); in EncodeSMSC() 116 ret = memcpy_s(newAddr, sizeof(newAddr), pAddress->address, strlen(pAddress->address)); in EncodeSMSC() 257 …if (memset_s(pAddress->address, sizeof(pAddress->address), 0x00, sizeof(pAddress->address)) != EOK… in DecodeAddress() 285 …textCvt->ConvertGSM7bitToUTF8(reinterpret_cast<unsigned char *>(pAddress->address), MAX_ADDRESS_LE… in DecodeAddress() 291 SmsCommonUtils::BcdToDigit(&(pTpdu[offset]), bcdLen, &((pAddress->address)[1])); in DecodeAddress() 292 if (pAddress->address[1] != '\0') { in DecodeAddress() 293 pAddress->address[0] = '+'; in DecodeAddress() 296 SmsCommonUtils::BcdToDigit(&(pTpdu[offset]), bcdLen, &((pAddress->address)[0])); in DecodeAddress() [all …]
|
D | gsm_sms_message.cpp | 45 int ret = memset_s(replyAddr.address, sizeof(replyAddr.address), 0x00, MAX_ADDRESS_LEN + 1); in CalcReplyEncodeAddress() 50 …ret = memcpy_s(replyAddr.address, sizeof(replyAddr.address), replyAddress.c_str(), MAX_ADDRESS_LEN… in CalcReplyEncodeAddress() 72 …ret = memcpy_s(tPdu->data.submit.destAddress.address, sizeof(tPdu->data.submit.destAddress.address… in SetSmsTpduDestAddress() 78 tPdu->data.submit.destAddress.address[addLen] = '\0'; in SetSmsTpduDestAddress() 81 …ret = memcpy_s(tPdu->data.submit.destAddress.address, sizeof(tPdu->data.submit.destAddress.address… in SetSmsTpduDestAddress() 84 …ret = memcpy_s(tPdu->data.submit.destAddress.address, sizeof(tPdu->data.submit.destAddress.address… in SetSmsTpduDestAddress() 91 tPdu->data.submit.destAddress.address[MAX_ADDRESS_LEN] = '\0'; in SetSmsTpduDestAddress() 163 … ret = memset_s(smsTpdu_->data.submit.userData.header[index].udh.alternateAddress.address, in SetHeaderReply() 164 … sizeof(smsTpdu_->data.submit.userData.header[index].udh.alternateAddress.address), 0x00, in SetHeaderReply() 170 …if (sizeof(smsTpdu_->data.submit.userData.header[index].udh.alternateAddress.address) < reply.leng… in SetHeaderReply() [all …]
|
D | gsm_sms_tpdu_codec.cpp | 96 char *address = nullptr; in EncodeSubmit() local 99 unique_ptr<char *, void (*)(char **(&))> addressBuf(&address, UniquePtrDeleterOneDimension); in EncodeSubmit() 109 length = GsmSmsParamCodec::EncodeAddress(&pSubmit->destAddress, &address); in EncodeSubmit() 110 ret = memcpy_s(&(pTpdu[offset]), length, address, length); in EncodeSubmit() 194 char *address = nullptr; in EncodeDeliver() local 197 unique_ptr<char *, void (*)(char **(&))> addressBuf(&address, UniquePtrDeleterOneDimension); in EncodeDeliver() 223 length = GsmSmsParamCodec::EncodeAddress(&pDeliver->originAddress, &address); in EncodeDeliver() 224 if (memcpy_s(&(pTpdu[offset]), length, address, length) != EOK) { in EncodeDeliver() 305 char *address = nullptr; in EncodeStatusReport() local 308 unique_ptr<char *, void (*)(char **(&))> addressBuf(&address, UniquePtrDeleterOneDimension); in EncodeStatusReport() [all …]
|
/base/telephony/sms_mms/services/cdma/ |
D | cdma_sms_message.cpp | 44 transMsg->data.p2pMsg.address.digitMode = SMS_DIGIT_4BIT_DTMF; in CreateSubmitTransMsg() 45 transMsg->data.p2pMsg.address.numberMode = SMS_NUMBER_MODE_NONE_DATANETWORK; in CreateSubmitTransMsg() 46 transMsg->data.p2pMsg.address.numberPlan = SMS_NPI_UNKNOWN; in CreateSubmitTransMsg() 47 transMsg->data.p2pMsg.address.addrLen = dest.length(); in CreateSubmitTransMsg() 48 …if (strncpy_s(transMsg->data.p2pMsg.address.szData, sizeof(transMsg->data.p2pMsg.address.szData), … in CreateSubmitTransMsg() 50 transMsg->data.p2pMsg.address.addrLen = sizeof(transMsg->data.p2pMsg.address.szData) - 1; in CreateSubmitTransMsg() 51 transMsg->data.p2pMsg.address.szData[transMsg->data.p2pMsg.address.addrLen] = '\0'; in CreateSubmitTransMsg() 54 transMsg->data.p2pMsg.address.digitMode = SMS_DIGIT_8BIT; in CreateSubmitTransMsg() 55 transMsg->data.p2pMsg.address.numberType = SMS_NUMBER_TYPE_INTERNATIONAL; in CreateSubmitTransMsg() 57 transMsg->data.p2pMsg.address.numberType = SMS_NUMBER_TYPE_NATIONAL; in CreateSubmitTransMsg() [all …]
|
D | cdma_sms_pdu_codec.cpp | 226 offset += EncodeAddress(p2pMsg.address, &pduStr[offset]); in EncodeP2PMsg() 283 offset += EncodeAddress(ackMsg.address, &pduStr[offset]); in EncodeAckMsg() 450 int CdmaSmsPduCodec::EncodeSubAddress(const struct SmsTransSubAddr &address, unsigned char *pduStr) in EncodeSubAddress() argument 454 if (pduStr == nullptr || address.addrLen == 0) { in EncodeSubAddress() 459 pduStr[offset] = address.addrLen + 0x02; in EncodeSubAddress() 461 pduStr[offset] |= static_cast<unsigned char>(address.type) << SHIFT_5BITS; in EncodeSubAddress() 462 pduStr[offset++] |= (address.odd ? 0x10 : 0x00); in EncodeSubAddress() 463 pduStr[offset++] = address.addrLen; in EncodeSubAddress() 464 if (memcpy_s(pduStr + offset, address.addrLen, address.szData, address.addrLen) != EOK) { in EncodeSubAddress() 468 offset += address.addrLen; in EncodeSubAddress() [all …]
|
/base/telephony/call_manager/services/bluetooth/src/ |
D | bluetooth_connection.cpp | 241 void BluetoothConnection::AddBtDevice(const std::string &address, Bluetooth::BluetoothRemoteDevice … in AddBtDevice() argument 243 auto iter = mapConnectedBtDevices_.find(address); in AddBtDevice() 247 …BtDevices_.insert(std::pair<std::string, const Bluetooth::BluetoothRemoteDevice>(address, device)); in AddBtDevice() 252 void BluetoothConnection::RemoveBtDevice(const std::string &address) in RemoveBtDevice() argument 254 if (mapConnectedBtDevices_.count(address) > 0) { in RemoveBtDevice() 255 mapConnectedBtDevices_.erase(address); in RemoveBtDevice() 262 Bluetooth::BluetoothRemoteDevice *BluetoothConnection::GetBtDevice(const std::string &address) in GetBtDevice() argument 264 if (mapConnectedBtDevices_.count(address) > 0) { in GetBtDevice() 265 auto iter = mapConnectedBtDevices_.find(address); in GetBtDevice()
|
/base/telephony/sms_mms/services/ |
D | sms_receive_indexer.cpp | 38 bool isCdma, const std::string &address, const std::string &visibleAddress, int16_t msgRefId, in SmsReceiveIndexer() argument 41 …visibleMessageBody_(messageBody), originatingAddress_(address), msgRefId_(msgRefId), msgSeqId_(msg… in SmsReceiveIndexer() 46 bool isCdma, bool isCdmaWapPdu, const std::string &address, const std::string &visibleAddress, in SmsReceiveIndexer() argument 49 … visibleMessageBody_(messageBody), originatingAddress_(address), visibleAddress_(visibleAddress) in SmsReceiveIndexer() 115 void SmsReceiveIndexer::SetOriginatingAddress(const std::string &address) in SetOriginatingAddress() argument 117 originatingAddress_ = address; in SetOriginatingAddress()
|
/base/telephony/call_manager/services/bluetooth/include/ |
D | bluetooth_connection.h | 53 void RemoveBtDevice(const std::string &address); 59 Bluetooth::BluetoothRemoteDevice *GetBtDevice(const std::string &address); 60 void AddBtDevice(const std::string &address, Bluetooth::BluetoothRemoteDevice device);
|
/base/telephony/sms_mms/frameworks/native/mms/src/ |
D | mms_msg.cpp | 141 std::vector<MmsAddress> address; in GetMmsFrom() local 142 GetHeaderAllAddressValue(MMS_FROM, address); in GetMmsFrom() 144 if (address.size() == 1) { in GetMmsFrom() 145 fromAddress = address[0]; in GetMmsFrom() 150 bool MmsMsg::SetMmsFrom(MmsAddress address) in SetMmsFrom() argument 152 return AddHeaderAddressValue(MMS_FROM, address); in SetMmsFrom() 235 bool MmsMsg::AddHeaderAddressValue(uint8_t fieldId, MmsAddress &address) in AddHeaderAddressValue() argument 237 return mmsHeader_.AddHeaderAddressValue(fieldId, address); in AddHeaderAddressValue()
|
/base/telephony/call_manager/test/fuzztest/setaudiodevice_fuzzer/ |
D | setaudiodevice_fuzzer.cpp | 47 std::string address(reinterpret_cast<const char *>(data), size); in SetAudioDevice() 51 dataParcel.WriteString(address); in SetAudioDevice()
|
/base/telephony/sms_mms/services/include/ |
D | sms_receive_indexer.h | 29 …const std::string &address, const std::string &displayAddress, int16_t msgRefId, uint16_t msgSeqId, 32 bool isCdmaWapPdu, const std::string &address, const std::string &displayAddress, 47 void SetOriginatingAddress(const std::string &address);
|
/base/telephony/cellular_data/services/src/utils/ |
D | cellular_data_utils.cpp | 24 std::vector<AddressInfo> CellularDataUtils::ParseIpAddr(const std::string &address) in ParseIpAddr() argument 27 std::vector<std::string> ipArray = Split(address, " "); in ParseIpAddr() 53 bool CellularDataUtils::ParseDotIpData(const std::string &address, AddressInfo &ipInfo) in ParseDotIpData() argument 93 std::vector<AddressInfo> CellularDataUtils::ParseNormalIpAddr(const std::string &address) in ParseNormalIpAddr() argument 96 std::vector<std::string> ipArray = Split(address, " "); in ParseNormalIpAddr() 112 std::vector<RouteInfo> CellularDataUtils::ParseRoute(const std::string &address) in ParseRoute() argument 115 std::vector<std::string> routeArray = Split(address, " "); in ParseRoute()
|
/base/telephony/ril_adapter/services/hril/src/ |
D | hril_sms.cpp | 149 HRilServiceCenterAddress address; in SetSmscAddr() local 151 len = strlen(serCenterAddress.address.c_str()) + 1; in SetSmscAddr() 152 address.tosca = serCenterAddress.tosca; in SetSmscAddr() 156 CopyToCharPoint(&address.address, serCenterAddress.address); in SetSmscAddr() 157 …lt = RequestVendor(serialId, HREQ_SMS_SET_SMSC_ADDR, smsFuncs_, &HRilSmsReq::SetSmscAddr, &address, in SetSmscAddr() 160 SafeFrees(address.address); in SetSmscAddr() 351 result.address = std::string(""); in GetSmscAddrResponse() 353 … const HRilServiceCenterAddress *address = static_cast<const HRilServiceCenterAddress *>(response); in GetSmscAddrResponse() local 354 result.tosca = address->tosca; in GetSmscAddrResponse() 355 if (address->address == nullptr) { in GetSmscAddrResponse() [all …]
|
/base/location/frameworks/native/source/ |
D | napi_util.cpp | 428 const std::string& fieldStr, std::shared_ptr<GeoAddress> address) in GetGeoAddressInfo() argument 439 address->m_hasLatitude = false; in GetGeoAddressInfo() 441 address->m_hasLatitude = true; in GetGeoAddressInfo() 442 address->m_latitude = latitude; in GetGeoAddressInfo() 446 address->m_hasLongitude = false; in GetGeoAddressInfo() 448 address->m_hasLongitude = true; in GetGeoAddressInfo() 449 address->m_longitude = longitude; in GetGeoAddressInfo() 452 JsObjectToString(env, value, "locale", bufLen, address->m_localeLanguage); in GetGeoAddressInfo() 453 JsObjectToString(env, value, "placeName", bufLen, address->m_placeName); in GetGeoAddressInfo() 454 JsObjectToString(env, value, "countryCode", bufLen, address->m_countryCode); in GetGeoAddressInfo() [all …]
|
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/src/ |
D | dfx_maps_test.cpp | 342 uintptr_t address = 1; variable 343 bool flag = dfxmap->FindMapByAddr(address, map); 358 uintptr_t address = 100; variable 359 bool flag = dfxmap->FindMapByAddr(address, map); 374 uintptr_t address = -1; variable 375 bool flag = dfxmap->FindMapByAddr(address, map);
|
/base/telephony/sms_mms/test/unittest/ |
D | mms_msg_test.cpp | 205 MmsAddress address; in MmsSendReqEncodeTest() local 206 address.SetMmsAddressString("+8613812345678/TYPE=PLMN"); in MmsSendReqEncodeTest() 207 if (!encodeMsg.SetMmsFrom(address)) { in MmsSendReqEncodeTest() 335 MmsAddress address; in MmsNotificationIndEncodeTest() local 336 address.SetMmsAddressString("+8613812345678/TYPE=PLMN"); in MmsNotificationIndEncodeTest() 337 if (!encodeMsg.SetMmsFrom(address)) { in MmsNotificationIndEncodeTest() 420 MmsAddress address; in MmsRetrieveConfEncodeTest() local 421 address.SetMmsAddressString("+8613812345678/TYPE=PLMN"); in MmsRetrieveConfEncodeTest() 422 if (!encodeMsg.SetMmsFrom(address)) { in MmsRetrieveConfEncodeTest() 567 MmsAddress address; in MmsReadRecIndEncodeTest() local [all …]
|
/base/telephony/sms_mms/interfaces/innerkits/ |
D | mms_msg.h | 133 bool SetMmsFrom(MmsAddress address); 253 bool AddHeaderAddressValue(uint8_t fieldId, MmsAddress &address);
|
/base/telephony/ril_adapter/interfaces/innerkits/include/ |
D | hril_vendor_sms_defs.h | 44 char *address; member 98 HRilCdmaSmsAddress address; member
|
D | hril_sms_parcel.h | 47 std::string address; /* Protocol Data Unit */ member 167 CdmaSmsAddress address; member
|
/base/usb/usb_manager/interfaces/innerkits/native/include/ |
D | usb_endpoint.h | 29 USBEndpoint(uint32_t address, uint32_t attributes, uint32_t interval, uint32_t maxPacketSize) in USBEndpoint() argument 31 this->address_ = address; in USBEndpoint()
|
/base/hiviewdfx/faultloggerd/tools/process_dump/ |
D | dfx_maps.cpp | 128 bool DfxElfMaps::FindMapByAddr(uintptr_t address, std::shared_ptr<DfxElfMap>& map) const in FindMapByAddr() argument 131 if (((*iter)->GetMapBegin() < address) && ((*iter)->GetMapEnd() > address)) { in FindMapByAddr()
|
/base/request/request/test/download/ |
D | download.test.ets | 19 url: 'https://mirror.bjtu.edu.cn/kernel/linux/libs/libc5/libc5.cvs.tar.gz',// Resource address. 29 …irror.bjtu.edu.cn/kernel/linux/devel/binutils/binutils-2.10.91.0.2-1.i386.rpm',// Resource address. 39 …tu.edu.cn/kernel/linux/devel/binutils/binutils-2.11.90.0.23-2.11.90.0.24.sign',// Resource address. 54 …ttps://mirror.bjtu.edu.cn/kernel/linux/devel/binutils/autoconf-2.13-10.tar.gz',// Resource address. 64 …ttps://mirror.bjtu.edu.cn/kernel/linux/devel/binutils/automake-1.4-8.3.tar.gz',// Resource address. 74 …u.edu.cn/kernel/linux/devel/binutils/binutils-2.10.91.0.2-2.10.91.0.4.diff.gz',// Resource address. 84 …tu.edu.cn/kernel/linux/devel/binutils/binutils-2.11.90.0.23-2.11.90.0.24.sign',// Resource address. 94 …u.edu.cn/kernel/linux/devel/binutils/binutils-2.11.90.0.5-2.11.90.0.6.diff.gz',// Resource address. 104 …u.edu.cn/kernel/linux/devel/binutils/binutils-2.11.90.0.6-2.11.90.0.7.diff.gz',// Resource address. 114 …u.edu.cn/kernel/linux/devel/binutils/binutils-2.11.90.0.7-2.11.90.0.8.diff.gz',// Resource address. [all …]
|
/base/telephony/sms_mms/services/include/cdma/ |
D | cdma_sms_pdu_codec.h | 45 static int EncodeAddress(const struct SmsTransAddr &address, unsigned char *pduStr); 46 static int EncodeSubAddress(const struct SmsTransSubAddr &address, unsigned char *pduStr);
|
/base/telephony/sms_mms/test/gtest/ |
D | zero_branch_test.cpp | 162 MmsAddress address(encodeAddress); 164 addressValue.push_back(address); 214 MmsAddress address(encodeAddress); 216 addressValue.push_back(address); 244 EXPECT_FALSE(mmsHeader->AddHeaderAddressValue(1, address)); 262 MmsAddress address(encodeAddress); 264 addressValue.push_back(address); 314 MmsAddress address(encodeAddress); 320 addrs.push_back(address);
|