| /foundation/barrierfree/accessibility/services/aams/test/mock/src/ |
| D | mock_preferences.cpp | 25 PreferencesValue MockPreferences::Get(const std::string &key, const PreferencesValue &defValue) in Get() 31 int MockPreferences::Put(const std::string &key, const PreferencesValue &value) in Put() 37 int MockPreferences::GetInt(const std::string &key, const int &defValue) in GetInt() 44 std::string MockPreferences::GetString(const std::string &key, const std::string &defValue) in GetString() 51 bool MockPreferences::GetBool(const std::string &key, const bool &defValue) in GetBool() 58 float MockPreferences::GetFloat(const std::string &key, const float &defValue) in GetFloat() 65 double MockPreferences::GetDouble(const std::string &key, const double &defValue) in GetDouble() 72 int64_t MockPreferences::GetLong(const std::string &key, const int64_t &defValue) in GetLong() 79 bool MockPreferences::HasKey(const std::string &key) in HasKey() 85 int MockPreferences::PutInt(const std::string &key, int value) in PutInt() [all …]
|
| /foundation/arkui/ace_engine/test/unittest/core/common/storage/ |
| D | mock_storage.h | 36 void SetString(const std::string& key, const std::string& value) override {}; in SetString() 37 std::string GetString(const std::string& key) override in GetString() 41 void SetDouble(const std::string& key, const double value) override {}; in SetDouble() 42 bool GetDouble(const std::string& key, double& value) override in GetDouble() 46 void SetBoolean(const std::string& key, const bool value) override {}; in SetBoolean() 47 bool GetBoolean(const std::string& key, bool& value) override in GetBoolean() 52 DataType GetDataType(const std::string& key) override in GetDataType() 58 void Delete(const std::string& key) override {}; in Delete() 67 void SetString(const std::string& key, const std::string& value) override {}; in SetString() 68 std::string GetString(const std::string& key) override in GetString() [all …]
|
| /foundation/multimedia/player_framework/test/unittest/avcodec_test/native/avformat/ |
| D | avformat_native_mock.cpp | 21 bool AVFormatNativeMock::PutIntValue(const std::string_view &key, int32_t value) in PutIntValue() 26 bool AVFormatNativeMock::GetIntValue(const std::string_view &key, int32_t &value) in GetIntValue() 31 bool AVFormatNativeMock::PutStringValue(const std::string_view &key, const std::string_view &value) in PutStringValue() 36 bool AVFormatNativeMock::GetStringValue(const std::string_view &key, std::string &value) in GetStringValue() 55 bool AVFormatNativeMock::PutLongValue(const std::string_view &key, int64_t value) in PutLongValue() 60 bool AVFormatNativeMock::GetLongValue(const std::string_view &key, int64_t &value) in GetLongValue() 65 bool AVFormatNativeMock::PutFloatValue(const std::string_view &key, float value) in PutFloatValue() 70 bool AVFormatNativeMock::GetFloatValue(const std::string_view &key, float &value) in GetFloatValue() 75 bool AVFormatNativeMock::PutDoubleValue(const std::string_view &key, double value) in PutDoubleValue() 80 bool AVFormatNativeMock::GetDoubleValue(const std::string_view &key, double &value) in GetDoubleValue() [all …]
|
| /foundation/arkui/ace_engine/frameworks/core/components_ng/test/mock/image_provider/ |
| D | mock_image_cache.cpp | 19 void ImageCache::CacheImage(const std::string& key, const std::shared_ptr<CachedImage>& image) {} in CacheImage() 21 RefPtr<NG::ImageObject> ImageCache::GetCacheImgObjNG(const std::string& key) in GetCacheImgObjNG() 26 void ImageCache::CacheImgObjNG(const std::string& key, const RefPtr<NG::ImageObject>& imgObj) {} in CacheImgObjNG() 33 RefPtr<CachedImageData> ImageCache::GetCacheImageData(const std::string& key) in GetCacheImageData() 38 void ImageCache::CacheImageData(const std::string& key, const RefPtr<CachedImageData>& imageData) {} in CacheImageData() 42 void ImageCache::ClearCacheImage(const std::string& key) {} in ClearCacheImage()
|
| /foundation/multimedia/av_codec/test/unittest/format_test/inner/ |
| D | avformat_inner_mock.cpp | 22 bool AVFormatInnerMock::PutIntValue(const std::string_view &key, int32_t value) in PutIntValue() 27 bool AVFormatInnerMock::GetIntValue(const std::string_view &key, int32_t &value) in GetIntValue() 32 bool AVFormatInnerMock::PutStringValue(const std::string_view &key, const std::string_view &value) in PutStringValue() 37 bool AVFormatInnerMock::GetStringValue(const std::string_view &key, std::string &value) in GetStringValue() 56 bool AVFormatInnerMock::PutLongValue(const std::string_view &key, int64_t value) in PutLongValue() 61 bool AVFormatInnerMock::GetLongValue(const std::string_view &key, int64_t &value) in GetLongValue() 66 bool AVFormatInnerMock::PutFloatValue(const std::string_view &key, float value) in PutFloatValue() 71 bool AVFormatInnerMock::GetFloatValue(const std::string_view &key, float &value) in GetFloatValue() 76 bool AVFormatInnerMock::PutDoubleValue(const std::string_view &key, double value) in PutDoubleValue() 81 bool AVFormatInnerMock::GetDoubleValue(const std::string_view &key, double &value) in GetDoubleValue() [all …]
|
| /foundation/multimedia/av_codec/test/unittest/format_test/capi/ |
| D | avformat_capi_mock.cpp | 30 bool AVFormatCapiMock::PutIntValue(const std::string_view &key, int32_t value) in PutIntValue() 38 bool AVFormatCapiMock::GetIntValue(const std::string_view &key, int32_t &value) in GetIntValue() 46 bool AVFormatCapiMock::PutStringValue(const std::string_view &key, const std::string_view &value) in PutStringValue() 54 bool AVFormatCapiMock::GetStringValue(const std::string_view &key, std::string &value) in GetStringValue() 102 bool AVFormatCapiMock::PutLongValue(const std::string_view &key, int64_t value) in PutLongValue() 110 bool AVFormatCapiMock::GetLongValue(const std::string_view &key, int64_t &value) in GetLongValue() 118 bool AVFormatCapiMock::PutFloatValue(const std::string_view &key, float value) in PutFloatValue() 126 bool AVFormatCapiMock::GetFloatValue(const std::string_view &key, float &value) in GetFloatValue() 134 bool AVFormatCapiMock::PutDoubleValue(const std::string_view &key, double value) in PutDoubleValue() 142 bool AVFormatCapiMock::GetDoubleValue(const std::string_view &key, double &value) in GetDoubleValue() [all …]
|
| /foundation/arkui/ace_engine/frameworks/base/json/ |
| D | node_object.cpp | 63 bool NodeObject::GetBool(const std::string& key, bool defaultValue) const in GetBool() argument 72 int32_t NodeObject::GetInt(const std::string& key, int32_t defaultVal) const in GetInt() argument 81 uint32_t NodeObject::GetUInt(const std::string& key, uint32_t defaultVal) const in GetUInt() argument 90 int64_t NodeObject::GetInt64(const std::string& key, int64_t defaultVal) const in GetInt64() argument 99 double NodeObject::GetDouble(const std::string& key, double defaultVal) const in GetDouble() argument 108 std::string NodeObject::GetString(const std::string& key, const std::string& defaultVal) const in GetString() argument 133 bool NodeObject::Put(const char* key, const char* value) in Put() 144 bool NodeObject::Put(const char* key, size_t value) in Put() 155 bool NodeObject::Put(const char* key, int32_t value) in Put() 166 bool NodeObject::Put(const char* key, int64_t value) in Put() [all …]
|
| D | uobject.cpp | 28 size_t HashItem(const std::string& key, const T& value) in HashItem() 34 void UObject::AddItemToObject(const std::string& key, const char* value) in AddItemToObject() 41 void UObject::AddItemToObject(const std::string& key, const std::string& value) in AddItemToObject() 46 void UObject::AddItemToObject(const std::string& key, size_t value) in AddItemToObject() 51 void UObject::AddItemToObject(const std::string& key, int32_t value) in AddItemToObject() 56 void UObject::AddItemToObject(const std::string& key, int64_t value) in AddItemToObject() 61 void UObject::AddItemToObject(const std::string& key, double value) in AddItemToObject() 66 void UObject::AddItemToObject(const std::string& key, bool value) in AddItemToObject() 71 void UObject::AddItemToObject(const std::string& key, const std::shared_ptr<UObject>& value) in AddItemToObject() 293 void UObject::WriteKV(const std::string& key, const std::string& value) in WriteKV() [all …]
|
| D | json_util.cpp | 79 bool JsonValue::GetBool(const std::string& key, bool defaultValue) const in GetBool() argument 107 double JsonValue::GetDouble(const std::string& key, double defaultVal) const in GetDouble() argument 164 bool JsonValue::Put(const char* key, const char* value) in Put() 183 bool JsonValue::Put(const char* key, const std::unique_ptr<JsonValue>& value) in Put() 212 bool JsonValue::Put(const char* key, size_t value) in Put() 226 bool JsonValue::Put(const char* key, int32_t value) in Put() 240 bool JsonValue::Put(const char* key, int64_t value) in Put() 245 bool JsonValue::Put(const char* key, double value) in Put() 259 bool JsonValue::Replace(const char* key, double value) in Replace() 276 bool JsonValue::Put(const char* key, bool value) in Put() [all …]
|
| /foundation/filemanagement/dfs_service/test/unittests/cloudsync_sa/data_sync/ |
| D | file_data_convertor_test.cpp | 89 string key = "albumId"; variable 98 string key = "hashId"; variable 107 string key = "fileName"; variable 119 string key = "fileName"; variable 137 string key = "createdTime"; variable 148 string key = "createdTime"; variable 158 string key = "favorite"; variable 169 string key = "favorite"; variable 179 string key = "recycled"; variable 190 string key = "recycled"; variable [all …]
|
| /foundation/distributedhardware/distributed_screen/common/src/ |
| D | dscreen_json_util.cpp | 23 bool IsString(const nlohmann::json &jsonObj, const std::string &key) in IsString() 32 bool IsUInt8(const nlohmann::json &jsonObj, const std::string &key) in IsUInt8() 41 bool IsInt32(const nlohmann::json &jsonObj, const std::string &key) in IsInt32() 51 bool IsUInt32(const nlohmann::json &jsonObj, const std::string &key) in IsUInt32() 60 bool IsInt64(const nlohmann::json &jsonObj, const std::string &key) in IsInt64() 70 bool IsUInt64(const nlohmann::json &jsonObj, const std::string &key) in IsUInt64() 79 bool IsArray(const nlohmann::json &jsonObj, const std::string &key) in IsArray() 88 bool IsBool(const nlohmann::json &jsonObj, const std::string &key) in IsBool()
|
| /foundation/graphic/graphic_2d/frameworks/surface/src/ |
| D | buffer_extra_data_impl.cpp | 41 auto key = parcel.ReadString(); in ReadFromParcel() local 123 GSError BufferExtraDataImpl::ExtraGet(const std::string &key, int32_t &value) const in ExtraGet() argument 128 GSError BufferExtraDataImpl::ExtraGet(const std::string &key, int64_t &value) const in ExtraGet() argument 133 GSError BufferExtraDataImpl::ExtraGet(const std::string &key, double &value) const in ExtraGet() argument 138 GSError BufferExtraDataImpl::ExtraGet(const std::string &key, std::string &value) const in ExtraGet() argument 143 GSError BufferExtraDataImpl::ExtraSet(const std::string &key, int32_t value) in ExtraSet() 148 GSError BufferExtraDataImpl::ExtraSet(const std::string &key, int64_t value) in ExtraSet() 153 GSError BufferExtraDataImpl::ExtraSet(const std::string &key, double value) in ExtraSet() 158 GSError BufferExtraDataImpl::ExtraSet(const std::string &key, const std::string& value) in ExtraSet() 164 GSError BufferExtraDataImpl::ExtraGet(const std::string &key, ExtraDataType type, T &value) const in ExtraGet() argument [all …]
|
| /foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/subscriber_managers/ |
| D | published_data_subscriber_manager.cpp | 34 …const PublishedDataKey &key, const sptr<IDataProxyPublishedDataObserver> observer, uint32_t firstC… in Add() 37 …key, [&observer, &firstCallerTokenId, this](const PublishedDataKey &key, std::vector<ObserverNode>… in Add() 46 int PublishedDataSubscriberManager::Delete(const PublishedDataKey &key, uint32_t firstCallerTokenId) in Delete() 67 … publishedDataCache_.EraseIf([&callerTokenId](const auto &key, std::vector<ObserverNode> &value) { in Delete() 81 int PublishedDataSubscriberManager::Disable(const PublishedDataKey &key, uint32_t firstCallerTokenI… in Disable() 97 int PublishedDataSubscriberManager::Enable(const PublishedDataKey &key, uint32_t firstCallerTokenId) in Enable() 100 publishedDataCache_.ComputeIfPresent(key, [&firstCallerTokenId](const auto &key, in Enable() 101 std::vector<ObserverNode> &value) { in Enable() 120 const PublishedDataKey &key, std::vector<ObserverNode> &val) { in Emit() 141 for (auto &key : keys) { in Emit() local [all …]
|
| /foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/adapter/dfx/test/unittest/fake/hiview/include/ |
| D | hievent.h | 86 HiEvent& PutBool(const std::string& key, bool value) in PutBool() 96 HiEvent& PutByte(const std::string& key, unsigned char value) in PutByte() 106 HiEvent& PutShort(const std::string& key, short value) in PutShort() 117 HiEvent& PutInt(const std::string& key, int value) in PutInt() 127 HiEvent& PutLong(const std::string& key, long value) in PutLong() 137 HiEvent& PutFloat(const std::string& key, float value) in PutFloat() 147 HiEvent& PutString(const std::string& key, const std::string& value) in PutString() 158 HiEvent& PutHiEventArray(const std::string& key, const std::vector<HiEvent>& value) in PutHiEventArray()
|
| /foundation/filemanagement/dfs_service/utils/preference/src/ |
| D | cloud_pref_impl.cpp | 56 void CloudPrefImpl::SetString(const std::string& key, const std::string& value) in SetString() 62 void CloudPrefImpl::GetString(const std::string& key, std::string &value) in GetString() 67 void CloudPrefImpl::SetInt(const std::string& key, const int value) in SetInt() 73 void CloudPrefImpl::GetInt(const std::string& key, int32_t &value) in GetInt() 78 void CloudPrefImpl::SetBool(const std::string& key, const bool& value) in SetBool() 84 void CloudPrefImpl::GetBool(const std::string& key, bool& value) in GetBool() 95 void CloudPrefImpl::Delete(const std::string& key) in Delete()
|
| /foundation/systemabilitymgr/samgr/interfaces/innerkits/common/include/ |
| D | parse_util.h | 66 static inline void GetBoolFromJson(const nlohmann::json& obj, const std::string& key, bool& out) in GetBoolFromJson() 73 …static inline void GetStringFromJson(const nlohmann::json& obj, const std::string& key, std::strin… in GetStringFromJson() 80 …static inline void GetInt32FromJson(const nlohmann::json& obj, const std::string& key, int32_t& ou… in GetInt32FromJson() 87 static inline void GetStringArrayFromJson(const nlohmann::json& obj, const std::string& key, in GetStringArrayFromJson() 99 static inline void GetIntArrayFromJson(const nlohmann::json& obj, const std::string& key, in GetIntArrayFromJson() 111 static inline void GetIntArrayFromJson(const nlohmann::json& obj, const std::string& key, in GetIntArrayFromJson()
|
| /foundation/distributeddatamgr/preferences/frameworks/native/include/ |
| D | preferences_impl.h | 58 int GetInt(const std::string &key, const int &defValue) override in GetInt() 67 std::string GetString(const std::string &key, const std::string &defValue) override in GetString() 76 bool GetBool(const std::string &key, const bool &defValue) override in GetBool() 85 float GetFloat(const std::string &key, const float &defValue) override in GetFloat() 94 double GetDouble(const std::string &key, const double &defValue) override in GetDouble() 103 int64_t GetLong(const std::string &key, const int64_t &defValue) override in GetLong() 114 int PutInt(const std::string &key, int value) override in PutInt() 119 int PutString(const std::string &key, const std::string &value) override in PutString() 124 int PutBool(const std::string &key, bool value) override in PutBool() 129 int PutLong(const std::string &key, int64_t value) override in PutLong() [all …]
|
| /foundation/ability/ability_base/interfaces/kits/native/want/src/ |
| D | pac_map.cpp | 63 #define PAC_MAP_PUT_VALUE(id, iid, key, value, mapList) \ argument 70 #define PAC_MAP_GET_VALUE(id, key, value, mapList, defaultValue) \ argument 84 #define PAC_MAP_GET_STRING_VALUE(id, key, value, mapList, defaultValue) \ argument 98 #define PAC_MAP_ADD_ARRAY(id, key, value, mapList) \ argument 109 #define GET_PAC_MAP_ARRAY(id, mapList, key, value) \ argument 301 void PacMap::PutShortValue(const std::string &key, short value) in PutShortValue() 306 void PacMap::InnerPutShortValue(PacMapList &mapList, const std::string &key, short value) in InnerPutShortValue() 315 void PacMap::PutIntValue(const std::string &key, int value) in PutIntValue() 320 void PacMap::InnerPutIntValue(PacMapList &mapList, const std::string &key, int value) in InnerPutIntValue() 329 void PacMap::PutLongValue(const std::string &key, long value) in PutLongValue() [all …]
|
| /foundation/communication/dsoftbus/core/connection/wifi_direct/data/ |
| D | info_container.c | 36 for (size_t key = 0; key < keySize; key++) { in DeepCopy() local 57 static void PutRawData(struct InfoContainer *self, size_t key, void *value, size_t size) in PutRawData() 81 static void PutInt(struct InfoContainer *self, size_t key, int32_t value) in PutInt() 86 static void PutBoolean(struct InfoContainer *self, size_t key, bool value) in PutBoolean() 91 static void PutPointer(struct InfoContainer *self, size_t key, void **ptr) in PutPointer() 96 static void PutString(struct InfoContainer *self, size_t key, const char *value) in PutString() 101 static void PutIntArray(struct InfoContainer *self, size_t key, int32_t *array, size_t arraySize) in PutIntArray() 106 static void PutContainer(struct InfoContainer *self, size_t key, struct InfoContainer *value, size_… in PutContainer() 127 static void PutContainerArray(struct InfoContainer *self, size_t key, struct InfoContainer *contain… in PutContainerArray() 169 static void* Get(struct InfoContainer *self, size_t key, size_t *size, size_t *count) in Get() [all …]
|
| /foundation/filemanagement/storage_service/services/common/include/ |
| D | storage_rl_map.h | 34 void Erase(const K& key) in Erase() 39 bool Insert(const K& key, const V& value) in Insert() 55 bool Contains(const K& key) in Contains() 64 typename std::map<K, V>::iterator Find(const K& key) in Find() 69 typename std::map<K, V>::const_iterator Find(const K& key) const in Find()
|
| /foundation/distributeddatamgr/pasteboard/framework/framework/include/common/ |
| 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() 179 …bool Compute(const key_type &key, const std::function<bool(const key_type &, mapped_type &)> &acti… in Compute() 200 …bool ComputeIfPresent(const key_type &key, const std::function<bool(const key_type &, mapped_type … in ComputeIfPresent() 216 …bool ComputeIfAbsent(const key_type &key, const std::function<mapped_type(const key_type &)> &acti… in ComputeIfAbsent()
|
| /foundation/arkui/ace_engine/adapter/ohos/capability/preference/ |
| D | storage_impl.h | 42 void SetDouble(const std::string& key, const double value) override in SetDouble() 44 bool GetDouble(const std::string& key, double& value) override in GetDouble() 48 void SetBoolean(const std::string& key, const bool value) override in SetBoolean() 50 bool GetBoolean(const std::string& key, bool& value) override in GetBoolean()
|
| /foundation/multimedia/av_codec/frameworks/native/capi/common/ |
| D | native_avformat.cpp | 99 bool OH_AVFormat_SetIntValue(struct OH_AVFormat *format, const char *key, int32_t value) in OH_AVFormat_SetIntValue() 108 bool OH_AVFormat_SetLongValue(struct OH_AVFormat *format, const char *key, int64_t value) in OH_AVFormat_SetLongValue() 117 bool OH_AVFormat_SetFloatValue(struct OH_AVFormat *format, const char *key, float value) in OH_AVFormat_SetFloatValue() 126 bool OH_AVFormat_SetDoubleValue(struct OH_AVFormat *format, const char *key, double value) in OH_AVFormat_SetDoubleValue() 135 bool OH_AVFormat_SetStringValue(struct OH_AVFormat *format, const char *key, const char *value) in OH_AVFormat_SetStringValue() 145 bool OH_AVFormat_SetBuffer(struct OH_AVFormat *format, const char *key, const uint8_t *addr, size_t… in OH_AVFormat_SetBuffer() 156 bool OH_AVFormat_GetIntValue(struct OH_AVFormat *format, const char *key, int32_t *out) in OH_AVFormat_GetIntValue() 166 bool OH_AVFormat_GetLongValue(struct OH_AVFormat *format, const char *key, int64_t *out) in OH_AVFormat_GetLongValue() 176 bool OH_AVFormat_GetFloatValue(struct OH_AVFormat *format, const char *key, float *out) in OH_AVFormat_GetFloatValue() 186 bool OH_AVFormat_GetDoubleValue(struct OH_AVFormat *format, const char *key, double *out) in OH_AVFormat_GetDoubleValue() [all …]
|
| /foundation/multimedia/av_codec/services/utils/ |
| D | format.cpp | 108 bool Format::PutIntValue(const std::string_view &key, int32_t value) in PutIntValue() 118 bool Format::PutLongValue(const std::string_view &key, int64_t value) in PutLongValue() 128 bool Format::PutFloatValue(const std::string_view &key, float value) in PutFloatValue() 138 bool Format::PutDoubleValue(const std::string_view &key, double value) in PutDoubleValue() 148 bool Format::PutStringValue(const std::string_view &key, const std::string_view &value) in PutStringValue() 158 bool Format::GetStringValue(const std::string_view &key, std::string &value) const in GetStringValue() argument 169 bool Format::GetIntValue(const std::string_view &key, int32_t &value) const in GetIntValue() argument 180 bool Format::GetLongValue(const std::string_view &key, int64_t &value) const in GetLongValue() argument 191 bool Format::GetFloatValue(const std::string_view &key, float &value) const in GetFloatValue() argument 202 bool Format::GetDoubleValue(const std::string_view &key, double &value) const in GetDoubleValue() argument [all …]
|
| /foundation/multimedia/histreamer/engine/include/plugin/common/ |
| D | plugin_caps_builder.h | 38 #define DECL_SET_FIX_CAP_FUNC(key, keyName, type) \ argument 45 #define DECL_SET_RNG_CAP_FUNC(key, keyName, type) \ argument 54 #define DECL_SET_LIST_CAP_FUNC(key, keyName, type) \ argument 61 #define DECL_SET_FRL_CAP_FUNCS(key, keyName, type) \ argument 66 #define DECL_SET_FL_CAP_FUNCS(key, keyName, type) \ argument
|