Home
last modified time | relevance | path

Searched refs:re (Results 1 - 25 of 36) sorted by relevance

12

/foundation/communication/bluetooth_service/services/bluetooth/service/src/ble/
H A Dble_utils.cpp59 std::default_random_engine re(rd()); in Rand16hex()
64 result = random_value(re); in Rand16hex()
76 std::default_random_engine re(rd()); in GetRandomAddress()
80 addr.push_back(random_value(re) & 0xff); in GetRandomAddress()
84 addr.push_back(random_value(re) & BLE_NON_RES_PRI_ADDR); in GetRandomAddress()
86 addr.push_back((random_value(re) & 0xff) | BLE_STATIC_PRI_ADDR); in GetRandomAddress()
/foundation/ability/idl_tool/test/sa_test/
H A Dcmd_dump_metadata.py19 import re namespace
38 output_string = re.sub(r'"size_" : "\d+"', '"size_" : "0"', result)
39 output_string = re.sub(r'"stringPoolSize_" : "\d+"', '"stringPoolSize_" : "0"', output_string)
H A Dtest_base.py21 import re namespace
139 lhd_obj = re.search(fail_template, result_line)
140 rhd_obj = re.search(fail_template, target_line)
/foundation/resourceschedule/memmgr/services/memmgrservice/src/reclaim_strategy_manager/
H A Davail_buffer_manager.cpp139 std::regex re("SwapTotal:[[:s:]]*([[:d:]]+) kB[[:s:]]*"); in UpdateZramEnableFromKernel()
141 if (std::regex_search(content, res, re)) { in UpdateZramEnableFromKernel()
164 std::regex re("MemTotal:[[:s:]]*([[:d:]]+) kB[[:s:]]*"); in UpdateMemTotalFromKernel()
166 if (std::regex_search(content, res, re)) { in UpdateMemTotalFromKernel()
H A Dmemcg.cpp153 std::regex re(".*Anon:[[:s:]]*([[:d:]]+) kB[[:s:]]*" in UpdateMemInfoFromKernel()
157 if (!std::regex_match(content, res, re)) { in UpdateMemInfoFromKernel()
158 HILOGI("re not match. %{public}s", content.c_str()); in UpdateMemInfoFromKernel()
270 std::regex re("memcg score:[[:s:]]*([[:d:]]+)[[:s:]]*" in ReadScoreAndReclaimRatiosFromKernel_()
275 if (!std::regex_match(content, res, re)) { in ReadScoreAndReclaimRatiosFromKernel_()
276 HILOGI("re not match. %{public}s", content.c_str()); in ReadScoreAndReclaimRatiosFromKernel_()
/foundation/multimodalinput/input/service/libinput_adapter/src/
H A Dlibinput_adapter.cpp120 std::regex re("(\\d+)");
124 if (std::regex_search(str_path, match, re)) {
225 std::regex re("(\\d+)"); in OnDeviceAdded()
229 if (std::regex_search(str_path, match, re)) { in OnDeviceAdded()
250 std::regex re("(\\d+)"); in OnDeviceRemoved()
254 if (std::regex_search(str_path, match, re)) { in OnDeviceRemoved()
/foundation/arkui/ace_engine/build/tools/
H A Dgen_uicontext_ohos.py16 import re namespace
36 class_name = re.match(r"class\s+(\w+)", line).group(1)
/foundation/ability/idl_tool/test/hdi_unittest/base/
H A Dutil.py22 import re namespace
57 obj_lhd = re.search(ast_templage, line_lhd)
58 obj_rhd = re.search(ast_templage, line_rhd)
199 lhd_obj = re.search(fail_template, result_line)
200 rhd_obj = re.search(fail_template, target_line)
/foundation/resourceschedule/ffrt/tools/ffrt_trace_process/
H A Dffrt_trace_recover.py18 import re namespace
29 m = re.search(r" (\d+)\.(\d+): ", log)
42 m = re.search(r"\) \[.*\]", log)
84 index = re.search("\(.+\)\s+\[\d", fake_log).span()[0]
122 index = re.search("\(.+\)\s+\[\d", fake_log).span()[0]
177 match = re.search(" \(.+\)\s+\[\d", log)
198 indexs = [m.span()[0] for m in re.finditer("\S+-\d+\s+\(", log)]
289 if re.search(r" F\|(\d+)\|Co\|(\d+)", mark) is not None or \
290 re.search(r" F\|(\d+)\|H:Co\s(\d+)", mark) is not None:
306 if re
[all...]
H A Dffrt_trace_process.py20 import re namespace
50 m = re.search(r"\(\s*\d+\) \[", log)
65 m = re.search(r"\) \[.*\]", log)
78 m = re.search(r" (\d+)\.(\d+): ", log)
91 m = re.search(r" [FB]\|(\d+)\|(.+)\|(\d+)", log)
98 m = re.search(r" F\|(\d+)\|(\S+)\s(\d+)", log)
682 match = re.finditer("\S+-\d+\s+\(", log)
/foundation/communication/netmanager_ext/services/ethernetmanager/src/
H A Dethernet_management.cpp62 std::regex re(IFACE_MATCH); in OnInterfaceAdded()
63 if (std::regex_search(iface, re)) { in OnInterfaceAdded()
74 std::regex re(IFACE_MATCH); in OnInterfaceRemoved()
75 if (std::regex_search(iface, re)) { in OnInterfaceRemoved()
92 std::regex re(IFACE_MATCH); in OnInterfaceLinkStateChanged()
93 if (std::regex_search(ifName, re)) { in OnInterfaceLinkStateChanged()
188 std::regex re(IFACE_MATCH); in GetMacAddress()
195 if (std::regex_search(iface, re)) { in GetMacAddress()
396 std::regex re(IFACE_MATCH); in Init()
409 if (!std::regex_search(devName, re)) { in Init()
[all...]
H A Dethernet_configuration.cpp126 std::regex re(IFACE_MATCH); in ReadEthernetInterfaces()
127 if (cJSON_GetObjectItem(item, CONFIG_KEY_ETH_IP.c_str()) && std::regex_search(iface, re)) { in ReadEthernetInterfaces()
212 std::regex re(IFACE_MATCH); in ReadUserConfiguration()
213 if (!iface.empty() && std::regex_search(iface, re)) { in ReadUserConfiguration()
/foundation/filemanagement/app_file_service/tools/backup_tool/src/
H A Dtools_op.cpp51 std::regex re(pattern); in Register()
52 if (std::regex_search(string(subOp), re)) { in Register()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/include/
H A Dcloud_ext_types.h544 int OhCloudExtRelationSetGetBundleName(const OhCloudExtRelationSet *re, unsigned char **name, unsigned int *len);
549 int OhCloudExtRelationSetGetExpireTime(const OhCloudExtRelationSet *re, unsigned long long *time);
557 int OhCloudExtRelationSetGetRelations(const OhCloudExtRelationSet *re, OhCloudExtHashMap **relations);
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_border.cpp629 auto re = Drawing::Rect( in DrawTopBorder() local
635 topBorder.ArcTo(re.GetLeft(), re.GetTop(), re.GetRight(), re.GetBottom(), TOP_END, SWEEP_ANGLE); in DrawTopBorder()
657 auto re = Drawing::Rect(x - endArcWidth, height - BOTTOMW2 - endArcHeight, x, height - BOTTOMW2); in DrawRightBorder() local
662 rightBorder.ArcTo(re.GetLeft(), re.GetTop(), re.GetRight(), re in DrawRightBorder()
685 auto re = Drawing::Rect(x, y - endArcHeight, x + endArcWidth, y); DrawBottomBorder() local
713 auto re = Drawing::Rect(x, y, x + endArcWidth, y + endArcHeight); DrawLeftBorder() local
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/property/
H A Drs_property_trace.cpp82 std::regex re(separator); in SplitStringBySeparator()
83 std::sregex_token_iterator pos(str.begin(), str.end(), re, -1); in SplitStringBySeparator()
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/rust/ylong_cloud_extension/src/c_adapter/
H A Dcloud_extension.rs159 VectorCffi::CloudAsset(re) => re,
203 VectorCffi::CloudAsset(re) => re,
303 HashMapCffi::Value(re) => re,
H A Dcloud_ext_types.rs1036 let re = HashMap::default();
1037 let relation = cloud_service::RelationSet::new(name, expire_time, re);
1045 HashMapCffi::String(re) => {
1046 let relation = cloud_service::RelationSet::new(name, expire_time, re);
1118 pub unsafe extern "C" fn OhCloudExtRelationSetFree(re: *mut OhCloudExtRelationSet) {
1119 let _ = OhCloudExtRelationSet::from_ptr(re, SafetyCheckId::RelationSet);
/foundation/arkui/ace_engine/frameworks/core/components_ng/event/
H A Dgesture_event_hub.cpp600 const auto re = AceType::DynamicCast<ClickRecognizer>(recognizer); in AccessibilityRecursionSearchRecognizer()
601 if (re != nullptr && re->GetFingers() == 1 && re->GetCount() == 1) { in AccessibilityRecursionSearchRecognizer()
610 const auto re = AceType::DynamicCast<T>(recognizer); in AccessibilityRecursionSearchRecognizer() local
611 if (re != nullptr && CheckRecognizer(recognizer)) { in AccessibilityRecursionSearchRecognizer()
612 return re; in AccessibilityRecursionSearchRecognizer()
628 const auto& re = AccessibilityRecursionSearchRecognizer<T>(recognizer); in GetAccessibilityRecognizer() local
629 if (re != nullptr) { in GetAccessibilityRecognizer()
630 return re; in GetAccessibilityRecognizer()
[all...]
/foundation/distributeddatamgr/pasteboard/framework/innerkits/src/
H A Dpasteboard_web_controller.cpp121 std::regex re(IMG_TAG_SRC_PATTERN);
126 while (std::regex_search(iterStart, iterEnd, match, re)) {
/foundation/ability/ability_runtime/test/fuzztest/abilityappmgrapprunningmanager_fuzzer/
H A Dabilityappmgrapprunningmanager_fuzzer.cpp97 std::regex re; in DoSomethingInterestingWithMyAPIadda() local
98 manager->ClipStringContent(re, jsonStr, jsonStr); in DoSomethingInterestingWithMyAPIadda()
/foundation/communication/ipc/ipc/native/test/unittest/common/
H A Dipc_hitrace_unittest.cpp91 FILE *fp = popen("/system/bin/hilog -x -z 4096", "re"); in BinderTraceGetRemainLog()
128 std::regex re(checkItem); in BinderTraceCheckLog()
132 if (std::regex_search(str, re) == true && str.find(chainId) != std::string::npos) { in BinderTraceCheckLog()
/foundation/multimedia/av_codec/test/moduletest/vcodec/hwdecoder/src/InnerAPI/
H A Dvideodec_ndk_inner_sample.cpp652 int re = strcmp(source[i], std); in MdCompare() local
653 if (re != 0) { in MdCompare()
/foundation/multimedia/av_codec/test/moduletest/vcodec/swdecoder/src/InnerAPI/
H A Dvideodec_ndk_inner_sample.cpp719 int re = strcmp(source[i], std); in MdCompare() local
720 if (re != 0) { in MdCompare()
/foundation/resourceschedule/memmgr/common/src/
H A Dkernel_interface.cpp439 std::regex re(".*Uid:[[:s:]]*([[:d:]]+)[[:s:]]*([[:d:]]+)[[:s:]]*([[:d:]]+)[[:s:]]*([[:d:]]+).*"); in GetUidByPid()
441 if (!std::regex_match(content, res, re)) { in GetUidByPid()
442 HILOGD("re not match. %{public}s", content.c_str()); in GetUidByPid()

Completed in 33 milliseconds

12