Home
last modified time | relevance | path

Searched refs:enum_name (Results 1 – 25 of 55) sorted by relevance

123

/external/libchrome/mojo/public/tools/bindings/generators/cpp_templates/
Denum_macros.tmpl6 {%- set enum_name = enum|get_name_for_kind(flatten_nested_kind=True) %}
7 enum class {{enum_name}} : int32_t {
23 inline std::ostream& operator<<(std::ostream& os, {{enum_name}} value) {
27 case {{enum_name}}::{{values[0].name}}:
28 return os << "{{enum_name}}::
39 return os << "Unknown {{enum_name}} value: " << static_cast<int32_t>(value);
42 return os << "Unknown {{enum_name}} value: " << static_cast<int32_t>(value);
47 inline bool IsKnownEnumValue({{enum_name}} value) {
55 {%- set enum_name = enum|get_name_for_kind(flatten_nested_kind=True) %}
56 struct {{enum_name}}_Data {
[all …]
Dunion_declaration.tmpl2 {%- set enum_name = union.name ~ "_Tag" -%}
56 tag = static_cast<{{enum_name}}>(0);
60 enum class {{enum_name}} : uint32_t {
83 {{enum_name}} tag;
Dunion_definition.tmpl3 {%- set enum_name = union.name ~ "_Tag" -%}
33 case {{enum_name}}::{{field.name|upper}}: {
/external/libchrome/base/test/metrics/
Dhistogram_enum_reader.cc22 const std::string& enum_name, in ParseEnumFromHistogramsXml() argument
41 ADD_FAILURE() << "Bad " << enum_name << " enum entry (at index " in ParseEnumFromHistogramsXml()
47 ADD_FAILURE() << "Bad " << enum_name << " enum entry (at index " in ParseEnumFromHistogramsXml()
55 ADD_FAILURE() << "Bad " << enum_name << " enum entry (at index " in ParseEnumFromHistogramsXml()
62 ADD_FAILURE() << "Bad " << enum_name << " enum entry (at index " in ParseEnumFromHistogramsXml()
85 const std::string& enum_name) { in ReadEnumFromEnumsXml() argument
114 if (enums_xml_reader.NodeAttribute("name", &name) && name == enum_name) { in ReadEnumFromEnumsXml()
116 ADD_FAILURE() << "Duplicate enum '" << enum_name in ReadEnumFromEnumsXml()
123 ADD_FAILURE() << "Bad enum '" << enum_name in ReadEnumFromEnumsXml()
128 result = ParseEnumFromHistogramsXml(enum_name, &enums_xml_reader); in ReadEnumFromEnumsXml()
[all …]
/external/angle/scripts/
Dgen_gl_enum_utils.py181 enum_name = enum_node.attrib['name']
182 enums_has_group.add(enum_name)
183 gl_enum_in_groups[group_name][enum_name] = all_gl_enums[enum_name]
190 enum_name = enum_tag.attrib['name']
191 if enum_name not in exclude_gl_enums:
192 exporting_enums.add(enum_name)
197 enum_name = enum_tag.attrib['name']
198 if enum_name not in exclude_gl_enums:
199 exporting_enums.add(enum_name)
205 for enum_name in exporting_enums:
[all …]
/external/libchrome/mojo/public/tools/bindings/generators/js_templates/
Denum_definition.tmpl1 {%- macro enum_def(enum_name, enum) -%}
2 {{enum_name}} = {};
6 {{enum_name}}.{{field.name}} = {{field.value|expression_to_text}};
8 {{enum_name}}.{{field.name}} = 0;
10 {{enum_name}}.{{field.name}} = {{enum_name}}.{{enum.fields[loop.index0 - 1].name}} + 1;
14 {{enum_name}}.isKnownEnumValue = function(value) {
26 {{enum_name}}.validate = function(enumValue) {
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_opcode.cc25 #define CASE_OPCODE_STRING(enum_name, opcode_name, ...) \ in HloOpcodeString() argument
26 case HloOpcode::enum_name: \ in HloOpcodeString()
35 #define STRING_TO_OPCODE_ENTRY(enum_name, opcode_name, ...) \ in StringToHloOpcode() argument
36 {opcode_name, HloOpcode::enum_name}, in StringToHloOpcode()
53 #define CASE_IS_VARIADIC(enum_name, opcode_name, arity, ...) \ in HloOpcodeIsVariadic() argument
54 case HloOpcode::enum_name: \ in HloOpcodeIsVariadic()
63 #define CASE_ARITY(enum_name, opcode_name, arity, ...) \ in HloOpcodeArity() argument
64 case HloOpcode::enum_name: \ in HloOpcodeArity()
/external/crosvm/sys_util/poll_token_derive/
Dpoll_token_derive.rs47 fn generate_as_raw_token(enum_name: &Ident, variants: &[Variant]) -> TokenStream { in generate_as_raw_token()
73 #enum_name::#variant_name #capture => #index #modifier in generate_as_raw_token()
87 fn generate_from_raw_token(enum_name: &Ident, variants: &[Variant]) -> TokenStream { in generate_from_raw_token()
106 #index => #enum_name::#variant_name #data in generate_from_raw_token()
142 let enum_name = input.ident; in poll_token_inner() localVariable
143 let as_raw_token = generate_as_raw_token(&enum_name, &variants); in poll_token_inner()
144 let from_raw_token = generate_from_raw_token(&enum_name, &variants); in poll_token_inner()
147 impl PollToken for #enum_name { in poll_token_inner()
/external/tensorflow/tensorflow/lite/schema/builtin_ops_header/
Dgenerator.cc112 auto enum_name = enum_names[enum_value]; in GenerateHeader() local
113 if (!IsValidInputEnumName(enum_name)) { in GenerateHeader()
114 std::cerr << "Invalid input enum name: " << enum_name << std::endl; in GenerateHeader()
121 auto enum_name = enum_names[enum_value]; in GenerateHeader() local
123 os << ConstantizeVariableName(enum_name); in GenerateHeader()
/external/libchrome/ipc/
Dparam_traits_macros.h51 #define IPC_ENUM_TRAITS_VALIDATE(enum_name, validation_expression) \ argument
54 struct IPC_MESSAGE_EXPORT ParamTraits<enum_name> { \
55 typedef enum_name param_type; \
Dparam_traits_write_macros.h32 #define IPC_ENUM_TRAITS_VALIDATE(enum_name, validation_expression) \ argument
33 void ParamTraits<enum_name>::Write(base::Pickle* m, \
Dparam_traits_log_macros.h46 #define IPC_ENUM_TRAITS_VALIDATE(enum_name, validation_expression) \ argument
47 void ParamTraits<enum_name>::Log(const param_type& p, std::string* l) { \
Dparam_traits_read_macros.h34 #define IPC_ENUM_TRAITS_VALIDATE(enum_name, validation_expression) \ argument
35 bool ParamTraits<enum_name>::Read( \
/external/python/apitools/apitools/gen/
Dmessage_registry.py203 for index, (enum_name, enum_description) in enumerate(
206 enum_value.name = self.__names.NormalizeEnumName(enum_name)
207 if enum_value.name != enum_name:
210 python_name=enum_value.name, json_name=enum_name))
366 def __DeclareEnum(self, enum_name, attrs): argument
371 self.AddEnumDescriptor(enum_name, description,
373 self.__AddIfUnknown(enum_name)
374 return TypeInfo(type_name=enum_name, variant=messages.Variant.ENUM)
400 enum_name = '%sValuesEnum' % name_hint
401 return self.__DeclareEnum(enum_name, attrs)
Dutil.py117 def NormalizeEnumName(self, enum_name): argument
119 enum_name = enum_name.upper()
120 return self.CleanName(enum_name)
/external/angle/src/common/
Dgen_packed_gl_enums.py37 for (enum_name, value_list) in enums_dict.iteritems():
47 enums.append(Enum(enum_name, values, i))
119 enum_name=enum.name,
213 enum_name=enum.name,
/external/protobuf/src/google/protobuf/util/internal/
Ddatapiece.cc285 std::string enum_name = std::string(str_); in ToEnum() local
287 FindEnumValueByNameOrNull(enum_type, enum_name); in ToEnum()
303 for (std::string::iterator it = enum_name.begin(); it != enum_name.end(); in ToEnum()
307 value = FindEnumValueByNameOrNull(enum_type, enum_name); in ToEnum()
315 value = FindEnumValueByNameWithoutUnderscoreOrNull(enum_type, enum_name); in ToEnum()
/external/mesa3d/src/gallium/drivers/swr/rasterizer/codegen/
Dgen_archrast.py231 enum_name = match.group(2)
235 'name': enum_name,
249 protos['enums']['defs'][enum_name] = enum
250 protos['enums']['map'][enum_id] = enum_name
/external/webrtc/talk/app/webrtc/java/jni/
Dpeerconnection_jni.cc1390 std::string enum_name = GetJavaEnumName( in JavaIceTransportsTypeToNativeType() local
1394 if (enum_name == "ALL") in JavaIceTransportsTypeToNativeType()
1397 if (enum_name == "RELAY") in JavaIceTransportsTypeToNativeType()
1400 if (enum_name == "NOHOST") in JavaIceTransportsTypeToNativeType()
1403 if (enum_name == "NONE") in JavaIceTransportsTypeToNativeType()
1406 RTC_CHECK(false) << "Unexpected IceTransportsType enum_name " << enum_name; in JavaIceTransportsTypeToNativeType()
1412 std::string enum_name = GetJavaEnumName( in JavaBundlePolicyToNativeType() local
1416 if (enum_name == "BALANCED") in JavaBundlePolicyToNativeType()
1419 if (enum_name == "MAXBUNDLE") in JavaBundlePolicyToNativeType()
1422 if (enum_name == "MAXCOMPAT") in JavaBundlePolicyToNativeType()
[all …]
/external/tensorflow/tensorflow/core/framework/
Dtypes_test.cc50 string enum_name = enum_descriptor->FindValueByNumber(e)->name(); in TEST() local
52 EXPECT_EQ(enum_name + "_REF", enum_ref_name) in TEST()
53 << enum_name << "_REF should have value " << e_ref << " not " in TEST()
/external/llvm/bindings/python/llvm/tests/
Dtest_core.py13 for enum_name, enum_value in enum_spec:
17 self.assertTrue(hasattr(enum_cls, enum_name))
18 v_attr = getattr(enum_cls, enum_name)
/external/swiftshader/third_party/llvm-7.0/llvm/bindings/python/llvm/tests/
Dtest_core.py13 for enum_name, enum_value in enum_spec:
17 self.assertTrue(hasattr(enum_cls, enum_name))
18 v_attr = getattr(enum_cls, enum_name)
/external/mesa3d/src/mesa/main/
Dget_hash_generator.py166 enum_name = param[0]
167 enum_val = enum_list[enum_name].value
184 params.append(["GL_" + enum_name, param[1]])
/external/protobuf/src/google/protobuf/compiler/objectivec/
Dobjectivec_oneof.cc79 string enum_name = variables_["enum_name"]; in GenerateCaseEnum() local
85 "enum_name", enum_name, in GenerateCaseEnum()
/external/harfbuzz_ng/src/
Dhb-gobject-enums.h.tmpl46 @enum_name@_get_type () G_GNUC_CONST;
47 #define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ())

123