Home
last modified time | relevance | path

Searched refs:map_key (Results 1 – 14 of 14) sorted by relevance

/external/protobuf/src/google/protobuf/
Dmap_test_util.cc566 MapKey map_key; in SetMapFieldsViaMapReflection() local
567 map_key.SetInt32Value(0); in SetMapFieldsViaMapReflection()
569 message, F("map_int32_int32"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
572 map_key.SetInt64Value(0); in SetMapFieldsViaMapReflection()
574 message, F("map_int64_int64"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
577 map_key.SetUInt32Value(0); in SetMapFieldsViaMapReflection()
579 message, F("map_uint32_uint32"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
582 map_key.SetUInt64Value(0); in SetMapFieldsViaMapReflection()
584 message, F("map_uint64_uint64"), map_key, &map_val)); in SetMapFieldsViaMapReflection()
587 map_key.SetInt32Value(0); in SetMapFieldsViaMapReflection()
[all …]
Dmap_field_inl.h48 T UnwrapMapKey(const MapKey& map_key);
50 inline int32 UnwrapMapKey<int32>(const MapKey& map_key) {
51 return map_key.GetInt32Value();
54 inline uint32 UnwrapMapKey<uint32>(const MapKey& map_key) {
55 return map_key.GetUInt32Value();
58 inline int64 UnwrapMapKey<int64>(const MapKey& map_key) {
59 return map_key.GetInt64Value();
62 inline uint64 UnwrapMapKey<uint64>(const MapKey& map_key) {
63 return map_key.GetUInt64Value();
66 inline bool UnwrapMapKey<bool>(const MapKey& map_key) {
[all …]
Dmap_field.cc175 const MapKey& map_key) const { in ContainsMapKey()
177 Map<MapKey, MapValueRef>::const_iterator iter = map.find(map_key); in ContainsMapKey()
182 const MapKey& map_key, MapValueRef* val) { in InsertOrLookupMapValue() argument
186 Map<MapKey, MapValueRef>::iterator iter = map->find(map_key); in InsertOrLookupMapValue()
189 MapValueRef& map_val = (*map)[map_key]; in InsertOrLookupMapValue()
229 bool DynamicMapField::DeleteMapValue(const MapKey& map_key) { in DeleteMapValue() argument
231 Map<MapKey, MapValueRef>::iterator iter = map_.find(map_key); in DeleteMapValue()
284 const MapKey& map_key = it->first; in SyncRepeatedFieldWithMapNoLock() local
287 reflection->SetString(new_entry, key_des, map_key.GetStringValue()); in SyncRepeatedFieldWithMapNoLock()
290 reflection->SetInt64(new_entry, key_des, map_key.GetInt64Value()); in SyncRepeatedFieldWithMapNoLock()
[all …]
Dmap_field.h89 virtual bool ContainsMapKey(const MapKey& map_key) const = 0;
91 const MapKey& map_key, MapValueRef* val) = 0;
92 virtual bool DeleteMapValue(const MapKey& map_key) = 0;
254 bool ContainsMapKey(const MapKey& map_key) const;
255 bool InsertOrLookupMapValue(const MapKey& map_key, MapValueRef* val);
256 bool DeleteMapValue(const MapKey& map_key);
305 bool ContainsMapKey(const MapKey& map_key) const;
306 bool InsertOrLookupMapValue(const MapKey& map_key, MapValueRef* val);
307 bool DeleteMapValue(const MapKey& map_key);
Dmap_field_test.cc78 bool ContainsMapKey(const MapKey& map_key) const { in ContainsMapKey()
81 bool InsertOrLookupMapValue(const MapKey& map_key, MapValueRef* val) { in InsertOrLookupMapValue() argument
84 bool DeleteMapValue(const MapKey& map_key) { in DeleteMapValue() argument
Dmap.h1689 operator()(const google::protobuf::MapKey& map_key) const {
1690 switch (map_key.type()) {
1698 return hash<string>()(map_key.GetStringValue());
1700 return hash< ::google::protobuf::int64>()(map_key.GetInt64Value());
1702 return hash< ::google::protobuf::int32>()(map_key.GetInt32Value());
1704 return hash< ::google::protobuf::uint64>()(map_key.GetUInt64Value());
1706 return hash< ::google::protobuf::uint32>()(map_key.GetUInt32Value());
1708 return hash<bool>()(map_key.GetBoolValue());
/external/protobuf/python/google/protobuf/pyext/
Dmap_container.cc337 MapKey map_key; in Contains() local
339 if (!PythonToMapKey(key, self->key_field_descriptor, &map_key)) { in Contains()
344 map_key)) { in Contains()
442 MapKey map_key; in ScalarMapGetItem() local
445 if (!PythonToMapKey(key, self->key_field_descriptor, &map_key)) { in ScalarMapGetItem()
450 map_key, &value)) { in ScalarMapGetItem()
463 MapKey map_key; in ScalarMapSetItem() local
466 if (!PythonToMapKey(key, self->key_field_descriptor, &map_key)) { in ScalarMapSetItem()
475 map_key, &value); in ScalarMapSetItem()
484 map_key)) { in ScalarMapSetItem()
[all …]
Dmessage.cc1074 PyObject* map_key; in CheckAndGetInteger() local
1076 while (PyDict_Next(value, &map_pos, &map_key, &map_value)) { in CheckAndGetInteger()
1078 function_return.reset(PyObject_GetItem(map.get(), map_key)); in CheckAndGetInteger()
/external/kernel-headers/original/uapi/sound/
Dsfnt_info.h185 int map_bank, map_instr, map_key; /* key = -1 means all keys */ member
/external/protobuf/src/google/protobuf/util/internal/
Dprotostream_objectsource.cc263 string map_key; in RenderMap() local
273 map_key = ReadFieldValueAsString(*field); in RenderMap()
275 if (map_key.empty()) { in RenderMap()
284 ASSIGN_OR_RETURN(map_key, MapKeyDefaultValueAsString(*key_field)); in RenderMap()
286 RETURN_IF_ERROR(RenderField(field, map_key, ow)); in RenderMap()
Dprotostream_objectwriter.h216 bool InsertMapKeyIfNotPresent(StringPiece map_key);
Dprotostream_objectwriter.cc404 StringPiece map_key) { in InsertMapKeyIfNotPresent() argument
405 return InsertIfNotPresent(&map_keys_, map_key.ToString()); in InsertMapKeyIfNotPresent()
/external/iproute2/tc/
Dtc_bpf.c635 uint32_t map_key; in bpf_graft_map() local
642 map_key = *key; in bpf_graft_map()
644 ret = sscanf(section, "%*i/%i", &map_key); in bpf_graft_map()
668 ret = bpf_map_update(map_fd, &map_key, &prog_fd, BPF_ANY); in bpf_graft_map()
/external/syslinux/efi/
Dmain.c658 UINTN i, nr_entries, map_key, desc_size; in emalloc() local
665 map_buf = get_memory_map(&nr_entries, &map_key, in emalloc()