Home
last modified time | relevance | path

Searched refs:KeyType (Results 1 – 25 of 93) sorted by relevance

1234

/external/perfetto/src/trace_processor/storage/
Dmetadata.h32 F(benchmark_description, KeyType::kSingle, Variadic::kString), \
33 F(benchmark_name, KeyType::kSingle, Variadic::kString), \
34 F(benchmark_start_time_us, KeyType::kSingle, Variadic::kInt), \
35 F(benchmark_had_failures, KeyType::kSingle, Variadic::kInt), \
36 F(benchmark_label, KeyType::kSingle, Variadic::kString), \
37 F(benchmark_story_name, KeyType::kSingle, Variadic::kString), \
38 F(benchmark_story_run_index, KeyType::kSingle, Variadic::kInt), \
39 F(benchmark_story_run_time_us, KeyType::kSingle, Variadic::kInt), \
40 F(benchmark_story_tags, KeyType::kMulti, Variadic::kString), \
41 F(statsd_triggering_subscription_id, KeyType::kSingle, Variadic::kInt), \
[all …]
/external/androidplot/AndroidPlot-Core/src/main/java/com/androidplot/util/
DZHash.java26 public class ZHash<KeyType, ValueType> implements ZIndexable<KeyType> {
28 private HashMap<KeyType, ValueType> hash;
31 private ZLinkedList<KeyType> zlist;
34 hash = new HashMap<KeyType, ValueType>();
35 zlist = new ZLinkedList<KeyType>();
44 public ValueType get(KeyType key) { in get()
48 public List<KeyType> getKeysAsList() { in getKeysAsList()
58 public synchronized void addToTop(KeyType key, ValueType value) { in addToTop()
75 public synchronized void addToBottom(KeyType key, ValueType value) { in addToBottom()
86 public synchronized boolean moveToTop(KeyType element) { in moveToTop()
[all …]
/external/libchrome/base/containers/
Dmru_cache.h46 template <class KeyType, class ValueType, class CompareType>
48 typedef std::map<KeyType, ValueType, CompareType> Type;
52 template <class KeyType,
61 typedef std::pair<KeyType, PayloadType> value_type;
65 typedef typename MapType<KeyType,
95 iterator Put(const KeyType& key, Payload&& payload) { in Put()
116 iterator Get(const KeyType& key) { in Get()
129 iterator Peek(const KeyType& key) { in Peek()
136 const_iterator Peek(const KeyType& key) const { in Peek()
222 template <class KeyType,
[all …]
Did_map.h38 using KeyType = K;
43 using HashTable = std::unordered_map<KeyType, V>;
66 KeyType Add(V data) { return AddInternal(std::move(data)); } in Add()
72 void AddWithID(V data, KeyType id) { AddWithIDInternal(std::move(data), id); } in AddWithID()
74 void Remove(KeyType id) { in Remove()
91 V Replace(KeyType id, V new_data) { in Replace()
118 T* Lookup(KeyType id) const { in Lookup()
175 KeyType GetCurrentKey() const { in GetCurrentKey()
215 struct KeyIterator : std::iterator<std::forward_iterator_tag, KeyType> {
220 KeyType operator*() const { return iter_->first; }
[all …]
/external/angle/src/common/third_party/base/anglebase/containers/
Dmru_cache.h42 template <class KeyType, class ValueType, class CompareType>
45 typedef std::map<KeyType, ValueType, CompareType> Type;
49 template <class KeyType,
58 typedef std::pair<KeyType, PayloadType> value_type;
63 typename MapType<KeyType, typename PayloadList::iterator, HashOrCompareType>::Type KeyIndex;
94 iterator Put(const KeyType &key, Payload &&payload) in Put()
119 iterator Get(const KeyType &key) in Get()
133 iterator Peek(const KeyType &key) in Peek()
141 const_iterator Peek(const KeyType &key) const in Peek()
230 template <class KeyType, class PayloadType, class CompareType = std::less<KeyType>>
[all …]
/external/eigen/unsupported/Eigen/src/SparseExtra/
DRandomSetter.h21 typedef int KeyType; typedef
22 typedef std::map<KeyType,Scalar> Type;
27 static void setInvalidKey(Type&, const KeyType&) {} in setInvalidKey()
49 typedef int KeyType; typedef
50 typedef std::unordered_map<KeyType,Scalar> Type;
55 static void setInvalidKey(Type&, const KeyType&) {} in setInvalidKey()
66 typedef int KeyType; typedef
67 typedef google::dense_hash_map<KeyType,Scalar> Type;
72 static void setInvalidKey(Type& map, const KeyType& k) in setInvalidKey()
84 typedef int KeyType; typedef
[all …]
/external/bcc/src/cc/api/
DBPFTable.h38 template <class KeyType, class ValueType>
43 StatusTuple string_to_key(const std::string& key_str, KeyType* key) { in string_to_key()
51 StatusTuple key_to_string(const KeyType* key, std::string& key_str) { in key_to_string()
193 template <class KeyType, class ValueType>
194 class BPFHashTable : public BPFTableBase<KeyType, ValueType> {
197 : BPFTableBase<KeyType, ValueType>(desc) { in BPFHashTable()
206 virtual StatusTuple get_value(const KeyType& key, ValueType& value) { in get_value()
207 if (!this->lookup(const_cast<KeyType*>(&key), get_value_addr(value))) in get_value()
212 virtual StatusTuple update_value(const KeyType& key, const ValueType& value) { in update_value()
213 if (!this->update(const_cast<KeyType*>(&key), in update_value()
[all …]
DBPF.h123 template <class KeyType, class ValueType>
124 BPFHashTable<KeyType, ValueType> get_hash_table(const std::string& name) { in get_hash_table()
127 return BPFHashTable<KeyType, ValueType>(it->second); in get_hash_table()
128 return BPFHashTable<KeyType, ValueType>({}); in get_hash_table()
131 template <class KeyType, class ValueType>
132 BPFPercpuHashTable<KeyType, ValueType> get_percpu_hash_table( in get_percpu_hash_table()
136 return BPFPercpuHashTable<KeyType, ValueType>(it->second); in get_percpu_hash_table()
137 return BPFPercpuHashTable<KeyType, ValueType>({}); in get_percpu_hash_table()
/external/antlr/runtime/Cpp/include/
Dantlr3memory.hpp101 template<class KeyType, class ValueType>
102 class UnOrderedMapType : public std::map< KeyType, ValueType, std::less<KeyType>,
103 AllocatorType<std::pair<KeyType, ValueType> > >
107 template<class KeyType, class ValueType>
108 class OrderedMapType : public std::map< KeyType, ValueType, std::less<KeyType>,
109 AllocatorType<std::pair<KeyType, ValueType> > >
/external/llvm-project/lldb/include/lldb/DataFormatters/
DTypeCategoryMap.h26 typedef ConstString KeyType; typedef
33 typedef std::map<KeyType, ValueSP> MapType;
45 void Add(KeyType name, const ValueSP &entry);
47 bool Delete(KeyType name);
49 bool Enable(KeyType category_name, Position pos = Default);
51 bool Disable(KeyType category_name);
63 bool Get(KeyType name, ValueSP &entry);
/external/webrtc/sdk/android/api/org/webrtc/
DRtcCertificatePem.java48 return nativeGenerateCertificate(PeerConnection.KeyType.ECDSA, DEFAULT_EXPIRY); in generateCertificate()
55 public static RtcCertificatePem generateCertificate(PeerConnection.KeyType keyType) { in generateCertificate()
64 return nativeGenerateCertificate(PeerConnection.KeyType.ECDSA, expires); in generateCertificate()
69 PeerConnection.KeyType keyType, long expires) { in generateCertificate()
74 PeerConnection.KeyType keyType, long expires); in nativeGenerateCertificate()
/external/tensorflow/tensorflow/lite/experimental/resource/
Dstatic_hashtable.cc25 template <typename KeyType, typename ValueType>
26 TfLiteStatus StaticHashtable<KeyType, ValueType>::Lookup( in Lookup()
37 auto key_tensor_reader = TensorReader<KeyType>(keys); in Lookup()
59 template <typename KeyType, typename ValueType>
60 TfLiteStatus StaticHashtable<KeyType, ValueType>::Import( in Import()
73 auto key_tensor_reader = TensorReader<KeyType>(keys); in Import()
/external/webrtc/rtc_base/
Dssl_identity.h32 enum KeyType { KT_RSA, KT_ECDSA, KT_LAST, KT_DEFAULT = KT_ECDSA }; enum
56 explicit KeyParams(KeyType key_type = KT_DEFAULT);
74 KeyType type() const { return type_; } in type()
77 KeyType type_;
87 KeyType IntKeyTypeFamilyToKeyType(int key_type_family);
118 KeyType key_type);
/external/swiftshader/third_party/llvm-10.0/configs/common/lib/Target/ARM/
DARMGenSystemRegister.inc164 struct KeyType {
167 KeyType Key = { Name.upper() };
170 [](const IndexType &LHS, const KeyType &RHS) {
224 struct KeyType {
227 KeyType Key = { Encoding };
230 [](const IndexType &LHS, const KeyType &RHS) {
338 struct KeyType {
341 KeyType Key = { Name.upper() };
344 [](const IndexType &LHS, const KeyType &RHS) {
402 struct KeyType {
[all …]
/external/tensorflow/tensorflow/lite/kernels/hashtable/
Dhashtable_ops_test.cc111 template <typename KeyType, typename ValueType>
256 void SetTable(std::initializer_list<KeyType> keys, in SetTable()
258 keys_ = std::vector<KeyType>(keys); in SetTable()
262 void SetTableTwo(std::initializer_list<KeyType> keys, in SetTableTwo()
264 keys_two_ = std::vector<KeyType>(keys); in SetTableTwo()
268 void SetQuery(std::initializer_list<KeyType> queries, in SetQuery()
270 queries_ = std::vector<KeyType>(queries); in SetQuery()
274 void SetQueryForTableTwo(std::initializer_list<KeyType> queries, in SetQueryForTableTwo()
276 queries_two_ = std::vector<KeyType>(queries); in SetQueryForTableTwo()
485 std::vector<KeyType> keys_;
[all …]
/external/google-breakpad/src/processor/
Dstatic_map_unittest.cc42 typedef int KeyType; typedef
43 typedef google_breakpad::StaticMap< KeyType, ValueType > TestMap;
44 typedef std::map< KeyType, ValueType > StdMap;
107 sizeof(uint32_t) + kNumNodes * (sizeof(uint32_t) + sizeof(KeyType)); in TEST_F()
124 sizeof(uint32_t) + kNumNodes * (sizeof(uint32_t) + sizeof(KeyType)); in TEST_F()
129 KeyType* keys = reinterpret_cast<KeyType*>( in TEST_F()
174 sizeof(uint32_t) + sizeof(KeyType) + sizeof(ValueType); in SetUp()
240 void FindTester(int test_case, const KeyType &key) { in FindTester()
246 void LowerBoundTester(int test_case, const KeyType &key) { in LowerBoundTester()
252 void UpperBoundTester(int test_case, const KeyType &key) { in UpperBoundTester()
[all …]
/external/perfetto/src/trace_processor/importers/proto/
Dmetadata_tracker.cc37 PERFETTO_DCHECK(metadata::kKeyTypes[key] == metadata::KeyType::kSingle); in SetMetadata()
51 row.key_type = key_type_ids_[static_cast<size_t>(metadata::KeyType::kSingle)]; in SetMetadata()
60 PERFETTO_CHECK(metadata::kKeyTypes[key] == metadata::KeyType::kSingle); in GetMetadataForTesting()
72 PERFETTO_DCHECK(metadata::kKeyTypes[key] == metadata::KeyType::kMulti); in AppendMetadata()
78 row.key_type = key_type_ids_[static_cast<size_t>(metadata::KeyType::kMulti)]; in AppendMetadata()
89 row.key_type = key_type_ids_[static_cast<size_t>(metadata::KeyType::kSingle)]; in SetDynamicMetadata()
/external/clang/test/SemaCXX/
DPR11358.cpp29 template <typename KeyType, typename ValueType>
30 void MapTest(hash_map<KeyType, ValueType> map) { in MapTest() argument
31 …for (hash_map<KeyType, ValueType>::const_iterator it = map.begin(); // expected-error{{missing 'ty… in MapTest()
/external/llvm-project/clang/test/SemaCXX/
DPR11358.cpp29 template <typename KeyType, typename ValueType>
30 void MapTest(hash_map<KeyType, ValueType> map) { in MapTest() argument
31 …for (hash_map<KeyType, ValueType>::const_iterator it = map.begin(); // expected-error{{missing 'ty… in MapTest()
/external/rust/crates/ring/src/
Dhkdf.rs48 impl KeyType for Algorithm {
102 pub trait KeyType { trait
127 pub fn expand<'a, L: KeyType>( in expand()
161 pub struct Okm<'a, L: KeyType> {
168 impl<L: KeyType> Okm<'_, L> {
/external/swiftshader/third_party/llvm-10.0/configs/common/lib/Target/AArch64/
DAArch64GenSystemOperands.inc1096 struct KeyType {
1099 KeyType Key = { Name.upper() };
1102 [](const IndexType &LHS, const KeyType &RHS) {
1137 struct KeyType {
1140 KeyType Key = { Encoding };
1143 [](const IndexType &LHS, const KeyType &RHS) {
1181 struct KeyType {
1184 KeyType Key = { Name.upper() };
1187 [](const IndexType &LHS, const KeyType &RHS) {
1211 struct KeyType {
[all …]
/external/vixl/test/
Dtest-invalset.cc36 typedef ptrdiff_t KeyType; typedef
43 Obj(KeyType key, ValType val) : key_(key), val_(val) {} in Obj()
44 KeyType key_;
63 static const KeyType kInvalidKey = PTRDIFF_MAX;
69 KeyType,
76 inline KeyType InvalSet<Obj,
78 KeyType,
87 KeyType,
90 kReclaimFactor>::SetKey(Obj* obj, KeyType key) { in SetKey()
/external/swiftshader/third_party/subzero/src/
DIceGlobalContext.cpp65 template <typename KeyType, class Enable = void> struct KeyCompare {};
67 template <typename KeyType>
68 struct KeyCompare<KeyType,
70 std::is_integral<KeyType>::value ||
71 std::is_same<KeyType, RelocatableTuple>::value>::type> {
72 bool operator()(const KeyType &Value1, const KeyType &Value2) const { in operator ()()
76 template <typename KeyType>
77 struct KeyCompare<KeyType, typename std::enable_if<
78 std::is_floating_point<KeyType>::value>::type> {
79 bool operator()(const KeyType &Value1, const KeyType &Value2) const { in operator ()()
[all …]
/external/webrtc/pc/test/
Dfake_rtc_certificate_generator.h186 const rtc::RTCCertificatePEM& get_pem(const rtc::KeyType& key_type) const { in get_pem()
197 const std::string& get_key(const rtc::KeyType& key_type) const { in get_key()
200 const std::string& get_cert(const rtc::KeyType& key_type) const { in get_cert()
221 rtc::KeyType key_type = in OnMessage()
/external/tensorflow/tensorflow/core/kernels/
Dmap_stage_op.cc65 using KeyType = Tensor; typedef
67 using MapType = std::map<KeyType, Data, KeyTensorLess>;
73 using KeyType = Tensor; typedef
76 std::unordered_map<KeyType, Data, KeyTensorHash, KeyTensorEqual>;
89 using KeyType = typename MapTraits<Ordered, OptionalTuple>::KeyType; typedef in tensorflow::__anond7e31e9a0111::StagingMap
251 Status put_incomplete(const KeyType& key, const Tensor& indices, in put_incomplete()
328 Status put_complete(const KeyType& key, OptionalTuple* tuple) in put_complete()
347 Status put(KeyType* key, const Tensor* indices, OptionalTuple* tuple) { in put()
376 Status get(const KeyType* key, const Tensor* indices, Tuple* tuple) { in get()
398 Status pop(const KeyType* key, const Tensor* indices, Tuple* tuple) { in pop()
[all …]

1234