/base/hiviewdfx/hitrace/test/fuzztest/common/ |
H A D | hitrace_fuzztest_common.h | 41 void GenerateTagStr(const uint64_t tags, std::string& tagStr) in GenerateTagStr() argument 43 if (tags & HITRACE_TAG_SECURITY) { in GenerateTagStr() 46 if (tags & HITRACE_TAG_ANIMATION) { in GenerateTagStr() 49 if (tags & HITRACE_TAG_MUSL) { in GenerateTagStr() 52 if (tags & HITRACE_TAG_FFRT) { in GenerateTagStr() 55 if (tags & HITRACE_TAG_OHOS) { in GenerateTagStr() 58 if (tags & HITRACE_TAG_APP) { in GenerateTagStr() 61 if (tags & HITRACE_TAG_HDCD) { in GenerateTagStr() 64 if (tags & HITRACE_TAG_ACE) { in GenerateTagStr() 67 if (tags in GenerateTagStr() 72 GenerateTagVec(const uint64_t tags, std::vector<std::string>& tagVec) GenerateTagVec() argument [all...] |
/base/powermgr/thermal_manager/services/native/src/thermal_action/action/action_soc/ |
H A D | soc_action_base.cpp | 35 std::vector<int32_t> tags;
in SocLimitRequest() local 37 tags.push_back(tag);
in SocLimitRequest() 39 OHOS::SOCPERF::SocPerfClient::GetInstance().LimitRequest(ACTION_TYPE_THERMAL_ID, tags, configs, "");
in SocLimitRequest()
|
/base/msdp/device_status/intention/adapters/input_adapter/src/ |
H A D | input_adapter.cpp | 65 uint32_t tags { 0u }; in AddInterceptor() 67 tags |= MMI::CapabilityToTags(MMI::INPUT_DEV_CAP_POINTER); in AddInterceptor() 70 tags |= MMI::CapabilityToTags(MMI::INPUT_DEV_CAP_KEYBOARD); in AddInterceptor() 72 if (tags == 0u) { in AddInterceptor() 78 int32_t interceptorId = MMI::InputManager::GetInstance()->AddInterceptor(interceptor, DEFAULT_PRIORITY, tags); in AddInterceptor() 94 uint32_t tags = CapabilityToTags(MMI::INPUT_DEV_CAP_POINTER); in AddFilter() local 95 int32_t filterId = MMI::InputManager::GetInstance()->AddInputEventFilter(filter, DEFAULT_PRIORITY, tags); in AddFilter()
|
/base/web/webview/ohos_adapter/hiviewdfx_adapter/src/ |
H A D | hitrace_adapter_impl.cpp | 63 static CachedHandle g_Handle = CachedParameterCreate("debug.hitrace.tags.enableflags", "0"); in IsHiTraceEnable() 66 uint64_t tags = ConvertToUint64(enable, 0); in IsHiTraceEnable() local 67 return (tags & HITRACE_TAG_NWEB); in IsHiTraceEnable() 99 static CachedHandle g_Handle = CachedParameterCreate("debug.hitrace.tags.enableflags", "0"); in IsACETraceEnable() 102 uint64_t tags = ConvertToUint64(enable, 0); in IsACETraceEnable() local 103 return (tags & HITRACE_TAG_ACE); in IsACETraceEnable()
|
/base/hiviewdfx/hitrace/frameworks/native/ |
H A D | common_utils.cpp | 137 static void ParseSysFiles(cJSON *tags, TagCategory& tagCategory)
in ParseSysFiles() argument 139 cJSON *sysFiles = cJSON_GetObjectItem(tags, "sysFiles");
in ParseSysFiles() 152 cJSON* tags = nullptr;
in ParseTagCategory() local 153 cJSON_ArrayForEach(tags, tagCategoryNode) {
in ParseTagCategory() 154 if (tags == nullptr || tags->string == nullptr) {
in ParseTagCategory() 158 cJSON* description = cJSON_GetObjectItem(tags, "description");
in ParseTagCategory() 162 cJSON* tagOffset = cJSON_GetObjectItem(tags, "tag_offset");
in ParseTagCategory() 166 cJSON* type = cJSON_GetObjectItem(tags, "type");
in ParseTagCategory() 170 ParseSysFiles(tags, tagCategor in ParseTagCategory() [all...] |
/base/hiviewdfx/hiview/interfaces/inner_api/unified_collection/client/src/ |
H A D | trace_collector_client_impl.cpp | 32 virtual CollectResult<int32_t> OpenRecording(const std::string& tags) override; 55 CollectResult<int32_t> TraceCollectorImpl::OpenRecording(const std::string& tags) in OpenRecording() argument 57 return HiViewServiceTraceDelegate::OpenRecording(tags); in OpenRecording()
|
/base/hiviewdfx/hiview/adapter/service/client/src/ |
H A D | hiview_service_trace_delegate.cpp | 41 CollectResult<int32_t> HiViewServiceTraceDelegate::OpenRecording(const std::string& tags) in OpenRecording() argument 43 auto proxyHandler = [&tags] (HiviewServiceAbilityProxy& proxy) { in OpenRecording() 44 return proxy.OpenRecordingTrace(tags); in OpenRecording()
|
H A D | hiview_service_ability_proxy.cpp | 163 CollectResultParcelable<int32_t> HiviewServiceAbilityProxy::OpenRecordingTrace(const std::string& tags) in OpenRecordingTrace() argument 165 auto parcelHandler = [&tags] (MessageParcel& data) { in OpenRecordingTrace() 166 return data.WriteString(tags); in OpenRecordingTrace()
|
/base/hiviewdfx/hitrace/interfaces/js/kits/napi/hitracemeter/ |
H A D | napi_hitrace_meter.cpp | 125 void SetTagsParam(const napi_env& env, const napi_value& value, uint64_t& tags)
in SetTagsParam() argument 150 tags |= g_tagsMap[tagStr];
in SetTagsParam() 155 bool ParseTagsParam(const napi_env& env, const napi_value& value, uint64_t& tags)
in ParseTagsParam() argument 165 SetTagsParam(env, value, tags);
in ParseTagsParam() 263 uint64_t tags = HITRACE_TAG_APP;
in JSStartCaptureAppTrace() local 264 if (!ParseTagsParam(env, argv[FIRST_ARG_INDEX], tags)) {
in JSStartCaptureAppTrace() 279 if (StartCaptureAppTrace((TraceFlag)flag, tags, limitSize, file) != RET_SUCC) {
in JSStartCaptureAppTrace()
|
/base/hiviewdfx/hilog/services/hilogd/include/ |
H A D | log_filter.h | 35 char tags[MAX_TAGS][MAX_TAG_LEN]; member 54 std::cout << " tag[" << i << "]: " << tags[i] << std::endl; in Print()
|
/base/hiviewdfx/hiview/service/test/fuzztest/common/hiviewservice_fuzzer/ |
H A D | hiviewservice_fuzzer.cpp | 84 std::string tags = std::string(reinterpret_cast<const char*>(data), size); in HiViewServiceRecordingTraceFuzzTest() local 85 g_hiviewService.OpenRecordingTrace(tags); in HiViewServiceRecordingTraceFuzzTest()
|
/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/ |
H A D | memory_util.cpp | 53 bool MemoryUtil::GetTypeValue(const string &str, const vector<string> &tags, string &type, uint64_t &value) in GetTypeValue() argument 63 auto iter = find(tags.begin(), tags.end(), tempType); in GetTypeValue() 64 if (iter != tags.end()) { in GetTypeValue()
|
/base/security/asset/frameworks/js/napi/src/ |
H A D | asset_napi_check.cpp | 98 bool CheckTagRange(const napi_env env, const AssetAttr &attr, const std::vector<uint32_t> &tags) in CheckTagRange() argument 100 auto it = std::find(tags.begin(), tags.end(), attr.value.u32); in CheckTagRange() 101 if (it == tags.end()) { in CheckTagRange() 103 "Value[0x%X] of tag[asset.Tag.(%s)] is not tags allowed for sorting, " in CheckTagRange()
|
/base/hiviewdfx/hiview/base/ |
H A D | plugin.cpp | 100 const std::unordered_set<std::string> &eventNames, const std::unordered_set<std::string> &tags,
in AddDispatchInfo() 106 context_->AddDispatchInfo(shared_from_this(), types, eventNames, tags, domainRulesMap);
in AddDispatchInfo() local 99 AddDispatchInfo(const std::unordered_set<uint8_t>& types, const std::unordered_set<std::string> &eventNames, const std::unordered_set<std::string> &tags, const std::unordered_map<std::string, DomainRule>& domainRulesMap) AddDispatchInfo() argument
|
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/ |
H A D | PluralFetcher.java | 123 String[] tags = languageTag.split("-"); in getPluralItems() 124 ret[0] = tags[0]; in getPluralItems()
|
/base/security/asset/test/unittest/inner_kits_rust/src/ |
H A D | query_abnormal.rs | 80 let tags = [ in query_invalid_return_ordered_by() 97 for tag in tags { in query_invalid_return_ordered_by() 159 let tags = [Tag::RequirePasswordSet, Tag::IsPersistent]; in query_bool_tag_with_unmatched_type() 160 for tag in tags { in query_bool_tag_with_unmatched_type()
|
H A D | pre_query_abnormal.rs | 79 let tags = [Tag::RequirePasswordSet, Tag::IsPersistent]; in pre_query_bool_tag_with_unmatched_type() 80 for tag in tags { in pre_query_bool_tag_with_unmatched_type()
|
/base/hiviewdfx/hiview/interfaces/inner_api/unified_collection/client/ |
H A D | trace_collector_client.h | 54 virtual CollectResult<int32_t> OpenRecording(const std::string& tags) = 0;
|
/base/hiviewdfx/hiview/adapter/service/client/include/ |
H A D | hiview_service_trace_delegate.h | 33 static CollectResult<int32_t> OpenRecording(const std::string& tags);
|
/base/hiviewdfx/hilog/services/hilogtool/ |
H A D | main.cpp | 89 << " Show specific tag/tags logs with format: tag1,tag2,tag3" << endl in QueryHelper() 90 << " Don't show specific tag/tags logs with format: ^tag1,tag2,tag3" << endl in QueryHelper() 323 string tags[MAX_TAGS]; member 335 pidCount(0), pids { 0 }, types(0), blackTag(false), tagCount(0), tags { "" }, colorful(false), 353 (void)strncpy_s(rqst.tags[i], MAX_TAG_LEN, tags[i].c_str(), tags[i].length()); in ToOutputRqst() 480 ret = SetTagLevel(context.tags[i], context.baseLevel); in BaseLogLevelHandler() 481 PrintResult(ret, (string("Set tag ") + context.tags[i] + " log level to " + arg)); in BaseLogLevelHandler() 784 std::vector<std::string> tags; in TagHandler() local [all...] |
/base/hiviewdfx/hitrace/interfaces/native/innerkits/include/hitrace_meter/ |
H A D | hitrace_meter.h | 95 #error HITRACE_TAG must be defined to be one of the tags defined in hitrace_meter.h 97 #error HITRACE_TAG must be defined to be one of the tags defined in hitrace_meter.h 206 int StartCaptureAppTrace(TraceFlag flag, uint64_t tags, uint64_t limitSize, std::string& fileName);
|
/base/hiviewdfx/hiview/adapter/service/common/include/ |
H A D | ihiview_service_ability.h | 42 virtual CollectResultParcelable<int32_t> OpenRecordingTrace(const std::string& tags) = 0;
|
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/ |
H A D | hitrace_meter.cpp | 65 const std::string KEY_TRACE_TAG = "debug.hitrace.tags.enableflags"; 148 uint64_t tags = 0; in UpdateSysParamTags() local 149 tags = strtoull(paramValue, nullptr, 0); in UpdateSysParamTags() 150 g_tagsProperty = (tags | HITRACE_TAG_ALWAYS) & HITRACE_TAG_VALID_MASK; in UpdateSysParamTags() 220 // get tags and pid in OpenTraceMarkerFile() 316 int CheckAppTraceArgs(TraceFlag flag, uint64_t tags, uint64_t limitSize) in CheckAppTraceArgs() argument 323 if (static_cast<int64_t>(tags) < 0 || !UNEXPECTANTLY(tags & VALID_TAGS)) { in CheckAppTraceArgs() 324 HILOG_ERROR(LOG_CORE, "tags(%{public}" PRId64 ") is invalid", tags); in CheckAppTraceArgs() 1023 StartCaptureAppTrace(TraceFlag flag, uint64_t tags, uint64_t limitSize, std::string& fileName) StartCaptureAppTrace() argument [all...] |
/base/hiviewdfx/hitrace/cmd/src/ |
H A D | hitrace_cmd.cpp | 50 std::string tags; member 127 constexpr const char *TRACE_TAG_PROPERTY = "debug.hitrace.tags.enableflags"; 224 static bool SetTraceTagsEnabled(uint64_t tags) in SetTraceTagsEnabled() argument 226 string value = std::to_string(tags); in SetTraceTagsEnabled() 459 g_traceArgs.tags = tag; in AddTagItems() 461 g_traceArgs.tags += ("," + tag); in AddTagItems() 620 if (g_traceArgs.tags.size() == 0) { in ReloadTraceArgs() 624 std::string args = "tags:" + g_traceArgs.tags; in ReloadTraceArgs()
|
/base/security/asset/services/core_service/src/operations/common/ |
H A D | argument_check.rs | 115 fn check_tag_range(tag: &Tag, value: &Value, tags: &[Tag]) -> Result<()> { in check_tag_range() 120 Ok(value) if tags.contains(&value) => Ok(()), in check_tag_range()
|