/external/libchrome/mojo/public/tools/bindings/generators/cpp_templates/ |
D | enum_macros.tmpl | 6 {%- 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 …]
|
D | union_declaration.tmpl | 2 {%- set enum_name = union.name ~ "_Tag" -%} 56 tag = static_cast<{{enum_name}}>(0); 60 enum class {{enum_name}} : uint32_t { 83 {{enum_name}} tag;
|
D | union_definition.tmpl | 3 {%- set enum_name = union.name ~ "_Tag" -%} 33 case {{enum_name}}::{{field.name|upper}}: {
|
/external/libchrome/base/test/metrics/ |
D | histogram_enum_reader.cc | 22 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/ |
D | gen_gl_enum_utils.py | 181 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/ |
D | enum_definition.tmpl | 1 {%- 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/ |
D | hlo_opcode.cc | 25 #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/ |
D | poll_token_derive.rs | 47 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/ |
D | generator.cc | 112 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/ |
D | param_traits_macros.h | 51 #define IPC_ENUM_TRAITS_VALIDATE(enum_name, validation_expression) \ argument 54 struct IPC_MESSAGE_EXPORT ParamTraits<enum_name> { \ 55 typedef enum_name param_type; \
|
D | param_traits_write_macros.h | 32 #define IPC_ENUM_TRAITS_VALIDATE(enum_name, validation_expression) \ argument 33 void ParamTraits<enum_name>::Write(base::Pickle* m, \
|
D | param_traits_log_macros.h | 46 #define IPC_ENUM_TRAITS_VALIDATE(enum_name, validation_expression) \ argument 47 void ParamTraits<enum_name>::Log(const param_type& p, std::string* l) { \
|
D | param_traits_read_macros.h | 34 #define IPC_ENUM_TRAITS_VALIDATE(enum_name, validation_expression) \ argument 35 bool ParamTraits<enum_name>::Read( \
|
/external/python/apitools/apitools/gen/ |
D | message_registry.py | 203 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)
|
D | util.py | 117 def NormalizeEnumName(self, enum_name): argument 119 enum_name = enum_name.upper() 120 return self.CleanName(enum_name)
|
/external/angle/src/common/ |
D | gen_packed_gl_enums.py | 37 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/ |
D | datapiece.cc | 285 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/ |
D | gen_archrast.py | 231 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/ |
D | peerconnection_jni.cc | 1390 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/ |
D | types_test.cc | 50 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/ |
D | test_core.py | 13 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/ |
D | test_core.py | 13 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/ |
D | get_hash_generator.py | 166 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/ |
D | objectivec_oneof.cc | 79 string enum_name = variables_["enum_name"]; in GenerateCaseEnum() local 85 "enum_name", enum_name, in GenerateCaseEnum()
|
/external/harfbuzz_ng/src/ |
D | hb-gobject-enums.h.tmpl | 46 @enum_name@_get_type () G_GNUC_CONST; 47 #define @ENUMPREFIX@_TYPE_@ENUMSHORT@ (@enum_name@_get_type ())
|