Home
last modified time | relevance | path

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

12

/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/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/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_read_macros.h34 #define IPC_ENUM_TRAITS_VALIDATE(enum_name, validation_expression) \ argument
35 bool ParamTraits<enum_name>::Read( \
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) { \
/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.py114 def NormalizeEnumName(self, enum_name): argument
116 enum_name = enum_name.upper()
117 return self.CleanName(enum_name)
/external/mesa3d/src/gallium/drivers/swr/rasterizer/codegen/
Dgen_archrast.py115 enum_name = match.group(3)
116 protos['enum_names'].append(enum_name)
118 protos['enums'][enum_name] = {}
119 idx = parse_enums(lines, idx, protos['enums'][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/protobuf/src/google/protobuf/util/internal/
Ddatapiece.cc267 string enum_name = str_.ToString(); in ToEnum() local
269 FindEnumValueByNameOrNull(enum_type, enum_name); in ToEnum()
272 for (string::iterator it = enum_name.begin(); it != enum_name.end(); ++it) { in ToEnum()
275 value = FindEnumValueByNameOrNull(enum_type, enum_name); in ToEnum()
/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/epid-sdk/epid/common-testhelper/
Depid_gtest-testhelper.cc67 const char* enum_name = EpidStatusToName(e); in operator <<() local
68 return os << enum_name << " (" << std::to_string(e) << ")"; in operator <<()
/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.py165 enum_name = param[0]
166 enum_val = enum_list[enum_name].value
183 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/v8/src/inspector/build/
Dgenerate_protocol_externs.py185enum_name = "%sAgent.%s%s" % (domain_name, type["id"], to_title_case(property["name"]))
186 output_file.write(generate_enum(enum_name, property))
187 … typedef_args.append("%s:(%s%s)" % (property["name"], enum_name, suffix))
/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 ())
/external/autotest/client/cros/cellular/
Dcellular.py10 def Enum(enum_name, items): argument
21 setattr(output, item, enum_name + ':' + item)

12