Home
last modified time | relevance | path

Searched refs:prefix (Results 1 – 25 of 79) sorted by relevance

1234

/base/hiviewdfx/faultloggerd/common/dfxutil/
Dstring_util.h46 inline bool StartsWith(const std::string& s, const std::string& prefix) in StartsWith() argument
48 return s.substr(0, prefix.size()) == prefix; in StartsWith()
51 inline bool StartsWith(const std::string& s, char prefix) in StartsWith() argument
53 return !s.empty() && s.front() == prefix; in StartsWith()
56 inline bool StartsWithIgnoreCase(const std::string& s, const std::string& prefix) in StartsWithIgnoreCase() argument
58 return s.size() >= prefix.size() && strncasecmp(s.data(), prefix.data(), prefix.size()) == 0; in StartsWithIgnoreCase()
/base/startup/init/services/param/watcher/agent/
Dwatcher_manager_kits.cpp275 const std::string &prefix, const std::string &name, const std::string &value) in OnParameterChange() argument
277 Watcher::OnParameterChange(prefix, name, value); in OnParameterChange()
279 WatcherManagerKits::ParamWatcher *watcher = watcherManager_->GetParamWatcher(prefix); in OnParameterChange()
280 WATCHER_CHECK(watcher != nullptr, return, "Failed to get watcher '%s'", prefix.c_str()); in OnParameterChange()
310 static int PreHandleWatchParam(std::string &prefix) in PreHandleWatchParam() argument
313 prefix.erase(0, prefix.find_first_not_of(" ")); in PreHandleWatchParam()
314 prefix.erase(prefix.find_last_not_of(" ") + 1); in PreHandleWatchParam()
315 WATCHER_CHECK(!prefix.empty(), return PARAM_CODE_INVALID_PARAM, "Invalid prefix"); in PreHandleWatchParam()
317 if (prefix.rfind(".*") == prefix.length() - 2) { // 2 last index in PreHandleWatchParam()
318 ret = WatchParamCheck(prefix.substr(0, prefix.length() - 2).c_str()); // 2 last index in PreHandleWatchParam()
[all …]
Dwatcher.cpp20 void Watcher::OnParameterChange(const std::string &prefix, const std::string &name, const std::stri… in OnParameterChange() argument
Dwatcher.h29 …void OnParameterChange(const std::string &prefix, const std::string &name, const std::string &valu…
/base/startup/init/ueventd/include/
Dueventd_utils.h27 #define STARTSWITH(str, prefix) (strncmp((str), (prefix), strlen(prefix)) == 0) argument
/base/startup/init/services/param/trigger/
Dtrigger_checker.c120 static int PrefixAdd(char *prefix, uint32_t *prefixIndex, uint32_t prefixLen, char op) in PrefixAdd() argument
125 prefix[(*prefixIndex)++] = ' '; in PrefixAdd()
126 prefix[(*prefixIndex)++] = op; in PrefixAdd()
127 prefix[(*prefixIndex)++] = ' '; in PrefixAdd()
131 static int HandleOperationOr(LogicCalculator *calculator, char *prefix, uint32_t *prefixIndex, uint… in HandleOperationOr() argument
134 prefix[(*prefixIndex)++] = ' '; in HandleOperationOr()
143 int ret = PrefixAdd(prefix, prefixIndex, prefixLen, e); in HandleOperationOr()
272 int ConvertInfixToPrefix(const char *condition, char *prefix, uint32_t prefixLen) in ConvertInfixToPrefix() argument
274 PARAM_CHECK(condition != NULL && prefix != NULL, return -1, "Invalid condition"); in ConvertInfixToPrefix()
287 ret = PrefixAdd(prefix, &prefixIndex, prefixLen, e); in ConvertInfixToPrefix()
[all …]
/base/telephony/ril_adapter/services/vendor/include/
Dat_support.h56 int32_t SendCommandLock(const char *command, const char *prefix, long long timeout, ResponseInfo **…
59 const char *command, const char *prefix, long long timeout, ResponseInfo **outResponse);
62 …const char *command, const char *smsPdu, const char *prefix, long long timeout, ResponseInfo **out…
/base/msdp/device_status/utils/common/src/
Dutility.cpp74 bool Utility::StartWith(const char *str, const char *prefix) in StartWith() argument
76 size_t prefixlen = strlen(prefix); in StartWith()
77 return (prefixlen > 0 ? (strncmp(str, prefix, strlen(prefix)) == 0) : false); in StartWith()
80 bool Utility::StartWith(const std::string &str, const std::string &prefix) in StartWith() argument
82 if (str.size() < prefix.size()) { in StartWith()
85 return (str.compare(0, prefix.size(), prefix) == 0); in StartWith()
/base/startup/init/services/param/watcher/proxy/
Dwatcher_proxy.cpp27 void WatcherProxy::OnParameterChange(const std::string &prefix, const std::string &name, const std:… in OnParameterChange() argument
34 data.WriteString(prefix); in OnParameterChange()
/base/startup/init/test/moduletest/
Dtest_utils.cpp61 bool StartsWith(const std::string &str, const std::string &prefix) in StartsWith() argument
63 return ((str.size() > prefix.size()) && (str.substr(0, prefix.size()) == prefix)); in StartsWith()
/base/startup/init/services/modules/reboot/
Dreboot_static.c50 static char *Dup2String(const char *prefix, const char *str) in Dup2String() argument
57 size_t len = strlen(prefix) + strlen(str) + 1; in Dup2String()
59 PLUGIN_CHECK(tmp != NULL, return NULL, "Failed to alloc %s %s", prefix, str); in Dup2String()
60 int ret = sprintf_s(tmp, len, "%s%s", prefix, str); in Dup2String()
62 return NULL, "Failed to sprintf %s %s", prefix, str); in Dup2String()
/base/hiviewdfx/hiview/plugins/faultlogger/service/sanitizer_collector/gwp_asan/
Dgwpasan_collector.cpp139 std::string prefix = ""; in CalcCollectedLogName() local
141 prefix = "gwpasan"; in CalcCollectedLogName()
143 prefix = "tsan"; in CalcCollectedLogName()
145 prefix = "ubsan"; in CalcCollectedLogName()
147 prefix = "unknown-crash"; in CalcCollectedLogName()
155 fileName.append(prefix); in CalcCollectedLogName()
/base/hiviewdfx/hiview_lite/
Dhiview_file.c66 pCommon->prefix = HIVIEW_FILE_HEADER_PREFIX_TEXT; in InitHiviewFile()
69 pCommon->prefix = HIVIEW_FILE_HEADER_PREFIX_LOG; in InitHiviewFile()
74 pCommon->prefix = HIVIEW_FILE_HEADER_PREFIX_EVENT; in InitHiviewFile()
108 tmpHeader.common.prefix = Change32Endian(tmpHeader.common.prefix); in WriteFileHeader()
135 h.common.prefix = Change32Endian(h.common.prefix); in ReadFileHeader()
142 ((h.common.prefix & 0xFFFFFF00) == HIVIEW_FILE_HEADER_PREFIX_MASK) && in ReadFileHeader()
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/
Dnapi_hisysevent_init.cpp66 napi_value prefix = nullptr; in InitRuleTypeEnum() local
67 napi_create_int32(env, PREFIX, &prefix); in InitRuleTypeEnum()
72 ruleTypeMap["PREFIX"] = prefix; in InitRuleTypeEnum()
/base/telephony/ril_adapter/services/vendor/src/
Dat_support.c220 int32_t SendCommandLock(const char *command, const char *prefix, long long timeout, ResponseInfo **… in SendCommandLock() argument
242 g_prefix = prefix; in SendCommandLock()
256 int32_t SendCommandNetWorksLock(const char *command, const char *prefix, long long timeout, Respons… in SendCommandNetWorksLock() argument
265 g_prefix = prefix; in SendCommandNetWorksLock()
277 …const char *command, const char *smsPdu, const char *prefix, long long timeout, ResponseInfo **out… in SendCommandSmsLock() argument
285 g_prefix = prefix; in SendCommandSmsLock()
/base/security/dlp_permission_service/services/dlp_permission/sa/storage/src/
Dsandbox_config_kv_data_storage.cpp120 std::string prefix = std::to_string(userId) + KEY_SEPATATOR; in GetKeySetByUserId() local
121 if (it->first.find(prefix) != std::string::npos) { in GetKeySetByUserId()
122 std::string bundleName = it->first.substr(prefix.length(), it->first.length()); in GetKeySetByUserId()
/base/startup/init/services/param/manager/
Dparam_persist.c102 const char *prefix = ""; in BatchSavePersistParam() local
104 const char *prefix = PARAM_PERSIST_PREFIX; in BatchSavePersistParam() local
110 ParamTrieNode *root = FindTrieNode(workSpace, prefix, strlen(prefix), NULL); in BatchSavePersistParam()
Dparam_manager.c78 …if ((strcmp("#", context->prefix) != 0) && (strncmp(entry->data, context->prefix, strlen(context-> in ProcessParamTraversal()
86 int SystemTraversalParameter(const char *prefix, TraversalParamPtr traversalParameter, void *cookie) in SystemTraversalParameter() argument
100 if (!(prefix == NULL || strlen(prefix) == 0)) { in SystemTraversalParameter()
101 int ret = CheckParamPermission(GetParamSecurityLabel(), prefix, DAC_READ); in SystemTraversalParameter()
102 PARAM_CHECK(ret == 0, return ret, "Forbid to traversal parameters %s", prefix); in SystemTraversalParameter()
103 context.prefix = (char *)prefix; in SystemTraversalParameter()
113 if (prefix != NULL && strlen(prefix) != 0) { in SystemTraversalParameter()
114 root = FindTrieNode(workSpace, prefix, strlen(prefix), NULL); in SystemTraversalParameter()
/base/security/code_signature/services/key_enable/src/
Dfile_utils.rs52 pub fn fmt_store_path(prefix: &str, tail: &str) -> String { in fmt_store_path()
53 format!("{}/{}", prefix, tail) in fmt_store_path()
/base/startup/init/services/begetctl/
Dparam_cmd.c225 char *prefix = strdup((strlen(realParameter) == 0) ? "#" : realParameter); in BShellParamCmdLs() local
226 BSH_CHECK(prefix != NULL, return BSH_SYSTEM_ERR, "failed dup perfix"); in BShellParamCmdLs()
227 BSH_LOGV("BShellParamCmdLs prefix %s", prefix); in BShellParamCmdLs()
230 ret = SystemTraversalParameter(prefix, ShowParamForCmdLs, (void *)shell); in BShellParamCmdLs()
235 ret = SystemCheckParamExist(prefix); in BShellParamCmdLs()
238 ret = SystemFindParameter(prefix, &handle); in BShellParamCmdLs()
245 ShowParam(shell, prefix, NULL); in BShellParamCmdLs()
249 BShellEnvOutput(shell, "Parameter %s not found\r\n", prefix); in BShellParamCmdLs()
252 free(prefix); in BShellParamCmdLs()
/base/update/sys_installer/services/module_update/util/src/
Dmodule_utils.cpp134 bool StartsWith(const std::string &str, const std::string &prefix) in StartsWith() argument
136 return str.substr(0, prefix.size()) == prefix; in StartsWith()
/base/update/updateservice/interfaces/inner_api/modulemgr/src/
Dmodule_manager.cpp37 std::string prefix = "/system/lib64/updateext"; in LoadModule() local
40 if ((libPath.substr(0, prefix.length()) != prefix && in LoadModule()
/base/msdp/device_status/utils/common/include/
Dutility.h40 static bool StartWith(const char *str, const char *prefix);
41 static bool StartWith(const std::string &str, const std::string &prefix);
/base/startup/init/services/param/watcher/include/
Diwatcher.h34 …virtual void OnParameterChange(const std::string &prefix, const std::string &name, const std::stri…
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/
Dcommon_util.cpp113 …ommonUtil::CreateExportFile(const std::string& path, int32_t maxFileNum, const std::string& prefix, in CreateExportFile() argument
122 GetDirRegexFiles(path, prefix + EXPORT_FILE_REGEX, files); in CreateExportFile()
133 fileName.append(path).append(prefix).append(timeFormat); in CreateExportFile()

1234