Home
last modified time | relevance | path

Searched defs:str (Results 1 – 25 of 429) sorted by relevance

12345678910>>...18

/base/update/updater/test/unittest/utils/json/
Dutils_json_test.cpp56 std::string str = R"({"key": "value1"})"; variable
62 std::string str = R"({"key"})"; variable
70 std::string str = R"({"key": "value1"})"; variable
77 std::string str = R"({"key": "value1"})"; variable
85 std::string str = R"({"key": 1})"; variable
93 std::string str = R"({"key": true})"; variable
101 std::string str = R"({"key": [1, true, "value"]})"; variable
112 std::string str = R"({"key": {"key" : "value"}}})"; variable
120 std::string str = R"({"key1": null})"; variable
127 std::string str = R"({"key":})"; variable
[all …]
/base/security/device_security_level/oem_property/ohos/standard/
Ddslm_cred_tool.py96 def __init__(self, store_dir: str = 'artifacts'):
105 def generate_ecc_key_pair(self, key_alias: str, curve: str = 'brainpoolP384r1') -> bool:
129 def get_ecc_public_key(self, key_alias: str) -> bytes:
151 def digest_sign(self, key_alias: str, content: bytes, digest: str = '-sha384') -> bytes:
165 …def digest_verify_with_key_alias(self, key_alias: str, content: bytes, sig: bytes, digest: str = '…
182 …def digest_verify_with_pub_key(self, pub_key: bytes, content: bytes, sig: bytes, digest: str = '-s…
221 def __init__(self, store_dir: str):
248 def __init__(self, store_dir: str, file: str, payload: dict):
257 def _gene_attestation(self, root_pk: str, root_sign: str,
258 oem_pk: str, oem_sign: str,
[all …]
/base/security/device_auth/common_lib/impl/src/
Dhc_string.c30 HcBool StringAppend(HcString *self, HcString str) in StringAppend()
50 HcBool StringAppendPointer(HcString *self, const char *str) in StringAppendPointer()
90 HcBool StringSet(HcString *self, HcString str) in StringSet()
107 HcBool StringSetPointer(HcString *self, const char *str) in StringSetPointer()
157 HcString str; in CreateString() local
171 void DeleteString(HcString *str) in DeleteString()
/base/update/updater/test/fuzztest/updaterutils_fuzzer/
Dupdater_utils_fuzzer.cpp138 std::string str = R"({"key": "value1"})"; in TestJsonNodeValueKey() local
144 std::string str = R"({"key"})"; in TestJsonNodeValueKey() local
152 std::string str = R"({"key": "value1"})"; in TestJsonNodeKey() local
159 std::string str = R"({"key": "value1"})"; in TestJsonNodeValueTypeStr() local
167 std::string str = R"({"key": 1})"; in TestJsonNodeValueTypeInt() local
175 std::string str = R"({"key": true})"; in TestJsonNodeValueTypeBool() local
183 std::string str = R"({"key": [1, true, "value"]})"; in TestJsonNodeValueTypeArray() local
194 std::string str = R"({"key": {"key" : "value"}}})"; in TestJsonNodeValueTypeObject() local
202 std::string str = R"({"key1": null})"; in TestJsonNodeValueTypeNull() local
209 std::string str = R"({"key":})"; in TestJsonNodeValueTypeUnknow() local
[all …]
/base/hiviewdfx/hidumper/test/unittest/common/
Dmemory_dumper_test.cpp64 std::string str = "Anonymous Page"; variable
81 std::string str = "DMA"; variable
94 std::string str = "Total"; variable
113 std::string str = "GPU"; variable
126 std::string str = "Total Purgeable"; variable
139 std::string str = "Dma PurgSum PurgPin"; variable
/base/hiviewdfx/hilog_lite/frameworks/js/builtin/src/
Dhilog_string.cpp36 char *HilogString::Get(const HilogString *str) in Get()
44 size_t HilogString::Length(const HilogString *str) in Length()
52 size_t HilogString::Puts(const char *src, HilogString *str, size_t strLen) in Puts()
78 char HilogString::Putc(char c, HilogString *str) in Putc()
/base/security/asset/frameworks/os_dependency/log/src/
Dlib.rs23 pub fn log_func_i(log: &str) { in log_func_i()
29 pub fn log_func_w(log: &str) { in log_func_w()
35 pub fn log_func_e(log: &str) { in log_func_e()
/base/print/print_fwk/utils/include/
Dprint_util.h46 std::string str; in ParseListToString() local
61 inline std::string PrintUtil::SplitStr(const std::string& str, char delimiter, int index) in SplitStr()
79 std::string str = val; in ToUpper() local
86 inline bool PrintUtil::CheckContains(const std::string& str, const std::string& content) in CheckContains()
/base/notification/distributed_notification_service/services/distributed/test/unittest/mock/
Dmock_blob.cpp59 Blob::Blob(const char *str, size_t n) : blob_() in Blob()
66 Blob::Blob(const std::string &str) : blob_(str.begin(), str.end()) in Blob()
69 Blob::Blob(const char *str) : blob_() in Blob()
89 std::string str(blob_.begin(), blob_.end()); in ToString() local
/base/security/code_signature/services/key_enable/src/
Dcs_hisysevent.rs19 pub fn report_add_key_err(cert_type: &str, errcode: i32) { in report_add_key_err()
32 pub fn report_parse_profile_err(profile_path: &str, errcode: i32) { in report_parse_profile_err()
/base/hiviewdfx/hidumper/frameworks/native/src/util/
Dstring_utils.cpp37 void StringUtils::StringRegex(const string &str, const string &pattern, const int& idx, string &res… in StringRegex()
75 void StringUtils::ReplaceAll(string &str, const string &oldValue, const string &newValue) in ReplaceAll()
80 bool StringUtils::IsNum(string str) in IsNum()
85 bool StringUtils::Compare(const string &str, const vector<string> &strs) in Compare()
96 void StringUtils::HexToDec(const string &str, uint64_t &value) in HexToDec()
128 void StringUtils::SetWidth(const int &width, const char &fileStr, const bool &left, string &str) in SetWidth()
Dzip_utils.cpp46 for (auto str : allFiles) { in ZipFolder() local
53 [zipRootLen](const std::string &str) { in ZipFolder()
/base/security/crypto_framework/common/src/
Dhcf_string.c32 bool StringAppendPointer(HcString *self, const char *str) in StringAppendPointer()
51 bool StringSetPointer(HcString *self, const char *str) in StringSetPointer()
69 bool StringSetPointerWithLength(HcString* self, const char *str, uint32_t len) in StringSetPointerWithLength()
214 HcString str; in CreateString() local
228 void DeleteString(HcString *str) in DeleteString()
Dutils.c23 bool IsStrValid(const char *str, uint32_t maxLen) in IsStrValid()
55 size_t HcfStrlen(const char *str) in HcfStrlen()
/base/hiviewdfx/hilog/test/unittest/common/
Dhilogtool_test.cpp75 static bool IsExistInCmdResult(const std::string &cmd, const std::string &str) in IsExistInCmdResult()
167 std::string str = "Set global log level to " + level + " successfully\n"; variable
193 …std::string str = "Set domain 0x" + Uint2HexStr(domain) + " log level to " + level + " successfull… variable
218 std::string str = "Set tag " + tag + " log level to " + level + " successfully\n"; variable
245 std::string str = "Set log type app buffer size to 512.0K successfully\n" variable
271 std::string str = "Log type app buffer size is 512.0K\n" variable
291 std::string str = "Set hilogd storing kmsg log on successfully\n"; variable
320 std::string str = "Set hilog privacy format on successfully\n"; variable
351 std::string str = "Set flow control by process to enabled, result: Success [CODE: 0]\n"; variable
429 std::string str = "Log type core,app buffer clear successfully\n"; variable
[all …]
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/
Dcommon_util.cpp28 bool CommonUtil::ParseTypeAndValue(const std::string &str, std::string &type, int32_t &value) in ParseTypeAndValue()
50 bool CommonUtil::StartWith(const std::string& str, const std::string& sub) in StartWith()
55 bool CommonUtil::EndWith(const std::string& str, const std::string& sub) in EndWith()
/base/hiviewdfx/hilog/frameworks/libhilog/utils/
Dlog_utils.cpp58 string str; in Size2Str() local
79 uint64_t Str2Size(const string& str) in Str2Size()
160 uint16_t Str2LogType(const string& str) in Str2LogType()
168 string str = ""; in ComboLogType2Str() local
187 uint16_t Str2ComboLogType(const string& str) in Str2ComboLogType()
233 uint16_t Str2LogLevel(const string& str) in Str2LogLevel()
251 uint16_t ShortStr2LogLevel(const string& str) in ShortStr2LogLevel()
256 uint16_t PrettyStr2LogLevel(const string& str) in PrettyStr2LogLevel()
268 string str = ""; in ComboLogLevel2Str() local
287 uint16_t Str2ComboLogLevel(const string& str) in Str2ComboLogLevel()
[all …]
/base/startup/init/test/moduletest/
Dtest_utils.cpp61 bool StartsWith(const std::string &str, const std::string &prefix) in StartsWith()
66 bool EndsWith(const std::string &str, const std::string &suffix) in EndsWith()
71 std::string Trim(const std::string &str) in Trim()
97 std::vector<std::string> Split(const std::string &str, const std::string &pattern) in Split()
/base/telephony/core_service/utils/common/src/
Dstr_convert.cpp22 std::u16string ToUtf16(std::string str) in ToUtf16()
32 std::u32string ToUtf32(std::string str) in ToUtf32()
/base/security/asset/frameworks/definition/src/
Dmacros.rs134 let str = format!($($arg)*); localVariable
153 let str = format!($($arg)*); localVariable
/base/customization/enterprise_device_management/common/native/src/
Dedm_utils.cpp23 ErrCode EdmUtils::ParseStringToInt(const std::string &str, int32_t &result) in ParseStringToInt()
31 ErrCode EdmUtils::ParseStringToLong(const std::string &str, int64_t &result) in ParseStringToLong()
/base/startup/init/ueventd/include/
Dueventd_utils.h27 #define STARTSWITH(str, prefix) (strncmp((str), (prefix), strlen(prefix)) == 0) argument
29 #define INVALIDSTRING(str) ((str) == NULL || *(str) == '\0') argument
/base/hiviewdfx/hitrace/interfaces/rust/innerkits/hitrace_meter/src/
Dlib.rs20 pub fn start_trace(label: u64, value: &str) { in start_trace()
37 pub fn start_trace_async(label: u64, value: &str, task_id: i32) { in start_trace_async()
46 pub fn finish_trace_async(label: u64, value: &str, task_id: i32) { in finish_trace_async()
55 pub fn count_trace(label: u64, name: &str, count: i64) { in count_trace()
/base/hiviewdfx/hilog/test/moduletest/common/
Dhilog_ndk_test.cpp97 std::string str; in PopenToString() local
134 std::string str; in RandomStringGenerator() local
155 std::string str; in HiLogWriteTest() local
171 const std::string str = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; in FlowCtlTest() local
390 std::string str; variable
408 std::string str; variable
/base/update/updater/services/include/log/
Ddump.h42 void RecordDump(const std::string &str) override in RecordDump()
64 std::string str = oss.str(); in DumpInfo() local

12345678910>>...18