/external/linux-kselftest/tools/testing/selftests/bpf/progs/ |
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 = skb->flow_keys; in parse_ip_proto() local 165 return export_flow_keys(keys, BPF_DROP); in parse_ip_proto() [all …]
|
/external/python/cpython3/Lib/test/ |
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, 42) 30 self.assertIn(1, keys) [all …]
|
/external/ImageMagick/MagickCore/ |
D | thread.c | 96 **keys; in CreateMagickThreadKey() 98 keys=(MagickThreadValue **) key; in CreateMagickThreadKey() 99 *keys=(MagickThreadValue *) AcquireMagickMemory(sizeof(**keys)); in CreateMagickThreadKey() 100 if (*keys != (MagickThreadValue *) NULL) in CreateMagickThreadKey() 102 (*keys)->number_threads=GetOpenMPMaximumThreads(); in CreateMagickThreadKey() 103 (*keys)->values=AcquireQuantumMemory((*keys)->number_threads, in CreateMagickThreadKey() 105 if ((*keys)->values == (void *) NULL) in CreateMagickThreadKey() 106 *keys=RelinquishMagickMemory(*keys); in CreateMagickThreadKey() 108 (void) memset((*keys)->values,0,(*keys)->number_threads* in CreateMagickThreadKey() 110 (*keys)->destructor=destructor; in CreateMagickThreadKey() [all …]
|
/external/libcxx/test/libcxx/localization/locale.categories/ |
D | __scan_keyword.pass.cpp | 49 std::string keys[] = {"a", "abb"}; in main() local 52 keys, keys+sizeof(keys)/sizeof(keys[0]), in main() 54 assert(k - keys == 0); in main() 61 std::string keys[] = {"a", "abb"}; in main() local 64 keys, keys+sizeof(keys)/sizeof(keys[0]), in main() 66 assert(k - keys == 2); in main() 73 std::string keys[] = {"a", "abb"}; in main() local 76 keys, keys+sizeof(keys)/sizeof(keys[0]), in main() 78 assert(k - keys == 1); in main() 85 std::string keys[] = {"Mon", "Monday", "Tue", "Tuesday"}; in main() local [all …]
|
/external/llvm-project/libcxx/test/libcxx/localization/locale.categories/ |
D | __scan_keyword.pass.cpp | 50 std::string keys[] = {"a", "abb"}; in main() local 53 keys, keys+sizeof(keys)/sizeof(keys[0]), in main() 55 assert(k - keys == 0); in main() 62 std::string keys[] = {"a", "abb"}; in main() local 65 keys, keys+sizeof(keys)/sizeof(keys[0]), in main() 67 assert(k - keys == 2); in main() 74 std::string keys[] = {"a", "abb"}; in main() local 77 keys, keys+sizeof(keys)/sizeof(keys[0]), in main() 79 assert(k - keys == 1); in main() 86 std::string keys[] = {"Mon", "Monday", "Tue", "Tuesday"}; in main() local [all …]
|
/external/wpa_supplicant_8/src/eap_common/ |
D | ikev2_common.c | 371 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 …]
|
/external/lottie/lottie/src/main/java/com/airbnb/lottie/model/ |
D | KeyPath.java | 45 private final List<String> keys; field in KeyPath 48 public KeyPath(String... keys) { in KeyPath() argument 49 this.keys = Arrays.asList(keys); in KeyPath() 56 keys = new ArrayList<>(keyPath.keys); in KeyPath() 71 newKeyPath.keys.add(key); in addKey() 105 if (depth >= keys.size()) { in matches() 108 if (keys.get(depth).equals(key) || in matches() 109 keys.get(depth).equals("**") || in matches() 110 keys.get(depth).equals("*")) { in matches() 129 if (!keys.get(depth).equals("**")) { in incrementDepthBy() [all …]
|
/external/grpc-grpc-java/context/src/jmh/java/io/grpc/ |
D | ReadBenchmark.java | 36 List<Context.Key<Object>> keys = new ArrayList<Context.Key<Object>>(); field in ReadBenchmark.ContextState 42 keys.add(Context.key("Key" + i)); in setup() 44 contexts.add(Context.ROOT.withValue(keys.get(0), new Object())); in setup() 45 contexts.add(Context.ROOT.withValues(keys.get(0), new Object(), keys.get(1), new Object())); in setup() 48 keys.get(0), new Object(), keys.get(1), new Object(), keys.get(2), new Object())); in setup() 51 keys.get(0), in setup() 53 keys.get(1), in setup() 55 keys.get(2), in setup() 57 keys.get(3), in setup() 59 contexts.add(contexts.get(0).withValue(keys.get(1), new Object())); in setup() [all …]
|
/external/linux-kselftest/tools/testing/selftests/net/ |
D | tcp_fastopen_backup_key.c | 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 + 5, keys + 6, keys + 7) != 8) in get_keys() 69 static void set_keys(int fd, uint32_t *keys) in set_keys() argument 74 if (setsockopt(fd, SOL_TCP, TCP_FASTOPEN_KEY, keys, in set_keys() 81 keys[0], keys[1], keys[2], keys[3], keys[4], keys[5], in set_keys() 82 keys[6], keys[7]); in set_keys() 85 keys[0], keys[1], keys[2], keys[3]); in set_keys() 98 uint32_t keys[8]; in build_rcv_fd() local [all …]
|
/external/perfetto/tools/ |
D | tmux | 53 tmux send-keys "bash" Enter 289 tmux send-keys "clear" C-m 291 tmux send-keys "adb shell" C-m 295 tmux send-keys "clear" C-m 297 tmux send-keys "adb shell" C-m 301 tmux send-keys "clear" C-m 303 tmux send-keys "adb shell" C-m 308 tmux send-keys "clear" C-m 310 tmux send-keys "adb shell" C-m 318 tmux send-keys "ssh $SSH_TARGET" Enter [all …]
|
/external/ltp/pan/ |
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() 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 …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/ |
D | CompositePrivateKey.java | 22 private final List<PrivateKey> keys; field in CompositePrivateKey 29 public CompositePrivateKey(PrivateKey... keys) in CompositePrivateKey() argument 31 if (keys == null || keys.length == 0) in CompositePrivateKey() 36 List<PrivateKey> keyList = new ArrayList<PrivateKey>(keys.length); in CompositePrivateKey() 37 for (int i = 0; i != keys.length; i++) in CompositePrivateKey() 39 keyList.add(keys[i]); in CompositePrivateKey() 41 this.keys = Collections.unmodifiableList(keyList); in CompositePrivateKey() 51 return keys; in getPrivateKeys() 68 for (int i = 0; i != keys.size(); i++) in getEncoded() 70 v.add(PrivateKeyInfo.getInstance(keys.get(i).getEncoded())); in getEncoded() [all …]
|
D | CompositePublicKey.java | 22 private final List<PublicKey> keys; field in CompositePublicKey 29 public CompositePublicKey(PublicKey... keys) in CompositePublicKey() argument 31 if (keys == null || keys.length == 0) in CompositePublicKey() 36 List<PublicKey> keyList = new ArrayList<PublicKey>(keys.length); in CompositePublicKey() 37 for (int i = 0; i != keys.length; i++) in CompositePublicKey() 39 keyList.add(keys[i]); in CompositePublicKey() 41 this.keys = Collections.unmodifiableList(keyList); in CompositePublicKey() 51 return keys; in getPublicKeys() 68 for (int i = 0; i != keys.size(); i++) in getEncoded() 70 v.add(SubjectPublicKeyInfo.getInstance(keys.get(i).getEncoded())); in getEncoded() [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
D | MultimapKeysTester.java | 48 Multiset<K> keys = multimap().keys(); in testKeys() local 49 assertEquals(2, keys.count(k0())); in testKeys() 50 assertEquals(1, keys.count(k1())); in testKeys() 51 assertEquals(3, keys.size()); in testKeys() 52 assertContainsAllOf(keys, k0(), k1()); in testKeys() 54 keys.entrySet(), Multisets.immutableEntry(k0(), 2), Multisets.immutableEntry(k1(), 1)); in testKeys() 59 assertEquals(0, multimap().keys().count(null)); in testKeysCountAbsentNullKey() 69 Multiset<K> keys = multimap().keys(); in testKeysWithNullKey() local 70 assertEquals(2, keys.count(null)); in testKeysWithNullKey() 71 assertEquals(1, keys.count(k1())); in testKeysWithNullKey() [all …]
|
/external/guava/android/guava-testlib/src/com/google/common/collect/testing/google/ |
D | MultimapKeysTester.java | 48 Multiset<K> keys = multimap().keys(); in testKeys() local 49 assertEquals(2, keys.count(k0())); in testKeys() 50 assertEquals(1, keys.count(k1())); in testKeys() 51 assertEquals(3, keys.size()); in testKeys() 52 assertContainsAllOf(keys, k0(), k1()); in testKeys() 54 keys.entrySet(), Multisets.immutableEntry(k0(), 2), Multisets.immutableEntry(k1(), 1)); in testKeys() 59 assertEquals(0, multimap().keys().count(null)); in testKeysCountAbsentNullKey() 69 Multiset<K> keys = multimap().keys(); in testKeysWithNullKey() local 70 assertEquals(2, keys.count(null)); in testKeysWithNullKey() 71 assertEquals(1, keys.count(k1())); in testKeysWithNullKey() [all …]
|
/external/tensorflow/tensorflow/core/framework/ |
D | lookup_interface.cc | 33 Status LookupInterface::CheckKeyAndValueTypes(const Tensor& keys, in CheckKeyAndValueTypes() argument 35 if (keys.dtype() != key_dtype()) { in CheckKeyAndValueTypes() 37 " but got ", keys.dtype()); in CheckKeyAndValueTypes() 46 Status LookupInterface::CheckKeyAndValueTensorsHelper(const Tensor& keys, in CheckKeyAndValueTensorsHelper() argument 48 TF_RETURN_IF_ERROR(CheckKeyAndValueTypes(keys, values)); in CheckKeyAndValueTensorsHelper() 49 TF_RETURN_IF_ERROR(CheckKeyShape(keys.shape())); in CheckKeyAndValueTensorsHelper() 51 TensorShape expected_value_shape = keys.shape(); in CheckKeyAndValueTensorsHelper() 64 Status LookupInterface::CheckKeyAndValueTensorsForInsert(const Tensor& keys, in CheckKeyAndValueTensorsForInsert() argument 66 return CheckKeyAndValueTensorsHelper(keys, values); in CheckKeyAndValueTensorsForInsert() 69 Status LookupInterface::CheckKeyAndValueTensorsForImport(const Tensor& keys, in CheckKeyAndValueTensorsForImport() argument [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/ |
D | CompositePublicKey.java | 24 private final List<PublicKey> keys; field in CompositePublicKey 31 public CompositePublicKey(PublicKey... keys) in CompositePublicKey() argument 33 if (keys == null || keys.length == 0) in CompositePublicKey() 38 List<PublicKey> keyList = new ArrayList<PublicKey>(keys.length); in CompositePublicKey() 39 for (int i = 0; i != keys.length; i++) in CompositePublicKey() 41 keyList.add(keys[i]); in CompositePublicKey() 43 this.keys = Collections.unmodifiableList(keyList); in CompositePublicKey() 53 return keys; in getPublicKeys() 70 for (int i = 0; i != keys.size(); i++) in getEncoded() 72 v.add(SubjectPublicKeyInfo.getInstance(keys.get(i).getEncoded())); in getEncoded() [all …]
|
D | CompositePrivateKey.java | 24 private final List<PrivateKey> keys; field in CompositePrivateKey 31 public CompositePrivateKey(PrivateKey... keys) in CompositePrivateKey() argument 33 if (keys == null || keys.length == 0) in CompositePrivateKey() 38 List<PrivateKey> keyList = new ArrayList<PrivateKey>(keys.length); in CompositePrivateKey() 39 for (int i = 0; i != keys.length; i++) in CompositePrivateKey() 41 keyList.add(keys[i]); in CompositePrivateKey() 43 this.keys = Collections.unmodifiableList(keyList); in CompositePrivateKey() 53 return keys; in getPrivateKeys() 70 for (int i = 0; i != keys.size(); i++) in getEncoded() 72 v.add(PrivateKeyInfo.getInstance(keys.get(i).getEncoded())); in getEncoded() [all …]
|
/external/marisa-trie/tests/ |
D | base-test.cc | 110 std::vector<std::string> keys; in TestKeyset() local 111 keys.push_back("apple"); in TestKeyset() 112 keys.push_back("orange"); in TestKeyset() 113 keys.push_back("banana"); in TestKeyset() 116 for (std::size_t i = 0; i < keys.size(); ++i) { in TestKeyset() 117 keyset.push_back(keys[i].c_str()); in TestKeyset() 121 total_length += keys[i].length(); in TestKeyset() 124 ASSERT(keyset[i].length() == keys[i].length()); in TestKeyset() 125 ASSERT(std::memcmp(keyset[i].ptr(), keys[i].c_str(), in TestKeyset() 158 keys.resize(1000); in TestKeyset() [all …]
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/ |
D | CompositePrivateKey.java | 24 private final List<PrivateKey> keys; field in CompositePrivateKey 31 public CompositePrivateKey(PrivateKey... keys) in CompositePrivateKey() argument 33 if (keys == null || keys.length == 0) in CompositePrivateKey() 38 List<PrivateKey> keyList = new ArrayList<PrivateKey>(keys.length); in CompositePrivateKey() 39 for (int i = 0; i != keys.length; i++) in CompositePrivateKey() 41 keyList.add(keys[i]); in CompositePrivateKey() 43 this.keys = Collections.unmodifiableList(keyList); in CompositePrivateKey() 53 return keys; in getPrivateKeys() 70 for (int i = 0; i != keys.size(); i++) in getEncoded() 72 v.add(PrivateKeyInfo.getInstance(keys.get(i).getEncoded())); in getEncoded() [all …]
|
D | CompositePublicKey.java | 24 private final List<PublicKey> keys; field in CompositePublicKey 31 public CompositePublicKey(PublicKey... keys) in CompositePublicKey() argument 33 if (keys == null || keys.length == 0) in CompositePublicKey() 38 List<PublicKey> keyList = new ArrayList<PublicKey>(keys.length); in CompositePublicKey() 39 for (int i = 0; i != keys.length; i++) in CompositePublicKey() 41 keyList.add(keys[i]); in CompositePublicKey() 43 this.keys = Collections.unmodifiableList(keyList); in CompositePublicKey() 53 return keys; in getPublicKeys() 70 for (int i = 0; i != keys.size(); i++) in getEncoded() 72 v.add(SubjectPublicKeyInfo.getInstance(keys.get(i).getEncoded())); in getEncoded() [all …]
|
/external/mp4parser/isoparser/src/main/java/com/coremedia/iso/boxes/mdat/ |
D | DummyMap.java | 14 HashSet<K> keys = new HashSet<K>(); field in DummyMap 25 public void addKeys(K[] keys) { in addKeys() argument 26 Collections.addAll(this.keys, keys); in addKeys() 31 return keys.size(); in size() 35 return keys.isEmpty(); in isEmpty() 39 return keys.contains(key); in containsKey() 47 return keys.contains(key) ? value : null; in get() 52 keys.add(key); in put() 58 keys.remove(key); in remove() 65 this.keys.add(k); in putAll() [all …]
|
/external/conscrypt/testing/src/main/java/org/conscrypt/java/security/ |
D | DefaultKeys.java | 210 private static final HashMap<String, KeySpec> keys = new HashMap<String, KeySpec>(); field in DefaultKeys 212 keys.put("DH_public", new X509EncodedKeySpec(DH_public)); 213 keys.put("DH_private", new PKCS8EncodedKeySpec(DH_private)); 214 keys.put("DSA_public", new X509EncodedKeySpec(DSA_public)); 215 keys.put("DSA_private", new PKCS8EncodedKeySpec(DSA_private)); 216 keys.put("RSA_public", new X509EncodedKeySpec(RSA_public)); 217 keys.put("RSA_private", new PKCS8EncodedKeySpec(RSA_private)); 218 keys.put("EC_public", new X509EncodedKeySpec(EC_public)); 219 keys.put("EC_private", new PKCS8EncodedKeySpec(EC_private)); 220 keys.put("XDH_public", new X509EncodedKeySpec(X25519_public)); [all …]
|
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/java/security/ |
D | DefaultKeys.java | 294 private static final HashMap<String, KeySpec> keys = new HashMap<String, KeySpec>(); field in DefaultKeys 296 keys.put("DH_public", new X509EncodedKeySpec(DH_public)); 297 keys.put("DH_private", new PKCS8EncodedKeySpec(DH_private)); 298 keys.put("DSA_public", new X509EncodedKeySpec(DSA_public)); 299 keys.put("DSA_private", new PKCS8EncodedKeySpec(DSA_private)); 300 keys.put("RSA_public", new X509EncodedKeySpec(RSA_public)); 301 keys.put("RSA_private", new PKCS8EncodedKeySpec(RSA_private)); 302 keys.put("EC_public", new X509EncodedKeySpec(EC_public)); 303 keys.put("EC_private", new PKCS8EncodedKeySpec(EC_private)); 304 keys.put("XDH_public", new X509EncodedKeySpec(X25519_public)); [all …]
|
/external/guava/guava-tests/benchmark/com/google/common/collect/ |
D | MapBenchmark.java | 45 Map<Element, Element> create(Collection<Element> keys) { in create() argument 47 for (Element element : keys) { in create() 55 Map<Element, Element> create(Collection<Element> keys) { in create() argument 57 for (Element element : keys) { in create() 65 Map<Element, Element> create(Collection<Element> keys) { in create() argument 66 return Collections.unmodifiableMap(Hash.create(keys)); in create() 71 Map<Element, Element> create(Collection<Element> keys) { in create() argument 72 return Collections.synchronizedMap(Hash.create(keys)); in create() 77 Map<Element, Element> create(Collection<Element> keys) { in create() argument 79 for (Element element : keys) { in create() [all …]
|