Home
last modified time | relevance | path

Searched refs:Rule (Results 1 - 16 of 16) sorted by relevance

/base/hiviewdfx/hichecker/test/unittest/common/native/
H A Dhichecker_native_test.cpp59 HiChecker::RemoveRule(Rule::ALL_RULES); in SetUp()
64 HiChecker::RemoveRule(Rule::ALL_RULES); in TearDown()
81 uint64_t rule = Rule::RULE_THREAD_CHECK_SLOW_PROCESS; in HWTEST_F()
82 HiChecker::AddRule(Rule::RULE_THREAD_CHECK_SLOW_PROCESS); in HWTEST_F()
84 rule |= Rule::RULE_CAUTION_PRINT_LOG; in HWTEST_F()
85 HiChecker::AddRule(Rule::RULE_CAUTION_PRINT_LOG); in HWTEST_F()
96 uint64_t rule = Rule::RULE_THREAD_CHECK_SLOW_PROCESS | in HWTEST_F()
97 Rule::RULE_CHECK_SLOW_EVENT | Rule::RULE_CHECK_ABILITY_CONNECTION_LEAK; in HWTEST_F()
98 HiChecker::AddRule(Rule in HWTEST_F()
[all...]
/base/hiviewdfx/hichecker/frameworks/native/
H A Dhichecker.cpp42 constexpr uint64_t ALLOWED_RULE = Rule::RULE_CHECK_ARKUI_PERFORMANCE;
55 if ((Rule::RULE_CHECK_SLOW_EVENT & rule)) { in AddRule()
58 threadLocalRules_ |= (Rule::ALL_THREAD_RULES | Rule::ALL_CAUTION_RULES) & rule; in AddRule()
59 processRules_ |= (Rule::ALL_PROCESS_RULES | Rule::ALL_CAUTION_RULES) & rule; in AddRule()
68 if ((Rule::RULE_CHECK_SLOW_EVENT & rule)) { in RemoveRule()
92 if ((threadLocalRules_ & Rule::RULE_THREAD_CHECK_SLOW_PROCESS) == 0) { in NotifySlowProcess()
97 Caution caution(Rule::RULE_THREAD_CHECK_SLOW_PROCESS, in NotifySlowProcess()
104 if ((processRules_ & Rule in NotifySlowEvent()
[all...]
/base/hiviewdfx/hiview/utility/smart_parser/rule/include/
H A Drule.h25 class Rule { class
27 Rule(std::string eventPath, std::string analysisConfig, std::string eventType) in Rule() function in OHOS::HiviewDFX::Rule
29 ~Rule() {}; in ~Rule()
30 Rule(const Rule&) = delete;
31 Rule& operator=(const Rule&) = delete;
/base/hiviewdfx/hiview/utility/smart_parser/rule/
H A Drule.cpp31 void Rule::ParseRule() in ParseRule()
44 std::map<std::string, FeatureSet> Rule::GetExtractRule() in GetExtractRule()
49 std::list<std::pair<std::string, std::map<std::string, std::string>>> Rule::GetComposeRule() in GetComposeRule()
54 std::map<std::string, std::vector<std::string>> Rule::GetSegStatusCfg() in GetSegStatusCfg()
/base/security/security_guard/test/unittest/risk_classify/include/
H A Dmodel_cfg_marshalling.h32 using Rule = struct {
39 std::vector<Rule> rules;
56 void from_json(const nlohmann::json &jsonObj, Rule &rule) {};
/base/security/security_guard/test/unittest/data_collect/sa/
H A Dmodel_cfg_marshalling.h31 using Rule = struct {
38 std::vector<Rule> rules;
55 void from_json(const nlohmann::json &jsonObj, Rule &rule) {};
/base/hiviewdfx/hichecker/interfaces/js/kits/napi/src/
H A Dnapi_hichecker.cpp121 DECLARE_NAPI_STATIC_PROPERTY("RULE_CAUTION_PRINT_LOG", ToUInt64Value(env, Rule::RULE_CAUTION_PRINT_LOG)), in DeclareHiCheckerRuleEnum()
123 ToUInt64Value(env, Rule::RULE_CAUTION_TRIGGER_CRASH)), in DeclareHiCheckerRuleEnum()
125 ToUInt64Value(env, Rule::RULE_THREAD_CHECK_SLOW_PROCESS)), in DeclareHiCheckerRuleEnum()
126 DECLARE_NAPI_STATIC_PROPERTY("RULE_CHECK_SLOW_EVENT", ToUInt64Value(env, Rule::RULE_CHECK_SLOW_EVENT)), in DeclareHiCheckerRuleEnum()
128 ToUInt64Value(env, Rule::RULE_CHECK_ABILITY_CONNECTION_LEAK)), in DeclareHiCheckerRuleEnum()
130 ToUInt64Value(env, Rule::RULE_CHECK_ARKUI_PERFORMANCE)), in DeclareHiCheckerRuleEnum()
/base/security/security_guard/test/unittest/config_manager/src/
H A Dsecurity_guard_config_manager_test.cpp447 SecurityGuard::Rule rule = jsonObj.get<SecurityGuard::Rule>(); in HWTEST_F()
457 SecurityGuard::Rule rule = jsonObj.get<SecurityGuard::Rule>(); in HWTEST_F()
468 SecurityGuard::Rule rule = jsonObj.get<SecurityGuard::Rule>(); in HWTEST_F()
480 SecurityGuard::Rule rule = jsonObj.get<SecurityGuard::Rule>(); in HWTEST_F()
492 SecurityGuard::Rule rule = jsonObj.get<SecurityGuard::Rule>(); in HWTEST_F()
[all...]
/base/notification/eventhandler/frameworks/eventhandler/test/unittest/
H A Dlib_event_handler_checker_test.cpp127 HiChecker::AddRule(Rule::RULE_CHECK_SLOW_EVENT); in HWTEST_F()
178 HiChecker::AddRule(Rule::RULE_CHECK_SLOW_EVENT); in HWTEST_F()
/base/security/security_guard/test/unittest/config_manager/include/
H A Dconfig_define.h29 using Rule = struct {
36 std::vector<Rule> rules;
H A Dmodel_cfg_marshalling.h29 void from_json(const nlohmann::json &jsonObj, Rule &rule);
/base/security/security_guard/services/config_manager/include/
H A Dconfig_define.h29 using Rule = struct {
36 std::vector<Rule> rules;
H A Dmodel_cfg_marshalling.h29 void from_json(const nlohmann::json &jsonObj, Rule &rule);
/base/hiviewdfx/hiview/utility/smart_parser/
H A Dsmart_parser.cpp37 Rule rule(eventPath, config, eventType); in Analysis()
/base/hiviewdfx/hichecker/interfaces/native/innerkits/include/
H A Dhichecker.h26 namespace Rule { namespace
/base/security/security_guard/services/config_manager/src/
H A Dmodel_cfg_marshalling.cpp55 void from_json(const nlohmann::json &jsonObj, Rule &rule) in from_json()
84 config.rules = jsonObj.at("rules").get<std::vector<Rule>>(); in from_json()

Completed in 5 milliseconds