/foundation/communication/netmanager_base/services/netmanagernative/src/netsys/ |
H A D | net_diag_wrapper.cpp | 134 std::smatch match; in GetRouteTable() local 135 if (!std::regex_search(line, match, routeRegex)) { in GetRouteTable() 138 ExtractRouteTableInfo(match, routeTables); in GetRouteTable() 178 std::smatch match; in GetSocketsInfo() local 179 if (std::regex_search(line, match, netProtoRegex)) { in GetSocketsInfo() 180 ExtractNetProtoSocketsInfo(match, socketsInfo); in GetSocketsInfo() 184 if (std::regex_search(line, match, unixRegex)) { in GetSocketsInfo() 185 ExtractUnixSocketsInfo(match, socketsInfo); in GetSocketsInfo() 210 std::smatch match; in GetInterfaceConfig() local 216 if (std::regex_search(line, match, nameRege in GetInterfaceConfig() 377 std::smatch match; ExtractPingResult() local 400 ExtractPingHeader(const std::smatch &match, NetDiagPingResult &pingResult) ExtractPingHeader() argument 419 ExtractIcmpSeqInfo(const std::smatch &match, NetDiagPingResult &pingResult) ExtractIcmpSeqInfo() argument 443 ExtractPingStatistics(const std::smatch &match, NetDiagPingResult &pingResult) ExtractPingStatistics() argument 457 ExtractRouteTableInfo(const std::smatch &match, std::list<NetDiagRouteTable> &routeTables) ExtractRouteTableInfo() argument 487 ExtractNetProtoSocketsInfo(const std::smatch &match, NetDiagSocketsInfo &socketsInfo) ExtractNetProtoSocketsInfo() argument 518 ExtractUnixSocketsInfo(const std::smatch &match, NetDiagSocketsInfo &socketsInfo) ExtractUnixSocketsInfo() argument 545 ExtractIfaceName(const std::smatch &match, NetDiagIfaceConfig &ifaceInfo) ExtractIfaceName() argument 569 ExtractIfaceInet(const std::smatch &match, NetDiagIfaceConfig &ifaceInfo) ExtractIfaceInet() argument 589 ExtractIfaceInet6(const std::smatch &match, NetDiagIfaceConfig &ifaceInfo) ExtractIfaceInet6() argument 599 ExtractIfaceMtu(const std::smatch &match, NetDiagIfaceConfig &ifaceInfo) ExtractIfaceMtu() argument 611 ExtractIfaceTxQueueLen(const std::smatch &match, NetDiagIfaceConfig &ifaceInfo) ExtractIfaceTxQueueLen() argument 624 ExtractIfaceTransDataBytes(const std::smatch &match, NetDiagIfaceConfig &ifaceInfo) ExtractIfaceTransDataBytes() argument [all...] |
/foundation/ability/ability_base/interfaces/kits/native/want/src/ |
H A D | patterns_matcher.cpp | 82 * @return Returns either a valid match constant. 84 bool PatternsMatcher::match(std::string match) in match() argument 86 return MatchPattern(pattern_, match, type_); in match() 93 * @param match The full data string to match against. 96 * @return Returns either a valid match constant. 98 bool PatternsMatcher::MatchPattern(std::string pattern, std::string match, MatchType type) in MatchPattern() argument 100 if (match.empty()) { in MatchPattern() 105 return pattern == match; in MatchPattern() 132 GlobPattern(std::string pattern, std::string match) GlobPattern() argument [all...] |
/foundation/communication/netmanager_base/services/netmanagernative/include/netsys/ |
H A D | net_diag_wrapper.h | 55 void ExtractPingHeader(const std::smatch &match, NetDiagPingResult &pingResult); 56 void ExtractIcmpSeqInfo(const std::smatch &match, NetDiagPingResult &pingResult); 57 void ExtractPingStatistics(const std::smatch &match, NetDiagPingResult &pingResult); 58 void ExtractRouteTableInfo(const std::smatch &match, std::list<NetDiagRouteTable> &routeTables); 59 void ExtractNetProtoSocketsInfo(const std::smatch &match, NetDiagSocketsInfo &socketsInfo); 60 void ExtractUnixSocketsInfo(const std::smatch &match, NetDiagSocketsInfo &socketsInfo); 61 void ExtractIfaceName(const std::smatch &match, NetDiagIfaceConfig &ifaceInfo); 62 void ExtractIfaceInet(const std::smatch &match, NetDiagIfaceConfig &ifaceInfo); 63 void ExtractIfaceInet6(const std::smatch &match, NetDiagIfaceConfig &ifaceInfo); 64 void ExtractIfaceMtu(const std::smatch &match, NetDiagIfaceConfi [all...] |
/foundation/ability/ability_base/test/unittest/want/ |
H A D | patterns_matcher_test.cpp | 121 EXPECT_EQ(PatternsMatcherIn_->match("abcdefg"), true); in HWTEST_F() 122 EXPECT_EQ(PatternsMatcherIn_->match("Abcdefg"), false); in HWTEST_F() 135 EXPECT_EQ(PatternsMatcherIn_->match("abcdefgABCDEFG"), true); in HWTEST_F() 136 EXPECT_EQ(PatternsMatcherIn_->match("AbcdefgABCDEFG"), false); in HWTEST_F() 149 EXPECT_EQ(PatternsMatcherIn_->match("abcdefgG"), true); in HWTEST_F() 150 EXPECT_EQ(PatternsMatcherIn_->match("abcccccdefgG"), true); in HWTEST_F() 151 EXPECT_EQ(PatternsMatcherIn_->match("abcdefg"), false); in HWTEST_F() 152 EXPECT_EQ(PatternsMatcherIn_->match("ABCDEFG"), false); in HWTEST_F() 165 EXPECT_EQ(PatternsMatcherIn_->match("abcABC123"), true); in HWTEST_F() 166 EXPECT_EQ(PatternsMatcherIn_->match("abcdefgABCDEFG12 in HWTEST_F() [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/media/v4l2-core/ |
H A D | v4l2-async.c | 59 return client && asd->match.i2c.adapter_id == client->adapter->nr && asd->match.i2c.address == client->addr; in match_i2c() 67 return !strcmp(asd->match.device_name, dev_name(sd->dev)); in match_devname() 83 if (sd->fwnode == asd->match.fwnode) { in match_fwnode() 89 * endpoint or a device. If they're of the same type, there's no match. in match_fwnode() 93 * match unconnected endpoints. in match_fwnode() 96 asd_fwnode_is_ep = fwnode_graph_is_endpoint(asd->match.fwnode); in match_fwnode() 107 other_fwnode = asd->match.fwnode; in match_fwnode() 109 dev_fwnode = fwnode_graph_get_port_parent(asd->match.fwnode); in match_fwnode() 120 * We have a heterogeneous match in match_fwnode() [all...] |
/foundation/multimodalinput/input/service/libinput_adapter/src/ |
H A D | libinput_adapter.cpp | 122 std::smatch match; 124 if (std::regex_search(str_path, match, re)) { 125 id = std::stoi(match[0]); 227 std::smatch match; in OnDeviceAdded() local 229 if (std::regex_search(str_path, match, re)) { in OnDeviceAdded() 230 id = std::stoi(match[0]); in OnDeviceAdded() 252 std::smatch match; in OnDeviceRemoved() local 254 if (std::regex_search(str_path, match, re)) { in OnDeviceRemoved() 255 id = std::stoi(match[0]); in OnDeviceRemoved()
|
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/include/ |
H A D | bcmnvram.h | 131 * @param name name of variable to match 132 * @param match value to compare against value of variable 134 * to match or FALSE otherwise 137 nvram_match(const char *name, const char *match) in nvram_match() argument 143 * resulting in 'match' being an unused parameter. in nvram_match() 144 * Make a ref to 'match' to quiet the compiler warning. in nvram_match() 147 BCM_REFERENCE(match); in nvram_match() 149 return (value && !strcmp(value, match)); in nvram_match() 154 * @param name name of variable to match 156 * @param match valu 161 nvram_match_bitflag(const char *name, const int bit, const char *match) nvram_match_bitflag() argument [all...] |
/foundation/ability/ability_base/interfaces/kits/native/want/include/ |
H A D | patterns_matcher.h | 70 * @return Returns either a valid match constant. 72 bool match(std::string str); 78 * @param match The full data string to match against. 81 * @return Returns either a valid match constant. 83 static bool MatchPattern(std::string pattern, std::string match, MatchType type); 108 * @param match The full data string to match against. 110 * @return Returns either a valid match constant. 112 static bool GlobPattern(std::string pattern, std::string match); [all...] |
/test/testfwk/xdevice/plugins/ohos/src/ohos/parser/ |
H A D | c_parser_lite.py | 79 return re.match(r"[\s\S]*(Tests)[\s\S]*(Failures)[\s\S]*(Ignored)[\s\S]*", line) 82 return re.match("{}{}".format(self.pattern, _CTEST_SUITE_TEST_RUN_TAG), 86 return re.match("{}{}".format(self.pattern, _CTEST_SUITE_TIME_RUN_TAG), 90 _, message_index = re.match( 97 return re.match( 112 test_matcher = re.match(r".*(\d+ Tests).+", line) 114 re.match(r".*(Failures).*", line) 116 re.match(r".*(Ignored).*", line) 152 end_time = re.match(self.pattern, message).group().strip() 153 start_time = re.match(sel [all...] |
H A D | oh_rust_parser.py | 53 matcher = re.match(self.running_pattern, line) 58 matcher = re.match(self.test_result_pattern, line) 64 matcher = re.match(self.test_pattern, line) 69 matcher = re.match(self.stout_pattern, line)
|
H A D | cpp_parser.py | 85 if re.match(pattern, line.strip()): 87 elif re.match(r'(\d+) test[s]? from (.*)', message): 171 matcher = re.match(r'(.*) \((\d+) ms\)', message) 225 matcher = re.match(r'Running (\d+) test[s]? from .*', message) 238 matcher = re.match(r'(\d+) test[s]? from (.*)', message) 253 matcher = re.match(r'.*\((\d+) ms total\)', message) 263 matcher = re.match(r'.*\((\d+) ms total\)', message) 344 class_matcher = re.match('^([a-zA-Z]+.*)\\.$', line) 345 method_matcher = re.match('\\s+([a-zA-Z_]+[\\S]*)(.*)?(\\s+.*)?$',
|
H A D | jsunit_parser.py | 85 (year, re.match(self.pattern, message).group().strip()) 87 (year, re.match(self.pattern, 96 match = re.match(pattern, filter_message) 97 _, status_end_index = match.span() 106 status = status_dict.get(match.group(1)) 178 m_result = re.match(r".*\[suite start](.+), total cases: (\d+)", 187 if re.match(r".*\[suite start].*", message): 188 _, index = re.match(r".*\[suite start]", message).span()
|
/foundation/resourceschedule/ffrt/tools/ffrt_trace_process/ |
H A D | ffrt_trace_process.py | 54 match = m.group() 55 if '-' in match: 58 return int(match.split(')')[0].lstrip('(')) 69 match = m.group() 71 return int(match.split(']')[0].split('[')[-1]) 82 match = m.group() 84 return int(match.strip().split('.')[0]) * int(1e6) + int(match.strip().rstrip(':').split('.')[-1]) 94 match = m.group() 96 return (match [all...] |
/device/soc/rockchip/common/vendor/drivers/rockchip/ |
H A D | grf.c | 208 const struct of_device_id *match;
in rockchip_grf_init() local 213 np = of_find_matching_node_and_match(NULL, rockchip_grf_dt_match, &match);
in rockchip_grf_init() 217 if (!match || !match->data) {
in rockchip_grf_init() 222 grf_info = match->data;
in rockchip_grf_init()
|
/device/soc/rockchip/common/sdk_linux/drivers/soc/rockchip/ |
H A D | grf.c | 208 const struct of_device_id *match;
in rockchip_grf_init() local 213 np = of_find_matching_node_and_match(NULL, rockchip_grf_dt_match, &match);
in rockchip_grf_init() 217 if (!match || !match->data) {
in rockchip_grf_init() 223 grf_info = match->data;
in rockchip_grf_init()
|
/foundation/arkui/ace_engine/frameworks/bridge/common/utils/ |
H A D | engine_helper.cpp | 115 std::pair<int32_t, int32_t> EngineHelper::StringToPair(const std::string& match) in StringToPair() argument 119 StringUtils::SplitStr(match, ":", arr); in StringToPair() 135 std::smatch match; in GetPositionOnJsCode() local 136 if (std::regex_search(stack, match, reg)) { in GetPositionOnJsCode() 137 return StringToPair(match[0].str()); in GetPositionOnJsCode()
|
/test/testfwk/xdevice/plugins/devicetest/utils/ |
H A D | util.py | 182 if re.match(rex, version): 197 match = re.search(r'(\d+\.\d+\.\d+\.\d+)', version_str) 198 if match: 199 return match.group(1) 349 match = re.search(r'File "(.*?)", line \d+, in (.+)', stack_line) 350 if match: 351 file_name = match.group(1).split(os.sep)[-1] 352 method_name = match.group(2).strip()
|
/device/soc/rockchip/rk3588/kernel/scripts/ |
H A D | mkbootimg | 200 match = re.search(r'^(\d{1,3})(?:\.(\d{1,3})(?:\.(\d{1,3}))?)?', x) 201 if match: 202 a = int(match.group(1)) 204 if match.lastindex >= 2: 205 b = int(match.group(2)) 206 if match.lastindex == 3: 207 c = int(match.group(3)) 217 match = re.search(r'^(\d{4})-(\d{2})(?:-(\d{2}))?', x) 218 if match: 219 y = int(match [all...] |
/device/soc/rockchip/common/sdk_linux/drivers/cpufreq/ |
H A D | cpufreq-dt-platdev.c | 403 const struct of_device_id *match; in cpufreq_dt_platdev_init() local 410 match = of_match_node(whitelist, np); in cpufreq_dt_platdev_init() 411 if (match) { in cpufreq_dt_platdev_init() 412 data = match->data; in cpufreq_dt_platdev_init()
|
/device/soc/rockchip/common/sdk_linux/drivers/regulator/ |
H A D | of_regulator.c | 319 * @matches: match table for the regulators 320 * @num_matches: number of entries in match table 322 * This function uses a match table specified by the regulator driver to 327 * or otherwise the child node's name. Note that the match table is modified 357 struct of_regulator_match *match = &matches[i]; in of_regulator_match() local 358 match->init_data = NULL; in of_regulator_match() 359 match->of_node = NULL; in of_regulator_match() 369 struct of_regulator_match *match = &matches[i]; in of_regulator_match() local 370 if (match->of_node) { in of_regulator_match() 374 if (strcmp(match in of_regulator_match() [all...] |
/test/xts/acts/pcs/pcs_py/ |
H A D | testRealRandomGenerate.py | 43 if not re.match(pattern, randomNumber): 45 assert re.match(pattern, randomNumber)
|
/test/testfwk/arkxtest/uitest/test/ |
H A D | ui_driver_test.cpp | 300 bool match = true; in TEST_F() 301 match = match && window.bundleName_ == filterBundle["bundleName"].get<string>(); in TEST_F() 302 return match; in TEST_F() 312 bool match = true; in TEST_F() 313 match = match && window.bundleName_ == filterBundleNotFind["bundleName"].get<string>(); in TEST_F() 314 return match; in TEST_F() 375 bool match = true; in TEST_F() 376 match in TEST_F() [all...] |
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/accessor/src/ |
H A D | exif_metadata_formatter.cpp | 688 std::smatch match; in RationalFormat() local 689 if (!std::regex_search(value, match, pattern)) { in RationalFormat() 695 result += match.str() + "/1"; // appending '/1' to integer in RationalFormat() 696 value = match.suffix().str(); // skip handled value part in RationalFormat() 733 std::smatch match = *it; in DecimalRationalFormat() local 741 if (ValidRegex(match[0], "\\d+")) { in DecimalRationalFormat() 743 result += match.str() + "/1"; in DecimalRationalFormat() 745 if (ValidRegex(match[0], "\\d+\\.\\d+")) { in DecimalRationalFormat() 747 result += GetFractionFromStr(match[0]); in DecimalRationalFormat() 763 std::smatch match in ConvertRationalFormat() local 898 std::smatch match = *it; ValidRegexWithVersionFormat() local 924 std::smatch match = *it; ValidRegexWithChannelFormat() local 1384 std::smatch match = *i; ExtractValue() local [all...] |
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/engine_adapter/skia_adapter/ |
H A D | skia_runtime_effect.cpp | 37 std::smatch match;
in GlslToSksl() local 39 while (std::regex_search(searchStart, glsl.cend(), match, functionRegex)) {
in GlslToSksl() 40 childNames.emplace_back(match[1].str());
in GlslToSksl() 41 searchStart = match.suffix().first;
in GlslToSksl()
|
/foundation/multimodalinput/input/service/device_config/src/ |
H A D | device_config_file_parser.cpp | 107 std::smatch match; in ReadConfigFile() local 108 bool isNumber = std::regex_search(tmp, match, std::regex("\\d+")); in ReadConfigFile() 112 configList[ConfigItemName2Id(key)] = std::stoi(match[0]); in ReadConfigFile()
|