/base/security/selinux/sepolicy/base/public/ |
D | type.te | 14 #type samgr, domain; 15 type accesstoken_service, sadomain, domain; 16 type socperf_service, sadomain, domain; 17 type distributedsche, sadomain, domain; 18 type bluetooth_service, sadomain, domain; 19 type accountmgr, sadomain, domain; 20 type ui_service, sadomain, domain; 21 type d_bms, sadomain, domain; 22 type wifi_manager_service, sadomain, domain; 23 type softbus_server, sadomain, domain; [all …]
|
D | domain.te | 15 allow domain init:process sigchld; 16 allow init domain:process sigkill; 18 allow domain self:process { fork sigchld sigkill sigstop signull signal getsched setsched getsessio… 20 allow domain self:fd use; 21 allow { domain -limit_domain } self:file rw_file_perms; 22 allow domain self:fifo_file rw_file_perms; 23 allow domain self:dir read_dir_perms; 24 allow domain self:lnk_file read_file_perms; 25 allow domain self:unix_dgram_socket { connect create write }; 26 allow domain self:unix_stream_socket { accept bind connect create getattr listen read getopt setopt… [all …]
|
D | hap_domain.te | 14 type system_core_hap, domain; 15 type system_basic_hap, domain; 16 type normal_hap, domain; 56 #haps can't modify files of other domain. 57 neverallow hap_domain { domain -hap_domain }:file never_write_file; 59 neverallow hap_domain { domain -hap_domain }:file never_rw_file; 73 neverallow hap_domain domain:netlink_kobject_uevent_socket { write append }; 76 neverallow hap_domain { domain -hap_domain }:process ptrace; 77 neverallow { domain -hap_domain -processdump } hap_domain:process ptrace; 79 #hap don't bother other domain. [all …]
|
D | init.te | 15 allow init domain:{ unix_stream_socket unix_dgram_socket } { create bind setopt }; 18 neverallow { domain -kernel } init:process dyntransition; 19 neverallow { domain -kernel } init:process transition; 23 neverallow { domain -processdump } init:process ptrace; 32 neverallow init domain:{ tcp_socket rawip_socket } *; 33 neverallow init domain:udp_socket ~{ ioctl create };
|
/base/security/selinux/sepolicy/ohos_policy/drivers/adapter/vendor/ |
D | type.te | 14 type blue_host, hdfdomain, domain; 15 type a2dp_host, hdfdomain, domain; 16 type sample_host, hdfdomain, domain; 17 type usb_host, hdfdomain, domain; 18 type power_host, hdfdomain, domain; 19 type wifi_host, hdfdomain, domain; 20 type audio_hdi_server_host, hdfdomain, domain; 21 type camera_host, hdfdomain, domain; 22 type input_user_host, hdfdomain, domain; 23 type display_gralloc_host, hdfdomain, domain; [all …]
|
/base/powermgr/battery_manager/utils/native/include/ |
D | battery_log.h | 96 #define BATTERY_HILOGF(domain, ...) (void)OHOS::HiviewDFX::HiLog::Fatal(BATTERY_LABEL[domain], FORM… argument 97 #define BATTERY_HILOGE(domain, ...) (void)OHOS::HiviewDFX::HiLog::Error(BATTERY_LABEL[domain], FORM… argument 98 #define BATTERY_HILOGW(domain, ...) (void)OHOS::HiviewDFX::HiLog::Warn(BATTERY_LABEL[domain], FORMA… argument 99 #define BATTERY_HILOGI(domain, ...) (void)OHOS::HiviewDFX::HiLog::Info(BATTERY_LABEL[domain], FORMA… argument 100 #define BATTERY_HILOGD(domain, ...) (void)OHOS::HiviewDFX::HiLog::Debug(BATTERY_LABEL[domain], FORM… argument
|
/base/powermgr/battery_statistics/utils/native/include/ |
D | stats_log.h | 92 #define STATS_HILOGF(domain, ...) (void)OHOS::HiviewDFX::HiLog::Fatal(STATS_LABEL[domain], FORMAT(_… argument 93 #define STATS_HILOGE(domain, ...) (void)OHOS::HiviewDFX::HiLog::Error(STATS_LABEL[domain], FORMAT(_… argument 94 #define STATS_HILOGW(domain, ...) (void)OHOS::HiviewDFX::HiLog::Warn(STATS_LABEL[domain], FORMAT(__… argument 95 #define STATS_HILOGI(domain, ...) (void)OHOS::HiviewDFX::HiLog::Info(STATS_LABEL[domain], FORMAT(__… argument 96 #define STATS_HILOGD(domain, ...) (void)OHOS::HiviewDFX::HiLog::Debug(STATS_LABEL[domain], FORMAT(_… argument
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent_manager/include/ |
D | hisysevent_rules.h | 40 ListenerRule(const std::string& domain, const std::string& eventName, 41 …d::string& tag, RuleType ruleType = RuleType::WHOLE_WORD, uint32_t eventType = 0) : domain(domain), in domain() argument 43 ListenerRule(const std::string& domain, const std::string& eventName, 44 RuleType ruleType = RuleType::WHOLE_WORD) : ListenerRule(domain, eventName, "", ruleType) {} 51 return domain; in GetDomain() 71 std::string domain; 80 QueryRule(const std::string& domain, const std::vector<std::string>& eventList, 82 …: domain(domain), eventList(eventList), ruleType(ruleType), eventType(eventType), condition(cond) … in domain() argument 87 return domain; in GetDomain() 107 std::string domain;
|
/base/powermgr/display_manager/utils/native/include/ |
D | display_log.h | 100 #define DISPLAY_HILOGF(domain, ...) (void)OHOS::HiviewDFX::HiLog::Fatal(DISPLAY_LABEL[domain], FORM… argument 101 #define DISPLAY_HILOGE(domain, ...) (void)OHOS::HiviewDFX::HiLog::Error(DISPLAY_LABEL[domain], FORM… argument 102 #define DISPLAY_HILOGW(domain, ...) (void)OHOS::HiviewDFX::HiLog::Warn(DISPLAY_LABEL[domain], FORMA… argument 103 #define DISPLAY_HILOGI(domain, ...) (void)OHOS::HiviewDFX::HiLog::Info(DISPLAY_LABEL[domain], FORMA… argument 104 #define DISPLAY_HILOGD(domain, ...) (void)OHOS::HiviewDFX::HiLog::Debug(DISPLAY_LABEL[domain], FORM… argument
|
/base/hiviewdfx/hiview/plugins/freeze_detector/ |
D | rule_cluster.cpp | 126 std::string domain = GetAttributeValue<std::string>(tag, ATTRIBUTE_DOMAIN); in ParseTagRule() local 127 if (domain == "") { in ParseTagRule() 137 FreezeRule rule = FreezeRule(domain, stringId); in ParseTagRule() 145 if (rules_.find(domain + stringId) != rules_.end()) { in ParseTagRule() 150 rules_[domain + stringId] = rule; in ParseTagRule() 157 std::string domain = GetAttributeValue<std::string>(node, ATTRIBUTE_DOMAIN); in ParseTagLinks() local 158 if (domain == "") { in ParseTagLinks() 170 FreezeResult result = FreezeResult(window, domain, stringId); in ParseTagLinks() 172 rule.AddResult(domain, stringId, result); in ParseTagLinks() 175 if (rule.GetDomain() == domain && rule.GetStringId() == stringId) { in ParseTagLinks() [all …]
|
D | freeze_common.cpp | 38 bool FreezeCommon::IsFreezeEvent(const std::string& domain, const std::string& stringId) const in IsFreezeEvent() argument 40 return IsApplicationEvent(domain, stringId) || IsSystemEvent(domain, stringId); in IsFreezeEvent() 43 bool FreezeCommon::IsApplicationEvent(const std::string& domain, const std::string& stringId) const in IsApplicationEvent() argument 51 if (stringId == pair.first && domain == pair.second.first) { in IsApplicationEvent() 58 bool FreezeCommon::IsSystemEvent(const std::string& domain, const std::string& stringId) const in IsSystemEvent() argument 66 if (stringId == pair.first && domain == pair.second.first) { in IsSystemEvent()
|
/base/hiviewdfx/hilog/services/hilogd/ |
D | log_domains.cpp | 76 bool IsValidDomain(LogType type, uint32_t domain) in IsValidDomain() argument 79 if ((domain & APP_DOMAIN_MASK) == 0) { in IsValidDomain() 84 if (domain >= DOMAIN_OS_MIN && domain <= DOMAIN_OS_MAX) { in IsValidDomain() 85 return g_DomainList.IsValidKey((domain & OS_SUB_DOMAIN_MASK)); in IsValidDomain()
|
/base/powermgr/power_manager/utils/native/include/ |
D | power_log.h | 117 #define POWER_HILOGF(domain, ...) (void)OHOS::HiviewDFX::HiLog::Fatal(POWER_LABEL[domain], FORMATED… argument 118 #define POWER_HILOGE(domain, ...) (void)OHOS::HiviewDFX::HiLog::Error(POWER_LABEL[domain], FORMATED… argument 119 #define POWER_HILOGW(domain, ...) (void)OHOS::HiviewDFX::HiLog::Warn(POWER_LABEL[domain], FORMATED(… argument 120 #define POWER_HILOGI(domain, ...) (void)OHOS::HiviewDFX::HiLog::Info(POWER_LABEL[domain], FORMATED(… argument 121 #define POWER_HILOGD(domain, ...) (void)OHOS::HiviewDFX::HiLog::Debug(POWER_LABEL[domain], FORMATED… argument
|
/base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/ |
D | hisysevent_c.cpp | 29 int HiSysEventInnerWrite(const std::string& domain, const std::string& name, HiSysEventEventType ty… in HiSysEventInnerWrite() argument 33 domain.c_str(), name.c_str(), type, size); in HiSysEventInnerWrite() 34 return HiSysEvent::Write(domain, name, HiSysEvent::EventType(type), params, size); in HiSysEventInnerWrite() 43 int OH_HiSysEvent_Write(const char* domain, const char* name, HiSysEventEventType type, in OH_HiSysEvent_Write() argument 46 if (domain == nullptr) { in OH_HiSysEvent_Write() 52 return OHOS::HiviewDFX::HiSysEventInnerWrite(domain, name, type, params, size); in OH_HiSysEvent_Write()
|
/base/startup/init/interfaces/innerkits/include/ |
D | beget_ext.h | 58 INIT_PUBLIC_API void StartupLog(InitLogLevel logLevel, uint32_t domain, const char *tag, const char… 61 #define STARTUP_LOGV(domain, tag, fmt, ...) \ argument 62 StartupLog(INIT_DEBUG, domain, tag, "[%s:%d]" fmt, (FILE_NAME), (__LINE__), ##__VA_ARGS__) 63 #define STARTUP_LOGI(domain, tag, fmt, ...) \ argument 64 StartupLog(INIT_INFO, domain, tag, "[%s:%d]" fmt, (FILE_NAME), (__LINE__), ##__VA_ARGS__) 65 #define STARTUP_LOGW(domain, tag, fmt, ...) \ argument 66 StartupLog(INIT_WARN, domain, tag, "[%s:%d]" fmt, (FILE_NAME), (__LINE__), ##__VA_ARGS__) 67 #define STARTUP_LOGE(domain, tag, fmt, ...) \ argument 68 StartupLog(INIT_ERROR, domain, tag, "[%s:%d]" fmt, (FILE_NAME), (__LINE__), ##__VA_ARGS__) 69 #define STARTUP_LOGF(domain, tag, fmt, ...) \ argument [all …]
|
/base/hiviewdfx/hisysevent/adapter/native/idl/include/ |
D | sys_event_rule.h | 31 SysEventRule(const std::string& domain, const std::string& eventName, 33 … : domain(domain), eventName(eventName), tag(tag), ruleType(ruleType), eventType(eventType) {} in domain() argument 34 SysEventRule(const std::string& domain, const std::string& eventName, 36 : SysEventRule(domain, eventName, "", ruleType, eventType) {} 44 std::string domain; variable
|
D | sys_event_query_rule.h | 32 SysEventQueryRule(const std::string& domain, const std::vector<std::string>& events, 34 … : domain(domain), eventList(events), ruleType(ruleType), eventType(eventType), condition(cond) {}; in domain() function 40 std::string domain; variable
|
/base/hiviewdfx/hiview/adapter/plugins/eventservice/service/idl/include/ |
D | sys_event_rule.h | 27 SysEventRule(const std::string& domain, const std::string& eventName, 29 … : domain(domain), eventName(eventName), tag(tag), ruleType(ruleType), eventType(eventType) {} in domain() argument 30 SysEventRule(const std::string& domain, const std::string& eventName, 32 : SysEventRule(domain, eventName, "", ruleType, eventType) {} 40 std::string domain; variable
|
D | sys_event_query_rule.h | 29 SysEventQueryRule(const std::string& domain, const std::vector<std::string>& events, 31 … : domain(domain), eventList(events), ruleType(ruleType), eventType(eventType), condition(cond) {}; in domain() function 37 std::string domain; variable
|
/base/hiviewdfx/hilog/frameworks/hilog_ndk/ |
D | hilog_ndk.c | 21 int OH_LOG_Print(LogType type, LogLevel level, unsigned int domain, const char *tag, const char *fm… in OH_LOG_Print() argument 26 ret = HiLogPrintArgs(type, level, domain, tag, fmt, ap); in OH_LOG_Print() 31 bool OH_LOG_IsLoggable(unsigned int domain, const char *tag, LogLevel level) in OH_LOG_IsLoggable() argument 33 return HiLogIsLoggable(domain, tag, level); in OH_LOG_IsLoggable()
|
/base/hiviewdfx/hilog/frameworks/libhilog/ |
D | hilog_printf.cpp | 87 static uint16_t GetFinalLevel(unsigned int domain, const std::string& tag) in GetFinalLevel() argument 94 if ((domain >= DOMAIN_APP_MIN) && (domain <= DOMAIN_APP_MAX)) { in GetFinalLevel() 104 uint16_t domainLevel = GetDomainLevel(domain); in GetFinalLevel() 154 .domain = header.domain, in PrintLog() 173 int HiLogPrintArgs(const LogType type, const LogLevel level, const unsigned int domain, const char … in HiLogPrintArgs() argument 176 if ((type != LOG_APP) && ((domain < DOMAIN_OS_MIN) || (domain > DOMAIN_OS_MAX))) { in HiLogPrintArgs() 179 if (!HiLogIsLoggable(domain, tag, level)) { in HiLogPrintArgs() 267 header.domain = domain; in HiLogPrintArgs() 300 int HiLogPrint(LogType type, LogLevel level, unsigned int domain, const char *tag, const char *fmt,… in HiLogPrint() argument 305 ret = HiLogPrintArgs(type, level, domain, tag, fmt, ap); in HiLogPrint() [all …]
|
/base/hiviewdfx/hisysevent/test/moduletest/common/ |
D | hisysevent_native_test.cpp | 197 std::string domain = "DEMO"; variable 288 int result = HiSysEvent::Write(domain, eventName, HiSysEvent::EventType::FAULT, 316 std::string domain = "_demo"; variable 319 int result = HiSysEvent::Write(domain, eventName, HiSysEvent::EventType::FAULT); 335 std::string domain = ""; variable 338 int result = HiSysEvent::Write(domain, eventName, HiSysEvent::EventType::FAULT); 354 std::string domain = ""; variable 359 domain.append("A"); 362 result = HiSysEvent::Write(domain, eventName, HiSysEvent::EventType::FAULT); 366 domain.append("L"); [all …]
|
/base/hiviewdfx/hiview/base/ |
D | hi_logger.cpp | 22 …int HiLogPrintArgs(LogType type, LogLevel level, unsigned int domain, const char* tag, const char*… 33 void HiLogger::Print(uint32_t level, uint32_t domain, const char* tag, const char* format, va_list … in Print() argument 35 HiLogPrintArgs(LOG_CORE, LOG_LEVELS[level], domain, tag, format, args); in Print()
|
/base/hiviewdfx/faultloggerd/common/dfxlog/ |
D | musl_log.h | 56 …const LogType type, const LogLevel level, const unsigned int domain, const char *tag, const char *… 60 LogType type, LogLevel level, unsigned int domain, const char *tag, const char *fmt, ...) in MuslHiLogPrinter() argument 65 ret = HiLogAdapterPrintArgs(type, level, domain, tag, fmt, ap); in MuslHiLogPrinter() 71 const LogLevel logLevel, const unsigned int domain, const char* tag, const char *fmt, ...) in DfxLog() argument 79 MuslHiLogPrinter(LOG_CORE, logLevel, domain, tag, "%{public}s", buf); in DfxLog()
|
/base/hiviewdfx/hisysevent/test/unittest/common/napi/ |
D | napi_hisysevent.test.js | 62 domain: "RELIABILITY", property 100 domain: "RELIABILITY", property 142 domain: "RELIABILITY", property 174 domain: "RELIABILITY", property 182 …console.info(`hiSysEventJsUnitTest004: domain is : ${info.domain}, name is ${info.name}, eventType… 196 domain: "RELIABILITY", property 243 domain: "RELIABILITY", property 267 domain: "RELIABILITY", property 277 …console.info(`hiSysEventJsUnitTest005: domain is ${item.domain}, name is ${item.name}, eventType i… 318 domain: "RELIABILITY", property [all …]
|