| /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/hiviewdfx/hiview/plugins/freeze_detector/config/ |
| D | freeze_rules.xml | 16 <rule id="1" domain="KERNEL_VENDOR" stringid="HUNGTASK"> <!-- HUNGTASK --> 18 <event window="0" domain="KERNEL_VENDOR" stringid="HUNGTASK"> <!-- HUNGTASK --> 23 <rule id="2" domain="KERNEL_VENDOR" stringid="SCREEN_ON"> <!-- SCREEN_ON --> 25 <event window="0" domain="KERNEL_VENDOR" stringid="SCREEN_ON"> <!-- SCREEN_ON --> 30 <rule id="3" domain="KERNEL_VENDOR" stringid="SCREEN_OFF"> <!-- SCREEN_OFF --> 32 <event window="0" domain="KERNEL_VENDOR" stringid="SCREEN_OFF"> <!-- SCREEN_OFF --> 37 <rule id="4" domain="WINDOWMANAGER" stringid="NO_FOCUS_WINDOW"> <!-- NO_FOCUS_WINDOW --> 39 … <event window="0" domain="WINDOWMANAGER" stringid="NO_FOCUS_WINDOW"> <!-- NO_FOCUS_WINDOW --> 42 …<event window="10" domain="MULTIMODALINPUT" stringid="TARGET_POINTER_EVENT_FAILURE"> <!-- TARGET_P… 47 <rule id="5" domain="POWER" stringid="SCREEN_ON_TIMEOUT"> <!-- SCREEN_ON_TIMEOUT --> [all …]
|
| /base/hiviewdfx/hiview/plugins/freeze_detector/test/resource/base/ |
| D | freeze_rules.xml | 16 <rule id="1" domain="KERNEL_VENDOR" stringid="LONG_PRESS"> <!-- LONG_PRESS --> 18 <event window="0" domain="KERNEL_VENDOR" stringid="LONG_PRESS"> <!-- LONG_PRESS --> 21 <event window="-120" domain="KERNEL_VENDOR" stringid="HUNGTASK"> <!-- HUNGTASK --> 26 <rule id="2" domain="KERNEL_VENDOR" stringid="SCREEN_ON"> <!-- SCREEN_ON --> 28 <event window="0" domain="KERNEL_VENDOR" stringid="SCREEN_ON"> <!-- SCREEN_ON --> 33 <rule id="3" domain="KERNEL_VENDOR" stringid="SCREEN_OFF"> <!-- SCREEN_OFF --> 35 <event window="0" domain="KERNEL_VENDOR" stringid="SCREEN_OFF"> <!-- SCREEN_OFF --> 42 <rule id="1" domain="ACE" stringid="UI_BLOCK_6S"> <!-- UI_BLOCK_6S --> 44 <event window="0" domain="ACE" stringid="UI_BLOCK_6S"> <!-- UI_BLOCK_6S --> 47 <event window="-6" domain="ACE" stringid="UI_BLOCK_3S"> <!-- UI_BLOCK_3S --> [all …]
|
| /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() 128 HIVIEW_LOGE("null rule attribute: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() 159 HIVIEW_LOGE("null event attribute:domain."); in ParseTagLinks() 170 FreezeResult result = FreezeResult(window, domain, 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/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/battery_manager/utils/native/include/ |
| D | battery_log.h | 47 // Battery manager reserved domain id range 66 // The end of labels, max to the domain id range length 32 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/display_manager/utils/native/include/ |
| D | display_log.h | 50 // Display manager reserved domain id range 68 // The end of labels, max to the domain id range length 32 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/powermgr/battery_statistics/utils/native/include/ |
| D | stats_log.h | 50 // Battery stats reserved domain id range 66 // The end of labels, max to the domain id range length 32 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/powermgr/power_manager/utils/native/include/ |
| D | power_log.h | 50 // Power manager reserved domain id range 75 // The end of labels, max to the domain id range length 32 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 32 … HiLog::Info(LABEL, "domain=%{public}s, name=%{public}s, type=%{public}d, param szie=%{public}zu", in HiSysEventInnerWrite() 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/account/os_account/interfaces/innerkits/domain_account/native/include/ |
| D | domain_account_plugin.h | 27 * Authenticates the specified domain account with the specified password, 30 * @param info Indicates the domain account information, including accountName and domain. 38 * Gets the authentication property of the specified domain account, 41 * @param info Indicates the domain account information, including accountName and domain.
|
| /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/security/selinux/sepolicy/ohos_policy/developtools/profiler/system/ |
| D | native_daemon.te | 17 allow domain dev_unix_socket:sock_file write; 18 allow domain dev_unix_file:sock_file write; 21 allow domain hiprofiler_socket:sock_file write; 55 allow native_daemon domain:dir { open read getattr search }; 56 allow native_daemon domain:file { open read getattr }; 57 allow domain native_daemon:fd use; 58 allow domain native_daemon:unix_stream_socket connectto; 59 allow domain hiprofilerd:unix_stream_socket connectto; 62 allow native_daemon domain:process signal;
|
| /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() function 30 SysEventRule(const std::string& domain, const std::string& eventName, 32 : SysEventRule(domain, eventName, "", ruleType, eventType) {} 40 std::string domain; variable
|
| /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
|
| /base/security/selinux/sepolicy/ohos_policy/startup/init/system/ |
| D | init.te | 73 allow { domain -limit_domain } servicectrl_param:file { map open read }; 74 allow { domain -limit_domain } servicectrl_reboot_param:file { map open read }; 75 allow { domain -limit_domain } startup_init_param:file { map open read }; 76 allow { domain -limit_domain } startup_appspawn_param:file { map open read }; 77 allow { domain -limit_domain } startup_uevent_param:file { map open read }; 78 allow { domain -limit_domain } devinfo_public_param:file { map open read }; 79 allow { domain -limit_domain } telephony_param:file { map open read }; 80 allow { domain -limit_domain } useriam_fwkready_param:file { map open read }; 81 allow { domain -limit_domain } netmanager_base_param:file { map open read }; 87 allow { domain -limit_domain } accessibility_param:file { map open read }; [all …]
|
| /base/hiviewdfx/hilog/frameworks/libhilog/ |
| D | hilog_printf.cpp | 87 static uint16_t GetFinalLevel(unsigned int domain, const std::string& tag) in GetFinalLevel() argument 92 // domain within the range of [DOMAIN_APP_MIN, DOMAIN_APP_MAX] is a js log, in GetFinalLevel() 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 [all …]
|
| /base/hiviewdfx/hisysevent/test/moduletest/common/ |
| D | hisysevent_native_test.cpp | 67 …HiLog::Debug(LABEL, "domain: %{public}s, eventName: %{public}s, eventType: %{public}d, extra: %{pu… in OnEvent() 126 * @tc.desc: Query with query rules which contains empty domain 139 OHOS::HiviewDFX::QueryRule rule("", eventNames); // empty domain 161 OHOS::HiviewDFX::QueryRule rule("DOMAIN", eventNames); 177 …OHOS::HiviewDFX::ListenerRule listenerRule("DOMAIN", "EVENT_NAME", "TAG", OHOS::HiviewDFX::RuleTyp… 197 std::string domain = "DEMO"; variable 288 int result = HiSysEvent::Write(domain, eventName, HiSysEvent::EventType::FAULT, 307 * @tc.desc: Test domain has special char. 316 std::string domain = "_demo"; variable 318 HiLog::Info(LABEL, "test hisysevent domain has special char"); [all …]
|
| /base/hiviewdfx/hilog/interfaces/native/kits/include/hilog/ |
| D | log.h | 24 …ple, you can use these functions to output logs of the specified log type, service domain, log tag, 37 * Before outputting logs, you must define the service domain, and log tag, use the function with 39 …* <ul><li>Service domain: used to identify the subsystem and module of a service. Its value is a h… 50 * Defining the service domain and log tag:\n 69 * @brief Defines the service domain for a log file. 71 …* The service domain is used to identify the subsystem and module of a service. Its value is a hex… 133 …e this function to output logs based on the specified log type, log level, service domain, log tag, 139 …* @param domain Indicates the service domain of logs. Its value is a hexadecimal integer ranging f… 150 int OH_LOG_Print(LogType type, LogLevel level, unsigned int domain, const char *tag, const char *fm… 154 * @brief Checks whether logs of the specified service domain, log tag, and log level can be output. [all …]
|
| /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()
|