/base/telephony/call_manager/services/distributed_call/src/distributed_communication/ |
H A D | distributed_device_switch_controller.cpp | 31 std::string address = GetDevAddress(devId, devName); in OnDeviceOnline() local 32 audioDeviceManager->AddAudioDeviceList(address, devType, devName); in OnDeviceOnline() 41 std::string address = GetDevAddress(devId, devName); in OnDeviceOffline() local 42 audioDeviceManager->RemoveAudioDeviceList(address, devType); in OnDeviceOffline() 53 std::string address = GetDevAddress(devId, devName); in OnDistributedAudioDeviceChange() local 57 if (memcpy_s(targetDevice.address, kMaxAddressLen, address.c_str(), address.length()) != EOK || in OnDistributedAudioDeviceChange() 59 TELEPHONY_LOGE("memcpy_s address or deviceName failed."); in OnDistributedAudioDeviceChange() 110 std::string address in GetDevAddress() local [all...] |
/base/print/print_fwk/frameworks/ohprint/include/ |
H A D | print_converter.h | 24 #define SAFE_DELETE(address) \ 26 if ((address) != nullptr) { \ 27 delete (address); \ 28 (address) = nullptr; \ 32 #define SAFE_DELETE_ARRAY(address) \ 34 if ((address) != nullptr) { \ 35 delete[] (address); \ 36 (address) = nullptr; \ 40 inline bool IsValidString(const char *address) in IsValidString() argument 42 if (address in IsValidString() [all...] |
/base/telephony/call_manager/test/fuzztest/setaudiodevice_fuzzer/ |
H A D | setaudiodevice_fuzzer.cpp | 32 std::string address(reinterpret_cast<const char *>(data), size); in SetAudioDevice() 39 if (address.length() > kMaxAddressLen) { in SetAudioDevice() 40 TELEPHONY_LOGE("address is not too long"); in SetAudioDevice() 43 if (memcpy_s(audioDevice.address, kMaxAddressLen, address.c_str(), address.length()) != EOK) { in SetAudioDevice()
|
/base/print/print_fwk/test/unittest/service_test/ |
H A D | print_http_server_manager_test.cpp | 31 R"("endpoints":[{"address":1,"attributes":2,"direction":0,"interfaceId":0,"interval":0,"maxPacketSize":512,)"\ 32 R"("number":1,"type":2},{"address":129,"attributes":2,"direction":128,"interfaceId":0,"interval":0,)"\ 34 R"("clazz":255,"endpoints":[{"address":2,"attributes":2,"direction":0,"interfaceId":1,"interval":0,)"\ 35 R"("maxPacketSize":512,"number":2,"type":2},{"address":130,"attributes":2,"direction":128,"interfaceId":1,)"\ 37 R"({"alternateSetting":0,"clazz":7,"endpoints":[{"address":3,"attributes":2,"direction":0,"interfaceId":2,)"\ 38 R"("interval":0,"maxPacketSize":512,"number":3,"type":2},{"address":131,"attributes":2,"direction":128,)"\ 40 R"("subClass":1},{"alternateSetting":0,"clazz":7,"endpoints":[{"address":4,"attributes":2,"direction":0,)"\ 41 R"("interfaceId":3,"interval":0,"maxPacketSize":512,"number":4,"type":2},{"address":132,"attributes":2,)"\ 43 R"("protocol":4,"subClass":1},{"alternateSetting":0,"clazz":7,"endpoints":[{"address":5,"attributes":2,)"\ 44 R"("direction":0,"interfaceId":4,"interval":0,"maxPacketSize":512,"number":5,"type":2},{"address" [all...] |
/base/telephony/sms_mms/services/sms/cdma/ |
H A D | cdma_sms_message.cpp | 44 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_str(), 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 in CreateSubmitTransMsg() [all...] |
/base/telephony/call_manager/services/audio/src/ |
H A D | audio_device_manager.cpp | 69 TELEPHONY_LOGE("memset_s address fail"); in Init() 74 .address = { 0 }, in Init() 79 .address = { 0 }, in Init() 121 if (it->address == macAddress && it->deviceType == AudioDeviceType::DEVICE_BLUETOOTH_SCO) { in UpdateBluetoothDeviceName() 142 void AudioDeviceManager::AddAudioDeviceList(const std::string &address, AudioDeviceType deviceType, in AddAudioDeviceList() argument 148 if (it->address == address && it->deviceType == deviceType) { in AddAudioDeviceList() 165 if (address.length() > kMaxAddressLen) { in AddAudioDeviceList() 166 TELEPHONY_LOGE("address is too long"); in AddAudioDeviceList() 169 if (memcpy_s(audioDevice.address, kMaxAddressLe in AddAudioDeviceList() 195 RemoveAudioDeviceList(const std::string &address, AudioDeviceType deviceType) RemoveAudioDeviceList() argument 496 std::string address = device.address; ReportAudioDeviceChange() local [all...] |
/base/telephony/cellular_data/services/include/utils/ |
H A 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);
|
/base/telephony/call_manager/services/bluetooth/src/ |
H A D | bluetooth_connection.cpp | 157 void BluetoothConnection::AddBtDevice(const std::string &address, Bluetooth::BluetoothRemoteDevice device) in AddBtDevice() argument 160 auto iter = mapConnectedBtDevices_.find(address); in AddBtDevice() 164 mapConnectedBtDevices_.insert(std::pair<std::string, const Bluetooth::BluetoothRemoteDevice>(address, device)); in AddBtDevice() 169 void BluetoothConnection::RemoveBtDevice(const std::string &address) in RemoveBtDevice() argument 172 if (mapConnectedBtDevices_.count(address) > 0) { in RemoveBtDevice() 173 mapConnectedBtDevices_.erase(address); in RemoveBtDevice() 180 Bluetooth::BluetoothRemoteDevice *BluetoothConnection::GetBtDevice(const std::string &address) in GetBtDevice() argument 183 if (mapConnectedBtDevices_.count(address) > 0) { in GetBtDevice() 184 auto iter = mapConnectedBtDevices_.find(address); in GetBtDevice()
|
/base/telephony/core_service/utils/vcard/src/contact_data/ |
H A D | vcard_email_data.cpp | 50 std::string &address, const std::string &labelId, std::string &labelName, std::string &displayName) in InitEmailData() 52 address_ = address; in InitEmailData() 63 void VCardEmailData::SetAddress(const std::string &address) in SetAddress() argument 65 address_ = address; in SetAddress() 49 InitEmailData( std::string &address, const std::string &labelId, std::string &labelName, std::string &displayName) InitEmailData() argument
|
H A D | vcard_im_data.cpp | 43 void VCardImData::SetAddress(const std::string &address) in SetAddress() argument 45 address_ = address; in SetAddress()
|
/base/telephony/sms_mms/services/sms/gsm/ |
H A D | gsm_sms_message.cpp | 39 int ret = memset_s(replyAddr.address, sizeof(replyAddr.address), 0x00, MAX_ADDRESS_LEN + 1); in CalcReplyEncodeAddress() 44 ret = memcpy_s(replyAddr.address, sizeof(replyAddr.address), replyAddress.c_str(), MAX_ADDRESS_LEN); in CalcReplyEncodeAddress() 67 ret = memcpy_s(tPdu->data.submit.destAddress.address, sizeof(tPdu->data.submit.destAddress.address), in SetSmsTpduDestAddress() 73 tPdu->data.submit.destAddress.address[addLen] = '\0'; in SetSmsTpduDestAddress() 76 ret = memcpy_s(tPdu->data.submit.destAddress.address, sizeof(tPdu->data.submit.destAddress.address), in SetSmsTpduDestAddress() 79 ret = memcpy_s(tPdu->data.submit.destAddress.address, sizeo in SetSmsTpduDestAddress() 596 SetDestAddress(const std::string &address) SetDestAddress() argument [all...] |
H A D | gsm_sms_tpdu_encode.cpp | 53 std::string address; in EncodeSubmitPdu() local 54 if (!paramCodec_->EncodeAddressPdu(&pSubmit->destAddress, address)) { in EncodeSubmitPdu() 55 TELEPHONY_LOGE("encode address fail."); in EncodeSubmitPdu() 59 uint8_t position = address.size(); in EncodeSubmitPdu() 64 if (memcpy_s(buffer.data_.get() + buffer.GetIndex(), position, address.data(), position) != EOK) { in EncodeSubmitPdu() 110 std::string addr = pSubmit->destAddress.address; in EncodeSubmitPduPartData() 194 if (pSubmit.bHeaderInd && CT_SMSC.compare(pSubmit.destAddress.address) != 0) { in EncodeSubmitTypeData() 289 std::string address; in EncodeDeliverPartData() local 290 if (!paramCodec_->EncodeAddressPdu(&pDeliver->originAddress, address)) { in EncodeDeliverPartData() 295 uint8_t length = address in EncodeDeliverPartData() 495 std::string address; EncodeStatusReportPartData() local [all...] |
H A D | gsm_sms_param_encode.cpp | 41 const char *temp = static_cast<const char *>(num->address); in EncodeAddressPdu() 128 if (num->address[0] == '+' && strlen(num->address) > 1) { 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, sizeof(newNum)); in EncodeSmscPdu()
|
H A D | gsm_sms_param_decode.cpp | 44 if (memset_s(resultNum->address, sizeof(resultNum->address), 0x00, sizeof(resultNum->address)) != EOK) { in DecodeAddressPdu() 107 reinterpret_cast<uint8_t *>(resultNum->address), MAX_ADDRESS_LEN, tmresultNum, dataLen, langInfo); in DecodeAddressAlphaNum() 134 resultNum->address[i] = newStrAddress[i]; in DecodeAddressInternationalNum() 159 resultNum->address[i] = addrNum[i]; in DecodeAddressDefaultNum() 219 if (memset_s(desAddrObj.address, sizeof(desAddrObj.address), 0x00, sizeof(desAddrObj.address)) != EOK) { in DecodeSmscPdu() 247 desAddrObj.address[ in DecodeSmscPdu() [all...] |
/base/telephony/sms_mms/services/sms/ |
H A D | sms_receive_indexer.cpp | 41 const std::string &address, const std::string &visibleAddress, uint16_t msgRefId, uint16_t msgSeqId, in SmsReceiveIndexer() 44 visibleMessageBody_(messageBody), originatingAddress_(address), msgRefId_(msgRefId), msgSeqId_(msgSeqId), in SmsReceiveIndexer() 49 bool isCdmaWapPdu, const std::string &address, const std::string &visibleAddress, const std::string &messageBody) in SmsReceiveIndexer() 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() 40 SmsReceiveIndexer(const std::vector<uint8_t> &pdu, int64_t timestamp, int16_t destPort, bool isCdma, const std::string &address, const std::string &visibleAddress, uint16_t msgRefId, uint16_t msgSeqId, uint16_t msgCount, bool isCdmaWapPdu, const std::string &messageBody) SmsReceiveIndexer() argument 48 SmsReceiveIndexer(const std::vector<uint8_t> &pdu, int64_t timestamp, int16_t destPort, bool isCdma, bool isCdmaWapPdu, const std::string &address, const std::string &visibleAddress, const std::string &messageBody) SmsReceiveIndexer() argument
|
/base/telephony/call_manager/services/distributed_call/src/ |
H A D | distributed_call_manager.cpp | 138 if (memcpy_s(device.address, kMaxAddressLen, addressStr.c_str(), addressStr.length()) != EOK) { in CreateDAudioDevice() 153 std::string address = device.address; in GetDevIdFromAudioDevice() local 154 if (!address.length()) { in GetDevIdFromAudioDevice() 155 TELEPHONY_LOGE("invalid address"); in GetDevIdFromAudioDevice() 158 json addressJson = json::parse(address, nullptr, false); in GetDevIdFromAudioDevice() 193 DelayedSingleton<AudioDeviceManager>::GetInstance()->AddAudioDeviceList(device.address, device.deviceType, ""); in AddDCallDevice() 216 iter->second.address, iter->second.deviceType); in RemoveDCallDevice() 248 std::string addr = connectedAudioDevice_.address; in GetConnectedDCallDeviceAddr() 273 if (memcpy_s(device.address, kMaxAddressLe in GetConnectedDCallDevice() [all...] |
/base/telephony/call_manager/services/bluetooth/include/ |
H A D | bluetooth_connection.h | 53 void RemoveBtDevice(const std::string &address); 61 Bluetooth::BluetoothRemoteDevice *GetBtDevice(const std::string &address); 62 void AddBtDevice(const std::string &address, Bluetooth::BluetoothRemoteDevice device);
|
/base/security/code_signature/interfaces/innerkits/jit_code_sign/include/ |
H A D | jit_buffer_integrity.h | 61 * @brief Register start address of tmp buffer if patching target address of buffer 125 * @brief Patch an intruction at address 127 * @param address address of patching instruction 132 void *address, Instr insn) in PatchInstruction() 135 return signer->PatchInstruction(CAST_TO_BYTES(address), insn); in PatchInstruction() 153 * @brief Patch data at address 155 * @param address address o 131 PatchInstruction(JitCodeSignerBase *signer, void *address, Instr insn) PatchInstruction() argument 160 PatchData(JitCodeSignerBase *signer, void *address, const void *const data, uint32_t size) PatchData() argument [all...] |
/base/telephony/core_service/utils/vcard/include/contact_data/ |
H A D | vcard_email_data.h | 30 std::string &address, const std::string &labelId, std::string &labelName, std::string &displayName); 32 void SetAddress(const std::string &address);
|
/base/telephony/cellular_data/services/src/utils/ |
H A 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 std::vector<AddressInfo> CellularDataUtils::ParseNormalIpAddr(const std::string &address) in ParseNormalIpAddr() argument 56 std::vector<std::string> ipArray = Split(address, " "); in ParseNormalIpAddr() 72 std::vector<RouteInfo> CellularDataUtils::ParseRoute(const std::string &address) in ParseRoute() argument 75 std::vector<std::string> routeArray = Split(address, " "); in ParseRoute()
|
/base/telephony/sms_mms/frameworks/native/mms/src/ |
H A D | mms_msg.cpp | 142 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/customization/enterprise_device_management/common/native/src/plugin_utils/ |
H A D | message_parcel_utils.cpp | 44 WriteIpAddress(data, config.wifiIpConfig.staticIpAddress.ipAddress.address); in WriteWifiDeviceConfig() 70 void MessageParcelUtils::WriteIpAddress(MessageParcel &data, const Wifi::WifiIpAddress &address) in WriteIpAddress() argument 72 data.WriteInt32(address.family); in WriteIpAddress() 73 data.WriteUint32(address.addressIpv4); in WriteIpAddress() 74 size_t size = address.addressIpv6.size(); in WriteIpAddress() 77 data.WriteUint8(address.addressIpv6[i]); in WriteIpAddress() 106 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 in ReadIpAddress() [all...] |
/base/telephony/sms_mms/test/unittest/ |
H A D | cdma_sms_test.cpp | 453 cout << " address : " << endl; in PrintMsg() 454 PrintAddr(msg.data.p2p.address); in PrintMsg() 472 cout << " address : " << endl; in PrintMsg() 473 PrintAddr(msg.data.ack.address); in PrintMsg() 605 std::cout << "Please enter the address: " << std::endl; in TestEncodeCancelMsg() 606 std::string address; in TestEncodeCancelMsg() local 607 std::cin >> address; in TestEncodeCancelMsg() local 613 msg.data.p2p.address.addrLen = address.length(); in TestEncodeCancelMsg() 614 if (memcpy_s(msg.data.p2p.address in TestEncodeCancelMsg() 629 std::string address; TestEncodeDeliverReportMsg() local 630 std::cin >> address; TestEncodeDeliverReportMsg() local 664 std::string address; TestEncodeAckMsg() local 665 std::cin >> address; TestEncodeAckMsg() local [all...] |
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
H A D | dfx_xz_utils.cpp | 32 static void XzFree(ISzAllocPtr, void *address) in XzFree() argument 34 free(address); in XzFree()
|
/base/customization/enterprise_device_management/common/native/include/plugin_utils/ |
H A D | message_parcel_utils.h | 37 static void WriteIpAddress(MessageParcel &data, const Wifi::WifiIpAddress &address); 43 static void ReadIpAddress(MessageParcel &data, Wifi::WifiIpAddress &address);
|