Home
last modified time | relevance | path

Searched refs:key2 (Results 1 – 25 of 280) sorted by relevance

12345678910>>...12

/external/vboot_reference/tests/
Dvb21_common2_tests.c28 struct vb2_packed_key *key2; in test_unpack_key() local
32 key2 = (struct vb2_packed_key *)malloc(size); in test_unpack_key()
34 memcpy(key2, key, size); in test_unpack_key()
35 TEST_SUCC(vb2_unpack_key(&pubk, (uint8_t *)key2, size), in test_unpack_key()
38 memcpy(key2, key, size); in test_unpack_key()
39 key2->key_offset += 4; in test_unpack_key()
40 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key2, size), in test_unpack_key()
44 memcpy(key2, key, size); in test_unpack_key()
45 key2->c.fixed_size += size; in test_unpack_key()
46 TEST_EQ(vb2_unpack_key(&pubk, (uint8_t *)key2, size), in test_unpack_key()
[all …]
/external/grpc-grpc-java/context/src/test/java/io/grpc/
DPersistentHashArrayMappedTrieTest.java52 Key key2 = new Key(0); in leaf_collision() local
56 Node<Key, Object> ret = leaf.put(key2, value2, key2.hashCode(), 0); in leaf_collision()
59 assertSame(value2, ret.get(key2, key2.hashCode(), 0)); in leaf_collision()
62 assertSame(null, leaf.get(key2, key2.hashCode(), 0)); in leaf_collision()
71 Key key2 = new Key(1); in leaf_insert() local
75 Node<Key, Object> ret = leaf.put(key2, value2, key2.hashCode(), 0); in leaf_insert()
78 assertSame(value2, ret.get(key2, key2.hashCode(), 0)); in leaf_insert()
81 assertSame(null, leaf.get(key2, key2.hashCode(), 0)); in leaf_insert()
101 Key key2 = new Key(key1.hashCode()); in collisionLeaf_insert() local
107 new CollisionLeaf<Key, Object>(key1, value1, key2, value2); in collisionLeaf_insert()
[all …]
/external/curl/packages/vms/
Dconfig_h.com367 $ if key2 .eqs. "GETADDRINFO_THREADSAFE"
391 $ if key2 .eqs. "LL"
399 $ if key2 .eqs. "bool_t"
407 $ if key2 .eqs. "bits16_t"
415 $ if key2 .eqs. "u_bits16_t"
423 $ if key2 .eqs. "bits32_t"
431 $ if key2 .eqs. "u_bits32_t"
439 $ if key2 .eqs. "intmax_t"
451 $ if key2 .eqs. "uintmax_t"
463 $ if key2 .eqs. "socklen_t"
[all …]
/external/curl/tests/unit/
Dunit1603.c53 char key2[] = "key2b"; variable
64 Curl_hash_str(key2, strlen(key2), slots) != 0 ||
75 nodep = Curl_hash_add(&hash_static, &key2, strlen(key2), &key2);
77 nodep = Curl_hash_pick(&hash_static, &key2, strlen(key2));
78 fail_unless(nodep == key2, "hash retrieval failed");
94 nodep = Curl_hash_pick(&hash_static, &key2, strlen(key2));
95 fail_unless(nodep == key2, "hash retrieval failed");
142 nodep = Curl_hash_pick(&hash_static, &key2, strlen(key2));
143 fail_unless(nodep == key2, "hash retrieval failed");
/external/selinux/libsepol/cil/src/
Dcil_symtab.c152 intptr_t sum = ckey->key1 + ckey->key2 + ckey->key3 + ckey->key4; in cil_complex_symtab_hash()
185 ckey->key2 == curr->ckey->key2 && in cil_complex_symtab_insert()
193 ckey->key2 < curr->ckey->key2) { in cil_complex_symtab_insert()
198 ckey->key2 == curr->ckey->key2 && in cil_complex_symtab_insert()
204 ckey->key2 == curr->ckey->key2 && in cil_complex_symtab_insert()
234 ckey->key2 == curr->ckey->key2 && in cil_complex_symtab_search()
242 ckey->key2 < curr->ckey->key2) { in cil_complex_symtab_search()
247 ckey->key2 == curr->ckey->key2 && in cil_complex_symtab_search()
253 ckey->key2 == curr->ckey->key2 && in cil_complex_symtab_search()
/external/libchrome/crypto/
Dsymmetric_key_unittest.cc22 std::unique_ptr<crypto::SymmetricKey> key2( in TEST() local
24 ASSERT_TRUE(key2); in TEST()
25 EXPECT_EQ(32U, key2->key().size()); in TEST()
26 EXPECT_NE(key->key(), key2->key()); in TEST()
34 std::unique_ptr<crypto::SymmetricKey> key2( in TEST() local
36 ASSERT_TRUE(key2); in TEST()
38 EXPECT_EQ(key1->key(), key2->key()); in TEST()
47 std::unique_ptr<crypto::SymmetricKey> key2(crypto::SymmetricKey::Import( in TEST() local
49 ASSERT_TRUE(key2); in TEST()
51 EXPECT_EQ(key1->key(), key2->key()); in TEST()
/external/guice/core/test/com/google/inject/internal/
DWeakKeySetTest.java111 Key<Integer> key2 = Key.get(Integer.class); in testEviction_keyOverlap_2x() local
118 set.add(key2, state2, source2); in testEviction_keyOverlap_2x()
119 assertInSet(set, key2, 2, source1, source2); in testEviction_keyOverlap_2x()
122 WeakReference<Key<Integer>> weakKey2Ref = new WeakReference<>(key2); in testEviction_keyOverlap_2x()
126 Key<Integer> key = key1 = key2 = Key.get(Integer.class); in testEviction_keyOverlap_2x()
159 Key<Integer> key2 = Key.get(Integer.class); in testNoEviction_keyOverlap_2x() local
166 set.add(key2, state2, source2); in testNoEviction_keyOverlap_2x()
167 assertInSet(set, key2, 2, source1, source2); in testNoEviction_keyOverlap_2x()
170 WeakReference<Key<Integer>> weakKey2Ref = new WeakReference<>(key2); in testNoEviction_keyOverlap_2x()
172 Key<Integer> key = key1 = key2 = Key.get(Integer.class); in testNoEviction_keyOverlap_2x()
[all …]
/external/guava/guava-tests/test/com/google/common/cache/
DCacheReferencesTest.java92 Key key2 = new Key(2);
93 String value2 = key2.toString();
95 assertSame(value2, cache.getUnchecked(key2));
96 assertEquals(ImmutableSet.of(key1, key2), cache.asMap().keySet());
98 assertEquals(ImmutableSet.of(immutableEntry(key1, value1), immutableEntry(key2, value2)),
107 Key key2 = new Key(2);
108 String value2 = key2.toString();
110 assertSame(value2, cache.getUnchecked(key2));
113 assertTrue(cache.asMap().containsKey(key2));
115 assertEquals(ImmutableSet.of(key2), cache.asMap().keySet());
[all …]
/external/grpc-grpc/test/cpp/test/
Dserver_context_test_spouse_test.cc33 const char key2[] = "metadata-key2"; variable
57 spouse.AddClientMetadata(key2, val2); in TEST()
59 ASSERT_TRUE(ClientMetadataContains(context, key2, val2)); in TEST()
71 context.AddInitialMetadata(key2, val2); in TEST()
72 metadata.insert(std::pair<grpc::string, grpc::string>(key2, val2)); in TEST()
85 context.AddTrailingMetadata(key2, val2); in TEST()
86 metadata.insert(std::pair<grpc::string, grpc::string>(key2, val2)); in TEST()
/external/boringssl/src/fipstools/
Dcavp_tdes_test.cc89 std::vector<uint8_t> keys, key1, key2, key3, iv, in, result; in TestKAT() local
97 !t->GetBytes(&key2, "KEY2") || in TestKAT()
107 key.insert(key.end(), key2.begin(), key2.end()); in TestKAT()
138 EncodeHex(key2.data(), key2.size()).c_str(), in TestKAT()
212 std::vector<uint8_t> key1, key2, key3, iv, in, result; in TestMCT() local
217 !t->GetBytes(&key2, "KEY2") || in TestMCT()
230 key.insert(key.end(), key2.begin(), key2.end()); in TestMCT()
269 EncodeHex(key2.data(), key2.size()).c_str(), in TestMCT()
281 XORKeyWithOddParityLSB(&key2, prev_result); in TestMCT()
/external/perfetto/src/traced/probes/filesystem/
Dlru_inode_cache_unittest.cc34 const std::pair<BlockDeviceID, Inode> key2{0, 1}; variable
56 cache.Insert(key2, val2()); in TEST()
58 EXPECT_THAT(cache.Get(key2), Pointee(Eq(val2()))); in TEST()
66 cache.Insert(key2, val2()); in TEST()
68 EXPECT_THAT(cache.Get(key2), Pointee(Eq(val2()))); in TEST()
72 EXPECT_THAT(cache.Get(key2), Pointee(Eq(val2()))); in TEST()
/external/grpc-grpc/test/cpp/cocoapods/test/
Dserver_context_test_spouse_test.mm37 const char key2[] = "metadata-key2";
65 spouse.AddClientMetadata(key2, val2);
67 ASSERT_TRUE(ClientMetadataContains(context, key2, val2));
79 context.AddInitialMetadata(key2, val2);
80 metadata.insert(std::pair<grpc::string, grpc::string>(key2, val2));
93 context.AddTrailingMetadata(key2, val2);
94 metadata.insert(std::pair<grpc::string, grpc::string>(key2, val2));
/external/skia/tests/
DImageFilterCacheTest.cpp45 SkImageFilterCacheKey key2(0, SkMatrix::I(), clip, subset->uniqueID(), subset->subset()); in test_find_existing() local
57 REPORTER_ASSERT(reporter, !cache->get(key2, &foundOffset)); in test_find_existing()
72 SkImageFilterCacheKey key2(0, SkMatrix::MakeTrans(5, 5), clip1, in test_dont_find_if_diff_key() local
83 REPORTER_ASSERT(reporter, !cache->get(key2, &foundOffset)); in test_dont_find_if_diff_key()
96 SkImageFilterCacheKey key2(1, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_internal_purge() local
108 cache->set(key2, image.get(), offset, filter2.get()); in test_internal_purge()
110 REPORTER_ASSERT(reporter, cache->get(key2, &foundOffset)); in test_internal_purge()
123 SkImageFilterCacheKey key2(1, SkMatrix::I(), clip, subset->uniqueID(), image->subset()); in test_explicit_purging() local
129 cache->set(key2, image.get(), offset, filter2.get()); in test_explicit_purging()
135 REPORTER_ASSERT(reporter, cache->get(key2, &foundOffset)); in test_explicit_purging()
[all …]
/external/skqp/tests/
DImageFilterCacheTest.cpp45 SkImageFilterCacheKey key2(0, SkMatrix::I(), clip, subset->uniqueID(), subset->subset()); in test_find_existing() local
57 REPORTER_ASSERT(reporter, !cache->get(key2, &foundOffset)); in test_find_existing()
72 SkImageFilterCacheKey key2(0, SkMatrix::MakeTrans(5, 5), clip1, in test_dont_find_if_diff_key() local
83 REPORTER_ASSERT(reporter, !cache->get(key2, &foundOffset)); in test_dont_find_if_diff_key()
96 SkImageFilterCacheKey key2(1, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_internal_purge() local
108 cache->set(key2, image.get(), offset, filter2.get()); in test_internal_purge()
110 REPORTER_ASSERT(reporter, cache->get(key2, &foundOffset)); in test_internal_purge()
123 SkImageFilterCacheKey key2(1, SkMatrix::I(), clip, subset->uniqueID(), image->subset()); in test_explicit_purging() local
129 cache->set(key2, image.get(), offset, filter2.get()); in test_explicit_purging()
135 REPORTER_ASSERT(reporter, cache->get(key2, &foundOffset)); in test_explicit_purging()
[all …]
/external/boringssl/src/decrepit/xts/
Dxts.c60 AES_KEY *key1, *key2; member
78 (*ctx->block2)(tweak.c, tweak.c, ctx->key2); in CRYPTO_xts128_encrypt()
182 xctx->xts.key2 = &xctx->ks2.ks; in aes_xts_init_key()
193 !xctx->xts.key2 || in aes_xts_cipher()
214 if (xctx->xts.key2) { in aes_xts_ctrl()
215 if (xctx->xts.key2 != &xctx->ks2.ks) { in aes_xts_ctrl()
218 xctx_out->xts.key2 = &xctx_out->ks2.ks; in aes_xts_ctrl()
226 xctx->xts.key2 = NULL; in aes_xts_ctrl()
/external/cldr/tools/java/org/unicode/cldr/util/
DChainedMap.java32 public V get(K2 key2, K1 key1) { in get() argument
33 return (V) super.handleGet(key2, key1); in get()
37 public Map<K1, V> get(K2 key2) { in get() argument
38 Map<K1, V> map = (Map<K1, V>) super.mapBase.get(key2); in get()
43 public V put(K2 key2, K1 key1, V value) { in put() argument
44 return (V) super.handlePut(value, key2, key1); in put()
82 public V get(K3 key3, K2 key2, K1 key1) { in get() argument
83 return (V) super.handleGet(key3, key2, key1); in get()
92 public V put(K3 key3, K2 key2, K1 key1, V value) { in put() argument
93 return (V) super.handlePut(value, key3, key2, key1); in put()
[all …]
/external/u-boot/fs/ubifs/
Dkey.h473 const union ubifs_key *key2) in keys_cmp() argument
475 if (key1->u32[0] < key2->u32[0]) in keys_cmp()
477 if (key1->u32[0] > key2->u32[0]) in keys_cmp()
479 if (key1->u32[1] < key2->u32[1]) in keys_cmp()
481 if (key1->u32[1] > key2->u32[1]) in keys_cmp()
498 const union ubifs_key *key2) in keys_eq() argument
500 if (key1->u32[0] != key2->u32[0]) in keys_eq()
502 if (key1->u32[1] != key2->u32[1]) in keys_eq()
/external/python/cpython2/Lib/plat-mac/
Dic.py141 key2 = key[:string.index(key, '\245')+1]
143 key2 = key
144 if key2 in _decoder_table:
145 decoder = _decoder_table[key2][0]
154 key2 = key[:string.index(key, '\245')+1]
156 key2 = key
157 if key2 in _decoder_table:
158 coder = _decoder_table[key2][1]
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
DDESedeEngine.java59 byte[] key2 = new byte[8]; in init()
60 System.arraycopy(keyMaster, 8, key2, 0, key2.length); in init()
61 workingKey2 = generateWorkingKey(!encrypting, key2); in init()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/engines/
DDESedeEngine.java61 byte[] key2 = new byte[8]; in init()
62 System.arraycopy(keyMaster, 8, key2, 0, key2.length); in init()
63 workingKey2 = generateWorkingKey(!encrypting, key2); in init()
/external/jemalloc_new/include/jemalloc/internal/
Dmutex_pool.h58 uintptr_t key2) { in mutex_pool_lock2() argument
62 malloc_mutex_t *mutex2 = mutex_pool_mutex(pool, key2); in mutex_pool_lock2()
76 uintptr_t key2) { in mutex_pool_unlock2() argument
78 malloc_mutex_t *mutex2 = mutex_pool_mutex(pool, key2); in mutex_pool_unlock2()
/external/boringssl/src/crypto/dh/
Ddh_test.cc183 std::vector<uint8_t> key2(DH_size(b.get())); in RunBasicTests() local
184 ret = DH_compute_key(key2.data(), a->pub_key, b.get()); in RunBasicTests()
188 key2.resize(ret); in RunBasicTests()
191 for (size_t i = 0; i < key2.size(); i++) { in RunBasicTests()
192 printf("%02x", key2[i]); in RunBasicTests()
196 if (key1.size() < 4 || key1 != key2) { in RunBasicTests()
/external/v8/src/compiler/
Dstate-values-utils.cc22 bool StateValuesCache::AreKeysEqual(void* key1, void* key2) { in AreKeysEqual() argument
24 NodeKey* node_key2 = reinterpret_cast<NodeKey*>(key2); in AreKeysEqual()
29 reinterpret_cast<StateValuesKey*>(key2)); in AreKeysEqual()
37 return IsKeysEqualToNode(reinterpret_cast<StateValuesKey*>(key2), in AreKeysEqual()
73 StateValuesKey* key2) { in AreValueKeysEqual() argument
74 if (key1->count != key2->count) { in AreValueKeysEqual()
77 if (key1->mask != key2->mask) { in AreValueKeysEqual()
81 if (key1->values[i] != key2->values[i]) { in AreValueKeysEqual()
/external/icu/icu4c/source/test/intltest/
Duvectest.cpp72 UVectorTest_compareInt32(UElement key1, UElement key2) { in UVectorTest_compareInt32() argument
73 if (key1.integer > key2.integer) { in UVectorTest_compareInt32()
76 else if (key1.integer < key2.integer) { in UVectorTest_compareInt32()
84 UVectorTest_compareCstrings(const UElement key1, const UElement key2) { in UVectorTest_compareCstrings() argument
85 return !strcmp((const char *)key1.pointer, (const char *)key2.pointer); in UVectorTest_compareCstrings()
/external/ltp/testcases/kernel/syscalls/request_key/
Drequest_key02.c39 static int key2; variable
48 {"ltp2", EKEYREVOKED, &key2},
101 key2 = init_key("ltp2", KEYCTL_REVOKE); in setup()

12345678910>>...12