Home
last modified time | relevance | path

Searched refs:key (Results 1 - 25 of 2982) sorted by relevance

12345678910>>...120

/foundation/distributedhardware/distributed_screen/common/src/
H A Ddscreen_json_util.cpp23 bool IsString(const nlohmann::json &jsonObj, const std::string &key) in IsString() argument
25 bool res = jsonObj.contains(key) && jsonObj[key].is_string() && jsonObj[key].size() <= MAX_MESSAGES_LEN; in IsString()
27 DHLOGE("the key %{public}s in jsonObj is invalid.", key.c_str()); in IsString()
32 bool IsUInt8(const nlohmann::json &jsonObj, const std::string &key) in IsUInt8() argument
34 bool res = jsonObj.contains(key) && jsonObj[key].is_number_unsigned() && jsonObj[key] < in IsUInt8()
41 IsInt32(const nlohmann::json &jsonObj, const std::string &key) IsInt32() argument
51 IsUInt32(const nlohmann::json &jsonObj, const std::string &key) IsUInt32() argument
60 IsInt64(const nlohmann::json &jsonObj, const std::string &key) IsInt64() argument
70 IsUInt64(const nlohmann::json &jsonObj, const std::string &key) IsUInt64() argument
79 IsFloat(const nlohmann::json &jsonObj, const std::string &key) IsFloat() argument
88 IsArray(const nlohmann::json &jsonObj, const std::string &key) IsArray() argument
97 IsBool(const nlohmann::json &jsonObj, const std::string &key) IsBool() argument
[all...]
/foundation/arkui/ace_engine/frameworks/base/json/
H A Djson_util.cpp69 bool JsonValue::Contains(const std::string& key) const in Contains()
71 return cJSON_HasObjectItem(object_, key.c_str()); in Contains()
79 bool JsonValue::GetBool(const std::string& key, bool defaultValue) const in GetBool() argument
81 if (Contains(key) && GetValue(key)->IsBool()) { in GetBool()
82 return GetValue(key)->GetBool(); in GetBool()
107 double JsonValue::GetDouble(const std::string& key, double defaultVal) const in GetDouble() argument
109 auto value = GetValue(key); in GetDouble()
141 std::unique_ptr<JsonValue> JsonValue::GetValue(const std::string& key) const in GetValue()
143 return std::make_unique<JsonValue>(cJSON_GetObjectItem(object_, key in GetValue()
164 Put(const char* key, const char* value) Put() argument
178 PutFixedAttr(const char* key, const char* value, const NG::InspectorFilter& filter, NG::FixedAttrBit attr) PutFixedAttr() argument
187 PutExtAttr(const char* key, const char* value, const NG::InspectorFilter& filter) PutExtAttr() argument
200 Put(const char* key, const std::unique_ptr<JsonValue>& value) Put() argument
214 PutFixedAttr(const char* key, const std::unique_ptr<JsonValue>& value, const NG::InspectorFilter& filter, NG::FixedAttrBit attr) PutFixedAttr() argument
223 PutExtAttr(const char* key, const std::unique_ptr<JsonValue>& value, const NG::InspectorFilter& filter) PutExtAttr() argument
247 Put(const char* key, size_t value) Put() argument
261 PutFixedAttr(const char* key, size_t value, const NG::InspectorFilter& filter, NG::FixedAttrBit attr) PutFixedAttr() argument
270 PutExtAttr(const char* key, size_t value, const NG::InspectorFilter& filter) PutExtAttr() argument
278 Put(const char* key, int32_t value) Put() argument
292 PutFixedAttr(const char* key, int32_t value, const NG::InspectorFilter& filter, NG::FixedAttrBit attr) PutFixedAttr() argument
301 PutExtAttr(const char* key, int32_t value, const NG::InspectorFilter& filter) PutExtAttr() argument
309 Put(const char* key, int64_t value) Put() argument
314 PutFixedAttr(const char* key, int64_t value, const NG::InspectorFilter& filter, NG::FixedAttrBit attr) PutFixedAttr() argument
323 PutExtAttr(const char* key, int64_t value, const NG::InspectorFilter& filter) PutExtAttr() argument
331 Put(const char* key, double value) Put() argument
345 PutFixedAttr(const char* key, double value, const NG::InspectorFilter& filter, NG::FixedAttrBit attr) PutFixedAttr() argument
354 PutExtAttr(const char* key, double value, const NG::InspectorFilter& filter) PutExtAttr() argument
372 PutRef(const char* key, std::unique_ptr<JsonValue>&& value) PutRef() argument
408 Replace(const char* key, double value) Replace() argument
425 Put(const char* key, bool value) Put() argument
439 PutFixedAttr(const char* key, bool value, const NG::InspectorFilter& filter, NG::FixedAttrBit attr) PutFixedAttr() argument
448 PutExtAttr(const char* key, bool value, const NG::InspectorFilter& filter) PutExtAttr() argument
456 Replace(const char* key, bool value) Replace() argument
473 Replace(const char* key, const char* value) Replace() argument
490 Replace(const char* key, int32_t value) Replace() argument
507 Replace(const char* key, const std::unique_ptr<JsonValue>& value) Replace() argument
524 Delete(const char* key) Delete() argument
549 GetString(const std::string& key, const std::string& defaultVal) const GetString() argument
558 GetInt(const std::string& key, int32_t defaultVal) const GetInt() argument
567 GetUInt(const std::string& key, uint32_t defaultVal) const GetUInt() argument
576 GetInt64(const std::string& key, int64_t defaultVal) const GetInt64() argument
[all...]
H A Dnode_object.cpp42 LOGE("UITree |ERROR| not match key=%{public}s", item->GetKey().c_str()); in FromJsonObject()
52 bool NodeObject::Contains(const std::string& key) const in Contains()
55 return uobject_->Contains(key); in Contains()
58 bool NodeObject::GetBool(const std::string& key, bool defaultValue) const in GetBool() argument
61 if (Contains(key)) { in GetBool()
62 return uobject_->GetBool(key); in GetBool()
67 int32_t NodeObject::GetInt(const std::string& key, int32_t defaultVal) const in GetInt() argument
70 if (Contains(key)) { in GetInt()
71 return uobject_->GetInt32(key); in GetInt()
76 uint32_t NodeObject::GetUInt(const std::string& key, uint32_ argument
85 GetInt64(const std::string& key, int64_t defaultVal) const GetInt64() argument
94 GetDouble(const std::string& key, double defaultVal) const GetDouble() argument
103 GetString(const std::string& key, const std::string& defaultVal) const GetString() argument
128 Put(const char* key, const char* value) Put() argument
139 Put(const char* key, size_t value) Put() argument
150 Put(const char* key, int32_t value) Put() argument
161 Put(const char* key, int64_t value) Put() argument
172 Put(const char* key, double value) Put() argument
183 Put(const char* key, bool value) Put() argument
194 Put(const char* key, const std::unique_ptr<JsonValue>& value) Put() argument
205 Put(const char* key, const std::unique_ptr<NodeObject>& value) Put() argument
[all...]
H A Duobject.cpp24 size_t HashItem(const std::string& key, const T& value) in HashItem() argument
26 return std::hash<std::string>()(key) + std::hash<T>()(value); in HashItem()
30 void UObject::AddItemToObject(const std::string& key, const char* value) in AddItemToObject() argument
33 stringItems_[key] = value; in AddItemToObject()
37 void UObject::AddItemToObject(const std::string& key, const std::string& value) in AddItemToObject() argument
39 stringItems_[key] = value; in AddItemToObject()
42 void UObject::AddItemToObject(const std::string& key, size_t value) in AddItemToObject() argument
44 sizetItems_[key] = value; in AddItemToObject()
47 void UObject::AddItemToObject(const std::string& key, int32_t value) in AddItemToObject() argument
49 int32Items_[key] in AddItemToObject()
52 AddItemToObject(const std::string& key, int64_t value) AddItemToObject() argument
57 AddItemToObject(const std::string& key, double value) AddItemToObject() argument
62 AddItemToObject(const std::string& key, bool value) AddItemToObject() argument
67 AddItemToObject(const std::string& key, const std::shared_ptr<UObject>& value) AddItemToObject() argument
323 WriteKV(const std::string& key, const std::string& value) WriteKV() argument
332 WriteKV(const std::string& key, size_t value) WriteKV() argument
340 WriteKV(const std::string& key, int32_t value) WriteKV() argument
348 WriteKV(const std::string& key, int64_t value) WriteKV() argument
356 WriteKV(const std::string& key, double value) WriteKV() argument
364 WriteKV(const std::string& key, bool value) WriteKV() argument
372 WriteObj(const std::string& key, const std::shared_ptr<UObject>& obj) WriteObj() argument
460 std::string key = ReadString(keyLen); ReadKey() local
468 std::string key = ReadKey(); ReadKV() local
473 std::string key = ReadKey(); ReadKV() local
477 std::string key = ReadKey(); ReadKV() local
481 std::string key = ReadKey(); ReadKV() local
485 std::string key = ReadKey(); ReadKV() local
489 std::string key = ReadKey(); ReadKV() local
493 std::string key = ReadKey(); ReadKV() local
[all...]
H A Djson_util.h47 bool Contains(const std::string& key) const override;
51 bool GetBool(const std::string& key, bool defaultValue = false) const override;
53 int32_t GetInt(const std::string& key, int32_t defaultVal = 0) const override;
55 uint32_t GetUInt(const std::string& key, uint32_t defaultVal = 0) const override;
57 int64_t GetInt64(const std::string& key, int64_t defaultVal = 0) const override;
59 double GetDouble(const std::string& key, double defaultVal = 0.0) const override;
61 std::string GetString(const std::string& key, const std::string& defaultVal = "") const override;
66 virtual std::unique_ptr<JsonValue> GetValue(const std::string& key) const;
67 virtual std::unique_ptr<JsonValue> GetObject(const std::string& key) const;
73 bool Put(const char* key, cons
[all...]
/foundation/communication/netstack/test/unittest/tls_test/core/
H A Dtls_key.test.cpp37 TLSKey key; in HWTEST_F() local
39 key = other; in HWTEST_F()
40 EXPECT_EQ(key.opaque_, nullptr); in HWTEST_F()
41 EXPECT_EQ(key.rsa_, nullptr); in HWTEST_F()
42 EXPECT_EQ(key.dsa_, nullptr); in HWTEST_F()
43 EXPECT_EQ(key.dh_, nullptr); in HWTEST_F()
44 EXPECT_EQ(key.ec_, nullptr); in HWTEST_F()
45 EXPECT_EQ(key.genericKey_, nullptr); in HWTEST_F()
51 key = other; in HWTEST_F()
52 EXPECT_NE(key in HWTEST_F()
61 TLSKey key; HWTEST_F() local
[all...]
/foundation/communication/netstack/test/unittest/tlssocket/core/
H A Dtls_key.test.cpp37 TLSKey key; in HWTEST_F() local
39 key = other; in HWTEST_F()
40 EXPECT_EQ(key.opaque_, nullptr); in HWTEST_F()
41 EXPECT_EQ(key.rsa_, nullptr); in HWTEST_F()
42 EXPECT_EQ(key.dsa_, nullptr); in HWTEST_F()
43 EXPECT_EQ(key.dh_, nullptr); in HWTEST_F()
44 EXPECT_EQ(key.ec_, nullptr); in HWTEST_F()
45 EXPECT_EQ(key.genericKey_, nullptr); in HWTEST_F()
51 key = other; in HWTEST_F()
52 EXPECT_NE(key in HWTEST_F()
61 TLSKey key; HWTEST_F() local
[all...]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/subscriber_managers/
H A Dpublished_data_subscriber_manager.cpp36 const PublishedDataKey &key, const sptr<IDataProxyPublishedDataObserver> observer, uint32_t firstCallerTokenId) in Add()
39 key, [&observer, &firstCallerTokenId, this](const PublishedDataKey &key, std::vector<ObserverNode> &value) { in Add()
41 DistributedData::Anonymous::Change(key.key).c_str(), firstCallerTokenId); in Add()
48 int PublishedDataSubscriberManager::Delete(const PublishedDataKey &key, uint32_t firstCallerTokenId) in Delete() argument
51 publishedDataCache_.ComputeIfPresent(key, [&firstCallerTokenId](const auto &key, in Delete()
56 DistributedData::Anonymous::Change(key.key) in Delete()
35 Add( const PublishedDataKey &key, const sptr<IDataProxyPublishedDataObserver> observer, uint32_t firstCallerTokenId) Add() argument
83 Disable(const PublishedDataKey &key, uint32_t firstCallerTokenId) Disable() argument
99 Enable(const PublishedDataKey &key, uint32_t firstCallerTokenId) Enable() argument
156 PutInto( std::map<sptr<IDataProxyPublishedDataObserver>, std::vector<PublishedDataKey>> &callbacks, const std::vector<ObserverNode> &val, const PublishedDataKey &key, const sptr<IDataProxyPublishedDataObserver> observer) PutInto() argument
177 GetCount(const PublishedDataKey &key) GetCount() argument
187 IsNotifyOnEnabled(const PublishedDataKey &key, uint32_t callerTokenId) IsNotifyOnEnabled() argument
215 PublishedDataKey(const std::string &key, const std::string &bundle, const int64_t subscriberId) PublishedDataKey() argument
[all...]
H A Drdb_subscriber_manager.cpp31 bool TemplateManager::Get(const Key &key, int32_t userId, Template &tpl) in Get() argument
33 return TemplateData::Query(Id(TemplateData::GenId(key.uri, key.bundleName, key.subscriberId), userId), tpl) == E_OK; in Get()
36 int32_t TemplateManager::Add(const Key &key, int32_t userId, const Template &tpl) in Add() argument
38 auto status = TemplateData::Add(key.uri, userId, key.bundleName, key.subscriberId, tpl); in Add()
46 int32_t TemplateManager::Delete(const Key &key, int32_t userId) in Delete() argument
48 auto status = TemplateData::Delete(key in Delete()
114 Add(const Key &key, const sptr<IDataProxyRdbObserver> observer, std::shared_ptr<Context> context, std::shared_ptr<ExecutorPool> executorPool) Add() argument
143 Delete(const Key &key, uint32_t firstCallerTokenId) Delete() argument
186 Disable(const Key &key, uint32_t firstCallerTokenId) Disable() argument
202 Enable(const Key &key, std::shared_ptr<Context> context) Enable() argument
290 EmitByKey(const Key &key, int32_t userId, const std::string &rdbPath, int version) EmitByKey() argument
302 GetEnableObserverCount(const Key &key) GetEnableObserverCount() argument
317 Notify(const Key &key, int32_t userId, const std::vector<ObserverNode> &val, const std::string &rdbDir, int rdbVersion) Notify() argument
[all...]
/foundation/arkui/ace_engine_lite/frameworks/packages/runtime-core/src/observer/
H A Dsubject.js36 Object.keys(target).forEach(key => hijack(target, key, target[key]));
52 Subject.prototype.attach = function(key, observer) {
53 if (typeof key === 'undefined' || !observer) {
59 if (!this._obsMap[key]) {
60 this._obsMap[key] = new Set();
62 const observers = this._obsMap[key];
72 Subject.prototype.notify = function(key) {
74 typeof key
[all...]
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/include/bundle_parser/
H A Djson_util.h46 const nlohmann::json &jsonObject, const std::string &key, dataType &data, ArrayType arrayType, int32_t &parseResult) in CheckArrayType()
48 auto arrays = jsonObject.at(key); in CheckArrayType()
60 TAG_LOGD(AAFwkTag::ABILITY_SIM, "array %{public}s not string", key.c_str()); in CheckArrayType()
65 data = jsonObject.at(key).get<T>(); in CheckArrayType()
71 TAG_LOGD(AAFwkTag::ABILITY_SIM, "array %{public}s not object", key.c_str()); in CheckArrayType()
77 data = jsonObject.at(key).get<T>(); in CheckArrayType()
83 TAG_LOGD(AAFwkTag::ABILITY_SIM, "array %{public}s not number", key.c_str()); in CheckArrayType()
88 data = jsonObject.at(key).get<T>(); in CheckArrayType()
92 TAG_LOGD(AAFwkTag::ABILITY_SIM, "array %{public}s not string", key.c_str()); in CheckArrayType()
95 TAG_LOGD(AAFwkTag::ABILITY_SIM, "array %{public}s type error", key in CheckArrayType()
45 CheckArrayType( const nlohmann::json &jsonObject, const std::string &key, dataType &data, ArrayType arrayType, int32_t &parseResult) CheckArrayType() argument
101 GetValueIfFindKey(const nlohmann::json &jsonObject, const nlohmann::detail::iter_impl<const nlohmann::json> &end, const std::string &key, dataType &data, JsonType jsonType, bool isNecessary, int32_t &parseResult, ArrayType arrayType) GetValueIfFindKey() argument
[all...]
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/common/
H A Dscheduler_manager.cpp50 for (auto const &key : keys) { in Execute()
51 ExecuteSchedulerSQL(rdbDir, userId, version, key, delegate); in Execute()
55 void SchedulerManager::Execute(const Key &key, const int32_t userId, const std::string &rdbDir, int version) in Execute() argument
59 meta.bundleName = key.bundleName; in Execute()
62 ZLOGE("malloc fail %{public}s", DistributedData::Anonymous::Change(key.uri).c_str()); in Execute()
65 ExecuteSchedulerSQL(rdbDir, userId, version, key, delegate); in Execute()
99 const std::string &dbPath, const int32_t userId, int version, const Key &key, int64_t reminderTime) in SetTimer()
110 ", bundleName=%{public}s.", reminderTime, now, key.subscriberId, key.bundleName.c_str()); in SetTimer()
115 duration, key in SetTimer()
98 SetTimer( const std::string &dbPath, const int32_t userId, int version, const Key &key, int64_t reminderTime) SetTimer() argument
151 ExecuteSchedulerSQL(const std::string &rdbDir, const int32_t userId, int version, const Key &key, std::shared_ptr<DBDelegate> delegate) ExecuteSchedulerSQL() argument
183 GenRemindTimerFuncParams( const std::string &rdbDir, const int32_t userId, int version, const Key &key, std::string &schedulerSQL) GenRemindTimerFuncParams() argument
199 RemoveTimer(const Key &key) RemoveTimer() argument
[all...]
/foundation/ability/ability_base/interfaces/kits/native/want/include/
H A Dpac_map.h33 // json key define
75 * @brief Default constructor used to create a PacMap instance, in which the Map object has no key-value pair.
94 * @brief Clear all key-value pairs and free resources.
113 * @brief Adds a short value matching a specified key.
114 * @param key A specified key.
115 * @param value The value that matches the specified key.
117 void PutShortValue(const std::string &key, short value);
120 * @brief Adds a integer value matching a specified key.
121 * @param key
[all...]
/foundation/filemanagement/dfs_service/test/unittests/utils/preference/
H A Dcloud_pref_impl_test.cpp33 MOCK_METHOD2(Get, PreferencesValue(const std::string &key, const PreferencesValue &defValue));
34 MOCK_METHOD2(Put, int(const std::string &key, const PreferencesValue &value));
35 MOCK_METHOD2(GetInt, int(const std::string &key, const int &defValue));
36 MOCK_METHOD2(GetString, std::string(const std::string &key, const std::string &defValue));
37 MOCK_METHOD2(GetBool, bool(const std::string &key, const bool &defValue));
38 MOCK_METHOD2(GetFloat, float(const std::string &key, const float &defValue));
39 MOCK_METHOD2(GetDouble, double(const std::string &key, const double &defValue));
40 MOCK_METHOD2(GetLong, int64_t(const std::string &key, const int64_t &defValue));
42 MOCK_METHOD1(HasKey, bool(const std::string &key));
43 MOCK_METHOD2(PutInt, int(const std::string &key, in
179 std::string key; HWTEST_F() local
201 std::string key; HWTEST_F() local
223 std::string key; HWTEST_F() local
245 std::string key; HWTEST_F() local
287 std::string key; HWTEST_F() local
366 string key = ""; HWTEST_F() local
392 string key = "test_key"; HWTEST_F() local
413 string key = "test_key"; HWTEST_F() local
427 string key = ""; HWTEST_F() local
448 string key = "test_key"; HWTEST_F() local
469 string key = "test_key"; HWTEST_F() local
490 string key = ""; HWTEST_F() local
511 string key = ""; HWTEST_F() local
532 string key = "test_key"; HWTEST_F() local
553 string key = ""; HWTEST_F() local
574 string key = "test_key"; HWTEST_F() local
595 string key = "test_key"; HWTEST_F() local
616 string key = "test_key"; HWTEST_F() local
637 string key = "test_key"; HWTEST_F() local
658 string key = "test_key"; HWTEST_F() local
679 string key = "test_key"; HWTEST_F() local
700 string key = "test_key"; HWTEST_F() local
719 string key = ""; HWTEST_F() local
738 string key = "/"; HWTEST_F() local
[all...]
/foundation/ability/form_fwk/services/include/
H A Djson_util_form.h44 void CheckArrayType(const nlohmann::json &jsonObject, const std::string &key, in CheckArrayType() argument
47 auto arrays = jsonObject.at(key); in CheckArrayType()
56 HILOG_ERROR("array %{public}s not string type", key.c_str()); in CheckArrayType()
61 data = jsonObject.at(key).get<T>(); in CheckArrayType()
67 HILOG_ERROR("array %{public}s not object type", key.c_str()); in CheckArrayType()
73 data = jsonObject.at(key).get<T>(); in CheckArrayType()
79 HILOG_ERROR("array %{public}s not number type", key.c_str()); in CheckArrayType()
84 data = jsonObject.at(key).get<T>(); in CheckArrayType()
88 HILOG_ERROR("array %{public}s not array type", key.c_str()); in CheckArrayType()
91 HILOG_ERROR("array %{public}s type error", key in CheckArrayType()
97 GetValueIfFindKey(const nlohmann::json &jsonObject, const nlohmann::detail::iter_impl<const nlohmann::json> &end, const std::string &key, dataType &data, JsonType jsonType, bool isNecessary, int32_t &parseResult, ArrayType arrayType) GetValueIfFindKey() argument
[all...]
/foundation/ability/dmsfwk/services/dtbschedmgr/include/
H A Djson_util.h46 void CheckArrayType(const nlohmann::json &jsonObject, const std::string &key, in CheckArrayType() argument
49 auto arrays = jsonObject.at(key); in CheckArrayType()
58 HILOGE("array %{public}s is not string type", key.c_str()); in CheckArrayType()
63 data = jsonObject.at(key).get<T>(); in CheckArrayType()
69 HILOGE("array %{public}s is not object type", key.c_str()); in CheckArrayType()
75 data = jsonObject.at(key).get<T>(); in CheckArrayType()
81 HILOGE("array %{public}s is not number type", key.c_str()); in CheckArrayType()
86 data = jsonObject.at(key).get<T>(); in CheckArrayType()
90 HILOGE("array %{public}s is not array type", key.c_str()); in CheckArrayType()
93 HILOGE("array %{public}s type error", key in CheckArrayType()
99 GetValueIfFindKey(const nlohmann::json &jsonObject, const nlohmann::detail::iter_impl<const nlohmann::json> &end, const std::string &key, dataType &data, JsonType jsonType, bool isNecessary, int32_t &parseResult, ArrayType arrayType) GetValueIfFindKey() argument
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/state_manage/
H A Dcj_persistent_storage_ffi.cpp24 bool GetValueFromStorage(std::string key, std::string& result) in GetValueFromStorage() argument
31 std::string valueStr = StorageProxy::GetInstance()->GetStorage()->GetString(key); in GetValueFromStorage()
39 void SetValueToStorage(std::string key, std::string value) in SetValueToStorage() argument
50 StorageProxy::GetInstance()->GetStorage()->SetString(key, value); in SetValueToStorage()
54 NativeOptionCString FfiOHOSAceFrameworkPersistentGetString(const char* key) in FfiOHOSAceFrameworkPersistentGetString() argument
63 if (GetValueFromStorage(key, tmp)) { in FfiOHOSAceFrameworkPersistentGetString()
70 void FfiOHOSAceFrameworkPersistentSetString(const char* key, const char* value, NotifyCallbackString callback) in FfiOHOSAceFrameworkPersistentSetString() argument
77 SetValueToStorage(key, value); in FfiOHOSAceFrameworkPersistentSetString()
78 auto cjCallback = [func = CJLambda::Create(callback), key, value]() { in FfiOHOSAceFrameworkPersistentSetString()
79 func(key, valu in FfiOHOSAceFrameworkPersistentSetString()
84 FfiOHOSAceFrameworkPersistentGetInt64(const char* key) FfiOHOSAceFrameworkPersistentGetInt64() argument
100 FfiOHOSAceFrameworkPersistentSetInt64(const char* key, int64_t value, NotifyCallbackInt64 callback) FfiOHOSAceFrameworkPersistentSetInt64() argument
115 FfiOHOSAceFrameworkPersistentGetFloat64(const char* key) FfiOHOSAceFrameworkPersistentGetFloat64() argument
131 FfiOHOSAceFrameworkPersistentSetFloat64(const char* key, double value, NotifyCallbackFloat64 callback) FfiOHOSAceFrameworkPersistentSetFloat64() argument
146 FfiOHOSAceFrameworkPersistentGetBool(const char* key) FfiOHOSAceFrameworkPersistentGetBool() argument
162 FfiOHOSAceFrameworkPersistentSetBool(const char* key, bool value, NotifyCallbackBool callback) FfiOHOSAceFrameworkPersistentSetBool() argument
177 FfiOHOSAceFrameworkPersistentDelete(const char* key) FfiOHOSAceFrameworkPersistentDelete() argument
[all...]
/foundation/arkui/ace_engine/frameworks/base/utils/
H A Dlinear_map.h25 const char* key; member
29 // the key type K must can be compared.
32 K key; member
36 // these binary search functions in linear map, so the map must be sorted by key.
38 int64_t BinarySearchFindIndex(const LinearMapNode<T>* vec, size_t length, const char* key) in BinarySearchFindIndex() argument
41 vec, vec + length, key, [](LinearMapNode<T> lhs, const char* key) { return strcmp(lhs.key, key) < 0; }); in BinarySearchFindIndex()
42 if (it == vec + length || strcmp(it->key, ke in BinarySearchFindIndex()
50 BinarySearchFindIndex(const LinearEnumMapNode<K, V>* vec, size_t length, K key) BinarySearchFindIndex() argument
[all...]
/foundation/arkui/ace_engine/adapter/ohos/entrance/ui_session/
H A Dui_session_json_util.cpp34 bool InspectorJsonValue::Contains(const std::string& key) const in Contains()
36 return cJSON_HasObjectItem(object_, key.c_str()); in Contains()
44 bool InspectorJsonValue::Put(const char* key, const char* value) in Put() argument
46 if (!value || !key) { in Put()
54 cJSON_AddItemToObject(object_, key, child); in Put()
58 bool InspectorJsonValue::Put(const char* key, const std::unique_ptr<InspectorJsonValue>& value) in Put() argument
60 if (!value || !key) { in Put()
68 cJSON_AddItemToObject(object_, key, jsonObject); in Put()
87 bool InspectorJsonValue::Put(const char* key, size_t value) in Put() argument
89 if (key in Put()
101 Put(const char* key, int32_t value) Put() argument
115 Put(const char* key, int64_t value) Put() argument
120 Put(const char* key, double value) Put() argument
134 Put(const char* key, bool value) Put() argument
148 Replace(const char* key, const char* value) Replace() argument
[all...]
/foundation/multimedia/image_framework/plugins/manager/src/framework/
H A Djson_helper.cpp32 uint32_t JsonHelper::CheckElementExistence(const json &jsonObject, const string &key) in CheckElementExistence() argument
35 GetJsonElement(jsonObject, key, errorCode); in CheckElementExistence()
50 uint32_t JsonHelper::GetStringValue(const json &jsonObject, const string &key, string &value) in GetStringValue() argument
53 const json &jsonString = GetJsonElement(jsonObject, key, result); in GetStringValue()
55 PrintElementMissingLog("GetStringValue", key, result); in GetStringValue()
85 uint32_t JsonHelper::GetUint32Value(const json &jsonObject, const string &key, uint32_t &value) in GetUint32Value() argument
88 const json &jsonNum = GetJsonElement(jsonObject, key, result); in GetUint32Value()
90 PrintElementMissingLog("GetUint32Value", key, result); in GetUint32Value()
97 uint32_t JsonHelper::GetUint16Value(const json &jsonObject, const string &key, uint16_t &value) in GetUint16Value() argument
100 const json &jsonNum = GetJsonElement(jsonObject, key, resul in GetUint16Value()
127 GetArraySize(const json &jsonObject, const string &key, size_t &size) GetArraySize() argument
146 GetJsonElement(const json &jsonObject, const string &key, uint32_t &errorCode) GetJsonElement() argument
166 PrintElementMissingLog(const std::string &identifier, const std::string &key, uint32_t errorCode) PrintElementMissingLog() argument
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/theme/
H A Dtheme_constants.cpp43 bool ValueTypeMatch(const ResValueWrapper& valueWrapper, uint32_t key, const ThemeConstantsType& expectType) in ValueTypeMatch() argument
66 const ResValueWrapper* ThemeConstants::GetPlatformConstants(uint32_t key) in GetPlatformConstants() argument
69 if (g_deviceType == DeviceType::WATCH && key < ThemeConstants::WatchMapCount && in GetPlatformConstants()
70 ThemeConstants::styleMapWatch[key] != nullptr) { in GetPlatformConstants()
71 return ThemeConstants::styleMapWatch[key]; in GetPlatformConstants()
74 if (g_deviceType == DeviceType::TV && key < ThemeConstants::TvMapCount && in GetPlatformConstants()
75 ThemeConstants::styleMapTv[key] != nullptr) { in GetPlatformConstants()
76 return ThemeConstants::styleMapTv[key]; in GetPlatformConstants()
79 if (key < ThemeConstants::DefaultMapCount) { in GetPlatformConstants()
80 return ThemeConstants::styleMapDefault[key]; in GetPlatformConstants()
229 GetPluralString(uint32_t key, int count) const GetPluralString() argument
506 const auto& key = child->GetKey(); ParseCustomStyle() local
[all...]
/foundation/CastEngine/castengine_wifi_display/services/interaction/interprocess/
H A Dinter_ipc_service_stub.cpp38 sptr<IRemoteObject> InterIpcServiceStub::GetSubSystemAbility(std::string key, std::string className) in GetSubSystemAbility() argument
57 adapter->SetCallingKey(key); in GetSubSystemAbility()
61 interaction->SetRpcKey(key); in GetSubSystemAbility()
63 SHARING_LOGI("AddInteractionKey key: %{public}s interactionId: %{public}d.", key.c_str(), interaction->GetId()); in GetSubSystemAbility()
64 InteractionManager::GetInstance().AddInteractionKey(key, interaction->GetId()); in GetSubSystemAbility()
77 void InterIpcServiceStub::CreateDeathListener(std::string key) in CreateDeathListener() argument
80 if (deathRecipients_.find(key) != deathRecipients_.end()) { in CreateDeathListener()
81 SHARING_LOGI("key: %{public}s.", key in CreateDeathListener()
94 DelPeerProxy(std::string key) DelPeerProxy() argument
107 SetListenerObject(std::string key, const sptr<IRemoteObject> &object) SetListenerObject() argument
[all...]
/foundation/barrierfree/accessibility/services/aams/src/
H A Daccessibility_setting_provider.cpp65 RetError AccessibilitySettingProvider::GetIntValue(const std::string& key, int32_t& value) in GetIntValue() argument
67 value = AccessibilityDatashareHelper::GetIntValue(key, 0); in GetIntValue()
71 RetError AccessibilitySettingProvider::GetLongValue(const std::string& key, int64_t& value) in GetLongValue() argument
73 value = AccessibilityDatashareHelper::GetLongValue(key, 0); in GetLongValue()
77 RetError AccessibilitySettingProvider::GetFloatValue(const std::string& key, float& value) in GetFloatValue() argument
79 value = AccessibilityDatashareHelper::GetFloatValue(key, 0); in GetFloatValue()
83 RetError AccessibilitySettingProvider::GetBoolValue(const std::string& key, bool& value) in GetBoolValue() argument
85 value = AccessibilityDatashareHelper::GetBoolValue(key, 0); in GetBoolValue()
89 RetError AccessibilitySettingProvider::GetStringValue(const std::string& key, std::string& value) in GetStringValue() argument
91 value = AccessibilityDatashareHelper::GetStringValue(key, ""); in GetStringValue()
95 PutIntValue(const std::string& key, int32_t value, bool needNotify) PutIntValue() argument
100 PutLongValue(const std::string& key, int64_t value, bool needNotify) PutLongValue() argument
105 PutBoolValue(const std::string& key, bool value, bool needNotify) PutBoolValue() argument
110 PutStringValue(const std::string& key, const std::string& value, bool needNotify) PutStringValue() argument
115 CreateObserver(const std::string& key, AccessibilitySettingObserver::UpdateFunc& func) CreateObserver() argument
121 RegisterObserver(const std::string& key, AccessibilitySettingObserver::UpdateFunc& func) RegisterObserver() argument
127 UnregisterObserver(const std::string& key) UnregisterObserver() argument
[all...]
/foundation/barrierfree/accessibility/services/aams/test/mock/src/
H A Dmock_accessibility_setting_provider.cpp52 RetError AccessibilitySettingProvider::GetIntValue(const std::string& key, int32_t& value) in GetIntValue() argument
55 (void)key; in GetIntValue()
60 RetError AccessibilitySettingProvider::GetLongValue(const std::string& key, int64_t& value) in GetLongValue() argument
63 (void)key; in GetLongValue()
68 RetError AccessibilitySettingProvider::GetBoolValue(const std::string& key, bool& value) in GetBoolValue() argument
71 (void)key; in GetBoolValue()
76 RetError AccessibilitySettingProvider::GetFloatValue(const std::string& key, float& value) in GetFloatValue() argument
79 (void)key; in GetFloatValue()
84 RetError AccessibilitySettingProvider::PutIntValue(const std::string& key, int32_t value, bool needNotify) in PutIntValue() argument
87 (void)key; in PutIntValue()
93 PutLongValue(const std::string& key, int64_t value, bool needNotify) PutLongValue() argument
102 PutBoolValue(const std::string& key, bool value, bool needNotify) PutBoolValue() argument
111 CreateObserver(const std::string& key, AccessibilitySettingObserver::UpdateFunc& func) CreateObserver() argument
120 RegisterObserver(const std::string& key, AccessibilitySettingObserver::UpdateFunc& func) RegisterObserver() argument
128 UnregisterObserver(const std::string& key) UnregisterObserver() argument
134 GetStringValue(const std::string& key, std::string& value) GetStringValue() argument
142 PutStringValue(const std::string& key, const std::string& value, bool needNotify) PutStringValue() argument
[all...]
/foundation/barrierfree/accessibility/services/test/moduletest/mock/src/
H A Dmock_mt_accessibility_setting_provider.cpp52 RetError MockAccessibilitySettingProvider::GetIntValue(const std::string& key, int32_t& value) in GetIntValue() argument
55 (void)key; in GetIntValue()
60 RetError MockAccessibilitySettingProvider::GetLongValue(const std::string& key, int64_t& value) in GetLongValue() argument
63 (void)key; in GetLongValue()
68 RetError MockAccessibilitySettingProvider::GetBoolValue(const std::string& key, bool& value) in GetBoolValue() argument
71 (void)key; in GetBoolValue()
76 RetError MockAccessibilitySettingProvider::GetFloatValue(const std::string& key, float& value) in GetFloatValue() argument
79 (void)key; in GetFloatValue()
84 RetError MockAccessibilitySettingProvider::PutIntValue(const std::string& key, int32_t value, bool needNotify) in PutIntValue() argument
87 (void)key; in PutIntValue()
93 PutLongValue(const std::string& key, int64_t value, bool needNotify) PutLongValue() argument
102 PutBoolValue(const std::string& key, bool value, bool needNotify) PutBoolValue() argument
111 CreateObserver(const std::string& key, AccessibilitySettingObserver::UpdateFunc& func) CreateObserver() argument
120 RegisterObserver(const std::string& key, AccessibilitySettingObserver::UpdateFunc& func) RegisterObserver() argument
128 UnregisterObserver(const std::string& key) UnregisterObserver() argument
134 GetStringValue(const std::string& key, std::string& value) GetStringValue() argument
142 PutStringValue(const std::string& key, const std::string& value, bool needNotify) PutStringValue() argument
[all...]

Completed in 19 milliseconds

12345678910>>...120