Home
last modified time | relevance | path

Searched refs:elem (Results 1 – 25 of 55) sorted by relevance

123

/ohos5.0/foundation/multimedia/av_codec/services/services/codec/ipc/
H A Dcodec_listener_stub.cpp108 elem.buffer->flag_, elem.buffer->pts_); in ReturnBufferToServer()
224 converter_->ReadFromBuffer(elem.buffer, elem.memory); in HitOutputCache()
235 elem.parameter->SetMeta(std::move(elem.buffer->meta_)); in UpdateInputCache()
236 elem.buffer->meta_ = elem.parameter->GetMeta(); in UpdateInputCache()
239 elem.parameter->SetMeta(std::move(elem.buffer->meta_)); in UpdateInputCache()
240 elem.buffer->meta_ = elem.parameter->GetMeta(); in UpdateInputCache()
245 AVBufferToAVSharedMemory(elem.buffer, elem.memory); in UpdateInputCache()
258 AVBufferToAVSharedMemory(elem.buffer, elem.memory); in UpdateOutputCache()
276 … return elem.buffer != nullptr && elem.parameter != nullptr && elem.attribute != nullptr; in CheckReadFromParcelResult()
411 elem.buffer->meta_ = elem.parameter->GetMeta(); in OnInputBufferAvailable()
[all …]
/ohos5.0/foundation/distributeddatamgr/preferences/test/native/unittest/
H A Dpreferences_xml_utils_test.cpp105 Element elem; variable
107 elem.tag_ = "int";
142 Element elem; variable
161 Element elem; variable
189 Element elem; variable
228 Element elem; variable
268 Element elem; variable
308 Element elem; variable
340 Element elem; variable
372 Element elem; variable
[all …]
H A Dpreferences_file_test.cpp80 Element elem; variable
81 elem.key_ = "intKey";
82 elem.tag_ = std::string("int");
83 elem.value_ = std::to_string(10);
84 settings.push_back(elem);
/ohos5.0/commonlibrary/rust/ylong_http/ylong_http/src/body/mime/decode/
H A Dpart.rs194 assert!(elem.is_complete()); in ut_mime_part_decoder_new_by_crlf()
206 assert!(elem.is_complete()); in ut_mime_part_decoder_new_by_crlf()
218 assert!(elem.is_complete()); in ut_mime_part_decoder_new_by_crlf()
245 assert!(elem.is_complete()); in ut_mime_part_decoder_new_by_lf()
257 assert!(elem.is_complete()); in ut_mime_part_decoder_new_by_lf()
269 assert!(elem.is_complete()); in ut_mime_part_decoder_new_by_lf()
290 assert!(elem.is_complete()); in ut_mime_part_decoder_decode()
316 assert!(elem.is_complete()); in ut_mime_part_decoder_no_headers_no_body()
339 assert!(!elem.is_complete()); in ut_decode_headers_decode_times()
344 assert!(!elem.is_complete()); in ut_decode_headers_decode_times()
[all …]
H A Dmulti.rs158 match elem { in unknown_decode()
203 match elem { in part_decode()
545 assert!(elem.is_complete()); in ut_mime_multi_decoder_new()
571 assert!(elem.is_complete()); in ut_mime_multi_decoder_one_part()
604 assert!(elem.is_complete()); in ut_mime_multi_decoder_one_part_no_headers()
636 assert!(elem.is_complete()); in ut_mime_multi_decoder_one_part_no_body()
669 assert!(elem.is_complete()); in ut_mime_multi_decoder_several_parts()
709 assert!(elem.is_complete()); in ut_mime_multi_decoder_several_parts_has_lwsp()
750 assert!(elem.is_complete()); in ut_mime_multi_decoder_nest()
791 assert!(elem.is_complete()); in ut_mime_multi_decoder_nest2()
[all …]
/ohos5.0/foundation/communication/netmanager_base/utils/common_utils/include/
H A Ddelayed_queue.h37 for (const auto &elem : elems_[index_]) { in DelayedQueue()
38 if (elem) { in DelayedQueue()
39 elem->Execute(); in DelayedQueue()
41 indexMap_.erase(elem); in DelayedQueue()
66 void Put(const std::shared_ptr<T> &elem) in Put() argument
69 if (indexMap_.find(elem) != indexMap_.end()) { in Put()
70 int oldIndex = indexMap_[elem]; in Put()
72 (elems_[oldIndex].find(elem) != elems_[oldIndex].end())) { in Put()
73 elems_[oldIndex].erase(elem); in Put()
77 elems_[index].insert(elem); in Put()
[all …]
/ohos5.0/foundation/distributeddatamgr/preferences/frameworks/native/src/
H A Dpreferences_impl.cpp313 elem.tag_ = GetTypeName<T>(); in Convert2Element()
317 elem.value_ = value; in Convert2Element()
319 elem.value_ = {}; in Convert2Element()
344 elem.tag_ = GetTypeName<Object>(); in Convert2Element()
345 elem.value_ = value.valueStr; in Convert2Element()
350 elem.tag_ = GetTypeName<BigInt>(); in Convert2Element()
383 Convert2Element(elem, value.value_); in WriteXmlElement()
391 Element elem; in WriteSettingXml() local
392 elem.key_ = it->first; in WriteSettingXml()
394 WriteXmlElement(elem, value); in WriteSettingXml()
[all …]
/ohos5.0/commonlibrary/c_utils/base/include/
H A Dsafe_block_queue.h58 virtual void Push(T const& elem) in Push() argument
67 queueT_.push(elem); in Push()
89 T elem = queueT_.front(); in Pop() local
92 return elem; in Pop()
105 virtual bool PushNoWait(T const& elem) in PushNoWait() argument
112 queueT_.push(elem); in PushNoWait()
192 virtual void Push(T const& elem) in Push() argument
202 queueT_.push(elem); in Push()
215 virtual bool PushNoWait(T const& elem) in PushNoWait() argument
222 queueT_.push(elem); in PushNoWait()
/ohos5.0/foundation/window/window_manager/wmserver/src/
H A Dwindow_layout_policy.cpp91 elem.second.posX_+ static_cast<int32_t>(elem.second.width_)); in UpdateDisplayGroupRect()
94 elem.second.posY_+ static_cast<int32_t>(elem.second.height_)); in UpdateDisplayGroupRect()
106 for (auto& elem : limitRectMap_) { in UpdateDisplayGroupLimitRect() local
112 elem.second.posX_+ static_cast<int32_t>(elem.second.width_)); in UpdateDisplayGroupLimitRect()
116 elem.second.posY_+ static_cast<int32_t>(elem.second.height_)); in UpdateDisplayGroupLimitRect()
188 for (auto& elem : displayRectMap) { in UpdateDisplayRectAndDisplayGroupInfo() local
189 auto& displayId = elem.first; in UpdateDisplayRectAndDisplayGroupInfo()
190 auto& displayRect = elem.second; in UpdateDisplayRectAndDisplayGroupInfo()
211 for (auto& elem : displayRectMap) { in ProcessDisplayCreate() local
271 for (auto& elem : displayRectMap) { in ProcessDisplaySizeChangeOrRotation() local
[all …]
H A Ddisplay_group_info.cpp58 for (auto& elem : displayRectMap) { in UpdateLeftAndRightDisplayId() local
59 auto& curDisplayRect = elem.second; in UpdateLeftAndRightDisplayId()
61 leftDisplayId_ = elem.first; in UpdateLeftAndRightDisplayId()
65 rightDisplayId_ = elem.first; in UpdateLeftAndRightDisplayId()
159 for (auto elem : displayInfosMap_) { in GetAllDisplayRects() local
160 auto& displayInfo = elem.second; in GetAllDisplayRects()
163 displayRectMap.insert(std::make_pair(elem.first, displayRect)); in GetAllDisplayRects()
H A Ddisplay_group_controller.cpp87 for (auto& elem : displayGroupWindowTree_) { in UpdateDisplayGroupWindowTree() local
88 for (auto& nodeVec : elem.second) { in UpdateDisplayGroupWindowTree()
153 for (auto& elem : displayRectMap) { in UpdateWindowShowingDisplays() local
154 auto& curDisplayRect = elem.second; in UpdateWindowShowingDisplays()
200 for (auto& elem : displayRectMap) { in UpdateWindowDisplayIdIfNeeded() local
201 auto& displayRect = elem.second; in UpdateWindowDisplayIdIfNeeded()
205 newDisplayId = elem.first; in UpdateWindowDisplayIdIfNeeded()
210 newDisplayId = elem.first; in UpdateWindowDisplayIdIfNeeded()
215 newDisplayId = elem.first; in UpdateWindowDisplayIdIfNeeded()
557 const auto& displayId = elem.first; in ProcessWindowPairWhenDisplayChange()
[all …]
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/hdi_interface/
H A Dwifi_hdi_common.c349 const struct HdiElem *elem; in HdiGetIe() local
355 HDI_CHECK_ELEMENT_BY_ID(elem, eid, ies, len) in HdiGetIe()
356 return &elem->id; in HdiGetIe()
368 const struct HdiElem *elem; in HdiBssGetVendorIe() local
370 if (elem->datalen >= HDI_POS_FOURTH && vendorType == HdiGetBe32(elem->data)) { in HdiBssGetVendorIe()
371 return &elem->id; in HdiBssGetVendorIe()
380 const struct HdiElem *elem; in HdiBssGetVendorBeacon() local
389 if (elem->datalen >= HDI_POS_FOURTH && vendorType == HdiGetBe32(elem->data)) { in HdiBssGetVendorBeacon()
390 return &elem->id; in HdiBssGetVendorBeacon()
702 const struct HdiElem *elem; in HdiGetIeExt() local
[all …]
H A Dwifi_hdi_util.c783 const struct HdiElem *elem; in Get80211ElemsFromIE() local
793 HDI_CHECK_ELEMENT(elem, start, len) { in Get80211ElemsFromIE()
794 if (elem == NULL) { in Get80211ElemsFromIE()
798 uint8_t id = elem->id, elen = elem->datalen; in Get80211ElemsFromIE()
799 const uint8_t *pos = elem->data; in Get80211ElemsFromIE()
1334 const struct HdiElem *elem; in GetScanResultInfoElem() local
1349 uint8_t id = elem->id, elen = elem->datalen; in GetScanResultInfoElem()
1436 const struct HdiElem *elem; in RouterSupportHiLinkByWifiInfo() local
1444 if (elem == NULL) { in RouterSupportHiLinkByWifiInfo()
1447 uint8_t id = elem->id, elen = elem->datalen; in RouterSupportHiLinkByWifiInfo()
[all …]
/ohos5.0/base/msdp/device_status/utils/common/src/
H A Dpreview_style_packer.cpp32 for (const auto &elem : previewStyle.types) { in Marshalling() local
33 types.push_back(static_cast<int32_t>(elem)); in Marshalling()
47 for (const auto &elem : types) { in UnMarshalling() local
48 previewStyle.types.push_back(static_cast<PreviewType>(elem)); in UnMarshalling()
/ohos5.0/foundation/communication/netmanager_ext/frameworks/native/netvpnclient/src/
H A Dvpn_config.cpp66 for (auto &elem : vec) { in MarshallingVectorString() local
67 if (!parcel.WriteString(elem)) { in MarshallingVectorString()
151 std::string elem; in UnmarshallingVectorString() local
152 if (!parcel.ReadString(elem)) { in UnmarshallingVectorString()
155 vec.push_back(elem); in UnmarshallingVectorString()
/ohos5.0/base/security/certificate_manager/interfaces/kits/napi/src/
H A Dcm_napi_common.cpp412 napi_value elem = nullptr; in GenerateCertInfo() local
413 NAPI_CALL(env, napi_create_object(env, &elem)); in GenerateCertInfo()
414 NAPI_CALL(env, napi_set_named_property(env, elem, CM_CERT_PROPERTY_URI.c_str(), cInfVal.uri)); in GenerateCertInfo()
415 …NAPI_CALL(env, napi_set_named_property(env, elem, CM_CERT_PROPERTY_CERTALIAS.c_str(), cInfVal.cert… in GenerateCertInfo()
416 …NAPI_CALL(env, napi_set_named_property(env, elem, CM_CERT_PROPERTY_STATUS.c_str(), cInfVal.status)… in GenerateCertInfo()
417 …NAPI_CALL(env, napi_set_named_property (env, elem, CM_CERT_PROPERTY_STATE.c_str(), cInfVal.status)… in GenerateCertInfo()
421 …NAPI_CALL(env, napi_set_named_property(env, elem, CM_CERT_PROPERTY_SERIAL.c_str(), cInfVal.serial)… in GenerateCertInfo()
422 …NAPI_CALL(env, napi_set_named_property(env, elem, CM_CERT_PROPERTY_BEFORE.c_str(), cInfVal.notBefo… in GenerateCertInfo()
423 …NAPI_CALL(env, napi_set_named_property(env, elem, CM_CERT_PROPERTY_AFTER.c_str(), cInfVal.notAfter… in GenerateCertInfo()
424 NAPI_CALL(env, napi_set_named_property(env, elem, CM_CERT_PROPERTY_FINGERSHA256.c_str(), in GenerateCertInfo()
[all …]
/ohos5.0/foundation/communication/wifi/wifi/frameworks/native/src/
H A Dwifi_scan_proxy.cpp262 WifiInfoElem elem; in GetScanInfo() local
263 elem.id = static_cast<uint32_t>(CheckDataLegal(tokens[dataRecvLen++])); in GetScanInfo()
266 elem.content.push_back(static_cast<char>(CheckDataLegal(tokens[dataRecvLen++]))); in GetScanInfo()
268 info.infoElems.push_back(elem); in GetScanInfo()
321 WifiInfoElem elem; in ParseScanInfosSmall() local
322 elem.id = reply.ReadInt32(); in ParseScanInfosSmall()
324 elem.content.resize(ieLen); in ParseScanInfosSmall()
326 elem.content[n] = static_cast<char>(reply.ReadInt32()); in ParseScanInfosSmall()
328 info.infoElems.push_back(elem); in ParseScanInfosSmall()
/ohos5.0/commonlibrary/ets_utils/js_concurrent_module/common/helper/
H A Dpath_helper.h149 std::string elem = entryPoint.substr(prev, curr - prev); in NormalizePath() local
150 if (elem == DOUBLE_POINT_TAG && entryPoint.at(curr) == SLASH_TAG in NormalizePath()
153 } else if (elem != POINT_TAG && elem != DOUBLE_POINT_TAG) { // remove ./ in NormalizePath()
154 elems.push_back(elem); in NormalizePath()
/ohos5.0/foundation/communication/netmanager_ext/services/mdnsmanager/src/
H A Dmdns_protocol_impl.cpp588 if (EndsWith(elem.first, name)) { in ProcessQuestionRecord()
590 AppendRecord(response.additional, DNSProto::RRTYPE_SRV, elem.first, in ProcessQuestionRecord()
594 .port = static_cast<uint16_t>(elem.second.port), in ProcessQuestionRecord()
597 … AppendRecord(response.additional, DNSProto::RRTYPE_TXT, elem.first, elem.second.txt); in ProcessQuestionRecord()
673 …std::find_if(results.begin(), results.end(), [&](const auto &elem) { return elem.serviceName == sr… in UpdatePtr() argument
681 …res = std::find_if(results.begin(), results.end(), [&](const auto &elem) { return elem.serviceName… in UpdatePtr() argument
902 auto &elem = cacheMap_[key]; in KillCache() local
903 if (elem.state == State::REMOVE) { in KillCache()
904 elem.state = State::DEAD; in KillCache()
906 } else if (elem.state == State::ADD || elem.state == State::REFRESH) { in KillCache()
[all …]
/ohos5.0/commonlibrary/c_utils/docs/zh-cn/
H A Dc-utils-guide-safe_block_queue.md20 | void | virtual **Push**(T const& elem)<br/>入队操作(阻塞版) |
21 | bool | virtual **PushNoWait**(T const& elem)<br/>入队操作(非阻塞版) |
36 | void | virtual **Push**(T const& elem)<br/>入队操作(阻塞版) |
37 | bool | virtual **PushNoWait**(T const& elem)<br/>入队操作(非阻塞版) |
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_scan_sa/
H A Dwifi_scan_stub.cpp241 for (const auto &elem : result[i].infoElems) { in SendScanInfo() local
242 scanInfoStream << elem.id << ";"; in SendScanInfo()
243 scanInfoStream << elem.content.size() << ";"; in SendScanInfo()
244 for (const auto &byte : elem.content) { in SendScanInfo()
284 for (const auto &elem : result[i].infoElems) { in SendScanInfoSmall() local
285 reply.WriteInt32(elem.id); in SendScanInfoSmall()
286 reply.WriteUint32(elem.content.size()); in SendScanInfoSmall()
287 for (const auto &byte : elem.content) { in SendScanInfoSmall()
/ohos5.0/base/sensors/sensor/vibration_convert/core/native/src/
H A Dvibration_convert_core.cpp354 for (auto &elem : envelope) { in GetLocalEnvelope() local
355 elem = std::fabs(elem); in GetLocalEnvelope()
359 if (elem < threshold) { in GetLocalEnvelope()
360 elem = 0; in GetLocalEnvelope()
727 elem = std::fabs(elem); in GetUnzeroCount()
728 if (elem < LOWER_AMP) { in GetUnzeroCount()
729 elem = 0; in GetUnzeroCount()
744 if (elem > 0) { in GetUnzeroCount()
796 for (auto &elem : zcr) { in DetectFrequency() local
797 elem = elem * SAMPLE_RATE * F_HALF; in DetectFrequency()
[all …]
/ohos5.0/base/request/request/frameworks/cj/ffi/src/
H A Dcj_request_common.cpp145 CHashStrPair *elem = &out.extras.headers[index++]; in Convert2CProgress() local
146 elem->key = MallocCString(iter->first); in Convert2CProgress()
147 elem->value = MallocCString(iter->second); in Convert2CProgress()
/ohos5.0/build/hb/containers/
H A Dstatus.py78 _solution = '\n\t\t'.join(str(elem) for elem in _solution)
/ohos5.0/drivers/hdf_core/adapter/uhdf2/host/test/unittest/sample_driver/
H A Dsample_hdi_service.cpp153 static size_t elem = static_cast<size_t>(element); in SampleServiceTansSmq() local
155 HDF_LOGI("SampleServiceTansSmq:smq read thread start, elem=%{public}zu", elem); in SampleServiceTansSmq()
157 size_t elemLocal = elem; in SampleServiceTansSmq()

123