/base/hiviewdfx/faultloggerd/common/dfxutil/ |
D | string_util.h | 46 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/ |
D | watcher_manager_kits.cpp | 275 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 …]
|
D | watcher.cpp | 20 void Watcher::OnParameterChange(const std::string &prefix, const std::string &name, const std::stri… in OnParameterChange() argument
|
D | watcher.h | 29 …void OnParameterChange(const std::string &prefix, const std::string &name, const std::string &valu…
|
/base/startup/init/ueventd/include/ |
D | ueventd_utils.h | 27 #define STARTSWITH(str, prefix) (strncmp((str), (prefix), strlen(prefix)) == 0) argument
|
/base/startup/init/services/param/trigger/ |
D | trigger_checker.c | 120 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/ |
D | at_support.h | 56 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/ |
D | utility.cpp | 74 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/ |
D | watcher_proxy.cpp | 27 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/ |
D | test_utils.cpp | 61 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/ |
D | reboot_static.c | 50 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/ |
D | gwpasan_collector.cpp | 139 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/ |
D | hiview_file.c | 66 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/ |
D | napi_hisysevent_init.cpp | 66 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/ |
D | at_support.c | 220 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/ |
D | sandbox_config_kv_data_storage.cpp | 120 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/ |
D | param_persist.c | 102 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()
|
D | param_manager.c | 78 …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/ |
D | file_utils.rs | 52 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/ |
D | param_cmd.c | 225 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/ |
D | module_utils.cpp | 134 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/ |
D | module_manager.cpp | 37 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/ |
D | utility.h | 40 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/ |
D | iwatcher.h | 34 …virtual void OnParameterChange(const std::string &prefix, const std::string &name, const std::stri…
|
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/ |
D | common_util.cpp | 113 …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()
|