/foundation/arkui/ace_engine/frameworks/component_test/core/ |
H A D | component_test_matcher_impl.h | 25 enum class MatchType : uint8_t { class 35 MatchText() : text_(""), matchType(MatchType::EQUALS), isCheck(false) {}; in MatchText() 36 explicit MatchText(const std::string& text) : text_(text), matchType(MatchType::EQUALS), isCheck(true) {}; in MatchText() 37 MatchText(const std::string& text, MatchType matchType) : text_(text), matchType(matchType), isCheck(true) {}; in MatchText() 39 MatchType matchType; 63 void SetText(const std::string& text, MatchType matchType = MatchType::EQUALS);
|
H A D | component_test_matcher_impl.cpp | 38 void ComponentTestMatcherImpl::SetText(const std::string& text, MatchType matchType) in SetText() 47 case MatchType::EQUALS: in SetText() 52 case MatchType::CONTAINS: in SetText() 54 case MatchType::STARTS_WITH: in SetText() 60 case MatchType::ENDS_WITH: in SetText()
|
/foundation/ability/ability_base/interfaces/kits/native/want/src/ |
H A D | patterns_matcher.cpp | 29 type_ = MatchType::DEFAULT; in PatternsMatcher() 49 PatternsMatcher::PatternsMatcher(std::string pattern, MatchType type) in PatternsMatcher() 73 MatchType PatternsMatcher::GetType() const in GetType() 98 bool PatternsMatcher::MatchPattern(std::string pattern, std::string match, MatchType type) in MatchPattern() 104 case MatchType::DEFAULT: { in MatchPattern() 107 case MatchType::PREFIX: { in MatchPattern() 110 case MatchType::PATTERN: { in MatchPattern() 114 case MatchType::GLOBAL: { in MatchPattern() 202 type_ = static_cast<MatchType>(type); in ReadFromParcel()
|
H A D | skills.cpp | 289 PatternsMatcher pm(path, MatchType::DEFAULT); in AddPath() 314 void Skills::AddPath(const std::string &path, const MatchType &matchType) in AddPath() 367 void Skills::RemovePath(const std::string &path, const MatchType &matchType) in RemovePath() 462 PatternsMatcher patternsMatcher(schemeSpecificPart, MatchType::DEFAULT); in AddSchemeSpecificPart() 529 PatternsMatcher pm(type, MatchType::DEFAULT); in AddType() 539 void Skills::AddType(const std::string &type, const MatchType &matchType) in AddType() 628 void Skills::RemoveType(const std::string &type, const MatchType &matchType) in RemoveType()
|
/foundation/ability/ability_base/interfaces/kits/native/want/include/ |
H A D | patterns_matcher.h | 49 PatternsMatcher(std::string pattern, MatchType type); 64 MatchType GetType() const; 83 static bool MatchPattern(std::string pattern, std::string match, MatchType type); 101 MatchType type_;
|
H A D | skills.h | 232 void AddPath(const std::string &path, const MatchType &matchType); 261 void RemovePath(const std::string &path, const MatchType &matchType); 364 void AddType(const std::string &type, const MatchType &matchType); 393 void RemoveType(const std::string &type, const MatchType &matchType);
|
H A D | match_type.h | 22 enum class MatchType : uint8_t { class
|
/foundation/ability/ability_base/test/unittest/want/ |
H A D | patterns_matcher_test.cpp | 62 PatternsMatcherIn_ = std::make_shared<PatternsMatcher>("1234", MatchType::DEFAULT); in HWTEST_F() 81 PatternsMatcherIn_ = std::make_shared<PatternsMatcher>("@#¥#3243adsafdf_中文", MatchType::PREFIX); in HWTEST_F() 100 PatternsMatcherIn_ = std::make_shared<PatternsMatcher>("", MatchType::GLOBAL); in HWTEST_F() 119 PatternsMatcherIn_ = std::make_shared<PatternsMatcher>("abcdefg", MatchType::DEFAULT); in HWTEST_F() 133 PatternsMatcherIn_ = std::make_shared<PatternsMatcher>("abcdefg", MatchType::PREFIX); in HWTEST_F() 147 PatternsMatcherIn_ = std::make_shared<PatternsMatcher>("abc*defg.", MatchType::PATTERN); in HWTEST_F() 163 PatternsMatcherIn_ = std::make_shared<PatternsMatcher>("abc*ABC*123", MatchType::GLOBAL); in HWTEST_F()
|
H A D | skills_test.cpp | 341 PatternsMatcher pm(path, MatchType::DEFAULT); in HWTEST_F() 658 base_->AddPath(path, MatchType::DEFAULT); in HWTEST_F() 664 base_->RemovePath(path, MatchType::DEFAULT); in HWTEST_F() 951 PatternsMatcher pattern(patternStr, MatchType::DEFAULT); in HWTEST_F() 964 PatternsMatcher pattern2(patternStr2, MatchType::PREFIX); in HWTEST_F() 973 base_->AddType(patternStr3, MatchType::GLOBAL); in HWTEST_F() 982 base_->RemoveType(patternStr3, MatchType::GLOBAL); in HWTEST_F() 1032 PatternsMatcherIn_ = std::make_shared<PatternsMatcher>(pattern, MatchType::DEFAULT); in HWTEST_F() 1074 PatternsMatcherIn_ = std::make_shared<PatternsMatcher>(type, MatchType::DEFAULT); in HWTEST_F() 1098 PatternsMatcherIn_ = std::make_shared<PatternsMatcher>(type, MatchType in HWTEST_F() [all...] |
/foundation/communication/netstack/utils/napi_utils/src/ |
H A D | event_manager.cpp | 42 [type](const EventListener &listener) -> bool { return listener.MatchType(type); }); in AddListener() 98 return listener.MatchType(ON_HEADER_RECEIVE); in EmitByUvWithoutCheckShared() 102 return listener.MatchType(ON_HEADERS_RECEIVE); in EmitByUvWithoutCheckShared() 122 if (listener.MatchType(type)) { in EmitByUvWithoutCheckShared() 152 return listener.MatchType(ON_HEADER_RECEIVE); in EmitByUvWithoutCheck() 155 return listener.MatchType(ON_HEADERS_RECEIVE); in EmitByUvWithoutCheck() 175 if (listener.MatchType(type)) { in EmitByUvWithoutCheck() 190 return listener.MatchType(ON_HEADER_RECEIVE); in EmitByUv() 193 return listener.MatchType(ON_HEADERS_RECEIVE); in EmitByUv() 213 if (listener.MatchType(typ in EmitByUv() [all...] |
H A D | event_listener.cpp | 127 bool EventListener::MatchType(const std::string &type) const in MatchType() function in OHOS::NetStack::EventListener
|
/foundation/communication/netmanager_base/utils/napi_utils/src/ |
H A D | event_manager.cpp | 45 [type](const EventListener &listener) -> bool { return listener.MatchType(type); }); in AddListener() 126 [&type](const EventListener &listener) -> bool { return listener.MatchType(type); }); in HasEventListener() 133 [type](const EventListener &listener) -> bool { return listener.MatchType(type); }); in DeleteListener()
|
H A D | event_listener.cpp | 102 bool EventListener::MatchType(const std::string &type) const in MatchType() function in OHOS::NetManagerStandard::EventListener
|
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/src/ |
H A D | skill.cpp | 214 if (skillUri.scheme.empty() && MatchType(type, skillUri.type)) { in MatchUriAndType() 222 if (MatchUri(uriString, skillUri) && MatchType(type, skillUri.type)) { in MatchUriAndType() 252 if (MatchUri(paramUriString, skillUri) && MatchType(paramType, skillUri.type)) { in MatchLinkFeature() 266 MatchType(paramUtd, skillUri.type)) { in MatchLinkFeature() 310 if (skillUri.scheme.empty() && MatchType(type, skillUri.type)) { in MatchUriAndType() 320 if (MatchUri(uriString, skillUri) && MatchType(type, skillUri.type)) { in MatchUriAndType() 417 bool Skill::MatchType(const std::string &type, const std::string &skillUriType) const in MatchType() function in OHOS::AppExecFwk::Skill 544 MatchType(paramUtd, skillUri.type)) { in MatchMimeType() 564 MatchType(paramUtd, skillUri.type)) { in MatchMimeType()
|
/foundation/communication/netstack/utils/napi_utils/include/ |
H A D | event_listener.h | 45 [[nodiscard]] bool MatchType(const std::string &type) const;
|
/foundation/communication/netmanager_base/utils/napi_utils/include/ |
H A D | event_listener.h | 42 [[nodiscard]] bool MatchType(const std::string &type) const;
|
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/ |
H A D | skill.h | 52 bool MatchType(const std::string &type, const std::string &skillUriType) const;
|
/foundation/arkui/ace_engine/interfaces/napi/kits/component_test/ |
H A D | js_component_test_matcher.cpp | 131 ComponentTest::MatchType enumValue = static_cast<ComponentTest::MatchType>(matchType); in JSText()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/default_app/ |
H A D | default_app_mgr.cpp | 547 if (skill.MatchType(utd, mimeType) && GetBundleInfo(userId, utd, item.second, bundleInfo)) { in GetBundleInfoByUtd() 618 if (skill.MatchType(type, skillUri.type)) { in MatchActionAndType()
|
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_kit_service_test/ |
H A D | bms_bundle_kit_service_test.cpp | 6567 bool ret = skill.MatchType(UTD_GENERAL_AVI, UTD_GENERAL_AVI); in HWTEST_F() 6569 ret = skill.MatchType(UTD_GENERAL_AVI, UTD_GENERAL_VIDEO); in HWTEST_F() 6572 ret = skill.MatchType(UTD_GENERAL_VIDEO, UTD_GENERAL_AVI); in HWTEST_F() 6585 bool ret = skill.MatchType(TYPE_VIDEO_AVI, UTD_GENERAL_AVI); in HWTEST_F() 6587 ret = skill.MatchType(TYPE_VIDEO_MS_VIDEO, UTD_GENERAL_AVI); in HWTEST_F() 6589 ret = skill.MatchType(TYPE_VIDEO_AVI, UTD_GENERAL_VIDEO); in HWTEST_F() 6602 bool ret = skill.MatchType(UTD_GENERAL_AVI, TYPE_VIDEO_AVI); in HWTEST_F() 6604 ret = skill.MatchType(UTD_GENERAL_AVI, TYPE_VIDEO_MS_VIDEO); in HWTEST_F() 6607 ret = skill.MatchType(UTD_GENERAL_VIDEO, TYPE_VIDEO_AVI); in HWTEST_F() 6609 ret = skill.MatchType(UTD_GENERAL_VIDE in HWTEST_F() [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_manager_test/ |
H A D | bms_bundle_manager_test.cpp | 1923 * @tc.name: test MatchType 1930 bool ret = skill.MatchType("*/*", ""); in HWTEST_F() 1936 * @tc.name: test MatchType 1943 bool ret = skill.MatchType(TYPE_ONLY_MATCH_WILDCARD, "*/*"); in HWTEST_F()
|