/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/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/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/ImageMagick/MagickCore/ |
D | thread.c | 96 **keys; in CreateMagickThreadKey() 98 keys=(MagickThreadValue **) key; in CreateMagickThreadKey() 99 *keys=(MagickThreadValue *) AcquireQuantumMemory(1,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/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/tensorflow/tensorflow/core/kernels/lookup_tables/ |
D | flat_hash_map_op_kernels.cc | 62 Status Initialize(absl::Span<const absl::string_view> keys, in Initialize() argument 64 if (ABSL_PREDICT_FALSE(keys.size() != values.size())) { in Initialize() 67 keys.size(), " vs ", values.size(), ")."); in Initialize() 70 table_.reserve(table_.size() + keys.size()); in Initialize() 71 for (size_t i = 0; i < keys.size(); ++i) { in Initialize() 72 table_.insert_or_assign(string(keys[i]), values[i]); in Initialize() 77 Status Initialize(absl::Span<const string> keys, in Initialize() argument 79 if (ABSL_PREDICT_FALSE(keys.size() != values.size())) { in Initialize() 82 keys.size(), " vs ", values.size(), ")."); in Initialize() 85 table_.reserve(table_.size() + keys.size()); in Initialize() [all …]
|
D | generic_table_op_kernels.cc | 40 static Status TensorInsert(const Tensor& keys, const Tensor& values, in TensorInsert() argument 42 if (keys.NumElements() != values.NumElements()) { in TensorInsert() 44 "OpKernel tried to map keys vector of size ", keys.NumElements(), in TensorInsert() 47 return TensorInsertHelper(keys, values, table); in TensorInsert() 59 TensorInsertHelper(const Tensor& keys, const Tensor& values, in TensorInsertHelper() argument 61 return table->InsertOrAssign(keys.flat<KeyType>(), in TensorInsertHelper() 69 TensorInsertHelper(const Tensor& keys, const Tensor& values, in TensorInsertHelper() argument 71 const auto keys_flat = keys.flat<Variant>(); in TensorInsertHelper() 99 static Status TensorLookup(const resource_type& table, const Tensor& keys, in TensorLookup() argument 103 if (keys.NumElements() != values->NumElements()) { in TensorLookup() [all …]
|
/external/linux-kselftest/tools/testing/selftests/bpf/ |
D | bpf_flow.c | 93 struct bpf_flow_keys *keys = skb->flow_keys; in parse_eth_proto() local 95 keys->n_proto = proto; in parse_eth_proto() 131 struct bpf_flow_keys *keys = skb->flow_keys; in parse_ip_proto() local 139 keys->ip_proto = proto; in parse_ip_proto() 147 keys->is_encap = true; in parse_ip_proto() 150 keys->is_encap = true; in parse_ip_proto() 161 keys->thoff += sizeof(*gre); /* Step over GRE Flags and Proto */ in parse_ip_proto() 163 keys->thoff += 4; /* Step over chksum and Padding */ in parse_ip_proto() 165 keys->thoff += 4; /* Step over key */ in parse_ip_proto() 167 keys->thoff += 4; /* Step over sequence number */ in parse_ip_proto() [all …]
|
/external/tensorflow/tensorflow/contrib/linear_optimizer/python/ops/ |
D | sharded_mutable_dense_hashtable.py | 107 def _shard_indices(self, keys): argument 108 key_shape = keys.get_shape() 112 keys = array_ops.slice(keys, [0, 0], [key_shape.dims[0].value, 1]) 113 keys = array_ops.reshape(keys, [-1]) 114 indices = math_ops.mod(math_ops.abs(keys), self._num_shards) 117 def _check_keys(self, keys): argument 118 if not keys.get_shape().is_fully_defined(): 120 keys.get_shape()) 121 if keys.get_shape().ndims != 1 and keys.get_shape().ndims != 2: 123 keys.get_shape()) [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 …]
|
D | scan.l | 72 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 …]
|
/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 …]
|
D | lookup_interface.h | 50 virtual Status Find(OpKernelContext* ctx, const Tensor& keys, Tensor* values, 64 virtual Status Insert(OpKernelContext* ctx, const Tensor& keys, 76 virtual Status Remove(OpKernelContext* ctx, const Tensor& keys) = 0; 91 virtual Status ImportValues(OpKernelContext* ctx, const Tensor& keys, 113 virtual Status CheckKeyAndValueTensorsForInsert(const Tensor& keys, 118 virtual Status CheckKeyAndValueTensorsForImport(const Tensor& keys, 125 virtual Status CheckKeyTensorForRemove(const Tensor& keys); 132 Status CheckFindArguments(const Tensor& keys, const Tensor& default_value); 149 Status CheckKeyAndValueTypes(const Tensor& keys, const Tensor& values); 155 Status CheckKeyAndValueTensorsHelper(const Tensor& keys,
|
/external/guava/guava-tests/benchmark/com/google/common/collect/ |
D | MapBenchmark.java | 45 @Override Map<Element, Element> create(Collection<Element> keys) { in create() argument 47 for (Element element: keys) { in create() 54 @Override Map<Element, Element> create(Collection<Element> keys) { in create() argument 56 for (Element element: keys) { in create() 63 @Override Map<Element, Element> create(Collection<Element> keys) { in create() argument 64 return Collections.unmodifiableMap(Hash.create(keys)); in create() 68 @Override Map<Element, Element> create(Collection<Element> keys) { in create() argument 69 return Collections.synchronizedMap(Hash.create(keys)); in create() 73 @Override Map<Element, Element> create(Collection<Element> keys) { in create() argument 75 for (Element element: keys) { in create() [all …]
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
D | MultimapKeysTester.java | 49 Multiset<K> keys = multimap().keys(); in testKeys() local 50 assertEquals(2, keys.count(sampleKeys().e0)); in testKeys() 51 assertEquals(1, keys.count(sampleKeys().e1)); in testKeys() 52 assertEquals(3, keys.size()); in testKeys() 53 assertThat(keys).has().allOf(sampleKeys().e0, sampleKeys().e1); in testKeys() 54 assertThat(keys.entrySet()).has().allOf( in testKeys() 61 assertEquals(0, multimap().keys().count(null)); in testKeysCountAbsentNullKey() 71 Multiset<K> keys = multimap().keys(); in testKeysWithNullKey() local 72 assertEquals(2, keys.count(null)); in testKeysWithNullKey() 73 assertEquals(1, keys.count(sampleKeys().e1)); in testKeysWithNullKey() [all …]
|
/external/grpc-grpc/src/core/ext/transport/chttp2/transport/ |
D | stream_map.cc | 31 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 66 GPR_ASSERT(count == 0 || keys[count - 1] < key); in grpc_chttp2_stream_map_add() 72 count = compact(keys, values, count); in grpc_chttp2_stream_map_add() 78 map->keys = keys = static_cast<uint32_t*>( in grpc_chttp2_stream_map_add() 79 gpr_realloc(keys, capacity * sizeof(uint32_t))); in grpc_chttp2_stream_map_add() 85 keys[count] = key; in grpc_chttp2_stream_map_add() [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/jemalloc/test/unit/ |
D | rtree.c | 62 uintptr_t keys[] = {0, 1, in TEST_BEGIN() local 70 for (j = 0; j < sizeof(keys)/sizeof(uintptr_t); j++) { in TEST_BEGIN() 71 assert_false(rtree_set(&rtree, keys[j], &node), in TEST_BEGIN() 73 for (k = 0; k < sizeof(keys)/sizeof(uintptr_t); k++) { in TEST_BEGIN() 74 assert_ptr_eq(rtree_get(&rtree, keys[k], true), in TEST_BEGIN() 79 j, k, keys[j], keys[k]); in TEST_BEGIN() 85 assert_false(rtree_set(&rtree, keys[j], NULL), in TEST_BEGIN() 103 uintptr_t keys[NSET]; in TEST_BEGIN() local 112 keys[j] = (uintptr_t)gen_rand64(sfmt); in TEST_BEGIN() 113 assert_false(rtree_set(&rtree, keys[j], &node), in TEST_BEGIN() [all …]
|
/external/tensorflow/tensorflow/python/ops/ |
D | lookup_ops.py | 141 def lookup(self, keys, name=None): argument 195 def lookup(self, keys, name=None): argument 211 key_tensor = keys 212 if isinstance(keys, sparse_tensor.SparseTensor): 213 key_tensor = keys.values 215 if keys.dtype.base_dtype != self._key_dtype: 217 (self._key_dtype, keys.dtype)) 226 if isinstance(keys, sparse_tensor.SparseTensor): 227 return sparse_tensor.SparseTensor(keys.indices, values, keys.dense_shape) 373 def __init__(self, keys, values, key_dtype=None, value_dtype=None, name=None): argument [all …]
|
/external/tensorflow/tensorflow/contrib/slim/python/slim/data/ |
D | tfexample_decoder.py | 51 def __init__(self, keys): argument 59 if not isinstance(keys, (tuple, list)): 60 keys = [keys] 61 self._keys = keys 64 def keys(self): member in ItemHandler 87 def __init__(self, keys, func): argument 95 super(ItemHandlerCallback, self).__init__(keys) 106 def __init__(self, keys=None, prefix=''): argument 117 if keys is None: 118 keys = ['ymin', 'xmin', 'ymax', 'xmax'] [all …]
|
/external/tensorflow/tensorflow/core/common_runtime/ |
D | rendezvous_util.cc | 25 const std::vector<string>& keys, gtl::ArraySlice<Tensor> tensors_to_send) { in SendTensorsToRendezvous() argument 26 if (keys.size() != tensors_to_send.size()) { in SendTensorsToRendezvous() 29 keys.size(), "; tensors_to_send.size() = ", tensors_to_send.size()); in SendTensorsToRendezvous() 31 if (!alloc_attrs.empty() && (keys.size() != alloc_attrs.size())) { in SendTensorsToRendezvous() 34 "keys.size() = ", keys.size(), in SendTensorsToRendezvous() 43 for (int i = 0; i < keys.size(); ++i) { in SendTensorsToRendezvous() 49 TF_RETURN_IF_ERROR(Rendezvous::ParseKey(keys[i], &parsed)); in SendTensorsToRendezvous() 59 const std::vector<string>& keys, std::vector<Tensor>* received_tensors, in RecvOutputsFromRendezvousAsync() argument 61 if (keys.empty()) { in RecvOutputsFromRendezvousAsync() 65 if (!alloc_attrs.empty() && (keys.size() != alloc_attrs.size())) { in RecvOutputsFromRendezvousAsync() [all …]
|
/external/boringssl/src/third_party/wycheproof_testvectors/ |
D | x25519_test.txt | 26 # public keys, doing so is not a strict requirement according to RFC 7748. 35 # Public keys are either points on curve25519 or points on its twist. 36 # Implementations may either reject such keys or compute X25519 using the twist. 38 # correct, since otherwise attacks with invalid keys are possible. 47 # Public keys are either points on curve25519 or points on its twist. 48 # Implementations may either reject such keys or compute X25519 using the twist. 50 # correct, since otherwise attacks with invalid keys are possible. 59 # Public keys are either points on curve25519 or points on its twist. 60 # Implementations may either reject such keys or compute X25519 using the twist. 62 # correct, since otherwise attacks with invalid keys are possible. [all …]
|
/external/syzkaller/vendor/google.golang.org/appengine/datastore/ |
D | metadata.go | 20 keys, err := q.GetAll(ctx, nil) 26 return keyNames(keys), nil 33 keys, err := q.GetAll(ctx, nil) 37 return keyNames(keys), nil 41 func keyNames(keys []*Key) []string { 42 n := make([]string, 0, len(keys)) 43 for _, k := range keys { 70 keys, err := q.GetAll(ctx, &props) 75 propMap[keys[i].StringID()] = p.Repr
|
/external/python/cpython3/Tools/scripts/ |
D | parse_html5_entities.py | 34 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:
|
/external/perfetto/tools/ |
D | tmux | 180 tmux send-keys "clear" C-m 182 tmux send-keys "adb shell" C-m 186 tmux send-keys "clear" C-m 188 tmux send-keys "adb shell" C-m 192 tmux send-keys "clear" C-m 194 tmux send-keys "adb shell" C-m 200 tmux send-keys "PS1='[traced_probes]$ '" Enter 201 tmux send-keys "cd $DIR" Enter 202 tmux send-keys "$PREFIX ./traced $POSTFIX" Enter 205 tmux send-keys "PS1='[traced]$ '" Enter [all …]
|