Home
last modified time | relevance | path

Searched refs:keys (Results 1 – 25 of 3235) sorted by relevance

12345678910>>...130

/third_party/python/Lib/test/
Dtest_dictviews.py10 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, 42)
30 self.assertIn(1, keys)
[all …]
/third_party/boost/libs/compute/test/
Dtest_radix_sort_by_key.cpp43 compute::vector<compute::int_> keys(keys_data, keys_data + 10, queue); in BOOST_AUTO_TEST_CASE() local
46 BOOST_CHECK(!compute::is_sorted(keys.begin(), keys.end(), queue)); in BOOST_AUTO_TEST_CASE()
47 compute::detail::radix_sort_by_key(keys.begin(), keys.end(), values.begin(), queue); in BOOST_AUTO_TEST_CASE()
48 BOOST_CHECK(compute::is_sorted(keys.begin(), keys.end(), queue)); in BOOST_AUTO_TEST_CASE()
51 compute::int_, 10, keys, in BOOST_AUTO_TEST_CASE()
72 compute::vector<compute::int_> keys(keys_data, keys_data + 10, queue); in BOOST_AUTO_TEST_CASE() local
77 keys.begin(), keys.end(), compute::greater<compute::int_>(), queue in BOOST_AUTO_TEST_CASE()
81 keys.begin(), keys.end(), values.begin(), descending, queue in BOOST_AUTO_TEST_CASE()
85 keys.begin(), keys.end(), compute::greater<compute::int_>(), queue in BOOST_AUTO_TEST_CASE()
90 compute::int_, 10, keys, in BOOST_AUTO_TEST_CASE()
[all …]
Dtest_stable_sort_by_key.cpp26 compute::vector<compute::int_> keys(size_t(0), compute::int_(0), queue); in BOOST_AUTO_TEST_CASE() local
29 BOOST_CHECK_EQUAL(keys.size(), size_t(0)); in BOOST_AUTO_TEST_CASE()
32 BOOST_CHECK(compute::is_sorted(keys.begin(), keys.end(), queue)); in BOOST_AUTO_TEST_CASE()
36 keys.begin(), keys.end(), values.begin(), queue in BOOST_AUTO_TEST_CASE()
39 BOOST_CHECK(compute::is_sorted(keys.begin(), keys.end())); in BOOST_AUTO_TEST_CASE()
48 compute::vector<compute::int_> keys(keys_data, keys_data + 1, queue); in BOOST_AUTO_TEST_CASE() local
51 BOOST_CHECK(compute::is_sorted(keys.begin(), keys.end(), queue)); in BOOST_AUTO_TEST_CASE()
54 compute::stable_sort_by_key(keys.begin(), keys.end(), values.begin(), queue); in BOOST_AUTO_TEST_CASE()
56 BOOST_CHECK(compute::is_sorted(keys.begin(), keys.end(), queue)); in BOOST_AUTO_TEST_CASE()
65 compute::vector<compute::int_> keys(keys_data, keys_data + 2, queue); in BOOST_AUTO_TEST_CASE() local
[all …]
Dtest_sort_by_key.cpp37 compute::vector<int> keys(context); in BOOST_AUTO_TEST_CASE() local
39 BOOST_CHECK_EQUAL(keys.size(), size_t(0)); in BOOST_AUTO_TEST_CASE()
41 BOOST_CHECK(compute::is_sorted(keys.begin(), keys.end()) == true); in BOOST_AUTO_TEST_CASE()
43 compute::sort_by_key(keys.begin(), keys.end(), values.begin(), queue); in BOOST_AUTO_TEST_CASE()
52 compute::vector<int> keys(keys_data, keys_data + 1, queue); in BOOST_AUTO_TEST_CASE() local
55 BOOST_CHECK(compute::is_sorted(keys.begin(), keys.end(), queue) == true); in BOOST_AUTO_TEST_CASE()
58 compute::sort_by_key(keys.begin(), keys.end(), values.begin(), queue); in BOOST_AUTO_TEST_CASE()
67 compute::vector<int> keys(keys_data, keys_data + 2, queue); in BOOST_AUTO_TEST_CASE() local
70 BOOST_CHECK(compute::is_sorted(keys.begin(), keys.end(), queue) == false); in BOOST_AUTO_TEST_CASE()
73 compute::sort_by_key(keys.begin(), keys.end(), values.begin(), queue); in BOOST_AUTO_TEST_CASE()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_common/
Dikev2_common.c371 struct ikev2_keys *keys, int initiator, in ikev2_derive_auth_data() argument
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() argument
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->SK_ar; in ikev2_decrypt_payload()
476 if (ikev2_integ_hash(integ_id, SK_a, keys->SK_integ_len, in ikev2_decrypt_payload()
499 if (ikev2_encr_decrypt(encr_alg->id, SK_e, keys->SK_encr_len, iv, pos, in ikev2_decrypt_payload()
530 int ikev2_build_encrypted(int encr_id, int integ_id, struct ikev2_keys *keys, in ikev2_build_encrypted() argument
540 const u8 *SK_e = initiator ? keys->SK_ei : keys->SK_er; in ikev2_build_encrypted()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_common/
Dikev2_common.c371 struct ikev2_keys *keys, int initiator, in ikev2_derive_auth_data() argument
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() argument
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->SK_ar; in ikev2_decrypt_payload()
476 if (ikev2_integ_hash(integ_id, SK_a, keys->SK_integ_len, in ikev2_decrypt_payload()
499 if (ikev2_encr_decrypt(encr_alg->id, SK_e, keys->SK_encr_len, iv, pos, in ikev2_decrypt_payload()
530 int ikev2_build_encrypted(int encr_id, int integ_id, struct ikev2_keys *keys, in ikev2_build_encrypted() argument
540 const u8 *SK_e = initiator ? keys->SK_ei : keys->SK_er; in ikev2_build_encrypted()
[all …]
/third_party/jerryscript/tests/jerry/es2015/
Dreflect-own-keys.js54 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);
61 assert (2 === keys.length);
62 assert ("a" === keys[0]);
63 assert ("b" === keys[1]);
68 var keys = Reflect.ownKeys (obj)
69 assert (2 === keys.length);
[all …]
/third_party/node/deps/npm/node_modules/object-keys/
DREADME.md1 #object-keys <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
13 An Object.keys shim. Invoke its "shim" method to shim Object.keys if it is unavailable.
17 var keys = Object.keys || require('object-keys');
23 var keys = require('object-keys');
31 assert.deepEqual(keys(obj), ['a', 'b', 'c']);
35 var keys = require('object-keys');
37 /* when Object.keys is not present */
38 delete Object.keys;
39 var shimmedKeys = keys.shim();
40 assert.equal(shimmedKeys, keys);
[all …]
/third_party/typescript/src/testRunner/unittests/
DcreateSetShim.ts37 … function testSetIterationAddedValues<K>(keys: K[], set: Set<K>, useForEach: boolean): string {
40 set.add(keys[0]);
41 set.add(keys[1]);
42 set.add(keys[2]);
43 set.add(keys[3]);
51 if (key === keys[0]) {
52 set.add(keys[0]);
53 set.add(keys[4]);
54 set.add(keys[3]);
56 else if (key === keys[1]) {
[all …]
DcreateMapShim.ts38 …function testMapIterationAddedValues<K>(keys: K[], map: ESMap<K, string>, useForEach: boolean): st…
41 map.set(keys[0], "1");
42 map.set(keys[1], "3");
43 map.set(keys[2], "2");
44 map.set(keys[3], "4");
52 if (key === keys[0]) {
53 map.set(keys[0], "X1");
54 map.set(keys[4], "X0");
55 map.set(keys[3], "X4");
57 else if (key === keys[1]) {
[all …]
/third_party/boost/libs/fusion/test/sequence/
Dadt_attribute_proxy.cpp61 namespace keys namespace
70 (Name&, Name const&, obj.get_name(), obj.template set_name<Val>(val), keys::name)
71 (Age&, Age const&, obj.get_age(), obj.template set_age<Val>(val), keys::age))
80 fusion::at_key<keys::name>(e)="marshall mathers"; in main()
81 fusion::at_key<keys::age>(e)=37; in main()
85 boost::fusion::result_of::value_at_key<et, keys::name>::type, in main()
90 boost::fusion::result_of::value_at_key<et, keys::name>::type, in main()
95 boost::fusion::result_of::value_at_key<et, keys::age>::type, in main()
100 boost::fusion::result_of::value_at_key<et, keys::age>::type, in main()
106 boost::fusion::result_of::at_key<et, keys::name>::type, in main()
[all …]
/third_party/ffmpeg/libavformat/
Dasfcrypt.c54 static void multiswap_init(const uint8_t keybuf[48], uint32_t keys[12]) in multiswap_init()
58 keys[i] = AV_RL32(keybuf + (i << 2)) | 1; in multiswap_init()
66 static void multiswap_invert_keys(uint32_t keys[12]) in multiswap_invert_keys()
70 keys[i] = inverse(keys[i]); in multiswap_invert_keys()
72 keys[i] = inverse(keys[i]); in multiswap_invert_keys()
75 static uint32_t multiswap_step(const uint32_t keys[12], uint32_t v) in multiswap_step()
78 v *= keys[0]; in multiswap_step()
81 v *= keys[i]; in multiswap_step()
83 v += keys[5]; in multiswap_step()
87 static uint32_t multiswap_inv_step(const uint32_t keys[12], uint32_t v) in multiswap_inv_step()
[all …]
/third_party/ltp/pan/
Dtag_report.c109 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()
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()
255 if ((info = (char *)sym_get(keys, key_get)) != NULL) in tag_report()
[all …]
Dscan.l72 SYM keys=NULL; /* stored keywords */ variable
108 if(keys != NULL)
109 sym_rm(keys, RM_KEY | RM_DATA);
111 keys = sym_open(0, 0, 0);
123 sym_dump_s(keys, 0);
131 sym_put(alltags, "_RTS", (void *)keys, PUT_REPLACE);
132 keys = NULL;
149 if(keys != NULL)
150 sym_rm(keys, RM_KEY | RM_DATA);
151 keys = sym_open(0, 0, 0);
[all …]
/third_party/node/test/parallel/
Dtest-whatwg-url-custom-searchparams-keys.js9 const keys = params.keys(); constant
11 assert.strictEqual(typeof keys[Symbol.iterator], 'function');
12 assert.strictEqual(keys[Symbol.iterator](), keys);
13 assert.deepStrictEqual(keys.next(), {
17 assert.deepStrictEqual(keys.next(), {
21 assert.deepStrictEqual(keys.next(), {
25 assert.deepStrictEqual(keys.next(), {
31 keys.next.call(undefined);
38 params.keys.call(undefined);
/third_party/grpc/src/core/ext/transport/chttp2/transport/
Dstream_map.cc31 map->keys = in grpc_chttp2_stream_map_init()
41 gpr_free(map->keys); in grpc_chttp2_stream_map_destroy()
45 static size_t compact(uint32_t* keys, void** values, size_t count) { in compact() argument
50 keys[out] = keys[i]; in compact()
63 uint32_t* keys = map->keys; in grpc_chttp2_stream_map_add() local
67 GPR_ASSERT(count == 0 || keys[count - 1] < key); in grpc_chttp2_stream_map_add()
80 count = compact(keys, values, count); in grpc_chttp2_stream_map_add()
86 map->keys = keys = static_cast<uint32_t*>( in grpc_chttp2_stream_map_add()
87 gpr_realloc(keys, capacity * sizeof(uint32_t))); in grpc_chttp2_stream_map_add()
93 keys[count] = key; in grpc_chttp2_stream_map_add()
[all …]
/third_party/libphonenumber/metadata/src/test/java/com/google/i18n/phonenumbers/metadata/table/
DRangeKeyTest.java35 ImmutableList<RangeKey> keys = RangeKey.decompose(RangeTree.empty()); in testEmpty() local
36 assertThat(keys).isEmpty(); in testEmpty()
41 ImmutableList<RangeKey> keys = RangeKey.decompose(RangeTree.from(RangeSpecification.empty())); in testZeroLengthMatch() local
42 assertThat(keys).containsExactly(key("", 0)); in testZeroLengthMatch()
47 ImmutableList<RangeKey> keys = RangeKey.decompose(ranges("xxx", "xxxx", "xxxxx")); in testOnlyAnyPath() local
48 assertThat(keys).containsExactly(key("", 3, 4, 5)); in testOnlyAnyPath()
53 ImmutableList<RangeKey> keys = RangeKey.decompose(ranges("123xxx", "123xxxx", "123xxxxx")); in testSimple() local
54 assertThat(keys).containsExactly(key("123", 6, 7, 8)); in testSimple()
59 ImmutableList<RangeKey> keys = in testEmbeddedRanges() local
61 assertThat(keys).containsExactly(key("1", 2, 3), key("1xx23", 5, 6, 7)).inOrder(); in testEmbeddedRanges()
[all …]
/third_party/skia/experimental/tools/
Dget_examples.py52 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.get('offscreen_width', '64'),
[all …]
/third_party/libwebsockets/plugins/ssh-base/crypto/
Dchacha.c238 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()
252 chacha_keysetup(K_2(keys), keys->key[SSH_KEYIDX_ENC], 256); in lws_chacha_activate()
253 chacha_keysetup(K_1(keys), &keys->key[SSH_KEYIDX_ENC][32], 256); in lws_chacha_activate()
255 keys->valid = 1; in lws_chacha_activate()
[all …]
/third_party/mesa3d/src/panfrost/bifrost/
Dgen_disasm.py56 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): argument
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): argument
168 return eval('lambda ctx, ordering: ' + compile_derived_inner(expr, keys))
[all …]
/third_party/python/Tools/scripts/
Dparse_html5_entities.py34 added = new.keys() - old.keys()
39 removed = old.keys() - new.keys()
45 for name in (old.keys() & new.keys()):
63 keys = sorted(entities.keys())
64 keys = sorted(keys, key=str.lower)
66 for name in keys:
/third_party/node/deps/npm/node_modules/yargs/lib/
Dusage.js116 Object.keys(key).forEach((k) => {
161 let keys = []
162 keys = keys.concat(Object.keys(descriptions))
163 keys = keys.concat(Object.keys(demandedOptions))
164 keys = keys.concat(Object.keys(demandedCommands))
165 keys = keys.concat(Object.keys(options.default))
166 keys = keys.filter(filterHiddenOptions)
167 keys = Object.keys(keys.reduce((acc, key) => {
240 const aliasKeys = (Object.keys(options.alias) || [])
241 .concat(Object.keys(yargs.parsed.newAliases) || [])
[all …]
/third_party/mbedtls/tests/scripts/
Dgenerate_tls13_compat_tests.py382 parser.add_argument('server', choices=SERVER_CLASSES.keys(), nargs='?',
383 default=list(SERVER_CLASSES.keys())[0],
385 parser.add_argument('client', choices=CLIENT_CLASSES.keys(), nargs='?',
386 default=list(CLIENT_CLASSES.keys())[0],
388 parser.add_argument('cipher', choices=CIPHER_SUITE_IANA_VALUE.keys(), nargs='?',
389 default=list(CIPHER_SUITE_IANA_VALUE.keys())[0],
391 parser.add_argument('sig_alg', choices=SIG_ALG_IANA_VALUE.keys(), nargs='?',
392 default=list(SIG_ALG_IANA_VALUE.keys())[0],
394 parser.add_argument('named_group', choices=NAMED_GROUP_IANA_VALUE.keys(), nargs='?',
395 default=list(NAMED_GROUP_IANA_VALUE.keys())[0],
[all …]
/third_party/flutter/skia/third_party/externals/icu/source/samples/legacy/
Dlegacy.cpp31 extern "C" void test_current(UChar data[][5], uint32_t size, uint32_t maxLen, uint8_t keys[][32]);
32 extern "C" void test_legacy(UChar data[][5], uint32_t size, uint32_t maxlen, uint8_t keys[][32]);
55 void printKeys(const char *comment, uint8_t keys[][32], int32_t keySize) { in printKeys()
60 currentKey = keys[i]; in printKeys()
94 static uint8_t keys[4][32]; in main() local
102 test_current(uTest, 4, 5, keys); in main()
104 printKeys("Current keys", keys, 4); in main()
110 test_legacy(uTest, 4, 5, keys); in main()
112 printKeys("Legacy keys", keys, 4); in main()
/third_party/skia/third_party/externals/icu/source/samples/legacy/
Dlegacy.cpp31 extern "C" void test_current(UChar data[][5], uint32_t size, uint32_t maxLen, uint8_t keys[][32]);
32 extern "C" void test_legacy(UChar data[][5], uint32_t size, uint32_t maxlen, uint8_t keys[][32]);
55 void printKeys(const char *comment, uint8_t keys[][32], int32_t keySize) { in printKeys()
60 currentKey = keys[i]; in printKeys()
94 static uint8_t keys[4][32]; in main() local
102 test_current(uTest, 4, 5, keys); in main()
104 printKeys("Current keys", keys, 4); in main()
110 test_legacy(uTest, 4, 5, keys); in main()
112 printKeys("Legacy keys", keys, 4); in main()

12345678910>>...130