/base/hiviewdfx/hichecker/test/unittest/common/native/ |
H A D | hichecker_native_test.cpp | 59 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 D | hichecker.cpp | 42 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 D | rule.h | 25 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 D | rule.cpp | 31 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 D | model_cfg_marshalling.h | 32 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 D | model_cfg_marshalling.h | 31 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 D | napi_hichecker.cpp | 121 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 D | security_guard_config_manager_test.cpp | 447 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 D | lib_event_handler_checker_test.cpp | 127 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 D | config_define.h | 29 using Rule = struct { 36 std::vector<Rule> rules;
|
H A D | model_cfg_marshalling.h | 29 void from_json(const nlohmann::json &jsonObj, Rule &rule);
|
/base/security/security_guard/services/config_manager/include/ |
H A D | config_define.h | 29 using Rule = struct { 36 std::vector<Rule> rules;
|
H A D | model_cfg_marshalling.h | 29 void from_json(const nlohmann::json &jsonObj, Rule &rule);
|
/base/hiviewdfx/hiview/utility/smart_parser/ |
H A D | smart_parser.cpp | 37 Rule rule(eventPath, config, eventType); in Analysis()
|
/base/hiviewdfx/hichecker/interfaces/native/innerkits/include/ |
H A D | hichecker.h | 26 namespace Rule { namespace
|
/base/security/security_guard/services/config_manager/src/ |
H A D | model_cfg_marshalling.cpp | 55 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()
|