Home
last modified time | relevance | path

Searched refs:map_key (Results 1 – 21 of 21) 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/tensorflow/tensorflow/contrib/session_bundle/
Dbundle_shim.py36 def _add_input_to_signature_def(tensor_name, map_key, signature_def): argument
49 signature_def.inputs[map_key].CopyFrom(tensor_info)
52 def _add_output_to_signature_def(tensor_name, map_key, signature_def): argument
66 signature_def.outputs[map_key].CopyFrom(tensor_info)
Dbundle_shim_test.cc118 const string map_key = "foo_key"; in TEST() local
124 AddInputToSignatureDef(tensor_name, tensor_name_to_dtype, map_key, in TEST()
127 EXPECT_EQ(tensor_name, signature_def.inputs().find(map_key)->second.name()); in TEST()
134 const string map_key = "foo_key"; in TEST() local
140 AddOutputToSignatureDef(tensor_name, tensor_name_to_dtype, map_key, in TEST()
143 EXPECT_EQ(tensor_name, signature_def.outputs().find(map_key)->second.name()); in TEST()
/external/u-boot/lib/efi_selftest/
Defi_selftest.c35 efi_uintn_t map_key; in efi_st_exit_boot_services() local
41 ret = boottime->get_memory_map(&map_size, NULL, &map_key, &desc_size, in efi_st_exit_boot_services()
56 ret = boottime->get_memory_map(&map_size, memory_map, &map_key, in efi_st_exit_boot_services()
62 ret = boottime->exit_boot_services(handle, map_key); in efi_st_exit_boot_services()
/external/kernel-headers/original/uapi/sound/
Dsfnt_info.h186 int map_bank, map_instr, map_key; /* key = -1 means all keys */ member
/external/u-boot/lib/efi_loader/
Defi_memory.c440 efi_uintn_t *map_key, in efi_get_memory_map() argument
478 *map_key = 0; in efi_get_memory_map()
Defi_boottime.c353 efi_uintn_t *map_key, in efi_get_memory_map_ext() argument
360 map_key, descriptor_size, descriptor_version); in efi_get_memory_map_ext()
361 r = efi_get_memory_map(memory_map_size, memory_map, map_key, in efi_get_memory_map_ext()
1803 unsigned long map_key) in efi_exit_boot_services() argument
1807 EFI_ENTRY("%p, %ld", image_handle, map_key); in efi_exit_boot_services()
/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/golang-protobuf/proto/proto3_proto/
Dproto3.proto95 map<string, int64> map_key = 4; field
/external/u-boot/include/
Defi_loader.h313 efi_uintn_t *map_key,
/external/iproute2/lib/
Dbpf.c987 uint32_t map_key; in bpf_graft_map() local
993 map_key = *key; in bpf_graft_map()
995 ret = sscanf(cfg.section, "%*i/%i", &map_key); in bpf_graft_map()
1019 ret = bpf_map_update(map_fd, &map_key, &prog_fd, BPF_ANY); in bpf_graft_map()
/external/golang-protobuf/proto/test_proto/
Dtest.proto568 map<string, int64> map_key = 4; field