Home
last modified time | relevance | path

Searched refs:enum_value (Results 1 – 25 of 51) sorted by relevance

123

/external/chromium_org/chromeos/network/
Dnetwork_ui_data.cc25 Enum enum_value; member
39 Enum enum_value) { in EnumToString() argument
41 if (table[i].enum_value == enum_value) in EnumToString()
55 return table[i].enum_value; in StringToEnum()
/external/lldb/source/Interpreter/
DProperty.cpp75 …OptionValueEnumeration *enum_value = new OptionValueEnumeration(definition.enum_values, definition… in Property() local
76 m_value_sp.reset (enum_value); in Property()
79 if (enum_value->SetValueFromCString(definition.default_cstr_value).Success()) in Property()
81 enum_value->SetDefaultValue(enum_value->GetCurrentValue()); in Property()
86 enum_value->Clear(); in Property()
/external/ltrace/
Dlens_enum.c71 enum_values_equal(struct value *inf_value, struct value *enum_value, in enum_values_equal() argument
87 assert(inf_value->type->type == enum_value->type->type); in enum_values_equal()
89 unsigned char *enum_data = value_get_data(enum_value, arguments); in enum_values_equal()
90 size_t enum_sz = value_size(enum_value, arguments); in enum_values_equal()
/external/chromium_org/tools/metrics/histograms/
Dupdate_histogram_enum.py60 enum_value = int(m.group(2))
68 result[enum_value] = label
69 enum_value += 1
73 enum_value = 0
/external/clang/bindings/python/tests/cindex/
Dtest_cursor.py184 assert spam.enum_value == 1
186 assert egg.enum_value == 2
188 assert ham.enum_value == 40
203 assert spam.enum_value == -1
205 assert ham.enum_value == 0x10000000000
/external/chromium_org/mojo/public/tools/bindings/pylib/mojom/parse/
Dtranslate.py74 def EnumValueToDict(enum_value): argument
75 assert isinstance(enum_value, ast.EnumValue)
76 return {'name': enum_value.name,
77 'value': enum_value.value}
/external/chromium_org/mojo/public/python/mojo/bindings/
Dreflection.py34 key, enum_value = value
35 if isinstance(key, str) and isinstance(enum_value, int):
36 dictionary[key] = enum_value
/external/chromium_org/mojo/public/tools/bindings/generators/java_templates/
Denum_definition.tmpl1 {%- macro enum_value(enum, field, index) -%}
15 public static final int {{field.name}} = {{enum_value(enum, field, loop.index0)}};
/external/chromium_org/sync/syncable/
Dsyncable_enum_conversions.cc25 #define ENUM_CASE(enum_value) case enum_value: return #enum_value argument
/external/lldb/test/lang/c/enum_types/
DTestEnumTypes.py79 for enum_value in enum_values:
81 substrs = [enum_value])
/external/chromium_org/third_party/protobuf/python/google/protobuf/
Dtext_format.py125 enum_value = field.enum_type.values_by_number.get(value, None)
126 if enum_value is not None:
127 out.write(enum_value.name)
722 enum_value = enum_descriptor.values_by_name.get(value, None)
723 if enum_value is None:
729 enum_value = enum_descriptor.values_by_number.get(number, None)
730 if enum_value is None:
734 return enum_value.number
/external/llvm/bindings/python/llvm/tests/
Dtest_core.py13 for enum_name, enum_value in enum_spec:
23 self.assertEqual(v_attr.value, enum_value)
25 e = enum_cls.from_value(enum_value)
/external/chromium_org/build/android/gyp/
Djava_cpp_enum.py109 enum_value = enum_entry.groups()[2]
110 self._current_definition.AppendEntry(enum_key, enum_value)
185 for enum_name, enum_value in enum_definition.entries.iteritems():
188 'VALUE': enum_value,
/external/chromium_org/extensions/common/features/
Dsimple_feature.cc97 T* enum_value, in ParseEnum() argument
109 *enum_value = iter->second; in ParseEnum()
115 T* enum_value, in ParseEnum() argument
121 ParseEnum(string_value, enum_value, mapping); in ParseEnum()
149 T enum_value = static_cast<T>(0); in ParseEnumSet() local
150 ParseEnum(*iter, &enum_value, mapping); in ParseEnumSet()
151 enum_set->insert(enum_value); in ParseEnumSet()
/external/chromium_org/third_party/protobuf/src/google/protobuf/
Dwire_format.cc185 const EnumValueDescriptor* enum_value = in ParseAndMergeField() local
187 if (enum_value != NULL) { in ParseAndMergeField()
188 message_reflection->AddEnum(message, field, enum_value); in ParseAndMergeField()
245 const EnumValueDescriptor* enum_value = in ParseAndMergeField() local
247 if (enum_value != NULL) { in ParseAndMergeField()
249 message_reflection->AddEnum(message, field, enum_value); in ParseAndMergeField()
251 message_reflection->SetEnum(message, field, enum_value); in ParseAndMergeField()
/external/chromium_org/tools/json_schema_compiler/
Dcc_generator.py905 enum_value.name
906 for enum_value in self._type_helper.FollowRef(type_).enum_values) +
940 for enum_value in self._type_helper.FollowRef(type_).enum_values:
941 name = enum_value.name
943 name = enum_value.CamelName()
944 (c.Append('case %s: ' % self._type_helper.GetEnumValue(type_, enum_value))
968 for i, enum_value in enumerate(
973 (c.Append('if (enum_string == "%s")' % enum_value.name)
975 self._type_helper.GetEnumValue(type_, enum_value)))
Didl_schema.py310 enum_value = {'name': node.GetName()}
313 enum_value['description'] = ProcessComment(child.GetName())[0]
316 enum.append(enum_value)
/external/lldb/test/lang/cpp/enum_types/
DTestCPP11EnumTypes.py168 for enum_value in enum_values:
170 substrs = [enum_value])
/external/protobuf/python/google/protobuf/
Dtext_format.py265 enum_value = enum_descriptor.values_by_number.get(number, None)
266 if enum_value is None:
272 enum_value = enum_descriptor.values_by_name.get(identifier, None)
273 if enum_value is None:
277 value = enum_value.number
/external/chromium_org/third_party/WebKit/Source/bindings/scripts/
Dv8_utilities.py125 return ' || '.join(['string == "%s"' % enum_value
126 for enum_value in idl_type.enum_values])
/external/chromium_org/chrome/browser/prerender/
Dprerender_link_manager.cc77 const uint32 enum_value = rel_types & (RelTypeHistogramEnumMax - 1); in RecordLinkManagerAdded() local
78 UMA_HISTOGRAM_ENUMERATION("Prerender.RelTypesLinkAdded", enum_value, in RecordLinkManagerAdded()
83 const uint32 enum_value = rel_types & (RelTypeHistogramEnumMax - 1); in RecordLinkManagerStarting() local
84 UMA_HISTOGRAM_ENUMERATION("Prerender.RelTypesLinkStarted", enum_value, in RecordLinkManagerStarting()
/external/chromium_org/sync/protocol/
Dproto_enum_conversions.cc20 #define ENUM_CASE(enum_parent, enum_value) \ argument
21 case enum_parent::enum_value: return #enum_value
/external/protobuf/src/google/protobuf/
Dwire_format.cc488 const EnumValueDescriptor* enum_value = in ParseAndMergeField() local
490 if (enum_value != NULL) { in ParseAndMergeField()
491 message_reflection->AddEnum(message, field, enum_value); in ParseAndMergeField()
548 const EnumValueDescriptor* enum_value = in ParseAndMergeField() local
550 if (enum_value != NULL) { in ParseAndMergeField()
552 message_reflection->AddEnum(message, field, enum_value); in ParseAndMergeField()
554 message_reflection->SetEnum(message, field, enum_value); in ParseAndMergeField()
/external/protobuf/src/google/protobuf/compiler/
Dparser.cc872 bool Parser::ParseEnumConstant(EnumValueDescriptorProto* enum_value) { in ParseEnumConstant() argument
873 RecordLocation(enum_value, DescriptorPool::ErrorCollector::NAME); in ParseEnumConstant()
874 DO(ConsumeIdentifier(enum_value->mutable_name(), in ParseEnumConstant()
882 enum_value->set_number(number); in ParseEnumConstant()
884 DO(ParseEnumConstantOptions(enum_value)); in ParseEnumConstant()
/external/chromium_org/third_party/protobuf/python/google/protobuf/pyext/
Dpython-proto2.cc616 const google::protobuf::EnumValueDescriptor* enum_value = in InternalGetScalar() local
618 result = PyInt_FromLong(enum_value->number()); in InternalGetScalar()
689 const google::protobuf::EnumValueDescriptor* enum_value = in InternalSetScalar() local
691 if (enum_value != NULL) { in InternalSetScalar()
692 reflection->SetEnum(message, field_descriptor, enum_value); in InternalSetScalar()
781 const google::protobuf::EnumValueDescriptor* enum_value = in InternalAddRepeatedScalar() local
783 if (enum_value != NULL) { in InternalAddRepeatedScalar()
784 reflection->AddEnum(message, field_descriptor, enum_value); in InternalAddRepeatedScalar()
864 const google::protobuf::EnumValueDescriptor* enum_value = in InternalGetRepeatedScalar() local
867 result = PyInt_FromLong(enum_value->number()); in InternalGetRepeatedScalar()

123