/third_party/python/Lib/test/ |
H A D | test_dictviews.py | 10 kt = type({}.keys()) 22 keys = d.keys() 23 self.assertEqual(len(keys), 2) 24 self.assertEqual(set(keys), {1, "a"}) 25 self.assertEqual(keys, {1, "a"}) 26 self.assertNotEqual(keys, {1, "a", "b"}) 27 self.assertNotEqual(keys, {1, "b"}) 28 self.assertNotEqual(keys, {1}) 29 self.assertNotEqual(keys, 4 [all...] |
/foundation/arkui/ace_engine/test/unittest/core/base/ |
H A D | short_cuts_test_ng.cpp | 93 std::vector<ModifierKey> keys; in HWTEST_F() local 94 keys.push_back(ModifierKey::SHIFT); in HWTEST_F() 95 ViewAbstract::SetKeyboardShortcut(VALUE_TAB, std::move(keys), callback); in HWTEST_F() 102 keys.push_back(ModifierKey::ALT); in HWTEST_F() 103 ViewAbstract::SetKeyboardShortcut(VALUE_TAB, std::move(keys), callback); in HWTEST_F() 110 keys.push_back(ModifierKey::CTRL); in HWTEST_F() 111 ViewAbstract::SetKeyboardShortcut(VALUE_TAB, std::move(keys), callback); in HWTEST_F() 113 keys.clear(); in HWTEST_F() 135 std::vector<ModifierKey> keys; in HWTEST_F() local 136 ViewAbstract::SetKeyboardShortcut(VALUE_TAB, std::move(keys), callbac in HWTEST_F() 160 std::vector<ModifierKey> keys; HWTEST_F() local 194 std::vector<ModifierKey> keys; HWTEST_F() local 228 std::vector<ModifierKey> keys; HWTEST_F() local 253 std::vector<ModifierKey> keys; HWTEST_F() local 287 std::vector<ModifierKey> keys; HWTEST_F() local 321 std::vector<ModifierKey> keys; HWTEST_F() local 363 std::vector<ModifierKey> keys; HWTEST_F() local 388 std::vector<ModifierKey> keys; HWTEST_F() local 422 std::vector<ModifierKey> keys; HWTEST_F() local 456 std::vector<ModifierKey> keys; HWTEST_F() local 498 std::vector<ModifierKey> keys; HWTEST_F() local 523 std::vector<ModifierKey> keys; HWTEST_F() local 557 std::vector<ModifierKey> keys; HWTEST_F() local 591 std::vector<ModifierKey> keys; HWTEST_F() local 633 std::vector<ModifierKey> keys; HWTEST_F() local 658 std::vector<ModifierKey> keys; HWTEST_F() local 692 std::vector<ModifierKey> keys; HWTEST_F() local 726 std::vector<ModifierKey> keys; HWTEST_F() local 768 std::vector<ModifierKey> keys; HWTEST_F() local 793 std::vector<ModifierKey> keys; HWTEST_F() local 827 std::vector<ModifierKey> keys; HWTEST_F() local 861 std::vector<ModifierKey> keys; HWTEST_F() local 903 std::vector<ModifierKey> keys; HWTEST_F() local 928 std::vector<ModifierKey> keys; HWTEST_F() local 962 std::vector<ModifierKey> keys; HWTEST_F() local 996 std::vector<ModifierKey> keys; HWTEST_F() local 1038 std::vector<ModifierKey> keys; HWTEST_F() local 1063 std::vector<ModifierKey> keys; HWTEST_F() local 1097 std::vector<ModifierKey> keys; HWTEST_F() local 1131 std::vector<ModifierKey> keys; HWTEST_F() local 1173 std::vector<ModifierKey> keys; HWTEST_F() local 1198 std::vector<ModifierKey> keys; HWTEST_F() local 1232 std::vector<ModifierKey> keys; HWTEST_F() local 1266 std::vector<ModifierKey> keys; HWTEST_F() local 1308 std::vector<ModifierKey> keys; HWTEST_F() local 1333 std::vector<ModifierKey> keys; HWTEST_F() local 1367 std::vector<ModifierKey> keys; HWTEST_F() local 1401 std::vector<ModifierKey> keys; HWTEST_F() local [all...] |
H A D | short_cuts_little_test_ng.cpp | 88 std::vector<ModifierKey> keys; in HWTEST_F() local 89 ViewAbstract::SetKeyboardShortcut(VALUE_LITTLE_A, std::move(keys), callback); in HWTEST_F() 91 keys.clear(); in HWTEST_F() 113 std::vector<ModifierKey> keys; in HWTEST_F() local 114 keys.push_back(ModifierKey::ALT); in HWTEST_F() 115 ViewAbstract::SetKeyboardShortcut(VALUE_LITTLE_A, std::move(keys), callback); in HWTEST_F() 122 keys.push_back(ModifierKey::CTRL); in HWTEST_F() 123 ViewAbstract::SetKeyboardShortcut(VALUE_LITTLE_A, std::move(keys), callback); in HWTEST_F() 125 keys.clear(); in HWTEST_F() 147 std::vector<ModifierKey> keys; in HWTEST_F() local 181 std::vector<ModifierKey> keys; HWTEST_F() local 223 std::vector<ModifierKey> keys; HWTEST_F() local 248 std::vector<ModifierKey> keys; HWTEST_F() local 274 std::vector<ModifierKey> keys; HWTEST_F() local 300 std::vector<ModifierKey> keys; HWTEST_F() local 326 std::vector<ModifierKey> keys; HWTEST_F() local 351 std::vector<ModifierKey> keys; HWTEST_F() local 377 std::vector<ModifierKey> keys; HWTEST_F() local 403 std::vector<ModifierKey> keys; HWTEST_F() local 429 std::vector<ModifierKey> keys; HWTEST_F() local 454 std::vector<ModifierKey> keys; HWTEST_F() local 480 std::vector<ModifierKey> keys; HWTEST_F() local 506 std::vector<ModifierKey> keys; HWTEST_F() local 532 std::vector<ModifierKey> keys; HWTEST_F() local 557 std::vector<ModifierKey> keys; HWTEST_F() local 583 std::vector<ModifierKey> keys; HWTEST_F() local 609 std::vector<ModifierKey> keys; HWTEST_F() local 635 std::vector<ModifierKey> keys; HWTEST_F() local 660 std::vector<ModifierKey> keys; HWTEST_F() local 686 std::vector<ModifierKey> keys; HWTEST_F() local 712 std::vector<ModifierKey> keys; HWTEST_F() local [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/ |
H A D | ikev2_common.c | 36 { ENCR_AES_CBC, 16, 16 }, /* only 128-bit keys supported for now */ 371 struct ikev2_keys *keys, int initiator, in ikev2_derive_auth_data() 380 const u8 *SK_p = initiator ? keys->SK_pi : keys->SK_pr; in ikev2_derive_auth_data() 394 if (ikev2_prf_hash(prf->id, SK_p, keys->SK_prf_len, in ikev2_derive_auth_data() 429 struct ikev2_keys *keys, int initiator, in ikev2_decrypt_payload() 440 const u8 *SK_e = initiator ? keys->SK_ei : keys->SK_er; in ikev2_decrypt_payload() 441 const u8 *SK_a = initiator ? keys->SK_ai : keys in ikev2_decrypt_payload() 369 ikev2_derive_auth_data(int prf_alg, const struct wpabuf *sign_msg, const u8 *ID, size_t ID_len, u8 ID_type, struct ikev2_keys *keys, int initiator, const u8 *shared_secret, size_t shared_secret_len, const u8 *nonce, size_t nonce_len, const u8 *key_pad, size_t key_pad_len, u8 *auth_data) ikev2_derive_auth_data() argument 428 ikev2_decrypt_payload(int encr_id, int integ_id, struct ikev2_keys *keys, int initiator, const struct ikev2_hdr *hdr, const u8 *encrypted, size_t encrypted_len, size_t *res_len) ikev2_decrypt_payload() argument 530 ikev2_build_encrypted(int encr_id, int integ_id, struct ikev2_keys *keys, int initiator, struct wpabuf *msg, struct wpabuf *plain, u8 next_payload) ikev2_build_encrypted() argument 608 ikev2_keys_set(struct ikev2_keys *keys) ikev2_keys_set() argument 615 ikev2_free_keys(struct ikev2_keys *keys) ikev2_free_keys() argument 629 ikev2_derive_sk_keys(const struct ikev2_prf_alg *prf, const struct ikev2_integ_alg *integ, const struct ikev2_encr_alg *encr, const u8 *skeyseed, const u8 *data, size_t data_len, struct ikev2_keys *keys) ikev2_derive_sk_keys() argument [all...] |
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/ |
H A D | ikev2_common.c | 36 { ENCR_AES_CBC, 16, 16 }, /* only 128-bit keys supported for now */ 371 struct ikev2_keys *keys, int initiator, in ikev2_derive_auth_data() 380 const u8 *SK_p = initiator ? keys->SK_pi : keys->SK_pr; in ikev2_derive_auth_data() 394 if (ikev2_prf_hash(prf->id, SK_p, keys->SK_prf_len, in ikev2_derive_auth_data() 429 struct ikev2_keys *keys, int initiator, in ikev2_decrypt_payload() 440 const u8 *SK_e = initiator ? keys->SK_ei : keys->SK_er; in ikev2_decrypt_payload() 441 const u8 *SK_a = initiator ? keys->SK_ai : keys in ikev2_decrypt_payload() 369 ikev2_derive_auth_data(int prf_alg, const struct wpabuf *sign_msg, const u8 *ID, size_t ID_len, u8 ID_type, struct ikev2_keys *keys, int initiator, const u8 *shared_secret, size_t shared_secret_len, const u8 *nonce, size_t nonce_len, const u8 *key_pad, size_t key_pad_len, u8 *auth_data) ikev2_derive_auth_data() argument 428 ikev2_decrypt_payload(int encr_id, int integ_id, struct ikev2_keys *keys, int initiator, const struct ikev2_hdr *hdr, const u8 *encrypted, size_t encrypted_len, size_t *res_len) ikev2_decrypt_payload() argument 530 ikev2_build_encrypted(int encr_id, int integ_id, struct ikev2_keys *keys, int initiator, struct wpabuf *msg, struct wpabuf *plain, u8 next_payload) ikev2_build_encrypted() argument 608 ikev2_keys_set(struct ikev2_keys *keys) ikev2_keys_set() argument 615 ikev2_free_keys(struct ikev2_keys *keys) ikev2_free_keys() argument 629 ikev2_derive_sk_keys(const struct ikev2_prf_alg *prf, const struct ikev2_integ_alg *integ, const struct ikev2_encr_alg *encr, const u8 *skeyseed, const u8 *data, size_t data_len, struct ikev2_keys *keys) ikev2_derive_sk_keys() argument [all...] |
/third_party/typescript/tests/baselines/reference/ |
H A D | inferStringLiteralUnionForBindingElement.js | 2 declare function func<T extends string>(arg: { keys: T[] }): { readonly keys: T[]; readonly firstKey: T; }; 5 const { firstKey } = func({keys: ["aa", "bb"]}) 8 const { keys } = func({keys: ["aa", "bb"]}) 9 const b: ("aa" | "bb")[] = keys; 13 const { keys, firstKey } = func({keys: ["aa", "bb"]}) 15 const b: ("aa" | "bb")[] = keys; 19 const x = func({keys [all...] |
/third_party/jerryscript/tests/jerry/es2015/ |
H A D | reflect-own-keys.js | 54 var keys = Reflect.ownKeys (obj); variable 55 assert (2 === keys.length); 56 assert ("a" === keys[0]); 57 assert ("b" === keys[1]); 60 var keys = Reflect.ownKeys (obj); variable 61 assert (2 === keys.length); 62 assert ("a" === keys[0]); 63 assert ("b" === keys[1]); 68 var keys = Reflect.ownKeys (obj) variable 69 assert (2 === keys 74 var keys = Reflect.ownKeys ([1, 2]); global() variable [all...] |
/foundation/filemanagement/app_file_service/utils/src/b_json/ |
H A D | b_report_entity.cpp | 67 static void ParseSplitsItem(const vector<string> &splits, const unordered_map<string, int> &keys, in ParseSplitsItem() argument 72 if (i <= splitsLen - keys.size()) { in ParseSplitsItem() 82 const unordered_map<string, int> &keys) in ParseReportInfo() 90 ParseSplitsItem(splits, keys, residue, path); in ParseReportInfo() 91 if (residue.size() != keys.size() - 1) { in ParseReportInfo() 95 if (keys.find(INFO_ENCODE_FLAG) != keys.end()) { in ParseReportInfo() 96 fileStat.encodeFlag = residue[keys.find(INFO_ENCODE_FLAG)->second] == "1" ? true : false; in ParseReportInfo() 102 if (keys.find(INFO_MODE) != keys in ParseReportInfo() 80 ParseReportInfo(struct ReportFileInfo &fileStat, const vector<string> &splits, const unordered_map<string, int> &keys) ParseReportInfo() argument 133 DealLine(unordered_map<string, int> &keys, int &num, const string &line, unordered_map<string, struct ReportFileInfo> &infos) DealLine() argument 166 StorageDealLine(unordered_map<string, int> &keys, int &num, const string &line) StorageDealLine() argument 204 unordered_map<string, int> keys; GetReportInfos() local 231 static unordered_map<string, int> keys; GetStorageReportInfos() local [all...] |
/foundation/filemanagement/app_file_service/tests/unittests/backup_utils/b_json/ |
H A D | b_report_entity_test.cpp | 162 unordered_map<string, int> keys;
in HWTEST_F() local 163 auto err = ParseReportInfo(fileStat, splits, keys);
in HWTEST_F() 168 keys.emplace(INFO_MODE, 0);
in HWTEST_F() 169 keys.emplace(INFO_DIR, 1);
in HWTEST_F() 170 keys.emplace(INFO_SIZE, 2);
in HWTEST_F() 171 keys.emplace(INFO_MTIME, 3);
in HWTEST_F() 172 keys.emplace(INFO_HASH, 4);
in HWTEST_F() 173 keys.emplace(INFO_IS_INCREMENTAL, 5);
in HWTEST_F() 174 err = ParseReportInfo(fileStat, splits, keys);
in HWTEST_F() 179 keys in HWTEST_F() 207 unordered_map<string, int> keys; HWTEST_F() local 249 unordered_map<string, int> keys; HWTEST_F() local 274 unordered_map<string, int> keys; HWTEST_F() local 298 unordered_map<string, int> keys; HWTEST_F() local 322 unordered_map<string, int> keys; HWTEST_F() local 346 unordered_map<string, int> keys; HWTEST_F() local 385 unordered_map<string, int> keys; HWTEST_F() local [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | asfcrypt.c | 50 * @brief read keys from keybuf into keys 51 * @param keybuf buffer containing the keys 52 * @param keys output key array containing the keys for encryption in 55 static void multiswap_init(const uint8_t keybuf[48], uint32_t keys[12]) in multiswap_init() argument 59 keys[i] = AV_RL32(keybuf + (i << 2)) | 1; in multiswap_init() 63 * @brief invert the keys so that encryption become decryption keys and 65 * @param keys ke 67 multiswap_invert_keys(uint32_t keys[12]) multiswap_invert_keys() argument 76 multiswap_step(const uint32_t keys[12], uint32_t v) multiswap_step() argument 88 multiswap_inv_step(const uint32_t keys[12], uint32_t v) multiswap_inv_step() argument 108 multiswap_enc(const uint32_t keys[12], uint64_t key, uint64_t data) multiswap_enc() argument 132 multiswap_dec(const uint32_t keys[12], uint64_t key, uint64_t data) multiswap_dec() argument [all...] |
/third_party/ltp/pan/ |
H A D | tag_report.c | 109 int cuts_report(SYM tags, SYM keys, char *at, char *tag) in cuts_report() argument 187 (char *)Data.data, keys); in cuts_report() 193 test_result(tag, "*", "*", result, keys); in cuts_report() 196 test_result(tag, "-", "-", "TC count wrong", keys); in cuts_report() 211 * I could get a key (tag), get it's sub-keys (TCIDs), then get the key 225 int tag_report(SYM alltags, SYM ctag, SYM keys) in tag_report() argument 239 if ((tag = (char *)sym_get(keys, key_get)) == NULL) { in tag_report() 245 if ((is = (char *)sym_get(keys, key_get)) == NULL) { in tag_report() 246 test_result(tag, NULL, NULL, "no init status", keys); in tag_report() 251 test_result(tag, NULL, NULL, is, keys); in tag_report() 418 cuts_testcase(SYM tag, SYM keys) cuts_testcase() argument [all...] |
/third_party/node/deps/npm/node_modules/@tufjs/models/dist/ |
H A D | root.js | 16 * The top-level role and metadata file signed by the root keys. 17 * This role specifies trusted keys for all other top-level roles, which may further delegate trust. 23 this.keys = options.keys || {}; 32 const roleNames = new Set(Object.keys(options.roles)); 46 this.keys[key.keyID] = key; 54 util_1.default.isDeepStrictEqual(this.keys, other.keys) && 63 keys: keysToJSON(this.keys), [all...] |
H A D | delegations.js | 20 this.keys = options.keys; 23 if (Object.keys(options.roles).some((roleName) => role_1.TOP_LEVEL_ROLE_NAMES.includes(roleName))) { 34 return (util_1.default.isDeepStrictEqual(this.keys, other.keys) && 56 keys: keysToJSON(this.keys), 68 const { keys, roles, succinct_roles, ...unrecognizedFields } = data; 74 keys: keysFromJSON(keys), [all...] |
/third_party/skia/experimental/tools/ |
H A D | get_examples.py | 52 keys = parse_fiddle_sk(match.group(1)) 55 width = keys.get('width', '256') 56 height = keys.get('height', '256') 57 source_image = keys.get('source', 256) 58 duration = keys.get('duration', '0') 59 textonly = 'textonly' in keys 60 srgb = not textonly and 'srgb' in keys 61 f16 = srgb and 'f16' in keys 62 offscreen = 'offscreen' in keys 82 keys [all...] |
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/table/ |
H A D | RangeKeyTest.java | 35 ImmutableList<RangeKey> keys = RangeKey.decompose(RangeTree.empty()); in testEmpty() 36 assertThat(keys).isEmpty(); in testEmpty() 41 ImmutableList<RangeKey> keys = RangeKey.decompose(RangeTree.from(RangeSpecification.empty())); in testZeroLengthMatch() 42 assertThat(keys).containsExactly(key("", 0)); in testZeroLengthMatch() 47 ImmutableList<RangeKey> keys = RangeKey.decompose(ranges("xxx", "xxxx", "xxxxx")); in testOnlyAnyPath() 48 assertThat(keys).containsExactly(key("", 3, 4, 5)); in testOnlyAnyPath() 53 ImmutableList<RangeKey> keys = RangeKey.decompose(ranges("123xxx", "123xxxx", "123xxxxx")); in testSimple() 54 assertThat(keys).containsExactly(key("123", 6, 7, 8)); in testSimple() 59 ImmutableList<RangeKey> keys = in testEmbeddedRanges() 61 assertThat(keys) in testEmbeddedRanges() [all...] |
/third_party/libwebsockets/plugins/ssh-base/crypto/ |
H A D | chacha.c | 238 lws_chacha_activate(struct lws_ssh_keys *keys) in lws_chacha_activate() argument 240 if (keys->cipher) { in lws_chacha_activate() 241 free(keys->cipher); in lws_chacha_activate() 242 keys->cipher = NULL; in lws_chacha_activate() 245 keys->cipher = malloc(sizeof(struct lws_cipher_chacha)); in lws_chacha_activate() 246 if (!keys->cipher) in lws_chacha_activate() 249 memset(keys->cipher, 0, sizeof(struct lws_cipher_chacha)); in lws_chacha_activate() 251 /* uses 2 x 256-bit keys, so 512 bits (64 bytes) needed */ in lws_chacha_activate() 252 chacha_keysetup(K_2(keys), keys in lws_chacha_activate() 264 lws_chacha_destroy(struct lws_ssh_keys *keys) lws_chacha_destroy() argument 273 lws_chachapoly_get_length(struct lws_ssh_keys *keys, uint32_t seq, const uint8_t *in4) lws_chachapoly_get_length() argument 302 chachapoly_crypt(struct lws_ssh_keys *keys, u_int seqnr, u_char *dest, const u_char *src, u_int len, u_int aadlen, u_int authlen, int do_encrypt) chachapoly_crypt() argument 355 lws_chacha_decrypt(struct lws_ssh_keys *keys, uint32_t seq, const uint8_t *ct, uint32_t len, uint8_t *pt) lws_chacha_decrypt() argument 363 lws_chacha_encrypt(struct lws_ssh_keys *keys, uint32_t seq, const uint8_t *ct, uint32_t len, uint8_t *pt) lws_chacha_encrypt() argument [all...] |
/foundation/distributeddatamgr/kv_store/test/fuzztest/singlekvstore_fuzzer/ |
H A D | singlekvstore_fuzzer.cpp | 104 std::vector<Key> keys; in PutBatchFuzz() local 117 keys.push_back(entry1.key); in PutBatchFuzz() 118 keys.push_back(entry2.key); in PutBatchFuzz() 119 keys.push_back(entry3.key); in PutBatchFuzz() 121 singleKvStore_->DeleteBatch(keys); in PutBatchFuzz() 139 std::string keys = "test_"; in GetEntriesFuzz1() local 143 singleKvStore_->Put(prefix + keys + std::to_string(i), { keys + std::to_string(i) }); in GetEntriesFuzz1() 147 singleKvStore_->Delete(prefix + keys + std::to_string(i)); in GetEntriesFuzz1() 156 std::string keys in GetEntriesFuzz2() local 173 std::string keys = "test_"; SubscribeKvStoreFuzz() local 194 std::string keys = "test_"; SyncCallbackFuzz() local 212 std::string keys = "test_"; GetResultSetFuzz1() local 237 std::string keys = "test_"; GetResultSetFuzz2() local 255 std::string keys = "test_"; GetResultSetFuzz3() local 305 std::string keys = "test_"; GetCountFuzz1() local 320 std::vector<std::string> keys; GetCountFuzz2() local 363 std::vector<std::string> keys; GetSecurityLevelFuzz() local 415 std::vector<std::string> keys; SyncParamFuzz() local 439 std::vector<std::string> keys; SetCapabilityEnabledFuzz() local 501 std::string keys = "test_"; AsyncGetEntriesFuzz() local [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/service/waterversion/ |
H A D | water_version_manager.cpp | 125 for (auto &key : meta.keys) { in GetWaterVersion() 186 for (size_t i = 0; i < metaData.keys.size(); ++i) { in InitMeta() 187 auto key = metaData.keys[i]; in InitMeta() 211 if (meta.version != metaData.version || meta.keys != metaData.keys) { in InitMeta() 212 meta = Upgrade(metaData.keys, meta); in InitMeta() 225 for (size_t i = 0; i < metaData.keys.size(); ++i) { in UpdateWaterVersion() 226 for (size_t j = 0; j < metaData.keys.size(); ++j) { in UpdateWaterVersion() 231 if (j == metaData.keys.size() - 1 && metaData.infos[i][i] > consistentVersion) { in UpdateWaterVersion() 271 WaterVersionMetaData WaterVersionManager::Upgrade(const std::vector<std::string> &keys, in Upgrade() argument [all...] |
/third_party/mesa3d/src/panfrost/bifrost/ |
H A D | gen_disasm.py | 56 options = [n for n in instructions.keys() if (n[0] == '*') == is_fma] 131 keys = set() 134 keys |= find_context_keys_expr(test) 139 keys |= find_context_keys_expr(val) 141 return keys 152 def compile_derived_inner(expr, keys): 158 args = [compile_derived_inner(arg, keys) for arg in expr[1:]] 165 return "ctx[{}]".format(keys.index(expr)) 167 def compile_derived(expr, keys): 168 return eval('lambda ctx, ordering: ' + compile_derived_inner(expr, keys)) [all...] |
/third_party/rust/crates/clap/src/util/ |
H A D | flat_map.rs | 10 keys: Vec<K>, 20 for (index, existing) in self.keys.iter().enumerate() { 32 self.keys.push(key); 47 for existing in &self.keys { in contains_key() 69 .keys in remove_entry() 73 let key = self.keys.remove(index); in remove_entry() 79 self.keys.is_empty() 83 for (index, existing) in self.keys.iter().enumerate() { in entry() 96 for (index, existing) in self.keys.iter().enumerate() { in get() 109 for (index, existing) in self.keys in get_mut() 117 pub fn keys(&self) -> std::slice::Iter<'_, K> { keys() functions [all...] |
/foundation/distributeddatamgr/kv_store/test/fuzztest/devicekvstore_fuzzer/ |
H A D | devicekvstore_fuzzer.cpp | 102 std::vector<Key> keys; in PutBatchFuzz() local 115 keys.push_back(entry1.key); in PutBatchFuzz() 116 keys.push_back(entry2.key); in PutBatchFuzz() 117 keys.push_back(entry3.key); in PutBatchFuzz() 119 deviceKvStore_->DeleteBatch(keys); in PutBatchFuzz() 137 std::string keys = "test_"; in GetEntriesFuzz1() local 141 deviceKvStore_->Put(prefix + keys + std::to_string(i), { keys + std::to_string(i) }); in GetEntriesFuzz1() 145 deviceKvStore_->Delete(prefix + keys + std::to_string(i)); in GetEntriesFuzz1() 154 std::string keys in GetEntriesFuzz2() local 174 std::string keys = "test_"; SyncCallbackFuzz() local 192 std::string keys = "test_"; GetResultSetFuzz1() local 217 std::string keys = "test_"; GetResultSetFuzz2() local 235 std::string keys = "test_"; GetResultSetFuzz3() local 286 std::string keys = "test_"; GetCountFuzz1() local 301 std::vector<std::string> keys; GetCountFuzz2() local 356 std::string keys = "test_"; SubscribeKvStoreFuzz() local 395 std::vector<std::string> keys; GetSecurityLevelFuzz() local 414 std::vector<std::string> keys; SyncParamFuzz() local 438 std::vector<std::string> keys; SetCapabilityEnabledFuzz() local [all...] |
/foundation/distributeddatamgr/data_share/frameworks/js/napi/observer/src/ |
H A D | napi_subscriber_manager.cpp | 31 std::vector<Key> keys; in AddObservers() local 32 std::for_each(uris.begin(), uris.end(), [&keys, &templateId](auto &uri) { in AddObservers() 33 keys.emplace_back(uri, templateId); in AddObservers() 36 keys, std::make_shared<Observer>(env, callback), in AddObservers() 75 std::vector<Key> keys; in DelObservers() local 76 std::for_each(uris.begin(), uris.end(), [&keys, &templateId](auto &uri) { in DelObservers() 77 keys.emplace_back(uri, templateId); in DelObservers() 79 return BaseCallbacks::DelObservers(keys, callback == nullptr ? nullptr : std::make_shared<Observer>(env, callback), in DelObservers() 107 void NapiRdbSubscriberManager::Emit(const std::vector<Key> &keys, const std::shared_ptr<Observer> &observer) in Emit() argument 109 for (auto const &key : keys) { in Emit() 126 std::vector<Key> keys; AddObservers() local [all...] |
/third_party/jerryscript/tests/jerry-test-suite/15/15.02/15.02.03/ |
H A D | 15.02.03-004.js | 22 var keys = Object.keys(object); 24 assert(keys[0] == "prop1" && 25 keys[1] == "prop2" && 26 keys[2] == "prop3" && 27 keys[3] == "prop4");
|
/third_party/skia/src/core/ |
H A D | SkScalar.cpp | 12 SkScalar SkScalarInterpFunc(SkScalar searchKey, const SkScalar keys[], in SkScalarInterpFunc() argument 15 SkASSERT(keys != nullptr); in SkScalarInterpFunc() 19 SkASSERT(keys[i-1] <= keys[i]); in SkScalarInterpFunc() 23 while (right < length && keys[right] < searchKey) { in SkScalarInterpFunc() 35 SkScalar leftKey = keys[right-1]; in SkScalarInterpFunc() 36 SkScalar rightKey = keys[right]; in SkScalarInterpFunc()
|
/foundation/communication/dsoftbus/core/adapter/kv_store/src/ |
H A D | lnn_kv_data_change_listener.cpp | 46 void KvDataChangeListener::OnChange(const DistributedKv::DataOrigin &origin, Keys &&keys) in OnChange() argument 48 auto autoSyncTask = [this, origin, keys]() { in OnChange() 50 origin.store.c_str(), keys[ChangeOp::OP_UPDATE].size(), keys[ChangeOp::OP_INSERT].size()); in OnChange() 52 changeKeys.insert(changeKeys.end(), keys[ChangeOp::OP_INSERT].begin(), keys[ChangeOp::OP_INSERT].end()); in OnChange() 53 changeKeys.insert(changeKeys.end(), keys[ChangeOp::OP_UPDATE].begin(), keys[ChangeOp::OP_UPDATE].end()); in OnChange() 67 const std::vector<std::string> &keys) in ConvertCloudChangeDataToEntries() 74 if (keys in ConvertCloudChangeDataToEntries() 66 ConvertCloudChangeDataToEntries( const std::vector<std::string> &keys) ConvertCloudChangeDataToEntries() argument [all...] |