/external/curl/tests/unit/ |
D | unit1603.c | 52 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/grpc-grpc-java/context/src/test/java/io/grpc/ |
D | PersistentHashArrayMappedTrieTest.java | 51 Key key1 = new Key(0); in leaf_collision() local 55 Leaf<Key, Object> leaf = new Leaf<Key, Object>(key1, value1); in leaf_collision() 58 assertSame(value1, ret.get(key1, key1.hashCode(), 0)); in leaf_collision() 61 assertSame(value1, leaf.get(key1, key1.hashCode(), 0)); in leaf_collision() 70 Key key1 = new Key(0); in leaf_insert() local 74 Leaf<Key, Object> leaf = new Leaf<Key, Object>(key1, value1); in leaf_insert() 77 assertSame(value1, ret.get(key1, key1.hashCode(), 0)); in leaf_insert() 80 assertSame(value1, leaf.get(key1, key1.hashCode(), 0)); in leaf_insert() 89 Key key1 = new Key(0); in collisionLeaf_assertKeysDifferent() local 90 new CollisionLeaf<Key, Object>(key1, new Object(), key1, new Object()); in collisionLeaf_assertKeysDifferent() [all …]
|
/external/vboot_reference/tests/ |
D | vb20_common2_tests.c | 24 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/guice/core/test/com/google/inject/internal/ |
D | WeakKeySetTest.java | 110 Key<Integer> key1 = Key.get(Integer.class); in testEviction_keyOverlap_2x() local 115 set.add(key1, state1, source1); in testEviction_keyOverlap_2x() 116 assertInSet(set, key1, 1, source1); in testEviction_keyOverlap_2x() 121 WeakReference<Key<Integer>> weakKey1Ref = new WeakReference<>(key1); in testEviction_keyOverlap_2x() 126 Key<Integer> key = key1 = key2 = Key.get(Integer.class); in testEviction_keyOverlap_2x() 158 Key<Integer> key1 = Key.get(Integer.class); in testNoEviction_keyOverlap_2x() local 163 set.add(key1, state1, source1); in testNoEviction_keyOverlap_2x() 164 assertInSet(set, key1, 1, source1); in testNoEviction_keyOverlap_2x() 169 WeakReference<Key<Integer>> weakKey1Ref = new WeakReference<>(key1); in testNoEviction_keyOverlap_2x() 172 Key<Integer> key = key1 = key2 = Key.get(Integer.class); in testNoEviction_keyOverlap_2x() [all …]
|
/external/selinux/libsepol/cil/src/ |
D | cil_symtab.c | 152 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() 192 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_insert() 197 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_insert() 203 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_insert() 233 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_search() 241 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_search() 246 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_search() 252 if (ckey->key1 == curr->ckey->key1 && in cil_complex_symtab_search()
|
/external/perfetto/src/traced/probes/filesystem/ |
D | lru_inode_cache_unittest.cc | 33 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/grpc-grpc/test/cpp/test/ |
D | server_context_test_spouse_test.cc | 32 const char key1[] = "metadata-key1"; variable 54 spouse.AddClientMetadata(key1, val1); in TEST() 55 ASSERT_TRUE(ClientMetadataContains(context, key1, val1)); in TEST() 58 ASSERT_TRUE(ClientMetadataContains(context, key1, val1)); in TEST() 67 context.AddInitialMetadata(key1, val1); in TEST() 68 metadata.insert(std::pair<grpc::string, grpc::string>(key1, val1)); in TEST() 81 context.AddTrailingMetadata(key1, val1); in TEST() 82 metadata.insert(std::pair<grpc::string, grpc::string>(key1, val1)); in TEST()
|
/external/antlr/runtime/ObjC/Framework/test/runtime/misc/ |
D | TestDictionary.m | 31 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/libchrome/crypto/ |
D | symmetric_key_unittest.cc | 30 std::unique_ptr<crypto::SymmetricKey> key1( in TEST() local 32 ASSERT_TRUE(key1); in TEST() 35 crypto::SymmetricKey::Import(crypto::SymmetricKey::AES, key1->key())); in TEST() 38 EXPECT_EQ(key1->key(), key2->key()); in TEST() 42 std::unique_ptr<crypto::SymmetricKey> key1( in TEST() local 45 ASSERT_TRUE(key1); in TEST() 48 crypto::SymmetricKey::HMAC_SHA1, key1->key())); in TEST() 51 EXPECT_EQ(key1->key(), key2->key()); in TEST()
|
/external/boringssl/src/decrepit/xts/ |
D | xts.c | 60 AES_KEY *key1, *key2; member 86 (*ctx->block1)(scratch.c, scratch.c, ctx->key1); in CRYPTO_xts128_encrypt() 111 (*ctx->block1)(scratch.c, scratch.c, ctx->key1); in CRYPTO_xts128_encrypt() 130 (*ctx->block1)(scratch.c, scratch.c, ctx->key1); in CRYPTO_xts128_encrypt() 141 (*ctx->block1)(scratch.c, scratch.c, ctx->key1); in CRYPTO_xts128_encrypt() 178 xctx->xts.key1 = &xctx->ks1.ks; in aes_xts_init_key() 192 if (!xctx->xts.key1 || in aes_xts_cipher() 208 if (xctx->xts.key1) { in aes_xts_ctrl() 209 if (xctx->xts.key1 != &xctx->ks1.ks) { in aes_xts_ctrl() 212 xctx_out->xts.key1 = &xctx_out->ks1.ks; in aes_xts_ctrl() [all …]
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | CacheReferencesTest.java | 90 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/skia/tests/ |
D | ImageFilterCacheTest.cpp | 44 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_find_existing() local 49 cache->set(key1, image.get(), offset, filter.get()); in test_find_existing() 53 sk_sp<SkSpecialImage> foundImage = cache->get(key1, &foundOffset); in test_find_existing() 71 SkImageFilterCacheKey key1(1, SkMatrix::I(), clip1, image->uniqueID(), image->subset()); in test_dont_find_if_diff_key() local 82 REPORTER_ASSERT(reporter, !cache->get(key1, &foundOffset)); in test_dont_find_if_diff_key() 95 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_internal_purge() local 100 cache->set(key1, image.get(), offset, filter1.get()); in test_internal_purge() 104 REPORTER_ASSERT(reporter, cache->get(key1, &foundOffset)); in test_internal_purge() 111 REPORTER_ASSERT(reporter, !cache->get(key1, &foundOffset)); in test_internal_purge() 122 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_explicit_purging() local [all …]
|
D | GpuDrawPathTest.cpp | 111 GrUniqueKey key1, key2; variable 114 GrPath::ComputeKey(GrShape(path1, GrStyle::SimpleFill()), &key1, &isVolatile); 116 REPORTER_ASSERT(reporter, key1.isValid()); 119 REPORTER_ASSERT(reporter, key1.isValid()); 120 REPORTER_ASSERT(reporter, key1 != key2); 124 GrPath::ComputeKey(GrShape(path1, style), &key1, &isVolatile); 158 GrPath::ComputeKey(GrShape(path3, style), &key1, &isVolatile);
|
/external/skqp/tests/ |
D | ImageFilterCacheTest.cpp | 44 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_find_existing() local 49 cache->set(key1, image.get(), offset, filter.get()); in test_find_existing() 53 sk_sp<SkSpecialImage> foundImage = cache->get(key1, &foundOffset); in test_find_existing() 71 SkImageFilterCacheKey key1(1, SkMatrix::I(), clip1, image->uniqueID(), image->subset()); in test_dont_find_if_diff_key() local 82 REPORTER_ASSERT(reporter, !cache->get(key1, &foundOffset)); in test_dont_find_if_diff_key() 95 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_internal_purge() local 100 cache->set(key1, image.get(), offset, filter1.get()); in test_internal_purge() 104 REPORTER_ASSERT(reporter, cache->get(key1, &foundOffset)); in test_internal_purge() 111 REPORTER_ASSERT(reporter, !cache->get(key1, &foundOffset)); in test_internal_purge() 122 SkImageFilterCacheKey key1(0, SkMatrix::I(), clip, image->uniqueID(), image->subset()); in test_explicit_purging() local [all …]
|
D | GpuDrawPathTest.cpp | 111 GrUniqueKey key1, key2; variable 114 GrPath::ComputeKey(GrShape(path1, GrStyle::SimpleFill()), &key1, &isVolatile); 116 REPORTER_ASSERT(reporter, key1.isValid()); 119 REPORTER_ASSERT(reporter, key1.isValid()); 120 REPORTER_ASSERT(reporter, key1 != key2); 124 GrPath::ComputeKey(GrShape(path1, style), &key1, &isVolatile); 158 GrPath::ComputeKey(GrShape(path3, style), &key1, &isVolatile);
|
/external/grpc-grpc/test/cpp/cocoapods/test/ |
D | server_context_test_spouse_test.mm | 36 const char key1[] = "metadata-key1"; 62 spouse.AddClientMetadata(key1, val1); 63 ASSERT_TRUE(ClientMetadataContains(context, key1, val1)); 66 ASSERT_TRUE(ClientMetadataContains(context, key1, val1)); 75 context.AddInitialMetadata(key1, val1); 76 metadata.insert(std::pair<grpc::string, grpc::string>(key1, val1)); 89 context.AddTrailingMetadata(key1, val1); 90 metadata.insert(std::pair<grpc::string, grpc::string>(key1, val1));
|
/external/boringssl/src/fipstools/ |
D | cavp_tdes_test.cc | 89 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/python/cpython2/Lib/test/ |
D | test_mailbox.py | 102 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/ |
D | test_mailbox.py | 194 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/ |
D | dh_test.cc | 170 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/u-boot/fs/ubifs/ |
D | key.h | 472 const union ubifs_key *key1, 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() 497 const union ubifs_key *key1, 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()
|
D | tnc_misc.c | 357 const union ubifs_key *key1, *key2; in read_znode() local 359 key1 = &znode->zbranch[i].key; in read_znode() 362 cmp = keys_cmp(c, key1, key2); in read_znode() 367 } else if (cmp == 0 && !is_hash_key(c, key1)) { in read_znode() 452 union ubifs_key key1, *key = &zbr->key; in ubifs_tnc_read_node() local 474 key_read(c, node + UBIFS_KEY_OFFSET, &key1); in ubifs_tnc_read_node() 475 if (!keys_eq(c, key, &key1)) { in ubifs_tnc_read_node() 479 dbg_tnck(&key1, "but found node's key "); in ubifs_tnc_read_node()
|
/external/v8/src/compiler/ |
D | state-values-utils.cc | 22 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/ |
D | DESedeEngine.java | 55 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/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/engines/ |
D | DESedeEngine.java | 57 byte[] key1 = new byte[8]; in init() 58 System.arraycopy(keyMaster, 0, key1, 0, key1.length); in init() 59 workingKey1 = generateWorkingKey(encrypting, key1); in init()
|