Home
last modified time | relevance | path

Searched refs:key (Results 1 – 25 of 3085) sorted by relevance

12345678910>>...124

/ohos5.0/docs/en/application-dev/reference/apis-input-kit/
H A Djs-apis-keycode.md3 … **keyCode** module provides keycode values for key devices, such as the keyboard, power key, came…
23 | KEYCODE_FN | 0 | Function (Fn) key |
24 | KEYCODE_UNKNOWN | -1 | Unknown key |
25 | KEYCODE_HOME | 1 | Function (Home) key |
26 | KEYCODE_BACK | 2 | Back key |
27 | KEYCODE_SEARCH<sup>13+</sup> | 9 | Search key|
39 | KEYCODE_MUTE | 23 | Mute key |
132 | KEYCODE_F1 | 2090 | F1 key |
231 | KEYCODE_PVR | 2666 | PVR key |
241 | KEYCODE_SAT | 2676 | SAT key |
[all …]
/ohos5.0/foundation/distributedhardware/distributed_screen/common/src/
H A Ddscreen_json_util.cpp25 …bool res = jsonObj.contains(key) && jsonObj[key].is_string() && jsonObj[key].size() <= MAX_MESSAGE… in IsString()
34 …bool res = jsonObj.contains(key) && jsonObj[key].is_number_unsigned() && jsonObj[key] <= UINT8_MAX; in IsUInt8()
43 …bool res = jsonObj.contains(key) && jsonObj[key].is_number_integer() && jsonObj[key] >= INT32_MIN … in IsInt32()
44 jsonObj[key] <= INT32_MAX; in IsInt32()
53 …bool res = jsonObj.contains(key) && jsonObj[key].is_number_unsigned() && jsonObj[key] <= UINT32_MA… in IsUInt32()
62 …bool res = jsonObj.contains(key) && jsonObj[key].is_number_integer() && jsonObj[key] >= INT64_MIN … in IsInt64()
63 jsonObj[key] <= INT64_MAX; in IsInt64()
72 …bool res = jsonObj.contains(key) && jsonObj[key].is_number_unsigned() && jsonObj[key] <= UINT64_MA… in IsUInt64()
81 bool res = jsonObj.contains(key) && jsonObj[key].is_number_float(); in IsFloat()
90 bool res = jsonObj.contains(key) && jsonObj[key].is_array(); in IsArray()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/lib/sdk/
H A Dv2_persistence.ts100 if (key === '') {
174 this.checkTypeByName(key, type, this.oldTypeValues_.get(key));
263 this.checkTypeByName(key, type, this.oldTypeValues_.get(key));
337 PersistenceV2Impl.storage_.set(key, JSONCoder.stringify(this.map_.get(key)));
359 this.map_.delete(key);
376 if (key === undefined) {
381 this.errorHelper(key, PersistError.Quota, `The key '${key}' cannot be used`);
385 return key;
516 this.errorHelper(key, PersistError.Unknown, `fail to store the key '${key}'`);
559 if (!key) {
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/json/
H A Djson_util.cpp81 if (Contains(key) && GetValue(key)->IsBool()) { in GetBool()
148 if (Contains(key) && GetValue(key)->IsObject()) { in GetObject()
166 if (!value || !key) { in Put()
202 if (!value || !key) { in Put()
249 if (key == nullptr) { in Put()
280 if (key == nullptr) { in Put()
333 if (key == nullptr) { in Put()
410 if (key == nullptr) { in Replace()
427 if (key == nullptr) { in Put()
458 if (key == nullptr) { in Replace()
[all …]
H A Dnode_object.cpp61 if (Contains(key)) { in GetBool()
70 if (Contains(key)) { in GetInt()
79 if (Contains(key)) { in GetUInt()
88 if (Contains(key)) { in GetInt64()
97 if (Contains(key)) { in GetDouble()
106 if (Contains(key)) { in GetString()
142 if (!key) { in Put()
153 if (!key) { in Put()
164 if (!key) { in Put()
175 if (!key) { in Put()
[all …]
H A Duobject.cpp64 boolItems_[key] = value; in AddItemToObject()
151 …return stringItems_.count(key) || sizetItems_.count(key) || int32Items_.count(key) || int64Items_.… in Contains()
152 doubleItems_.count(key) || boolItems_.count(key) || children_.count(key); in Contains()
327 WriteString(key); in WriteKV()
336 WriteString(key); in WriteKV()
344 WriteString(key); in WriteKV()
352 WriteString(key); in WriteKV()
360 WriteString(key); in WriteKV()
368 WriteString(key); in WriteKV()
376 WriteString(key); in WriteObj()
[all …]
H A Djson_util.h47 bool Contains(const std::string& key) const override;
74 bool Put(const char* key, size_t value) override;
75 bool Put(const char* key, int32_t value) override;
76 bool Put(const char* key, int64_t value) override;
77 bool Put(const char* key, double value) override;
78 bool Put(const char* key, bool value) override;
105 bool Replace(const char* key, const char* value);
106 bool Replace(const char* key, int32_t value);
108 bool Replace(const char* key, bool value);
109 bool Replace(const char* key, double value);
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/lib/v2/
H A Dv2_observed_proxy.ts56 return target[key];
63 let ret = this.isMakeObserved_ ? target[key] : ObserveV2.autoProxyObject(target, key);
101 target[key] = value;
145 return target[key];
151 if (key === 'length') {
153 return target[key];
211 target[key] = value;
260 if (key === 'size') {
272 if (key === 'has') {
306 if (key === 'keys' || key === 'values' || key === 'entries') {
[all …]
/ohos5.0/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/
H A Dhdf_tool_settings.py68 if key in self.settings:
75 if key in self.settings:
78 key = self.board_path_key
98 key = self.template_path_key
117 if key in self.settings:
135 key = self.hdi_config_key
150 key = self.passwd_group_key
189 key = self.passwd_key
193 key = self.group_key
197 key = self.selinux_key
[all …]
/ohos5.0/foundation/ability/ability_base/interfaces/kits/native/want/include/
H A Dpac_map.h117 void PutShortValue(const std::string &key, short value);
124 void PutIntValue(const std::string &key, int value);
131 void PutLongValue(const std::string &key, long value);
138 void PutBooleanValue(const std::string &key, bool value);
145 void PutCharValue(const std::string &key, char value);
159 void PutFloatValue(const std::string &key, float value);
166 void PutDoubleValue(const std::string &key, double value);
187 bool PutPacMap(const std::string &key, const PacMap &value);
412 PacMap GetPacMap(const std::string &key);
451 bool HasKey(const std::string &key);
[all …]
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/subscriber_managers/
H A Dpublished_data_subscriber_manager.cpp41 DistributedData::Anonymous::Change(key.key).c_str(), firstCallerTokenId); in Add()
52 publishedDataCache_.ComputeIfPresent(key, [&firstCallerTokenId](const auto &key, in Delete()
57 DistributedData::Anonymous::Change(key.key).c_str(), firstCallerTokenId); in Delete()
87 publishedDataCache_.ComputeIfPresent(key, [&firstCallerTokenId](const auto &key, in Disable()
103 publishedDataCache_.ComputeIfPresent(key, [&firstCallerTokenId](const auto &key, in Enable() argument
125 if (key != data || publishedResult.count(key) != 0) { in Emit()
129 …Id(PublishedData::GenId(key.key, key.bundleName, key.subscriberId), userId), publishedResult[key]); in Emit()
146 …result.datas_.emplace_back(key.key, key.subscriberId, PublishedDataNode::MoveTo(publishedResult[ke… in Emit()
217 : key(key), bundleName(bundle), subscriberId(subscriberId) in PublishedDataKey()
229 if (key < rhs.key) { in operator <()
[all …]
H A Drdb_subscriber_manager.cpp33 …return TemplateData::Query(Id(TemplateData::GenId(key.uri, key.bundleName, key.subscriberId), user… in Get()
38 auto status = TemplateData::Add(key.uri, userId, key.bundleName, key.subscriberId, tpl); in Add()
48 auto status = TemplateData::Delete(key.uri, userId, key.bundleName, key.subscriberId); in Delete()
147 rdbCache_.ComputeIfPresent(key, [&firstCallerTokenId, this](const auto &key, in Delete()
179 key.subscriberId, key.bundleName.c_str(), callerTokenId, in Delete()
190 rdbCache_.ComputeIfPresent(key, [&firstCallerTokenId, this](const auto &key, in Disable()
235 if (key.uri != uri) { in Emit()
254 if (key.uri != uri) { in Emit()
282 if (key.uri != uri) { in GetKeysByUri()
324 … DistributedData::Anonymous::Change(key.uri).c_str(), key.subscriberId, key.bundleName.c_str()); in Notify()
[all …]
/ohos5.0/base/security/crypto_framework/test/unittest/src/aes_cipher/
H A Dcrypto_aes_ecb_cipher_test.cpp506 HcfObjDestroy(key);
541 key->clearMem(key);
543 HcfObjDestroy(key);
578 key->clearMem(key);
580 HcfObjDestroy(key);
608 HcfObjDestroy(key);
779 ret = cipher->init(nullptr, ENCRYPT_MODE, &(key->key), nullptr);
944 ret = cipher->init(cipher, ENCRYPT_MODE, &(key->key), nullptr);
985 ret = cipher->init(cipher, ENCRYPT_MODE, &(key->key), nullptr);
1063 ret = cipher->init(cipher, ENCRYPT_MODE, &(key->key), nullptr);
[all …]
H A Dcrypto_aes_cipher_test.cpp77 HcfObjDestroy(key);
134 HcfObjDestroy(key);
153 keyAlgoName = key->key.getAlgorithm(&(key->key));
183 keyAlgoName = key->key.getAlgorithm(nullptr);
240 retFormat = key->key.getFormat(&(key->key));
270 retFormat = key->key.getFormat(nullptr);
300 retFormat = key->key.getFormat(reinterpret_cast<HcfKey *>(generator));
336 ret = key->key.getEncoded(&(key->key), &encodedBlob);
383 ret = key->key.getEncoded(nullptr, &encodedBlob);
466 ret = key->key.getEncoded(&(key->key), &encodedBlob);
[all …]
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/three_stage_test/src/
H A Dhks_import_agree_test.cpp645 return CopyKey(key->privateOrYData.data, key->privateOrYData.size, outKey); in CopyToInner()
647 return CopyKey(key->publicOrXData.data, key->publicOrXData.size, outKey); in CopyToInner()
700 return CopyKey(key->x509PublicKey.data, key->x509PublicKey.size, outKey); in ConstructEccKey()
742 if (memcpy_s(data + offset, size - offset, key->zData.data, key->zData.size) != EOK) { in ConstructEccKey()
756 return CopyKey(key->x509PublicKey.data, key->x509PublicKey.size, outKey); in ConstructDhKey()
804 struct TestImportKeyData key; in ConstructImportedCurve25519Key() local
805 (void)memset_s(&key, sizeof(key), 0, sizeof(key)); in ConstructImportedCurve25519Key()
824 struct TestImportKeyData key; in ConstructImportedEccKey() local
825 (void)memset_s(&key, sizeof(key), 0, sizeof(key)); in ConstructImportedEccKey()
919 (void)memset_s(&key, sizeof(key), 0, sizeof(key)); in ConstructImportedDhKey()
[all …]
/ohos5.0/base/update/updateservice/services/core/ability/preference/src/
H A Dpreference_utils.cpp50 return Save(key, value); in SaveString()
55 return Save(key, value); in SaveInt()
60 return Save(key, value); in SaveBool()
65 return Save(key, value); in SaveLong()
70 return Save(key, value); in SaveFloat()
139 return Obtain(key, defValue); in ObtainString()
144 return Obtain(key, defValue); in ObtainInt()
149 return Obtain(key, defValue); in ObtainBool()
154 return Obtain(key, defValue); in ObtainLong()
159 return Obtain(key, defValue); in ObtainFloat()
[all …]
/ohos5.0/base/security/huks/test/unittest/huks_standard_test/crypto_engine_test/src/
H A Dhks_crypto_hal_api_mbedtls.cpp92 HksBlob key = {}; variable
113 HksBlob key = {}; variable
291 HksBlob key; variable
323 HKS_FREE_BLOB(key);
358 HKS_FREE_BLOB(key);
408 key.size -= 1;
411 key.size += 1;
422 HKS_FREE_BLOB(key);
477 HKS_FREE_BLOB(key);
505 ret = HksCryptoHalAgreeKey(&key, &key, &spec, &sharedKey);
[all …]
/ohos5.0/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/data_share/common/
H A Dscheduler_manager.cpp50 for (auto const &key : keys) { in Execute() local
115 duration, key.subscriberId, key.bundleName.c_str()); in SetTimer()
119 … DistributedData::Anonymous::Change(key.uri).c_str(), key.subscriberId, key.bundleName.c_str()); in SetTimer()
127 key.subscriberId, key.bundleName.c_str()); in SetTimer()
147 … DistributedData::Anonymous::Change(key.uri).c_str(), key.subscriberId, key.bundleName.c_str()); in SetTimer()
157 … DistributedData::Anonymous::Change(key.uri).c_str(), key.subscriberId, key.bundleName.c_str()); in ExecuteSchedulerSQL()
162 … DistributedData::Anonymous::Change(key.uri).c_str(), key.subscriberId, key.bundleName.c_str()); in ExecuteSchedulerSQL()
169 … DistributedData::Anonymous::Change(key.uri).c_str(), key.subscriberId, key.bundleName.c_str()); in ExecuteSchedulerSQL()
177 …DistributedData::Anonymous::Change(key.uri).c_str(), key.subscriberId, key.bundleName.c_str(), err… in ExecuteSchedulerSQL()
209 … DistributedData::Anonymous::Change(key.uri).c_str(), key.bundleName.c_str(), key.subscriberId); in RemoveTimer()
[all …]
/ohos5.0/base/security/crypto_framework/test/unittest/src/
H A Dcrypto_sm4_ecb_cipher_test.cpp348 ret = cipher->init(nullptr, ENCRYPT_MODE, &(key->key), nullptr);
354 HcfObjDestroy(key);
383 HcfObjDestroy(key);
409 ret = cipher->init(cipher, ENCRYPT_MODE, &(key->key), nullptr);
419 HcfObjDestroy(key);
449 ret = cipher->init(cipher, ENCRYPT_MODE, &(key->key), nullptr);
459 HcfObjDestroy(key);
489 ret = cipher->init(cipher, ENCRYPT_MODE, &(key->key), nullptr);
499 HcfObjDestroy(key);
529 ret = cipher->init(cipher, ENCRYPT_MODE, &(key->key), nullptr);
[all …]
H A Dcrypto_sm4_generator_test.cpp106 HcfObjDestroy(key);
163 HcfObjDestroy(key);
182 keyAlgoName = key->key.getAlgorithm(nullptr);
189 HcfObjDestroy(key);
220 HcfObjDestroy(key);
238 retFormat = key->key.getFormat(nullptr);
245 HcfObjDestroy(key);
268 retFormat = key->key.getFormat(reinterpret_cast<HcfKey *>(generator));
304 ret = key->key.getEncoded(nullptr, &encodedBlob);
387 ret = key->key.getEncoded(&(key->key), &encodedBlob);
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/theme/
H A Dtheme_constants.cpp87 if (IsGlobalResource(key)) { in GetColor()
114 if (IsGlobalResource(key)) { in GetDimension()
150 if (IsGlobalResource(key)) { in GetInt()
177 if (IsGlobalResource(key)) { in GetDouble()
204 if (IsGlobalResource(key)) { in GetString()
231 if (IsGlobalResource(key)) { in GetPluralString()
259 if (IsGlobalResource(key)) { in GetStringArray()
278 if (IsGlobalResource(key)) { in GetMediaPath()
329 if (IsGlobalResource(key)) { in GetBoolean()
356 if (IsGlobalResource(key)) { in GetIntArray()
[all …]
/ohos5.0/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/
H A Djson_util.h47 auto arrays = jsonObject.at(key); in CheckArrayType()
64 data = jsonObject.at(key).get<T>(); in CheckArrayType()
76 data = jsonObject.at(key).get<T>(); in CheckArrayType()
87 data = jsonObject.at(key).get<T>(); in CheckArrayType()
107 if (jsonObject.find(key) != end) { in GetValueIfFindKey()
115 data = jsonObject.at(key).get<T>(); in GetValueIfFindKey()
123 data = jsonObject.at(key).get<T>(); in GetValueIfFindKey()
131 data = jsonObject.at(key).get<T>(); in GetValueIfFindKey()
147 data = jsonObject.at(key).get<T>(); in GetValueIfFindKey()
200 if (jsonObject.find(key) != end) { in GetBigStringIfFindKey()
[all …]
/ohos5.0/docs/zh-cn/application-dev/arkts-utils/
H A Dnonlinear-container.md20 [HashMap](../reference/apis-arkts/js-apis-hashmap.md)可用来存储具有关联关系的key-value键值对集合,存储元素中key是唯一的,每个key会…
35 | 访问元素 | get(key: K) | 获取key对应的value值。 |
41 | 修改元素 | replace(key: K, newValue: V) | 修改指定key对应的value值。 |
84 | 访问元素 | get(key: K) | 获取key对应的value值。 |
92 | 修改元素 | replace(key: K, newValue: V) | 修改指定key对应的value值。 |
126key-value键值对集合,存储元素中key是唯一的,每个key会对应一个value值。LightWeightMap依据泛型定义,采用更加轻量级的结构,底层标识唯一key通过hash实现,其冲突…
139 | 访问元素 | get(key: K) | 获取key对应的value值。 |
140 | 访问元素 | getIndexOfKey(key: K) | 获取map中指定key的index。 |
151 | 删除元素 | remove(key: K) | 删除map中指定key匹配到的键值对。 |
198 | 访问元素 | get(key: number) | 获取key对应的value值。 |
[all …]
/ohos5.0/base/security/device_auth/test/unittest/deviceauth/source/
H A Djson_utils_mock.c116 if (jsonObj == NULL || key == NULL) { in DeleteItemFromJson()
124 if (jsonObj == NULL || key == NULL) { in DeleteAllItemExceptOne()
132 if (strcmp(key, curItem->string) != 0) { in DeleteAllItemExceptOne()
156 if (jsonObj == NULL || key == NULL) { in DetachItemFromJson()
197 if (jsonObj == NULL || key == NULL) { in GetObjFromJson()
210 cJSON *obj = GetObjFromJson(item, key); in GetObjFromJson()
230 if (jsonObj == NULL || key == NULL) { in GetStringFromJson()
492 ret = AddStringToJson(jsonObj, key, hexStr); in AddByteToJson()
504 if (jsonObj == NULL || key == NULL) { in AddBoolToJson()
529 if (jsonObj == NULL || key == NULL) { in AddIntToJson()
[all …]
/ohos5.0/base/security/device_auth/common_lib/impl/src/
H A Djson_utils.c84 if (jsonObj == NULL || key == NULL) { in DeleteItemFromJson()
92 if (jsonObj == NULL || key == NULL) { in DeleteAllItemExceptOne()
100 if (strcmp(key, curItem->string) != 0) { in DeleteAllItemExceptOne()
124 if (jsonObj == NULL || key == NULL) { in DetachItemFromJson()
164 if (jsonObj == NULL || key == NULL) { in GetObjFromJson()
177 cJSON *obj = GetObjFromJson(item, key); in GetObjFromJson()
197 if (jsonObj == NULL || key == NULL) { in GetStringFromJson()
459 ret = AddStringToJson(jsonObj, key, hexStr); in AddByteToJson()
471 if (jsonObj == NULL || key == NULL) { in AddBoolToJson()
496 if (jsonObj == NULL || key == NULL) { in AddIntToJson()
[all …]

12345678910>>...124