Home
last modified time | relevance | path

Searched refs:key1 (Results 1 – 25 of 200) sorted by relevance

12345678

/external/curl/tests/unit/
Dunit1603.c52 char key1[] = "key1"; variable
63 if(Curl_hash_str(key1, strlen(key1), slots) != 1 ||
70 nodep = Curl_hash_add(&hash_static, &key1, strlen(key1), &key1);
72 nodep = Curl_hash_pick(&hash_static, &key1, strlen(key1));
73 fail_unless(nodep == key1, "hash retrieval failed");
92 nodep = Curl_hash_pick(&hash_static, &key1, strlen(key1));
93 fail_unless(nodep == key1, "hash retrieval failed");
104 nodep = Curl_hash_pick(&hash_static, &key1, strlen(key1));
105 fail_unless(nodep == key1, "hash retrieval failed");
116 rc = Curl_hash_delete(&hash_static, &key1, strlen(key1));
[all …]
/external/vboot_reference/tests/
Dvb20_common2_tests.c24 static void test_unpack_key(const struct vb2_packed_key *key1) in test_unpack_key() argument
32 uint32_t size = key1->key_offset + key1->key_size; in test_unpack_key()
36 memcpy(key, key1, size); in test_unpack_key()
45 memcpy(key, key1, size); in test_unpack_key()
51 memcpy(key, key1, size); in test_unpack_key()
57 memcpy(key, key1, size); in test_unpack_key()
63 memcpy(key, key1, size); in test_unpack_key()
69 memcpy(key, key1, size); in test_unpack_key()
77 static void test_verify_data(const struct vb2_packed_key *key1, in test_verify_data() argument
84 uint32_t pubkey_size = key1->key_offset + key1->key_size; in test_verify_data()
[all …]
/external/annotation-tools/asmx/src/org/objectweb/asm/optimizer/
DConstantPool.java43 private Constant key1 = new Constant(); field in ConstantPool
50 key1.set(value); in newInteger()
51 Constant result = get(key1); in newInteger()
53 result = new Constant(key1); in newInteger()
60 key1.set(value); in newFloat()
61 Constant result = get(key1); in newFloat()
63 result = new Constant(key1); in newFloat()
70 key1.set(value); in newLong()
71 Constant result = get(key1); in newLong()
73 result = new Constant(key1); in newLong()
[all …]
/external/guice/core/test/com/google/inject/internal/
DWeakKeySetTest.java112 Key<Integer> key1 = Key.get(Integer.class); in testEviction_keyOverlap_2x() local
117 set.add(key1, state1, source1); in testEviction_keyOverlap_2x()
118 assertInSet(set, key1, 1, source1); in testEviction_keyOverlap_2x()
123 WeakReference<Key<Integer>> weakKey1Ref = new WeakReference<Key<Integer>>(key1); in testEviction_keyOverlap_2x()
128 Key<Integer> key = key1 = key2 = Key.get(Integer.class); in testEviction_keyOverlap_2x()
160 Key<Integer> key1 = Key.get(Integer.class); in testNoEviction_keyOverlap_2x() local
165 set.add(key1, state1, source1); in testNoEviction_keyOverlap_2x()
166 assertInSet(set, key1, 1, source1); in testNoEviction_keyOverlap_2x()
171 WeakReference<Key<Integer>> weakKey1Ref = new WeakReference<Key<Integer>>(key1); in testNoEviction_keyOverlap_2x()
174 Key<Integer> key = key1 = key2 = Key.get(Integer.class); in testNoEviction_keyOverlap_2x()
[all …]
/external/selinux/libsepol/cil/src/
Dcil_symtab.c152 intptr_t sum = ckey->key1 + ckey->key2 + ckey->key3 + ckey->key4; in cil_complex_symtab_hash()
184 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_insert()
191 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_insert()
196 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_insert()
202 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_insert()
232 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_search()
240 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_search()
245 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_search()
251 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_search()
/external/perfetto/src/traced/probes/filesystem/
Dlru_inode_cache_unittest.cc33 const std::pair<BlockDeviceID, Inode> key1{0, 0}; variable
54 cache.Insert(key1, val1()); in TEST()
55 EXPECT_THAT(cache.Get(key1), Pointee(Eq(val1()))); in TEST()
57 EXPECT_THAT(cache.Get(key1), Pointee(Eq(val1()))); in TEST()
59 cache.Insert(key1, val2()); in TEST()
60 EXPECT_THAT(cache.Get(key1), Pointee(Eq(val2()))); in TEST()
65 cache.Insert(key1, val1()); in TEST()
67 EXPECT_THAT(cache.Get(key1), Pointee(Eq(val1()))); in TEST()
71 EXPECT_THAT(cache.Get(key1), IsNull()); in TEST()
/external/antlr/antlr-3.4/runtime/ObjC/Framework/test/runtime/misc/
DTestDictionary.m31 NSString *key1 = @"a101";
35 [testDict setObject:obj1 forKey:key1];
37 NSString *result = [testDict objectForKey:key1];
44 NSString *key1 = @"a101";
50 [testDict setObject:obj1 forKey:key1];
53 NSString *result = [testDict objectForKey:key1];
60 NSString *key1 = @"a101";
64 [testDict setObject:obj1 forKey:key1];
84 NSString *key1 = @"a101";
88 [testDict setObject:obj1 forKey:key1];
[all …]
/external/skia/tests/
DImageFilterCacheTest.cpp36 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_find_existing() local
40 cache->set(key1, image.get(), offset, nullptr); in test_find_existing()
44 sk_sp<SkSpecialImage> foundImage = cache->get(key1, &foundOffset); in test_find_existing()
62 SkImageFilterCacheKey key1(1, SkMatrix::I(), clip1, image->uniqueID(), image->subset()); in test_dont_find_if_diff_key() local
72 REPORTER_ASSERT(reporter, !cache->get(key1, &foundOffset)); in test_dont_find_if_diff_key()
85 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_internal_purge() local
89 cache->set(key1, image.get(), offset, nullptr); in test_internal_purge()
93 REPORTER_ASSERT(reporter, cache->get(key1, &foundOffset)); in test_internal_purge()
99 REPORTER_ASSERT(reporter, !cache->get(key1, &foundOffset)); in test_internal_purge()
110 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_explicit_purging() local
[all …]
DGpuDrawPathTest.cpp113 GrUniqueKey key1, key2; variable
116 GrPath::ComputeKey(GrShape(path1, GrStyle::SimpleFill()), &key1, &isVolatile);
118 REPORTER_ASSERT(reporter, key1.isValid());
121 REPORTER_ASSERT(reporter, key1.isValid());
122 REPORTER_ASSERT(reporter, key1 != key2);
126 GrPath::ComputeKey(GrShape(path1, style), &key1, &isVolatile);
160 GrPath::ComputeKey(GrShape(path3, style), &key1, &isVolatile);
/external/skqp/tests/
DImageFilterCacheTest.cpp36 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_find_existing() local
40 cache->set(key1, image.get(), offset, nullptr); in test_find_existing()
44 sk_sp<SkSpecialImage> foundImage = cache->get(key1, &foundOffset); in test_find_existing()
62 SkImageFilterCacheKey key1(1, SkMatrix::I(), clip1, image->uniqueID(), image->subset()); in test_dont_find_if_diff_key() local
72 REPORTER_ASSERT(reporter, !cache->get(key1, &foundOffset)); in test_dont_find_if_diff_key()
85 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_internal_purge() local
89 cache->set(key1, image.get(), offset, nullptr); in test_internal_purge()
93 REPORTER_ASSERT(reporter, cache->get(key1, &foundOffset)); in test_internal_purge()
99 REPORTER_ASSERT(reporter, !cache->get(key1, &foundOffset)); in test_internal_purge()
110 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_explicit_purging() local
[all …]
DGpuDrawPathTest.cpp113 GrUniqueKey key1, key2; variable
116 GrPath::ComputeKey(GrShape(path1, GrStyle::SimpleFill()), &key1, &isVolatile);
118 REPORTER_ASSERT(reporter, key1.isValid());
121 REPORTER_ASSERT(reporter, key1.isValid());
122 REPORTER_ASSERT(reporter, key1 != key2);
126 GrPath::ComputeKey(GrShape(path1, style), &key1, &isVolatile);
160 GrPath::ComputeKey(GrShape(path3, style), &key1, &isVolatile);
/external/guava/guava-tests/test/com/google/common/cache/
DCacheReferencesTest.java90 Key key1 = new Key(1);
91 String value1 = key1.toString();
94 assertSame(value1, cache.getUnchecked(key1));
96 assertEquals(ImmutableSet.of(key1, key2), cache.asMap().keySet());
98 assertEquals(ImmutableSet.of(immutableEntry(key1, value1), immutableEntry(key2, value2)),
105 Key key1 = new Key(1);
106 String value1 = key1.toString();
109 assertSame(value1, cache.getUnchecked(key1));
111 cache.invalidate(key1);
112 assertFalse(cache.asMap().containsKey(key1));
/external/boringssl/src/decrepit/xts/
Dxts.c60 void *key1, *key2; member
91 (*ctx->block1)(scratch.c, scratch.c, ctx->key1); in CRYPTO_xts128_encrypt()
121 (*ctx->block1)(scratch.c, scratch.c, ctx->key1); in CRYPTO_xts128_encrypt()
145 (*ctx->block1)(scratch.c, scratch.c, ctx->key1); in CRYPTO_xts128_encrypt()
156 (*ctx->block1)(scratch.c, scratch.c, ctx->key1); in CRYPTO_xts128_encrypt()
198 xctx->xts.key1 = &xctx->ks1; in aes_xts_init_key()
212 if (!xctx->xts.key1 || in aes_xts_cipher()
228 if (xctx->xts.key1) { in aes_xts_ctrl()
229 if (xctx->xts.key1 != &xctx->ks1) { in aes_xts_ctrl()
232 xctx_out->xts.key1 = &xctx_out->ks1; in aes_xts_ctrl()
[all …]
/external/boringssl/src/fipstools/
Dcavp_tdes_test.cc89 std::vector<uint8_t> keys, key1, key2, key3, iv, in, result; in TestKAT() local
96 (!t->GetBytes(&key1, "KEY1") || in TestKAT()
106 key.insert(key.end(), key1.begin(), key1.end()); in TestKAT()
137 EncodeHex(key1.data(), key1.size()).c_str(), in TestKAT()
212 std::vector<uint8_t> key1, key2, key3, iv, in, result; in TestMCT() local
216 if (!t->GetBytes(&key1, "KEY1") || in TestMCT()
229 std::vector<uint8_t> key(key1); in TestMCT()
268 EncodeHex(key1.data(), key1.size()).c_str(), in TestMCT()
280 XORKeyWithOddParityLSB(&key1, result); in TestMCT()
/external/libchrome/crypto/
Dsymmetric_key_unittest.cc34 std::unique_ptr<crypto::SymmetricKey> key1( in TEST() local
36 ASSERT_TRUE(key1); in TEST()
38 EXPECT_TRUE(key1->GetRawKey(&raw_key1)); in TEST()
51 std::unique_ptr<crypto::SymmetricKey> key1( in TEST() local
54 ASSERT_TRUE(key1); in TEST()
56 EXPECT_TRUE(key1->GetRawKey(&raw_key1)); in TEST()
/external/python/cpython2/Lib/test/
Dtest_mailbox.py102 key1 = self._box.add(self._template % 1)
109 self.assertEqual(self._box.get_string(key1), self._template % 1)
117 self.assertEqual(self._box.get_string(key1), self._template % 1)
118 method(key1)
120 self.assertRaises(KeyError, lambda: self._box[key1])
121 self.assertRaises(KeyError, lambda: method(key1))
126 key1 = self._box.add(self._template % 1)
145 key1 = self._box.add(self._template % 1)
146 msg = self._box.get(key1)
164 key1 = self._box.add(_sample_message)
[all …]
/external/python/cpython3/Lib/test/
Dtest_mailbox.py194 key1 = self._box.add(self._template % 1)
200 self.assertEqual(self._box.get_string(key1), self._template % 1)
207 self.assertEqual(self._box.get_string(key1), self._template % 1)
208 method(key1)
210 self.assertRaises(KeyError, lambda: self._box[key1])
211 self.assertRaises(KeyError, lambda: method(key1))
216 key1 = self._box.add(self._template % 1)
235 key1 = self._box.add(self._template % 1)
236 msg = self._box.get(key1)
253 key1 = self._box.add(_sample_message)
[all …]
/external/boringssl/src/crypto/dh/
Ddh_test.cc170 std::vector<uint8_t> key1(DH_size(a.get())); in RunBasicTests() local
171 int ret = DH_compute_key(key1.data(), b->pub_key, a.get()); in RunBasicTests()
175 key1.resize(ret); in RunBasicTests()
178 for (size_t i = 0; i < key1.size(); i++) { in RunBasicTests()
179 printf("%02x", key1[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
23 NodeKey* node_key1 = reinterpret_cast<NodeKey*>(key1); in AreKeysEqual()
28 return AreValueKeysEqual(reinterpret_cast<StateValuesKey*>(key1), in AreKeysEqual()
31 return IsKeysEqualToNode(reinterpret_cast<StateValuesKey*>(key1), in AreKeysEqual()
72 bool StateValuesCache::AreValueKeysEqual(StateValuesKey* key1, in AreValueKeysEqual() argument
74 if (key1->count != key2->count) { in AreValueKeysEqual()
77 if (key1->mask != key2->mask) { in AreValueKeysEqual()
80 for (size_t i = 0; i < key1->count; i++) { in AreValueKeysEqual()
81 if (key1->values[i] != key2->values[i]) { in AreValueKeysEqual()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
DDESedeEngine.java55 byte[] key1 = new byte[8]; in init()
56 System.arraycopy(keyMaster, 0, key1, 0, key1.length); in init()
57 workingKey1 = generateWorkingKey(encrypting, key1); in init()
/external/guava/guava-tests/test/com/google/common/hash/
DHashTestUtils.java258 int key1 = rand.nextInt(); in checkNoFunnels() local
260 int key2 = key1 ^ (1 << i); in checkNoFunnels()
262 int hash1 = function.hashInt(key1).asInt(); in checkNoFunnels()
297 int key1 = rand.nextInt(); in checkAvalanche() local
299 int key2 = key1 ^ (1 << i); in checkAvalanche()
301 int hash1 = function.hashInt(key1).asInt(); in checkAvalanche()
342 int key1 = rand.nextInt(); in checkNo2BitCharacteristics() local
344 int key2 = key1 ^ delta; in checkNo2BitCharacteristics()
347 int hash1 = function.hashInt(key1).asInt(); in checkNo2BitCharacteristics()
387 int key1 = rand.nextInt(); in check2BitAvalanche() local
[all …]
/external/boringssl/src/crypto/fipsmodule/aes/asm/
Daesp8-ppc.pl1921 my ($inp,$out,$len,$key1,$key2,$ivp,$rounds,$idx) = map("r$_",(3..10));
2008 ?lvsl $keyperm,0,$key1 # prepare for unaligned key
2009 lwz $rounds,240($key1)
2029 lvx $rndkey0,0,$key1
2030 lvx $rndkey1,$idx,$key1
2036 lvx $rndkey0,$idx,$key1
2045 lvx $rndkey1,$idx,$key1
2049 lvx $rndkey0,$idx,$key1
2055 lvx $rndkey1,$idx,$key1
2073 lvx $rndkey0,0,$key1
[all …]
/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/libvncserver/libvncserver/
Dwebsockets.c169 void webSocketsGenMd5(char * target, char *key1, char *key2, char *key3);
255 char *key1 = NULL, *key2 = NULL, *key3 = NULL; in webSocketsHandshake() local
293 if (key1 && key2) { in webSocketsHandshake()
328 key1 = line+20; in webSocketsHandshake()
397 if (!(key1 && key2 && key3)) { in webSocketsHandshake()
404 webSocketsGenMd5(trailer, key1, key2, key3); in webSocketsHandshake()
438 webSocketsGenMd5(char * target, char *key1, char *key2, char *key3) in webSocketsGenMd5() argument
445 for (i=0; i < strlen(key1); i++) { in webSocketsGenMd5()
446 if (key1[i] == ' ') { in webSocketsGenMd5()
449 if ((key1[i] >= 48) && (key1[i] <= 57)) { in webSocketsGenMd5()
[all …]
/external/ltp/testcases/kernel/syscalls/request_key/
Drequest_key02.c38 static int key1; variable
47 {"ltp1", ENOKEY, &key1},
100 key1 = KEY_REQKEY_DEFL_DEFAULT; in setup()

12345678