| /base/msdp/device_status/tools/vdev/json/ |
| D | simulate_keyboard_clicks.json | 6 { "action": "down", "key": 42 }, number 7 { "action": "down", "key": 35 }, number 8 { "action": "up", "key": 35 }, number 9 { "action": "up", "key": 42 }, number 10 { "action": "down", "key": 23 }, number 11 { "action": "up", "key": 23 }, number 12 { "action": "down", "key": 51 }, number 13 { "action": "up", "key": 51 }, number 14 { "action": "down", "key": 57 }, number 15 { "action": "up", "key": 57 }, number [all …]
|
| /base/update/updateservice/services/core/ability/preference/src/ |
| D | preference_utils_empty.cpp | 28 bool PreferencesUtil::SaveString(const std::string &key, const std::string &value) in SaveString() 33 bool PreferencesUtil::SaveInt(const std::string &key, int value) in SaveInt() 38 bool PreferencesUtil::SaveBool(const std::string &key, bool value) in SaveBool() 43 bool PreferencesUtil::SaveLong(const std::string &key, int64_t value) in SaveLong() 48 bool PreferencesUtil::SaveFloat(const std::string &key, float value) in SaveFloat() 54 bool PreferencesUtil::Save(const std::string &key, const T &value) in Save() 59 std::string PreferencesUtil::ObtainString(const std::string &key, const std::string &defValue) in ObtainString() 64 int PreferencesUtil::ObtainInt(const std::string &key, int defValue) in ObtainInt() 69 bool PreferencesUtil::ObtainBool(const std::string &key, bool defValue) in ObtainBool() 74 int64_t PreferencesUtil::ObtainLong(const std::string &key, int64_t defValue) in ObtainLong() [all …]
|
| D | preference_utils.cpp | 49 bool PreferencesUtil::SaveString(const std::string &key, const std::string &value) in SaveString() 54 bool PreferencesUtil::SaveInt(const std::string &key, int value) in SaveInt() 59 bool PreferencesUtil::SaveBool(const std::string &key, bool value) in SaveBool() 64 bool PreferencesUtil::SaveLong(const std::string &key, int64_t value) in SaveLong() 69 bool PreferencesUtil::SaveFloat(const std::string &key, float value) in SaveFloat() 75 bool PreferencesUtil::Save(const std::string &key, const T &value) in Save() 89 …std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const std::string &va… in SaveInner() 95 std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const int &value) in SaveInner() 101 std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const bool &value) in SaveInner() 107 … std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const int64_t &value) in SaveInner() [all …]
|
| /base/update/updateservice/interfaces/inner_api/include/ |
| D | json_builder.h | 32 JsonBuilder &Append(const std::string &key, const uint32_t value) in Append() 37 JsonBuilder &Append(const std::string &key, const int32_t value) in Append() 42 JsonBuilder &Append(const std::string &key, const int64_t value) in Append() 47 JsonBuilder &Append(const std::string &key, const std::string &value) in Append() 54 JsonBuilder &Append(const std::string &key, const JsonBuilder &jsonBuilder) in Append() 61 JsonBuilder &Append(const std::string &key, const std::vector<JsonBuilder> &valueList) in Append() 85 JsonBuilder &AppendNum(const std::string &key, const std::string &value) in AppendNum()
|
| /base/useriam/user_auth_framework/frameworks/native/common/attributes/src/ |
| D | attributes.cpp | 183 bool Attributes::Impl::SetBoolValue(AttributeKey key, bool value) in SetBoolValue() 200 bool Attributes::Impl::SetUint64Value(AttributeKey key, uint64_t value) in SetUint64Value() 217 bool Attributes::Impl::SetUint32Value(AttributeKey key, uint32_t value) in SetUint32Value() 234 bool Attributes::Impl::SetUint16Value(AttributeKey key, uint16_t value) in SetUint16Value() 251 bool Attributes::Impl::SetUint8Value(AttributeKey key, uint8_t value) in SetUint8Value() 268 bool Attributes::Impl::SetInt32Value(AttributeKey key, int32_t value) in SetInt32Value() 285 bool Attributes::Impl::SetStringValue(AttributeKey key, const std::string &value) in SetStringValue() 302 bool Attributes::Impl::SetUint64ArrayValue(AttributeKey key, const std::vector<uint64_t> &value) in SetUint64ArrayValue() 319 bool Attributes::Impl::SetUint32ArrayValue(AttributeKey key, const std::vector<uint32_t> &value) in SetUint32ArrayValue() 336 bool Attributes::Impl::SetUint16ArrayValue(AttributeKey key, const std::vector<uint16_t> &value) in SetUint16ArrayValue() [all …]
|
| /base/powermgr/battery_manager/test/unittest/src/ |
| D | battery_config_test.cpp | 74 std::string key = "soc.warning"; variable 93 std::string key = "temperature.high"; variable 113 std::string key = "temperature.low"; variable 133 std::string key = "soc.shutdown"; variable 152 std::string key = "soc.low"; variable 224 std::string key = "light.high.soc"; variable 245 std::string key = "invalid.key"; variable
|
| /base/hiviewdfx/hisysevent/interfaces/native/innerkits/hisysevent/include/ |
| D | inner_writer.h | 79 static bool CheckParamValidity(EventBase& eventBase, const std::string &key) in CheckParamValidity() 101 …static bool CheckArrayParamsValidity(EventBase& eventBase, const std::string& key, const std::vect… in CheckArrayParamsValidity() 117 …static void InnerWrite(EventBase& eventBase, const std::string& key, bool value, Types... keyValue… in InnerWrite() 126 …static void InnerWrite(EventBase& eventBase, const std::string& key, const char value, Types... ke… in InnerWrite() 136 static void InnerWrite(EventBase& eventBase, const std::string& key, const unsigned char value, in InnerWrite() 147 …static void InnerWrite(EventBase& eventBase, const std::string& key, const short value, Types... k… in InnerWrite() 157 static void InnerWrite(EventBase& eventBase, const std::string& key, const unsigned short value, in InnerWrite() 168 …static void InnerWrite(EventBase& eventBase, const std::string& key, const int value, Types... key… in InnerWrite() 177 static void InnerWrite(EventBase& eventBase, const std::string& key, const unsigned int value, in InnerWrite() 188 …static void InnerWrite(EventBase& eventBase, const std::string& key, const long value, Types... ke… in InnerWrite() [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() 45 std::string TelProfileUtil::ObtainString(const std::string &key, const std::string &defValue) in ObtainString() 54 int TelProfileUtil::SaveInt(const std::string &key, int value) in SaveInt() 65 int TelProfileUtil::ObtainInt(const std::string &key, int defValue) in ObtainInt() 74 int TelProfileUtil::SaveBool(const std::string &key, bool value) in SaveBool() 85 bool TelProfileUtil::ObtainBool(const std::string &key, bool defValue) in ObtainBool() 94 int TelProfileUtil::SaveLong(const std::string &key, int64_t value) in SaveLong() 105 int64_t TelProfileUtil::ObtainLong(const std::string &key, int64_t defValue) in ObtainLong() 114 int TelProfileUtil::SaveFloat(const std::string &key, float value) in SaveFloat() 125 float TelProfileUtil::ObtainFloat(const std::string &key, float defValue) in ObtainFloat() [all …]
|
| /base/hiviewdfx/hiview/base/utility/ |
| 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/security/crypto_framework/test/unittest/src/ |
| D | crypto_sm4_generator_test.cpp | 56 static int32_t GenerateSymKey(const char *algoName, HcfSymKey **key) in GenerateSymKey() 78 HcfSymKey *key = nullptr; variable 140 HcfSymKey *key = nullptr; variable 171 HcfSymKey *key = nullptr; variable 197 HcfSymKey *key = nullptr; variable 228 HcfSymKey *key = nullptr; variable 253 HcfSymKey *key = nullptr; variable 284 HcfSymKey *key = nullptr; variable 323 HcfSymKey *key = nullptr; variable 362 HcfSymKey *key = nullptr; variable [all …]
|
| D | crypto_sm4_cipher_test.cpp | 58 static HcfResult GenerateSm4SymKey(HcfSymKey **key) in GenerateSm4SymKey() 76 static int32_t GenerateSymKey(const char *algoName, HcfSymKey **key) in GenerateSymKey() 96 static int32_t Sm4EncryptWithInput(HcfCipher *cipher, HcfSymKey *key, HcfBlob *input, in Sm4EncryptWithInput() 139 static int32_t Sm4DecryptEmptyMsg(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in Sm4DecryptEmptyMsg() 165 static int32_t Sm4Encrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in Sm4Encrypt() 208 static int32_t Sm4Decrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in Sm4Decrypt() 255 static int32_t Sm4NoUpdateEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in Sm4NoUpdateEncrypt() 285 static int32_t Sm4NoUpdateDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in Sm4NoUpdateDecrypt() 337 HcfSymKey *key = nullptr; variable 384 HcfSymKey *key = nullptr; variable [all …]
|
| D | crypto_aes_cipher_test.cpp | 83 static int32_t GenerateSymKey(const char *algoName, HcfSymKey **key) in GenerateSymKey() 101 static int32_t ConvertSymKey(const char *algoName, HcfSymKey **key) in ConvertSymKey() 184 static int32_t AesMultiBlockEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params) in AesMultiBlockEncrypt() 238 static int32_t AesMultiBlockDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params) in AesMultiBlockDecrypt() 293 static int32_t AesEncryptWithInput(HcfCipher *cipher, HcfSymKey *key, HcfBlob *input, in AesEncryptWithInput() 336 static int32_t AesEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesEncrypt() 381 static int32_t AesDecrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesDecrypt() 429 static int32_t AesNoUpdateEncWithInput(HcfCipher *cipher, HcfSymKey *key, HcfBlob *input, in AesNoUpdateEncWithInput() 460 static int32_t AesDecryptEmptyMsg(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesDecryptEmptyMsg() 485 static int32_t AesNoUpdateEncrypt(HcfCipher *cipher, HcfSymKey *key, HcfParamsSpec *params, in AesNoUpdateEncrypt() [all …]
|
| D | crypto_3des_cipher_test.cpp | 55 static HcfResult 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 = nullptr; variable 282 HcfSymKey *key = nullptr; variable 330 HcfSymKey *key = nullptr; variable 378 HcfSymKey *key = nullptr; variable 429 HcfSymKey *key = nullptr; variable [all …]
|
| /base/powermgr/battery_statistics/test/unittest/include/servicetest/utils/ |
| D | hisysevent_operation.h | 73 static void AppendData(EventBase &eventBase, const std::string &key, T value) in AppendData() 87 …static void InnerCombine(EventBase &eventBase, const std::string &key, bool value, Types... keyVal… in InnerCombine() 94 …static void InnerCombine(EventBase &eventBase, const std::string &key, const char value, Types... … in InnerCombine() 101 static void InnerCombine(EventBase &eventBase, const std::string &key, in InnerCombine() 109 …static void InnerCombine(EventBase &eventBase, const std::string &key, const short value, Types...… in InnerCombine() 116 static void InnerCombine(EventBase &eventBase, const std::string &key, in InnerCombine() 124 …static void InnerCombine(EventBase &eventBase, const std::string &key, const int value, Types... k… in InnerCombine() 131 …static void InnerCombine(EventBase &eventBase, const std::string &key, const unsigned int value, T… in InnerCombine() 138 …static void InnerCombine(EventBase &eventBase, const std::string &key, const long value, Types... … in InnerCombine() 145 static void InnerCombine(EventBase &eventBase, const std::string &key, in InnerCombine() [all …]
|
| /base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_preferences_database_test/ |
| D | distributed_preferences_database_test.cpp | 92 std::string key = "aa"; variable 108 std::string key = "aa"; variable 124 std::string key = "aa"; variable 138 std::string key = "aa"; variable 154 std::string key = "aa"; variable 171 std::string key = "aa"; variable 188 std::string key = "aa"; variable 248 std::string key = "aa"; variable 263 std::string key = "aa"; variable 278 std::string key = "aa"; variable
|
| /base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/ |
| D | hks_crypto_hal_api_mbedtls.cpp | 94 HksBlob key = {}; variable 115 HksBlob key = {}; variable 130 HksBlob key = { .size = 0, .data = nullptr }; variable 165 HksBlob key = { .size = 0, .data = nullptr }; variable 200 HksBlob key = { .size = 1, .data = buff }; variable 224 HksBlob key = { .size = 1, .data = buff }; variable 247 HksBlob key = { .size = sizeof(buff), .data = buff }; variable 271 HksBlob key = { .size = sizeof(buff), .data = buff }; variable 293 HksBlob key; variable 341 HksBlob key = { .size = 0, .data = NULL }; variable [all …]
|
| D | hks_crypto_hal_api_openssl.cpp | 93 HksBlob key = {}; variable 113 HksBlob key = {}; variable 150 HksBlob key = { .size = 0, .data = nullptr }; variable 185 HksBlob key = { .size = 0, .data = nullptr }; variable 220 HksBlob key = { .size = 1, .data = buff }; variable 256 HksBlob key = { .size = 1, .data = buff }; variable 284 HksBlob key = { .size = sizeof(buff), .data = buff }; variable 308 HksBlob key = { .size = 0, .data = nullptr }; variable 335 HksBlob key = { .size = 0, .data = nullptr }; variable 368 HksBlob key = { .size = sizeof(buff), .data = buff }; variable [all …]
|
| /base/hiviewdfx/hiview/base/event_raw/include/decoded/ |
| D | decoded_param.h | 31 DecodedParam(uint8_t* rawData, const size_t maxLen, size_t& pos, const std::string& key) in DecodedParam() 64 …ignedVarintDecodedParam(uint8_t* rawData, const size_t maxLen, size_t& pos, const std::string& key) in UnsignedVarintDecodedParam() 77 …VarintDecodedArrayParam(uint8_t* rawData, const size_t maxLen, size_t& pos, const std::string& key) in UnsignedVarintDecodedArrayParam() 90 …ignedVarintDecodedParam(uint8_t* rawData, const size_t maxLen, size_t& pos, const std::string& key) in SignedVarintDecodedParam() 103 …VarintDecodedArrayParam(uint8_t* rawData, const size_t maxLen, size_t& pos, const std::string& key) in SignedVarintDecodedArrayParam() 116 …atingNumberDecodedParam(uint8_t* rawData, const size_t maxLen, size_t& pos, const std::string& key) in FloatingNumberDecodedParam() 129 …NumberDecodedArrayParam(uint8_t* rawData, const size_t maxLen, size_t& pos, const std::string& key) in FloatingNumberDecodedArrayParam() 142 StringDecodedParam(uint8_t* rawData, const size_t maxLen, size_t& pos, const std::string& key) in StringDecodedParam() 155 …StringDecodedArrayParam(uint8_t* rawData, const size_t maxLen, size_t& pos, const std::string& key) in StringDecodedArrayParam()
|
| /base/security/huks/test/unittest/huks_standard_test/module_test/utils_test/src/ |
| D | hks_attest_utils_test.cpp | 68 struct HksBlob key = { 1, buffer }; variable 86 struct HksBlob key = { 1, buffer }; variable 102 struct HksBlob key = { 1, buffer }; variable 120 struct HksBlob key = { 1, buffer }; variable 136 struct HksBlob key = { ASN_1_MAX_HEADER_LEN + 1, buffer }; variable 152 struct HksBlob key = { ASN_1_MAX_HEADER_LEN + 1, buffer }; variable 168 struct HksBlob key = { ASN_1_MAX_HEADER_LEN + 1, buffer }; variable 184 struct HksBlob key = { ASN_1_MAX_HEADER_LEN + 1, buffer }; variable 200 struct HksBlob key = { ASN_1_MAX_HEADER_LEN + 1, buffer }; variable
|
| /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/update/updateservice/services/core/ability/utils/include/ |
| D | json_utils.h | 41 …static int32_t GetValueAndSetTo(const nlohmann::json &jsonObject, const std::string &key, T &value) in GetValueAndSetTo() 73 …static bool CheckType(const nlohmann::json &jsonObject, const std::string &key, std::string &value) in CheckType() 77 static bool CheckType(const nlohmann::json &jsonObject, const std::string &key, int32_t &value) in CheckType() 81 static bool CheckType(const nlohmann::json &jsonObject, const std::string &key, uint32_t &value) in CheckType() 85 static bool CheckType(const nlohmann::json &jsonObject, const std::string &key, uint64_t &value) in CheckType() 89 static bool CheckType(const nlohmann::json &jsonObject, const std::string &key, bool &value) in CheckType()
|
| /base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_database_branch_test/ |
| D | distributed_database_branch_test.cpp | 95 const std::string &deviceId, const std::string &key, const std::string &value) {} in OnInsert() 98 const std::string &deviceId, const std::string &key, const std::string &value) {} in OnUpdate() 101 const std::string &deviceId, const std::string &key, const std::string &value) {} in OnDelete() 218 std::string key = "<key>"; variable 233 std::string key = "<key>"; variable 246 std::string key = "<key>"; variable 261 std::string key = "<key>"; variable 276 std::string key = "<key>"; variable 340 std::string key = "<key>"; variable 354 std::string key = "<key>"; variable
|
| /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/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() 137 CJson *GetObjFromJson(const CJson *jsonObj, const char *key) in GetObjFromJson() 170 const char *GetStringFromJson(const CJson *jsonObj, const char *key) in GetStringFromJson() 195 int32_t GetByteLenFromJson(const CJson *jsonObj, const char *key, uint32_t *byteLen) in GetByteLenFromJson() 209 int32_t GetByteFromJson(const CJson *jsonObj, const char *key, uint8_t *byte, uint32_t len) in GetByteFromJson() 225 int32_t GetIntFromJson(const CJson *jsonObj, const char *key, int32_t *value) in GetIntFromJson() 251 int32_t GetUnsignedIntFromJson(const CJson *jsonObj, const char *key, uint32_t *value) in GetUnsignedIntFromJson() 283 int32_t GetInt64FromJson(const CJson *jsonObj, const char *key, int64_t *value) in GetInt64FromJson() [all …]
|