Home
last modified time | relevance | path

Searched refs:match (Results 1 – 18 of 18) sorted by relevance

/base/startup/init/services/utils/
Dlist.c85 ListNode *match; in OH_ListAddWithOrder() local
91 match = head->next; in OH_ListAddWithOrder()
92 while ((match != NULL) && (match != head)) { in OH_ListAddWithOrder()
93 if (compareProc(match, item) > 0) { in OH_ListAddWithOrder()
96 match = match->next; in OH_ListAddWithOrder()
98 if (match == NULL) { in OH_ListAddWithOrder()
103 item->next = match; in OH_ListAddWithOrder()
104 item->prev = match->prev; in OH_ListAddWithOrder()
105 match->prev->next = item; in OH_ListAddWithOrder()
106 match->prev = item; in OH_ListAddWithOrder()
[all …]
/base/security/selinux_adapter/scripts/
Dbuild_contexts.py124 match = pattern.match(line_)
125 if match:
126 type_hash[match.group(1)].append(line_index)
191 match = pattern.match(line_)
192 if match:
194 line = match.group(1) + " u:r:" + match.group(4) + ":s0\n"
196 line = match.group(1) + " u:object_r:" + match.group(5) + ":s0\n"
Dbuild_policy_api.py266 match_type = pattern_type.match(line)
267 match_typeattribute = pattern_typeattribute.match(line)
/base/hiviewdfx/hilog/services/hilogd/
Dlog_buffer.cpp168 bool match = false; in LogMatchFilter() local
173 match = true; in LogMatchFilter()
177 if (filter.domainCount && match == filter.blackDomain) { in LogMatchFilter()
180 match = false; in LogMatchFilter()
184 match = true; in LogMatchFilter()
188 if (filter.tagCount && match == filter.blackTag) { in LogMatchFilter()
191 match = false; in LogMatchFilter()
195 match = true; in LogMatchFilter()
199 if (filter.pidCount && match == filter.blackPid) { in LogMatchFilter()
/base/web/webview/interfaces/inner_api/src/
Dweb_clipboard_controller.cpp117 std::smatch match; in SplitHtmlWithImgSrcLabel() local
123 while (std::regex_search(iterStart, iterEnd, match, re)) { in SplitHtmlWithImgSrcLabel()
124 std::string tmp = match[0]; in SplitHtmlWithImgSrcLabel()
125 iterStart = match[0].second; in SplitHtmlWithImgSrcLabel()
126 uint32_t offset = static_cast<uint32_t>(match[0].first - node.first.begin()); in SplitHtmlWithImgSrcLabel()
/base/security/selinux_adapter/interfaces/policycoreutils/src/
Dcontexts_trie.c162 ParamContextsTrie *match = childNode->childPtr; in SearchFromParamTrie() local
163 if (match->labeled == MATCH_LABELED) { in SearchFromParamTrie()
164 return match->matchLabel; in SearchFromParamTrie()
198 ParamContextsTrie *match = childNode->childPtr; in GetLabelIndex() local
199 if (match->labeled == MATCH_LABELED) { in GetLabelIndex()
200 return match->index; in GetLabelIndex()
/base/hiviewdfx/hitrace/test/unittest/hitrace_meter/
Dhitrace_ndk_test.cpp294 smatch match; in GetTraceResult() local
297 if (regex_match(list[i], match, pattern)) { in GetTraceResult()
298 param.m_task = match[TASK]; in GetTraceResult()
299 param.m_tid = match[TID]; in GetTraceResult()
300 param.m_tgid = match[TGID]; in GetTraceResult()
301 param.m_cpu = match[CPU]; in GetTraceResult()
302 param.m_dnh2 = match[DNH2]; in GetTraceResult()
303 param.m_timestamp = match[TIMESTAMP]; in GetTraceResult()
304 param.m_pid = match[PID]; in GetTraceResult()
305 if (match.size() == TRACE_FMA11) { in GetTraceResult()
[all …]
/base/global/i18n/frameworks/intl/src/
Dpreferred_language.cpp237 std::smatch match; in GetResources() local
238 bool found = regex_search(qualifiers[i], match, languagePattern); in GetResources()
242 std::string locale = match.str(1); in GetResources()
243 found = regex_search(qualifiers[i], match, countryPattern); in GetResources()
246 locale += match.str(1); in GetResources()
Di18n_timezone.cpp1264 std::smatch match; in FindTzData() local
1265 bool found = std::regex_search(path, match, reg); in FindTzData()
1267 bool hasVerison = std::regex_search(path, match, regVersion); in FindTzData()
1269 std::string version = match[0].str(); in FindTzData()
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/src/
Dsys_event_service_ohos.cpp49 bool MatchContent(int type, const string& rule, const string& match) in MatchContent() argument
51 if (match.empty()) { in MatchContent()
56 return rule.empty() || match.compare(rule) == 0; in MatchContent()
58 return rule.empty() || match.find(rule) == 0; in MatchContent()
62 return rule.empty() || regex_search(match, result, pattern); in MatchContent()
70 bool MatchEventType(int rule, int match) in MatchEventType() argument
72 return rule == INVALID_EVENT_TYPE || rule == match; in MatchEventType()
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
Dhap_parser.cpp308 bool &match, const ResConfigImpl *defaultConfig) in ParseKey() argument
334 match = IsLocaleMatch(defaultConfig, key->keyParams_); in ParseKey()
335 if (!match) { in ParseKey()
381 bool match = true; in ParseResHex() local
382 int32_t ret = ParseKey(buffer, offset, key, match, defaultConfig); in ParseResHex()
387 if (match) { in ParseResHex()
/base/useriam/face_auth/ui/Settings_FaceAuth/
Dhvigorw.bat47 echo Please set the NODE_HOME variable in your environment to match the
60 echo Please set the NODE_HOME variable in your environment to match the
/base/startup/init/ueventd/etc/
Dueventd.config51 /dev/match 0660 1000 1005
/base/global/resource_management/frameworks/resmgr/src/utils/
Dhap_parser.cpp497 bool &match, const ResConfigImpl *defaultConfig) in ParseKey() argument
566 bool match = true; in ParseResHex() local
567 int32_t ret = ParseKey(buffer, offset, key, match, defaultConfig); in ParseResHex()
572 if (match) { in ParseResHex()
/base/update/updater/test/unittest/test_data/applypatch/
DTestGZipModeImagePatch.old.gz
/base/telephony/sms_mms/frameworks/js/napi/src/
Dnapi_sms.cpp220 bool match = (parameterCount == 1) && NapiUtil::MatchParameters(env, parameters, {napi_object}); in MatchSendMessageParameters() local
221 if (!match) { in MatchSendMessageParameters()
338 bool match = false; in MatchSendShortMessageParameters() local
341 match = NapiUtil::MatchParameters(env, parameters, { napi_object }); in MatchSendShortMessageParameters()
345 match = NapiUtil::MatchParameters(env, parameters, { napi_object, napi_function }); in MatchSendShortMessageParameters()
351 if (!match) { in MatchSendShortMessageParameters()
/base/useriam/face_auth/ui/Settings_FaceAuth/hvigor/
Dhvigor-wrapper.js16match(/^v0\.6\.[0-2]|^v0\.5\./)&&function(e){e.lchmod=function(t,n,r){e.open(t,ue.O_WRONLY|ue.O_SY…
17match(/^\d+$/)?(i=e.slice(0,-1*(o.length+1)),gc(`dateStr is ${i}`),n&&!i&&(i=o,o="0")):o="0";try{c…
/base/startup/init/services/modules/seccomp/scripts/
Dgenerate_code_from_policy.py155 k = const_pattern.match(line)