Home
last modified time | relevance | path

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

12345678910>>...12

/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/
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/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/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/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()
/base/hiviewdfx/hilog/test/unittest/common/
Dhilogtool_test.cpp85 bool IsExistInCmdResult(const std::string &cmd, const std::string &str) in IsExistInCmdResult()
169 std::string str = "Set global log level to " + level + " successfully\n"; variable
195 …std::string str = "Set domain 0x" + Uint2HexStr(domain) + " log level to " + level + " successfull… variable
220 std::string str = "Set tag " + tag + " log level to " + level + " successfully\n"; variable
247 std::string str = "Set log type app buffer size to 512.0K successfully\n" variable
273 std::string str = "Log type app buffer size is 512.0K\n" variable
293 std::string str = "Set hilogd storing kmsg log on successfully\n"; variable
322 std::string str = "Set hilog privacy format on successfully\n"; variable
353 std::string str = "Set flow control by process to enabled, result: Success [CODE: 0]\n"; variable
431 std::string str = "Log type core,app buffer clear successfully\n"; variable
[all …]
/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/hiviewdfx/hidumper/frameworks/native/src/util/
Dstring_utils.cpp66 void StringUtils::ReplaceAll(string &str, const string &oldValue, const string &newValue) in ReplaceAll()
71 bool StringUtils::IsNum(string str) in IsNum()
76 bool StringUtils::Compare(const string &str, const vector<string> &strs) in Compare()
87 void StringUtils::HexToDec(const string &str, uint64_t &value) in HexToDec()
119 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/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/hiviewdfx/hidumper/frameworks/native/src/executor/memory/parse/
Dparse_meminfo.cpp40 void ParseMeminfo::SetData(const string &str, ValueMap &result) in SetData()
63 string str; in GetMeminfo() local
Dparse_smaps_info.cpp33 bool ParseSmapsInfo::GetHasPidValue(const string &str, string &type, uint64_t &value) in GetHasPidValue()
64 bool ParseSmapsInfo::GetNoPidValue(const string &str, string &type, uint64_t &value) in GetNoPidValue()
72 bool ParseSmapsInfo::GetValue(const MemoryFilter::MemoryType &memType, const string &str, string &t… in GetValue()
Dparse_vmallocinfo.cpp33 void ParseVmallocinfo::CaclVmalloclValue(const string &str, uint64_t &totalValue) in CaclVmalloclValue()
58 string str; in GetVmallocinfo() local
/base/request/request/download/ability/include/
Dsql_analyzer.h49 inline char PickChar(std::string str, std::size_t index) in PickChar()
56 inline int IsInStr(char ch, std::string str) in IsInStr()
/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/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
Dhilog_base_ndk_test.cpp80 std::string str; in PopenToString() local
116 std::string str; in RandomStringGenerator() local
137 std::string str; in HiLogWriteTest() local
192 std::string str; variable
212 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
/base/notification/distributed_notification_service/services/test/moduletest/mock/
Dblob.cpp59 Blob::Blob(const char *str, size_t n) in Blob()
67 Blob::Blob(const std::string &str) in Blob()
72 Blob::Blob(const char *str) in Blob()
130 std::string str(blob_.begin(), blob_.end()); in ToString() local
/base/notification/distributed_notification_service/services/ans/test/unittest/mock/
Dblob.cpp59 Blob::Blob(const char *str, size_t n) in Blob()
67 Blob::Blob(const std::string &str) in Blob()
72 Blob::Blob(const char *str) in Blob()
130 std::string str(blob_.begin(), blob_.end()); in ToString() local
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/
Dblob.cpp59 Blob::Blob(const char *str, size_t n) in Blob()
67 Blob::Blob(const std::string &str) in Blob()
72 Blob::Blob(const char *str) in Blob()
130 std::string str(blob_.begin(), blob_.end()); in ToString() local
/base/hiviewdfx/hidumper/frameworks/native/src/executor/
Dfd_output.cpp76 std::string str = line[j]; in OutMethod() local
92 void FDOutput::NewLineMethod(std::string &str) in NewLineMethod()
/base/hiviewdfx/hidumper/test/unittest/common/
Dmemory_dumper_test.cpp55 bool MemoryDumperTest::IsExistInCmdResult(const std::string &cmd, const std::string &str) in IsExistInCmdResult()
81 std::string str = "Anonymous Page"; variable
98 std::string str = "DMA"; variable

12345678910>>...12