/base/hiviewdfx/hiview/adapter/system_service/platform/ohos/ |
D | parameter_ex.cpp | 24 std::string GetString(const std::string& key, const std::string& defaultValue) in GetString() 29 int64_t GetInteger(const std::string& key, const int64_t defaultValue) in GetInteger() 34 uint64_t GetUnsignedInteger(const std::string& key, const uint64_t defaultValue) in GetUnsignedInteger() 39 bool GetBoolean(const std::string& key, const bool defaultValue) in GetBoolean() 44 bool SetProperty(const std::string& key, const std::string& defaultValue) in SetProperty() 49 int WaitParamSync(const char *key, const char *value, int timeout) in WaitParamSync()
|
/base/useriam/user_auth_framework/frameworks/native/common/attributes/src/ |
D | attributes.cpp | 174 bool Attributes::Impl::SetBoolValue(AttributeKey key, bool value) in SetBoolValue() 191 bool Attributes::Impl::SetUint64Value(AttributeKey key, uint64_t value) in SetUint64Value() 208 bool Attributes::Impl::SetUint32Value(AttributeKey key, uint32_t value) in SetUint32Value() 225 bool Attributes::Impl::SetUint16Value(AttributeKey key, uint16_t value) in SetUint16Value() 242 bool Attributes::Impl::SetUint8Value(AttributeKey key, uint8_t value) in SetUint8Value() 259 bool Attributes::Impl::SetInt32Value(AttributeKey key, int32_t value) in SetInt32Value() 276 bool Attributes::Impl::SetStringValue(AttributeKey key, const std::string &value) in SetStringValue() 293 bool Attributes::Impl::SetUint64ArrayValue(AttributeKey key, const std::vector<uint64_t> &value) in SetUint64ArrayValue() 310 bool Attributes::Impl::SetUint32ArrayValue(AttributeKey key, const std::vector<uint32_t> &value) in SetUint32ArrayValue() 327 bool Attributes::Impl::SetUint16ArrayValue(AttributeKey key, const std::vector<uint16_t> &value) in SetUint16ArrayValue() [all …]
|
/base/telephony/core_service/utils/preferences/src/ |
D | tel_profile_util.cpp | 34 int TelProfileUtil::SaveString(const std::string &key, const std::string &value) in SaveString() 43 std::string TelProfileUtil::ObtainString(const std::string &key, const std::string &defValue) in ObtainString() 52 int TelProfileUtil::SaveInt(const std::string &key, int value) in SaveInt() 61 int TelProfileUtil::ObtainInt(const std::string &key, int defValue) in ObtainInt() 70 int TelProfileUtil::SaveBool(const std::string &key, bool value) in SaveBool() 79 bool TelProfileUtil::ObtainBool(const std::string &key, bool defValue) in ObtainBool() 88 int TelProfileUtil::SaveLong(const std::string &key, int64_t value) in SaveLong() 97 int64_t TelProfileUtil::ObtainLong(const std::string &key, int64_t defValue) in ObtainLong() 106 int TelProfileUtil::SaveFloat(const std::string &key, float value) in SaveFloat() 115 float TelProfileUtil::ObtainFloat(const std::string &key, float defValue) in ObtainFloat() [all …]
|
/base/hiviewdfx/hiview/adapter/system_service/platform/windows/ |
D | parameter_ex.cpp | 21 std::string GetString(const std::string& key, const std::string& defaultValue) in GetString() 26 int64_t GetInteger(const std::string& key, const int64_t defaultValue) in GetInteger() 31 uint64_t GetUnsignedInteger(const std::string& key, const uint64_t defaultValue) in GetUnsignedInteger() 36 bool GetBoolean(const std::string& key, const bool defaultValue) in GetBoolean() 41 bool SetProperty(const std::string& key, const std::string& defaultValue) in SetProperty()
|
/base/hiviewdfx/hiview/adapter/system_service/platform/linux/ |
D | parameter_ex.cpp | 21 std::string GetString(const std::string& key, const std::string& defaultValue) in GetString() 26 int64_t GetInteger(const std::string& key, const int64_t defaultValue) in GetInteger() 31 uint64_t GetUnsignedInteger(const std::string& key, const uint64_t defaultValue) in GetUnsignedInteger() 36 bool GetBoolean(const std::string& key, const bool defaultValue) in GetBoolean() 41 bool SetProperty(const std::string& key, const std::string& defaultValue) in SetProperty()
|
/base/telephony/data_storage/common/src/ |
D | preferences_util.cpp | 38 int PreferencesUtil::SaveString(const std::string &key, const std::string &value) in SaveString() 47 std::string PreferencesUtil::ObtainString(const std::string &key, const std::string &defValue) in ObtainString() 56 int PreferencesUtil::SaveInt(const std::string &key, int value) in SaveInt() 65 int PreferencesUtil::ObtainInt(const std::string &key, int defValue) in ObtainInt() 74 int PreferencesUtil::SaveBool(const std::string &key, bool value) in SaveBool() 83 bool PreferencesUtil::ObtainBool(const std::string &key, bool defValue) in ObtainBool() 92 int PreferencesUtil::SaveLong(const std::string &key, int64_t value) in SaveLong() 101 int64_t PreferencesUtil::ObtainLong(const std::string &key, int64_t defValue) in ObtainLong() 110 int PreferencesUtil::SaveFloat(const std::string &key, float value) in SaveFloat() 119 float PreferencesUtil::ObtainFloat(const std::string &key, float defValue) in ObtainFloat() [all …]
|
/base/powermgr/battery_manager/services/native/test/unittest/src/ |
D | battery_config_test.cpp | 75 std::string key = "soc.warning"; variable 94 std::string key = "temperature.high"; variable 114 std::string key = "temperature.low"; variable 134 std::string key = "soc.shutdown"; variable 153 std::string key = "soc.low"; variable 225 std::string key = "light.high.soc"; variable 246 std::string key = "invalid.key"; variable
|
/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/ |
D | hks_crypto_hal_api_mbedtls.cpp | 91 HksBlob key = {}; variable 112 HksBlob key = {}; variable 127 HksBlob key = { .size = 0, .data = nullptr }; variable 162 HksBlob key = { .size = 0, .data = nullptr }; variable 197 HksBlob key = { .size = 1, .data = buff }; variable 221 HksBlob key = { .size = 1, .data = buff }; variable 244 HksBlob key = { .size = sizeof(buff), .data = buff }; variable 268 HksBlob key = { .size = sizeof(buff), .data = buff }; variable 290 HksBlob key; variable 338 HksBlob key = { .size = 0, .data = NULL }; variable [all …]
|
D | hks_crypto_hal_api_openssl.cpp | 89 HksBlob key = {}; variable 109 HksBlob key = {}; variable 146 HksBlob key = { .size = 0, .data = nullptr }; variable 181 HksBlob key = { .size = 0, .data = nullptr }; variable 216 HksBlob key = { .size = 1, .data = buff }; variable 252 HksBlob key = { .size = 1, .data = buff }; variable 280 HksBlob key = { .size = sizeof(buff), .data = buff }; variable 304 HksBlob key = { .size = 0, .data = nullptr }; variable 331 HksBlob key = { .size = 0, .data = nullptr }; variable 364 HksBlob key = { .size = sizeof(buff), .data = buff }; variable [all …]
|
/base/security/crypto_framework/test/unittest/src/ |
D | crypto_3des_cipher_test.cpp | 55 static int32_t GenerateDesSymKey(HcfSymKey **key) in GenerateDesSymKey() 73 static int32_t DesEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in DesEncrypt() 116 static int32_t DesDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in DesDecrypt() 163 static int32_t DesNoUpdateEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in DesNoUpdateEncrypt() 193 static int32_t DesNoUpdateDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in DesNoUpdateDecrypt() 235 HcfSymKey *key = NULL; variable 282 HcfSymKey *key = NULL; variable 330 HcfSymKey *key = NULL; variable 378 HcfSymKey *key = NULL; variable 429 HcfSymKey *key = NULL; variable [all …]
|
D | crypto_aes_cipher_test.cpp | 81 static int32_t GenerateSymKey(const char *algoName, HcfSymKey **key) in GenerateSymKey() 99 static int32_t ConvertSymKey(const char *algoName, HcfSymKey **key) in ConvertSymKey() 182 static int32_t AesMultiBlockEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params) in AesMultiBlockEncrypt() 236 static int32_t AesMultiBlockDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params) in AesMultiBlockDecrypt() 290 static int32_t AesEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesEncrypt() 335 static int32_t AesDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesDecrypt() 383 static int32_t AesNoUpdateEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesNoUpdateEncrypt() 415 static int32_t AesNoUpdateDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesNoUpdateDecrypt() 464 HcfSymKey *key = NULL; variable 516 HcfSymKey *key = NULL; variable [all …]
|
/base/theme/wallpaper_mgr/utils/include/ |
D | concurrent_map.h | 78 std::pair<bool, mapped_type> Find(const key_type &key) const noexcept in Find() 89 bool Contains(const key_type &key) const noexcept in Contains() 96 bool InsertOrAssign(const key_type &key, _Obj &&obj) noexcept in InsertOrAssign() 103 bool Insert(const key_type &key, const mapped_type &value) noexcept in Insert() 110 size_type Erase(const key_type &key) noexcept in Erase() 136 …size_type EraseIf(const std::function<bool(const key_type &key, mapped_type &value)> &action) noex… in EraseIf() 192 …bool Compute(const key_type &key, const std::function<bool(const key_type &, mapped_type &)> &acti… in Compute() 213 …bool ComputeIfPresent(const key_type &key, const std::function<bool(const key_type &, mapped_type … in ComputeIfPresent() 229 …bool ComputeIfAbsent(const key_type &key, const std::function<mapped_type(const key_type &)> &acti… in ComputeIfAbsent()
|
/base/notification/distributed_notification_service/services/distributed/src/ |
D | distributed_preferences.cpp | 64 void DistributedPreferences::GetDistributedMainKey(std::string &key) in GetDistributedMainKey() 70 const sptr<NotificationBundleOption> &bundleOption, std::string &key) in GetDistributedBundleKey() 80 std::string key = entry.key.ToString(); in ResolveDistributedKey() local 110 bool DistributedPreferences::ResolveDistributedBundleEnable(const std::string &key, in ResolveDistributedBundleEnable() 131 bool DistributedPreferences::ResolveSyncWithoutAppEnable(const std::string &key, in ResolveSyncWithoutAppEnable() 144 std::string key; in SetDistributedEnable() local 175 std::string key; in SetDistributedBundleEnable() local 210 std::string key; in DeleteDistributedBundleInfo() local 236 void DistributedPreferences::GetEnabledWithoutApp(const int32_t userId, std::string &key) in GetEnabledWithoutApp() 243 std::string key; in SetSyncEnabledWithoutApp() local
|
/base/hiviewdfx/hiappevent/frameworks/native/libhiappevent/ |
D | hiappevent_base.cpp | 221 void AppEventPack::AddParam(const std::string& key) in AddParam() 227 void AppEventPack::AddParam(const std::string& key, bool b) in AddParam() 234 void AppEventPack::AddParam(const std::string& key, char c) in AddParam() 241 void AppEventPack::AddParam(const std::string& key, int8_t num) in AddParam() 248 void AppEventPack::AddParam(const std::string& key, int16_t s) in AddParam() 255 void AppEventPack::AddParam(const std::string& key, int i) in AddParam() 262 void AppEventPack::AddParam(const std::string& key, int64_t ll) in AddParam() 269 void AppEventPack::AddParam(const std::string& key, float f) in AddParam() 276 void AppEventPack::AddParam(const std::string& key, double d) in AddParam() 283 void AppEventPack::AddParam(const std::string& key, const char *s) in AddParam() [all …]
|
/base/security/access_token/services/common/database/src/ |
D | generic_values.cpp | 21 void GenericValues::Put(const std::string& key, int32_t value) in Put() 26 void GenericValues::Put(const std::string& key, int64_t value) in Put() 31 void GenericValues::Put(const std::string& key, const std::string& value) in Put() 36 void GenericValues::Put(const std::string& key, const VariantValue& value) in Put() 86 void GenericValues::Remove(const std::string& key) in Remove()
|
/base/security/device_auth/common_lib/impl/src/ |
D | json_utils.c | 57 void DeleteItemFromJson(CJson *jsonObj, const char *key) in DeleteItemFromJson() 65 void DeleteAllItemExceptOne(CJson *jsonObj, const char *key) in DeleteAllItemExceptOne() 97 CJson *DetachItemFromJson(CJson *jsonObj, const char *key) in DetachItemFromJson() 135 CJson *GetObjFromJson(const CJson *jsonObj, const char *key) in GetObjFromJson() 168 const char *GetStringFromJson(const CJson *jsonObj, const char *key) in GetStringFromJson() 193 int32_t GetByteFromJson(const CJson *jsonObj, const char *key, uint8_t *byte, uint32_t len) in GetByteFromJson() 209 int32_t GetIntFromJson(const CJson *jsonObj, const char *key, int32_t *value) in GetIntFromJson() 235 int32_t GetUnsignedIntFromJson(const CJson *jsonObj, const char *key, uint32_t *value) in GetUnsignedIntFromJson() 267 int32_t GetInt64FromJson(const CJson *jsonObj, const char *key, int64_t *value) in GetInt64FromJson() 277 int32_t GetBoolFromJson(const CJson *jsonObj, const char *key, bool *value) in GetBoolFromJson() [all …]
|
/base/powermgr/power_manager/utils/setting/src/ |
D | setting_provider.cpp | 57 ErrCode SettingProvider::GetIntValue(const std::string& key, int32_t& value) in GetIntValue() 68 ErrCode SettingProvider::GetLongValue(const std::string& key, int64_t& value) in GetLongValue() 79 ErrCode SettingProvider::GetBoolValue(const std::string& key, bool& value) in GetBoolValue() 90 ErrCode SettingProvider::PutIntValue(const std::string& key, int32_t value, bool needNotify) in PutIntValue() 95 ErrCode SettingProvider::PutLongValue(const std::string& key, int64_t value, bool needNotify) in PutLongValue() 100 ErrCode SettingProvider::PutBoolValue(const std::string& key, bool value, bool needNotify) in PutBoolValue() 106 bool SettingProvider::IsValidKey(const std::string& key) in IsValidKey() 113 sptr<SettingObserver> SettingProvider::CreateObserver(const std::string& key, SettingObserver::Upda… in CreateObserver() 168 ErrCode SettingProvider::GetStringValue(const std::string& key, std::string& value) in GetStringValue() 208 ErrCode SettingProvider::PutStringValue(const std::string& key, const std::string& value, bool need… in PutStringValue() [all …]
|
/base/notification/distributed_notification_service/services/distributed/test/unittest/ |
D | distributed_database_test.cpp | 81 void DistributedDatabaseTest::OnInsert(const std::string &deviceId, const std::string &key, const s… in OnInsert() 84 void DistributedDatabaseTest::OnUpdate(const std::string &deviceId, const std::string &key, const s… in OnUpdate() 87 void DistributedDatabaseTest::OnDelete(const std::string &deviceId, const std::string &key, const s… in OnDelete() 117 std::string key("<key>"); variable 130 std::string key("<key>"); variable 156 std::string key("<key>"); variable
|
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/ca/ |
D | hks_ca_access.c | 41 int32_t HksAccessSign(const struct HksBlob *key, const struct HksParamSet *paramSet, in HksAccessSign() 47 int32_t HksAccessVerify(const struct HksBlob *key, const struct HksParamSet *paramSet, in HksAccessVerify() 53 int32_t HksAccessEncrypt(const struct HksBlob *key, const struct HksParamSet *paramSet, in HksAccessEncrypt() 59 int32_t HksAccessDecrypt(const struct HksBlob *key, const struct HksParamSet *paramSet, in HksAccessDecrypt() 70 int32_t HksAccessImportKey(const struct HksBlob *keyAlias, const struct HksBlob *key, in HksAccessImportKey() 77 int32_t HksAccessExportPublicKey(const struct HksBlob *key, const struct HksParamSet *paramSet, in HksAccessExportPublicKey() 95 int32_t HksAccessMac(const struct HksBlob *key, const struct HksParamSet *paramSet, in HksAccessMac() 101 int32_t HksAccessCheckKeyValidity(const struct HksParamSet *paramSet, const struct HksBlob *key) in HksAccessCheckKeyValidity()
|
/base/security/huks/frameworks/huks_standard/main/crypto_engine/openssl/src/ |
D | hks_openssl_rsa.c | 55 static int32_t RsaCheckKeyMaterial(const struct HksBlob *key) in RsaCheckKeyMaterial() 87 static RSA *InitRsaStruct(const struct HksBlob *key, const bool needPrivateExponent) in InitRsaStruct() 143 static int32_t RsaSaveKeyMaterial(const RSA *rsa, const uint32_t keySize, struct HksBlob *key) in RsaSaveKeyMaterial() 189 int32_t HksOpensslRsaGenerateKey(const struct HksKeySpec *spec, struct HksBlob *key) in HksOpensslRsaGenerateKey() 270 static EVP_PKEY_CTX *InitEvpPkeyCtx(const struct HksBlob *key, bool encrypt) in InitEvpPkeyCtx() 340 static int32_t HksOpensslRsaCrypt(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksOpensslRsaCrypt() 389 int32_t HksOpensslRsaEncrypt(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksOpensslRsaEncrypt() 396 int32_t HksOpensslRsaDecrypt(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksOpensslRsaDecrypt() 434 static EVP_PKEY *InitRsaEvpKey(const struct HksBlob *key, bool signing) in InitRsaEvpKey() 456 static EVP_PKEY_CTX *InitRsaCtx(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, bo… in InitRsaCtx() [all …]
|
/base/startup/syspara_lite/adapter/native/syspara/src/ |
D | parameters.cpp | 30 std::string GetParameter(const std::string& key, const std::string& def) override in GetParameter() 43 bool SetParameter(const std::string& key, const std::string& value) override in SetParameter() 48 int WaitParameter(const std::string& key, const std::string& value, int timeout) override in WaitParameter() 53 unsigned int FindParameter(const std::string& key) override in FindParameter() 163 std::string GetParameter(const std::string& key, const std::string& def) in GetParameter() 168 bool GetBoolParameter(const std::string& key, bool def) in GetBoolParameter() 180 T GetIntParameter(const std::string& key, T def, T min, T max) in GetIntParameter() 199 T GetUintParameter(const std::string& key, T def, T max) in GetUintParameter() 217 bool SetParameter(const std::string& key, const std::string& value) in SetParameter() 222 int WaitParameter(const std::string& key, const std::string& value, int timeout) in WaitParameter() [all …]
|
/base/security/huks/services/huks_standard/huks_service/main/os_dependency/idl/passthrough/ |
D | huks_access.c | 65 ENABLE_CFI(int32_t HuksAccessImportKey(const struct HksBlob *keyAlias, const struct HksBlob *key, in ENABLE_CFI() 76 …t32_t HuksAccessImportWrappedKey(const struct HksBlob *wrappingKeyAlias, const struct HksBlob *key, in ENABLE_CFI() 87 ENABLE_CFI(int32_t HuksAccessExportPublicKey(const struct HksBlob *key, const struct HksParamSet *p… in ENABLE_CFI() 98 ENABLE_CFI(int32_t HuksAccessInit(const struct HksBlob *key, const struct HksParamSet *paramSet, in ENABLE_CFI() 141 …(int32_t HuksAccessGetKeyProperties(const struct HksParamSet *paramSet, const struct HksBlob *key)) in ENABLE_CFI() 171 ENABLE_CFI(int32_t HuksAccessSign(const struct HksBlob *key, const struct HksParamSet *paramSet, in ENABLE_CFI() 182 ENABLE_CFI(int32_t HuksAccessVerify(const struct HksBlob *key, const struct HksParamSet *paramSet, in ENABLE_CFI() 193 ENABLE_CFI(int32_t HuksAccessEncrypt(const struct HksBlob *key, const struct HksParamSet *paramSet, in ENABLE_CFI() 204 ENABLE_CFI(int32_t HuksAccessDecrypt(const struct HksBlob *key, const struct HksParamSet *paramSet, in ENABLE_CFI() 237 ENABLE_CFI(int32_t HuksAccessMac(const struct HksBlob *key, const struct HksParamSet *paramSet, in ENABLE_CFI() [all …]
|
/base/security/selinux/interfaces/policycoreutils/src/ |
D | selinux_map.c | 21 static int GenerateHashCode(const char *key, uint32_t len) in GenerateHashCode() 37 static int GroupNodeKeyCompare(const HashNode *node1, const char *key) in GroupNodeKeyCompare() 43 static int GroupNodeGetKeyHashCode(const char *key, uint32_t len) in GroupNodeGetKeyHashCode() 86 static HashNode *GetHashNodeByKey(HashNode *root, const char *key) in GetHashNodeByKey() 117 void HashMapRemove(HashTab *handle, const char *key) in HashMapRemove() 143 HashNode *HashMapGet(HashTab *handle, const char *key, uint32_t len) in HashMapGet() 176 HashNode *HashMapFind(HashTab *handle, int hashCode, const char *key) in HashMapFind()
|
/base/startup/init/interfaces/innerkits/syspara/ |
D | param_wrapper.cpp | 33 bool SetParameter(const std::string& key, const std::string& value) in SetParameter() 67 std::string GetParameter(const std::string& key, const std::string& def) in GetParameter() 84 bool GetBoolParameter(const std::string& key, bool def) in GetBoolParameter() 102 int GetStringParameter(const std::string &key, std::string &value, const std::string def) in GetStringParameter() 122 T GetIntParameter(const std::string& key, T def, T min, T max) in GetIntParameter() 141 T GetUintParameter(const std::string& key, T def, T max) in GetUintParameter() 176 int GetIntParameter(const std::string &key, int def) in GetIntParameter()
|
/base/security/huks/frameworks/huks_standard/main/crypto_engine/mbedtls/src/ |
D | hks_crypto_ed25519.c | 77 static bool IsBlobZero(const struct HksBlob *key) in IsBlobZero() 110 static int32_t CheckEd25519Material(const struct HksBlob *key) in CheckEd25519Material() 132 static int32_t GetEd25519PubKeyCheck(const struct HksBlob *key, const struct HksBlob *keyOut) in GetEd25519PubKeyCheck() 153 struct KeyMaterial25519 *key = (struct KeyMaterial25519 *)input->data; in HksGetEd25519PubKey() local 167 int32_t HksEd25519Sign(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksEd25519Sign() 192 int32_t HksEd25519Verify(const struct HksBlob *key, const struct HksUsageSpec *usageSpec, in HksEd25519Verify()
|