Home
last modified time | relevance | path

Searched refs:enum (Results 1 - 25 of 162) sorted by relevance

1234567

/third_party/vk-gl-cts/scripts/opengl/
H A Dgen_call_log_wrapper.py32 def enum (group): function
58 "glBeginQuery": LogSpec({0: enum("QueryTarget")}),
59 "glBeginTransformFeedback": LogSpec({0: enum("PrimitiveType")}),
60 "glBindBuffer": LogSpec({0: enum("BufferTarget")}),
61 "glBindBufferBase": LogSpec({0: enum("BufferTarget")}),
62 "glBindBufferRange": LogSpec({0: enum("BufferTarget")}),
63 "glBindFramebuffer": LogSpec({0: enum("FramebufferTarget")}),
64 "glBindRenderbuffer": LogSpec({0: enum("FramebufferTarget")}),
65 "glBindTexture": LogSpec({0: enum("TextureTarget")}),
66 "glBindTransformFeedback": LogSpec({0: enum("TransformFeedbackTarge
[all...]
H A Dgen_enums.py28 def enumDefinition (enum):
29 return "#define %s\t%s" % (enum.name, normalizeConstant(enum.value))
/third_party/python/Lib/test/test_json/
H A Dtest_enum.py1 from enum import Enum, IntEnum
37 for enum in FloatNum:
38 self.assertEqual(self.dumps(enum), repr(enum.value))
39 self.assertEqual(float(self.dumps(enum)), enum)
40 self.assertEqual(self.loads(self.dumps(enum)), enum)
43 for enum, expected in zip(WierdNum, ('Infinity', '-Infinity', 'NaN')):
44 self.assertEqual(self.dumps(enum), expecte
[all...]
/third_party/skia/third_party/externals/tint/tools/src/cmd/intrinsic-gen/resolver/
H A Dresolver_test.go38 `enum E {}`,
41 `enum E {A B C}`,
56 enum e {a b c}
72 enum e { a b c }
96 enum e { a }
101 enum e { a b }
108 enum e { a b }
115 enum e { a }
129 enum e { a b }
134 enum
[all...]
/third_party/python/Lib/test/
H A Dtest_enumerate.py88 enum = enumerate variable in EnumerateTestCase
92 self.assertEqual(type(self.enum(self.seq)), self.enum)
93 e = self.enum(self.seq)
95 self.assertEqual(list(self.enum(self.seq)), self.res)
96 self.enum.__doc__
99 self.check_pickle(self.enum(self.seq), self.res)
102 self.assertEqual(list(self.enum(G(self.seq))), self.res)
103 e = self.enum(G(''))
107 self.assertEqual(list(self.enum(
167 enum = MyEnum global() variable in SubclassTestCase
281 def enum(self, iterable, start=11): global() member in TestStart
288 def enum(self, iterable, start=sys.maxsize + 1): global() member in TestLongStart
[all...]
/third_party/mesa3d/src/mapi/glapi/gen/
H A Dgl_enums.py44 # Mapping from enum value to (name, priority) tuples.
46 # Mapping from enum name to value
68 * Compare a key enum value to an element in the \c enum_string_table_offsets array.
74 * \param a Pointer to the desired enum name.
86 * This function always returns a string. If the number is a valid enum, it
87 * returns the enum name. Otherwise, it returns a numeric string.
134 /* Get the name of an enum given that it is a primitive type. Avoids
164 # We express the very long concatenation of enum strings as an array
167 for enum in sorted_enum_values:
168 (name, pri) = self.enum_table[enum]
[all...]
/third_party/vk-gl-cts/scripts/egl/
H A Denums.py42 def enumValue (enum, typePrefix = ""):
43 if enum.name in TYPED_VALUES:
45 n,v = enum.value.split(",", 1)
50 return normalizeConstant(enum.value)
52 def enumDefinition (enum):
53 return "#define %s\t%s" % (enum.name, enumValue(enum, "eglw::"))
H A Dcall_log_wrapper.py35 def enum (group): function
49 "eglBindAPI": LogSpec({0: enum("API")}),
55 "eglGetError": LogSpec({}, returnPrint = enum("Error")),
56 "eglGetConfigAttrib": LogSpec({2: enum("ConfigAttrib")}, argOutPrints = {3: lambda n: "getConfigAttribValuePointerStr(attribute, %s)" % n}),
57 "eglGetCurrentSurface": LogSpec({0: enum("SurfaceTarget")}),
59 "eglQueryAPI": LogSpec({}, returnPrint = enum("API")),
60 "eglQueryContext": LogSpec({2: enum("ContextAttrib")}, argOutPrints = {3: lambda n: "getContextAttribValuePointerStr(attribute, %s)" % n}),
61 "eglQuerySurface": LogSpec({2: enum("SurfaceAttrib")}, argOutPrints = {3: lambda n: "getSurfaceAttribValuePointerStr(attribute, %s)" % n}),
62 "eglSurfaceAttrib": LogSpec({2: enum("SurfaceAttrib"), 3: lambda n: "getSurfaceAttribValueStr(attribute, %s)" % n}),
/third_party/skia/third_party/externals/angle2/src/common/
H A Dgen_packed_gl_enums.py59 enums.sort(key=lambda enum: enum.name)
102 enum class {enum_name} : uint8_t
121 for enum in enums:
123 for value in enum.values:
128 enum_name=enum.name,
129 max_value=str(enum.max_value),
207 for enum in enums:
211 for value in enum.values:
212 qualified_name = enum
[all...]
/third_party/mesa3d/src/vulkan/util/
H A Dgen_enum_to_str.py21 """Create enum to string functions for vulkan using vk.xml."""
67 % for enum in enums:
69 % if enum.guard:
70 #ifdef ${enum.guard}
73 vk_${enum.name[2:]}_to_str(${enum.name} input)
76 % for v in sorted(enum.values.keys()):
78 return "${enum.values[v]}";
80 case ${enum.max_enum_name}: return "${enum
[all...]
/third_party/python/Lib/asyncio/
H A Dconstants.py1 import enum namespace
29 # The enum should be here to break circular dependencies between
31 class _SendfileMode(enum.Enum):
32 UNSUPPORTED = enum.auto()
33 TRY_NATIVE = enum.auto()
34 FALLBACK = enum.auto()
/third_party/skia/third_party/externals/dawn/generator/
H A Dopengl_loader_generator.py123 for enum in root.findall('''enums[@namespace='GL']/enum'''):
124 enum_name = enum.attrib['name']
125 # Special case an enum we'll never use that has different values in GL and GLES
130 all_enums[enum_name] = EnumDefine(enum_name, enum.attrib['value'])
149 for enum in section.findall('./require/enum'):
150 section_enums.append(all_enums[enum.attrib['name']])
172 for enum in section.findall('./require/enum')
[all...]
/third_party/vk-gl-cts/external/vulkan-docs/src/scripts/
H A Dreg.py133 elif child.tag in ['enum', 'feature']:
196 (type/group/enum/command/API/extension).
231 infoName - 'type' / 'group' / 'enum' / 'command' / 'feature' /
234 if infoName == 'enum':
253 # The same enum cannot extend two different types
256 # Non-<enum>s should never be redefined
281 in an <enums> block, generally corresponding to a C "enum" type."""
288 """Registry information about an enum"""
293 """numeric type of the value of the <enum> tag
434 "dictionary of EnumInfo objects keyed by enum nam
[all...]
H A Djson_c_generator.py120 TYPE_SECTIONS = ['basetype', 'handle', 'enum',
621 section = 'enum'
634 enums = groupElem.findall('enum')
636 for enum in enums:
638 if enum.get('name') not in self.enumNames:
639 self.enumNames.append(enum.get('name'))
641 if enum.get('value'):
642 body += " case %s: return \"%s\";\n" %(enum.get('value'), enum.get('name'))
644 elif enum
[all...]
H A Djson_parser.py338 TYPE_SECTIONS = ['basetype', 'handle', 'enum',
433 for enum in enums.findall('enum'):
434 type = enum.get("type");
436 name = enum.get("name")
437 value = enum.get("value")
457 if cat in {"handle", "bitmask", "basetype", "enum", "struct"} and name in self.vkscFeatureList:
745 hasMacroSize = paramname.tail is not None and '[' in paramname.tail and param.find('enum') is not None
857 arraySize = param.find('enum').text
987 section = 'enum'
[all...]
H A DtestSpecVersion.py60 for enum in elem.findall('require/enum'):
61 name = enum.get('name')
64 value = enum.get('value')
/third_party/vulkan-headers/registry/
H A Dreg.py133 elif child.tag in ['enum', 'feature']:
196 (type/group/enum/command/API/extension).
231 infoName - 'type' / 'group' / 'enum' / 'command' / 'feature' /
234 if infoName == 'enum':
253 # The same enum cannot extend two different types
256 # Non-<enum>s should never be redefined
281 in an <enums> block, generally corresponding to a C "enum" type."""
288 """Registry information about an enum"""
293 """numeric type of the value of the <enum> tag
434 "dictionary of EnumInfo objects keyed by enum nam
[all...]
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/
H A Dgen_vk_internal_shaders.py277 def bits(enum):
278 return (1 << (len(enum) - 1).bit_length()) / float(len(enum))
281 enums.sort(key=lambda enum: (bits(enum[1]), enum[0]))
288 enum_bits = [(len(enum[1]) - 1).bit_length() for enum in enums]
489 # least significant bits are the flags, where there is one bit per flag. After that, each enum
490 # takes up as few bits as needed to count that many enum value
[all...]
/third_party/vk-gl-cts/scripts/khr_util/
H A Dgen_str_util.py39 return set(enum.name for enum in iface.enums) | \
40 set(enum.alias for enum in iface.enums if enum.alias != None)
/third_party/mesa3d/src/amd/registers/
H A Dregdb.py212 - enum entries are sorted by value
222 for enum in self.__enums.values():
223 enum.entries.sort(key=lambda entry: entry.value)
315 def enum_key(enum):
318 enum (assuming that it has been canonicalized). Two enums with the
323 for entry in enum.entries
326 def add_enum(self, name, enum):
328 raise RegisterDatabaseError('Duplicate enum ' + name)
329 self.__enums[name] = enum
335 for origin, enum i
457 def enum(self, name): global() member in RegisterDatabase
[all...]
/third_party/node/deps/npm/node_modules/node-gyp/gyp/pylib/packaging/
H A D_elffile.py11 import enum namespace
21 class EIClass(enum.IntEnum):
26 class EIData(enum.IntEnum):
31 class EMachine(enum.IntEnum):
/third_party/vk-gl-cts/external/vulkancts/scripts/
H A Dgen_framework.py194 self.alias = None # name of enum alias or None
195 self.type = None # enum or bitmask
342 self.enums = [] # list of Enum objects - each contains individual enum definition (including extension enums)
349 self.tempAliasesList = [] # list of aliases for enums that could not be added because enum is defined later than its alias; this is needed for SC
390 # special case for vulkan hardcoded constants that are specified as enum in vk.xml
400 # initial enum definition is read while processing types section;
401 # we need to find this enum definition and add data to it
403 # add type and bitwidth to enum definition
408 # add components to enum definition
411 if enumeratorItem.tag != "enum"
[all...]
H A Dgen_framework_sc.py514 matches = re.findall(r'typedef enum(\s*' + IDENT_PTRN + r')?\s*{([^}]*)}\s*(' + IDENT_PTRN + r')\s*;', src)
619 def removeAliasedValues (enum):
621 for name, value in enum.values:
631 for name, value in enum.values:
636 enum.values = newValues
732 enumsByName = {enum.name: enum for enum in allEnums}
749 enums = [enum for enum i
[all...]
/third_party/protobuf/src/google/protobuf/compiler/ruby/
H A Druby_generated_code_proto2_pb.rb18 optional :optional_enum, :enum, 10, "A.B.C.TestEnum", default: 1
29 repeated :repeated_enum, :enum, 30, "A.B.C.TestEnum"
40 required :required_enum, :enum, 50, "A.B.C.TestEnum"
53 optional :oneof_enum, :enum, 70, "A.B.C.TestEnum"
H A Druby_generated_code_pb.rb18 optional :optional_enum, :enum, 10, "A.B.C.TestEnum"
29 repeated :repeated_enum, :enum, 30, "A.B.C.TestEnum"
38 map :map_string_enum, :string, :enum, 68, "A.B.C.TestEnum"
52 optional :oneof_enum, :enum, 50, "A.B.C.TestEnum"

Completed in 17 milliseconds

1234567