Home
last modified time | relevance | path

Searched refs:data_ (Results 1 – 25 of 47) sorted by relevance

12

/base/telephony/sms_mms/services/sms/
Dsms_pdu_buffer.cpp28 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 …]
Dsms_send_indexer.cpp31 …: 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/
Draw_data.cpp33 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/
Draw_data.cpp33 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/
Dwebview_controller.h254 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/
Dcdma_sms_sub_parameter.cpp40 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/
Dnweb_value.h52 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/
Dfuzztest_helper.cpp82 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()
Dfuzztest_helper.h47 uint8_t data_[FUZZ_DATA_LEN] = {0}; variable
/base/hiviewdfx/hiview/test/plugins/examples/event_source_example/
Devent_source_example.h24 : 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
Devent_source_example.cpp181 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/
Dbundle_event_source_example.h26 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
Dbundle_event_source_example.cpp188 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/
Dtag_service.cpp40 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/
Dblock_data.h25 … 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/
Ddfx_memory_file.cpp43 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/
Dpasteboard_client_adapter_impl.cpp324 : 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/
Dgsm_sms_tpdu_encode.cpp58 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 …]
Dgsm_user_data_decode.cpp83 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()
Dgsm_user_data_encode.cpp167 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/
Dcommon_event_data.cpp32 : 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/
Dasync_callback_info.h65 return data_; in GetData()
73 AsyncData data_; variable
/base/powermgr/power_manager/frameworks/napi/utils/
Dasync_callback_info.h76 return data_; in GetData()
84 AsyncData data_; variable
/base/security/access_token/services/test/mock/aafwk/
Dmock_app_mgr_service.h97 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/
Draw_data.h46 uint8_t* data_ = nullptr;

12