Home
last modified time | relevance | path

Searched refs:address (Results 1 – 25 of 115) sorted by relevance

12345

/base/telephony/call_manager/services/audio/src/
Daudio_device_manager.cpp61 .address = { 0 }, in Init()
66 .address = { 0 }, in Init()
71 void AudioDeviceManager::AddAudioDeviceList(const std::string &address, AudioDeviceType deviceType) in AddAudioDeviceList() argument
76 if (it->address == address && it->deviceType == deviceType) { in AddAudioDeviceList()
93 if (address.length() > kMaxAddressLen) { in AddAudioDeviceList()
97 if (memcpy_s(audioDevice.address, kMaxAddressLen, address.c_str(), address.length()) != EOK) { in AddAudioDeviceList()
112 void AudioDeviceManager::RemoveAudioDeviceList(const std::string &address, AudioDeviceType deviceTy… in RemoveAudioDeviceList() argument
121 if (it->address == address && it->deviceType == deviceType) { in RemoveAudioDeviceList()
147 .address = { 0 }, in RemoveAudioDeviceList()
195 .address = { 0 }, in ProcessEvent()
[all …]
/base/telephony/call_manager/test/fuzztest/setaudiodevice_fuzzer/
Dsetaudiodevice_fuzzer.cpp47 std::string address(reinterpret_cast<const char *>(data), size); in SetAudioDevice()
54 if (address.length() > kMaxAddressLen) { in SetAudioDevice()
58 if (memcpy_s(audioDevice.address, kMaxAddressLen, address.c_str(), address.length()) != EOK) { in SetAudioDevice()
/base/telephony/cellular_data/services/include/utils/
Dcellular_data_utils.h31 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/sms/cdma/
Dcdma_sms_message.cpp44 transMsg->data.p2p.address.digitMode = false; in CreateSubmitTransMsg()
45 transMsg->data.p2p.address.numberMode = false; in CreateSubmitTransMsg()
46 transMsg->data.p2p.address.numberPlan = SMS_NPI_UNKNOWN; in CreateSubmitTransMsg()
47 transMsg->data.p2p.address.addrLen = dest.length(); in CreateSubmitTransMsg()
48 …if (strncpy_s(transMsg->data.p2p.address.szData, sizeof(transMsg->data.p2p.address.szData), dest.c… 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()
54 transMsg->data.p2p.address.digitMode = true; in CreateSubmitTransMsg()
55 transMsg->data.p2p.address.numberType = static_cast<uint8_t>(SmsNumberType::INTERNATIONAL); in CreateSubmitTransMsg()
57 transMsg->data.p2p.address.numberType = static_cast<uint8_t>(SmsNumberType::NATIONAL); in CreateSubmitTransMsg()
[all …]
/base/hiviewdfx/faultloggerd/test/unittest/unwinder/
Dmaps_test.cpp88 uintptr_t address = -1; variable
89 bool flag = maps->FindMapByAddr(address, map);
91 address = 1;
92 flag = maps->FindMapByAddr(address, map);
/base/telephony/sms_mms/services/sms/gsm/
Dgsm_sms_param_decode.cpp36 …if (memset_s(resultNum->address, sizeof(resultNum->address), 0x00, sizeof(resultNum->address)) != … in DecodeAddressPdu()
84 …reinterpret_cast<uint8_t *>(resultNum->address), MAX_ADDRESS_LEN, tmresultNum, tmplength, langInfo… in DecodeAddressAlphaNum()
110 resultNum->address[i + 1] = addrNum[i]; in DecodeAddressInternationalNum()
113 if (resultNum->address[1] != '\0') { in DecodeAddressInternationalNum()
114 resultNum->address[0] = '+'; in DecodeAddressInternationalNum()
139 resultNum->address[i] = addrNum[i]; in DecodeAddressDefaultNum()
172 …if (memset_s(desAddrObj.address, sizeof(desAddrObj.address), 0x00, sizeof(desAddrObj.address)) != … in DecodeSmscPdu()
199 desAddrObj.address[i + 1] = addrNum[i]; in DecodeSmscPdu()
201 if (desAddrObj.address[1] != '\0') { in DecodeSmscPdu()
202 desAddrObj.address[0] = '+'; in DecodeSmscPdu()
[all …]
Dgsm_sms_message.cpp43 int ret = memset_s(replyAddr.address, sizeof(replyAddr.address), 0x00, MAX_ADDRESS_LEN + 1); in CalcReplyEncodeAddress()
48 …ret = memcpy_s(replyAddr.address, sizeof(replyAddr.address), replyAddress.c_str(), MAX_ADDRESS_LEN… in CalcReplyEncodeAddress()
71 …ret = memcpy_s(tPdu->data.submit.destAddress.address, sizeof(tPdu->data.submit.destAddress.address in SetSmsTpduDestAddress()
77 tPdu->data.submit.destAddress.address[addLen] = '\0'; in SetSmsTpduDestAddress()
80 …ret = memcpy_s(tPdu->data.submit.destAddress.address, sizeof(tPdu->data.submit.destAddress.address in SetSmsTpduDestAddress()
83 …ret = memcpy_s(tPdu->data.submit.destAddress.address, sizeof(tPdu->data.submit.destAddress.address in SetSmsTpduDestAddress()
90 tPdu->data.submit.destAddress.address[MAX_ADDRESS_LEN] = '\0'; in SetSmsTpduDestAddress()
162 … ret = memset_s(smsTpdu_->data.submit.userData.header[index].udh.alternateAddress.address, in SetHeaderReply()
163 … sizeof(smsTpdu_->data.submit.userData.header[index].udh.alternateAddress.address), 0x00, in SetHeaderReply()
169 …if (sizeof(smsTpdu_->data.submit.userData.header[index].udh.alternateAddress.address) < reply.leng… in SetHeaderReply()
[all …]
Dgsm_sms_tpdu_encode.cpp51 std::string address; in EncodeSubmitPdu() local
52 if (!paramCodec_->EncodeAddressPdu(&pSubmit->destAddress, address)) { in EncodeSubmitPdu()
57 uint8_t position = address.size(); in EncodeSubmitPdu()
62 … if (memcpy_s(buffer.data_.get() + buffer.GetIndex(), position, address.data(), position) != EOK) { in EncodeSubmitPdu()
287 std::string address; in EncodeDeliverPartData() local
288 if (!paramCodec_->EncodeAddressPdu(&pDeliver->originAddress, address)) { in EncodeDeliverPartData()
293 uint8_t length = address.size(); in EncodeDeliverPartData()
298 if (memcpy_s(buffer.data_.get() + buffer.GetIndex(), length, address.data(), length) != EOK) { in EncodeDeliverPartData()
491 std::string address; in EncodeStatusReportPartData() local
492 if (!paramCodec_->EncodeAddressPdu(&pStatusRep->recipAddress, address)) { in EncodeStatusReportPartData()
[all …]
Dgsm_sms_param_encode.cpp41 const char *temp = static_cast<const char *>(num->address); in EncodeAddressPdu()
128 if (num->address[0] == '+') { in EncodeSmscPdu()
129 ret = memcpy_s(newNum, sizeof(newNum), num->address + 1, strlen(num->address) - 1); in EncodeSmscPdu()
131 ret = memcpy_s(newNum, sizeof(newNum), num->address, strlen(num->address)); in EncodeSmscPdu()
/base/telephony/sms_mms/services/sms/
Dsms_receive_indexer.cpp41 …const std::string &address, const std::string &visibleAddress, uint16_t msgRefId, uint16_t msgSeqI… in SmsReceiveIndexer() argument
44 …visibleMessageBody_(messageBody), originatingAddress_(address), msgRefId_(msgRefId), msgSeqId_(msg… in SmsReceiveIndexer()
49 …bool isCdmaWapPdu, const std::string &address, const std::string &visibleAddress, const std::strin… in SmsReceiveIndexer() argument
51 … visibleMessageBody_(messageBody), originatingAddress_(address), visibleAddress_(visibleAddress) in SmsReceiveIndexer()
127 void SmsReceiveIndexer::SetOriginatingAddress(const std::string &address) in SetOriginatingAddress() argument
129 originatingAddress_ = address; in SetOriginatingAddress()
/base/customization/enterprise_device_management/common/native/src/plugin_utils/
Dmessage_parcel_utils.cpp44 WriteIpAddress(data, config.wifiIpConfig.staticIpAddress.ipAddress.address); in WriteWifiDeviceConfig()
76 void MessageParcelUtils::WriteIpAddress(MessageParcel &data, const Wifi::WifiIpAddress &address) in WriteIpAddress() argument
78 data.WriteInt32(address.family); in WriteIpAddress()
79 data.WriteUint32(address.addressIpv4); in WriteIpAddress()
80 size_t size = address.addressIpv6.size(); in WriteIpAddress()
83 data.WriteUint8(address.addressIpv6[i]); in WriteIpAddress()
108 ReadIpAddress(data, config.wifiIpConfig.staticIpAddress.ipAddress.address); in ReadWifiDeviceConfig()
202 void MessageParcelUtils::ReadIpAddress(MessageParcel &data, Wifi::WifiIpAddress &address) in ReadIpAddress() argument
205 address.family = data.ReadInt32(); in ReadIpAddress()
206 address.addressIpv4 = data.ReadUint32(); in ReadIpAddress()
[all …]
/base/telephony/call_manager/services/bluetooth/src/
Dbluetooth_connection.cpp288 void BluetoothConnection::AddBtDevice(const std::string &address, Bluetooth::BluetoothRemoteDevice … in AddBtDevice() argument
291 auto iter = mapConnectedBtDevices_.find(address); in AddBtDevice()
295 …BtDevices_.insert(std::pair<std::string, const Bluetooth::BluetoothRemoteDevice>(address, device)); in AddBtDevice()
300 void BluetoothConnection::RemoveBtDevice(const std::string &address) in RemoveBtDevice() argument
303 if (mapConnectedBtDevices_.count(address) > 0) { in RemoveBtDevice()
304 mapConnectedBtDevices_.erase(address); in RemoveBtDevice()
311 Bluetooth::BluetoothRemoteDevice *BluetoothConnection::GetBtDevice(const std::string &address) in GetBtDevice() argument
314 if (mapConnectedBtDevices_.count(address) > 0) { in GetBtDevice()
315 auto iter = mapConnectedBtDevices_.find(address); in GetBtDevice()
/base/customization/enterprise_device_management/common/native/include/plugin_utils/
Dmessage_parcel_utils.h32 static void WriteIpAddress(MessageParcel &data, const Wifi::WifiIpAddress &address);
38 static void ReadIpAddress(MessageParcel &data, Wifi::WifiIpAddress &address);
/base/telephony/call_manager/services/bluetooth/include/
Dbluetooth_connection.h57 void RemoveBtDevice(const std::string &address);
66 Bluetooth::BluetoothRemoteDevice *GetBtDevice(const std::string &address);
67 void AddBtDevice(const std::string &address, Bluetooth::BluetoothRemoteDevice device);
/base/telephony/sms_mms/frameworks/native/mms/src/
Dmms_msg.cpp142 std::vector<MmsAddress> address; in GetMmsFrom() local
143 GetHeaderAllAddressValue(MMS_FROM, address); in GetMmsFrom()
145 if (address.size() == 1) { in GetMmsFrom()
146 fromAddress = address[0]; in GetMmsFrom()
151 bool MmsMsg::SetMmsFrom(MmsAddress address) in SetMmsFrom() argument
153 return AddHeaderAddressValue(MMS_FROM, address); in SetMmsFrom()
236 bool MmsMsg::AddHeaderAddressValue(uint8_t fieldId, MmsAddress &address) in AddHeaderAddressValue() argument
238 return mmsHeader_.AddHeaderAddressValue(fieldId, address); in AddHeaderAddressValue()
/base/telephony/sms_mms/test/unittest/
Dcdma_sms_test.cpp454 PrintAddr(msg.data.p2p.address); in PrintMsg()
473 PrintAddr(msg.data.ack.address); in PrintMsg()
605 std::string address; in TestEncodeCancelMsg() local
606 std::cin >> address; in TestEncodeCancelMsg()
612 msg.data.p2p.address.addrLen = address.length(); in TestEncodeCancelMsg()
613 if (memcpy_s(msg.data.p2p.address.szData, msg.data.p2p.address.addrLen, address.c_str(), in TestEncodeCancelMsg()
614 msg.data.p2p.address.addrLen) != EOK) { in TestEncodeCancelMsg()
628 std::string address; in TestEncodeDeliverReportMsg() local
629 std::cin >> address; in TestEncodeDeliverReportMsg()
639 msg.data.p2p.address.addrLen = address.length(); in TestEncodeDeliverReportMsg()
[all …]
Dmms_msg_test.cpp205 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/cellular_data/services/src/utils/
Dcellular_data_utils.cpp24 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/sms_mms/services/sms/include/
Dsms_receive_indexer.h29 …const std::string &address, const std::string &displayAddress, uint16_t msgRefId, uint16_t msgSeqI…
32 bool isCdmaWapPdu, const std::string &address, const std::string &displayAddress,
47 void SetOriginatingAddress(const std::string &address);
/base/telephony/call_manager/services/audio/include/
Daudio_device_manager.h44 void AddAudioDeviceList(const std::string &address, AudioDeviceType deviceType);
45 void RemoveAudioDeviceList(const std::string &address, AudioDeviceType deviceType);
/base/telephony/ril_adapter/services/hril/src/
Dhril_sms.cpp154 HRilServiceCenterAddress address; in SetSmscAddr() local
156 len = strlen(serCenterAddress.address.c_str()) + 1; in SetSmscAddr()
157 address.tosca = serCenterAddress.tosca; in SetSmscAddr()
161 CopyToCharPoint(&address.address, serCenterAddress.address); in SetSmscAddr()
162 …lt = RequestVendor(serialId, HREQ_SMS_SET_SMSC_ADDR, smsFuncs_, &HRilSmsReq::SetSmscAddr, &address, in SetSmscAddr()
165 SafeFrees(address.address); in SetSmscAddr()
356 result.address = std::string(""); in GetSmscAddrResponse()
358 … const HRilServiceCenterAddress *address = static_cast<const HRilServiceCenterAddress *>(response); in GetSmscAddrResponse() local
359 result.tosca = address->tosca; in GetSmscAddrResponse()
360 if (address->address == nullptr) { in GetSmscAddrResponse()
[all …]
/base/hiviewdfx/faultloggerd/frameworks/unwinder/
Ddfx_maps.cpp150 bool DfxElfMaps::FindMapByAddr(uintptr_t address, std::shared_ptr<DfxElfMap>& map) const in FindMapByAddr() argument
152 if ((maps_.size() == 0) || (address == 0x0)) { in FindMapByAddr()
161 if (address >= cur->begin && address < cur->end) { in FindMapByAddr()
164 } else if (address < cur->begin) { in FindMapByAddr()
/base/telephony/ril_adapter/test/unittest/ril_adapter_gtest/
Dril_sms_test.cpp314 ServiceCenterAddress address; variable
315 address.address = RilTestUtil::GetCallback()->GetSmscAddr();
316 address.tosca = TEST_TOSCA;
317 int32_t ret = g_rilInterface->SetSmscAddr(SLOTID_1, RilTestUtil::GetSerialId(), address);
333 ServiceCenterAddress address; variable
334 address.address = RilTestUtil::GetCallback()->GetSmscAddr();
335 address.tosca = TEST_TOSCA;
336 int32_t ret = g_rilInterface->SetSmscAddr(SLOTID_2, RilTestUtil::GetSerialId(), address);
/base/telephony/ril_adapter/interfaces/innerkits/include/
Dhril_sms_parcel.h85 std::string address = ""; member
263 CdmaSmsAddress address; member
/base/telephony/sms_mms/interfaces/innerkits/
Dmms_msg.h129 bool SetMmsFrom(MmsAddress address);
241 bool AddHeaderAddressValue(uint8_t fieldId, MmsAddress &address);

12345