/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...] |
/kernel/linux/linux-5.10/drivers/input/keyboard/ |
H A D | ipaq-micro-keys.c | 43 struct ipaq_micro_keys *keys = data; in micro_key_receive() local 50 input_report_key(keys->input, keys->codes[key], down); in micro_key_receive() 51 input_sync(keys->input); in micro_key_receive() 55 static void micro_key_start(struct ipaq_micro_keys *keys) in micro_key_start() argument 57 spin_lock(&keys->micro->lock); in micro_key_start() 58 keys->micro->key = micro_key_receive; in micro_key_start() 59 keys->micro->key_data = keys; in micro_key_start() 60 spin_unlock(&keys in micro_key_start() 63 micro_key_stop(struct ipaq_micro_keys *keys) micro_key_stop() argument 73 struct ipaq_micro_keys *keys = input_get_drvdata(input); micro_key_open() local 82 struct ipaq_micro_keys *keys = input_get_drvdata(input); micro_key_close() local 89 struct ipaq_micro_keys *keys; micro_key_probe() local 132 struct ipaq_micro_keys *keys = dev_get_drvdata(dev); micro_key_suspend() local 141 struct ipaq_micro_keys *keys = dev_get_drvdata(dev); micro_key_resume() local [all...] |
H A D | mtk-pmic-keys.c | 78 struct mtk_pmic_keys *keys; member 89 struct mtk_pmic_keys_info keys[MTK_PMIC_MAX_KEY_COUNT]; member 98 static void mtk_pmic_keys_lp_reset_setup(struct mtk_pmic_keys *keys, in mtk_pmic_keys_lp_reset_setup() argument 104 ret = of_property_read_u32(keys->dev->of_node, in mtk_pmic_keys_lp_reset_setup() 109 regmap_update_bits(keys->regmap, pmic_rst_reg, in mtk_pmic_keys_lp_reset_setup() 113 ret = of_property_read_u32(keys->dev->of_node, in mtk_pmic_keys_lp_reset_setup() 120 regmap_update_bits(keys->regmap, pmic_rst_reg, in mtk_pmic_keys_lp_reset_setup() 123 regmap_update_bits(keys->regmap, pmic_rst_reg, in mtk_pmic_keys_lp_reset_setup() 128 regmap_update_bits(keys->regmap, pmic_rst_reg, in mtk_pmic_keys_lp_reset_setup() 131 regmap_update_bits(keys in mtk_pmic_keys_lp_reset_setup() 168 mtk_pmic_key_setup(struct mtk_pmic_keys *keys, struct mtk_pmic_keys_info *info) mtk_pmic_key_setup() argument 198 struct mtk_pmic_keys *keys = dev_get_drvdata(dev); mtk_pmic_keys_suspend() local 211 struct mtk_pmic_keys *keys = dev_get_drvdata(dev); mtk_pmic_keys_resume() local 244 struct mtk_pmic_keys *keys; mtk_pmic_keys_probe() local [all...] |
/kernel/linux/linux-6.6/drivers/input/keyboard/ |
H A D | ipaq-micro-keys.c | 43 struct ipaq_micro_keys *keys = data; in micro_key_receive() local 50 input_report_key(keys->input, keys->codes[key], down); in micro_key_receive() 51 input_sync(keys->input); in micro_key_receive() 55 static void micro_key_start(struct ipaq_micro_keys *keys) in micro_key_start() argument 57 spin_lock(&keys->micro->lock); in micro_key_start() 58 keys->micro->key = micro_key_receive; in micro_key_start() 59 keys->micro->key_data = keys; in micro_key_start() 60 spin_unlock(&keys in micro_key_start() 63 micro_key_stop(struct ipaq_micro_keys *keys) micro_key_stop() argument 73 struct ipaq_micro_keys *keys = input_get_drvdata(input); micro_key_open() local 82 struct ipaq_micro_keys *keys = input_get_drvdata(input); micro_key_close() local 89 struct ipaq_micro_keys *keys; micro_key_probe() local 132 struct ipaq_micro_keys *keys = dev_get_drvdata(dev); micro_key_suspend() local 141 struct ipaq_micro_keys *keys = dev_get_drvdata(dev); micro_key_resume() local [all...] |
H A D | mtk-pmic-keys.c | 121 struct mtk_pmic_keys *keys; member 133 struct mtk_pmic_keys_info keys[MTK_PMIC_MAX_KEY_COUNT]; member 142 static void mtk_pmic_keys_lp_reset_setup(struct mtk_pmic_keys *keys, in mtk_pmic_keys_lp_reset_setup() argument 150 kregs_home = keys->keys[MTK_PMIC_HOMEKEY_INDEX].regs; in mtk_pmic_keys_lp_reset_setup() 151 kregs_pwr = keys->keys[MTK_PMIC_PWRKEY_INDEX].regs; in mtk_pmic_keys_lp_reset_setup() 153 error = of_property_read_u32(keys->dev->of_node, "power-off-time-sec", in mtk_pmic_keys_lp_reset_setup() 161 error = of_property_read_u32(keys->dev->of_node, in mtk_pmic_keys_lp_reset_setup() 185 regmap_update_bits(keys in mtk_pmic_keys_lp_reset_setup() 208 mtk_pmic_key_setup(struct mtk_pmic_keys *keys, struct mtk_pmic_keys_info *info) mtk_pmic_key_setup() argument 250 struct mtk_pmic_keys *keys = dev_get_drvdata(dev); mtk_pmic_keys_suspend() local 266 struct mtk_pmic_keys *keys = dev_get_drvdata(dev); mtk_pmic_keys_resume() local 313 struct mtk_pmic_keys *keys; mtk_pmic_keys_probe() local [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...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A D | bpf_flow.c | 75 static __always_inline int export_flow_keys(struct bpf_flow_keys *keys, in export_flow_keys() argument 78 __u32 key = (__u32)(keys->sport) << 16 | keys->dport; in export_flow_keys() 81 memcpy(&val, keys, sizeof(val)); in export_flow_keys() 118 struct bpf_flow_keys *keys = skb->flow_keys; in parse_eth_proto() local 137 return export_flow_keys(keys, BPF_DROP); in parse_eth_proto() 140 return export_flow_keys(keys, BPF_DROP); in parse_eth_proto() 146 struct bpf_flow_keys *keys = skb->flow_keys; in _dissect() local 148 if (keys->n_proto == bpf_htons(ETH_P_IP)) { in _dissect() 161 return parse_eth_proto(skb, keys in _dissect() 167 struct bpf_flow_keys *keys = skb->flow_keys; parse_ip_proto() local 258 struct bpf_flow_keys *keys = skb->flow_keys; parse_ipv6_proto() local 278 struct bpf_flow_keys *keys = skb->flow_keys; IP() local 326 struct bpf_flow_keys *keys = skb->flow_keys; IPV6() local 348 struct bpf_flow_keys *keys = skb->flow_keys; IPV6OP() local 366 struct bpf_flow_keys *keys = skb->flow_keys; IPV6FR() local 394 struct bpf_flow_keys *keys = skb->flow_keys; MPLS() local 406 struct bpf_flow_keys *keys = skb->flow_keys; VLAN() local [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A D | bpf_flow.c | 74 static __always_inline int export_flow_keys(struct bpf_flow_keys *keys, in export_flow_keys() argument 77 __u32 key = (__u32)(keys->sport) << 16 | keys->dport; in export_flow_keys() 80 memcpy(&val, keys, sizeof(val)); in export_flow_keys() 117 struct bpf_flow_keys *keys = skb->flow_keys; in parse_eth_proto() local 136 return export_flow_keys(keys, BPF_DROP); in parse_eth_proto() 139 return export_flow_keys(keys, BPF_DROP); in parse_eth_proto() 145 struct bpf_flow_keys *keys = skb->flow_keys; in _dissect() local 147 return parse_eth_proto(skb, keys->n_proto); in _dissect() 153 struct bpf_flow_keys *keys in parse_ip_proto() local 244 struct bpf_flow_keys *keys = skb->flow_keys; parse_ipv6_proto() local 264 struct bpf_flow_keys *keys = skb->flow_keys; IP() local 312 struct bpf_flow_keys *keys = skb->flow_keys; IPV6() local 334 struct bpf_flow_keys *keys = skb->flow_keys; IPV6OP() local 352 struct bpf_flow_keys *keys = skb->flow_keys; IPV6FR() local 378 struct bpf_flow_keys *keys = skb->flow_keys; MPLS() local 390 struct bpf_flow_keys *keys = skb->flow_keys; VLAN() 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...] |
/kernel/linux/linux-6.6/arch/arm64/include/asm/ |
H A D | pointer_auth.h | 33 * We give each process its own keys, which are shared by all threads. The keys 57 static __always_inline void ptrauth_keys_init_kernel(struct ptrauth_keys_kernel *keys) in ptrauth_keys_init_kernel() argument 60 get_random_bytes(&keys->apia, sizeof(keys->apia)); in ptrauth_keys_init_kernel() 63 static __always_inline void ptrauth_keys_switch_kernel(struct ptrauth_keys_kernel *keys) in ptrauth_keys_switch_kernel() argument 68 __ptrauth_key_install_nosync(APIA, keys->apia); in ptrauth_keys_switch_kernel() 74 static inline void ptrauth_keys_install_user(struct ptrauth_keys_user *keys) in ptrauth_keys_install_user() argument 77 __ptrauth_key_install_nosync(APIB, keys->apib); in ptrauth_keys_install_user() 78 __ptrauth_key_install_nosync(APDA, keys in ptrauth_keys_install_user() 86 ptrauth_keys_init_user(struct ptrauth_keys_user *keys) ptrauth_keys_init_user() argument [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...] |
/kernel/linux/linux-5.10/tools/testing/selftests/net/ |
H A D | tcp_fastopen_backup_key.c | 5 * New keys are 'rotated' in two steps: 7 * 2) Make new key the primary by swapping the backup and primary keys 51 static void get_keys(int fd, uint32_t *keys) in get_keys() argument 57 if (getsockopt(fd, SOL_TCP, TCP_FASTOPEN_KEY, keys, &len)) in get_keys() 64 if (sscanf(buf, "%x-%x-%x-%x,%x-%x-%x-%x", keys, keys + 1, keys + 2, in get_keys() 65 keys + 3, keys + 4, keys in get_keys() 69 set_keys(int fd, uint32_t *keys) set_keys() argument 98 uint32_t keys[8]; build_rcv_fd() local 217 uint32_t keys[8]; rotate_key() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/net/ |
H A D | tcp_fastopen_backup_key.c | 5 * New keys are 'rotated' in two steps: 7 * 2) Make new key the primary by swapping the backup and primary keys 49 static void get_keys(int fd, uint32_t *keys) in get_keys() argument 55 if (getsockopt(fd, SOL_TCP, TCP_FASTOPEN_KEY, keys, &len)) in get_keys() 62 if (sscanf(buf, "%x-%x-%x-%x,%x-%x-%x-%x", keys, keys + 1, keys + 2, in get_keys() 63 keys + 3, keys + 4, keys in get_keys() 67 set_keys(int fd, uint32_t *keys) set_keys() argument 96 uint32_t keys[8]; build_rcv_fd() local 215 uint32_t keys[8]; rotate_key() local [all...] |
/kernel/linux/linux-5.10/arch/arm64/include/asm/ |
H A D | pointer_auth.h | 22 * We give each process its own keys, which are shared by all threads. The keys 37 static inline void ptrauth_keys_init_user(struct ptrauth_keys_user *keys) in ptrauth_keys_init_user() argument 40 get_random_bytes(&keys->apia, sizeof(keys->apia)); in ptrauth_keys_init_user() 41 get_random_bytes(&keys->apib, sizeof(keys->apib)); in ptrauth_keys_init_user() 42 get_random_bytes(&keys->apda, sizeof(keys->apda)); in ptrauth_keys_init_user() 43 get_random_bytes(&keys in ptrauth_keys_init_user() 57 ptrauth_keys_init_kernel(struct ptrauth_keys_kernel *keys) ptrauth_keys_init_kernel() argument 63 ptrauth_keys_switch_kernel(struct ptrauth_keys_kernel *keys) ptrauth_keys_switch_kernel() argument [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...] |
/kernel/linux/linux-6.6/arch/arm64/kernel/ |
H A D | pointer_auth.c | 13 struct ptrauth_keys_user *keys = &tsk->thread.keys_user; in ptrauth_prctl_reset_keys() local 25 ptrauth_keys_init_user(keys); in ptrauth_prctl_reset_keys() 37 get_random_bytes(&keys->apia, sizeof(keys->apia)); in ptrauth_prctl_reset_keys() 39 get_random_bytes(&keys->apib, sizeof(keys->apib)); in ptrauth_prctl_reset_keys() 41 get_random_bytes(&keys->apda, sizeof(keys->apda)); in ptrauth_prctl_reset_keys() 43 get_random_bytes(&keys->apdb, sizeof(keys in ptrauth_prctl_reset_keys() 67 ptrauth_set_enabled_keys(struct task_struct *tsk, unsigned long keys, unsigned long enabled) ptrauth_set_enabled_keys() argument [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/map_tests/ |
H A D | array_map_batch_ops.c | 12 static void map_batch_update(int map_fd, __u32 max_entries, int *keys, in map_batch_update() argument 22 keys[i] = i; in map_batch_update() 26 err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &opts); in map_batch_update() 31 int *keys, int *values) in map_batch_verify() 37 CHECK(keys[i] + 1 != values[i], "key/value checking", in map_batch_verify() 38 "error: i %d key %d value %d\n", i, keys[i], values[i]); in map_batch_verify() 43 "error: keys array at index %d missing\n", i); in map_batch_verify() 55 int map_fd, *keys, *values, *visited; in test_array_map_batch_ops() local 71 keys = malloc(max_entries * sizeof(int)); in test_array_map_batch_ops() 74 CHECK(!keys || !value in test_array_map_batch_ops() 30 map_batch_verify(int *visited, __u32 max_entries, int *keys, int *values) map_batch_verify() argument [all...] |
H A D | htab_map_batch_ops.c | 13 static void map_batch_update(int map_fd, __u32 max_entries, int *keys, in map_batch_update() argument 28 keys[i] = i + 1; in map_batch_update() 36 err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &opts); in map_batch_update() 41 int *keys, void *values, bool is_pcpu) in map_batch_verify() 55 CHECK(keys[i] + 1 + j != bpf_percpu(v[i], j), in map_batch_verify() 58 i, j, keys[i], bpf_percpu(v[i], j)); in map_batch_verify() 61 CHECK(keys[i] + 1 != ((int *)values)[i], in map_batch_verify() 63 "error: i %d key %d value %d\n", i, keys[i], in map_batch_verify() 72 "error: keys array at index %d missing\n", i); in map_batch_verify() 80 int map_fd, *keys, *visite in __test_map_lookup_and_delete_batch() local 40 map_batch_verify(int *visited, __u32 max_entries, int *keys, void *values, bool is_pcpu) map_batch_verify() argument [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/map_tests/ |
H A D | htab_map_batch_ops.c | 14 static void map_batch_update(int map_fd, __u32 max_entries, int *keys, in map_batch_update() argument 29 keys[i] = i + 1; in map_batch_update() 37 err = bpf_map_update_batch(map_fd, keys, values, &max_entries, &opts); in map_batch_update() 42 int *keys, void *values, bool is_pcpu) in map_batch_verify() 56 CHECK(keys[i] + 1 + j != bpf_percpu(v[i], j), in map_batch_verify() 59 i, j, keys[i], bpf_percpu(v[i], j)); in map_batch_verify() 62 CHECK(keys[i] + 1 != ((int *)values)[i], in map_batch_verify() 64 "error: i %d key %d value %d\n", i, keys[i], in map_batch_verify() 73 "error: keys array at index %d missing\n", i); in map_batch_verify() 81 int map_fd, *keys, *visite in __test_map_lookup_and_delete_batch() local 41 map_batch_verify(int *visited, __u32 max_entries, int *keys, void *values, bool is_pcpu) map_batch_verify() 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...] |