/base/telephony/sms_mms/services/sms/ |
D | sms_pdu_buffer.cpp | 28 if (data_ != nullptr) { in ~SmsPduBuffer() 29 data_.reset(); in ~SmsPduBuffer() 35 return data_ == nullptr; in IsEmpty() 106 if (data_ == nullptr || index_ == 0) { in GetPduBuffer() 121 std::make_unique<std::vector<uint8_t>>(data_.get(), data_.get() + index_); in GetPduBuffer() 137 data_ = std::make_unique<uint8_t[]>(len); in SmsReadBuffer() 138 if (data_ == nullptr) { in SmsReadBuffer() 142 if (memset_s(data_.get(), len, 0x00, len) != EOK) { in SmsReadBuffer() 144 data_.reset(); in SmsReadBuffer() 145 data_ = nullptr; in SmsReadBuffer() [all …]
|
D | sms_send_indexer.cpp | 31 …: data_(std::vector<uint8_t>(data, data + dataLen)), scAddr_(scAddr), destAddr_(desAddr), destPort… in SmsSendIndexer() 224 return data_; in GetData() 229 data_ = data; in SetData() 234 data_ = std::forward<const std::vector<uint8_t>>(data); in SetData()
|
/base/hiviewdfx/hiview/base/event_raw/base/ |
D | raw_data.cpp | 33 data_ = new(std::nothrow) uint8_t[EXPAND_BUF_SIZE]; in RawData() 41 data_ = new(std::nothrow) uint8_t[EXPAND_BUF_SIZE]; in RawData() 46 data_ = new(std::nothrow) uint8_t[dataLen]; in RawData() 47 if (data_ == nullptr) { in RawData() 50 auto ret = memcpy_s(data_, dataLen, data, dataLen); in RawData() 65 data_ = new(std::nothrow) uint8_t[dataLen]; in RawData() 66 if (data_ == nullptr) { in RawData() 69 auto ret = memcpy_s(data_, dataLen, data.GetData(), dataLen); in RawData() 97 if (data_ != nullptr) { in operator =() 98 delete[] data_; in operator =() [all …]
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/encode/ |
D | raw_data.cpp | 33 data_ = new(std::nothrow) uint8_t[EXPAND_BUF_SIZE]; in RawData() 41 data_ = new(std::nothrow) uint8_t[EXPAND_BUF_SIZE]; in RawData() 46 data_ = new(std::nothrow) uint8_t[dataLen]; in RawData() 47 if (data_ == nullptr) { in RawData() 50 auto ret = memcpy_s(data_, dataLen, data, dataLen); in RawData() 64 data_ = new(std::nothrow) uint8_t[EXPAND_BUF_SIZE]; in RawData() 69 data_ = new(std::nothrow) uint8_t[dataLen]; in RawData() 70 if (data_ == nullptr) { in RawData() 73 auto ret = memcpy_s(data_, dataLen, rawData, dataLen); in RawData() 102 if (data_ != nullptr) { in operator =() [all …]
|
/base/web/webview/interfaces/kits/napi/webviewcontroller/ |
D | webview_controller.h | 254 explicit WebMessageExt(std::shared_ptr<NWebMessage> data) : data_(data) {}; in WebMessageExt() 292 if (data_) { in SetType() 293 data_->SetType(nwebType); in SetType() 339 if (data_) { in GetType() 340 return ConvertNwebType2JsType(data_->GetType()); in GetType() 347 if (data_) { in SetString() 348 data_->SetType(NWebValue::Type::STRING); in SetString() 349 data_->SetString(value); in SetString() 355 if (data_) { in SetNumber() 356 data_->SetType(NWebValue::Type::DOUBLE); in SetNumber() [all …]
|
/base/telephony/sms_mms/services/sms/cdma/ |
D | cdma_sms_sub_parameter.cpp | 40 CdmaSmsBaseParameter::CdmaSmsBaseParameter(uint8_t id, uint8_t &data) : data_(data) in CdmaSmsBaseParameter() 52 if (pdu.WriteByte(id_) && pdu.WriteByte(len_) && pdu.WriteByte(data_)) { in Encode() 65 return pdu.ReadByte(data_); in Decode() 343 CdmaSmsUserData::CdmaSmsUserData(SmsTeleSvcUserData &data, bool &headerInd) : data_(data), headerIn… in CdmaSmsUserData() 355 if (!pdu.WriteBits(static_cast<uint8_t>(data_.encodeType), BIT5)) { in Encode() 359 if (data_.encodeType == SmsEncodingType::EPM || data_.encodeType == SmsEncodingType::GSMDCS) { in Encode() 360 if (!pdu.WriteBits(data_.msgType, BIT8)) { in Encode() 365 … if (data_.encodeType == SmsEncodingType::ASCII_7BIT || data_.encodeType == SmsEncodingType::IA5) { in Encode() 370 } else if (data_.encodeType == SmsEncodingType::GSM7BIT) { in Encode() 375 } else if (data_.encodeType == SmsEncodingType::UNICODE) { in Encode() [all …]
|
/base/web/webview/ohos_nweb/include/ |
D | nweb_value.h | 52 bool GetBoolean() { return data_.b; } in GetBoolean() 54 void SetBoolean(bool b) { data_.b = b; } in SetBoolean() 60 void SetDouble(double dou) { data_.f = dou; } in SetDouble() 62 double GetDouble() { return data_.f; } in GetDouble() 64 void SetInt(int num) { data_.n = num; } in SetInt() 66 int GetInt() { return data_.n; } in GetInt() 80 data_union data_; variable
|
/base/update/updateservice/test/fuzztest/common/ |
D | fuzztest_helper.cpp | 82 if (memcpy_s(data_, sizeof(data_), data, sizeof(data_)) != EOK) { in TrySetData() 96 (static_cast<uint32_t>(data_[index_ + CHAR_TO_INT_INDEX0]) << in GetInt() 98 (static_cast<uint32_t>(data_[index_ + CHAR_TO_INT_INDEX1]) << in GetInt() 100 (static_cast<uint32_t>(data_[index_ + CHAR_TO_INT_INDEX2]) << in GetInt() 102 (static_cast<uint32_t>(data_[index_ + CHAR_TO_INT_INDEX3]) << in GetInt() 168 charArray[i] = static_cast<char>(data_[i + index_]); in GetCharArray() 179 number = (static_cast<uint32_t>(data_[index_ + CHAR_TO_INT_INDEX0]) << in GetUInt() 181 (static_cast<uint32_t>(data_[index_ + CHAR_TO_INT_INDEX1]) << in GetUInt() 183 (static_cast<uint32_t>(data_[index_ + CHAR_TO_INT_INDEX2]) << in GetUInt() 185 (static_cast<uint32_t>(data_[index_ + CHAR_TO_INT_INDEX3]) << in GetUInt()
|
D | fuzztest_helper.h | 47 uint8_t data_[FUZZ_DATA_LEN] = {0}; variable
|
/base/hiviewdfx/hiview/test/plugins/examples/event_source_example/ |
D | event_source_example.h | 24 : PipelineEvent(sender, handler), data_(nullptr), addon_(""){}; in EventSourceExampleEvent() 28 data_ = nullptr; in EventSourceExampleEvent() 39 data_ = nullptr; 46 if (data_ != nullptr) { in ~EventSourceExampleEvent() 47 free(data_); in ~EventSourceExampleEvent() 48 data_ = nullptr; in ~EventSourceExampleEvent() 53 char* data_; variable
|
D | event_source_example.cpp | 181 event->data_ = bufPtr; in CreateAndPublishEvent() 212 if (eventPtr == nullptr || eventPtr->data_ == nullptr) { in Recycle() 215 free(eventPtr->data_); in Recycle() 216 eventPtr->data_ = nullptr; in Recycle()
|
/base/hiviewdfx/hiview/test/plugins/examples_bundle/bundle_event_source_example/ |
D | bundle_event_source_example.h | 26 data_(nullptr), in BundleEventSourceExampleEvent() 31 data_ = nullptr; in BundleEventSourceExampleEvent() 42 data_ = nullptr; 49 if (data_ != nullptr) { in ~BundleEventSourceExampleEvent() 50 free(data_); in ~BundleEventSourceExampleEvent() 51 data_ = nullptr; in ~BundleEventSourceExampleEvent() 56 char* data_; variable
|
D | bundle_event_source_example.cpp | 188 if (eventPtr == nullptr || eventPtr->data_ == nullptr) { in Recycle() 191 free(eventPtr->data_); in Recycle() 192 eventPtr->data_ = nullptr; in Recycle()
|
/base/telephony/core_service/services/sim/src/ |
D | tag_service.cpp | 40 data_.push_back(res); in TagService() 44 TagService::TagService(const std::vector<uint8_t> &data) : data_(data) {} in TagService() 62 result.push_back(data_.at(dataOffset_ + i)); in GetValue() 122 if (!hasNext_ || offset_ >= data_.size()) { in Next() 130 for (; offset_ < data_.size(); ++offset_, ++order) { in Next() 131 const auto res = TagFunc(data_.at(offset_), order, tag_); in Next() 142 if (offset_ >= data_.size()) { in Next() 148 for (; offset_ < data_.size(); ++offset_, ++order) { in Next() 149 const auto res = LengthFunc(data_.at(offset_), order, length_); in Next() 162 if (offset_ > data_.size()) { in Next() [all …]
|
/base/inputmethod/imf/frameworks/common/ |
D | block_data.h | 25 … explicit BlockData(uint32_t interval, const T &invalid = T()) : INTERVAL(interval), data_(invalid) in INTERVAL() 37 data_ = data; in SetValue() 47 T data = data_; in GetValue() 55 data_ = invalid; 66 T data_; variable
|
/base/hiviewdfx/faultloggerd/frameworks/unwinder/ |
D | dfx_memory_file.cpp | 43 if (data_ != nullptr) { in Clear() 44 munmap(&data_[-offset_], size_ + offset_); in Clear() 45 data_ = nullptr; in Clear() 84 data_ = &reinterpret_cast<uint8_t*>(map)[offset_]; in Init() 94 return MemoryCopy(dst, data_, size, addr, size_); in Read()
|
/base/web/webview/ohos_adapter/pasteboard_adapter/src/ |
D | pasteboard_client_adapter_impl.cpp | 324 : data_(std::make_shared<PasteData>()) {} in PasteDataAdapterImpl() 327 std::shared_ptr<PasteData> data) : data_(data) {} in PasteDataAdapterImpl() 331 if (data_ != nullptr) { in AddHtmlRecord() 332 data_->AddHtmlRecord(html); in AddHtmlRecord() 338 if (data_ != nullptr) { in AddTextRecord() 339 data_->AddTextRecord(text); in AddTextRecord() 345 return (data_ != nullptr) ? data_->GetMimeTypes() : in GetMimeTypes() 351 return (data_ != nullptr) ? data_->GetPrimaryHtml() : nullptr; in GetPrimaryHtml() 356 return (data_ != nullptr) ? data_->GetPrimaryText() : nullptr; in GetPrimaryText() 361 return (data_ != nullptr) ? data_->GetPrimaryMimeType() : nullptr; in GetPrimaryMimeType() [all …]
|
/base/telephony/sms_mms/services/sms/gsm/ |
D | gsm_sms_tpdu_encode.cpp | 58 if (buffer.data_ == nullptr || (buffer.GetIndex() + position) > buffer.GetSize()) { in EncodeSubmitPdu() 62 … if (memcpy_s(buffer.data_.get() + buffer.GetIndex(), position, address.data(), position) != EOK) { in EncodeSubmitPdu() 80 if (buffer.data_ == nullptr || (buffer.GetIndex() + HEX_VALUE_01) > buffer.GetSize()) { in EncodeSubmitPduPartData() 85 …if (memcpy_s(buffer.data_.get() + buffer.GetIndex(), bufferLen, dcs.data(), HEX_VALUE_01) != EOK) { in EncodeSubmitPduPartData() 97 if (buffer.data_ == nullptr || (buffer.GetIndex() + position) > buffer.GetSize()) { in EncodeSubmitPduPartData() 101 … if (memcpy_s(buffer.data_.get() + buffer.GetIndex(), position, vpTime.data(), position) != EOK) { in EncodeSubmitPduPartData() 294 if (buffer.data_ == nullptr || (buffer.GetIndex() + length) > buffer.GetSize()) { in EncodeDeliverPartData() 298 if (memcpy_s(buffer.data_.get() + buffer.GetIndex(), length, address.data(), length) != EOK) { in EncodeDeliverPartData() 320 if (buffer.data_ == nullptr || (buffer.GetIndex() + HEX_VALUE_01) > buffer.GetSize()) { in EncodeDeliverData() 325 …if (memcpy_s(buffer.data_.get() + buffer.GetIndex(), bufferLen, dcs.data(), HEX_VALUE_01) != EOK) { in EncodeDeliverData() [all …]
|
D | gsm_user_data_decode.cpp | 83 if (buffer.data_ == nullptr) { in DecodeGsmHeadPdu() 87 … if (memcpy_s(pTPUD->ud, sizeof(pTPUD->ud), buffer.data_.get() + buffer.GetIndex(), len) != EOK) { in DecodeGsmHeadPdu() 191 if (buffer.data_ == nullptr || (buffer.GetIndex() + pTPUD->udl > buffer.GetSize())) { in Decode8bitPdu() 195 …if (memcpy_s(pTPUD->ud, sizeof(pTPUD->ud), buffer.data_.get() + buffer.GetIndex() + WAP_PUSH_USER_… in Decode8bitPdu() 244 if (buffer.data_ == nullptr || (buffer.GetIndex() + userData->length) > buffer.GetSize() + 1) { in Decode8bitPduPartData() 249 …if (memcpy_s(userData->data, sizeof(userData->data), buffer.data_.get() + buffer.GetIndex(), userD… in Decode8bitPduPartData() 279 if (buffer.data_ == nullptr) { in DecodeUcs2Pdu() 286 … if (memcpy_s(pTPUD->ud, sizeof(pTPUD->ud), buffer.data_.get() + buffer.GetIndex(), udl) != EOK) { in DecodeUcs2Pdu() 335 if (buffer.data_ == nullptr || (buffer.GetIndex() + userData->length > buffer.GetSize() + 1)) { in DecodeUcs2PduPartData() 339 …if (memcpy_s(userData->data, sizeof(userData->data), buffer.data_.get() + buffer.GetIndex(), userD… in DecodeUcs2PduPartData()
|
D | gsm_user_data_encode.cpp | 167 if (userData == nullptr || buffer.data_ == nullptr) { in Encode8bitBodyPdu() 181 …if (memcpy_s(buffer.data_.get() + buffer.GetIndex(), destLen, userData->data, userData->length) !=… in Encode8bitBodyPdu() 250 if (buffer.data_ == nullptr || (buffer.GetIndex() + userData->length) > buffer.GetSize()) { in EncodeUcs2BodyPdu() 255 …if (memcpy_s(buffer.data_.get() + buffer.GetIndex(), destLen, userData->data, userData->length) !=… in EncodeUcs2BodyPdu()
|
/base/notification/common_event_service/frameworks/native/src/ |
D | common_event_data.cpp | 32 : want_(want), code_(code), data_(data) in CommonEventData() 52 data_ = data; in SetData() 57 return data_; in GetData()
|
/base/powermgr/battery_statistics/frameworks/napi/include/ |
D | async_callback_info.h | 65 return data_; in GetData() 73 AsyncData data_; variable
|
/base/powermgr/power_manager/frameworks/napi/utils/ |
D | async_callback_info.h | 76 return data_; in GetData() 84 AsyncData data_; variable
|
/base/security/access_token/services/test/mock/aafwk/ |
D | mock_app_mgr_service.h | 97 data_ = data; in CheckPermissionImpl() 103 data_ = data; in KillApplicationImpl() 108 return data_; in GetData() 154 std::string data_; variable
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/encode/include/ |
D | raw_data.h | 46 uint8_t* data_ = nullptr;
|